/* ===== CSS 变量 & 重置 ===== */
:root {
    --primary: #2A7DE1;
    --primary-light: #E8F0FE;
    --primary-dark: #1A5CA8;
    --success: #2EBB77;
    --success-light: #E6F9F0;
    --danger: #E85C5C;
    --danger-light: #FDEDED;
    --warning: #F5A623;
    --gray: #8E9AAF;
    --gray-light: #F0F2F5;
    --gray-border: #E4E7ED;
    --shadow: 0 2px 16px rgba(42, 125, 225, 0.12);
    --shadow-lg: 0 8px 32px rgba(42, 125, 225, 0.18);
    --radius: 16px;
    --radius-sm: 10px;
    --safe-bottom: env(safe-area-inset-bottom, 12px);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font);
    background: #F7F9FC;
    color: #1A2634;
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: calc(80px + var(--safe-bottom));
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== 顶部栏 ===== */
.app-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 10px;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 20px rgba(42, 125, 225, 0.25);
}
.app-header .top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.app-header .title {
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 2px;
}
.app-header .title span {
    font-size: 15px;
}
.app-header .date-badge {
    font-size: 12px;
    opacity: 0.85;
    background: rgba(255, 255, 255, 0.18);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
    backdrop-filter: blur(4px);
}
.app-header .stats {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    font-size: 14px;
    opacity: 0.92;
}
.app-header .stats .stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}
.app-header .stats .stat-item .num {
    font-weight: 700;
    font-size: 17px;
    background: rgba(255, 255, 255, 0.2);
    padding: 0 8px;
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
}
/* 顶部栏大字化 */
.app-header .title { font-size: 18px; }
.app-header .title span { font-size: 20px; }
.app-header .date-badge { font-size: 14px; padding: 4px 12px; }
.survey-btn {
    font-size: 22px; background: none; border: none; cursor: pointer;
    padding: 2px 6px; border-radius: 8px; transition: transform 0.15s;
}
.survey-btn:active { transform: scale(1.3); }
.side-banner {
    text-align: center;
    padding: 4px 0;
    background: var(--success-light);
    font-size: 12px;
    color: var(--success);
    font-weight: 500;
    line-height: 1.4;
}
.side-banner a {
    color: var(--success);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

/* ===== 底部状态栏 ===== */
.bottom-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--gray-border);
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    max-width: 500px;
    margin: 0 auto;
}
.bottom-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 16px;
    color: var(--gray);
    transition: color 0.2s;
    border-radius: 10px;
    min-width: 56px;
}
.bottom-tab span {
    font-size: 10px;
    font-weight: 500;
}
.bottom-tab.active {
    color: var(--primary);
}
.bottom-tab:active {
    background: rgba(0,0,0,0.05);
}

/* ===== 账户操作菜单 ===== */
.account-sheet {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.account-sheet .sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    animation: overlayIn 0.2s ease;
}
.account-sheet .sheet-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 8px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: slideUp 0.25s ease;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.sheet-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 8px;
    border: none;
    background: none;
    font-size: 15px;
    cursor: pointer;
    border-radius: 10px;
    color: inherit;
    text-align: left;
}
.sheet-item:active { background: rgba(0,0,0,0.06); }
.sheet-item-danger { color: #E53E3E; }
.sheet-cancel {
    border-top: 1px solid var(--gray-border);
    margin-top: 4px;
    justify-content: center;
    font-weight: 600;
    color: var(--gray);
}
.miss-reason-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 12px;
    border: 2px solid var(--gray-border);
    border-radius: var(--radius-sm);
    background: #FAFBFC;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #2D3748;
    transition: all 0.15s;
    font-family: var(--font);
}
.miss-reason-card span:first-child {
    font-size: 20px;
}
.miss-reason-card:active {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: scale(0.97);
}
/* ===== 提醒列表 ===== */
.list-container {
    padding: 16px 16px 80px;
    max-width: 500px;
    margin: 0 auto;
}

.empty-state {
    text-align: center;
    padding: 60px 20px 40px;
    color: var(--gray);
}
.empty-state .icon {
    display: block;
    margin: 0 auto 16px;
}
.empty-state h3 {
    font-size: 20px;
    color: #2D3748;
    margin-bottom: 6px;
}
.empty-state p {
    font-size: 15px;
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
}

