/* ============================================================
   COMPONENTS — navbar, footer, buttons, cards, forms, pages
   ============================================================ */

/* ── Navbar ────────────────────────────────────────────────── */

.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 1000;
    transition: background var(--t-smooth), border-color var(--t-smooth);
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    background: rgba(3, 7, 18, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom-color: var(--border);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text-bright);
    text-decoration: none;
}
.logo-hex {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-cn {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-bright);
    text-shadow: 0 0 14px rgba(0,212,255,0.5);
}
.logo-en {
    font-family: var(--font-mono);
    font-size: 0.52rem;
    letter-spacing: 0.18em;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.nav-links a {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius);
    transition: color var(--t-fast), background var(--t-fast);
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 50%; right: 50%;
    height: 1px;
    background: var(--cyan);
    transition: left var(--t-smooth), right var(--t-smooth);
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--text-bright);
}
.nav-links a:hover::after,
.nav-links a.active::after {
    left: 0.9rem; right: 0.9rem;
}

.nav-cta {
    font-family: var(--font-ui);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--cyan) !important;
    border: 1px solid rgba(0,212,255,0.4);
    padding: 0.4rem 1.1rem !important;
    border-radius: var(--radius) !important;
    transition: background var(--t-fast), box-shadow var(--t-fast) !important;
}
.nav-cta:hover {
    background: rgba(0,212,255,0.10);
    box-shadow: var(--glow-cyan-sm);
}
.nav-cta::after { display: none !important; }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--text-secondary);
    transition: transform var(--t-smooth), opacity var(--t-fast);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 768px) {
    .menu-toggle  { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-h); left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        background: rgba(3,7,18,0.97);
        backdrop-filter: blur(24px);
        border-bottom: 1px solid var(--border);
        padding: 1rem 2rem 1.5rem;
        gap: 0.1rem;
    }
    .nav-links.open { display: flex; }
    .nav-links a    { padding: 0.7rem 0; }
    .nav-cta        { margin-top: 0.5rem; text-align: center; }
}

/* ── Buttons ───────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-ui);
    font-weight: 600;
    letter-spacing: 0.04em;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: box-shadow var(--t-smooth), background var(--t-smooth), transform var(--t-fast);
    text-decoration: none;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-lg  { padding: 0.8rem 2rem; font-size: 1rem; }
.btn-md  { padding: 0.65rem 1.6rem; font-size: 0.9rem; }
.btn-sm  { padding: 0.4rem 1.1rem; font-size: 0.85rem; }

.btn-primary {
    background: var(--cyan);
    color: #020c1a;
    box-shadow: 0 0 18px rgba(0,212,255,0.35);
}
.btn-primary:hover {
    background: #33ddff;
    box-shadow: var(--glow-cyan);
    color: #020c1a;
}

.btn-outline {
    background: transparent;
    color: var(--cyan);
    border: 1px solid rgba(0,212,255,0.45);
}
.btn-outline:hover {
    background: rgba(0,212,255,0.08);
    border-color: var(--cyan);
    box-shadow: var(--glow-cyan-sm);
    color: var(--cyan);
}

.btn-green {
    background: var(--green);
    color: #020c1a;
    box-shadow: 0 0 18px rgba(0,255,135,0.35);
}
.btn-green:hover {
    background: #33ffaa;
    box-shadow: var(--glow-green);
    color: #020c1a;
}

/* ── Page hero (narrow) ────────────────────────────────────── */

.page-hero {
    position: relative;
    height: 46vh;
    min-height: 320px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg-void);
}
.page-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,212,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,212,255,0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: grid-breathe 5s ease-in-out infinite;
}
.page-hero-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(0,212,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.page-hero::after {
    content: '';
    position: absolute;
    left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    animation: scan-line 4s linear infinite;
}
.page-hero-content {
    position: relative;
    z-index: 5;
    padding-top: var(--nav-h);
}
.page-hero-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    color: var(--cyan);
    margin-bottom: 0.8rem;
}
.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-shadow: 0 0 40px rgba(0,212,255,0.2);
    margin-bottom: 0.6rem;
}
.page-hero-sub {
    font-family: var(--font-cn);
    font-size: 1rem;
    color: var(--text-secondary);
}
.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}
.page-breadcrumb a { color: var(--text-muted); }
.page-breadcrumb a:hover { color: var(--cyan); }
.page-breadcrumb span { color: var(--cyan); }

