/* ========================================
   张辛涛 · Personal Site
   Theme: Blue-Cyan Gradient
   ======================================== */

:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #1e293b;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;
    --accent: #0891b2;
    --accent-dark: #0e7490;
    --accent-light: #e0f7fd;
    --accent2: #2563eb;
    --gold: #06b6d4;
    --gold-light: #cffafe;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.04);
    --shadow-glow: 0 0 24px rgba(8,145,178,.25);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

/* Animated gradient background */
body::before {
    content: '';
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(ellipse 50% 40% at 20% 10%, rgba(8,145,178,.04), transparent 60%),
        radial-gradient(ellipse 40% 50% at 80% 90%, rgba(37,99,235,.04), transparent 60%),
        radial-gradient(ellipse 30% 30% at 50% 50%, rgba(6,182,212,.03), transparent 60%);
    animation: bgShift 12s ease-in-out infinite alternate;
}

@keyframes bgShift {
    0% { opacity: .7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: .7; transform: scale(1); }
}

/* Navigation */

#nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: all .3s ease;
}

#nav.scrolled {
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -.02em;
    transition: color .3s;
}

.nav-logo span {
    background: linear-gradient(135deg, #2563eb, #0891b2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links { display: flex; gap: 22px; list-style: none; }

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: .9rem;
    font-weight: 500;
    transition: color .2s;
    position: relative;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 0; height: 2px;
    background: linear-gradient(90deg, #2563eb, #0891b2);
    border-radius: 1px;
    transition: width .3s ease;
}

.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text);
}

/* Hero */

#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(8,145,178,.07), transparent),
        radial-gradient(ellipse 60% 50% at 20% 100%, rgba(37,99,235,.05), transparent),
        radial-gradient(ellipse 40% 40% at 80% 50%, rgba(6,182,212,.04), transparent);
    pointer-events: none;
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { opacity: .6; }
    100% { opacity: 1; }
}

.hero-inner { position: relative; max-width: 780px; }

.hero-badge {
    display: inline-block;
    padding: 6px 20px;
    background: linear-gradient(135deg, rgba(37,99,235,.1), rgba(8,145,178,.1));
    color: var(--accent);
    border-radius: 99px;
    font-size: .875rem;
    font-weight: 600;
    margin-bottom: 28px;
    border: 1px solid rgba(8,145,178,.15);
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(8,145,178,.15); }
    50% { box-shadow: 0 0 0 8px rgba(8,145,178,0); }
}

#hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -.03em;
    color: #0f172a;
    margin-bottom: 16px;
}

#hero h1 span {
    background: linear-gradient(135deg, #2563eb, #0891b2, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 20px;
    font-style: italic;
}

.hero-bio {
    font-size: 1.05rem;
    font-weight: 500;
    color: #fff;
    line-height: 1.8;
    margin-bottom: 36px;
    padding: 20px 28px;
    background: linear-gradient(135deg, #2563eb, #0891b2, #06b6d4);
    border: 3px solid #22d3ee;
    border-radius: var(--radius);
    display: inline-block;
    box-shadow: 0 0 28px rgba(37,99,235,.35), 0 6px 20px rgba(6,182,212,.25);
    animation: bioFloat 4s ease-in-out infinite;
}

@keyframes bioFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #2563eb, #0891b2);
    color: #fff;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all .3s;
    box-shadow: 0 4px 14px rgba(8,145,178,.35);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #1d4ed8, #0e7490);
    opacity: 0; transition: opacity .3s;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(8,145,178,.45); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary span, .btn-primary { position: relative; z-index: 1; }

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--surface);
    color: var(--accent);
    border: 2px solid rgba(8,145,178,.25);
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all .3s;
}

.btn-outline:hover { border-color: var(--accent); background: var(--accent-light); }

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item { text-align: center; }

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0f172a, #164e63);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -.02em;
}

.stat-value small { font-size: .95rem; font-weight: 500; color: var(--text-secondary); }

.stat-label {
    display: block;
    font-size: .85rem;
    color: var(--text-tertiary);
    margin-top: 4px;
}

/* Sections */

section { padding: 90px 24px; }

.section-header {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    padding: 5px 16px;
    background: linear-gradient(135deg, rgba(37,99,235,.08), rgba(8,145,178,.08));
    color: var(--accent);
    border-radius: 99px;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: .03em;
    border: 1px solid rgba(8,145,178,.12);
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #0f172a;
    margin-bottom: 12px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

/* Foreword */

#foreword { padding-top: 40px; padding-bottom: 20px; }

.section-note {
    font-size: .95rem;
    color: var(--text-tertiary);
    margin-top: 16px;
    line-height: 1.8;
}

/* About Cards */

.about-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.about-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all .4s cubic-bezier(.16,1,.3,1);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #2563eb, #0891b2, #06b6d4);
    transform: scaleX(0);
    transition: transform .4s cubic-bezier(.16,1,.3,1);
}

.about-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(8,145,178,.08);
    border-color: transparent;
}

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

.card-icon { font-size: 2rem; margin-bottom: 16px; transition: transform .3s; }

