/* =========================================
   Skills Hub v3 — Light Theme
   skills.your-agent.cc
   聚焦：自媒体人 · 营销人 · 运营人
   ========================================= */

/* --- CSS Variables / Light Theme --- */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f7f8fc;
    --bg-tertiary: #eef0f7;
    --bg-card: #ffffff;
    --bg-card-hover: #f9faff;
    --bg-glass: rgba(102, 126, 234, 0.04);
    --bg-glass-hover: rgba(102, 126, 234, 0.07);

    --text-primary: #1a1a2e;
    --text-secondary: #555770;
    --text-muted: #8b8fa8;
    --text-accent: #5b6abf;

    /* Accent Colors by Persona */
    --c-creator: #f5576c;
    --c-creator-light: #fff1f3;
    --c-creator-glow: rgba(245, 87, 108, 0.08);
    --c-marketing: #667eea;
    --c-marketing-light: #f0f2ff;
    --c-marketing-glow: rgba(102, 126, 234, 0.08);
    --c-ops: #43b97b;
    --c-ops-light: #edfaf3;
    --c-ops-glow: rgba(67, 185, 123, 0.08);

    /* Gradients */
    --grad-hero: linear-gradient(135deg, #f5576c 0%, #667eea 50%, #43b97b 100%);
    --grad-creator: linear-gradient(135deg, #f5576c 0%, #ff8a5c 100%);
    --grad-marketing: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --grad-ops: linear-gradient(135deg, #43b97b 0%, #38d9a9 100%);
    --grad-cta: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    /* Borders */
    --border-subtle: rgba(0, 0, 0, 0.07);
    --border-hover: rgba(0, 0, 0, 0.12);
    --border-accent: rgba(102, 126, 234, 0.25);

    /* Typography */
    --font-primary: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

    /* Spacing */
    --sp-xs: 4px; --sp-sm: 8px; --sp-md: 16px; --sp-lg: 24px;
    --sp-xl: 32px; --sp-2xl: 48px; --sp-3xl: 64px; --sp-4xl: 96px; --sp-5xl: 128px;

    /* Radius */
    --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px; --r-2xl: 24px; --r-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.04);
    --shadow-card: 0 2px 16px rgba(0,0,0,0.06);
    --shadow-card-hover: 0 8px 32px rgba(0,0,0,0.08);
    --shadow-elevated: 0 12px 48px rgba(0,0,0,0.10);

    /* Transitions */
    --t-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --t-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --t-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: var(--font-primary); cursor: pointer; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 var(--sp-lg); }

/* ===========================================
   NAVIGATION — light
   =========================================== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: var(--sp-md) 0;
    transition: all var(--t-base);
    background: transparent;
}
.nav.scrolled {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--sp-sm) 0;
    box-shadow: var(--shadow-sm);
}
.nav-inner {
    max-width: 1100px; margin: 0 auto; padding: 0 var(--sp-lg);
    display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
    display: flex; align-items: center; gap: var(--sp-sm);
    font-weight: 700; font-size: 1rem; color: var(--text-primary);
}
.nav-brand-icon {
    width: 28px; height: 28px;
    background: var(--grad-hero); border-radius: var(--r-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; color: white;
}
.nav-brand-sub {
    font-size: 0.65rem; color: var(--text-muted); font-weight: 500;
    padding: 2px 6px; background: var(--bg-secondary);
    border-radius: var(--r-full); border: 1px solid var(--border-subtle);
}
.nav-links { display: flex; align-items: center; gap: var(--sp-xl); }
.nav-link {
    font-size: 0.85rem; color: var(--text-secondary); font-weight: 500;
    transition: color var(--t-fast); position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--grad-cta); border-radius: 1px; transition: width var(--t-base);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-cta {
    display: inline-flex; align-items: center; gap: var(--sp-sm);
    padding: 8px 18px; background: var(--grad-cta); color: white;
    border-radius: var(--r-full); font-size: 0.8rem; font-weight: 600;
    transition: all var(--t-fast); box-shadow: 0 2px 12px rgba(102,126,234,0.25);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(102,126,234,0.4); }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text-secondary); border-radius: 2px; }
.mobile-menu {
    position: fixed; top: 56px; left: 0; right: 0; z-index: 999;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    padding: var(--sp-lg); display: none; flex-direction: column; gap: var(--sp-md);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
}
.mobile-menu.open { display: flex; }
.mobile-link { color: var(--text-secondary); font-size: 0.95rem; font-weight: 500; padding: var(--sp-sm) 0; }

/* ===========================================
   HERO — light & clean
   =========================================== */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; padding: var(--sp-5xl) var(--sp-lg) var(--sp-4xl);
    background: var(--bg-primary);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-gradient-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 60% 35% at 25% 45%, rgba(245,87,108,0.06) 0%, transparent 70%),
        radial-gradient(ellipse 50% 35% at 75% 35%, rgba(102,126,234,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 50% 80%, rgba(67,185,123,0.04) 0%, transparent 50%);
}
.hero-grid-bg {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(102,126,234,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102,126,234,0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 20%, transparent 80%);
}
.hero-particles { position: absolute; inset: 0; pointer-events: none; }
.particle {
    position: absolute; width: 3px; height: 3px; border-radius: 50%;
    opacity: 0; animation: particleDrift 8s ease-in-out infinite;
}
@keyframes particleDrift {
    0%, 100% { opacity: 0; transform: translateY(0) scale(0.5); }
    50% { opacity: 0.4; transform: translateY(-50px) scale(1); }
}
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 800px; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: var(--sp-sm);
    padding: 6px 16px; background: var(--bg-secondary);
    border: 1px solid var(--border-subtle); border-radius: var(--r-full);
    font-size: 0.78rem; color: var(--text-accent); font-weight: 500;
    margin-bottom: var(--sp-xl);
}
.eyebrow-dot {
    width: 6px; height: 6px; background: var(--c-ops); border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(67,185,123,0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(67,185,123,0); }
}
.hero-title {
    font-size: clamp(2.2rem, 5.5vw, 3.5rem);
    font-weight: 900; line-height: 1.15; letter-spacing: -0.03em;
    margin-bottom: var(--sp-lg); color: var(--text-primary);
}
.hero-title-grad {
    background: var(--grad-hero);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle {
    font-size: 1.05rem; color: var(--text-secondary); line-height: 1.7;
    margin-bottom: var(--sp-2xl); max-width: 580px; margin-left: auto; margin-right: auto;
}
.hero-subtitle em { font-style: normal; color: var(--text-primary); font-weight: 600; }

/* ===========================================
   PERSONA SELECTOR — 3 cards
   =========================================== */
.persona-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-md); max-width: 680px; margin: 0 auto var(--sp-2xl);
}
.persona-card {
    position: relative; padding: var(--sp-lg) var(--sp-md);
    background: var(--bg-primary); border: 2px solid var(--border-subtle);
    border-radius: var(--r-xl); text-align: center; cursor: pointer;
    transition: all var(--t-base); overflow: hidden;
}
.persona-card:hover {
    border-color: var(--border-hover); transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}