/* ── Corner decorations ────────────────────────────────────── */

.corner-tl, .corner-br {
    position: absolute;
    width: 70px; height: 70px;
    z-index: 3;
    pointer-events: none;
}
.corner-tl {
    top: calc(var(--nav-h) + 20px); left: 28px;
    border-top: 1px solid rgba(0,212,255,0.4);
    border-left: 1px solid rgba(0,212,255,0.4);
}
.corner-br {
    bottom: 24px; right: 28px;
    border-bottom: 1px solid rgba(0,212,255,0.4);
    border-right:  1px solid rgba(0,212,255,0.4);
}

/* ── Stat cards ────────────────────────────────────────────── */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: border-color var(--t-smooth), box-shadow var(--t-smooth);
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    opacity: 0;
    transition: opacity var(--t-smooth);
}
.stat-card:hover {
    border-color: rgba(0,212,255,0.35);
    box-shadow: 0 8px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(0,212,255,0.1);
}
.stat-card:hover::before { opacity: 1; }

.stat-icon {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    display: block;
}
.stat-value {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    color: var(--cyan);
    display: block;
    animation: pulse-text-cyan 3s ease-in-out infinite;
}
.stat-label {
    font-family: var(--font-cn);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.4rem;
}

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

/* ── Service card ──────────────────────────────────────────── */

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: border-color var(--t-smooth), box-shadow var(--t-smooth), transform var(--t-smooth);
}
.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,212,255,0.03) 0%, transparent 60%);
    pointer-events: none;
}
.service-card:hover {
    border-color: rgba(0,212,255,0.4);
    box-shadow: 0 12px 50px rgba(0,0,0,0.5), inset 0 1px 0 rgba(0,212,255,0.15);
    transform: translateY(-4px);
}
.service-card-accent {
    border-top: 2px solid var(--cyan);
}
.service-icon-wrap {
    width: 56px; height: 56px;
    border: 1px solid rgba(0,212,255,0.3);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,212,255,0.06);
    margin-bottom: 1.25rem;
    transition: box-shadow var(--t-smooth);
}
.service-card:hover .service-icon-wrap {
    box-shadow: var(--glow-cyan-sm);
}
.service-icon-wrap svg { width: 26px; height: 26px; }
.service-card h3 {
    margin-bottom: 0.7rem;
    font-size: 1.15rem;
}
.service-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
}
.service-features {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.service-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-family: var(--font-cn);
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.service-feature-item::before {
    content: '▸';
    color: var(--cyan);
    flex-shrink: 0;
    margin-top: 1px;
}
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--font-ui);
    font-size: 0.88rem;
    color: var(--cyan);
    margin-top: 1.5rem;
    transition: gap var(--t-fast);
}
.service-link:hover { gap: 0.6rem; color: var(--green); }

/* ── Tech badge strip ──────────────────────────────────────── */

.tech-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: center;
}
.tech-badge {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--cyan);
    border: 1px solid rgba(0,212,255,0.25);
    padding: 0.35rem 0.8rem;
    border-radius: 3px;
    background: rgba(0,212,255,0.04);
    transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.tech-badge:hover {
    border-color: var(--cyan);
    background: rgba(0,212,255,0.10);
    box-shadow: var(--glow-cyan-sm);
}

/* ── CTA banner ────────────────────────────────────────────── */

.cta-banner {
    background: var(--bg-card);
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: var(--radius-lg);
    padding: 3.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), var(--green), transparent);
}
.cta-banner h2 { margin-bottom: 0.8rem; }
.cta-banner p  { color: var(--text-secondary); margin-bottom: 2rem; }

