/* ========== 登录/注册页面 ========== */
.auth-container {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 16px 60px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 40px 32px;
}

body.light-mode .auth-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.08);
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    text-align: center;
    color: #888;
    font-size: 0.875rem;
    margin-bottom: 28px;
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 4px;
}

body.light-mode .auth-tabs {
    background: rgba(0, 0, 0, 0.04);
}

.auth-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    background: transparent;
    color: #888;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.25s;
}

.auth-tab.active {
    background: rgba(86, 140, 214, 0.15);
    color: var(--code-blue);
}

.auth-form { display: none; }
.auth-form.active { display: block; }

.auth-field {
    margin-bottom: 18px;
}

.auth-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: #aaa;
}

body.light-mode .auth-field label {
    color: #555;
}

.auth-field input {
    width: 100%;
    padding: 11px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 0.95rem;
    color: #e0e0e0;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

body.light-mode .auth-field input {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.12);
    color: #2c3e50;
}

.auth-field input:focus {
    border-color: var(--code-blue);
}

.auth-field .auth-error {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 4px;
}

.auth-sms-row {
    display: flex;
    gap: 10px;
}

.auth-sms-row input {
    flex: 1;
}

.auth-sms-btn {
    padding: 0 16px;
    background: rgba(86, 140, 214, 0.15);
    border: 1px solid rgba(86, 140, 214, 0.3);
    border-radius: 10px;
    color: var(--code-blue);
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s;
}

.auth-sms-btn:hover {
    background: rgba(86, 140, 214, 0.25);
}

.auth-sms-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auth-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #569cd6, #6366f1);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-top: 8px;
}

.auth-submit:hover { opacity: 0.85; }
.auth-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body.light-mode .auth-footer {
    border-top-color: rgba(0, 0, 0, 0.06);
}

.auth-footer a {
    color: var(--code-blue);
    text-decoration: none;
    font-size: 0.875rem;
}

.auth-footer a:hover { text-decoration: underline; }

.auth-register-btn {
    display: inline-block;
    background: #f5762a;
    color: #fff !important;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8125rem !important;
    text-decoration: none !important;
    margin-left: 4px;
    transition: opacity 0.2s;
}
.auth-register-btn:hover { opacity: 0.85; text-decoration: none !important; }

.auth-wechat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px;
    margin-top: 12px;
    background: rgba(7, 193, 96, 0.12);
    border: 1px solid rgba(7, 193, 96, 0.3);
    border-radius: 10px;
    color: #07c160;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s;
}

.auth-wechat-btn:hover {
    background: rgba(7, 193, 96, 0.2);
}

.wechat-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.wechat-modal.show {
    display: flex;
}

.wechat-modal-content {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px;
    width: 90%;
    max-width: 360px;
    text-align: center;
}

body.light-mode .wechat-modal-content {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.08);
}

.wechat-modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.wechat-qr-placeholder {
    width: 200px;
    height: 200px;
    margin: 0 auto 16px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wechat-qr-placeholder i {
    width: 80px;
    height: 80px;
    color: #07c160;
}

.wechat-modal-hint {
    color: #888;
    font-size: 0.875rem;
    margin-bottom: 20px;
}

.wechat-mock-btn {
    padding: 10px 24px;
    background: #07c160;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.wechat-mock-btn:hover { opacity: 0.85; }

.wechat-modal-close {
    display: block;
    margin-top: 12px;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 0.85rem;
}

.wechat-modal-close:hover { color: #e0e0e0; }

/* ========== 会员中心 ========== */
.member-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 130px 24px 60px;
    display: flex;
    gap: 24px;
}

.member-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px 20px;
    align-self: flex-start;
}

body.light-mode .member-sidebar {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.08);
}

.member-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--code-blue), var(--code-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.member-avatar i {
    width: 36px;
    height: 36px;
    color: #fff;
}

.member-name {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.member-phone {
    text-align: center;
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 20px;
}

.member-level-badge {
    display: block;
    width: fit-content;
    margin: 0 auto 4px;
    padding: 2px 12px;
    background: linear-gradient(135deg, rgba(86, 140, 214, 0.15), rgba(99, 102, 241, 0.15));
    border: 1px solid rgba(86, 140, 214, 0.3);
    border-radius: 20px;
    font-size: 0.7rem;
    color: var(--code-blue);
    text-align: center;
}

.member-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin: 0 0 16px;
}

body.light-mode .member-divider {
    border-top-color: rgba(0, 0, 0, 0.06);
}

.member-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: #d5d5d5;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.9rem;
    transition: all 0.2s;
    margin-bottom: 4px;
    background: none;
    border: none;
    cursor: pointer;
    width: auto;
    text-align: left;
}

.member-menu-item:hover {
    background: rgba(86, 140, 214, 0.08);
    color: #e0e0e0;
}

body.light-mode .member-menu-item {
    color: #333;
}

body.light-mode .member-menu-item.active {
    color: var(--code-blue);
}

.member-menu-item.active {
    background: rgba(86, 140, 214, 0.12);
    color: var(--code-blue);
    font-weight: 500;
}

.member-menu-item i {
    width: 18px;
    height: 18px;
}

.member-logout-btn {
    width: 100%;
    color: #e74c3c;
}

.member-logout-btn:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #ff6b6b;
}