/* Active states per persona */
.persona-card.active[data-persona="creator"] {
    border-color: var(--c-creator); background: var(--c-creator-light);
    box-shadow: 0 4px 20px var(--c-creator-glow);
}
.persona-card.active[data-persona="marketing"] {
    border-color: var(--c-marketing); background: var(--c-marketing-light);
    box-shadow: 0 4px 20px var(--c-marketing-glow);
}
.persona-card.active[data-persona="ops"] {
    border-color: var(--c-ops); background: var(--c-ops-light);
    box-shadow: 0 4px 20px var(--c-ops-glow);
}
.persona-icon { font-size: 2.2rem; margin-bottom: var(--sp-sm); display: block; }
.persona-name { font-size: 0.95rem; font-weight: 700; margin-bottom: 2px; }
.persona-name-en { font-size: 0.7rem; color: var(--text-muted); font-weight: 400; }
.persona-count {
    position: absolute; top: 8px; right: 8px;
    font-size: 0.6rem; font-weight: 700; padding: 2px 8px;
    background: var(--bg-secondary); border-radius: var(--r-full);
    color: var(--text-muted); font-family: var(--font-mono);
}

/* ===========================================
   SECTION COMMONS
   =========================================== */
.section { padding: var(--sp-4xl) 0; position: relative; }
.section-alt { background: var(--bg-secondary); }
.section-header { text-align: center; margin-bottom: var(--sp-3xl); }
.section-tag {
    display: inline-flex; align-items: center; gap: var(--sp-sm);
    font-family: var(--font-mono); font-size: 0.72rem;
    color: var(--text-accent); text-transform: uppercase;
    letter-spacing: 0.12em; font-weight: 600; margin-bottom: var(--sp-md);
    padding: 5px 14px; background: rgba(102,126,234,0.06);
    border-radius: var(--r-full); border: 1px solid rgba(102,126,234,0.12);
}
.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800; letter-spacing: -0.02em; margin-bottom: var(--sp-md); line-height: 1.2;
}
.section-desc { font-size: 0.95rem; color: var(--text-secondary); max-width: 500px; margin: 0 auto; }

