/* ==================== CSS变量定义 ==================== */
:root {
    /* 主色调 */
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --hero-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #334155 100%);
    --primary-color: #6366f1;
    
    /* 强调色 */
    --accent-gradient: linear-gradient(90deg, #06b6d4, #0891b2);
    --accent-color: #06b6d4;
    
    /* 功能色 */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    
    /* 中性色 */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --bg-light: #f8fafc;
    --white: #ffffff;
}

/* ==================== 全局重置样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: #ffffff;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==================== 通用容器 ==================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==================== 通用工具类 ==================== */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: #6c757d; }

/* ==================== Hero 通用样式 ==================== */
.hero {
    padding: 6rem 0 2rem;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.3;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero p {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    margin: 0 0 0.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    vertical-align: middle;
    color: #0e7490;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.hero .stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;

}

.hero .stat {
    text-align: center;
}

.hero .stat b {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero .stat span {
    font-size: 0.8rem;
    opacity: 0.8;
}

.hero .cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    margin-bottom: -0.5rem; 
}

.hero .cta .btn {
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.hero .cta .btn.primary {
    background: #fff;
    color: #1e3a5f;
}

.hero .cta .btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.hero .cta .btn.ghost {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    color: #fff;
}

.hero .cta .btn.ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

/* Hero 类型变体 - 背景色 */
.hero.server,
.hero.detail {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
}
.hero.feature {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
}
.hero.promo {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.hero.article {
    background: var(--hero-gradient);
}

/* ==================== 头部导航 ==================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

/* 导航包装器 */
.nav-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

/* 药丸式导航容器 */
.nav-center {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 0.25rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 
        inset 0 1px 2px rgba(0, 0, 0, 0.05),
        0 2px 8px rgba(0, 0, 0, 0.04);
    min-width: 500px;
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    justify-content: space-between;
}

/* 导航项 */
.nav-item {
    position: relative;
    flex: 1;
    min-width: 0;
}

/* 导航链接 */
.nav-link {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    padding: 0.6rem 1rem;
    border-radius: 50px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    white-space: nowrap;
    text-align: center;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.7);
    color: #0891b2;
}

.nav-link.active {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    box-shadow: 
        0 4px 12px rgba(6, 182, 212, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* 首页导航特殊样式 */
.nav-item-home .nav-link {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
    color: white !important;
    box-shadow: 
        0 4px 12px rgba(6, 182, 212, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.nav-item-home .nav-link:hover {
    transform: scale(1.02);
    box-shadow: 
        0 6px 16px rgba(6, 182, 212, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

/* 英文导航优化 */
html[lang="en-US"] .nav-link {
    font-size: 0.85rem;
    padding: 0.6rem 0.8rem;
}

body.lang-en .nav-link {
    font-size: 0.85rem;
    padding: 0.6rem 0.8rem;
    letter-spacing: -0.01em;
}

.nav-item-america .nav-link {
    padding: 0.6rem 0.7rem;
}

/* 下拉箭头 */
.nav-arrow {
    font-size: 0.7rem;
    opacity: 0.7;
    transition: transform 0.3s;
}

.nav-item:hover .nav-arrow {
    transform: rotate(180deg);
}

/* 下拉菜单容器 */
.region-dropdown-wrapper {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 0.75rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1000;
}

.region-dropdown-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 0.75rem;
    background: transparent;
    pointer-events: auto;
}

.nav-item:hover .region-dropdown-wrapper,
.region-dropdown-wrapper:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* 下拉菜单样式 */
.region-dropdown {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 14px;
    box-shadow: 
        0 0 0 1px rgba(0, 0, 0, 0.05),
        0 4px 6px -1px rgba(0, 0, 0, 0.08),
        0 10px 40px -2px rgba(0, 0, 0, 0.12);
    padding: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    width: 500px;
    position: relative;
    overflow: hidden;
    transform: translateX(var(--offset-x));
}

.region-dropdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    opacity: 0.8;
}

/* 下拉框偏移量 */
.nav-item-asia .region-dropdown { --offset-x: 150px; }
.nav-item-america .region-dropdown { --offset-x: 75px; }
.nav-item-europe .region-dropdown { --offset-x: 0px; }
.nav-item-africa .region-dropdown { --offset-x: -75px; }
.nav-item-oceania .region-dropdown { --offset-x: -150px; }

/* 地区网格布局 */
.region-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.nav-item:nth-child(2) .region-grid,
.nav-item:nth-child(3) .region-grid,
.nav-item:nth-child(4) .region-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    row-gap: 0.5rem;
}

/* 地区链接 */
.region-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.5);
    backdrop-filter: blur(10px);
    position: relative;
}

.region-link:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.1);
}

.region-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 50%;
    width: 2px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.2s;
    border-radius: 1px;
}

.region-link:hover::before {
    opacity: 1;
}

.region-name {
    font-weight: 500;
    font-size: 0.9rem;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 地区标签 */
.region-badge {
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.region-badge.hot {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #ef4444;
}

.region-badge.sale {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #f59e0b;
}

.region-badge.new {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #3b82f6;
}

.region-badge.count {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    color: #475569;
}

/* 右侧工具栏 */
.nav-tools {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* ==================== 切换开关组件 ==================== */
.toggle-switch {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 50px;
    padding: 0.25rem;
    display: flex;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 
        inset 0 1px 2px rgba(0, 0, 0, 0.05),
        0 2px 6px rgba(0, 0, 0, 0.03);
}

.toggle-switch:hover {
    box-shadow: 
        inset 0 1px 2px rgba(0, 0, 0, 0.05),
        0 4px 10px rgba(0, 0, 0, 0.06);
}

.toggle-option {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
    position: relative;
    z-index: 2;
    transition: color 0.3s;
    user-select: none;
}

.toggle-option.active {
    color: #0891b2;
    font-weight: 600;
}

.toggle-slider {
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    height: calc(100% - 0.5rem);
    width: calc(50% - 0.25rem);
    background: white;
    border-radius: 50px;
    transition: transform 0.3s;
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05);
}

.toggle-switch[data-value="en"] .toggle-slider,
.toggle-switch[data-value="usd"] .toggle-slider {
    transform: translateX(100%);
}

/* 页脚语言切换 - 桌面端隐藏 */
.footer-lang-toggle {
    display: none;
}

/* ==================== 按钮组件 ==================== */
.btn {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

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

.btn-secondary:hover {
    background: white;
    border-color: var(--accent-color);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

/* 客户系统按钮 */
.customer-btn {
    display: inline-block;
    background: var(--accent-gradient);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 0.5rem;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.customer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

/* ==================== 徽章组件 ==================== */
.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.badge-primary {
    background: linear-gradient(135deg, #ddd6fe, #c4b5fd);
    color: #6366f1;
}

.badge-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.badge-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
}

.badge-warning {
    background: linear-gradient(135deg, #fff3cd, #ffe69c);
    color: #856404;
}

.badge-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

/* ==================== 提示框组件 ==================== */
.alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-color: #86efac;
    color: #065f46;
}

.alert-info {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-color: #93c5fd;
    color: #1e40af;
}

.alert-warning {
    background: linear-gradient(135deg, #fed7aa, #fdba74);
    border-color: #fb923c;
    color: #92400e;
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-color: #fca5a5;
    color: #991b1b;
}

/* ==================== 表单组件 ==================== */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: white;
    background-clip: padding-box;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: var(--text-primary);
    background-color: white;
    border-color: var(--accent-color);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

/* ==================== 分页组件 ==================== */
.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 0.25rem;
}

.page-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.2s;
}

.page-link:hover {
    background-color: var(--bg-light);
    border-color: var(--accent-color);
}

.page-link.active {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
}

.page-link.disabled {
    color: var(--text-secondary);
    pointer-events: none;
    opacity: 0.5;
}

/* ==================== 模态框组件 ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-dialog {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* ==================== 加载动画 ==================== */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 0.8s linear infinite;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* ==================== 通用区块标题 ==================== */
.section-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    display: inline;
}

.section-more {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s;
    margin-left: 0.5rem;
}

.section-more:hover {
    color: #0891b2;
}

/* ==================== 通用服务器列表 ==================== */
.server-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.server-item {
    background: white;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 2rem;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.server-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s;
}

.server-item:hover {
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.12);
    transform: translateY(-3px);
    border-color: rgba(6, 182, 212, 0.3);
}

.server-item:hover::before {
    opacity: 1;
}

/* 服务器地区/特色标签 */
.server-region {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
    min-width: 80px;
    text-align: center;
}

/* 服务器配置 */
.server-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.spec-item {
    text-align: center;
    padding: 0.5rem 1rem;
    background: #f8fafc;
    border-radius: 10px;
    transition: all 0.2s;
    flex: 1 1 auto;
    min-width: 100px;
}

.spec-item:hover {
    background: #f1f5f9;
}

.spec-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.35rem;
    font-weight: 500;
    display: block;
}

.spec-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.3;
    word-break: break-word;
}

/* GPU 高亮 */
.spec-item.spec-gpu {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}

/* 价格区域 */
.server-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    gap: 0.2rem;
}

