/* ============================================
   番茄时钟 - 现代化前端样式
   Modern & Clean Design
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #e74c3c;
    --primary-hover: #c0392b;
    --primary-light: rgba(231, 76, 60, 0.1);
    --secondary: #3498db;
    --secondary-hover: #2980b9;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --dark: #2c3e50;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --transition: 0.2s ease;
    --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    font-family: var(--font);
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 50%, #a93226 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--gray-800);
    transition: background 0.5s ease;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.short-break {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 50%, #1e8449 100%);
}

body.long-break {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 50%, #1f6fa8 100%);
}

.container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* ============================================
   Toast Notification
   ============================================ */
.toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-120px);
    padding: 14px 28px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 15px;
    z-index: 9999;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.toast-show { transform: translateX(-50%) translateY(0); }
.toast-success { background: linear-gradient(135deg, #27ae60, #2ecc71); }
.toast-error { background: linear-gradient(135deg, #c0392b, #e74c3c); }
.toast-info { background: linear-gradient(135deg, #2980b9, #3498db); }

/* ============================================
   Header / Navigation
   ============================================ */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    color: white;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo a::before {
    content: "🍅";
    font-size: 24px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-menu {
    display: flex;
    gap: 4px;
    background: rgba(255,255,255,0.12);
    border-radius: 50px;
    padding: 4px;
}

.nav-link {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition);
    white-space: nowrap;
}

.nav-link:hover { background: rgba(255,255,255,0.15); color: white; }
.nav-link.active { background: rgba(255,255,255,0.25); color: white; font-weight: 600; }

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.username {
    color: white;
    font-size: 13px;
    font-weight: 600;
}

.role-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.role-guest { background: rgba(255,255,255,0.2); color: white; }
.role-normal { background: white; color: var(--gray-800); }
.role-monthly_vip { background: linear-gradient(135deg, #ffd700, #ffaa00); color: var(--gray-800); }
.role-yearly_vip { background: linear-gradient(135deg, #ff6b6b, #ee5a24); color: white; }

.btn-user-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    padding: 8px 14px;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 13px;
    font-weight: 500;
}

.btn-user-dropdown:hover { background: rgba(255,255,255,0.25); }

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 170px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    display: none;
    flex-direction: column;
    z-index: 100;
}

.user-menu.dropdown.active .dropdown-menu { display: flex; }

.dropdown-item {
    color: var(--gray-800);
    text-decoration: none;
    padding: 10px 14px;
    font-size: 14px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}

.dropdown-item:hover { background: var(--gray-100); }
.dropdown-item.active { color: var(--primary); font-weight: 600; }

.btn-auth-small {
    background: rgba(255,255,255,0.15);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-auth-small:hover { background: rgba(255,255,255,0.3); }
.btn-register { background: rgba(255,255,255,0.25); }

.language-switcher select {
    background: rgba(255,255,255,0.15);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 50px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
    appearance: none;
    padding-right: 28px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.language-switcher select option { background: var(--primary); color: white; }

/* ============================================
   Timer Section
   ============================================ */
.timer-section {
    background: rgba(255,255,255,0.97);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
}

.timer-tabs {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 36px;
    background: var(--gray-100);
    border-radius: 50px;
    padding: 4px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 22px;
    font-size: 14px;
    color: var(--gray-600);
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.25s ease;
    font-weight: 500;
}

.tab-btn:hover { color: var(--gray-800); }
.tab-btn.active {
    background: var(--primary);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

body.short-break .tab-btn.active { background: #27ae60; box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3); }
body.long-break .tab-btn.active { background: #2980b9; box-shadow: 0 4px 12px rgba(41, 128, 185, 0.3); }

.timer-display { text-align: center; margin-bottom: 32px; }

.timer {
    font-size: 128px;
    font-weight: 200;
    color: var(--gray-900);
    letter-spacing: -4px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.timer-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px 48px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(231, 76, 60, 0.45);
}

.btn-primary:active { transform: translateY(0); }

body.short-break .btn-primary { background: #27ae60; box-shadow: 0 6px 20px rgba(39, 174, 96, 0.35); }
body.short-break .btn-primary:hover { box-shadow: 0 10px 28px rgba(39, 174, 96, 0.45); }
body.long-break .btn-primary { background: #2980b9; box-shadow: 0 6px 20px rgba(41, 128, 185, 0.35); }
body.long-break .btn-primary:hover { box-shadow: 0 10px 28px rgba(41, 128, 185, 0.45); }

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
    border: none;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-secondary:hover { background: var(--gray-300); }

.btn-small { padding: 10px 22px; font-size: 14px; }

.pomodoro-counter {
    text-align: center;
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 500;
}

/* ============================================
   Tasks Section
   ============================================ */
.tasks-section {
    background: rgba(255,255,255,0.97);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
}

.tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.tasks-header h2 {
    font-size: 20px;
    color: var(--gray-900);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tasks-header h2::before { content: "📋"; font-size: 22px; }

.task-input-container { margin-bottom: 24px; }

.task-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 12px;
    transition: all var(--transition);
    font-family: var(--font);
}

.task-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.task-input-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.estimate-input {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gray-100);
    padding: 6px 12px;
    border-radius: 50px;
}

.estimate-input label {
    font-size: 13px;
    color: var(--gray-600);
    font-weight: 500;
}

.estimate-input input {
    width: 48px;
    padding: 6px;
    font-size: 14px;
    border: 2px solid var(--gray-200);
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
}

.estimate-input input:focus { outline: none; border-color: var(--primary); }

.estimate-row {
    display: flex;
    align-items: center;
}

.estimate-unit {
    font-size: 14px;
    color: var(--gray-700);
    font-weight: 600;
    white-space: nowrap;
    padding: 8px 14px;
    background: var(--gray-100);
    border-radius: 50px;
}

.tasks-list { min-height: 80px; }

.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--gray-400);
}

.empty-state::before {
    content: "☕";
    display: block;
    font-size: 40px;
    margin-bottom: 12px;
}

.empty-state p { font-size: 15px; }

.task-item {
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.task-item:hover {
    background: white;
    border-color: var(--gray-200);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.task-item.active {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 4px 16px rgba(231, 76, 60, 0.1);
}

body.short-break .task-item.active { border-color: #27ae60; }
body.long-break .task-item.active { border-color: #2980b9; }

.task-radio {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.task-content { flex: 1; min-width: 0; }

.task-title {
    font-size: 15px;
    color: var(--gray-900);
    margin-bottom: 4px;
    font-weight: 500;
    word-break: break-word;
}

.task-meta { font-size: 12px; color: var(--gray-500); }

.task-progress {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 10px;
    border-radius: 50px;
    font-weight: 600;
}

.task-actions { display: flex; gap: 6px; flex-shrink: 0; }

.task-btn {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-btn:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.task-btn.delete:hover {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger);
}

.estimated-finish-time {
    margin-top: 20px;
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--gray-100), white);
    border-radius: var(--radius);
    text-align: center;
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--gray-200);
}

#finishTimeValue { color: var(--primary); font-weight: 700; }

/* ============================================
   Modal
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal.active { display: flex; }

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h2 { font-size: 20px; color: var(--gray-900); font-weight: 700; }

.btn-close {
    background: none; border: none;
    font-size: 28px; color: var(--gray-400);
    cursor: pointer; line-height: 1;
    transition: color var(--transition);
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}

.btn-close:hover { color: var(--gray-800); background: var(--gray-100); }

.modal-body { padding: 28px; }

.settings-group { margin-bottom: 28px; }
.settings-group:last-child { margin-bottom: 0; }

.settings-group h3 {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    padding: 10px 14px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
}

.setting-item label { flex: 1; font-size: 14px; color: var(--gray-700); font-weight: 500; }

.setting-item input[type="number"] {
    width: 72px;
    padding: 8px;
    font-size: 14px;
    border: 2px solid var(--gray-200);
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
}

.setting-item input[type="number"]:focus { outline: none; border-color: var(--primary); }

.setting-item input[type="checkbox"] {
    width: 20px; height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.setting-item select {
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--gray-50);
    color: var(--gray-800);
    cursor: pointer;
    min-width: 140px;
    transition: border-color 0.2s;
}

.setting-item select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.alarm-select-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.alarm-select-row select {
    flex: 1;
}

.alarm-select-row .btn-small {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-300);
    background: var(--gray-50);
    color: var(--gray-700);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.alarm-select-row .btn-small:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0; width: 0; height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--gray-300);
    border-radius: 26px;
    transition: 0.3s;
}

.toggle-slider::before {
    content: "";
    position: absolute;
    height: 20px; width: 20px;
    left: 3px; bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider { background: var(--primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); }

.modal-footer {
    padding: 20px 28px;
    border-top: 1px solid var(--gray-200);
    text-align: right;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    text-align: center;
    padding: 32px 20px;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 13px;
    transition: color var(--transition);
}

.footer-links a:hover { color: white; }

/* ============================================
   Auth Pages
   ============================================ */
.auth-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-box {
    background: white;
    border-radius: var(--radius-lg);
    padding: 44px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
}

.auth-box h1 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 32px;
    font-size: 28px;
    font-weight: 700;
}

.auth-box .form-group { margin-bottom: 18px; }

.auth-box .form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--gray-800);
    font-weight: 600;
    font-size: 14px;
}

.auth-box .form-group input,
.auth-box .form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: var(--font);
    transition: all var(--transition);
}

.auth-box .form-group input:focus,
.auth-box .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.captcha-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-group input { flex: 1; }

.captcha-img {
    height: 46px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid var(--gray-200);
}

.email-code-group {
    display: flex;
    gap: 10px;
}

.email-code-group input { flex: 1; }

.btn-send-code {
    padding: 0 16px;
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition);
}

.btn-send-code:hover { background: var(--gray-200); }
.btn-send-code:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-auth {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.btn-auth:hover { background: var(--primary-hover); transform: translateY(-1px); }

.auth-links {
    text-align: center;
    margin-top: 22px;
    color: var(--gray-600);
    font-size: 14px;
}

.auth-links a { color: var(--primary); text-decoration: none; font-weight: 600; }
.auth-links a:hover { text-decoration: underline; }

/* ============================================
   Profile Page
   ============================================ */
.profile-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    background: rgba(255,255,255,0.97);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 28px;
    box-shadow: var(--shadow);
    flex-wrap: wrap;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gray-200);
    border: 3px solid white;
    box-shadow: var(--shadow-sm);
}

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

.avatar-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), #e67e22);
    color: white;
    font-size: 40px;
    font-weight: 700;
}

.profile-info { flex: 1; min-width: 200px; }

.profile-info h2 {
    font-size: 24px;
    color: var(--gray-900);
    margin-bottom: 8px;
    font-weight: 700;
}

.profile-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-stats {
    display: flex;
    gap: 24px;
    margin-top: 16px;
    padding: 16px 20px;
    background: var(--gray-100);
    border-radius: var(--radius);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-item .stat-label {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-item .stat-value {
    font-size: 22px;
    color: var(--gray-900);
    font-weight: 700;
}

.profile-motto {
    font-style: italic;
    color: var(--gray-600);
    font-size: 14px;
    margin-top: 12px;
    padding: 12px 16px;
    background: var(--gray-100);
    border-left: 3px solid var(--primary);
    border-radius: 4px;
    width: 100%;
}

/* ============================================
   Profile - Check-in
   ============================================ */
.checkin-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.checkin-stats {
    display: flex;
    gap: 32px;
    justify-content: center;
}

.checkin-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.checkin-num {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.checkin-label {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-checkin {
    padding: 14px 40px;
    background: linear-gradient(135deg, var(--primary), #e67e22);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(231, 76, 60, 0.35);
    letter-spacing: 1px;
}

.btn-checkin:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(231, 76, 60, 0.45);
}

.btn-checkin:active {
    transform: translateY(0);
}

.btn-checkin.checked-in {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    box-shadow: 0 4px 16px rgba(39, 174, 96, 0.35);
    cursor: default;
    opacity: 0.85;
}

.btn-checkin:disabled {
    cursor: not-allowed;
}

/* ============================================
   Profile - Focus Goals
   ============================================ */
.goals-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.goal-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.goal-label {
    font-size: 14px;
    color: var(--gray-700);
    font-weight: 600;
}

.goal-progress-text {
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: var(--gray-200);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #e67e22);
    border-radius: 10px;
    transition: width 0.5s ease;
    min-width: 0;
}

.progress-fill.progress-weekly {
    background: linear-gradient(90deg, var(--secondary), #1abc9c);
}

.goals-form {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
}

.goals-inputs {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.goals-inputs .form-group {
    flex: 1;
    min-width: 120px;
    margin-bottom: 0;
}

.goals-inputs .form-group label {
    font-size: 12px;
    margin-bottom: 4px;
}

.goals-inputs .form-group input {
    padding: 8px 12px;
    font-size: 14px;
}

.goals-inputs .btn-save-small {
    flex-shrink: 0;
    align-self: flex-end;
}

/* ============================================
   Profile - Achievements
   ============================================ */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
}

.achievement-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
}

.achievement-badge.earned {
    background: linear-gradient(135deg, #fff9e6, #fff3cc);
    border: 2px solid #ffd700;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
}

.achievement-badge.earned:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.35);
}

.achievement-badge.locked {
    background: var(--gray-100);
    border: 2px dashed var(--gray-300);
    opacity: 0.5;
}

.achievement-icon {
    font-size: 28px;
    line-height: 1;
}

.achievement-name {
    font-size: 11px;
    color: var(--gray-700);
    font-weight: 600;
    line-height: 1.3;
    word-break: break-word;
}

.achievement-badge.locked .achievement-name {
    color: var(--gray-400);
}

/* ============================================
   Profile - Referral
   ============================================ */
.referral-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.referral-hint {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.6;
    padding: 12px 16px;
    background: linear-gradient(135deg, #eff6ff, #f0f9ff);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--secondary);
}

.referral-link-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.referral-link-row input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: monospace;
    background: var(--gray-100);
    color: var(--gray-700);
    cursor: pointer;
    transition: all var(--transition);
}

.referral-link-row input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.referral-count {
    font-size: 14px;
    color: var(--gray-700);
    font-weight: 600;
}

.referral-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.referral-user {
    display: inline-block;
    padding: 4px 12px;
    background: var(--gray-100);
    border-radius: 50px;
    font-size: 12px;
    color: var(--gray-600);
    font-weight: 500;
}

.profile-section-divider {
    height: 1px;
    background: var(--border-color, #eee);
    margin: 24px 0;
}

/* ============================================
   Task Category
   ============================================ */
.category-select {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gray-100);
    padding: 6px 12px;
    border-radius: 50px;
}

.category-select label {
    font-size: 13px;
    color: var(--gray-600);
    font-weight: 500;
    white-space: nowrap;
}

.category-select select {
    padding: 6px 10px;
    border: 2px solid var(--gray-200);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    background: white;
    color: var(--gray-700);
    cursor: pointer;
    min-width: 80px;
}

.category-select select:focus {
    outline: none;
    border-color: var(--primary);
}

.task-category-tag {
    display: inline-block;
    padding: 2px 10px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
}

/* ============================================
   Focus Note Modal
   ============================================ */
.note-hint {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 12px;
    line-height: 1.5;
}

#focusNoteInput {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font);
    resize: vertical;
    min-height: 80px;
    transition: all var(--transition);
}

#focusNoteInput:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.vip-expire-info {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: var(--gray-800);
    font-size: 12px;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 28px;
}

.profile-card {
    background: rgba(255,255,255,0.97);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
    margin-bottom: 28px;
}

.profile-card h3 {
    font-size: 17px;
    color: var(--gray-900);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-100);
    font-weight: 700;
}

.form-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-100);
}

.form-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Links List */
.links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    transition: all 0.2s;
}

.link-item:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.link-title {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.link-title:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.link-actions {
    display: flex;
    gap: 4px;
    margin-left: 6px;
}

.link-actions .btn-small {
    padding: 3px 8px;
    font-size: 12px;
}

/* Edit Link Modal */
.edit-link-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.edit-link-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
}

.edit-link-box {
    position: relative;
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.edit-link-box h4 {
    margin: 0 0 16px;
    font-size: 16px;
    color: var(--gray-900);
}

.edit-link-box .form-group {
    margin-bottom: 14px;
}

.edit-link-box .form-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
}

.edit-link-box .form-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.edit-link-box .form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.edit-link-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    justify-content: flex-end;
}

/* ============================================
   Admin Pages
   ============================================ */
.admin-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

.admin-container-wide {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.admin-card {
    background: rgba(255,255,255,0.97);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
}

.admin-card h1 { font-size: 24px; color: var(--gray-900); margin-bottom: 8px; font-weight: 700; }

.admin-subtitle { color: var(--gray-600); margin-bottom: 24px; font-size: 14px; }

.admin-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 17px;
    color: var(--gray-900);
    margin: 28px 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-100);
    font-weight: 700;
}

.btn-save {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-save:hover { background: var(--primary-hover); }

.btn-save-small {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-save-small:hover { background: var(--primary-hover); }

.btn-outline {
    padding: 8px 16px;
    background: transparent;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    transition: all var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-outline:hover { background: var(--gray-100); border-color: var(--gray-300); }

.btn-outline.btn-danger { color: var(--danger); border-color: rgba(231, 76, 60, 0.3); }
.btn-outline.btn-danger:hover { background: rgba(231, 76, 60, 0.05); }

.form-group { margin-bottom: 18px; }

.form-group-inline .checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-800);
    cursor: pointer;
}

.form-group-inline .checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--gray-800);
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: var(--font);
    transition: all var(--transition);
}