.member-main {
    flex: 1;
    min-width: 0;
}

.member-main-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.order-list { display: flex; flex-direction: column; gap: 12px; }

.order-item {
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
}

body.light-mode .order-item {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.08);
}

.order-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.order-item-no {
    font-size: 0.85rem;
    color: #888;
    font-family: monospace;
}

.order-item-status {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-pending {
    background: rgba(255, 193, 7, 0.12);
    color: #ffc107;
}

.status-paid {
    background: rgba(7, 193, 96, 0.12);
    color: #07c160;
}

.status-cancelled {
    background: rgba(255, 255, 255, 0.06);
    color: #888;
}

.order-item-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.order-item-label {
    font-size: 0.8rem;
    color: #888;
}

.order-item-value {
    font-size: 0.9rem;
}

.order-code-box {
    margin-top: 12px;
    padding: 12px;
    background: rgba(86, 140, 214, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.order-code-text {
    font-family: monospace;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    word-break: break-all;
}

.order-copy-btn {
    padding: 5px 14px;
    background: var(--code-blue);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.order-copy-btn:hover { opacity: 0.85; }

.order-empty {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.order-empty i {
    width: 48px;
    height: 48px;
    color: #555;
    margin-bottom: 12px;
}

.password-card {
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px;
    max-width: 480px;
}

body.light-mode .password-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.08);
}

.password-status {
    background: rgba(7, 193, 96, 0.12);
    color: #07c160;
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

/* 资料页选项卡 */
.profile-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 4px;
}

body.light-mode .profile-tabs {
    background: rgba(0, 0, 0, 0.04);
}

.profile-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    background: transparent;
    color: #888;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.25s;
}

.profile-tab.active {
    background: rgba(86, 140, 214, 0.15);
    color: var(--code-blue);
}

body.light-mode .profile-tab.active {
    color: #3b82f6;
}

.profile-tab-content { display: none; }
.profile-tab-content.active { display: block; }

/* 修改资料 */
.profile-avatar-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--code-blue), var(--code-purple));
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar-placeholder i {
    width: 32px;
    height: 32px;
    color: rgba(255, 255, 255, 0.7);
}

.profile-avatar-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-avatar-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(86, 140, 214, 0.12);
    border: 1px solid rgba(86, 140, 214, 0.3);
    border-radius: 8px;
    color: var(--code-blue);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.profile-avatar-upload-btn:hover {
    background: rgba(86, 140, 214, 0.2);
}

.profile-avatar-upload-btn i {
    width: 16px;
    height: 16px;
}

.profile-avatar-hint {
    color: #888;
    font-size: 0.75rem;
}

/* 分页样式 */
.member-main .pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.member-main .pagination li {
    list-style: none;
}

.member-main .pagination li a,
.member-main .pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #aaa;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: all 0.2s;
}

.member-main .pagination li a:hover {
    background: rgba(86, 140, 214, 0.12);
    border-color: rgba(86, 140, 214, 0.3);
    color: var(--code-blue);
}

.member-main .pagination li.active span {
    background: rgba(86, 140, 214, 0.18);
    border-color: rgba(86, 140, 214, 0.4);
    color: var(--code-blue);
    font-weight: 600;
}

.member-main .pagination li.disabled span {
    opacity: 0.3;
    cursor: not-allowed;
}

body.light-mode .member-main .pagination li a,
body.light-mode .member-main .pagination li span {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
    color: #666;
}

body.light-mode .member-main .pagination li a:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

body.light-mode .member-main .pagination li.active span {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.4);
    color: #3b82f6;
}

@media (max-width: 768px) {
    .member-container {
        flex-direction: column;
        padding: 90px 16px 40px;
    }

    .member-sidebar {
        width: 100%;
        text-align: center;
    }

    .order-item-body {
        grid-template-columns: 1fr;
    }
}

/* ========== 账号绑定区域 ========== */
.bind-section {
    padding: 8px 0;
}

.bind-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.bind-item:last-child {
    border-bottom: none;
}

.bind-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bind-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 10px;
}

.bind-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.bind-desc {
    font-size: 13px;
    color: #888;
    margin-top: 2px;
}

.bind-status {
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 20px;
}

.bind-status.bound {
    background: #e8f5e9;
    color: #2e7d32;
}

.bind-status.unbound {
    background: #fff3e0;
    color: #e65100;
}

.bind-btn {
    font-size: 13px;
    padding: 6px 16px;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    display: inline-block;
    text-align: center;
}

.bind-btn.bind {
    background: #07c160;
    color: #fff;
}

.bind-btn.bind:hover {
    background: #06ad56;
}

.bind-btn.unbind {
    background: #fff;
    color: #e53935;
    border: 1px solid #e53935;
}

.bind-btn.unbind:hover {
    background: #fef0f0;
}

/* 解绑弹窗 */
.unbind-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.unbind-modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    width: 360px;
    max-width: 90vw;
}

.unbind-modal-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.unbind-modal-desc {
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
}

.unbind-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 8px;
}

.unbind-cancel {
    padding: 8px 20px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    cursor: pointer;
    font-size: 14px;
}

.unbind-confirm {
    padding: 8px 20px;
    border-radius: 6px;
    border: none;
    background: #e53935;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
}

.unbind-confirm:hover {
    background: #c62828;
}
