/* style.css - 个人中心页面样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
    padding-bottom: 60px;
}

.user-info {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    flex-wrap: nowrap;
    gap: 12px;
}

.info-item {
    font-size: 13px;
    color: #333;
    white-space: nowrap;
}

.info-item .label {
    color: #666;
}

.info-item .vip-active {
    color: #faad14;
    font-weight: 500;
}

.info-item .vip-expired {
    color: #999;
}

.section {
    background-color: #fff;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.section-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.permission-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    font-size: 13px;
    overflow-x: auto;
}

.permission-label {
    color: #666;
    white-space: nowrap;
}

.permission-item {
    color: #999;
    background-color: #f5f5f5;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.permission-item.active {
    color: #52c41a;
    background-color: #f6ffed;
}

.qrcode-section {
    text-align: center;
    background-color: #fff;
    border: 1px solid #e8e8e8;
}

.qrcode-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 12px;
}

.qrcode-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.qrcode {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

.qrcode-desc {
    font-size: 12px;
    color: #999;
}

.message {
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 13px;
    text-align: center;
}

.message.success {
    background-color: #f6ffed;
    color: #52c41a;
}

.message.error {
    background-color: #fff2f0;
    color: #ff4d4f;
}

.threshold-row {
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.form-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.form-item label {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
    white-space: nowrap;
}

.input-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.input-row input {
    flex: 1;
    min-width: 0;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
}

.input-row input:focus {
    border-color: #667eea;
}

.input-row .unit {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}

.save-btn {
    width: 100%;
    height: 36px;
    margin-top: 12px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}

.notice-info-section {
    background-color: #fff7e6;
    border: 1px solid #ffe0b3;
}

.notice-info-section .section-title {
    border-bottom-color: #ffe0b3;
    color: #fa8c16;
}

.notice-info ul {
    list-style: none;
    padding-left: 0;
}

.notice-info li {
    font-size: 12px;
    color: #666;
    padding: 6px 0;
    padding-left: 16px;
    position: relative;
}

.notice-info li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #fa8c16;
    font-size: 14px;
    line-height: 1;
}

.back-link {
    text-align: center;
    margin-top: 14px;
}

.back-link a {
    display: inline-block;
    padding: 8px 30px;
    background: #fff;
    color: #666;
    text-decoration: none;
    border-radius: 18px;
    font-size: 12px;
    border: 1px solid #d9d9d9;
}

.error-message {
    text-align: center;
    padding: 30px;
    color: #999;
}

@media (max-width: 480px) {
    .user-info {
        flex-wrap: wrap;
        gap: 8px;
    }

    .info-item {
        font-size: 12px;
    }

    .permission-row {
        font-size: 12px;
    }

    .qrcode {
        width: 100px;
        height: 100px;
    }
}

/* ========== 完整的响应式设计 ========== */

/* PC端响应式样式 - 中等屏幕 (平板) */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .container {
        max-width: 700px;
        padding: 20px;
        padding-bottom: 80px;
    }

    .user-info {
        padding: 16px 20px;
        margin-bottom: 15px;
        border-radius: 12px;
    }

    .info-item {
        font-size: 14px;
    }

    .section {
        padding: 16px 20px;
        margin-bottom: 15px;
        border-radius: 12px;
    }

    .section-title {
        font-size: 16px;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .permission-row {
        font-size: 14px;
    }

    .qrcode-title {
        font-size: 16px;
    }

    .qrcode {
        width: 140px;
        height: 140px;
    }

    .qrcode-desc {
        font-size: 13px;
    }

    .form-item label {
        font-size: 13px;
    }

    .input-row input {
        height: 36px;
        font-size: 14px;
    }

    .input-row .unit {
        font-size: 13px;
    }

    .save-btn {
        height: 40px;
        font-size: 14px;
        border-radius: 8px;
    }

    .notice-info li {
        font-size: 13px;
    }

    .back-link a {
        padding: 10px 40px;
        font-size: 13px;
        border-radius: 22px;
    }
}

/* PC端响应式样式 - 大屏幕 (桌面) */
@media screen and (min-width: 1025px) {
    .container {
        max-width: 900px;
        padding: 30px;
        padding-bottom: 100px;
    }

    .user-info {
        padding: 20px 25px;
        margin-bottom: 20px;
        border-radius: 16px;
    }

    .info-item {
        font-size: 15px;
    }

    .section {
        padding: 20px 25px;
        margin-bottom: 20px;
        border-radius: 16px;
    }

    .section-title {
        font-size: 18px;
        margin-bottom: 20px;
        padding-bottom: 16px;
    }

    .permission-row {
        font-size: 15px;
    }

    .qrcode-title {
        font-size: 18px;
    }

    .qrcode {
        width: 160px;
        height: 160px;
    }

    .qrcode-desc {
        font-size: 14px;
    }

    .form-item label {
        font-size: 14px;
    }

    .input-row input {
        height: 40px;
        font-size: 15px;
        padding: 0 15px;
    }

    .input-row .unit {
        font-size: 14px;
    }

    .save-btn {
        height: 44px;
        font-size: 15px;
        border-radius: 10px;
    }

    .notice-info li {
        font-size: 14px;
    }

    .back-link a {
        padding: 12px 50px;
        font-size: 14px;
        border-radius: 26px;
    }
}