.form-group textarea { resize: vertical; min-height: 80px; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 14px; font-weight: 500; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

.hint { font-size: 12px; color: var(--gray-500); margin-top: 4px; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Admin subnav */
.stats-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--gray-100);
    padding-bottom: 14px;
    flex-wrap: wrap;
}

.stats-tab {
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 14px;
    transition: all var(--transition);
}

.stats-tab:hover { background: var(--gray-100); color: var(--gray-800); }
.stats-tab.active { background: var(--primary); color: white; font-weight: 600; }

/* Admin tables */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th, .admin-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}

.admin-table th { background: var(--gray-100); color: var(--gray-700); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.admin-table tr:hover td { background: var(--gray-50); }

.user-link { color: var(--primary); text-decoration: none; font-weight: 600; }
.user-link:hover { text-decoration: underline; }

.status-badge { display: inline-block; padding: 4px 12px; border-radius: 50px; font-size: 12px; font-weight: 600; }
.status-badge.active { background: #f0fdf4; color: #166534; }
.status-badge.banned { background: #fef2f2; color: #991b1b; }

.inline-form { display: inline-flex; gap: 4px; }

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.info-item {
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.info-label { display: block; font-size: 11px; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; font-weight: 600; }
.info-value { display: block; font-size: 16px; color: var(--gray-900); font-weight: 700; word-break: break-all; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.stat-box {
    background: linear-gradient(135deg, var(--primary), #e67e22);
    color: white;
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-box .stat-label { font-size: 12px; opacity: 0.9; font-weight: 500; }
.stat-box .stat-value { font-size: 28px; font-weight: 700; }

/* Role counts */
.role-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.role-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
    padding: 14px 18px;
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--gray-800);
    transition: all var(--transition);
}

.role-count:hover, .role-count.active { border-color: var(--primary); background: white; }
.role-count .count-label { font-size: 12px; color: var(--gray-500); }
.role-count .count-value { font-size: 22px; font-weight: 700; color: var(--primary); }

/* ============================================
   Countdown Page
   ============================================ */
/* ... (需要保留倒计时样式) ... */

/* ============================================
   About Section
   ============================================ */
.about-section {
    background: rgba(255,255,255,0.97);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-top: 20px;
    box-shadow: var(--shadow);
}

.about-section h2 { font-size: 22px; color: var(--gray-900); margin-bottom: 16px; font-weight: 700; }
.about-section h3 { font-size: 17px; color: var(--gray-800); margin-top: 20px; margin-bottom: 10px; font-weight: 600; }
.about-section p { color: var(--gray-600); line-height: 1.7; margin-bottom: 14px; }
.about-section ol, .about-section ul { color: var(--gray-600); line-height: 1.8; padding-left: 20px; }
.about-section li { margin-bottom: 8px; }

.info-section {
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 22px;
    margin-top: 24px;
    text-align: left;
}

.info-section h3 { font-size: 16px; color: var(--gray-900); margin-bottom: 12px; font-weight: 600; }
.info-section ol, .info-section ul { color: var(--gray-600); line-height: 1.8; padding-left: 20px; margin-bottom: 18px; }
.info-section li { margin-bottom: 6px; }
.info-section ol:last-child, .info-section ul:last-child { margin-bottom: 0; }

/* ============================================
   Scenarios Section
   ============================================ */
.scenarios-section {
    background: rgba(255,255,255,0.97);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin: 20px 0;
    box-shadow: var(--shadow);
}

.scenarios-section h2 {
    font-size: 22px;
    margin-bottom: 24px;
    color: var(--gray-900);
    text-align: center;
    font-weight: 700;
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.scenario-card {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
    cursor: default;
}

.scenario-card:nth-child(2) { background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%); box-shadow: 0 4px 16px rgba(6, 182, 212, 0.3); }
.scenario-card:nth-child(3) { background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%); box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3); }
.scenario-card:nth-child(4) { background: linear-gradient(135deg, #10b981 0%, #34d399 100%); box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3); }

.scenario-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.scenario-icon { font-size: 44px; margin-bottom: 14px; display: block; }
.scenario-card h3 { font-size: 16px; margin: 0; color: white; font-weight: 600; }

/* ============================================
   Memo Page
   ============================================ */
.memo-section {
    background: rgba(255,255,255,0.97);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
}

.memo-section .section-label {
    font-size: 22px;
    color: var(--gray-900);
    margin-bottom: 20px;
    font-weight: 700;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

.memo-section .section-label::before { content: "📝"; font-size: 24px; }

.memo-limit-hint {
    background: linear-gradient(135deg, var(--gray-100), white);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--gray-700);
    border-left: 4px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.memo-limit-hint .current-limit {
    color: var(--primary);
    font-weight: 700;
    background: white;
    padding: 4px 14px;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
}

.memo-list { min-height: 100px; text-align: left; }

.memo-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 10px;
    cursor: move;
    transition: all 0.3s ease;
    border: 2px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
}

.memo-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.memo-item.dragging { opacity: 0.5; transform: rotate(2deg); }

.memo-drag-handle {
    color: var(--gray-400);
    cursor: move;
    padding-top: 4px;
    flex-shrink: 0;
    font-size: 18px;
    transition: color var(--transition);
}

.memo-item:hover .memo-drag-handle { color: var(--primary); }

.memo-index {
    font-size: 13px;
    color: var(--primary);
    min-width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}

.memo-content { flex: 1; min-width: 0; }

.memo-title {
    font-size: 16px;
    color: var(--gray-900);
    font-weight: 600;
    margin-bottom: 6px;
    word-break: break-word;
}

.memo-summary-text {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 8px;
    word-break: break-word;
    white-space: pre-wrap;
}

.memo-meta {
    font-size: 12px;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 6px;
}

.memo-meta::before { content: "🕒"; font-size: 13px; }

.memo-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: flex-start;
}

.memo-actions button {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.memo-actions button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.memo-form {
    background: linear-gradient(135deg, var(--gray-100), white);
    border-radius: var(--radius);
    padding: 24px;
    text-align: left;
    margin-top: 28px;
    border: 2px solid var(--gray-100);
}

.memo-form .form-label {
    font-size: 17px;
    color: var(--gray-900);
    margin-bottom: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.memo-form .form-label::before { content: "✏️"; font-size: 18px; }

.memo-form .form-group { margin-bottom: 14px; }

.memo-form input,
.memo-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: var(--font);
    resize: vertical;
    transition: all var(--transition);
    background: white;
}

.memo-form input:focus,
.memo-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.memo-edit-form { flex: 1; width: 100%; }
.memo-edit-form .form-group { margin-bottom: 10px; }
.memo-edit-form input, .memo-edit-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font);
    resize: vertical;
}

.memo-edit-form input:focus,
.memo-edit-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.memo-edit-actions { display: flex; gap: 8px; }

/* ============================================
   Countdown Page
   ============================================ */
.clock-section, .countdown-section { text-align: center; }

.section-label { font-size: 16px; color: var(--gray-600); margin-bottom: 16px; font-weight: 500; }

.big-clock, .big-countdown {
    font-size: 100px;
    font-weight: 200;
    color: var(--gray-900);
    letter-spacing: -3px;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    margin-bottom: 20px;
}

.clock-actions { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }

.countdown-display-area {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--gray-100);
}

.countdown-name { font-size: 24px; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; }
.countdown-note { font-size: 14px; color: var(--gray-600); margin-bottom: 20px; }

.countdown-list { min-height: 60px; margin-bottom: 24px; }

.countdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all var(--transition);
    text-align: left;
    border: 2px solid transparent;
}

.countdown-item:hover { background: white; border-color: var(--gray-200); }
.countdown-item.active { border-color: var(--primary); background: white; }

.countdown-delete { margin-left: auto; flex-shrink: 0; }

.countdown-form {
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 22px;
    text-align: left;
}

.countdown-form .form-label { font-size: 16px; color: var(--gray-900); margin-bottom: 14px; font-weight: 600; }
.countdown-form .form-row { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.countdown-form .form-group { margin-bottom: 14px; }

.countdown-form input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: var(--font);
}

.countdown-form input:focus { outline: none; border-color: var(--primary); }

.duration-group { display: flex; align-items: center; gap: 8px; }
.duration-unit { font-size: 14px; color: var(--gray-600); font-weight: 500; }

.info-list-left { text-align: left; padding-left: 20px; }
.info-list-left li { margin-bottom: 8px; line-height: 1.7; }

/* Fullscreen */
.fullscreen-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    cursor: pointer;
}