.about-card:hover .card-icon { transform: scale(1.15); }

.about-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #0f172a;
}

.about-card p { font-size: .9rem; color: var(--text-secondary); line-height: 1.7; }

/* Methodology */

#methodology { padding-top: 20px; }

.methodology-layout {
    max-width: 1100px;
    margin: 0 auto 40px;
}

.methodology-image {
    text-align: center;
    margin-bottom: 36px;
}

.methodology-image img {
    max-width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(8,145,178,.08);
    border: 1px solid var(--border);
    transition: transform .4s, box-shadow .4s;
}

.methodology-image img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg), 0 0 50px rgba(8,145,178,.15);
}

.methodology-conclusion {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    padding: 28px 32px;
    background: linear-gradient(135deg, rgba(37,99,235,.06), rgba(8,145,178,.06), rgba(6,182,212,.04));
    border-radius: var(--radius-lg);
    border: 2px solid rgba(8,145,178,.15);
}

.highlight-formula {
    font-size: 1.15rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2563eb, #0891b2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 8px;
    line-height: 1.6;
}

/* Methodology Table */

.methodology-table-wrap { overflow-x: auto; margin-bottom: 8px; }

.method-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.method-table thead {
    background: linear-gradient(135deg, #164e63, #0e7490);
    color: #fff;
}

.method-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: .85rem;
    letter-spacing: .01em;
}

.method-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    line-height: 1.6;
}

.method-table tbody tr { background: var(--surface); transition: all .3s; }
.method-table tbody tr:hover { background: #f0fafd; transform: scale(1.005); }
.method-table tbody tr:last-child td { border-bottom: none; }

.table-sub { font-size: .78rem; color: var(--text-tertiary); font-weight: 400; }

/* AIOps Layers */

.aiops-layers {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 8px;
}

.layer-card {
    display: flex;
    gap: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    transition: all .4s cubic-bezier(.16,1,.3,1);
    position: relative;
    overflow: hidden;
}

.layer-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(180deg, #2563eb, #0891b2, #06b6d4);
    transform: scaleY(0);
    transition: transform .4s cubic-bezier(.16,1,.3,1);
}

.layer-card:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow), 0 0 20px rgba(8,145,178,.06);
    border-color: rgba(8,145,178,.2);
}

.layer-card:hover::before { transform: scaleY(1); }

.layer-card.highlight {
    border-color: rgba(8,145,178,.25);
    background: linear-gradient(135deg, #fff, #f0fafd);
    box-shadow: var(--shadow-sm), 0 0 20px rgba(8,145,178,.08);
}

.layer-num {
    flex-shrink: 0;
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #0891b2);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 1.1rem;
    transition: transform .3s;
}

.layer-card:hover .layer-num { transform: scale(1.1) rotate(-3deg); }

.layer-card.highlight .layer-num { background: linear-gradient(135deg, #0891b2, #06b6d4); }

.layer-body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }

.layer-body p {
    font-size: .9rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    line-height: 1.7;
}

.layer-body p strong { color: var(--text); }

/* Timeline */

.timeline {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #2563eb, #0891b2, #06b6d4, transparent);
}

.timeline-item { position: relative; margin-bottom: 48px; }
.timeline-item:last-child { margin-bottom: 0; }

.timeline-marker {
    position: absolute;
    left: -40px; top: 4px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--border);
    z-index: 1;
    transition: all .4s;
}

.timeline-marker.current {
    background: linear-gradient(135deg, #2563eb, #0891b2);
    border-color: #0891b2;
    box-shadow: 0 0 0 6px rgba(8,145,178,.12);
    animation: markerPulse 2.5s ease-in-out infinite;
}

@keyframes markerPulse {
    0%, 100% { box-shadow: 0 0 0 6px rgba(8,145,178,.12); }
    50% { box-shadow: 0 0 0 14px rgba(8,145,178,0); }
}

.timeline-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    transition: all .3s;
}

.timeline-content:hover {
    box-shadow: var(--shadow-md), 0 0 20px rgba(8,145,178,.06);
    border-color: rgba(8,145,178,.15);
}

.timeline-period {
    display: inline-block;
    font-size: .8rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-light);
    padding: 3px 12px;
    border-radius: 99px;
    margin-bottom: 12px;
}

.timeline-content h3 { font-size: 1.25rem; font-weight: 700; }

.timeline-role {
    font-size: .925rem;
    color: var(--text-secondary);
    margin: 6px 0 14px;
}

.timeline-tags {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 16px;
}

.timeline-tags span {
    font-size: .78rem;
    padding: 3px 10px;
    background: linear-gradient(135deg, rgba(37,99,235,.04), rgba(8,145,178,.04));
    border-radius: 6px;
    color: var(--accent);
    border: 1px solid rgba(8,145,178,.1);
    transition: all .2s;
}

.timeline-tags span:hover {
    background: rgba(8,145,178,.1);
    border-color: rgba(8,145,178,.2);
}

