/* ============================================
   双弧智绘 WAAM 官网 — 全面升级版 CSS v5
   美学参考：Notion 暖白极简 + Stripe 精致阴影 + 电弧工业美学
   新增：故障艺术标题 | 3D卡片光晕 | 导航变形 | clip-path揭露
   v5新增：电弧光晕Logo | 3D悬浮文字 | 发光指示器 | 脉冲进度点
   ============================================ */

/* ---------- 变量 ---------- */
:root {
    /* 暖白主色调（Notion启发） */
    --bg-primary: #fafaf9;
    --bg-secondary: #f5f4f0;
    --bg-card: #ffffff;
    --bg-dark: #1a1a1a;

    /* 文字层次 */
    --text-primary: rgba(0, 0, 0, 0.92);
    --text-secondary: #5c5a56;
    --text-muted: #9a9895;

    /* 电弧品牌色 */
    --arc-orange: #e85d04;
    --arc-amber: #f48c06;
    --arc-yellow: #faa307;
    --arc-red: #dc2f02;

    /* 强调色 */
    --accent: var(--arc-orange);
    --accent-hover: #d14d00;
    --accent-light: var(--arc-amber);
    --accent-bg: rgba(232, 93, 4, 0.06);

    /* 边框 — Notion式极细 */
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    --border-focus: var(--arc-orange);

    /* Stripe式蓝调阴影 + 电弧暖色 */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.10), 0 8px 24px rgba(0, 0, 0, 0.06);

    /* 字体 */
    --font-main: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* 间距 */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 3.5rem;
    --space-2xl: 5rem;
    --space-3xl: 5rem;

    /* 动效 */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

    /* 尺寸 */
    --nav-height: 52px;
    --container-max: 1160px;
    --container-pad: 4rem;

    /* 圆角层次 */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-pill: 9999px;
}

/* ---------- SVG 噪点纹理（纸张质感）---------- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.025;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--arc-amber) var(--bg-secondary);
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: rgba(232, 93, 4, 0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--arc-amber); }

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.8;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

::selection {
    background: rgba(232, 93, 4, 0.15);
    color: var(--text-primary);
}

/* ---------- 容器 ---------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* ---------- Section ---------- */
.section {
    padding: 5rem 0;
    position: relative;
}


/* ---------- Section 通用 ---------- */
.section-badge {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 0.85rem;
    display: block;
    position: relative;
}

.section-badge.dark { color: var(--arc-amber); }

.section-title {
    font-size: clamp(2.4rem, 4.5vw, 3.4rem);
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 0.9rem;
    color: var(--text-primary);
    display: inline-block;
    transform-style: preserve-3d;
    perspective: 800px;
}

.section-title em {
    font-style: normal;
    color: var(--accent);
}

.section-title.center { text-align: center; }
.section-title.light { color: #ffffff; }

.section-subtitle {
    font-size: 0.98rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.7;
}

.section-subtitle.light { color: rgba(255, 255, 255, 0.55); }

.section-header { margin-bottom: 2.5rem; }

/* ---------- About ---------- */
.about { background: var(--bg-primary); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-lead {
    font-size: 1.18rem;
    font-weight: 500;
    line-height: 1.9;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
}

.about-text {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 2rem;
    font-weight: 400;
}

.about-tags { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.tag {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--accent);
    background: var(--accent-bg);
    border-radius: var(--radius-pill);
    border: 1px solid rgba(232, 93, 4, 0.12);
    transition: all 0.2s;
}

.tag:hover {
    background: rgba(232, 93, 4, 0.1);
    border-color: rgba(232, 93, 4, 0.2);
}

/* About 右侧 */
.about-img-stack { position: relative; }

.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.08),
        0 8px 20px rgba(0, 0, 0, 0.05),
        0 2px 6px rgba(0, 0, 0, 0.03);
    aspect-ratio: 4/3;
    will-change: clip-path, transform;
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.about-img-main:hover {
    transform: translateY(-4px);
    box-shadow:
        0 28px 60px rgba(0, 0, 0, 0.12),
        0 12px 28px rgba(0, 0, 0, 0.07),
        0 4px 10px rgba(0, 0, 0, 0.04);
}

.about-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-img-accent {
    position: absolute;
    bottom: -14px;
    right: -14px;
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, var(--arc-orange), var(--arc-amber));
    border-radius: var(--radius-md);
    opacity: 0.15;
    z-index: -1;
}