.fullscreen-content { text-align: center; color: white; }

.fullscreen-clock, .fullscreen-countdown {
    font-size: 240px;
    font-weight: 300;
    letter-spacing: -6px;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.fullscreen-countdown-name { font-size: 36px; font-weight: 700; margin-bottom: 10px; }
.fullscreen-countdown-note { font-size: 18px; color: rgba(255,255,255,0.7); margin-bottom: 30px; }

.btn-exit-fullscreen {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-exit-fullscreen:hover { background: rgba(255,255,255,0.25); }
.btn-exit-fullscreen.auto-hidden { opacity: 0; pointer-events: none; }

/* ============================================
   Stats Page
   ============================================ */
.stats-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.stats-header {
    background: rgba(255,255,255,0.97);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.stats-header h1 { font-size: 24px; color: var(--gray-900); margin-bottom: 18px; font-weight: 700; }

.period-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.period-tab {
    padding: 8px 18px;
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    text-decoration: none;
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.period-tab:hover { border-color: var(--primary); color: var(--primary); }
.period-tab.active { background: var(--primary); border-color: var(--primary); color: white; }

.stats-card {
    background: rgba(255,255,255,0.97);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
}

.stats-card h3 { font-size: 18px; color: var(--gray-900); margin-bottom: 10px; font-weight: 700; }

.chart-container { position: relative; height: 300px; margin-top: 20px; }

.records-table-wrapper { overflow-x: auto; }
.records-table { width: 100%; border-collapse: collapse; min-width: 500px; }
.records-table th, .records-table td { padding: 12px; text-align: left; border-bottom: 1px solid var(--gray-100); }
.records-table th { color: var(--gray-600); font-weight: 600; background: var(--gray-100); font-size: 12px; text-transform: uppercase; }
.records-table .empty-cell { text-align: center; color: var(--gray-400); padding: 40px; }

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
    font-size: 14px;
    font-weight: 500;
}

.pagination a:hover { background: var(--gray-100); }
.pagination .current { background: var(--primary); color: white; border-color: var(--primary); }

/* ============================================
   Static Pages
   ============================================ */
.page-section {
    background: rgba(255,255,255,0.97);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin: 20px 0;
    color: var(--gray-800);
    box-shadow: var(--shadow);
}

.page-title {
    font-size: 28px;
    margin-bottom: 24px;
    color: var(--gray-900);
    border-bottom: 3px solid var(--primary);
    padding-bottom: 12px;
    font-weight: 700;
}

.page-content h2 { font-size: 22px; margin: 24px 0 12px; color: var(--gray-900); }
.page-content h3 { font-size: 18px; margin: 20px 0 10px; color: var(--gray-800); }
.page-content p { margin-bottom: 12px; line-height: 1.7; }
.page-content ul { margin: 12px 0 12px 20px; line-height: 1.8; }
.page-content li { margin-bottom: 6px; }

/* ============================================
   Install Page
   ============================================ */
.install-page { display: flex; flex-direction: column; min-height: 100vh; padding: 40px 20px; }
.install-box { width: 100%; max-width: 600px; margin: 0 auto; background: white; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-lg); }
.install-box h1 { color: var(--primary); margin-bottom: 10px; text-align: center; font-weight: 700; }
.install-box .subtitle { text-align: center; color: var(--gray-600); margin-bottom: 30px; }
.install-box .section-title { color: var(--gray-800); font-size: 16px; margin: 24px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--gray-100); font-weight: 700; }
.install-box .form-group { margin-bottom: 16px; }
.install-box .form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; color: var(--gray-700); }
.install-box .form-group input,
.install-box .form-group select { width: 100%; padding: 10px 14px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 14px; transition: border-color 0.2s; }
.install-box .form-group input:focus,
.install-box .form-group select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.install-box .hint { font-size: 12px; color: var(--gray-500); margin-top: 4px; }
.install-box .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.install-box .db-fields { display: none; }
.install-box .db-fields.active { display: block; }
.btn-install { width: 100%; padding: 15px; background: var(--primary); color: white; border: none; border-radius: var(--radius-sm); font-size: 16px; font-weight: 700; cursor: pointer; margin-top: 20px; }
.btn-install:hover { background: var(--primary-hover); }