/* ===== 提醒卡片 ===== */
.reminder-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 16px 16px 14px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
    border-left: 5px solid var(--primary);
    position: relative;
    animation: cardIn 0.3s ease;
}
.reminder-card.taken {
    border-left-color: var(--success);
    opacity: 0.7;
}
.reminder-card.taken .card-time {
    color: var(--success);
}
.reminder-card.missed {
    border-left-color: #E53E3E;
}
.reminder-card.missed .card-time {
    color: #E53E3E;
}
.reminder-card.overdue {
    border-left-color: var(--danger);
    background: #FFFBFB;
}
.reminder-card.overdue .card-time {
    color: var(--danger);
}
.reminder-card .card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}
.reminder-card .card-left {
    flex: 1;
    min-width: 0;
}
.reminder-card .card-name {
    font-size: 17px;
    font-weight: 700;
    color: #1A2634;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.reminder-card .card-name .drug-icon {
    font-size: 20px;
}
.reminder-card .card-dosage {
    font-size: 14px;
    color: var(--gray);
    font-weight: 500;
    margin-top: 1px;
}
.reminder-card .streak-badge {
    font-size: 12px;
    font-weight: 700;
    color: var(--warning);
    background: rgba(245, 166, 35, 0.12);
    padding: 1px 8px;
    border-radius: 10px;
    margin-left: 4px;
}
.reminder-card .card-time {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
    flex-shrink: 0;
    margin-top: 2px;
}
.reminder-card .card-note {
    font-size: 13px;
    color: var(--gray);
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--gray-border);
    display: flex;
    align-items: center;
    gap: 4px;
}
.reminder-card .card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.reminder-card .btn-take {
    background: var(--primary-light);
    color: var(--primary);
    border: none;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
    min-height: 40px;
}
.reminder-card .btn-take:active {
    transform: scale(0.96);
}
.reminder-card .btn-take.taken-btn {
    background: var(--success-light);
    color: var(--success);
}
.reminder-card .btn-take.taken-btn::before {
    content: "✅ ";
}
.reminder-card .btn-take:not(.taken-btn)::before {
    content: "⏰ ";
}
.reminder-card .btn-delete {
    background: transparent;
    border: none;
    color: var(--gray);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 8px;
    transition: all 0.2s;
    min-height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.reminder-card .btn-delete:active {
    background: var(--danger-light);
    color: var(--danger);
}
.reminder-card .btn-miss {
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: rgba(0,0,0,0.03);
    color: var(--gray);
    transition: all 0.15s;
}
.reminder-card .btn-miss:active {
    background: var(--gray-border);
    color: #666;
}
.reminder-card .btn-miss.missed-btn {
    background: #FFF5F5;
    color: #E53E3E;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 20px;
    font-size: 14px;
    padding: 6px 18px;
    border: none;
}
.reminder-card .btn-miss.missed-btn::before {
    content: "⚠️ ";
}
.reminder-card .btn-miss.missed-btn:active {
    background: #FED7D7;
    transform: scale(0.96);
}


@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ===== 模态框 ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 100;
    display: none;
    align-items: flex-end;
    justify-content: center;
    animation: overlayIn 0.25s ease;
}
.modal-overlay.active {
    display: flex;
}

@keyframes overlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background: #fff;
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 24px 20px calc(20px + var(--safe-bottom));
    max-height: 92vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
}

.modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-light);
}
.modal .modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1A2634;
}
.modal .modal-header .close-btn {
    background: var(--gray-light);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.modal .modal-header .close-btn:active {
    background: var(--gray-border);
    transform: scale(0.92);
}

.modal .form-group {
    margin-bottom: 18px;
}
.modal .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 5px;
}
.modal .form-group label .required {
    color: var(--danger);
}
.modal .form-group input,
.modal .form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--gray-border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: var(--font);
    transition: border 0.2s;
    background: #FAFBFC;
    color: #1A2634;
    outline: none;
}
.modal .form-group input:focus,
.modal .form-group textarea:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(42, 125, 225, 0.08);
}
.modal .form-group textarea {
    resize: vertical;
    min-height: 56px;
}
.modal .form-group input[type="time"] {
    appearance: none;
    -webkit-appearance: none;
    padding: 10px 12px;
}