.about-img-badge {
    position: absolute;
    bottom: 20px;
    left: -20px;
    background: white;
    border-radius: var(--radius-md);
    padding: 0.9rem 1.2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.3s var(--ease-spring);
}

.about-img-badge:hover {
    transform: translateY(-3px) scale(1.03);
}

.badge-num {
    display: block;
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
}

.badge-num sup { font-size: 0.85rem; }

.badge-text {
    display: block;
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0.2rem;
}

/* ---------- Tech ---------- */
.tech { background: var(--bg-secondary); }

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

/* Stripe式卡片 */
.tech-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s var(--ease-out), border-color 0.3s;
    cursor: pointer;
    position: relative;
    will-change: transform;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(232, 93, 4, 0.15);
}

/* 3D 光晕 */
.tech-card .card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(232, 93, 4, 0.18) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.3s;
}

.tech-img {
    height: 150px;
    overflow: hidden;
    background: var(--bg-secondary);
    position: relative;
    z-index: 1;
}

.tech-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}

.tech-card:hover .tech-img img { transform: scale(1.05); }

.tech-body { padding: 1.4rem; position: relative; z-index: 1; }

.tech-num {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.15em;
    margin-bottom: 0.4rem;
}

.tech-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.45rem;
}

.tech-body p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-weight: 400;
}

/* 进度条 */
.tech-progress {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.progress-bar {
    flex: 1;
    height: 3px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(to right, var(--arc-orange), var(--arc-amber));
    border-radius: 2px;
    transition: width 1.3s var(--ease-out);
}

.progress-num {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--accent);
    min-width: 30px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ---------- Applications ---------- */
.applications { background: var(--bg-primary); }

.apps-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 230px;
    gap: 1.1rem;
}

.app-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.app-card-tall { grid-row: span 2; }

.app-img {
    position: absolute;
    inset: 0;
}

.app-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.app-card:hover .app-img img { transform: scale(1.06); }

.app-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.82) 0%,
        rgba(0, 0, 0, 0.25) 45%,
        transparent 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.4rem;
    transition: background 0.35s;
}

.app-card:hover .app-overlay {
    background: linear-gradient(
        to top,
        rgba(232, 93, 4, 0.88) 0%,
        rgba(232, 93, 4, 0.35) 50%,
        transparent 100%
    );
}

.app-num {
    font-size: 0.6rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.18em;
    margin-bottom: 0.25rem;
}

.app-overlay h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.app-overlay p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 400;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s var(--ease-out);
}

.app-card:hover .app-overlay p {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Team ---------- */
.team { background: var(--bg-secondary); }

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
}

.team-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s var(--ease-out), border-color 0.3s, transform 0.3s;
    cursor: pointer;
    position: relative;
    will-change: transform;
    overflow: hidden;
}

/* 悬停彩色边框 - 只显示边缘细线 */
.team-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 3px;
    background: repeating-linear-gradient(
        90deg,
        var(--arc-orange) 0px,
        var(--arc-amber) 12px,
        #ff6b35 24px,
        var(--arc-orange) 36px
    );
    background-size: 36px 100%;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: borderFlow 1.5s linear infinite;
}

@keyframes borderFlow {
    0% { background-position: 0 0; }
    100% { background-position: 36px 0; }
}

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

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl), 0 0 20px rgba(232, 93, 4, 0.3);
}

.team-avatar {
    height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--bg-secondary), var(--bg-primary));
    position: relative;
    overflow: hidden;
}

.team-avatar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(232,93,4,0.04) 100%);
    pointer-events: none;
}

.team-avatar img {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid white;
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s var(--ease-spring);
    position: relative;
    z-index: 1;
}

.team-card:hover .team-avatar img { transform: scale(1.08); }

.team-info { padding: 1.1rem 1.2rem; text-align: center; position: relative; z-index: 1; }

.team-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.team-role {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 0.45rem;
}

.team-bio {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 400;
}

/* ---------- News ---------- */
.news { background: var(--bg-primary); }

.news-scroll-wrapper {
    position: relative;
    overflow: hidden;
    padding: 1.5rem 0;
}