@media (max-width: 768px) {
    .install-box { padding: 24px; }
    .install-box .row { grid-template-columns: 1fr; }
}

/* ============================================
   SEO & Admin Misc
   ============================================ */
.section-hint {
    font-size: 13px;
    color: var(--gray-600);
    margin: 8px 0 16px;
    padding: 10px 14px;
    background: #eff6ff;
    border-left: 3px solid var(--secondary);
    border-radius: 4px;
}

.admin-badge { display: inline-block; padding: 4px 14px; background: var(--primary); color: white; border-radius: 50px; font-size: 12px; font-weight: 600; }
.admin-protected-notice { padding: 16px; background: #fffbeb; border: 1px solid #fcd34d; border-radius: var(--radius-sm); color: #92400e; text-align: center; margin: 20px 0; font-weight: 500; }

/* 邀请码点击复制 */
.code-clickable {
    cursor: pointer;
    transition: all 0.2s;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    user-select: all;
}

.code-clickable:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.code-clickable::after {
    content: "📋";
    font-size: 12px;
    margin-left: 6px;
    opacity: 0;
    transition: opacity 0.2s;
}

.code-clickable:hover::after {
    opacity: 0.7;
}

.code-clickable.copied {
    background: #f0fdf4;
    color: #166534;
    font-weight: 600;
}

.clickable-avatar { cursor: pointer; position: relative; transition: opacity 0.3s; }
.clickable-avatar:hover { opacity: 0.8; }
.avatar-edit-hint { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.6); color: white; font-size: 11px; padding: 4px; text-align: center; border-radius: 0 0 50% 50%; opacity: 0; transition: opacity 0.3s; }
.clickable-avatar:hover .avatar-edit-hint { opacity: 1; }
.avatar-upload-form { background: var(--gray-100); padding: 16px; border-radius: var(--radius-sm); margin: 16px 0; border: 2px dashed var(--gray-300); }