.modal .time-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}
.modal .time-item {
    display: flex;
    align-items: center;
    gap: 10px;
    animation: cardIn 0.2s ease;
}
.modal .time-item input[type="time"] {
    flex: 1;
}
.modal .time-item .remove-time {
    background: var(--danger-light);
    border: none;
    color: var(--danger);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.modal .time-item .remove-time:active {
    transform: scale(0.90);
    background: var(--danger);
    color: #fff;
}

.modal .btn-add-time {
    background: var(--gray-light);
    border: 2px dashed var(--gray-border);
    border-radius: var(--radius-sm);
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.modal .btn-add-time:active {
    background: var(--gray-border);
    transform: scale(0.98);
}

.modal .form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.modal .form-actions button {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 52px;
}
.modal .form-actions .btn-cancel {
    background: var(--gray-light);
    color: var(--gray);
}
.modal .form-actions .btn-cancel:active {
    background: var(--gray-border);
}
.modal .form-actions .btn-save {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 12px rgba(42, 125, 225, 0.25);
}
.modal .form-actions .btn-save:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(42, 125, 225, 0.2);
}

/* ===== 页面内通知 ===== */
.inapp-notification {
    position: fixed;
    bottom: calc(100px + var(--safe-bottom));
    left: 16px;
    right: 16px;
    max-width: 420px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: var(--shadow-lg);
    border-left: 6px solid var(--warning);
    z-index: 80;
    display: none;
    animation: notifIn 0.4s ease;
    transform-origin: bottom center;
}
.inapp-notification.active {
    display: block;
}
@keyframes notifIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.inapp-notification .notif-title {
    font-weight: 700;
    font-size: 16px;
    color: #1A2634;
}
.inapp-notification .notif-body {
    font-size: 14px;
    color: var(--gray);
    margin: 2px 0 10px;
}
.inapp-notification .notif-actions {
    display: flex;
    gap: 10px;
}
.inapp-notification .notif-actions button {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 38px;
}
.inapp-notification .notif-actions .btn-take-now {
    background: var(--success);
    color: #fff;
}
.inapp-notification .notif-actions .btn-take-now:active {
    transform: scale(0.96);
}
.inapp-notification .notif-actions .btn-dismiss {
    background: var(--gray-light);
    color: var(--gray);
}
.inapp-notification .notif-actions .btn-dismiss:active {
    background: var(--gray-border);
}

/* ===== 通知权限提示 ===== */
.perm-banner {
    background: var(--gray-light);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin: 0 16px 12px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    color: #2D3748;
    flex-wrap: wrap;
}
.perm-banner .perm-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 6px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
    min-height: 36px;
}
.perm-banner .perm-btn:active {
    transform: scale(0.95);
}

/* ===== 工具类 ===== */
.hidden { display: none !important; }
.text-muted { color: var(--gray); }

/* ===== 滚动条美化 ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-border); border-radius: 4px; }

/* ===== 响应式微调 ===== */
@media (max-width: 400px) {
    .app-header .title { font-size: 19px; }
    .app-header .date-badge { font-size: 12px; padding: 2px 10px; }
    .reminder-card .card-name { font-size: 15px; }
    .reminder-card .card-time { font-size: 17px; }
    .modal { padding: 18px 14px calc(14px + var(--safe-bottom)); }
}

@media (min-width: 600px) {
    body {
        background: #EDF2F7;
        display: flex;
        justify-content: center;
        align-items: flex-start;
    }
    .app-container {
        max-width: 500px;
        width: 100%;
        background: #F7F9FC;
        min-height: 100vh;
        min-height: 100dvh;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.06);
        position: relative;
    }
    .app-header { border-radius: 0 0 24px 24px; }
    .inapp-notification {
        left: 50%;
        transform: translateX(-50%);
        bottom: calc(100px + var(--safe-bottom));
        max-width: 440px;
    }
    .inapp-notification.active { transform: translateX(-50%) translateY(0); }
    @keyframes notifIn {
        from { opacity: 0; transform: translateX(-50%) translateY(30px) scale(0.95); }
        to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
    }
}