.timeline-content ul { padding-left: 20px; color: var(--text-secondary); font-size: .9rem; }
.timeline-content ul li { margin-bottom: 6px; }

/* Projects */

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all .4s cubic-bezier(.16,1,.3,1);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #2563eb, #0891b2, #06b6d4);
    transform: scaleX(0);
    transition: transform .4s cubic-bezier(.16,1,.3,1);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(8,145,178,.08);
}

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

.project-card.featured {
    max-width: 1100px;
    margin: 0 auto 24px;
    border: 2px solid rgba(8,145,178,.2);
    background: linear-gradient(135deg, #fff, #f0fafd);
}

.project-badge {
    display: inline-block;
    padding: 5px 14px;
    background: linear-gradient(135deg, rgba(6,182,212,.12), rgba(8,145,178,.12));
    color: #0e7490;
    border-radius: 99px;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(6,182,212,.2);
}

.project-card h3 { font-size: 1.3rem; font-weight: 700; }
.project-role { font-size: .875rem; color: var(--text-tertiary); margin: 6px 0 12px; }
.project-desc { font-size: .925rem; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.7; }

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.metric {
    text-align: center;
    padding: 16px 12px;
    background: linear-gradient(135deg, rgba(37,99,235,.03), rgba(8,145,178,.03));
    border-radius: var(--radius-sm);
    border: 1px solid rgba(8,145,178,.06);
    transition: all .3s;
}

.metric:hover {
    background: linear-gradient(135deg, rgba(37,99,235,.06), rgba(8,145,178,.06));
    transform: translateY(-2px);
}

.metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0f172a, #164e63);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -.02em;
}

.metric-value small { font-size: .75rem; font-weight: 500; color: var(--text-tertiary); }

.metric-label {
    display: block;
    font-size: .78rem;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.project-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.project-highlight {
    display: inline-block;
    margin-top: 16px;
    font-size: .85rem;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(37,99,235,.08), rgba(8,145,178,.08));
    color: var(--accent);
    padding: 5px 14px;
    border-radius: 6px;
    border: 1px solid rgba(8,145,178,.12);
}

/* Project Phases */

.project-phases {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.phase-item {
    display: flex;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(37,99,235,.03);
    border-radius: var(--radius);
    border: 1px solid rgba(8,145,178,.1);
    transition: all .3s;
}

.phase-item:hover {
    background: rgba(37,99,235,.06);
    border-color: rgba(8,145,178,.2);
}

.phase-num {
    flex-shrink: 0;
    width: 64px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #2563eb, #0891b2);
    color: #fff;
    border-radius: 99px;
    font-size: .7rem; font-weight: 700;
    letter-spacing: .04em;
    margin-top: 2px;
}

.phase-body h4 {
    font-size: .92rem; font-weight: 700; color: #0f172a;
    margin-bottom: 4px;
}

.phase-body p {
    font-size: .85rem; color: var(--text-secondary);
    line-height: 1.7; margin: 0;
}

/* Conclusion */

#conclusion { padding-bottom: 40px; }

.conclusion-box {
    max-width: 780px;
    margin: 0 auto;
    background: var(--surface);
    border: 2px solid rgba(8,145,178,.1);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    line-height: 1.9;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: border-color .3s, box-shadow .3s;
}

.conclusion-box:hover {
    border-color: rgba(8,145,178,.2);
    box-shadow: 0 0 30px rgba(8,145,178,.06);
}

.conclusion-box p { margin-bottom: 14px; }
.conclusion-box strong { color: var(--text); }

.conclusion-cta {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.conclusion-cta p { margin-bottom: 8px; font-size: .95rem; }
.conclusion-cta .btn-primary { margin-top: 16px; }

/* Contact */

#contact { padding-bottom: 100px; }

.contact-grid {
    max-width: 880px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    transition: all .4s cubic-bezier(.16,1,.3,1);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow), 0 0 20px rgba(8,145,178,.1);
    border-color: rgba(8,145,178,.2);
}

.contact-card.primary {
    border: 2px solid rgba(8,145,178,.15);
    background: linear-gradient(135deg, #fff, #f4fbfd);
}

.contact-icon { font-size: 1.8rem; margin-bottom: 12px; transition: transform .3s; }
.contact-card:hover .contact-icon { transform: scale(1.2); }

.contact-card h3 { font-size: .95rem; font-weight: 600; margin-bottom: 8px; }

.contact-card a {
    font-size: 1.15rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2563eb, #0891b2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.contact-card a:hover { text-decoration: underline; }
.contact-card span { font-size: .95rem; color: var(--text-secondary); }

/* Footer */

footer {
    border-top: 1px solid var(--border);
    padding: 32px 24px;
    text-align: center;
}

.footer-inner { max-width: 1100px; margin: 0 auto; font-size: .85rem; color: var(--text-tertiary); }

@media (prefers-reduced-motion: reduce) {
    .hero-bg, .hero-bio, .hero-badge,
    .timeline-marker, body::before {
        animation: none;
    }
}

/* Responsive */

@media (max-width: 860px) {
    #hero h1 { font-size: 2.5rem; }
    .about-grid { grid-template-columns: repeat(2, 1fr); }
    .metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .project-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .layer-card { flex-direction: column; gap: 12px; }
    .layer-num { width: 36px; height: 36px; font-size: .95rem; }
}

@media (max-width: 640px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 24px; right: 24px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 16px;
        box-shadow: var(--shadow-lg);
    }
    .nav-toggle { display: block; }
    #hero h1 { font-size: 2rem; }
    .hero-stats { gap: 24px; }
    .about-grid { grid-template-columns: 1fr; }
    .metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr 1fr; }
    .hero-actions { flex-direction: column; align-items: center; }
    .timeline { padding-left: 30px; }
    .timeline-marker { left: -30px; width: 24px; height: 24px; }
    .timeline::before { left: 11px; }
}

/* ========================================
   2026 改版新增组件
   ======================================== */

/* 阅读进度条 */
#progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px; width: 0;
    background: linear-gradient(90deg, #2563eb, #0891b2, #06b6d4);
    z-index: 200;
    transition: width .1s linear;
}

/* 导航当前项 */
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after { width: 100%; }

/* 回到顶部 */
#toTop {
    position: fixed;
    right: 24px; bottom: 24px;
    width: 44px; height: 44px;
    border: 1px solid rgba(8,145,178,.2);
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(8px);
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: all .3s;
    box-shadow: var(--shadow-md);
    z-index: 90;
}
#toTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#toTop:hover { background: linear-gradient(135deg, #2563eb, #0891b2); color: #fff; border-color: transparent; }