/* 折扣徽章 */
.server-badge {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 3px;
}

/* 原价 */
.price-original {
    font-size: 0.8rem;
    color: #94a3b8;
    text-decoration: line-through;
    line-height: 1.2;
}

/* 现价 */
.price-current {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1.2;
}

/* 订购按钮 */
.btn-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    color: white;
    padding: 0.75rem 1.8rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.25);
}

.btn-order:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.35);
}

/* 空消息 */
.empty-message {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
}

/* ==================== 通用 FAQ 样式 ==================== */
.faq-section {
    padding: 30px 0;
    background: var(--bg-light);
}

.faq-container {
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.faq-question {
    padding: 14px 22px;
    padding-right: 80px;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    line-height: 1.5;
    background: white;
}

.faq-question .toggle-btn {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.faq-question .toggle-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-secondary);
    transition: all 0.3s;
}

.faq-question:hover .toggle-btn {
    background: linear-gradient(135deg, #ecfeff, #cffafe);
}

.faq-question:hover .toggle-btn svg {
    stroke: var(--accent-color);
}

.faq-item.active .faq-question .toggle-btn {
    background: var(--accent-gradient);
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.35);
}

.faq-item.active .faq-question .toggle-btn svg {
    stroke: white;
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 600px;
}

.faq-answer p {
    padding: 0 14px 18px;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.9;
    font-size: 0.95rem;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}