/* ============================================
   Utility
   ============================================ */
.hidden { display: none !important; }
.mb-0 { margin-bottom: 0 !important; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .container { padding: 12px; }
    .header { flex-direction: column; gap: 12px; }
    .header-actions { flex-wrap: wrap; justify-content: center; }
    .nav-menu { order: 3; width: 100%; justify-content: center; overflow-x: auto; }
    .timer { font-size: 80px; }
    .timer-section { padding: 28px 16px; }
    .tasks-section { padding: 24px 16px; }
    .task-input-actions { flex-direction: column; align-items: stretch; }
    .estimate-input { justify-content: space-between; }
    .modal-content { width: 95%; }
    .row { grid-template-columns: 1fr; }
    .profile-header { text-align: center; justify-content: center; }
    .profile-stats { flex-direction: column; gap: 12px; }
    .profile-grid { grid-template-columns: 1fr; }
    .big-clock, .big-countdown { font-size: 60px; }
    .fullscreen-clock, .fullscreen-countdown { font-size: 80px; }
    .scenarios-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .countdown-form .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .timer { font-size: 56px; }
    .timer-tabs { flex-direction: column; }
    .tab-btn { width: 100%; }
    .btn-primary { width: 100%; padding: 14px 32px; }
    .auth-box { padding: 28px 20px; }
    .stats-grid { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
    .email-code-group, .captcha-group { flex-direction: column; }
    .captcha-img { width: 100%; height: auto; max-height: 50px; object-fit: contain; }
}

/* ============================================================
   专注报告页面样式 - 番茄红主题 / Report Page - Tomato Theme
   ============================================================ */

.report-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    width: 100%;
}

