/* 全局重置与基础样式（和高防IP页面保持一致） */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

:root {
    --primary-color: #165DFF;
    --primary-dark: #0E42D2;
    --secondary-color: #00B42A;
    --tech-blue: #00C0FF;
    --dark-bg: #0A101F;
    --card-bg: #111827;
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --border-color: #1E293B;
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.2);
    --radius: 12px;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 16px;
    overflow-x: hidden;
    padding-top: 88px;
    -webkit-overflow-scrolling: touch; /* 修复移动端滚动卡顿 */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    vertical-align: middle;
    display: inline-block;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--primary-color), var(--tech-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.section-subtitle {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 60px;
    font-size: 18px;
    color: var(--text-secondary);
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--tech-blue));
    border-radius: 2px;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 36px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 16px;
    min-width: 160px;
    touch-action: manipulation; /* 修复移动端点击延迟 */
    -webkit-tap-highlight-color: transparent; /* 移除移动端点击高亮 */
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 6px 20px rgba(22, 93, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(22, 93, 255, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: rgba(22, 93, 255, 0.1);
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 16, 31, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
    padding: 16px 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(22, 93, 255, 0.1);
    will-change: padding; /* 优化滚动性能 */
}

.navbar.scroll {
    padding: 8px 0;
    background-color: rgba(10, 16, 31, 0.98);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.desktop-cta {
    display: flex;
    gap: 15px;
    margin-left: auto;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    font-size: 17px;
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding-bottom: 6px;
    -webkit-tap-highlight-color: transparent;
}

.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    color: var(--text-primary);
    z-index: 10000; /* 提升层级，确保不被遮挡 */
    -webkit-tap-highlight-color: transparent;
}

/* 移动端菜单核心修复 */
.mobile-menu {
    display: none; /* 初始隐藏 */
    background-color: var(--dark-bg);
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    width: 100%;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    position: relative;
    z-index: 9999; /* 确保菜单在最上层 */
}

.mobile-menu.show {
    display: block !important; /* 强制显示 */
}

.mobile-menu .container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-links a {
    font-size: 18px;
    color: var(--text-primary);
    padding: 10px 0;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-links a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-cta .btn {
    width: 100%;
}

/* 英雄区 */
.hero {
    min-height: calc(100vh - 88px);
    background: radial-gradient(circle at top center, #111827 0%, #0A101F 100%);
    display: flex;
    align-items: center;
    position: relative;
    padding: 60px 0;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(22, 93, 255, 0.08), transparent 70%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.hero-tagline {
    font-size: 20px;
    color: var(--tech-blue);
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 30px;
}

.hero-title span {
    background: linear-gradient(90deg, var(--primary-color), var(--tech-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 50px;
    color: var(--text-secondary);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 70px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 120px;
}

.stat-number {
    font-size: 44px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-muted);
}

/* 核心优势 */
.server-features {
    background-color: var(--dark-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    padding: 45px 35px;
    background-color: var(--card-bg);
    border-radius: var(--radius);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    margin-bottom: 25px;
}

.feature-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.feature-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* 服务器机型（核心修复） */
.server-models {
    background-color: var(--dark-bg);
}

.models-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 30px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: #070d1a;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-height: 48px; /* 移动端最小点击区域 */
    min-width: 80px;
}

.tab-btn.active {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-color: var(--primary-color);
    color: white;
}

.tab-btn:hover:not(.active) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* 标签内容核心修复 */
.tab-content {
    display: none !important; /* 强制隐藏未激活的内容 */
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
}

.tab-content.active {
    display: grid !important; /* 强制显示激活的内容 */
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.model-card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.model-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.model-header {
    padding: 30px;
    background: linear-gradient(135deg, rgba(22,93,255,0.1), transparent);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.model-title {
    font-size: 20px;
    font-weight: 600;
}

.model-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.model-price span {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
}

.model-specs {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.spec-item {
    font-size: 16px;
    color: var(--text-secondary);
    display: flex;
}

.spec-item span {
    color: var(--text-primary);
    font-weight: 500;
    min-width: 60px;
}

.model-cta {
    padding: 20px 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

/* 适用场景 */
.scenarios {
    background-color: var(--dark-bg);
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.scenario-card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 35px 25px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.scenario-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.scenario-icon {
    margin-bottom: 20px;
}

.scenario-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.scenario-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* 价格套餐 */
.pricing {
    background-color: var(--dark-bg);
}

.pricing-note {
    text-align: center;
    color: var(--tech-blue);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 40px;
}

.price-table-wrapper {
    overflow-x: auto;
    margin-top: 20px;
    border-radius: var(--radius);
    -webkit-overflow-scrolling: touch; /* 优化移动端滚动 */
}

/* 对比优势 */
.comparison {
    background-color: var(--dark-bg);
}

.comparison-table {
    width: 100%;
    min-width: 1200px;
    border-collapse: collapse;
    background-color: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.comparison-table th,
.comparison-table td {
    padding: 22px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
}

.comparison-table th {
    background-color: rgba(22, 93, 255, 0.08);
    font-weight: 600;
    font-size: 17px;
}

.comparison-table th:first-child {
    text-align: left;
    width: 30%;
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.comparison-table .check {
    color: var(--secondary-color);
    font-size: 20px;
}

.comparison-table .cross {
    color: #F53F3F;
    font-size: 20px;
}

/* 行动召唤 */
.cta {
    background: linear-gradient(135deg, #0A101F, #111827);
    padding: 110px 0;
    text-align: center;
    position: relative;
    border-top: 1px solid rgba(22, 93, 255, 0.1);
}

.cta-content {
    max-width: 750px;
    margin: 0 auto;
}

.cta-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 25px;
}

.cta-desc {
    font-size: 19px;
    margin-bottom: 45px;
    color: var(--text-secondary);
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* 页脚 */
.footer {
    background-color: #070D1A;
    color: var(--text-primary);
    padding: 90px 0 40px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 70px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
}

.footer-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    color: var(--text-primary);
}

.footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 16px;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 6px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-secondary);
    font-size: 16px;
}

.contact-icon {
    width: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 版权信息 */
.copyright {
    text-align: center;
    padding-top: 35px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 15px;
}

.copyright a {
    color: var(--primary-color);
}

/* 响应式适配 */
@media (max-width: 1200px) {
    .hero-title { font-size: 48px; }
    .scenarios-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
    .models-grid { grid-template-columns: repeat(2, 1fr); }
    .tab-content {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 992px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 80px 0; }
    .section-title { font-size: 34px; }
    .models-grid { grid-template-columns: 1fr; }
    .tab-content {
        grid-template-columns: 1fr !important;
    }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .desktop-cta { display: none; }
    .hamburger { display: block; }
    
    body { padding-top: 72px; }
    .hero { min-height: auto; padding: 40px 0; }
    .hero-title { font-size: 38px; }
    .hero-stats { gap: 30px; }
    .features-grid, .scenarios-grid { grid-template-columns: 1fr; }
    .cta-title { font-size: 34px; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-cta { gap: 15px; }
    .models-tabs { gap: 10px; }
    .tab-btn { padding: 10px 20px; font-size: 16px; }
}

@media (max-width: 576px) {
    .logo { font-size: 24px; }
    .hero-title { font-size: 32px; }
    .hero-desc { font-size: 16px; }
    .hero-cta { flex-direction: column; gap: 15px; }
    .btn { width: 100%; }
    .section-title { font-size: 28px; }
    .comparison-table th, .comparison-table td { padding: 15px 8px; font-size: 14px; }
    .stat-number { font-size: 36px; }
    .footer { padding: 60px 0 20px; }
    .model-header { flex-direction: column; gap: 10px; align-items: flex-start; }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* 修复Safari平滑滚动 */
@supports (-webkit-touch-callout: none) {
    html {
        scroll-behavior: auto !important;
    }
}

.tab-content {
  display: none;
}
.models-tabs {
  margin: 30px 0;
}
.tab-btn {
  padding: 12px 24px;
  margin: 0 6px;
  cursor: pointer;
  border: 1px solid #ddd;
  background: #fff;
}
.tab-btn.active {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
}