/* 入场动画（只有 JS 生效时才隐藏，避免无 JS / 截图时白屏） */
.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
    will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .js .reveal, .reveal { opacity: 1; transform: none; transition: none; }
    #progress { transition: none; }
}

/* Hero 微调 */
.hero-inner { width: 100%; }
.hero-actions { margin-bottom: 48px; gap: 14px; }
.hero-bio { display: block; max-width: 640px; margin: 0 auto 36px; box-sizing: border-box; }

/* 小字号单位不要被 parent 的 background-clip 吞掉 */
.stat-value small, .metric-value small { -webkit-text-fill-color: currentColor; color: var(--text-secondary); }
.metric-value small { font-size: .8rem; }

/* 长标题的 section header 加宽，避免单字孤行 */
.section-header.wide { max-width: 820px; }
.section-header.wide h2 { font-size: 2.1rem; line-height: 1.4; }

/* 三块内容 */
.pillar-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.pillar {
    display: block;
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px 28px;
    text-decoration: none;
    color: inherit;
    transition: all .4s cubic-bezier(.16,1,.3,1);
    overflow: hidden;
}

.pillar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #2563eb, #0891b2, #06b6d4);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s cubic-bezier(.16,1,.3,1);
}

.pillar:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: var(--shadow-lg), 0 0 30px rgba(8,145,178,.1);
}
.pillar:hover::before { transform: scaleX(1); }

.pillar-num {
    display: inline-block;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    color: var(--accent);
    background: var(--accent-light);
    padding: 2px 10px;
    border-radius: 99px;
    margin-bottom: 14px;
}

.pillar h3 { font-size: 1.05rem; font-weight: 700; color: #0f172a; margin-bottom: 10px; }
.pillar p { font-size: .9rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }

.pillar-link {
    font-size: .85rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: .01em;
}

/* 落地原则 */
#principles { padding-top: 40px; }

.principle-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.principle {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 30px 28px 30px;
    transition: all .4s cubic-bezier(.16,1,.3,1);
    overflow: hidden;
}

.principle::after {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(180deg, #2563eb, #0891b2, #06b6d4);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .4s cubic-bezier(.16,1,.3,1);
}

.principle:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md), 0 0 24px rgba(8,145,178,.07);
    border-color: rgba(8,145,178,.2);
}
.principle:hover::after { transform: scaleY(1); }

.principle-num {
    display: block;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -.03em;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: .45;
    margin-bottom: 8px;
}

