/* ============================================
   翎风智航 · 精确复刻（Semi UI 配色 + pastel 背景球）
   主色 #0064FA  pastel: #ffd1dc/#e5d4ff/#d1fff6/#ffe5d9  文字 #16161a
   ============================================ */

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

:root {
    /* Semi UI 主色 blue-5 = 0,100,250 */
    --primary: #0064FA;
    --primary-hover: #0050D0;
    --primary-soft: rgba(0, 100, 250, 0.08);
    --primary-border: rgba(0, 100, 250, 0.3);

    /* pastel 背景球（原站 .with-pastel-balls 取值） */
    --pb1: #ffd1dc;
    --pb2: #e5d4ff;
    --pb3: #d1fff6;
    --pb4: #ffe5d9;
    --pb-opacity: .55;
    --pb-blur: 60px;

    /* 背景 / 文字 */
    --bg: #ffffff;
    --bg-soft: #fbfcfe;
    --bg-card: #ffffff;
    --text: #16161a;
    --text-dim: #5c5c66;
    --text-mute: #8a8a99;

    --border: rgba(22, 22, 26, 0.08);
    --border-bright: rgba(22, 22, 26, 0.14);
    --shadow-sm: 0 1px 3px rgba(22, 22, 26, 0.04), 0 4px 12px rgba(22, 22, 26, 0.04);
    --shadow-md: 0 6px 24px rgba(22, 22, 26, 0.08);
    --shadow-lg: 0 20px 48px rgba(0, 100, 250, 0.10);

    --container: 1200px;
    --radius: 16px;
    --radius-sm: 12px;

    --font-sans: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-display: 'Inter', 'Noto Sans SC', var(--font-sans);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ---------- pastel 背景球（精确复刻原站 .with-pastel-balls） ---------- */
.with-pastel-balls { position: relative; overflow: hidden; }
.with-pastel-balls::before {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at -5% -10%, var(--pb1) 0%, transparent 60%),
        radial-gradient(circle at 105% -10%, var(--pb2) 0%, transparent 55%),
        radial-gradient(circle at 5% 110%, var(--pb3) 0%, transparent 55%),
        radial-gradient(circle at 105% 110%, var(--pb4) 0%, transparent 50%);
    filter: blur(var(--pb-blur));
    opacity: var(--pb-opacity);
    transform: translateZ(0);
}
.with-pastel-balls > * { position: relative; z-index: 1; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    white-space: nowrap;
    font-family: var(--font-sans);
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 100, 250, 0.28);
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 100, 250, 0.38);
}

