/* ==========================================================================
   全局变量与基础设置
   ========================================================================== */
:root {
    --primary-color: #0d1b2a;      /* 深邃商务蓝 */
    --accent-color: #1a365d;       /* 强调蓝 */
    --text-main: #333333;          /* 正文主色调 */
    --text-muted: #666666;         /* 辅助文字灰 */
    --bg-light: #f8f9fa;           /* 浅灰背景（用于区块分割） */
    --white: #ffffff;
    --footer-bg: #e0e4e8;          /* 页脚底色 */
    --danger-color: #d9534f;       /* 警告/违规提示红 */
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Helvetica Neue', Arial, sans-serif; 
}

body { 
    color: var(--text-main); 
    background-color: var(--white); 
    line-height: 1.6; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; /* 确保页脚始终沉底 */
}

main { 
    flex: 1; 
}

/* ==========================================================================
   统一标准化 Header & Navigation
   ========================================================================== */
header { 
    background-color: var(--primary-color); 
    padding: 15px 50px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.2); 
}

.logo-area { 
    display: flex; 
    align-items: center; 
    color: var(--white); 
    font-weight: bold; 
    font-size: 1.3rem; 
    text-decoration: none; 
}

.logo-area img { 
    height: 35px; 
    margin-right: 12px; 
}

nav { 
    display: flex; 
    gap: 25px; 
    align-items: center; 
}

nav a { 
    color: var(--white); 
    text-decoration: none; 
    font-size: 0.95rem; 
    font-weight: 500; 
    transition: color 0.3s; 
}

nav a:hover, nav a.active { 
    color: #4da8da; 
}

/* 语言选择器 */
.lang-selector { 
    background: rgba(255,255,255,0.1); 
    color: var(--white); 
    border: 1px solid rgba(255,255,255,0.3); 
    padding: 6px 10px; 
    border-radius: 4px; 
    outline: none; 
    cursor: pointer; 
    transition: all 0.3s; 
}

.lang-selector:hover { 
    background: rgba(255,255,255,0.2); 
}

.lang-selector option { 
    color: var(--text-main); 
    background: var(--white); 
}

/* ==========================================================================
   首页 (Home) 专属样式
   ========================================================================== */
.hero { 
    /* CDN替换点：主页背景大图 */
    background: url('https://r2-assets-cloudflare.netget.org/NetGet-Network/hero-bg.jpeg') center/cover no-repeat; 
    padding: 100px 20px; 
    text-align: center; 
    color: var(--white); 
    position: relative; 
}

.hero::before { 
    content: ''; 
    position: absolute; 
    top: 0; left: 0; right: 0; bottom: 0; 
    background: rgba(13, 27, 42, 0.8); /* 黑色遮罩增加文字可读性 */
}

.hero-content { 
    position: relative; 
    z-index: 1; 
    max-width: 800px; 
    margin: 0 auto; 
}

.hero h1 { 
    font-size: 3.5rem; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    margin-bottom: 20px; 
}

.hero p { 
    font-size: 1.2rem; 
    color: #d0d8e0; 
    margin-bottom: 30px; 
}

.hero .divider { 
    width: 80px; 
    height: 4px; 
    background-color: #4da8da; 
    margin: 0 auto; 
}

/* 通用网格布局 (用于首页三大特性) */
.container { 
    max-width: 1200px; 
    margin: 60px auto; 
    padding: 0 20px; 
}

.features-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 50px; 
    text-align: center; 
}

.feature-card { 
    padding: 20px; 
    transition: transform 0.3s; 
}

.feature-card:hover { 
    transform: translateY(-5px); 
}

.feature-card img { 
    width: 100%; 
    max-width: 220px; 
    margin-bottom: 25px; 
}

.feature-card h3 { 
    font-size: 1.5rem; 
    margin-bottom: 15px; 
    color: var(--accent-color); 
}

.feature-card p { 
    color: var(--text-muted); 
    font-size: 1rem; 
    line-height: 1.8; 
}

/* ==========================================================================
   服务页 (Services) 专属样式
   ========================================================================== */
.services-header { 
    text-align: center; 
    margin-bottom: 50px; 
}

.services-header h1 { 
    color: var(--primary-color); 
    font-size: 2.5rem; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
}

.services-header .divider { 
    width: 60px; 
    height: 4px; 
    background-color: #4da8da; 
    margin: 15px auto 0; 
}

.service-card-extended { 
    display: flex; 
    flex-direction: column; 
    background: var(--white); 
    border: 1px solid #e0e4e8; 
    border-radius: 8px; 
    padding: 40px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    transition: transform 0.3s, box-shadow 0.3s; 
    margin-bottom: 30px;
}

.service-card-extended:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 8px 25px rgba(0,0,0,0.1); 
}

.service-card-extended h3 { 
    font-size: 1.8rem; 
    color: var(--accent-color); 
    margin-bottom: 20px; 
    display: flex; 
    align-items: center; 
    gap: 10px;
}

.service-card-extended p { 
    color: var(--text-muted); 
    font-size: 1.1rem; 
    line-height: 1.8; 
    text-align: justify;
}

/* 硬件生态合作伙伴区域 */
.partners-section { 
    margin-top: 80px; 
    text-align: center; 
    padding: 40px; 
    background-color: var(--bg-light); 
    border-radius: 8px; 
}

.partners-section h3 { 
    font-size: 1.5rem; 
    color: var(--primary-color); 
    margin-bottom: 30px; 
    text-transform: uppercase; 
}