.principle h3 { font-size: 1.1rem; font-weight: 700; color: #0f172a; margin-bottom: 10px; }
.principle p { font-size: .92rem; color: var(--text-secondary); line-height: 1.75; }
.principle p strong { color: var(--accent-dark); }

.pull-quote {
    max-width: 860px;
    margin: 44px auto 0;
    text-align: center;
    padding: 34px 32px;
    background: linear-gradient(135deg, rgba(37,99,235,.06), rgba(8,145,178,.06), rgba(6,182,212,.04));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(8,145,178,.15);
}

.pull-quote p {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.75;
    letter-spacing: -.01em;
    background: linear-gradient(135deg, #1d4ed8, #0891b2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.only-wide { display: inline; }

/* 案例 */
.case-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.case-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 30px;
    transition: all .4s cubic-bezier(.16,1,.3,1);
    display: flex;
    flex-direction: column;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(8,145,178,.09);
    border-color: rgba(8,145,178,.22);
}

.case-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.case-ep {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #0891b2);
    padding: 3px 10px;
    border-radius: 99px;
}

.case-line {
    font-size: .8rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.case-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    line-height: 1.45;
}

.case-rows { margin: 0 0 18px; }

.case-rows dt {
    font-size: .78rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: .04em;
    margin-top: 12px;
}

.case-rows dt:first-child { margin-top: 0; }

.case-rows dd {
    font-size: .9rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin: 3px 0 0;
}

.case-rows dd strong { color: var(--text); }

.case-metrics {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px dashed var(--border);
}

.case-metrics span {
    font-size: .8rem;
    color: var(--text-secondary);
    background: linear-gradient(135deg, rgba(37,99,235,.05), rgba(8,145,178,.05));
    border: 1px solid rgba(8,145,178,.1);
    border-radius: 8px;
    padding: 5px 11px;
}

.case-metrics b {
    color: var(--accent-dark);
    font-weight: 800;
}

.section-footnote {
    max-width: 860px;
    margin: 32px auto 0;
    text-align: center;
    font-size: .95rem;
    line-height: 1.85;
    color: var(--text-secondary);
    padding: 24px 28px;
    background: var(--accent-light);
    border-radius: var(--radius);
    border: 1px solid rgba(8,145,178,.12);
}

.section-footnote strong { color: var(--accent-dark); }

/* 项目矩阵 */
.matrix {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.matrix-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
    letter-spacing: -.01em;
}

.matrix-title span {
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .06em;
    color: #fff;
    background: linear-gradient(135deg, #164e63, #0891b2);
    padding: 3px 9px;
    border-radius: 6px;
    -webkit-text-fill-color: #fff;
}

.matrix-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
}

.proj {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    transition: all .3s;
    overflow: hidden;
}

.proj:hover { border-color: rgba(8,145,178,.22); box-shadow: var(--shadow-sm); }
.proj[open] { border-color: rgba(8,145,178,.25); box-shadow: var(--shadow), 0 0 24px rgba(8,145,178,.06); }

.proj summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    cursor: pointer;
    list-style: none;
    flex-wrap: wrap;
}

.proj summary::-webkit-details-marker { display: none; }

.proj summary::after {
    content: '+';
    margin-left: auto;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-tertiary);
    transition: transform .3s, color .3s;
    line-height: 1;
}

.proj[open] summary::after { content: '−'; color: var(--accent); }

.proj summary:hover .proj-name { color: var(--accent); }

.proj-name {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    transition: color .25s;
}

.proj-tag {
    font-size: .75rem;
    color: var(--accent);
    background: var(--accent-light);
    border-radius: 99px;
    padding: 2px 10px;
    font-weight: 500;
    white-space: nowrap;
}

.proj-hi {
    font-size: .8rem;
    font-weight: 700;
    color: var(--accent-dark);
    background: linear-gradient(135deg, rgba(37,99,235,.07), rgba(6,182,212,.07));
    border: 1px solid rgba(8,145,178,.12);
    border-radius: 6px;
    padding: 3px 10px;
    white-space: nowrap;
}

.proj-body {
    padding: 0 22px 20px;
    border-top: 1px solid transparent;
}

.proj[open] .proj-body {
    border-top-color: var(--border);
    padding-top: 16px;
    animation: projIn .35s cubic-bezier(.16,1,.3,1);
}

@keyframes projIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

.proj-body p {
    font-size: .9rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 8px;
}

.proj-body p:last-child { margin-bottom: 0; }
.proj-body strong { color: var(--text); }

/* 手记 */
.note {
    max-width: 780px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 44px 48px;
    box-shadow: var(--shadow-sm);
}

.note-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: .8rem;
    color: var(--text-tertiary);
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.note-h {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin: 30px 0 12px;
    letter-spacing: -.01em;
    position: relative;
    padding-left: 14px;
}

