:root {
    --bg-dark: #0a0a0a;
    --bg-darker: #000000;
    --card-bg: rgba(0, 20, 0, 0.8);
    --card-border: rgba(0, 255, 0, 0.3);
    --primary: #00ff00;
    --primary-hover: #00cc00;
    --text-main: #00ff00;
    --text-muted: #00aa00;
    --success: #00ff00;
    --success-bg: rgba(0, 255, 0, 0.1);
    --warning: #ffcc00;
    --warning-bg: rgba(255, 204, 0, 0.1);
    --info: #00cc00;
    --info-bg: rgba(0, 204, 0, 0.1);
}

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

body {
    --ambient-x: 50vw;
    --ambient-y: 42vh;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-darker);
    color: var(--text-main);
    min-height: 100vh;
    padding: 2rem;
    line-height: 1.5;
    position: relative;
    isolation: isolate;
}

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

/* Enable native View Transitions API for modern browsers */
@view-transition {
    navigation: auto;
}

body:not(.worldcup-page) {
    animation: pageFadeIn 0.4s ease-out forwards;
    background-color: #020604;
    background-image:
        radial-gradient(ellipse 85% 50% at 50% -18%, rgba(0, 120, 38, 0.13), transparent 72%),
        radial-gradient(circle at 1px 1px, rgba(125, 255, 147, 0.075) 1px, transparent 1.25px);
    background-size: 100% 100%, 32px 32px;
    background-attachment: fixed;
}

/* 鼠标跟随光：位于内容下方、固定环境光上方 */
body:not(.worldcup-page)::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(
            circle 520px at var(--ambient-x) var(--ambient-y),
            rgba(0, 255, 72, 0.27) 0%,
            rgba(0, 205, 59, 0.14) 35%,
            rgba(0, 135, 39, 0.055) 61%,
            transparent 80%
        );
    opacity: 0.86;
    animation: ambientGlowBreath 4.8s ease-in-out infinite;
    will-change: opacity, filter;
}

/* 固定位置环境光：让大面积暗色背景保持层次，又不抢夺正文焦点 */
body:not(.worldcup-page)::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(circle 460px at 7% 14%,
            rgba(0, 235, 70, 0.15) 0%,
            rgba(0, 135, 42, 0.055) 48%,
            transparent 76%),
        radial-gradient(circle 560px at 94% 72%,
            rgba(25, 210, 82, 0.12) 0%,
            rgba(0, 115, 38, 0.045) 52%,
            transparent 78%),
        radial-gradient(circle 400px at 52% 108%,
            rgba(0, 175, 58, 0.095) 0%,
            rgba(0, 95, 32, 0.035) 50%,
            transparent 76%);
    opacity: 0.78;
    animation: fixedAmbientBreath 8s ease-in-out infinite;
    will-change: opacity, filter;
}

@keyframes ambientGlowBreath {
    0%, 100% {
        opacity: 0.68;
        filter: brightness(0.92);
    }
    50% {
        opacity: 1;
        filter: brightness(1.2);
    }
}