.partner-logos { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 40px; 
    flex-wrap: wrap; 
}

.partner-logos span { 
    font-weight: 700; 
    color: #88929e; 
    font-size: 1.4rem; 
    letter-spacing: 1px; 
    transition: color 0.3s; 
    cursor: default;
}

.partner-logos span:hover { 
    color: var(--accent-color); 
}

/* 合规性免责声明框 */
.disclaimer-box { 
    background-color: #fcf8e3; 
    border-left: 5px solid var(--danger-color); 
    padding: 25px; 
    margin-top: 60px; 
    border-radius: 0 8px 8px 0; 
}

.disclaimer-box p { 
    font-size: 0.9rem; 
    color: #666; 
    margin-bottom: 10px; 
    line-height: 1.6; 
}

.disclaimer-box p:last-child { 
    margin-bottom: 0; 
}

.strict-note { 
    color: var(--danger-color); 
    font-weight: bold; 
}

/* ==========================================================================
   法律条款页 (Privacy & Terms) 专属样式
   ========================================================================== */
.legal-container { 
    max-width: 900px; 
    margin: 60px auto; 
    padding: 40px; 
    background: var(--white); 
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); 
    border-radius: 8px; 
}

.legal-header { 
    text-align: center; 
    margin-bottom: 40px; 
}

.legal-header h1 { 
    font-size: 2.2rem; 
    color: var(--primary-color); 
    margin-bottom: 10px; 
}

.legal-header .effective-date { 
    color: var(--text-muted); 
    font-size: 0.95rem; 
}

.legal-header .divider { 
    width: 50px; 
    height: 3px; 
    background-color: var(--accent-color); 
    margin: 20px auto 0; 
}

.legal-content h2 { 
    margin-top: 40px; 
    margin-bottom: 20px; 
    color: var(--accent-color); 
    font-size: 1.5rem; 
    border-bottom: 1px solid #eee; 
    padding-bottom: 10px; 
}

.legal-content h3 { 
    margin-top: 25px; 
    margin-bottom: 15px; 
    color: var(--primary-color); 
    font-size: 1.2rem; 
}

.legal-content p { 
    margin-bottom: 15px; 
    line-height: 1.8; 
    text-align: justify; 
}

.legal-content ul { 
    margin-bottom: 20px; 
    padding-left: 20px; 
}

.legal-content li { 
    margin-bottom: 10px; 
    line-height: 1.8; 
}

/* 红色强合规警告样式 */
.strict-warning-title { 
    color: var(--danger-color) !important; 
    font-weight: bold; 
}

.strict-box { 
    border: 2px solid var(--danger-color); 
    background-color: #fffafa; 
    padding: 20px; 
    border-radius: 6px; 
    margin: 20px 0; 
}

.strict-box p { 
    margin-bottom: 10px; 
}

.strict-box p:last-child { 
    margin-bottom: 0; 
}

.strict-highlight { 
    color: var(--danger-color); 
    font-weight: bold; 
}

/* ==========================================================================
   Cookie 合规横幅
   ========================================================================== */
#cookie-banner { 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    background-color: rgba(13, 27, 42, 0.95); 
    color: #fff; 
    padding: 15px 30px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    z-index: 9999; 
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3); 
    transform: translateY(100%); 
    transition: transform 0.5s ease-in-out; 
}

#cookie-banner.show { 
    transform: translateY(0); 
}

.cookie-text { 
    font-size: 0.85rem; 
    max-width: 80%; 
}

.cookie-text a { 
    color: #4da8da; 
    text-decoration: underline; 
}

.cookie-btn { 
    background-color: #4da8da; 
    color: #fff; 
    border: none; 
    padding: 10px 20px; 
    cursor: pointer; 
    border-radius: 4px; 
    font-weight: bold; 
    transition: background 0.3s; 
    white-space: nowrap; 
}

.cookie-btn:hover { 
    background-color: #3587b3; 
}

/* ==========================================================================
   统一标准化 Footer
   ========================================================================== */
footer { 
    background-color: var(--footer-bg); 
    padding: 40px 20px 20px; 
    text-align: center; 
    font-size: 0.9rem; 
    color: var(--text-muted); 
    border-top: 1px solid #d1d8e0; 
}

.footer-links { 
    margin-bottom: 20px; 
}

.footer-links a { 
    color: var(--accent-color); 
    text-decoration: none; 
    margin: 0 15px; 
    font-weight: 500; 
    transition: color 0.3s; 
}

.footer-links a:hover { 
    color: #4da8da; 
    text-decoration: underline; 
}

.footer-copyright { 
    border-top: 1px solid #ccc; 
    padding-top: 15px; 
    max-width: 800px; 
    margin: 0 auto; 
    font-size: 0.85rem; 
}

/* ==========================================================================
   响应式设计 (适配移动端)
   ========================================================================== */
@media (max-width: 768px) {
    header { 
        flex-direction: column; 
        padding: 15px; 
        gap: 15px; 
    }
    nav { 
        flex-wrap: wrap; 
        justify-content: center; 
    }
    .hero h1 { 
        font-size: 2.5rem; 
    }
    .legal-container { 
        padding: 20px; 
        margin: 30px auto; 
    }
    #cookie-banner { 
        flex-direction: column; 
        text-align: center; 
        gap: 15px; 
        padding: 20px; 
    }
    .cookie-text { 
        max-width: 100%; 
    }
    .partner-logos { 
        gap: 20px; 
    }
}