.note-h::before {
    content: '';
    position: absolute;
    left: 0; top: .32em;
    width: 4px; height: 1.1em;
    border-radius: 2px;
    background: linear-gradient(180deg, #2563eb, #06b6d4);
}

.note-h:first-of-type { margin-top: 0; }

.note p {
    font-size: .97rem;
    color: var(--text-secondary);
    line-height: 1.95;
    margin-bottom: 14px;
}

.note p strong { color: var(--text); }

.note-quote {
    margin: 22px 0;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(37,99,235,.05), rgba(6,182,212,.05));
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.note-quote p { margin-bottom: 10px; color: var(--text); font-size: .95rem; }
.note-quote p:last-child { margin-bottom: 0; }

.note-tips {
    margin: 20px 0;
    padding: 22px 26px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.note-tips-title {
    font-size: .85rem !important;
    font-weight: 800;
    color: var(--accent) !important;
    letter-spacing: .04em;
    margin-bottom: 10px !important;
}

.note-tips ul { padding-left: 20px; }

.note-tips li {
    font-size: .9rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 6px;
}

.note-sign {
    margin-top: 26px !important;
    padding-top: 18px;
    border-top: 1px dashed var(--border);
    text-align: right;
    font-size: .88rem !important;
    color: var(--text-tertiary) !important;
    font-style: italic;
}

/* 页脚微调 */
.footer-line {
    font-size: .9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-style: italic;
}

footer { padding: 40px 24px; }

/* 响应式补充 */
@media (max-width: 980px) {
    .pillar-grid { grid-template-columns: 1fr; }
    .principle-grid { grid-template-columns: 1fr; }
    .note { padding: 34px 28px; }
}

@media (max-width: 860px) {
    .case-grid { grid-template-columns: 1fr; }
    .nav-links { gap: 18px; }
    .only-wide { display: none; }
    .pull-quote p { font-size: 1.1rem; }
}

@media (max-width: 640px) {
    .proj summary { gap: 8px; padding: 16px 16px; }
    .proj-hi { width: 100%; }
    .note { padding: 26px 20px; }
    .note h3 { font-size: 1.05rem; }
    #toTop { right: 16px; bottom: 16px; width: 40px; height: 40px; }
    .pull-quote { padding: 26px 20px; }
    .pull-quote p { font-size: 1rem; }
    .section-footnote { padding: 20px; font-size: .9rem; }

    /* 手机端 Hero：防溢出 + 按钮满宽 + 数据两列 */
    .hero-bio { padding: 16px 18px; font-size: .95rem; line-height: 1.75; }
    .hero-actions { width: 100%; max-width: 320px; margin-left: auto; margin-right: auto; }
    .hero-actions .btn-primary,
    .hero-actions .btn-outline { width: 100%; justify-content: center; }
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 22px 10px;
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
    }
    .stat-value { font-size: 1.7rem; }
    .nav-inner { padding: 0 16px; }
    .nav-toggle { padding: 6px 11px; font-size: 1.1rem; }
}

/* ============================================================
   2026-10-20 · 只改「项目」的展示方式
   一行一个：名称 + 分类 + 一句话简介 + 关键数据，点开看细节
   （其余板块样式保持原样，这里只做覆盖）
   ============================================================ */

.proj-list {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.proj { margin-bottom: 0; }

.proj.lead {
    border-color: rgba(8,145,178,.28);
    background: linear-gradient(135deg, #fff, #f4fbfd);
}

.proj summary {
    display: block;
    position: relative;
    padding: 18px 52px 18px 22px;
    flex-wrap: nowrap;
    gap: 0;
}

.proj summary::after {
    position: absolute;
    right: 18px;
    top: 20px;
    margin-left: 0;
    width: 22px;
    height: 22px;
    line-height: 20px;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: all .25s;
}

.proj[open] summary::after {
    background: var(--accent-light);
    border-color: rgba(8,145,178,.3);
}

.proj-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.proj-cat {
    font-size: .72rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-light);
    border-radius: 99px;
    padding: 2px 9px;
    white-space: nowrap;
}

.proj-sub {
    display: flex;
    align-items: baseline;
    gap: 6px 16px;
    flex-wrap: wrap;
}

.proj-brief {
    flex: 1 1 340px;
    font-size: .87rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.proj-data {
    flex-shrink: 0;
    font-size: .79rem;
    font-weight: 500;
    color: var(--accent-dark);
    white-space: nowrap;
}

.proj-data b { font-weight: 800; }

/* 展开后的图标网格与阶段条 */
.proj-body .project-phases { margin-top: 14px; }
.proj-body .metrics-grid { margin-top: 18px; }

@media (max-width: 720px) {
    .proj summary { padding: 16px 46px 16px 16px; }
    .proj summary::after { right: 14px; top: 16px; }
    .proj-data { white-space: normal; }
    .proj-body { padding: 0 16px 18px; }
    .proj[open] .proj-body { padding-top: 14px; }
}

/* ============================================================
   2026-10-20 · 项目末尾两块（业务侧案例迷你卡 + 方法论折叠块）
   ============================================================ */

.side-cases {
    max-width: 1000px;
    margin: 44px auto 0;
}

.side-cases-title {
    font-size: .92rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 14px;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.side-cases-title span {
    font-size: .78rem;
    font-weight: 400;
    color: var(--text-tertiary);
}

.side-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.side-case {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 18px 16px;
    transition: all .35s cubic-bezier(.16,1,.3,1);
}

.side-case:hover {
    transform: translateY(-4px);
    border-color: rgba(8,145,178,.22);
    box-shadow: var(--shadow-md), 0 0 22px rgba(8,145,178,.07);
}

.side-ep {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .03em;
    color: var(--accent);
    background: var(--accent-light);
    border-radius: 99px;
    padding: 2px 8px;
    margin-bottom: 8px;
}

.side-case h4 {
    font-size: .95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.side-case p {
    font-size: .82rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 12px;
}

.side-num {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    color: var(--accent-dark);
    padding-top: 10px;
    border-top: 1px dashed var(--border);
}

/* 方法论折叠块 */
.methods {
    max-width: 1000px;
    margin: 44px auto 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.methods-title {
    font-size: .92rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
}

.proj-body picture { display: block; margin: 6px 0 14px; }

.proj-body img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.method-points {
    margin: 0 0 10px;
    padding-left: 20px;
}

.method-points li {
    font-size: .9rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 6px;
}

.method-points strong { color: var(--text); }

.method-formula {
    font-size: .92rem !important;
    font-weight: 700;
    text-align: center;
    color: var(--accent-dark) !important;
    background: var(--accent-light);
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 4px !important;
}

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

@media (max-width: 720px) {
    .side-cases, .methods { margin-top: 32px; }
}

@media (max-width: 560px) {
    .side-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   2026-10-20 · V5：项目按公司分组 + 四个智能体 + 视频
   ============================================================ */

/* ---------- 项目分组 ---------- */
.proj-group {
    max-width: 1040px;
    margin: 0 auto 38px;
}
.proj-group:last-of-type { margin-bottom: 0; }

.proj-group .proj-list { max-width: none; }

.proj-group-head {
    display: flex;
    align-items: baseline;
    gap: 10px 14px;
    flex-wrap: wrap;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.co-badge {
    font-size: .92rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -.01em;
    padding-left: 11px;
    position: relative;
}

.co-badge::before {
    content: '';
    position: absolute;
    left: 0; top: .18em;
    width: 4px; height: 1em;
    border-radius: 2px;
    background: linear-gradient(180deg, #2563eb, #06b6d4);
}

.co-meta { font-size: .82rem; color: var(--text-tertiary); }

.co-count {
    margin-left: auto;
    font-size: .75rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-light);
    border-radius: 99px;
    padding: 2px 10px;
}

.proj-co {
    font-size: .72rem;
    font-weight: 600;
    color: #0e7490;
    background: rgba(6,182,212,.1);
    border: 1px solid rgba(6,182,212,.18);
    border-radius: 99px;
    padding: 2px 9px;
    white-space: nowrap;
}

/* ---------- 四个智能体 ---------- */
.agents {
    max-width: 1040px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.agent {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px 28px 24px;
    transition: border-color .35s, box-shadow .35s;
}

.agent:hover {
    border-color: rgba(8,145,178,.22);
    box-shadow: var(--shadow-md), 0 0 26px rgba(8,145,178,.07);
}

.agent-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px dashed var(--border);
}

.agent-no {
    flex-shrink: 0;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .05em;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #0891b2);
    border-radius: 6px;
    padding: 4px 9px;
    margin-top: 2px;
}

.agent-title h3 {
    font-size: 1.12rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -.01em;
    line-height: 1.45;
    margin-bottom: 5px;
}

.agent-meta {
    font-size: .8rem;
    color: var(--text-tertiary);
    line-height: 1.6;
}

.agent-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.agent-facts dl { margin: 0; }

.agent-facts dt {
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--accent);
    margin-top: 14px;
}

.agent-facts dt:first-child { margin-top: 0; }

.agent-facts dd {
    font-size: .9rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 3px 0 0;
}

.agent-facts dd strong { color: var(--text); }

.agent-nums {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
}

.agent-nums span {
    font-size: .78rem;
    color: var(--text-secondary);
    background: linear-gradient(135deg, rgba(37,99,235,.05), rgba(8,145,178,.05));
    border: 1px solid rgba(8,145,178,.1);
    border-radius: 8px;
    padding: 5px 11px;
}

.agent-nums b { color: var(--accent-dark); font-weight: 800; }

/* 视频 */
.agent-media { position: sticky; top: 92px; }

.video-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0b1220;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.video-box video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #0b1220;
}

.video-box.ph {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: repeating-linear-gradient(135deg, #f1f5f9, #f1f5f9 10px, #e8eef5 10px, #e8eef5 20px);
    border-style: dashed;
    box-shadow: none;
}

.video-box.ph span {
    font-size: .85rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.video-box.ph small {
    font-size: .74rem;
    color: var(--text-tertiary);
}

.agents-note {
    max-width: 1040px;
    margin: 20px auto 0;
    font-size: .8rem;
    line-height: 1.75;
    color: var(--text-tertiary);
    padding: 14px 18px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

/* 联系我 结尾一句 */
.closing {
    max-width: 760px;
    margin: 34px auto 0;
    text-align: center;
    font-size: .95rem;
    line-height: 1.85;
    color: var(--text-secondary);
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
    .agent-grid { grid-template-columns: 1fr; gap: 20px; }
    .agent-media { position: static; }
    .co-count { margin-left: 0; }
}

@media (max-width: 720px) {
    .proj-group { margin-bottom: 30px; }
    .agent { padding: 20px 18px; }
    .agent-head { gap: 10px; }
    .agent-title h3 { font-size: 1.02rem; }
    .agent-nums span { font-size: .74rem; }
}

/* 锚点跳转时给固定导航留出空间（否则标题会被导航挡住，看起来像没跳） */
section[id] { scroll-margin-top: 84px; }

/* 去掉首屏标语后，标题和下方补一点间距 */
#hero h1 { margin-bottom: 30px; }

/* ---------- 相逢既是缘分 ---------- */
.hr-intro {
    max-width: 1000px;
    margin: 0 auto 20px;
    padding: 18px 22px;
    font-size: .94rem;
    line-height: 1.85;
    color: var(--text-secondary);
    background: var(--accent-light);
    border: 1px solid rgba(8,145,178,.12);
    border-radius: var(--radius);
}
.hr-intro strong { color: var(--accent-dark); }
.hr-intro b { color: var(--text); }

.hr-faq { margin: 0; }
.hr-faq dt {
    font-size: .9rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 14px;
}
.hr-faq dt:first-child { margin-top: 0; }
.hr-faq dd {
    font-size: .9rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 4px 0 0;
}

.hr-coda {
    margin-top: 18px !important;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
    font-weight: 600;
    color: var(--accent-dark) !important;
}

.hr-source {
    max-width: 1000px;
    margin: 22px auto 0;
    text-align: center;
    font-size: .85rem;
    line-height: 1.9;
    color: var(--text-tertiary);
}
.hr-source a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dashed rgba(8,145,178,.45);
}
.hr-source a:hover { border-bottom-style: solid; }

/* ---------- 相逢既是缘分 · 三级结构 ----------
   一级：整张折叠卡（标题 = 一套 HR 人才体系）
   二级：① 简历解析…（每环节一行折叠卡）
   三级：打开二级卡后看到的内容块
   --------------------------------------------------- */

.fold-l1 {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color .3s, box-shadow .3s;
}

.fold-l1:hover { border-color: rgba(8,145,178,.22); box-shadow: var(--shadow-md), 0 0 26px rgba(8,145,178,.06); }
.fold-l1[open] { border-color: rgba(8,145,178,.28); box-shadow: var(--shadow), 0 0 30px rgba(8,145,178,.07); }

.fold-l1 > summary {
    display: block;
    position: relative;
    padding: 34px 34px 32px;
    cursor: pointer;
    list-style: none;
    text-align: center;
    background: linear-gradient(135deg, #ffffff, #f6fcfe);
    transition: background .3s;
}

.fold-l1 > summary::-webkit-details-marker { display: none; }

.fold-l1[open] > summary {
    background: none;
    border-bottom: 1px solid var(--border);
}

.l1-head { max-width: 790px; margin: 0 auto; }

.l1-head h2 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #0f172a;
    line-height: 1.4;
    margin: 14px 0 12px;
}

.l1-head p {
    font-size: .92rem;
    color: var(--text-secondary);
    line-height: 1.85;
}

.l1-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.l1-meta span {
    font-size: .76rem;
    font-weight: 600;
    color: var(--accent-dark);
    background: var(--accent-light);
    border-radius: 99px;
    padding: 3px 12px;
}


/* 一级卡片的展开按钮：放在标签下面，做成明显的按钮 */
.l1-cta-wrap { margin-top: 22px; }

.l1-cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 30px;
    font-size: .95rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #0891b2);
    border-radius: 99px;
    border: 2px solid transparent;
    box-shadow: 0 6px 18px rgba(8,145,178,.28);
    transition: transform .2s, box-shadow .2s, background .2s;
    user-select: none;
}

.l1-cta i {
    font-style: normal;
    font-size: .95rem;
    transition: transform .3s;
}

.fold-l1 > summary:hover .l1-cta {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(8,145,178,.36);
}

.fold-l1[open] .l1-cta {
    background: #fff;
    color: var(--accent);
    border-color: rgba(8,145,178,.35);
    box-shadow: 0 4px 12px rgba(8,145,178,.12);
}

.fold-l1[open] .l1-cta i { transform: rotate(180deg); }

.cta-open { display: none; }
.fold-l1[open] .cta-open { display: inline; }
.fold-l1[open] .cta-closed { display: none; }

.l1-body { padding: 28px 30px 30px; }

/* 三级内容块 */
.step-plain {
    padding: 13px 0;
    border-bottom: 1px dashed var(--border);
}

.step-plain:first-child { padding-top: 2px; }
.step-plain:last-child { border-bottom: none; padding-bottom: 0; }

.step-plain h5 {
    font-size: .9rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.6;
    margin-bottom: 5px;
}

.step-plain h5::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    margin-right: 8px;
    vertical-align: 2px;
}

.step-text {
    font-size: .875rem;
    color: var(--text-secondary);
    line-height: 1.85;
}

.step-text b, .step-text strong { color: var(--text); }
.step-text ul { margin: 0; padding-left: 18px; }
.step-text li { margin-bottom: 4px; }
.step-text li:last-child { margin-bottom: 0; }
.step-text .methodology-table-wrap { margin-top: 8px; }
.step-text .hr-faq { margin: 0; }
.step-text .hr-faq dt { font-size: .875rem; }
.step-text .hr-faq dd { font-size: .875rem; }

@media (max-width: 720px) {
    .fold-l1 > summary { padding: 24px 20px 24px; }
    .l1-cta { padding: 11px 24px; font-size: .9rem; }
    .l1-head h2 { font-size: 1.3rem; }
    .l1-head p { font-size: .85rem; }
    .l1-body { padding: 20px 14px 22px; }
    .step-text { font-size: .85rem; }
}