.news-scroll-wrapper::before,
.news-scroll-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 180px;
    z-index: 10;
    pointer-events: none;
}

.news-scroll-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-primary), transparent);
}

.news-scroll-wrapper::after {
    right: 0;
    background: linear-gradient(-90deg, var(--bg-primary), transparent);
}

.news-track {
    display: flex;
    gap: 1.1rem;
    animation: newsScroll 32s linear infinite;
    width: max-content;
}

.news-track:hover { animation-play-state: paused; }

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

/* Notion式卡片 */
.news-card {
    flex-shrink: 0;
    width: 210px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s var(--ease-out);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.news-card:hover {
    border-color: rgba(232, 93, 4, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.news-card-img {
    height: 110px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}

.news-card:hover .news-card-img img { transform: scale(1.05); }

.news-card-info { padding: 0.9rem 1.1rem; }

.news-card-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 0.4rem;
}

.news-card-tag {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent);
    background: var(--accent-bg);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(232, 93, 4, 0.1);
}

/* ---------- Honors ---------- */
.honors {
    background: var(--bg-dark);
    padding: 5rem 0;
}

.honors .section-title { color: white; }

.honors-scroll-wrapper {
    position: relative;
    overflow: hidden;
    padding: 1.5rem 0;
}

.honors-scroll-wrapper::before,
.honors-scroll-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 180px;
    z-index: 10;
    pointer-events: none;
}

.honors-scroll-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-dark), transparent);
}

.honors-scroll-wrapper::after {
    right: 0;
    background: linear-gradient(-90deg, var(--bg-dark), transparent);
}

.honors-track {
    display: flex;
    gap: 1.1rem;
    animation: honorsScroll 38s linear infinite;
    width: max-content;
}

.honors-track:hover { animation-play-state: paused; }

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

/* 深色卡片 */
.honor-card {
    flex-shrink: 0;
    width: 250px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s var(--ease-out);
}

.honor-card:hover {
    border-color: rgba(244, 140, 6, 0.3);
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-4px);
}

