/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #d8e1ed;
    background: #06101f;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

img {
    max-width: 100%;
    display: block;
}

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

/* ===== Color tokens (呼应 Logo 蓝橙) ===== */
:root {
    --brand-blue: #1e88e5;
    --brand-blue-deep: #1565c0;
    --brand-orange: #ff8c42;
    --brand-orange-deep: #f57c00;
    --bg-dark: #06101f;
    --bg-deep: #050a16;
    --bg-soft: #0b1a2e;
    --text: #d8e1ed;
    --text-dim: #8a99b3;
    --text-muted: #6b7a91;
    --border: rgba(255, 255, 255, 0.08);
}

/* ===== 导航 ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(6, 16, 31, 0.75);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
    background: rgba(6, 16, 31, 0.92);
    border-bottom-color: var(--border);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
}

.brand-name {
    background: linear-gradient(120deg, #fff 30%, var(--brand-orange) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

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

.nav-links a {
    color: var(--text);
    font-size: 15px;
    position: relative;
    padding: 6px 0;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--brand-orange);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 30%, rgba(30, 136, 229, 0.25), transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 70%, rgba(255, 140, 66, 0.15), transparent 60%),
        linear-gradient(180deg, #06101f 0%, #050a16 100%);
    z-index: -1;
}

.hero-bg::before {
    content: "";
    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: 50px 50px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 80%);
}

.hero-content {
    max-width: 880px;
    text-align: center;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-eyebrow {
    display: inline-block;
    padding: 6px 16px;
    margin-bottom: 28px;
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--brand-orange);
    border: 1px solid rgba(255, 140, 66, 0.3);
    border-radius: 999px;
    background: rgba(255, 140, 66, 0.08);
}

.hero-title {
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    color: #fff;
    margin-bottom: 24px;
}

.hero-title .accent {
    background: linear-gradient(120deg, var(--brand-orange) 0%, #ffb347 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(15px, 1.6vw, 18px);
    color: var(--text);
    margin-bottom: 40px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle strong {
    color: #fff;
}

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

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
    border: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(120deg, var(--brand-blue) 0%, var(--brand-blue-deep) 100%);
    color: #fff;
    box-shadow: 0 10px 30px -10px rgba(30, 136, 229, 0.6);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -10px rgba(30, 136, 229, 0.8);
}

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

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.hero-points {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 48px;
    list-style: none;
}

.hero-points li {
    text-align: center;
}

.hero-points span {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(120deg, #fff 0%, var(--brand-orange) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-points em {
    font-style: normal;
    font-size: 14px;
    color: var(--text-dim);
}

/* ===== Section 通用 ===== */
.section {
    padding: 110px 0;
    position: relative;
}

.section-alt {
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}

.section-eyebrow {
    font-size: 13px;
    letter-spacing: 3px;
    color: var(--brand-orange);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(32px, 4.5vw, 44px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-dim);
}

/* ===== Grid ===== */
.grid {
    display: grid;
    gap: 24px;
}

.services-grid {
    grid-template-columns: repeat(2, 1fr);
}

.services-grid .card-wide {
    grid-column: span 2;
}

/* ===== Card ===== */
.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 40px 36px;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand-blue), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(30, 136, 229, 0.3);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #fff;
}

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

.icon-1 { background: linear-gradient(135deg, #1e88e5, #0d47a1); }
.icon-2 { background: linear-gradient(135deg, #00acc1, #00838f); }
.icon-3 { background: linear-gradient(135deg, #ff8c42, #f57c00); }
.icon-4 { background: linear-gradient(135deg, #7e57c2, #5e35b1); }
.icon-5 { background: linear-gradient(135deg, #26a69a, #00695c); }

.card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.card p {
    font-size: 15px;
    color: var(--text-dim);
    margin-bottom: 20px;
}

.card-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-tags li {
    padding: 4px 12px;
    font-size: 12px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 999px;
}

.card-wide {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.card-wide-text {
    flex: 1;
}

.card-wide .card-icon {
    flex-shrink: 0;
}

/* ===== Features Grid ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature {
    padding: 32px 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: transform 0.3s ease;
}

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

.feature-no {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(120deg, var(--brand-orange) 0%, #ffb347 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
    line-height: 1;
}

.feature h4 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.feature p {
    font-size: 14px;
    color: var(--text-dim);
}

/* ===== Contact ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.contact-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 40px 32px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 140, 66, 0.3);
}

.contact-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-deep));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

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

.contact-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.contact-card p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.7;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
    padding: 64px 0 0;
}

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

.footer-brand p {
    color: var(--text-dim);
    margin-top: 8px;
}

.footer-brand .footer-tag {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    margin-bottom: 12px;
    background: #fff;
    padding: 4px;
}

.footer-links h5 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 18px;
}

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

.footer-links a {
    color: var(--text-dim);
    font-size: 14px;
}

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

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 24px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--text-dim);
    transition: color 0.25s ease;
}

.footer-bottom a:hover {
    color: var(--brand-orange);
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
    .services-grid,
    .features-grid,
    .contact-grid,
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .services-grid .card-wide {
        grid-column: span 2;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 72px 0;
    }

    .services-grid,
    .features-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .services-grid .card-wide {
        grid-column: span 1;
        flex-direction: column;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .hero-points {
        gap: 24px;
    }

    .card,
    .feature,
    .contact-card {
        padding: 28px 24px;
    }
}