@keyframes fixedAmbientBreath {
    0%, 100% {
        opacity: 0.62;
        filter: brightness(0.92) saturate(0.95);
    }
    50% {
        opacity: 0.9;
        filter: brightness(1.12) saturate(1.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    body:not(.worldcup-page)::before,
    body:not(.worldcup-page)::after {
        animation: none;
        opacity: 0.78;
    }
}

@media (max-width: 600px) {
    body:not(.worldcup-page) {
        background-size: 100% 100%, 28px 28px;
    }

    /* 手机 GPU 对全屏 fixed 渐变 + filter 的持续合成开销很敏感。 */
    body:not(.worldcup-page)::before {
        display: none;
    }

    body:not(.worldcup-page)::after {
        opacity: 0.64;
        animation: none;
        filter: none;
        will-change: auto;
    }

    .glass-panel {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: rgba(0, 20, 0, 0.96);
    }
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Typography & Header */
.hero-section {
    text-align: center;
    margin-bottom: 3rem;
}

.main-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(to right, #00ff00, #aaffaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.highlight {
    font-style: italic;
    background: linear-gradient(to right, #00cc00, #00ff00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Control Panel */
.control-panel {
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    padding: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 250px;
}

label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

select {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
    appearance: none;
    cursor: pointer;
}

select:focus {
    border-color: var(--primary);
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary), #006600);
    color: #000;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 46px;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

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

.primary-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Loader */
.loader-container {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.loader-container.hidden {
    display: none;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Message */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #fca5a5;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}
.error-message.hidden {
    display: none;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 900px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
}

.match-card {
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.match-card:hover {
    transform: translateY(-5px);
}

.match-card.valid-odds {
    background: linear-gradient(145deg, rgba(225, 29, 72, 0.25) 0%, rgba(30, 41, 59, 1) 100%);
    border: 1px solid rgba(225, 29, 72, 0.5);
    box-shadow: 0 4px 20px rgba(225, 29, 72, 0.1);
}

.match-card.invalid-odds {
    background: linear-gradient(145deg, rgba(234, 179, 8, 0.2) 0%, rgba(30, 41, 59, 1) 100%);
    border: 1px solid rgba(234, 179, 8, 0.5);
    box-shadow: 0 4px 20px rgba(234, 179, 8, 0.1);
}

.match-title {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.match-title .vs {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.metrics-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.metric-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.metric-value {
    font-size: 1.25rem;
    font-weight: 600;
}

.ev-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.ev-delta {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Suggestion Box */
.suggestion-box {
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.suggestion-box.success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.suggestion-box.warning {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.suggestion-box.info {
    background: var(--info-bg);
    color: var(--info);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .metrics-container {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .control-panel {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    margin-bottom: 2rem;
    border-radius: 0 0 16px 16px;
    border-top: none;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

.nav-brand:hover {
    color: #8dff9f;
    filter: drop-shadow(0 0 8px rgba(0, 255, 70, 0.35));
    transform: translateX(2px);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.welcome-text {
    color: var(--text-muted);
}

.nav-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-btn.danger {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.nav-btn.danger:hover {
    background: rgba(239, 68, 68, 0.4);
}

.admin-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}
.admin-btn:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
}

/* Auth Pages */
.center-body {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    width: 100%;
    max-width: 460px;
    padding: 3rem 2.5rem;
    text-align: center;
}

.auth-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.auth-form {
    display:flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group-full {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form-group-full input {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}
.form-group-full input:focus {
    border-color: var(--primary);
}

.verification-code-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: stretch;
}

.verification-send-btn {
    min-width: 112px;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(0, 255, 0, 0.35);
    border-radius: 8px;
    background: rgba(0, 150, 0, 0.18);
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.verification-send-btn:hover:not(:disabled) {
    background: rgba(0, 180, 0, 0.3);
}

.verification-send-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.auth-inline-message {
    min-height: 1.1em;
    margin-top: 0.2rem;
    font-size: 0.82rem;
    line-height: 1.4;
}

.auth-inline-message.success {
    color: #6ee7b7;
}

.auth-inline-message.error {
    color: #fca5a5;
}

.auth-btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

.auth-footer {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-field-action {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.15rem;
    font-size: 0.85rem;
}

.auth-page-description {
    margin: 0 0 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

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

/* Base Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-align: left;
}
.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #fca5a5;
}
.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    color: #6ee7b7;
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.data-table th, .data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--card-border);
}
.data-table th {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}
.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}
.badge {
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}
.badge.admin {
    background: rgba(245, 158, 11, 0.2);
    color: #fbd38d;
    border: 1px solid rgba(245, 158, 11, 0.4);
}
.badge.user {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

/* ============================================================
   侧边栏导航（全局复用）
   ============================================================ */

/* 汉堡菜单按钮 */
.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: rgba(0, 255, 0, 0.07);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 8px;
    padding: 8px;
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.hamburger-btn:hover {
    background: rgba(0, 255, 0, 0.14);
    border-color: rgba(0, 255, 0, 0.4);
}

.hamburger-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 汉堡 → X 动画 */
.hamburger-btn.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger-btn.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* 遮罩层 */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* 左侧抽屉 */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 320px;
    background: rgba(0, 8, 0, 0.98);
    border-right: 1px solid rgba(0, 255, 0, 0.2);
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.6);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* 保留滚轮与触控板滚动，同时隐藏桌面端突兀的系统滚动条 */
.sidebar::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.sidebar.open {
    transform: translateX(0);
}

/* 侧边栏顶部品牌区 */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 1.4rem 1rem;
    border-bottom: 1px solid rgba(0, 255, 0, 0.1);
}

.sidebar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

.sidebar-brand:hover {
    color: #8dff9f;
    filter: drop-shadow(0 0 8px rgba(0, 255, 70, 0.38));
    transform: translateX(2px);
}

.sidebar-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    color: #007700;
    font-size: 1.2rem;
    background: transparent;
    border: none;
    transition: background 0.2s, color 0.2s;
}

.sidebar-close:hover {
    background: rgba(0, 255, 0, 0.08);
    color: var(--primary);
}

/* 用户信息区 */
.sidebar-user {
    padding: 1rem 1.4rem;
    border-bottom: 1px solid rgba(0, 255, 0, 0.08);
    font-size: 0.82rem;
    color: #007700;
}

.sidebar-user .username {
    font-weight: 700;
    color: #ccffcc;
    font-size: 0.92rem;
}

/* 导航项分组 */
.sidebar-nav {
    flex: 1;
    padding: 0.8rem 0;
}

.sidebar-group-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #004400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.8rem 1.4rem 0.3rem;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.72rem 1.4rem;
    text-decoration: none;
    color: #007700;
    font-size: 0.95rem;
    font-weight: 600;
    border-left: 3px solid transparent;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    cursor: pointer;
}

.sidebar-item:hover {
    background: rgba(0, 255, 0, 0.06);
    color: #00cc00;
}

.sidebar-item.active {
    background: rgba(0, 255, 0, 0.1);
    color: var(--primary);
    border-left-color: var(--primary);
}

.sidebar-item .si-icon {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

/* 管理员分区分割线 */
.sidebar-divider {
    height: 1px;
    background: rgba(0, 255, 0, 0.08);
    margin: 0.5rem 1.4rem;
}

/* 侧边栏底部（登出） */
.sidebar-footer {
    padding: 1rem 1.4rem;
    border-top: 1px solid rgba(0, 255, 0, 0.1);
}

.sidebar-item.danger {
    color: #ff6b6b;
    border-left-color: transparent;
}
.sidebar-item.danger:hover {
    background: rgba(255, 82, 82, 0.08);
    color: #ff5252;
}

/* Navbar 精简样式（配合侧边栏）*/
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0 0 16px 16px;
    border-top: none;
    position: sticky;
    top: 0;
    z-index: 900;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* 响应式：小屏字体缩小 */
@media (max-width: 480px) {
    body {
        padding: 1rem;
    }
    .sidebar {
        width: min(88vw, 300px);
    }
    .main-title {
        font-size: 2rem;
    }
}

/* ============================================================
   语言切换器
   ============================================================ */
.sidebar-lang {
    padding: 0.4rem 0;
}

.sidebar-item.lang-active {
    color: var(--primary) !important;
    font-weight: 700;
}

.sidebar-item.lang-active .si-icon {
    color: var(--primary);
}

/* ============================================================
   修改密码弹窗 (Custom Modal)
   ============================================================ */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.custom-modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.custom-modal {
    width: 90%;
    max-width: 420px;
    background: rgba(0, 20, 0, 0.95);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 255, 0, 0.15);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.custom-modal-overlay.show .custom-modal {
    transform: translateY(0);
}

.custom-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 255, 0, 0.15);
    padding-bottom: 0.8rem;
}

.custom-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
}

.custom-modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.custom-modal-close:hover {
    color: var(--primary);
}

.custom-modal-body {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.custom-modal-footer {
    margin-top: 1.2rem;
}

.custom-modal-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.custom-modal-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.custom-modal-field input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.custom-modal-field input:focus {
    border-color: var(--primary);
}

.readonly-email-value {
    padding: 0.7rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-muted);
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.cp-error-text {
    color: #ff5252;
    background: rgba(255, 82, 82, 0.1);
    border: 1px solid rgba(255, 82, 82, 0.2);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    line-height: 1.4;
}

.cp-submit-btn {
    padding: 0.75rem;
    background: linear-gradient(135deg, #00cc00, #006600);
    color: #000;
    border: none;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    width: 100%;
}

.cp-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 0, 0.25);
}

.cp-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.bind-email-description {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

.bind-email-later-btn {
    width: 100%;
    padding: 0.65rem;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
}

.bind-email-later-btn:hover {
    color: var(--text-main);
}

@media (max-width: 520px) {
    .center-body {
        align-items: flex-start;
    }

    .auth-container {
        margin: 1rem;
        padding: 2rem 1.25rem;
    }

    .verification-code-row {
        grid-template-columns: 1fr;
    }

    .verification-send-btn {
        min-height: 42px;
    }
}

/* ===== 科普术语链接交互 ===== */
.term-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed rgba(0, 255, 0, 0.4);
    cursor: help;
    transition: all 0.2s;
}

.term-link:hover {
    color: var(--primary);
    border-bottom: 1px solid var(--primary);
}

/* ===== 全局搜索框组件 ===== */
.search-container {
    margin-bottom: 2rem;
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3rem;
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 12px;
    color: #ccffcc;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 255, 0, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 255, 0, 0.1);
}

.search-input::placeholder {
    color: rgba(153, 204, 153, 0.6);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(0, 255, 0, 0.6);
    font-size: 1.2rem;
    pointer-events: none;
}