/* ===========================================
   SKILLS CONTROLS
   =========================================== */
.skills-controls {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--sp-md); margin-bottom: var(--sp-2xl); flex-wrap: wrap;
}
.search-box { position: relative; max-width: 340px; width: 100%; }
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.search-input {
    width: 100%; padding: 11px 16px 11px 40px;
    background: var(--bg-secondary); border: 1px solid var(--border-subtle);
    border-radius: var(--r-full); color: var(--text-primary);
    font-size: 0.85rem; font-family: var(--font-primary); outline: none;
    transition: all var(--t-fast);
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus {
    border-color: var(--border-accent); background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(102,126,234,0.06);
}
.sub-tags { display: flex; gap: var(--sp-sm); flex-wrap: wrap; }
.sub-tag {
    padding: 6px 14px; border: 1px solid var(--border-subtle);
    background: var(--bg-primary); color: var(--text-secondary);
    border-radius: var(--r-full); font-size: 0.78rem; font-weight: 500;
    transition: all var(--t-fast);
}
.sub-tag:hover { border-color: var(--border-hover); color: var(--text-primary); }
.sub-tag.active { color: white; border-color: transparent; }
/* Per-persona active tag colors */
[data-active-persona="creator"] .sub-tag.active { background: var(--grad-creator); }
[data-active-persona="marketing"] .sub-tag.active { background: var(--grad-marketing); }
[data-active-persona="ops"] .sub-tag.active { background: var(--grad-ops); }

/* ===========================================
   SKILLS GRID
   =========================================== */
.skills-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--sp-lg);
}

/* ===========================================
   SKILL CARD v3 — light
   =========================================== */
.skill-card {
    position: relative; background: var(--bg-card);
    border: 1px solid var(--border-subtle); border-radius: var(--r-xl);
    padding: var(--sp-xl); transition: all var(--t-base); overflow: hidden;
}
.skill-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    opacity: 0; transition: opacity var(--t-fast);
}
.skill-card[data-persona="creator"]::before { background: var(--grad-creator); }
.skill-card[data-persona="marketing"]::before { background: var(--grad-marketing); }
.skill-card[data-persona="ops"]::before { background: var(--grad-ops); }
.skill-card:hover {
    border-color: var(--border-hover); transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}