.honor-img {
    height: 130px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.honor-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.honor-card:hover .honor-img img { transform: scale(1.05); }

.honor-info {
    padding: 0.9rem 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.honor-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.honor-sub {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.38);
    letter-spacing: 0.06em;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.footer-brand img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.footer-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-slogan {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.footer-copy p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ---------- 初始动画状态 ---------- */
.hero-label, .hero-slogan, .hero-cta {
    opacity: 0;
    transform: translateY(24px);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    :root {
        --container-pad: 2.5rem;
        --space-3xl: 5rem;
    }

    .hero-stats-panel { display: none; }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-right { order: -1; }
    .about-img-badge { left: 10px; bottom: 10px; }

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

    .apps-masonry {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 190px;
    }

    .app-card-tall { grid-row: span 1; }
}

@media (max-width: 768px) {
    :root {
        --container-pad: 1.25rem;
        --space-3xl: 4rem;
        --nav-height: 52px;
    }

    .nav-links,
    .nav-links.active {
        /* nav-hero-simple.css 已处理，这里避免冲突 */
        display: flex;
    }

    .nav-toggle { display: flex; }

    .hero-content { padding: 0 1.25rem; width: 100%; max-width: 100%; }

    .hero-title-main {
        font-size: clamp(2.8rem, 16vw, 4rem);
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 240px;
        padding: 0.85rem 1.5rem;
        font-size: 0.95rem;
    }

    .tech-grid { grid-template-columns: 1fr; gap: 1rem; }
    .tech-img { height: 130px; }

    .apps-masonry {
        grid-template-columns: 1fr;
        grid-auto-rows: 170px;
    }

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

    .honor-card {
        width: 200px;
    }

    .honor-img { height: 110px; }

    .footer-inner {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* ============================================
   电弧极光动画背景（WAAM 专属版）
   原理：多层渐变 blob 缓慢漂移，模拟极光
   关键：不使用 overflow:hidden，避免撑大 section 高度
   ============================================ */

/* 极光容器 — 不影响 section 高度 */
.aurora-section {
    position: relative;
}

/* 极光底层 — ::before / ::after 撑满 section */
.aurora-section::before,
.aurora-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
}

/* 第一层 — 左上角橙色光斑 */
.aurora-section::before {
    background: radial-gradient(ellipse 60% 50% at 15% 25%,
        rgba(232, 93, 4, 0.22) 0%,
        rgba(244, 140, 6, 0.10) 40%,
        transparent 70%);
    animation: auroraA 20s ease-in-out infinite;
}

/* 第二层 — 右下角琥珀色光斑 */
.aurora-section::after {
    background: radial-gradient(ellipse 55% 45% at 85% 75%,
        rgba(244, 140, 6, 0.20) 0%,
        rgba(250, 163, 7, 0.09) 40%,
        transparent 70%);
    animation: auroraB 18s ease-in-out infinite;
    animation-delay: -9s;
}

/* 第三层 — 中部琥珀 blob */
.aurora-blob {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse 50% 40% at 50% 50%,
        rgba(250, 163, 7, 0.13) 0%,
        transparent 65%);
    pointer-events: none;
    z-index: 0;
    animation: auroraC 26s ease-in-out infinite;
    animation-delay: -5s;
}

/* 第四层 — 右侧深红光晕 */
.aurora-blob-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse 40% 35% at 80% 30%,
        rgba(220, 47, 2, 0.12) 0%,
        transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: auroraD 22s ease-in-out infinite;
    animation-delay: -12s;
}

/* 极光动画 A — 左上橙色光斑漂移 */
@keyframes auroraA {
    0%, 100% {
        opacity: 0;
        transform: translate(0, 0) scale(1);
    }
    10% { opacity: 0.8; }
    35% {
        opacity: 0.6;
        transform: translate(3%, -4%) scale(1.15);
    }
    60% {
        opacity: 0.9;
        transform: translate(-2%, -6%) scale(1.05);
    }
    80% { opacity: 0.5; }
}

/* 极光动画 B — 右下琥珀光斑漂移 */
@keyframes auroraB {
    0%, 100% {
        opacity: 0;
        transform: translate(0, 0) scale(1);
    }
    12% { opacity: 0.7; }
    40% {
        opacity: 0.55;
        transform: translate(-4%, 3%) scale(1.1);
    }
    65% {
        opacity: 0.85;
        transform: translate(2%, 5%) scale(0.95);
    }
    85% { opacity: 0.4; }
}

/* 极光动画 C — 中央琥珀 blob */
@keyframes auroraC {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1) translateY(0);
    }
    30% {
        opacity: 0.8;
        transform: scale(1.1) translateY(-2%);
    }
    55% {
        opacity: 0.6;
        transform: scale(0.95) translateY(-4%);
    }
    75% {
        opacity: 0.9;
        transform: scale(1.05) translateY(-1%);
    }
}

/* 极光动画 D — 右侧深红光晕 */
@keyframes auroraD {
    0%, 100% {
        opacity: 0;
        transform: translate(0, 0);
    }
    15% { opacity: 0.65; }
    45% {
        opacity: 0.5;
        transform: translate(-3%, 2%) scale(1.2);
    }
    70% {
        opacity: 0.75;
        transform: translate(2%, -3%) scale(0.9);
    }
    90% { opacity: 0.3; }
}

/* 让 section 内容在极光之上 */
.aurora-section > .container,
.aurora-section > .honors-scroll-wrapper {
    position: relative;
    z-index: 1;
}

/* 移动端关闭极光 */
@media (max-width: 768px) {
    .aurora-section::before,
    .aurora-section::after,
    .aurora-blob,
    .aurora-blob-2 {
        display: none;
    }
}

@media (max-width: 480px) {
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   骨架屏加载动画
   ============================================ */
@keyframes skeletonPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.9; }
}

.skeleton-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #fafaf9;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.skeleton-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* 骨架导航 */
.skeleton-nav {
    height: 72px;
    background: #f0efec;
    animation: skeletonPulse 1.6s ease-in-out infinite;
}

/* 骨架 Hero */
.skeleton-hero {
    height: 100vh;
    padding: 80px 60px 60px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #fafaf9;
}

.skeleton-hero-label {
    width: 200px;
    height: 16px;
    border-radius: 4px;
    background: #edecea;
    animation: skeletonPulse 1.6s ease-in-out infinite 0.1s;
}

