:root {
    --primary-glow: rgba(52, 152, 219, 0.4);
    --bg-color: #0a0f1d;
    --card-bg: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.5);
    --accent: #00d2ff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: radial-gradient(circle at top center, #1a2a4a 0%, #0a0f1d 100%);
    background-attachment: fixed; /* 背景固定，防止滚动时发白 */
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    /* 适配刘海屏 */
    padding: env(safe-area-inset-top) 20px env(safe-area-inset-bottom) 20px;
}

.container {
    width: 100%;
    /* 电脑端最大宽度，iPad和手机会自动缩小 */
    max-width: 500px; 
    margin: 40px auto;
    animation: fadeIn 0.8s ease-out;
}

/* Logo 适配 */
.logo-container { text-align: center; margin-bottom: 15px; }
.main-logo {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 0 15px var(--primary-glow));
}

.header { text-align: center; margin-bottom: 25px; }
h1 { font-size: calc(22px + 1vw); letter-spacing: 1px; } /* 响应式字号 */

.en-sub {
    display: block;
    font-size: 11px;
    color: var(--text-dim);
    font-weight: normal;
    margin-top: 2px;
}

.subtitle {
    margin-top: 8px;
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 2px;
}

/* 毛玻璃卡片适配 */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.notice-title { font-weight: bold; font-size: 18px; margin-bottom: 12px; }
.notice-content { font-size: 14px; line-height: 1.8; }
.highlight { color: #ffcc00; font-weight: bold; }

/* 按钮适配：增加点击区域，手机端更好按 */
.btn-group { display: flex; flex-direction: column; gap: 15px; margin-bottom: 25px; }
.btn {
    text-decoration: none;
    padding: 16px 20px;
    border-radius: 14px;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn-new {
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.2);
}

.btn-old {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* 列表与小屏幕适配 */
.solution-item {
    margin-bottom: 12px;
    font-size: 13px;
    display: flex;
    align-items: flex-start;
}
.icon-check { color: var(--accent); margin-right: 12px; margin-top: 4px; }

/* 针对大屏幕（电脑/iPad横屏）的微调 */
@media (min-width: 768px) {
    .container { margin-top: 60px; }
    .glass-card { padding: 30px; }
}

/* 针对超小屏幕手机的微调 */
@media (max-width: 350px) {
    h1 { font-size: 20px; }
    .notice-content { font-size: 13px; }
    .btn { padding: 12px 15px; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.footer { text-align: center; font-size: 11px; color: var(--text-dim); padding: 20px 0 40px; }

/* 初始检测状态 */
#new-version-link .btn-text {
    opacity: 0.8;
}

/* 线路就绪后的动画效果 */
.btn-new.ready {
    position: relative;
    overflow: hidden;
    animation: pulse 2s infinite;
}

/* 呼吸灯效果 */
@keyframes pulse {
    0% { box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(0, 210, 255, 0.6); }
    100% { box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3); }
}

/* 扫描流光效果 */
.btn-new.ready::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    animation: scan 3s infinite;
}

@keyframes scan {
    0% { left: -60%; }
    30% { left: 120%; }
    100% { left: 120%; }
}