.skill-card:hover::before { opacity: 1; }
.skill-card.hidden { display: none; }
.skill-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: var(--sp-md); }
.skill-icon {
    font-size: 1.8rem; width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--r-md); background: var(--bg-secondary);
}
.skill-badges { display: flex; gap: var(--sp-xs); align-items: center; }
.skill-badge {
    font-size: 0.62rem; font-weight: 600; padding: 3px 8px;
    border-radius: var(--r-full); font-family: var(--font-mono);
}
.badge-hot { background: rgba(245,87,108,0.08); color: #e0465c; border: 1px solid rgba(245,87,108,0.15); }
.badge-free { background: rgba(67,185,123,0.08); color: #2d9a64; border: 1px solid rgba(67,185,123,0.15); }
.badge-official { background: rgba(102,126,234,0.08); color: #5567c8; border: 1px solid rgba(102,126,234,0.15); }
.badge-new { background: rgba(168,85,247,0.08); color: #8b50e0; border: 1px solid rgba(168,85,247,0.15); }
.badge-verified { background: rgba(34,197,94,0.08); color: #15803d; border: 1px solid rgba(34,197,94,0.15); }
.skill-name { font-size: 1rem; font-weight: 700; margin-bottom: var(--sp-xs); line-height: 1.3; }
.skill-desc {
    font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6;
    margin-bottom: var(--sp-md); display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* Cost block removed — this is a Skills curation site, not pricing comparison */
.skill-tools { display: flex; gap: var(--sp-xs); flex-wrap: wrap; margin-bottom: var(--sp-md); }
.tool-tag {
    font-size: 0.68rem; color: var(--text-muted); padding: 3px 8px;
    background: var(--bg-secondary); border: 1px solid var(--border-subtle);
    border-radius: var(--r-full); font-weight: 500;
}
.skill-footer { display: flex; gap: var(--sp-sm); }
.skill-btn {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 14px; border-radius: var(--r-md); font-size: 0.78rem; font-weight: 600;
    transition: all var(--t-fast); border: none;
}
.skill-btn svg { flex-shrink: 0; }
.skill-btn-primary { background: #24292e; color: white; }
.skill-btn-primary:hover { background: #1a1e22; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.skill-btn-ghost { background: var(--bg-secondary); color: var(--text-secondary); border: 1px solid var(--border-subtle); }
.skill-btn-ghost:hover { border-color: var(--border-hover); color: var(--text-primary); }

/* ===========================================
   WORKFLOW SECTION
   =========================================== */
.workflow-track {
    padding: var(--sp-xl); background: var(--bg-card);
    border: 1px solid var(--border-subtle); border-radius: var(--r-xl);
    margin-bottom: var(--sp-lg); transition: all var(--t-base);
}
.workflow-track:hover { border-color: var(--border-hover); box-shadow: var(--shadow-card); }
.workflow-label {
    display: inline-flex; align-items: center; gap: var(--sp-sm);
    font-size: 0.68rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.1em; margin-bottom: var(--sp-md); font-family: var(--font-mono);
    padding: 3px 10px; border-radius: var(--r-full);
}
.workflow-label[data-persona="creator"] { color: var(--c-creator); background: var(--c-creator-light); }
.workflow-label[data-persona="marketing"] { color: var(--c-marketing); background: var(--c-marketing-light); }
.workflow-label[data-persona="ops"] { color: var(--c-ops); background: var(--c-ops-light); }
.workflow-title { font-size: 1.1rem; font-weight: 700; margin-bottom: var(--sp-xs); }
.workflow-desc { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: var(--sp-lg); }
.workflow-steps { display: flex; align-items: center; gap: 0; overflow-x: auto; padding-bottom: var(--sp-sm); }
.wf-step { display: flex; align-items: center; flex-shrink: 0; }
.wf-node {
    display: flex; align-items: center; gap: var(--sp-sm);
    padding: 8px var(--sp-md); background: var(--bg-secondary);
    border: 1px solid var(--border-subtle); border-radius: var(--r-md);
    font-size: 0.78rem; font-weight: 500; white-space: nowrap;
}
.wf-node-icon { font-size: 1rem; }
.wf-arrow { color: var(--text-muted); padding: 0 var(--sp-sm); font-size: 0.85rem; flex-shrink: 0; }
.workflow-cost-bar {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: var(--sp-md); padding-top: var(--sp-md);
    border-top: 1px solid var(--border-subtle); font-size: 0.75rem;
}
.wf-cost-label { color: var(--text-muted); }
.wf-cost-value { font-weight: 700; font-family: var(--font-mono); }
.wf-cost-ours { color: #2d9a64; }
.wf-cost-save {
    padding: 3px 8px; background: rgba(67,185,123,0.08);
    color: #2d9a64; border-radius: var(--r-full); font-size: 0.68rem; font-weight: 700;
}

/* ===========================================
   CTA SECTION
   =========================================== */
.cta-section { padding: var(--sp-4xl) 0; text-align: center; }
.cta-box {
    position: relative; padding: var(--sp-3xl) var(--sp-2xl);
    background: var(--bg-primary); border: 1px solid var(--border-subtle);
    border-radius: var(--r-2xl); overflow: hidden;
}
.cta-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-hero); }
.cta-glow {
    position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(102,126,234,0.04) 0%, transparent 70%);
    pointer-events: none;
}
.cta-title { font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 800; margin-bottom: var(--sp-md); position: relative; }
.cta-desc { font-size: 0.9rem; color: var(--text-secondary); max-width: 460px; margin: 0 auto var(--sp-xl); position: relative; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: var(--sp-md); position: relative; }
.btn-hero {
    display: inline-flex; align-items: center; gap: var(--sp-sm);
    padding: 13px 26px; border-radius: var(--r-full); font-weight: 600;
    font-size: 0.88rem; transition: all var(--t-base); border: none;
}
.btn-hero-primary {
    background: var(--grad-cta); color: white;
    box-shadow: 0 4px 20px rgba(102,126,234,0.25);
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(102,126,234,0.4); }
.btn-hero-ghost { background: var(--bg-secondary); color: var(--text-secondary); border: 1px solid var(--border-subtle); }
.btn-hero-ghost:hover { border-color: var(--border-hover); color: var(--text-primary); }

/* ===========================================
   FOOTER
   =========================================== */
.footer { padding: var(--sp-3xl) 0 var(--sp-xl); border-top: 1px solid var(--border-subtle); }
.footer-inner {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: var(--sp-2xl); margin-bottom: var(--sp-2xl);
}
.footer-brand-text { font-size: 1rem; font-weight: 700; margin-bottom: var(--sp-sm); }
.footer-tagline { font-size: 0.82rem; color: var(--text-muted); }
.footer-links { display: flex; gap: var(--sp-3xl); }
.footer-col h4 {
    font-size: 0.72rem; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--sp-md);
}
.footer-col a {
    display: block; font-size: 0.82rem; color: var(--text-secondary);
    margin-bottom: var(--sp-sm); transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: var(--sp-xl); border-top: 1px solid var(--border-subtle);
    font-size: 0.72rem; color: var(--text-muted);
}

/* ===========================================
   ANIMATIONS
   =========================================== */
.anim-fade { opacity: 0; animation: fadeIn 0.7s ease forwards; }
.anim-up { opacity: 0; transform: translateY(20px); animation: fadeUp 0.7s ease forwards; }
.anim-d1 { animation-delay: 0.1s; } .anim-d2 { animation-delay: 0.2s; }
.anim-d3 { animation-delay: 0.3s; } .anim-d4 { animation-delay: 0.4s; }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .nav-burger { display: flex; }
    .persona-grid { grid-template-columns: 1fr 1fr 1fr; gap: var(--sp-sm); }
    .persona-card { padding: var(--sp-md) var(--sp-sm); }
    .persona-icon { font-size: 1.6rem; }
    .persona-name { font-size: 0.82rem; }
    .skills-grid { grid-template-columns: 1fr; }
    .skills-controls { flex-direction: column; align-items: stretch; }
    .search-box { max-width: 100%; }
    .sub-tags { justify-content: center; }
    .workflow-steps { flex-direction: column; align-items: stretch; }
    .wf-step { flex-direction: column; }
    .wf-arrow { transform: rotate(90deg); }
    .footer-inner { flex-direction: column; gap: var(--sp-xl); }
    .footer-links { flex-direction: column; gap: var(--sp-xl); }
    .footer-bottom { flex-direction: column; gap: var(--sp-sm); text-align: center; }
    .cta-actions { flex-direction: column; }
    .hero { padding-top: var(--sp-4xl); min-height: auto; }
    .celeb-grid { grid-template-columns: 1fr; }
    .nav-actions { gap: var(--sp-sm); }
    .nav-actions .nav-cta { display: none; }
}

/* ===========================================
   NAV ACTIONS (Icons + CTA)
   =========================================== */
.nav-actions {
    display: flex; align-items: center; gap: var(--sp-sm);
}
.nav-text-btn {
    background: none; border: 1px solid var(--border-subtle); color: var(--text-secondary);
    padding: 6px 14px; border-radius: var(--r-full); font-size: 0.78rem; font-weight: 600;
    cursor: pointer; transition: all var(--t-fast); font-family: var(--font-primary);
}
.nav-text-btn:hover {
    color: var(--text-primary); border-color: var(--border-hover);
    background: var(--bg-secondary); transform: translateY(-1px);
}

/* ===========================================
   HOW TO USE SECTION
   =========================================== */
.how-section { padding: var(--sp-2xl) 0; }
.how-box {
    background: var(--bg-card); border: 2px solid var(--border-accent);
    border-radius: var(--r-xl); padding: var(--sp-xl) var(--sp-2xl);
}
.how-title {
    font-size: 1.2rem; font-weight: 800; text-align: center;
    margin-bottom: var(--sp-xl);
}
.how-steps {
    display: flex; align-items: flex-start; justify-content: center;
    gap: var(--sp-md); flex-wrap: wrap;
}
.how-step {
    display: flex; align-items: flex-start; gap: var(--sp-sm);
    max-width: 200px;
}
.how-step-num {
    width: 32px; height: 32px; flex-shrink: 0; display: flex;
    align-items: center; justify-content: center; border-radius: 50%;
    background: var(--grad-cta); color: white; font-weight: 800;
    font-size: 0.82rem;
}
.how-step-text strong { display: block; font-size: 0.82rem; margin-bottom: 4px; }
.how-step-text span { font-size: 0.72rem; color: var(--text-secondary); line-height: 1.5; }
.how-arrow {
    color: var(--text-muted); font-size: 1.2rem; margin-top: 6px;
    flex-shrink: 0;
}

/* ===========================================
   HERO ROLE LABEL
   =========================================== */
.hero-role-label {
    text-align: center; font-size: 0.88rem; color: var(--text-muted);
    font-weight: 600; margin-bottom: var(--sp-sm);
}

/* ===========================================
   SKILL USAGE BLOCK
   =========================================== */
.skill-usage {
    margin-bottom: var(--sp-md); padding: var(--sp-sm) var(--sp-md);
    background: rgba(102, 126, 234, 0.04); border: 1px solid rgba(102, 126, 234, 0.08);
    border-radius: var(--r-md);
}
.skill-usage-label {
    font-size: 0.68rem; font-weight: 700; color: var(--text-accent);
    margin-bottom: 4px;
}
.skill-usage-text {
    font-size: 0.72rem; color: var(--text-secondary); line-height: 1.6;
}

/* ===========================================
   COPY BUTTON
   =========================================== */
.skill-btn-copy {
    background: var(--bg-secondary); color: var(--text-secondary);
    border: 1px solid var(--border-subtle); cursor: pointer;
    font-family: var(--font-primary);
}
.skill-btn-copy:hover {
    border-color: var(--border-hover); color: var(--text-primary);
}
.skill-btn-copy.copied {
    background: #22c55e; color: white; border-color: #22c55e;
}

/* ===========================================
   NEWSLETTER
   =========================================== */
.newsletter-box {
    text-align: center; max-width: 520px; margin: 0 auto;
    padding: var(--sp-2xl); background: var(--bg-card);
    border: 1px solid var(--border-subtle); border-radius: var(--r-xl);
}
.newsletter-icon { font-size: 2.5rem; margin-bottom: var(--sp-md); }
.newsletter-title { font-size: 1.3rem; font-weight: 800; margin-bottom: var(--sp-sm); }
.newsletter-desc {
    font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6;
    margin-bottom: var(--sp-lg);
}
.newsletter-form {
    display: flex; gap: var(--sp-sm); margin-bottom: var(--sp-md);
}
.newsletter-input {
    flex: 1; padding: 12px 16px; border: 1px solid var(--border-subtle);
    border-radius: var(--r-md); font-size: 0.88rem; font-family: var(--font-primary);
    background: var(--bg-secondary); color: var(--text-primary);
    transition: border-color var(--t-fast);
}
.newsletter-input:focus {
    outline: none; border-color: var(--text-accent);
}
.newsletter-btn {
    padding: 12px 24px; background: var(--grad-cta); color: white;
    border: none; border-radius: var(--r-md); font-weight: 700;
    font-size: 0.88rem; cursor: pointer; transition: all var(--t-fast);
    font-family: var(--font-primary); white-space: nowrap;
}
.newsletter-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(102,126,234,0.3); }
.newsletter-note {
    font-size: 0.72rem; color: var(--text-muted);
}

/* ===========================================
   MODALS
   =========================================== */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000; opacity: 0; pointer-events: none;
    transition: opacity var(--t-base);
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-box {
    background: var(--bg-card); border-radius: var(--r-xl);
    padding: var(--sp-2xl); max-width: 420px; width: 90%;
    position: relative; transform: translateY(20px);
    transition: transform var(--t-base);
    box-shadow: 0 24px 48px rgba(0,0,0,0.15);
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-close {
    position: absolute; top: var(--sp-md); right: var(--sp-md);
    background: var(--bg-secondary); border: none; width: 32px; height: 32px;
    border-radius: 50%; font-size: 1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); transition: all var(--t-fast);
}
.modal-close:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.modal-icon { font-size: 2.5rem; margin-bottom: var(--sp-md); text-align: center; }
.modal-title { font-size: 1.2rem; font-weight: 800; margin-bottom: var(--sp-sm); text-align: center; }
.modal-desc {
    font-size: 0.85rem; color: var(--text-secondary); text-align: center;
    margin-bottom: var(--sp-lg); line-height: 1.6;
}
.modal-qr { margin-bottom: var(--sp-lg); text-align: center; }
.modal-qr-placeholder {
    padding: var(--sp-2xl); background: var(--bg-secondary);
    border: 2px dashed var(--border-subtle); border-radius: var(--r-lg);
    color: var(--text-muted); font-size: 0.85rem;
}
.modal-links {
    display: flex; flex-direction: column; gap: var(--sp-sm);
}
.modal-link-btn {
    display: flex; align-items: center; gap: var(--sp-sm);
    padding: 12px var(--sp-md); background: var(--bg-secondary);
    border: 1px solid var(--border-subtle); border-radius: var(--r-md);
    font-size: 0.85rem; font-weight: 600; color: var(--text-primary);
    transition: all var(--t-fast); text-decoration: none;
}
.modal-link-btn:hover { border-color: var(--border-hover); background: var(--bg-tertiary); }
.modal-wechat-row {
    display: flex; align-items: center; gap: var(--sp-sm);
    padding: 10px var(--sp-md); background: var(--bg-secondary);
    border: 1px solid var(--border-subtle); border-radius: var(--r-md);
    font-size: 0.85rem;
}
.modal-wechat-row code {
    font-family: var(--font-mono); font-weight: 600; color: var(--text-accent);
}
.copy-sm-btn {
    margin-left: auto; padding: 4px 10px; font-size: 0.72rem;
    background: var(--bg-tertiary); border: 1px solid var(--border-subtle);
    border-radius: var(--r-sm); cursor: pointer; font-weight: 600;
    color: var(--text-secondary); transition: all var(--t-fast);
    font-family: var(--font-primary);
}
.copy-sm-btn:hover { background: var(--text-accent); color: white; border-color: var(--text-accent); }

/* ===========================================
   COPY TOAST
   =========================================== */
.copy-toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
    background: #1a1a2e; color: white; padding: 12px 24px;
    border-radius: var(--r-full); font-size: 0.85rem; font-weight: 600;
    opacity: 0; pointer-events: none; transition: all 0.3s ease;
    z-index: 2000; box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.copy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===========================================
   CELEBRITY SKILLS
   =========================================== */
.celeb-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--sp-lg);
}
.celeb-card {
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: var(--r-xl); padding: var(--sp-xl);
    transition: all var(--t-base); position: relative;
}
.celeb-card:hover {
    border-color: var(--border-hover); transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
}
.celeb-header {
    display: flex; align-items: center; gap: var(--sp-md);
    margin-bottom: var(--sp-md);
}
.celeb-avatar {
    width: 48px; height: 48px; font-size: 1.8rem;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-secondary); border-radius: 50%;
}
.celeb-name { font-size: 1rem; font-weight: 700; }
.celeb-followers { font-size: 0.68rem; color: var(--text-muted); font-family: var(--font-mono); }
.celeb-title { font-size: 0.88rem; font-weight: 600; color: var(--text-accent); margin-bottom: var(--sp-sm); }
.celeb-desc { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: var(--sp-md); }
.celeb-source {
    font-size: 0.72rem; color: var(--text-muted);
    padding: 6px var(--sp-sm); background: var(--bg-secondary);
    border-radius: var(--r-sm); margin-bottom: var(--sp-md); display: inline-block;
}
.celeb-tools { display: flex; gap: var(--sp-xs); flex-wrap: wrap; margin-bottom: var(--sp-md); }
.celeb-actions { display: flex; gap: var(--sp-md); align-items: center; }
.celeb-link { font-size: 0.78rem; font-weight: 600; color: var(--text-accent); transition: color var(--t-fast); }
.celeb-link:hover { color: var(--text-primary); }
.celeb-x-link { color: var(--text-muted); }

/* ===========================================
   RESPONSIVE — add new components
   =========================================== */
@media (max-width: 768px) {
    .how-steps { flex-direction: column; align-items: center; }
    .how-step { max-width: 100%; }
    .how-arrow { transform: rotate(90deg); }
    .newsletter-form { flex-direction: column; }
    .modal-box { padding: var(--sp-xl); }
    .nav-text-btn { display: none; }
    .celeb-grid { grid-template-columns: 1fr; }
}