.skeleton-hero-title {
    display: flex;
    gap: 14px;
    margin-top: 10px;
}

.skeleton-hero-title span {
    display: block;
    width: 110px;
    height: 80px;
    border-radius: 8px;
    background: #e8e7e4;
    animation: skeletonPulse 1.6s ease-in-out infinite;
}

.skeleton-hero-title span:nth-child(2) { animation-delay: 0.12s; }
.skeleton-hero-title span:nth-child(3) { animation-delay: 0.24s; }
.skeleton-hero-title span:nth-child(4) { animation-delay: 0.36s; }

.skeleton-hero-slogan {
    width: 280px;
    height: 22px;
    border-radius: 4px;
    background: #edecea;
    animation: skeletonPulse 1.6s ease-in-out infinite 0.3s;
}

.skeleton-hero-cta {
    width: 220px;
    height: 48px;
    border-radius: 8px;
    background: #e8e7e4;
    animation: skeletonPulse 1.6s ease-in-out infinite 0.4s;
    margin-top: 10px;
}

/* 骨架统计数据 */
.skeleton-stat {
    position: absolute;
    right: 60px;
    top: 50%;
    width: 120px;
    height: 64px;
    border-radius: 8px;
    background: #f0efec;
    animation: skeletonPulse 1.6s ease-in-out infinite;
}

.skeleton-stat:nth-child(3) { top: calc(50% - 80px); animation-delay: 0.1s; }
.skeleton-stat:nth-child(4) { top: calc(50% + 80px); animation-delay: 0.2s; }
.skeleton-stat:nth-child(5) { top: calc(50%); right: 200px; animation-delay: 0.3s; }

/* ============================================
   团队卡片 hover 增强
   ============================================ */
.team-card {
    cursor: pointer;
}

.team-card .team-avatar {
    transition: transform 0.4s cubic-bezier(0.17, 0.67, 0.41, 0.99);
    transform-origin: center center;
}

.team-card .team-name {
    transition: color 0.3s ease;
}

.team-card:hover .team-avatar {
    transform: scale(1.08);
}

.team-card:hover .team-name {
    color: #e85d04;
}

/* ============================================
   效果 1：自定义电弧光晕光标
   ============================================ */
.cursor-arc {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232,93,4,0.9) 0%, rgba(244,140,6,0.4) 50%, transparent 70%);
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.25s cubic-bezier(0.17,0.67,0.41,0.99),
                height 0.25s cubic-bezier(0.17,0.67,0.41,0.99),
                background 0.25s ease,
                box-shadow 0.25s ease;
    mix-blend-mode: screen;
}

.cursor-arc.hovering {
    width: 48px;
    height: 48px;
    background: radial-gradient(circle, rgba(232,93,4,0.95) 0%, rgba(244,140,6,0.6) 40%, rgba(250,163,7,0.2) 70%, transparent 100%);
    box-shadow: 0 0 24px rgba(232,93,4,0.6), 0 0 48px rgba(244,140,6,0.3);
    mix-blend-mode: screen;
}

.cursor-arc.clicking {
    width: 14px;
    height: 14px;
    background: rgba(220,47,2,0.95);
    transition-duration: 0.1s;
}

/* ============================================
   效果 4：应用领域卡片悬停（橙色光膜 + 边框 + 文字上浮）
   ============================================ */
.app-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.app-card .app-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(232,93,4,0.85) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.6rem;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.app-card .app-overlay h3,
.app-card .app-overlay p {
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.17,0.67,0.41,0.99), opacity 0.35s ease;
    opacity: 0;
}

.app-card .app-overlay p { transition-delay: 0.06s; }

.app-card:hover .app-overlay {
    opacity: 1;
}

.app-card:hover .app-overlay h3,
.app-card:hover .app-overlay p {
    transform: translateY(0);
    opacity: 1;
}

.app-card:hover .app-img img {
    transform: scale(1.06);
    transition: transform 0.6s cubic-bezier(0.17,0.67,0.41,0.99);
}

.app-card .app-img img {
    transition: transform 0.5s ease;
}

.app-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
    pointer-events: none;
}

.app-card:hover::after {
    border-color: rgba(232,93,4,0.7);
    box-shadow: 0 0 20px rgba(232,93,4,0.25), inset 0 0 20px rgba(232,93,4,0.05);
}

