/* ============================================
   全局重置 & 基础
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
}
body {
    min-height: 100vh;
    padding: 20px 12px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    position: relative;
}

/* ============================================
   安全检测界面（首次加载）
   ============================================ */
.security-screen {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw; height: 100vh;
    background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 50%, #bbf7d0 100%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.security-screen.hide {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}
.security-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.35);
    animation: iconPulse 2s ease-in-out infinite;
}
@keyframes iconPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 40px rgba(16, 185, 129, 0.35); }
    50% { transform: scale(1.05); box-shadow: 0 15px 50px rgba(16, 185, 129, 0.5); }
}
.security-icon svg {
    width: 44px;
    height: 44px;
    fill: #fff;
}
.security-title {
    font-size: 22px;
    font-weight: 800;
    color: #064e3b;
    margin-bottom: 8px;
    letter-spacing: 1px;
}
.security-subtitle {
    font-size: 14px;
    color: #059669;
    margin-bottom: 40px;
}
.security-progress {
    width: 200px;
    height: 4px;
    background: rgba(16, 185, 129, 0.2);
    border-radius: 2px;
    overflow: hidden;
}
.security-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 2px;
    animation: progressFill 2s ease-out forwards;
}
@keyframes progressFill {
    0% { width: 0%; }
    30% { width: 35%; }
    60% { width: 65%; }
    100% { width: 100%; }
}
.security-status {
    margin-top: 20px;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

/* ============================================
   背景层 - 铺满全屏，固定不动
   ============================================ */
.bg-layer {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw; height: 100vh;
    background: url('./11.webp') no-repeat center / cover, linear-gradient(135deg, rgba(200,200,220,0.3) 0%, rgba(180,180,200,0.1) 50%, rgba(160,160,180,0.15) 100%);
    z-index: -1;
}

/* 电脑端：按高度撑满，保持比例不变形 */
@media (min-width: 768px) {
    .bg-layer {
        background: url('./11.webp') no-repeat center / auto 100%, linear-gradient(135deg, rgba(200,200,220,0.3) 0%, rgba(180,180,200,0.1) 50%, rgba(160,160,180,0.15) 100%);
    }
}

/* ============================================
   页面包裹层
   ============================================ */
.page-wrap {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

/* ============================================
   标题区 - 高半透明
   ============================================ */
.title-box {
    text-align: center;
    padding: 22px 18px 18px;
    background: rgba(255,255,255,0.18);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
}
.title-box h2 {
    font-size: 22px;
    color: #1e293b;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.title-box h2 i{
    font-size: 24px;
    filter: drop-shadow(0 0 4px rgba(59,130,246,0.3));
}

/* 副标题 */
.title-desc {
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.6;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.title-desc::before,
.title-desc::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 1px;
    background: linear-gradient(90deg, #cbd5e1, transparent);
}
.title-desc::after {
    background: linear-gradient(90deg, transparent, #cbd5e1);
}

/* ============================================
   运行天数
   ============================================ */
.running-days-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 0 16px;
}
.running-icon {
    font-size: 15px;
}
.running-text {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: 0.5px;
}
.running-icon {
    font-size: 15px;
}
.running-red {
    font-size: 14px;
    font-weight: 800;
    color: #e74c3c;
}

/* ============================================
   滚动公告条 - 高半透明
   ============================================ */
.scroll-notice-box {
    width: 100%;
    background: rgba(255,255,255,0.18);
    color: #d97706;
    padding: 10px 0;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    height: 38px;
    display: flex;
    align-items: center;
}
.scroll-wrap {
    display: flex;
    white-space: nowrap;
    animation: scrollMove 12s linear infinite;
}
.scroll-text {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    flex-shrink: 0;
    padding: 0 10px;
}
.scroll-text.copy { margin-left: 24px; }
@keyframes scrollMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   提示信息 - 高半透明
   ============================================ */
.notice-box {
    width: 100%;
    background: rgba(255,255,255,0.18);
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,0.08);
}
.notice-text {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    text-align: center;
    line-height: 1.55;
}

/* ============================================
   域名卡片列表
   ============================================ */
#domainList {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.domain-item {
    padding: 14px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}
.domain-item:hover {
    background: rgba(255,255,255,0.28);
    border-color: rgba(59,130,246,0.3);
}
.domain-item:active {
    transform: scale(0.98);
    background: rgba(59,130,246,0.1);
}
.domain-item.fast {
    border-left: 3.5px solid #10b981;
}

/* 域名信息 */
.domain-info { flex: 1; overflow: hidden; padding-right: 10px; }
.domain-name {
    font-size: 14px;
    color: #1e293b;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
    font-family: "SF Mono", "Fira Code", "Consolas", monospace;
}
.domain-speed {
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
}
.delay-green { color: #059669; }
.delay-orange { color: #d97706; }
.delay-red { color: #dc2626; }

/* 操作按钮 */
.domain-action { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.speed-dot {
    width: 8px; height: 8px;
    border-radius: 50%; flex-shrink: 0;
    box-shadow: 0 0 6px currentColor;
}
.fast .speed-dot { background: #10b981; color: #10b981; }

.domain-link {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}
.domain-link:active {
    transform: scale(0.96);
    box-shadow: 0 1px 4px rgba(37,99,235,0.15);
}
.domain-link.disabled {
    background: rgba(100,116,139,0.15);
    pointer-events: none;
    color: #94a3b8;
    box-shadow: none;
}

/* ============================================
   备用收藏区 - 高半透明
   ============================================ */
.bookmark-area {
    padding: 16px 16px;
    background: rgba(255,255,255,0.18);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
}
.bookmark-title {
    font-size: 13px;
    color: #047857;
    font-weight: 700;
    margin-bottom: 14px;
    text-align: center;
    letter-spacing: 0.5px;
}
.bookmark-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.bookmark-domain {
    flex: 1;
    padding: 10px 12px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #059669;
    font-family: "SF Mono", "Fira Code", "Consolas", monospace;
    text-align: center;
    letter-spacing: 0.5px;
    user-select: all;
    -webkit-user-select: all;
}
.bookmark-copy-btn {
    flex-shrink: 0;
    padding: 10px 16px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 3px 10px rgba(5,150,105,0.25);
    white-space: nowrap;
}
.bookmark-copy-btn:active {
    transform: scale(0.95);
    box-shadow: 0 1px 4px rgba(5,150,105,0.15);
}
.bookmark-hint {
    font-size: 10.5px;
    color: #1e293b;
    text-align: center;
    font-weight: 500;
}

/* ============================================
   年龄确认弹窗
   ============================================ */
.age-check-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    animation: ageOverlayIn 0.3s ease-out;
}
@keyframes ageOverlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.age-check-card {
    width: 100%;
    max-width: 380px;
    background: rgba(20, 20, 30, 0.85);
    border-radius: 24px;
    padding: 32px 24px 26px;
    box-shadow: 0 0 30px rgba(0,0,0,0.4), 0 25px 60px rgba(0,0,0,0.3);
    animation: cardSlideUp 0.4s cubic-bezier(.16,1,.3,1);
    text-align: center;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
}
@keyframes cardSlideUp {
    from { opacity: 0; transform: translateY(40px) scale(0.94); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 18+ 图标 */
.age-icon-ring {
    width: 76px; height: 76px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: conic-gradient(from 220deg, #dc2626, #ef4444, #f87171, #dc2626);
    padding: 3px;
    animation: iconSpinSlow 8s linear infinite;
    box-shadow: 0 0 20px rgba(220,38,38,0.20);
}
@keyframes iconSpinSlow { to { transform: rotate(360deg); } }
.age-icon-inner {
    width: 100%; height: 100%;
    border-radius: 50%;
    background: linear-gradient(160deg, #ffffff, #f1f5f9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    color: #ef4444;
    letter-spacing: -1px;
}

/* 标题 */
.age-main-title {
    font-size: 20px;
    font-weight: 800;
    color: #f1f5f9;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
    text-transform: uppercase;
}
.age-sub-title {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

/* 说明文字 */
.age-desc-text { margin-bottom: 18px; }
.age-desc-text p {
    font-size: 13px;
    font-weight: 500;
    color: #cbd5e1;
    line-height: 1.75;
    margin-bottom: 5px;
}
.age-desc-text .age-desc-en {
    font-size: 11.5px;
    color: #64748b;
    font-style: italic;
    margin-bottom: 0;
    margin-top: 6px;
}

/* 警告线 */
.age-warning-divider {
    margin-bottom: 22px;
    padding: 10px 14px;
    background: linear-gradient(90deg, transparent, rgba(239,68,68,0.15), transparent);
    border-top: 1px solid rgba(239,68,68,0.20);
    border-bottom: 1px solid rgba(239,68,68,0.20);
}
.age-warning-divider span {
    font-size: 11px;
    font-weight: 700;
    color: #f87171;
    letter-spacing: 1px;
}

/* 双按钮 */
.age-btn-group {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}
.age-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 10px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}
.age-btn-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.35;
}
.age-btn-label small { font-size: 10px; opacity: 0.7; font-weight: 500; }

/* 同意 */
.age-btn-enter {
    background: linear-gradient(145deg, #f97316, #ea580c);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 6px 22px rgba(234,88,12,0.30);
}
.age-btn-enter:active { transform: scale(0.96); }

/* 退出 */
.age-btn-exit {
    background: rgba(255,255,255,0.08);
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 600;
    border: 1.5px solid rgba(255,255,255,0.15);
}
.age-btn-exit:hover,
.age-btn-exit:active {
    background: rgba(239,68,68,0.20);
    border-color: rgba(239,68,68,0.30);
    color: #fca5a5;
}
.age-btn-exit:active { transform: scale(0.96); }

/* 底部 */
.age-footer-note {
    font-size: 11px;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ============================================
   底部免责
   ============================================ */
.site-footer {
    width: 100%;
    max-width: 480px;
    margin-top: 16px;
    padding-bottom: 6px;
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    text-align: center;
    letter-spacing: 0.5px;
}

/* ============================================
   移动端适配
   ============================================ */
@media (max-width: 480px) {
    .page-wrap { padding: 0 4px; }
    .age-check-card {
        max-width: 92%;
        padding: 26px 18px 22px;
        border-radius: 20px;
    }
}
