/* ===== 基础重置与变量 ===== */
:root {
    --primary: #4F46E5;
    --primary-light: #818CF8;
    --primary-dark: #3730A3;
    --accent: #06B6D4;
    --accent-light: #67E8F9;
    --bg: #FFFFFF;
    --bg-alt: #F8FAFC;
    --bg-dark: #0F172A;
    --text: #1E293B;
    --text-secondary: #64748B;
    --text-light: #94A3B8;
    --border: #E2E8F0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 24px 60px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

ul { list-style: none; }

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
    font-size: 15px;
}

.btn-sm { padding: 8px 20px; font-size: 14px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    font-weight: 500;
}
.btn-ghost:hover {
    color: var(--primary);
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 20px;
    color: var(--bg);
    transition: var(--transition);
}

.navbar.scrolled .logo { color: var(--text); }

.logo-icon {
    font-size: 24px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 400;
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
    position: relative;
}

.navbar.scrolled .nav-links a { color: var(--text-secondary); }

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-actions .btn-outline {
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}

.navbar.scrolled .nav-actions .btn-outline {
    color: var(--primary);
    border-color: var(--primary);
}

.nav-actions .btn-outline:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: var(--transition);
}

.navbar.scrolled .menu-toggle span { background: var(--text); }

/* ===== Hero 区域 ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 40%, #312E81 70%, #1E1B4B 100%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.floating-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
}

.shape-1 {
    width: 400px; height: 400px;
    background: var(--primary);
    top: -100px; right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 300px; height: 300px;
    background: var(--accent);
    bottom: -50px; left: -50px;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px; height: 200px;
    background: #8B5CF6;
    top: 40%; left: 60%;
    animation: float 12s ease-in-out infinite;
}

.shape-4 {
    width: 150px; height: 150px;
    background: var(--primary-light);
    top: 20%; left: 20%;
    animation: float 9s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 72px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 64px;
}

.hero-actions .btn-ghost { color: rgba(255,255,255,0.8); }
.hero-actions .btn-ghost:hover { color: #fff; }

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.4);
    font-size: 12px;
    z-index: 1;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(255,255,255,0.3);
    border-bottom: 2px solid rgba(255,255,255,0.3);
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 1; }
    50% { transform: rotate(45deg) translate(4px, 4px); opacity: 0.5; }
}

/* ===== 通用 Section ===== */
section { padding: 100px 0; }

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-desc {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== 服务板块 ===== */
.services { background: var(--bg-alt); }

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

.service-card {
    position: relative;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: var(--transition);
    border: 1px solid var(--border);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, #fff, #F5F3FF);
}

.service-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 70, 229, 0.08);
    border-radius: 14px;
    margin-bottom: 20px;
    color: var(--primary);
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-tags span {
    padding: 4px 12px;
    background: var(--bg-alt);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* ===== 核心优势 ===== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.adv-card {
    padding: 36px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.adv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.adv-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-lg);
}

.adv-card:hover::before { transform: scaleX(1); }

.adv-number {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, rgba(79,70,229,0.15), rgba(6,182,212,0.15));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1;
}

.adv-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.adv-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== 成功案例 ===== */
.cases { background: var(--bg-alt); }

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

.case-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.case-industry {
    display: inline-block;
    padding: 4px 14px;
    background: linear-gradient(135deg, rgba(79,70,229,0.1), rgba(6,182,212,0.1));
    color: var(--primary);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
}

.case-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

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

.case-metrics {
    display: flex;
    gap: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.metric { text-align: center; flex: 1; }

.metric-value {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.metric-label {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

/* ===== 合作伙伴 ===== */
.partners-marquee {
    overflow: hidden;
    margin-top: 48px;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 16px;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.partner-item {
    padding: 16px 32px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: var(--transition);
}

.partner-item:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.04);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== CTA 区域 ===== */
.cta {
    background: var(--bg-dark);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79,70,229,0.2), transparent 70%);
    top: -200px;
    right: -200px;
}

.cta::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6,182,212,0.15), transparent 70%);
    bottom: -100px;
    left: -100px;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.cta p {
    font-size: 17px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 40px;
    line-height: 1.8;
}

.cta-form {
    max-width: 800px;
    margin: 0 auto 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 12px;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.form-group input::placeholder { color: rgba(255,255,255,0.35); }

.form-group input:focus {
    border-color: var(--primary-light);
    background: rgba(255,255,255,0.12);
}

.cta-info {
    display: flex;
    justify-content: center;
    gap: 32px;
    font-size: 14px;
    color: rgba(255,255,255,0.4);
}

/* ===== 页脚 ===== */
.footer {
    background: #0A0F1C;
    color: rgba(255,255,255,0.6);
    padding: 64px 0 32px;
}

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

.footer-brand .logo {
    color: #fff;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
}

.footer-links h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    transition: var(--transition);
}

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

.footer-links li:not(:has(a)) {
    font-size: 14px;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.3);
}

.footer-bottom p {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.footer-bottom a {
    color: rgba(255,255,255,0.3);
    text-decoration: none;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.footer-bottom a:hover {
    color: rgba(255,255,255,0.7);
}

.police-link img {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .hero-title { font-size: 52px; }
    .services-grid,
    .advantages-grid,
    .cases-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    html { font-size: 15px; }

    .nav-links,
    .nav-actions { display: none; }
    .menu-toggle { display: flex; }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow-md);
    }

    .nav-links.open a { color: var(--text); }

    .hero-title { font-size: 40px; letter-spacing: -1px; }
    .hero-desc { font-size: 16px; }
    .hero-desc br { display: none; }
    .hero-actions { flex-direction: column; align-items: center; }

    .section-title { font-size: 32px; }

    .services-grid,
    .advantages-grid,
    .cases-grid { grid-template-columns: 1fr; }

    .form-row { grid-template-columns: 1fr; }

    .cta h2 { font-size: 28px; }
    .cta-info { flex-direction: column; gap: 12px; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }

    .case-metrics { flex-direction: column; gap: 16px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 32px; }
}

/* ===== 动画 ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