/* ---------- 导航 ---------- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: all 0.3s ease;
    padding: 16px 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.85);
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}
.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 19px;
    letter-spacing: -0.01em;
}
.logo-img { height: 30px; width: auto; }
.logo-text { color: var(--text); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
    font-size: 15px;
    color: var(--text-dim);
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-cta {
    padding: 8px 20px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0, 100, 250, 0.26);
}
.nav-cta:hover { background: var(--primary-hover); color: #fff !important; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span {
    width: 22px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero（视频背景轮播） ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #0a0e1a;
}
.hero-carousel { position: absolute; inset: 0; }
.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 0;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(6,12,30,0.45) 0%, rgba(6,12,30,0.25) 40%, rgba(6,12,30,0.60) 100%),
        radial-gradient(ellipse at center, rgba(0,40,90,0.10), rgba(6,12,30,0.45));
}
.hero-text {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 820px;
    padding: 0 24px;
    color: #fff;
}
.hero-title {
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    text-shadow: 0 2px 24px rgba(0,0,0,0.45);
}
.ht-line { display: block; }
.grad {
    background: linear-gradient(90deg, #5FA8FF, #C084FC);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-sub {
    font-size: clamp(16px, 2.2vw, 20px);
    color: rgba(255,255,255,0.90);
    margin-bottom: 36px;
    line-height: 1.7;
    text-shadow: 0 1px 12px rgba(0,0,0,0.45);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 3;
}
.hero-arrow:hover { background: var(--primary); border-color: var(--primary); }
.hero-prev { left: 28px; }
.hero-next { right: 28px; }

.hero-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}
.hd {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s;
}
.hd.active { background: #fff; width: 30px; border-radius: 5px; }

/* ---------- 通用 section ---------- */
.section { padding: 96px 0; position: relative; }
.section-soft { background: var(--bg-soft); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head-sub { margin-top: 80px; }
.eyebrow {
    display: inline-block;
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
    padding: 4px 14px;
    background: var(--primary-soft);
    border-radius: 999px;
}
.section-title {
    font-size: clamp(26px, 3.6vw, 38px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 14px;
}
.section-desc {
    font-size: 16.5px;
    color: var(--text-dim);
}

/* ---------- 卡片 ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 26px;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-border);
}
.card-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.ci-blue { background: rgba(0, 100, 250, 0.10); color: var(--primary); }
.ci-purple { background: rgba(124, 58, 237, 0.10); color: #7C3AED; }
.ci-cyan { background: rgba(6, 182, 212, 0.10); color: #0891B2; }
.card h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 10px;
}
.card > p {
    font-size: 14.5px;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 18px;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tags span {
    font-size: 12.5px;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 500;
}
.card-links { display: flex; gap: 18px; margin-top: auto; align-items: center; }
.link-primary { font-size: 14.5px; font-weight: 600; color: var(--primary); }
.link-primary:hover { opacity: 0.75; }
.link-ghost { font-size: 14.5px; color: var(--text-dim); }
.link-ghost:hover { color: var(--primary); }

/* ---------- 媒体卡（航空模组 / 算法算力） ---------- */
.card-media .media-frame,
.card-ai .ai-frame {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 20px;
    aspect-ratio: 16 / 10;
    background: var(--bg-soft);
}
.card-media .media-frame img,
.card-ai .ai-frame img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.card-media:hover .media-frame img,
.card-ai:hover .ai-frame img { transform: scale(1.04); }
.media-cat {
    position: absolute;
    top: 12px; left: 12px;
    font-size: 12px;
    color: #fff;
    background: rgba(22, 22, 26, 0.55);
    backdrop-filter: blur(8px);
    padding: 4px 10px;
    border-radius: 999px;
}

/* ---------- 核心算法卡 ---------- */
.core-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.core-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}
.core-card::before {
    content: "";
    position: absolute;
    left: 0; top: 0;
    width: 3px; height: 100%;
    background: var(--primary);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.25s;
}
.core-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.core-card:hover::before { transform: scaleY(1); }
.core-tag {
    font-size: 12px;
    color: var(--text-mute);
    margin-bottom: 8px;
    font-weight: 500;
}
.core-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.core-card p { font-size: 14px; color: var(--text-dim); line-height: 1.65; }

/* ---------- 关于我们 ---------- */
.about-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}
.about-text .eyebrow { margin-bottom: 14px; }
.about-text .section-title { text-align: left; margin-bottom: 22px; }
.about-desc {
    font-size: 16px;
    color: var(--text-dim);
    line-height: 1.85;
    margin-bottom: 18px;
}
.about-metrics {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.metric {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}
.metric-num {
    font-size: 40px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.metric-num span { font-size: 26px; }
.metric-label {
    font-size: 14.5px;
    color: var(--text-dim);
    margin-top: 8px;
}

/* ---------- 联系我们 ---------- */
.contact-card {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}
.contact-card .eyebrow { margin-bottom: 14px; }
.contact-form {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}
.form-row { display: flex; gap: 14px; }
.form-row > * { flex: 1; }
.form-input {
    width: 100%;
    padding: 13px 18px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--border-bright);
    color: var(--text);
    font-size: 15px;
    font-family: var(--font-sans);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
}
.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 100, 250, 0.12);
}
.form-input::placeholder { color: var(--text-mute); }
.form-textarea { min-height: 100px; }
.contact-submit { align-self: center; margin-top: 6px; }
.form-toast {
    color: #059669;
    font-size: 14.5px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
    height: 0;
    overflow: hidden;
}
.form-toast.show { opacity: 1; height: auto; }

/* ---------- 页脚 ---------- */
.footer {
    padding: 64px 0 28px;
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
    position: relative;
    z-index: 1;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 2.6fr;
    gap: 60px;
    margin-bottom: 44px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-tagline { font-size: 14px; color: var(--text-dim); max-width: 280px; line-height: 1.6; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer-col h4 { font-size: 14.5px; font-weight: 600; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-dim); margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-mute);
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: var(--text-mute); }
.footer-legal a:hover { color: var(--text-dim); }

/* ---------- 滚动揭示 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
    .cards-3 { grid-template-columns: repeat(2, 1fr); }
    .cards-2 { grid-template-columns: 1fr; }
    .core-grid { grid-template-columns: repeat(2, 1fr); }
    .about-inner { grid-template-columns: 1fr; gap: 36px; }
    .about-metrics { flex-direction: row; }
    .metric { flex: 1; }
    .footer-inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 720px) {
    .nav-links {
        position: fixed; top: 60px; left: 0; right: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(16px);
        padding: 20px;
        gap: 14px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-130%);
        transition: transform 0.3s ease;
        align-items: flex-start;
        box-shadow: var(--shadow-md);
    }
    .nav-links.open { transform: translateY(0); }
    .nav-toggle { display: flex; }
    .nav-cta { width: 100%; text-align: center; }
    .section { padding: 68px 0; }
    .hero-arrow { width: 40px; height: 40px; }
    .hero-prev { left: 14px; }
    .hero-next { right: 14px; }
    .hero-dots { bottom: 24px; }
    .cards-3, .core-grid { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; }
    .about-metrics { flex-direction: column; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .reveal { opacity: 1; transform: none; }
}