/* ============================================
   效果 5：导航栏阅读进度百分比
   ============================================ */
.nav-progress-num {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 1001;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--arc-orange);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s var(--ease-spring), text-shadow 0.3s;
    font-family: var(--font-mono);
    pointer-events: none;
    text-shadow: 0 0 8px rgba(244, 140, 6, 0.4);
}

.nav-progress-num.visible {
    opacity: 0.85;
    text-shadow: 0 0 12px rgba(244, 140, 6, 0.6), 0 0 24px rgba(244, 140, 6, 0.3);
    transform: scale(1.05);
}

.nav-progress-num::after {
    content: '%';
    font-size: 9px;
    opacity: 0.6;
}

/* ============================================
   效果 6：页面边缘焊接轨迹装饰线
   ============================================ */
.page-edge-line {
    position: fixed;
    top: 0;
    width: 1px;
    height: 100vh;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.page-edge-line.left {
    left: 18px;
}

.page-edge-line.right {
    right: 18px;
}

.page-edge-line::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(232,93,4,0.15) 20%,
        rgba(244,140,6,0.4) 50%,
        rgba(232,93,4,0.15) 80%,
        transparent 100%
    );
    animation: edgeLineFlow 6s ease-in-out infinite alternate;
}

.page-edge-line.right::before {
    animation-delay: -3s;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(244,140,6,0.15) 20%,
        rgba(250,163,7,0.35) 50%,
        rgba(244,140,6,0.15) 80%,
        transparent 100%
    );
}

@keyframes edgeLineFlow {
    0% { top: -100%; }
    100% { top: 0%; }
}

/* ============================================
   效果 2：Hero 数字计数器模糊→清晰
   ============================================ */
.hstat-n {
    filter: blur(4px);
    opacity: 0.6;
    transition: filter 0.4s ease, opacity 0.4s ease;
}

.hstat-n.counted {
    filter: blur(0px);
    opacity: 1;
}

/* ============================================
   效果 3：技术卡片序号 SVG 描边动画
   ============================================ */
.tech-num {
    display: inline-block;
    position: relative;
    font-size: 4rem;
    font-weight: 900;
    font-family: var(--font-mono);
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(232,93,4,0.25);
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--arc-orange), var(--arc-amber));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-stroke: 0px transparent;
    background-size: 0% 100%;
    background-repeat: no-repeat;
    transition: background-size 0.8s cubic-bezier(0.22,1,0.36,1) 0.3s;
}

.tech-card.in-view .tech-num {
    background-size: 100% 100%;
}

/* ============================================
   页面点缀装饰元素
   ============================================ */

/* --- About 右侧竖线装饰 --- */
.deco-vline {
    position: absolute;
    right: 3%;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 2;
    animation: vlineFadeIn 1s ease-out forwards, vlineFloat 7s ease-in-out infinite 1s;
    opacity: 0;
}
@keyframes vlineFadeIn {
    from { opacity: 0; transform: translateY(-50%) translateX(20px); }
    to { opacity: 0.8; transform: translateY(-50%) translateX(0); }
}
@keyframes vlineFloat {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(calc(-50% - 8px)) translateX(3px); }
}

/* --- Tech 三角形装饰 --- */
.deco-triangle {
    position: absolute;
    top: 60px;
    right: 5%;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    animation: triFadeIn 1s ease-out forwards, triRotate 20s linear infinite 1s;
}
@keyframes triFadeIn {
    from { opacity: 0; transform: scale(0.5) rotate(-30deg); }
    to { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes triRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- 应用领域横线装饰 --- */
.deco-apps-line {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    animation: appsLineFade 1s ease-out forwards;
}
@keyframes appsLineFade {
    from { opacity: 0; transform: translateX(-50%) scaleX(0); }
    to { opacity: 0.7; transform: translateX(-50%) scaleX(1); }
}

/* --- Footer 顶部装饰线 --- */
.deco-footer-line {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 2;
    opacity: 0.6;
}

/* --- 所有装饰元素移动端隐藏 --- */
@media (max-width: 768px) {
    .deco-arc,
    .deco-spark,
    .deco-vline,
    .deco-triangle,
    .deco-apps-line,
    .deco-footer-line {
        display: none;
    }
}