/* ── Terminal block ────────────────────────────────────────── */

.terminal {
    background: #010f1a;
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    font-family: var(--font-mono);
}
.terminal-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    background: #021520;
    border-bottom: 1px solid rgba(0,212,255,0.15);
}
.terminal-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
}
.td-red   { background: #FF5F56; }
.td-yel   { background: #FFBD2E; }
.td-grn   { background: #27C93F; }
.terminal-title {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}
.terminal-body {
    padding: 1.5rem;
    font-size: 0.82rem;
    line-height: 1.9;
    max-height: 340px;
    overflow-y: auto;
}
.t-prompt { color: var(--green); }
.t-cmd    { color: var(--text-bright); }
.t-comment{ color: var(--text-muted); }
.t-output { color: var(--cyan); }
.t-value  { color: var(--orange); }
.t-success{ color: var(--green); }
.t-line   { display: block; }

/* ── Value/info card ───────────────────────────────────────── */

.value-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    text-align: center;
    transition: border-color var(--t-smooth), transform var(--t-smooth);
}
.value-card:hover {
    border-color: rgba(0,212,255,0.3);
    transform: translateY(-3px);
}
.value-icon {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    display: block;
}
.value-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.value-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ── Timeline ──────────────────────────────────────────────── */

.timeline {
    position: relative;
    padding-left: 2rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--cyan), var(--green), transparent);
}
.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
    position: absolute;
    left: -2.4rem;
    top: 0.2rem;
    width: 12px; height: 12px;
    background: var(--cyan);
    border: 2px solid var(--bg-base);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(0,212,255,0.8);
}
.timeline-year {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--cyan);
    letter-spacing: 0.1em;
    margin-bottom: 0.3rem;
}
.timeline-title {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-bright);
    margin-bottom: 0.3rem;
}
.timeline-desc {
    font-family: var(--font-cn);
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* ── Metric highlight cards ────────────────────────────────── */

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 1rem;
    margin-top: 2rem;
}
.metric-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem;
    text-align: center;
}
.metric-val {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--cyan);
    display: block;
    margin-bottom: 0.3rem;
}
.metric-lbl {
    font-family: var(--font-cn);
    font-size: 0.78rem;
    color: var(--text-muted);
}

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

/* ── Contact form ──────────────────────────────────────────── */

.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
.contact-info h2 { margin-bottom: 1rem; }
.contact-info p  { color: var(--text-secondary); margin-bottom: 2rem; }

.contact-notice {
    background: rgba(0,212,255,0.05);
    border: 1px solid rgba(0,212,255,0.15);
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.7;
}
.contact-notice strong { color: var(--cyan); }

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}
.contact-form::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.form-group { margin-bottom: 1.4rem; }
.form-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: var(--cyan);
    margin-bottom: 0.5rem;
}
.form-input,
.form-textarea {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    font-family: var(--font-cn);
    font-size: 0.9rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color var(--t-smooth), box-shadow var(--t-smooth);
    resize: none;
}
.form-input:focus,
.form-textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0,212,255,0.12);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.form-submit { width: 100%; justify-content: center; margin-top: 0.5rem; }

.form-msg {
    display: none;
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius);
    font-family: var(--font-cn);
    font-size: 0.88rem;
}
.form-msg.success {
    background: rgba(0,255,135,0.08);
    border: 1px solid rgba(0,255,135,0.3);
    color: var(--green);
    display: block;
}
.form-msg.error {
    background: rgba(255,107,53,0.08);
    border: 1px solid rgba(255,107,53,0.3);
    color: var(--orange);
    display: block;
}

@media (max-width: 800px) {
    .contact-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
    .form-row     { grid-template-columns: 1fr; }
}

/* ── Radar chart section ───────────────────────────────────── */