/* ===== 暗色模式支持 ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --gray-light: #2A2F3A;
        --gray-border: #3A3F4A;
        --primary-light: #1A3050;
    }
    body { background: #14181F; color: #E8EDF2; }
    .app-container { background: #14181F; }
    .app-header { background: linear-gradient(135deg, #1A5CA8, #0D3B6E); }
    .reminder-card { background: #1E232C; border-left-color: #3A7BD5; box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3); }
    .reminder-card .card-name { color: #E8EDF2; }
    .reminder-card .card-note { border-top-color: var(--gray-border); }
    .reminder-card.taken { opacity: 0.6; }
    .reminder-card.overdue { background: #2A1A1A; }
    .reminder-card.missed { border-left-color: #E53E3E; }
    .modal { background: #1E232C; }
    .modal .modal-header { border-bottom-color: var(--gray-border); }
    .modal .modal-header h2 { color: #E8EDF2; }
    .modal .form-group label { color: #C8D0D8; }
    .modal .form-group input,
    .modal .form-group textarea { background: #14181F; border-color: var(--gray-border); color: #E8EDF2; }
    .modal .form-group input:focus,
    .modal .form-group textarea:focus { border-color: var(--primary); background: #1A1F28; }
    .modal .btn-add-time { background: var(--gray-border); color: var(--gray); border-color: #4A4F5A; }
    .modal .form-actions .btn-cancel { background: var(--gray-border); color: var(--gray); }
    .inapp-notification { background: #1E232C; color: #E8EDF2; }
    .inapp-notification .notif-title { color: #E8EDF2; }
    .inapp-notification .notif-body { color: #A8B0B8; }
    .perm-banner { background: var(--gray-border); color: #C8D0D8; }
    .side-banner { background: #1A3A2A; color: var(--success); }
    .side-banner a { color: var(--success); }
    .empty-state h3 { color: #C8D0D8; }
    .empty-state p { color: var(--gray); }
    .modal .time-item .remove-time { background: #3A1A1A; color: var(--danger); }
    .modal .time-item .remove-time:active { background: var(--danger); color: #fff; }
    .reminder-card .btn-take { background: #1A3050; color: #6AA8F0; }
    .reminder-card .btn-take.taken-btn { background: #1A3A2A; color: var(--success); }
    .bottom-bar { background: rgba(30,35,44,0.95); border-top-color: var(--gray-border); }
    .bottom-tab { color: #7A8290; }
    .bottom-tab.active { color: #6AA8F0; }
    .auth-container { background: #1E232C; }
    .auth-container .auth-switch { color: #A8B0B8; }
    .account-sheet .sheet-content { background: #1E232C; }
    .account-sheet .sheet-item { color: #C8D0D8; }
    .account-sheet .sheet-item:active { background: rgba(255,255,255,0.06); }
    .account-sheet .sheet-cancel { border-top-color: var(--gray-border); color: #7A8290; }
    .miss-reason-card { background: #1A1F28; border-color: var(--gray-border); color: #C8D0D8; }
    .miss-reason-card:active { border-color: var(--primary); background: #1A3050; }
    .reminder-card .btn-miss { background: #2A2F3A; border-color: #4A4F5A; color: #7A8290; }
    .reminder-card .btn-miss:active { background: #3A3F4A; color: #A8B0B8; }
    .reminder-card .btn-miss.missed-btn { background: #2A1A1C; color: #E53E3E; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 20px; font-size: 14px; padding: 6px 18px; border: none; }
    .reminder-card .btn-miss.missed-btn:active { background: #3A1A1C; transform: scale(0.96); }
    .empty-state button { box-shadow: 0 3px 12px rgba(58,123,213,0.2) !important; }
}

/* ===== 登录/注册 ===== */
.auth-container {
    max-width: 400px;
    margin: 40px auto 0;
    padding: 24px 20px;
    display: none;
    position: relative;
}
.auth-container.active {
    display: block;
    animation: cardIn 0.35s ease;
}
.auth-container .auth-header {
    text-align: center;
    margin-bottom: 28px;
}
.auth-container .auth-header .auth-icon {
    width: 56px;
    height: 56px;
    display: block;
    margin: 0 auto 8px;
    border-radius: 10px;
}
.auth-container .auth-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1A2634;
}
.auth-container .auth-header p {
    font-size: 14px;
    color: #5A6270;
    margin-top: 4px;
}
.auth-container .close-btn {
    background: rgba(0,0,0,0.15);
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.auth-container .auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.auth-container .auth-form input,
.auth-container .auth-form select {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid var(--gray-border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: var(--font);
    background: #FAFBFC;
    outline: none;
    transition: border 0.2s;
    box-sizing: border-box;
}
.auth-container .auth-form input:focus,
.auth-container .auth-form select:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(42, 125, 225, 0.08);
}
.auth-container .auth-form .field-row {
    position: relative;
}
.auth-container .auth-form .field-row .field-star {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #E53E3E;
    font-size: 18px;
    font-weight: 700;
    z-index: 1;
    pointer-events: none;
}
.auth-container .auth-form .field-row input,
.auth-container .auth-form .field-row select {
    padding-left: 26px;
}
.auth-container .auth-form .btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 52px;
    margin-top: 4px;
    box-shadow: 0 4px 18px rgba(42, 125, 225, 0.35);
    position: relative;
    overflow: hidden;
}
.auth-container .auth-form .btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(42, 125, 225, 0.45);
}
.auth-container .auth-form .btn-submit:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(42, 125, 225, 0.25);
}
.auth-container .auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--gray);
}
.auth-container .auth-switch a {
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}
.auth-container .auth-error {
    background: var(--danger-light);
    color: var(--danger);
    font-size: 14px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    display: none;
}
.auth-container .auth-error.active { display: block; }

.auth-container { position: relative; }

.auth-disclaimer {
    text-align: center;
    font-size: 11px;
    color: #aaa;
    margin-top: 24px;
    line-height: 1.7;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

/* 暗色模式 - 登录页 */
@media (prefers-color-scheme: dark) {
    .auth-container { background: #1E232C; }
    .auth-container .auth-header h2 { color: #E8EDF2; }
    .auth-container .auth-header p { color: #7A8290; }
    .auth-container .auth-form input,
    .auth-container .auth-form select { background: #14181F; border-color: var(--gray-border); color: #E8EDF2; }
    .auth-container .auth-form input:focus,
    .auth-container .auth-form select:focus { background: #1A1F28; border-color: var(--primary); }
    .auth-container .auth-switch { color: #A8B0B8; }
    .auth-disclaimer { color: #7A8290; }
}