/* ==================== 页脚 ==================== */
footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 1.5rem 0 1rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.5), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-copyright {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* ==================== 全局动画 ==================== */
@keyframes spin {
    to { transform: rotate(360deg); }
}

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

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

/* ==================== 移动端响应式 - 通用 ==================== */
@media (max-width: 768px) {
    /* Hero 响应式 */

    
    .hero h1 {
        font-size: 1.3rem;
    }
    
    .hero p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
     .hero .badge {
        font-size: 0.85rem;
        padding: 0.4rem 0.9rem;
        gap: 0.4rem;
    }
    
    .hero .stats {
        gap: 1rem;
        margin-bottom: 
        rem;
    }
    
    .hero .stat b {
        font-size: 1.2rem;
    }
    
    .hero .stat span {
        font-size: 0.7rem;
    }
    
    .hero .cta {
        gap: 0.75rem;
    }
    
    .hero .cta .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* 禁用移动端 hover 触发 */
    .nav-item:hover .region-dropdown-wrapper,
    .region-dropdown-wrapper:hover {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    
    /* 点击打开时显示 */
    .nav-item.dropdown-open .region-dropdown-wrapper {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
    
    /* 箭头旋转 */
    .nav-item.dropdown-open .nav-arrow {
        transform: rotate(180deg);
    }
    
    /* 下拉菜单定位 */
    .region-dropdown-wrapper {
        position: fixed;
        top: 45px;
        left: 10px;
        right: 10px;
        transform: none;
        width: auto;
        max-width: calc(100vw - 20px);
    }
    
    /* 隐藏Logo和导航工具栏 */
    .logo { display: none; }
    .nav-tools { display: none; }
    
    /* 导航缩小 */
    .nav-center {
        min-width: unset;
        width: calc(100vw - 40px);
    }
    
    .nav-link {
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
    }
    
    /* 英文导航优化 */
    html[lang="en-US"] .nav-link {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
    }
    
    body.lang-en .nav-link {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
        letter-spacing: -0.01em;
    }

    .region-dropdown {
        width: 100%;
        max-height: 70vh;
        overflow-y: auto;
        padding: 0.5rem;
        font-size: 0.85rem;
        --offset-x: 0 !important;
        transform: none;
    }
    
    .nav-item:nth-child(2) .region-grid,
    .nav-item:nth-child(3) .region-grid,
    .nav-item:nth-child(4) .region-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }
    
    .region-link {
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .region-name { font-size: 0.8rem; }
    
    .region-badge {
        font-size: 0.55rem;
        padding: 0.1rem 0.3rem;
    }
    
    /* 通用区块标题 */
    .section-header { margin-bottom: 1rem; }
    .section-title { font-size: 1.2rem; margin-bottom: 0.3rem; }
    .section-subtitle { font-size: 0.75rem; }
    .section-more { font-size: 0.75rem; }
    
    /* 服务器列表响应式 */
    .server-list { gap: 0.75rem; }
    
    .server-item {
        display: flex;
        flex-wrap: wrap;
        padding: 0.75rem;
        gap: 0.4rem;
        align-items: center;
    }
    
    .server-item::before { display: none; }
    
    .server-item::after {
        content: '';
        order: 2;
        flex-basis: 100%;
        height: 1px;
        background: #e2e8f0;
        margin-top: 0.4rem;
    }
    
    .server-region {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
        border-radius: 4px;
        min-width: auto;
        box-shadow: none;
        order: 1;
        line-height: 1.3;
    }
    
    .server-specs { display: contents; }
    
    .spec-item {
        display: inline-flex;
        padding: 0.2rem 0.5rem;
        border-radius: 4px;
        background: #f1f5f9;
        min-width: auto;
        flex: none;
        order: 2;
        line-height: 1.3;
    }
    
    .spec-label { display: none; }
    
    .spec-value {
        font-size: 0.7rem;
        font-weight: 500;
        line-height: 1.3;
    }
    
    .server-price {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.4rem;
        min-width: auto;
        order: 3;
        margin-top: 0.5rem;
        padding-top: 0.6rem;
        flex: none;
    }
    
    .price-original { font-size: 0.75rem; order: 1; }
    
    .server-badge {
        order: 2;
        padding: 0.1rem 0.35rem;
        font-size: 0.6rem;
    }
    
    .price-current { font-size: 1rem; order: 3; }
    
    .btn-order {
        order: 4;
        margin-left: auto;
        margin-top: 0.5rem;
        padding: 0.45rem 1rem;
        font-size: 0.75rem;
        border-radius: 20px;
        flex-shrink: 0;
    }
    
    /* FAQ 响应式 */
    .faq-section { padding: 40px 0; }
    .faq-container { gap: 12px; }
    .faq-item { border-radius: 16px; }
    
    .faq-question {
        padding: 18px 20px;
        padding-right: 64px;
        font-size: 0.95rem;
    }
    
    .faq-question .toggle-btn {
        width: 34px;
        height: 34px;
        right: 16px;
        border-radius: 10px;
    }
    
    .faq-question .toggle-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .faq-answer p {
        padding: 0 20px 20px;
        padding-top: 16px;
        font-size: 0.85rem;
        line-height: 1.8;
    }
    
    /* 页脚响应式 */
    footer { padding: 0.75rem 0 0.5rem; }
    
    .footer-content {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.75rem;
        padding: 0.5rem 0;
    }
    
    .footer-section:nth-child(2),
    .footer-section:nth-child(3) { display: none; }
    
    .footer-section:nth-child(1) { flex: 0 0 auto; }
    .footer-section:nth-child(1) h3 { margin: 0; font-size: 0.9rem; }
    .footer-section:nth-child(1) p { display: none; }
    
    .footer-section:nth-child(4) {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .footer-section:nth-child(4) h3 { display: none; }
    
    .footer-section:nth-child(4) .customer-btn {
        margin-top: 0;
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .footer-lang-toggle { display: flex; }
    .footer-lang-toggle .toggle-switch { padding: 0.15rem; }
    .footer-lang-toggle .toggle-option { padding: 0.25rem 0.5rem; font-size: 0.7rem; }
    .footer-lang-toggle .toggle-slider { width: calc(50% - 0.15rem); }
    
    .footer-copyright { padding-top: 0.5rem; margin-top: 0.5rem; }
    
    footer > .container > div:last-child {
        padding-top: 1rem;
        margin-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    footer > .container > div:last-child p {
        font-size: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 0;
        line-height: 1.4;
    }
}
