/* 顶部通知栏置顶样式 */
.top-bar-container {
    background: linear-gradient(90deg, #1a1a1a 0%, #c0392b 100%);
    color: #fff;
    height: 35px;
    line-height: 35px;
    font-size: 13px;
    position: relative;
    z-index: 9999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    overflow: hidden;
    width: 100%;
    top: 0;
}
.top-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    align-items: center;
}
.bj-time {
    display: flex;
    align-items: center;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    color: #f1c40f;
    flex-shrink: 0;
    padding-right: 15px;
    border-right: 1px solid rgba(255,255,255,0.2);
    background: inherit;
}
.announcement-wrapper {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
}
.announcement-scroll {
    display: inline-block;
    padding-left: 20px;
    animation: ticker 25s linear infinite;
}
.announcement-item {
    margin-right: 60px;
}
@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}
@media (max-width: 768px) {
    .top-bar-container { height: 30px; line-height: 30px; font-size: 11px; }
    .time-label { display: none; }
}
        :root {
            --primary-red: #c0392b;
            --gold-accent: #f1c40f;
            --bg-gray: #f9f9f9;
            --text-dark: #333;
            --text-light: #666;
            --border-color: #eee;
        }

        body, html { 
            margin: 0; 
            padding: 0; 
            font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; 
            background-color: var(--bg-gray); 
            color: var(--text-dark); 
            line-height: 1.6; 
            font-display: swap; /* 强制使用 swap 策略 */
        }
        a { text-decoration: none; color: inherit; transition: all 0.3s; }
        .container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

        header { background: #fff; padding: 30px 0; border-bottom: 3px solid var(--primary-red); text-align: center; }
        .logo { display: flex; justify-content: center; align-items: center; font-size: 36px; font-weight: 700; color: var(--primary-red); margin-bottom: 25px; }
        .logo img { height: 55px; margin-right: 15px; }
        
        .search-area { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
        .search-container { position: relative; width: 100%; }
        .search-box { width: 100%; padding: 12px 20px; border: 2px solid var(--primary-red); border-radius: 30px; font-size: 14px; outline: none; box-sizing: border-box; }
        .search-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: var(--primary-red); border: none; padding: 6px 20px; border-radius: 25px; color: #fff; font-weight: 700; cursor: pointer; font-size: 14px; }

        .ip-search-container { position: relative; width: 100%; }
        .ip-search-box { width: 100%; padding: 10px 20px; border: 2px solid var(--gold-accent); border-radius: 30px; font-size: 13px; outline: none; box-sizing: border-box; background: #fffdf5; }
        .ip-search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gold-accent);
    border: none;
    padding: 5px 15px;
    border-radius: 20px;
    color: #333; /* 从 var(--primary-red) 修改为 #333，提高对比度 */
    font-weight: 700;
    cursor: pointer;
    font-size: 13px;
}

        #ip-result { margin-top: 10px; font-size: 13px; color: var(--primary-red); font-weight: 500; min-height: 20px; text-align: center; }

        .main-action { margin: 25px 0; }
        .big-btn { 
            display: inline-block; 
            background: linear-gradient(135deg, var(--primary-red), #e74c3c); 
            color: #fff; 
            font-size: 24px; 
            font-weight: 700; 
            padding: 18px 70px; 
            border-radius: 60px; 
            box-shadow: 0 10px 25px rgba(192, 57, 43, 0.3);
            transition: all 0.3s ease;
            border: 2px solid var(--gold-accent);
        }
        .big-btn:hover { 
            transform: scale(1.03); 
            box-shadow: 0 12px 35px rgba(192, 57, 43, 0.4);
        }

        .hot-news { background: #fff; padding: 10px 20px; border-radius: 5px; margin-bottom: 30px; border-left: 5px solid var(--primary-red); font-size: 14px; text-align: left; }
        .hot-news b { color: var(--primary-red); margin-right: 15px; }

        section { background: #fff; border-radius: 10px; padding: 30px; margin-bottom: 30px; box-shadow: 0 2px 15px rgba(0,0,0,0.05); }
        .section-title { font-size: 22px; font-weight: 700; color: var(--primary-red); margin-bottom: 15px; display: flex; align-items: center; border-left: 6px solid var(--primary-red); padding-left: 15px; }
        .section-desc { font-size: 15px; color: var(--text-light); margin-bottom: 25px; line-height: 1.8; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; }

        .grid-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
        .link-card { background: #fcfcfc; border: 1px solid #f0f0f0; border-radius: 8px; padding: 18px; text-align: center; font-weight: 500; font-size: 16px; transition: all 0.3s; }
        .link-card:hover { border-color: var(--primary-red); background: #fff; color: var(--primary-red); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

        .category-row { display: flex; align-items: flex-start; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px dashed #eee; }
        .category-label { width: 80px; background: #fff5f5; color: var(--primary-red); font-weight: 700; padding: 5px 10px; border-radius: 4px; text-align: center; font-size: 14px; margin-right: 20px; flex-shrink: 0; }
        .links-wrap { display: flex; flex-wrap: wrap; gap: 15px 25px; }
        .links-wrap a { font-size: 15px; color: #555; }
        .links-wrap a:hover { color: var(--primary-red); font-weight: 500; }

        .tool-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
        .tool-card { background: #f9f9f9; padding: 12px; border-radius: 5px; text-align: center; font-size: 14px; border: 1px solid #eee; }
        .tool-card:hover { background: #fff; border-color: var(--gold-accent); color: var(--primary-red); }

        footer { background: #fff; padding: 50px 0; text-align: center; border-top: 1px solid var(--border-color); margin-top: 50px; }
        .footer-links a { margin: 0 20px; color: #444; font-size: 14px; }
        .copyright { margin-top: 25px; color: #595959; font-size: 13px; }

        @media (max-width: 768px) {
            .grid-links { grid-template-columns: repeat(2, 1fr); }
            .tool-grid { grid-template-columns: repeat(3, 1fr); }
            .category-row { flex-direction: column; }
            .category-label { margin-bottom: 10px; }
            .big-btn { width: 90%; padding: 18px 0; font-size: 20px; }
        }
        
/* 立即试玩模块样式 */
.play-now-module {
    background: linear-gradient(145deg, #c0392b 0%, #e74c3c 100%);
    color: #fff;
    padding: 30px 20px;
    margin: 30px auto;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(192, 57, 43, 0.4);
    max-width: 800px;
    border: 3px solid #f1c40f;
    position: relative;
    overflow: hidden;
    font-family: 'Noto Sans SC', sans-serif;
}
.play-now-module::before {
    content: "> > >";
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 20px;
    color: rgba(255,255,255,0.3);
    transform: rotate(-20deg);
}
.play-now-module::after {
    content: "< < <";
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 20px;
    color: rgba(255,255,255,0.3);
    transform: rotate(20deg);
}
.play-now-module h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    color: #f1c40f;
}
.play-now-module p {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.5;
}
.play-now-module .highlight {
    color: #f1c40f;
    font-weight: 700;
    font-size: 22px;
}
.play-now-module .small-text {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 20px;
}
.play-now-module .register-btn {
    display: inline-block;
    background: #f1c40f;
    color: #c0392b;
    font-size: 24px;
    font-weight: 700;
    padding: 15px 40px;
    border-radius: 50px;
    margin-top: 25px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.play-now-module .register-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0,0,0,0.3);
}
@media (max-width: 768px) {
    .play-now-module h2 { font-size: 26px; }
    .play-now-module p { font-size: 16px; }
    .play-now-module .highlight { font-size: 20px; }
    .play-now-module .register-btn { font-size: 20px; padding: 12px 30px; }
}
/* 浮动模块 - 电脑端样式 */
.floating-box {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 220px;
    background: linear-gradient(135deg, #8B3A62 0%, #C41E3A 100%);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 9999;
    text-align: center;
    transition: all 0.3s ease;
}
.floating-box .close-btn {
    position: absolute; top: -10px; right: -10px; width: 25px; height: 25px;
    background: #333; color: #fff; border: none; border-radius: 50%; cursor: pointer;
}
.floating-box .box-title { color: #FFD700; font-size: 18px; font-weight: bold; margin-bottom: 15px; }
.floating-box .box-btn {
    display: block; width: 100%; padding: 10px; margin: 10px 0;
    text-decoration: none; border-radius: 8px; font-weight: bold; font-size: 15px;
}
.reg-btn { background: #FFD700; color: #333; }
.login-btn { background: #fff; color: #C41E3A; }
.floating-box .box-footer { color: rgba(255,255,255,0.8); font-size: 12px; margin-top: 10px; }

/* 重点：手机端自动缩小并浮空 */
@media (max-width: 768px) {
    .floating-box {
        width: 120px;       /* 宽度缩小 */
        padding: 10px;      /* 内边距缩小 */
        right: 10px;        /* 靠边距离 */
        bottom: 100px;      /* 距离底部高度，防止遮挡导航 */
        top: auto;
        transform: none;
    }
    .floating-box .box-title { font-size: 13px; margin-bottom: 8px; }
    .floating-box .box-btn { 
        padding: 6px; 
        font-size: 12px; 
        margin: 5px 0; 
    }
    .floating-box .box-footer { font-size: 10px; }
}
* --- 合规说明下拉菜单样式 --- */
.nav-menu {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 500;
}
.nav-menu a {
    color: #333;
    text-decoration: none;
    padding: 5px 10px;
}
.nav-menu a:hover {
    color: #c0392b; /* 红色高亮 */
}
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 120px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 8px;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 0;
    border: 1px solid #eee;
}
.dropdown:hover .dropdown-content {
    display: block;
}
.dropdown-content a {
    color: #333;
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    text-align: center;
    font-size: 14px;
}
.dropdown-content a:hover {
    background-color: #f9f9f9;
    color: #c0392b;
}

/* --- 苹果风格弹窗样式 --- */
.ios-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.ios-modal-overlay.active {
    display: flex;
    opacity: 1;
}
.ios-modal {
    background: rgba(255, 255, 255, 0.95);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}
.ios-modal-overlay.active .ios-modal {
    transform: scale(1);
}
.ios-modal-header {
    padding: 15px 20px;
    text-align: center;
    font-weight: 600;
    font-size: 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(249, 249, 249, 0.9);
}
.ios-modal-body {
    padding: 20px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}
.ios-modal-footer {
    padding: 10px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(249, 249, 249, 0.9);
}
.ios-modal-close {
    color: #007aff; /* 苹果蓝 */
    font-size: 17px;
    font-weight: 600;
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    width: 100%;
}
.speed-test-area {
    width: 95%;
    max-width: 1200px;
    margin: 20px auto;
    background: #fff;
    border: 1px solid rgba(184, 134, 11, 0.3);
    border-radius: 50px;
    padding: 10px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.speed-test-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.local-speed-box {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}
.speed-divider {
    width: 1px;
    height: 30px;
    background: rgba(184, 134, 11, 0.2);
}
.url-speed-box {
    flex-grow: 1;
    display: flex;
    position: relative;
    align-items: center;
}
.speed-input {
    width: 100%;
    height: 45px;
    border: 1px solid #eee;
    border-radius: 25px;
    padding: 0 140px 0 20px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}
.speed-input:focus { border-color: #b8860b; box-shadow: 0 0 10px rgba(184,134,11,0.1); }
.action-btn {
    border: none;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}
.local-btn {
    background: #1a1a1a;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
}
.local-btn:hover { background: #b8860b; }
.url-btn {
    position: absolute;
    right: 5px;
    background: #c0392b; /* 保持您的主色调红 */
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
}
.speed-result {
    font-size: 14px;
    font-weight: bold;
    color: #b8860b;
    min-width: 80px;
}
.progress-container {
    width: 100%;
    height: 3px;
    background: #f0f0f0;
    margin-top: 10px;
    border-radius: 3px;
    overflow: hidden;
}
.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #b8860b, #c0392b);
    transition: width 0.5s;
}
/* 手机端适配 */
@media (max-width: 768px) {
    .speed-test-container { flex-direction: column; align-items: stretch; }
    .speed-divider { display: none; }
    .url-btn { position: static; margin-top: 10px; width: 100%; }
    .speed-input { padding-right: 20px; }
}