/* 非VIP锁定状态 */
.report-locked {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
    padding: 16px;
}

.report-locked .locked-content {
    background: rgba(255,255,255,0.97);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    box-shadow: var(--shadow);
    max-width: 480px;
    width: 100%;
    border: 1px solid rgba(255,255,255,0.2);
}

.report-locked .locked-icon-large {
    font-size: 64px;
    display: block;
    margin-bottom: 16px;
}

.report-locked h2 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--gray-900);
    font-weight: 700;
}

.report-locked p {
    color: var(--gray-600);
    margin-bottom: 24px;
    line-height: 1.6;
    font-size: 15px;
}

.report-locked .btn-primary {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--primary) 0%, #e67e22 100%);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.25s ease;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.35);
    border: none;
}

.report-locked .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(231, 76, 60, 0.45);
}

/* 报告头部 */
.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.report-header h1 {
    font-size: 28px;
    margin: 0;
    color: white;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
    word-break: break-word;
}

.report-tabs {
    display: flex;
    gap: 4px;
    background: rgba(255,255,255,0.97);
    border-radius: 50px;
    padding: 4px;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.report-tab {
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
    font-size: 14px;
}

.report-tab.active {
    background: linear-gradient(135deg, var(--primary) 0%, #e67e22 100%);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.report-tab:hover:not(.active) {
    color: var(--primary);
    background: var(--primary-light);
}

/* 日期标题 */
.report-date-header {
    margin-bottom: 20px;
}

.report-date-header h2 {
    font-size: 18px;
    color: white;
    margin: 0;
    word-break: break-word;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* 统计卡片网格 */
.report-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.report-stat-card {
    background: rgba(255,255,255,0.97);
    border-radius: var(--radius-lg);
    padding: 22px 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.25s ease;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
}

.report-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.report-stat-card.primary {
    background: linear-gradient(135deg, var(--primary) 0%, #e67e22 100%);
    color: #fff;
    border: none;
}

.report-stat-card.primary .report-stat-label,
.report-stat-card.primary .report-stat-unit {
    color: rgba(255,255,255,0.85);
}

.report-stat-card.positive .report-stat-value {
    color: var(--success);
}

.report-stat-card.negative .report-stat-value {
    color: var(--danger);
}

.report-stat-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
    line-height: 1;
}

.report-stat-value {
    font-size: 32px;
    font-weight: 700;
    display: block;
    color: var(--gray-900);
    line-height: 1.2;
    word-break: break-word;
    font-variant-numeric: tabular-nums;
}

.report-stat-card.primary .report-stat-value {
    color: #fff;
}

.report-stat-unit {
    font-size: 13px;
    color: var(--gray-500);
    display: block;
    margin: 4px 0;
    font-weight: 500;
}

.report-stat-label {
    font-size: 13px;
    color: var(--gray-500);
    display: block;
    margin-top: 4px;
    font-weight: 600;
}

/* 报告卡片 */
.report-card {
    background: rgba(255,255,255,0.97);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
}

.report-card h3 {
    font-size: 18px;
    margin: 0 0 20px;
    color: var(--gray-900);
    word-break: break-word;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-card h3::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, var(--primary), #e67e22);
    border-radius: 2px;
}

/* 小时分布图表 */
.hourly-chart {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 180px;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-200);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    box-sizing: border-box;
}

.hour-bar-wrap {
    flex: 1 0 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
    min-width: 14px;
}

.hour-bar {
    width: 100%;
    max-width: 28px;
    border-radius: 4px 4px 0 0;
    min-height: 2px;
    transition: height 0.3s;
}

.hour-bar.active {
    background: linear-gradient(180deg, var(--primary) 0%, #c0392b 100%);
}

.hour-bar.inactive {
    background: linear-gradient(180deg, var(--gray-300) 0%, var(--gray-400) 100%);
    opacity: 0.35;
}

.hour-label {
    font-size: 10px;
    color: var(--gray-500);
    margin-top: 6px;
    white-space: nowrap;
    font-weight: 500;
}

/* 图表洞察文字 */
.chart-insight {
    margin-top: 14px;
    font-size: 14px;
    color: var(--gray-600);
    text-align: center;
    word-break: break-word;
    line-height: 1.6;
}

.chart-insights {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chart-insights .chart-insight {
    text-align: left;
    word-break: break-word;
    background: var(--gray-100);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin: 0;
}

/* 每周趋势图 */
.weekly-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 200px;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-200);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    box-sizing: border-box;
}

.day-bar-wrap {
    flex: 1 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
    min-width: 40px;
}

.day-bar-value {
    font-size: 11px;
    color: var(--gray-600);
    margin-bottom: 4px;
    font-weight: 700;
    white-space: nowrap;
}

.day-bar {
    width: 100%;
    max-width: 40px;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(180deg, var(--primary) 0%, #c0392b 100%);
    min-height: 3px;
    transition: height 0.3s;
}

.day-bar.today {
    background: linear-gradient(180deg, #ff6b6b 0%, #ee5a24 100%);
    box-shadow: 0 0 12px rgba(231, 76, 60, 0.3);
}

.day-label {
    font-size: 12px;
    color: var(--gray-800);
    margin-top: 6px;
    font-weight: 600;
    white-space: nowrap;
}

.day-date {
    font-size: 10px;
    color: var(--gray-500);
    white-space: nowrap;
    font-weight: 500;
}

/* 模式分布 */
.mode-distribution {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mode-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mode-bar-wrap {
    height: 28px;
    background: var(--gray-100);
    border-radius: 6px;
    overflow: hidden;
}

.mode-bar {
    height: 100%;
    border-radius: 6px;
    transition: width 0.6s ease;
}

.mode-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-800);
    flex-wrap: wrap;
    font-weight: 500;
}

.mode-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.mode-count {
    margin-left: auto;
    font-size: 13px;
    color: var(--gray-500);
    white-space: nowrap;
    font-weight: 600;
    background: var(--gray-100);
    padding: 2px 10px;
    border-radius: 50px;
}

/* 上周对比 */
.comparison-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.comparison-item {
    text-align: center;
    min-width: 0;
    flex: 1;
    max-width: 200px;
}

.comparison-label {
    display: block;
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-value {
    font-size: 26px;
    font-weight: 700;
    word-break: break-word;
    color: var(--gray-900);
    font-variant-numeric: tabular-nums;
}

.comparison-value.current {
    color: var(--primary);
}

.comparison-value.previous {
    color: var(--gray-500);
}

.comparison-arrow {
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.arrow-up {
    color: var(--success);
}

.arrow-down {
    color: var(--danger);
}

.arrow-same {
    color: var(--gray-400);
}

/* 邮件订阅 */
.email-subscription {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.subscription-info p {
    font-size: 14px;
    color: var(--gray-600);
    margin: 0 0 6px;
    font-weight: 500;
}

.subscription-status {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 50px;
    background: var(--gray-100);
    color: var(--gray-500);
    display: inline-block;
    font-weight: 600;
}

.subscription-status.active {
    background: #e8f5e9;
    color: var(--success);
}

/* 报告页切换开关（继承全局toggle-switch但定制颜色） */
.report-card .toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--primary) 0%, #e67e22 100%);
}

/* 分享按钮 */
.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    transition: all 0.25s ease;
    white-space: nowrap;
    flex: 1;
    min-width: 120px;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.share-twitter {
    background: #1a1a1a;
}

.share-facebook {
    background: #1877f2;
}

.share-weibo {
    background: #e6162d;
}

.share-copy {
    background: var(--gray-600);
}

/* 下拉菜单锁定样式 */
.dropdown-item.locked {
    cursor: not-allowed;
    opacity: 0.7;
}

.dropdown-item.locked:hover {
    background: transparent;
    color: inherit;
}

.lock-icon {
    font-size: 12px;
    margin-left: 4px;
}

/* ============================================================
   报告页面响应式 - 平板端 (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
    .report-container {
        padding: 16px;
    }
    .report-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .report-stat-card {
        padding: 18px 14px;
    }
    .report-stat-value {
        font-size: 26px;
    }
    .report-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .report-header h1 {
        font-size: 24px;
    }
    .report-tab {
        padding: 8px 16px;
        font-size: 14px;
    }
    .report-card {
        padding: 22px;
        margin-bottom: 16px;
    }
    .report-locked {
        min-height: 300px;
        padding: 12px;
    }
    .report-locked .locked-content {
        padding: 36px 24px;
    }
    .report-locked h2 {
        font-size: 20px;
    }
    .comparison-grid {
        flex-direction: row;
        gap: 16px;
    }
    .comparison-item {
        max-width: none;
    }
    .share-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .share-btn {
        width: 100%;
        min-width: 0;
    }
    .hourly-chart {
        height: 150px;
        gap: 3px;
    }
    .hour-bar-wrap {
        flex: 0 0 16px;
        min-width: 16px;
    }
    .hour-label {
        font-size: 9px;
    }
    .weekly-chart {
        height: 170px;
        gap: 6px;
    }
    .day-bar-wrap {
        flex: 0 0 48px;
        min-width: 48px;
    }
    .day-bar {
        max-width: 36px;
    }
    .email-subscription {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .mode-label {
        font-size: 13px;
    }
}

/* ============================================================
   报告页面响应式 - 手机端 (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
    .report-container {
        padding: 12px;
    }
    .report-stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .report-stat-card {
        padding: 16px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .report-stat-card .report-stat-icon {
        font-size: 24px;
        margin-bottom: 6px;
    }
    .report-stat-value {
        font-size: 28px;
    }
    .report-stat-unit {
        font-size: 12px;
    }
    .report-stat-label {
        font-size: 12px;
    }
    .report-header h1 {
        font-size: 22px;
    }
    .report-tab {
        padding: 8px 14px;
        font-size: 13px;
    }
    .report-card {
        padding: 18px;
        margin-bottom: 12px;
        border-radius: var(--radius);
    }
    .report-card h3 {
        font-size: 16px;
        margin-bottom: 14px;
    }
    .report-locked {
        min-height: 260px;
        padding: 8px;
    }
    .report-locked .locked-content {
        padding: 28px 20px;
    }
    .report-locked .locked-icon-large {
        font-size: 48px;
    }
    .report-locked h2 {
        font-size: 18px;
    }
    .report-locked p {
        font-size: 14px;
    }
    .hourly-chart {
        height: 140px;
        gap: 3px;
    }
    .hour-bar-wrap {
        flex: 0 0 14px;
        min-width: 14px;
    }
    .hour-label {
        font-size: 8px;
        margin-top: 4px;
    }
    .weekly-chart {
        height: 160px;
        gap: 4px;
    }
    .day-bar-wrap {
        flex: 0 0 42px;
        min-width: 42px;
    }
    .day-bar-value {
        font-size: 10px;
    }
    .day-bar {
        max-width: 32px;
    }
    .day-label {
        font-size: 10px;
        margin-top: 4px;
    }
    .day-date {
        font-size: 9px;
    }
    .comparison-grid {
        flex-direction: column;
        gap: 12px;
    }
    .comparison-value {
        font-size: 22px;
    }
    .mode-distribution {
        gap: 12px;
    }
    .mode-bar-wrap {
        height: 24px;
    }
    .mode-label {
        font-size: 12px;
    }
    .chart-insight {
        font-size: 13px;
    }
    .share-buttons {
        grid-template-columns: 1fr;
    }
    .share-btn {
        padding: 10px 14px;
        font-size: 13px;
    }
    .subscription-info p {
        font-size: 13px;
    }
}