/* ============================================
   数资天下科技（深圳）有限公司 — 全局样式
   ============================================ */
/* --- 基础重置 & 变量 --- */
:root {
    --primary: #1a365d;
    --primary-light: #2b4c7e;
    --accent: #3b82f6;
    --accent-light: #60a5fa;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --text-dark: #1e293b;
    --text-gray: #475569;
    --text-light: #94a3b8;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --radius: 12px;
    --max-width: 1280px;
    --nav-height: 72px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 16px;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-light); }
img { max-width: 100%; height: auto; }
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}
/* --- 导航栏 --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: var(--shadow); }
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.navbar .logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.navbar .logo span { color: var(--accent); }
.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}
.nav-links a {
    color: var(--text-gray);
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.2s;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--primary); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
/* 汉堡菜单按钮 */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s;
    border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
/* --- 页面通用 --- */
.page-section {
    padding: 80px 0;
}
.page-section.bg-light { background: var(--bg-light); }
.page-section.bg-gray { background: var(--bg-gray); }
.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 16px;
}
.section-subtitle {
    font-size: 17px;
    color: var(--text-gray);
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
    line-height: 1.8;
}
/* --- 按钮 --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
}
.btn-primary {
    background: var(--accent);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--primary-light);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}
.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}
.btn-outline:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-1px);
}
.btn-white {
    background: var(--white);
    color: var(--primary);
}
.btn-white:hover {
    background: var(--bg-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}
/* --- 卡片 --- */
.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--white);
    flex-shrink: 0;
}
.card-icon.blue { background: var(--accent); }
.card-icon.dark { background: var(--primary); }
.card-icon.green { background: #10b981; }
.card-icon.orange { background: #f59e0b; }
.card-icon.purple { background: #8b5cf6; }
.card h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 12px;
}
.card p {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.7;
}
/* --- 网格布局 --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 24px; }
/* --- Hero 区域 --- */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #0f2440 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
    letter-spacing: 1px;
}
.hero p {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    max-width: 800px;
    margin: 0 auto 36px;
    line-height: 1.8;
}
.hero .btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
/* --- 合规提示条 --- */
.compliance-bar {
    background: var(--bg-gray);
    padding: 12px 24px;
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.6;
    border-top: 1px solid var(--border);
}
/* --- 页脚 --- */
.footer {
    background: var(--primary);
    color: rgba(255,255,255,0.8);
    padding: 40px 0 24px;
}
.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}
.footer .footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}
.footer .footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}
.footer .footer-links a:hover { color: var(--white); }
.footer .copyright {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}
/* --- 行动Banner --- */
.cta-banner {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary-light) 100%);
    padding: 64px 24px;
    text-align: center;
    color: var(--white);
}
.cta-banner h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
}
.cta-banner .btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
/* --- 动画 --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
/* --- 关于我们 — 业务边界说明 --- */
.boundary-box {
    background: var(--bg-light);
    border-left: 4px solid var(--accent);
    padding: 32px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 32px 0;
}
.boundary-box h3 {
    color: var(--primary);
    font-size: 18px;
    margin-bottom: 16px;
}
.boundary-box ul {
    list-style: none;
    padding: 0;
}
.boundary-box ul li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.7;
}
.boundary-box ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}
/* --- 联系我们 — 信息展示 --- */
.contact-info-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.contact-info-icon {
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}
.contact-info-text strong {
    display: block;
    color: var(--text-dark);
    font-size: 15px;
    margin-bottom: 2px;
}
.contact-info-text span {
    color: var(--text-gray);
    font-size: 15px;
}
/* --- 合规声明页面 --- */
.compliance-page {
    padding-top: calc(var(--nav-height) + 40px);
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 60px;
    padding-left: 24px;
    padding-right: 24px;
}
.compliance-page h1 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 32px;
    text-align: center;
}
.compliance-page .compliance-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-gray);
    line-height: 1.8;
}
.compliance-page .compliance-item:last-child { border-bottom: none; }
.compliance-page .compliance-item strong {
    color: var(--text-dark);
}
/* --- 页面头部 --- */
.page-header {
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 40px;
    background: var(--bg-light);
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.page-header h1 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 12px;
}
.page-header p {
    color: var(--text-gray);
    max-width: 640px;
    margin: 0 auto;
    font-size: 16px;
    padding: 0 24px;
}
/* --- 响应式：平板 (≤1024px) --- */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 36px; }
    .hero p { font-size: 17px; }
    .section-title { font-size: 30px; }
    .page-header h1 { font-size: 30px; }
}
/* --- 响应式：手机 (≤768px) --- */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px 24px;
        gap: 4px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .nav-links a {
        display: block;
        padding: 12px 16px;
        border-radius: 8px;
        font-size: 16px;
    }
    .nav-links a:hover,
    .nav-links a.active {
        background: var(--bg-light);
    }
    .nav-links a::after { display: none; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 20px; }
    .hero { padding: 110px 0 50px; }
    .hero h1 { font-size: 24px; letter-spacing: 0.5px; }
    .hero p { font-size: 15px; margin-bottom: 28px; }
    .hero .btn-group { flex-direction: column; align-items: center; }
    .hero .btn-group .btn { width: 100%; max-width: 280px; justify-content: center; }
    .section-title { font-size: 22px; }
    .section-subtitle { font-size: 15px; margin-bottom: 32px; padding: 0 8px; }
    .page-section { padding: 40px 0; }
    .container { padding: 0 16px; }
    .card { padding: 24px; }
    .card h3 { font-size: 18px; }
    .card p { font-size: 14px; }
    .card-icon { width: 48px; height: 48px; font-size: 20px; margin-bottom: 16px; }
    .cta-banner { padding: 40px 16px; }
    .cta-banner h2 { font-size: 20px; }
    .cta-banner .btn-group { flex-direction: column; align-items: center; }
    .cta-banner .btn-group .btn { width: 100%; max-width: 280px; justify-content: center; }
    .footer { padding: 32px 0 20px; }
    .footer .footer-links { gap: 16px; }
    .footer .footer-links a { font-size: 13px; }
    .footer .copyright { font-size: 12px; }
    .compliance-bar { padding: 10px 16px; font-size: 11px; }
    .page-header { padding-top: calc(var(--nav-height) + 24px); padding-bottom: 28px; }
    .page-header h1 { font-size: 24px; }
    .page-header p { font-size: 14px; padding: 0 16px; }
    .boundary-box { padding: 20px; margin: 20px 0; }
    .boundary-box ul li { font-size: 14px; padding: 6px 0 6px 20px; }
    .compliance-page { padding-top: calc(var(--nav-height) + 24px); padding-left: 16px; padding-right: 16px; }
    .compliance-page h1 { font-size: 22px; }
    .compliance-page .compliance-item { font-size: 14px; }
    .contact-info-icon { width: 44px; height: 44px; font-size: 16px; }
    .contact-info-text strong { font-size: 14px; }
    .contact-info-text span { font-size: 14px; }
}
/* --- 响应式：小手机 (≤480px) --- */
@media (max-width: 480px) {
    .navbar .logo { font-size: 15px; }
    .hero h1 { font-size: 20px; }
    .hero p { font-size: 14px; }
    .section-title { font-size: 20px; }
    .card { padding: 20px; }
    .card h3 { font-size: 16px; }
    .card p { font-size: 13px; }
    .card-icon { width: 40px; height: 40px; font-size: 18px; }
    .page-header h1 { font-size: 20px; }
    .cta-banner h2 { font-size: 18px; }
}