.radar-wrap {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 4rem;
    align-items: center;
}
#radar-canvas {
    width: 420px;
    height: 420px;
    max-width: 100%;
}
.radar-skills {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.radar-skill-row {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.radar-skill-label {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-cn);
    font-size: 0.88rem;
    color: var(--text-secondary);
}
.radar-skill-pct { color: var(--cyan); font-family: var(--font-mono); }
.radar-bar-bg {
    height: 4px;
    background: var(--bg-surface);
    border-radius: 2px;
    overflow: hidden;
}
.radar-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cyan), var(--green));
    border-radius: 2px;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 1s cubic-bezier(0.16,1,0.3,1);
}
.radar-bar-fill.animated { transform: scaleX(1); }

@media (max-width: 900px) {
    .radar-wrap { grid-template-columns: 1fr; }
    #radar-canvas { width: 300px; height: 300px; margin: 0 auto; }
}

/* ── Hero (index) ──────────────────────────────────────────── */

.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
#particle-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-grid-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: grid-breathe 5s ease-in-out infinite;
}
.hero-vignette {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(3,7,18,0.85) 100%);
}
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 1.5rem;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    color: var(--cyan);
    border: 1px solid rgba(0,212,255,0.3);
    padding: 0.32rem 0.85rem;
    border-radius: 2px;
    margin-bottom: 1.5rem;
    animation: fade-in-up 0.8s 0.2s ease both;
}
.badge-dot {
    width: 6px; height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: dot-pulse 2s ease-in-out infinite;
}
.hero-title {
    font-size: clamp(3.2rem, 10vw, 7.5rem);
    font-weight: 900;
    line-height: 1;
    color: var(--text-bright);
    text-shadow: 0 0 60px rgba(0,212,255,0.25);
    margin-bottom: 0.5rem;
    animation: fade-in-up 0.8s 0.4s ease both;
}
.hero-title-en {
    font-family: var(--font-mono);
    font-size: clamp(0.62rem, 1.2vw, 0.85rem);
    letter-spacing: 0.45em;
    color: var(--text-muted);
    margin-bottom: 2rem;
    animation: fade-in-up 0.8s 0.5s ease both;
}
.hero-tagline {
    font-family: var(--font-mono);
    font-size: clamp(0.9rem, 2vw, 1.25rem);
    color: var(--text-primary);
    min-height: 2em;
    margin-bottom: 1.5rem;
    animation: fade-in-up 0.8s 0.6s ease both;
}
.tagline-prefix { color: rgba(0,212,255,0.6); }
.hero-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 2.5rem;
    animation: fade-in-up 0.8s 0.7s ease both;
}
.hero-tag    { font-family: var(--font-cn); font-size: 0.9rem; color: var(--text-secondary); }
.hero-sep    { color: rgba(0,212,255,0.4); }
.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fade-in-up 0.8s 0.9s ease both;
}
.scroll-hint {
    position: absolute;
    bottom: 2.5rem; left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
    animation: fade-in 1s 1.8s ease both;
}
.scroll-line {
    width: 1px;
    background: linear-gradient(to bottom, var(--cyan), transparent);
    animation: scroll-fall 1.8s ease-in-out infinite;
}
.scroll-text {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: var(--text-muted);
}

/* ── Footer ────────────────────────────────────────────────── */

.footer {
    background: var(--bg-void);
    border-top: 1px solid var(--border);
    padding-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}
.footer-logo-cn {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-bright);
}
.footer-tagline {
    font-family: var(--font-cn);
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}
.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.footer-tags span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--cyan-dim);
    border: 1px solid rgba(0,153,187,0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
}
.footer-links h4 {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.footer-links ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
    font-family: var(--font-cn);
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: color var(--t-fast), padding-left var(--t-fast);
}
.footer-links a:hover { color: var(--cyan); padding-left: 4px; }

.footer-info h4 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--text-bright);
    margin-bottom: 0.8rem;
}
.footer-icp {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.2rem 0;
    text-align: center;
}
.footer-bottom p {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
}
