/* ============================================================
   赫源工作室官网样式
   与站点设计系统（style.css 的 CSS 变量）保持一致，叠加「工作室」气质：
   网格底纹 + 柔和光晕 + 等宽字体点缀
   ============================================================ */

.st-body {
    /* 本页独立的小徽标文字色，保证浅底/深底都有足够对比度 */
    --st-blue-ink: #1f5f9e;
    --st-green-ink: #0f7a52;
    --st-gold-ink: #8a5a00;
    --st-purple-ink: #4b3fc4;
    --st-glass: rgba(255, 255, 255, 0.66);
    --st-grid: rgba(74, 144, 226, 0.06);
    /* 本页正文较长，弱化文字也提到 4.5:1 以上 */
    --text-muted: #667085;
}
.dark-mode .st-body, .dark-mode.st-body {
    --st-blue-ink: #8ec0fb;
    --st-green-ink: #6ee7ab;
    --st-gold-ink: #ffca7a;
    --st-purple-ink: #b9aefc;
    --st-glass: rgba(26, 29, 42, 0.66);
    --st-grid: rgba(120, 170, 255, 0.06);
    --text-muted: #9aa1b8;
}
/* 站点可能给 body 挂 .bg-flow（简写会清掉 background-color），这里补回主题底色 */
body.st-body {
    background-color: var(--bg);
    background-image:
        radial-gradient(900px 460px at 8% -6%, rgba(74, 144, 226, 0.14), transparent 62%),
        radial-gradient(820px 420px at 96% 2%, rgba(139, 124, 240, 0.12), transparent 64%),
        linear-gradient(var(--st-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--st-grid) 1px, transparent 1px);
    background-size: auto, auto, 44px 44px, 44px 44px;
    background-attachment: fixed;
}
body.st-body.bg-flow {
    background-color: var(--bg);
    background-image:
        radial-gradient(900px 460px at 8% -6%, rgba(74, 144, 226, 0.14), transparent 62%),
        radial-gradient(820px 420px at 96% 2%, rgba(139, 124, 240, 0.12), transparent 64%),
        linear-gradient(var(--st-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--st-grid) 1px, transparent 1px);
    background-size: auto, auto, 44px 44px, 44px 44px;
    background-attachment: fixed;
    animation: none;
}

.st-wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.st-inner { max-width: 1000px; margin: 0 auto; }
.st-section { padding: 72px 0; position: relative; }
.st-section-alt {
    background: linear-gradient(180deg, transparent, rgba(74, 144, 226, 0.045) 16%, rgba(74, 144, 226, 0.045) 84%, transparent);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

/* ----- 标题区 ----- */
.st-head { text-align: center; max-width: 720px; margin: 0 auto 38px; }
.st-head h2 { font-size: 1.66rem; line-height: 1.35; }
.st-head-sub { margin-top: 12px; color: var(--text-secondary); font-size: 0.92rem; }
.st-head-icon {
    width: 50px; height: 50px; margin: 0 auto 15px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--primary-border); background: var(--primary-light); color: var(--primary);
}
.st-head-icon svg { width: 25px; height: 25px; }
.st-i-blue { background: var(--primary-light); color: var(--primary); border-color: var(--primary-border); }
.st-i-purple { background: var(--accent-light); color: var(--accent); border-color: rgba(139, 124, 240, 0.3); }
.st-i-green { background: var(--success-light); color: var(--success); border-color: var(--success-border); }
.st-i-gold { background: rgba(240, 180, 41, 0.14); color: var(--el-gold, #f0b429); border-color: rgba(240, 180, 41, 0.3); }

/* ============================================================
   Hero
   ============================================================ */
.st-hero { position: relative; padding: 76px 0 0; overflow: hidden; border-bottom: 1px solid var(--border-light); }
.st-hero-glow {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(520px 320px at 18% 22%, rgba(74, 144, 226, 0.18), transparent 70%),
        radial-gradient(520px 320px at 84% 34%, rgba(139, 124, 240, 0.16), transparent 70%);
    animation: stDrift 20s ease-in-out infinite alternate;
}
.st-hero-inner { position: relative; max-width: 900px; margin: 0 auto; padding: 0 22px; text-align: center; }
/* 工作室图标 */
.st-logo-wrap { margin: 18px 0 4px; display: flex; justify-content: center; }
.st-logo {
    width: 96px; height: 96px; border-radius: 26px; object-fit: cover;
    border: 1px solid var(--border); background: var(--surface);
    box-shadow: var(--shadow-lg);
}
.st-eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 0.78rem; font-weight: 600; color: var(--text-secondary);
    background: var(--st-glass); border: 1px solid var(--border);
    padding: 6px 15px; border-radius: 999px; backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
}
.st-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-light); animation: stPulse 2.6s ease-in-out infinite; }
.st-title { margin: 22px 0 8px; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.st-title-en {
    font-family: var(--font-mono); font-size: clamp(1.5rem, 4.6vw, 2.5rem); font-weight: 800;
    letter-spacing: 0.02em; color: var(--st-blue-ink);
}
.st-title-cn { font-size: clamp(1.6rem, 4.2vw, 2.4rem); font-weight: 800; letter-spacing: 0.06em; }
.st-slogan { font-size: clamp(1rem, 2.3vw, 1.24rem); font-weight: 600; color: var(--text); letter-spacing: 0.04em; margin-bottom: 16px; }
.st-sub { color: var(--text-secondary); font-size: 0.96rem; line-height: 1.9; }
.st-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 26px 0 12px; }
.st-btn-lg { padding: 11px 24px; font-size: 0.92rem; border-radius: 999px; }
.st-stats {
    position: relative; margin-top: 42px;
    display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center;
    padding: 20px 22px; border-top: 1px solid var(--border-light);
    background: var(--st-glass); backdrop-filter: blur(10px);
}
.st-stats span { font-size: 0.86rem; color: var(--text-secondary); }
.st-stats b { font-size: 1.14rem; color: var(--st-blue-ink); font-weight: 800; margin-right: 3px; }

/* ============================================================
   卡片 / 原则 / 作品
   ============================================================ */
.st-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.st-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 26px 24px; box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.st-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-border); }
.st-card-icon {
    width: 46px; height: 46px; border-radius: 14px; margin-bottom: 14px;
    display: flex; align-items: center; justify-content: center; border: 1px solid currentColor;
}
.st-card-icon svg { width: 22px; height: 22px; }
.st-card h3 { font-size: 1.04rem; margin-bottom: 10px; }
.st-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.85; }
.st-points { list-style: none; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border-light); }
.st-points li {
    font-size: 0.82rem; color: var(--text-secondary); padding-left: 16px; position: relative; line-height: 1.9;
}
.st-points li::before {
    content: ''; position: absolute; left: 0; top: 0.72em; width: 6px; height: 6px; border-radius: 50%;
    background: var(--primary); opacity: 0.65;
}

/* 主推作品 */
.st-feature-work {
    position: relative; overflow: hidden;
    background: var(--surface); border: 1px solid var(--primary-border);
    border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
    padding: 30px 30px 26px;
}
.st-fw-glow {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(420px 240px at 12% 0%, rgba(74, 144, 226, 0.16), transparent 70%),
        radial-gradient(420px 240px at 92% 12%, rgba(139, 124, 240, 0.14), transparent 70%);
}
.st-fw-body { position: relative; }
.st-fw-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.st-tag {
    font-size: 0.72rem; font-weight: 600; padding: 3px 10px; border-radius: 999px;
    background: var(--surface-hover); border: 1px solid var(--border); color: var(--text-secondary);
}
.st-tag-primary { background: var(--primary-light); color: var(--st-blue-ink); border-color: var(--primary-border); font-weight: 700; }
.st-feature-work h3 { font-size: 1.32rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.st-fw-en { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }
.st-fw-lead { margin-top: 6px; font-weight: 700; color: var(--st-blue-ink); letter-spacing: 0.04em; }
.st-fw-body p { margin-top: 10px; font-size: 0.9rem; color: var(--text-secondary); line-height: 1.95; }
.st-fw-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; }
.st-fw-meta span { display: inline-flex; align-items: center; gap: 7px; font-size: 0.8rem; color: var(--text-muted); }
.st-fw-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.st-fw-note { font-size: 0.78rem !important; color: var(--text-muted) !important; margin-top: 12px !important; }

/* 作品网格 */
.st-work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 22px; }
.st-work {
    display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 22px; box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.st-work:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--work, var(--primary-border)); }
.st-work-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.st-work-icon {
    width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    /* 基础回退（不支持 color-mix 的浏览器） */
    background: var(--surface-hover);
    border: 1px solid var(--border);
    color: var(--work, #4a90e2);
}
@supports (background: color-mix(in srgb, red, blue)) {
    .st-work-icon {
        background: color-mix(in srgb, var(--work, #4a90e2) 16%, transparent);
        border-color: color-mix(in srgb, var(--work, #4a90e2) 40%, transparent);
    }
}
.st-work-icon svg { width: 20px; height: 20px; }
.st-work h3 { font-size: 1rem; }
.st-work p { font-size: 0.86rem; color: var(--text-secondary); line-height: 1.85; }
.st-work-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 16px; }
.st-work-tags span {
    font-size: 0.7rem; padding: 2px 9px; border-radius: 6px;
    background: var(--surface-hover); border: 1px solid var(--border-light); color: var(--text-secondary);
}
.st-work-btn { margin-top: auto; align-self: flex-start; }
.st-work-btn svg { transform: rotate(180deg); }
.st-work-soon { opacity: 0.94; border-style: dashed; }

/* 原则 */
.st-principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.st-principle {
    position: relative; padding: 24px 22px; border-radius: var(--radius-lg);
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.st-principle-no { font-family: var(--font-mono); font-size: 1.9rem; font-weight: 800; color: var(--primary); opacity: 0.22; line-height: 1; }
.st-principle h3 { font-size: 1.02rem; margin: 8px 0 10px; }
.st-principle p { font-size: 0.87rem; color: var(--text-secondary); line-height: 1.9; }

.st-stack { margin-top: 30px; text-align: center; }
.st-stack h3 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.st-stack-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.st-stack-tags span {
    font-size: 0.8rem; padding: 5px 13px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border); color: var(--text-secondary);
    font-family: var(--font-mono);
}

/* ============================================================
   时间线 / 关于 / 联系
   ============================================================ */
.st-timeline { list-style: none; max-width: 780px; margin: 0 auto; position: relative; padding-left: 26px; }
.st-timeline::before {
    content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--accent), transparent);
    opacity: 0.35; border-radius: 2px;
}
.st-node { position: relative; padding: 0 0 26px 20px; }
.st-node::before {
    content: ''; position: absolute; left: -26px; top: 6px; width: 14px; height: 14px; border-radius: 50%;
    background: var(--surface); border: 3px solid var(--primary);
}
.st-node-now::before { border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-light); }
.st-node-year { font-family: var(--font-mono); font-size: 0.82rem; font-weight: 700; color: var(--st-blue-ink); }
.st-node-body { margin-top: 4px; }
.st-node-body h3 { font-size: 1rem; margin-bottom: 6px; }
.st-node-body p { font-size: 0.87rem; color: var(--text-secondary); line-height: 1.9; }

.st-about { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
.st-about-main {
    padding: 26px 26px 24px; border-radius: var(--radius-lg);
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.st-about-quote { font-size: 1.02rem; font-weight: 700; color: var(--text); line-height: 1.9; margin-bottom: 12px; }
.st-about-main p { font-size: 0.89rem; color: var(--text-secondary); line-height: 1.95; }
.st-about-main p + p { margin-top: 10px; }
.st-about-side { display: flex; flex-direction: column; gap: 14px; }
.st-members { display: flex; flex-direction: column; gap: 12px; }
.st-member {
    display: flex; gap: 14px; padding: 20px; border-radius: var(--radius-lg);
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.st-member-recruiting { border-style: dashed; }
.st-member-avatar {
    width: 52px; height: 52px; flex-shrink: 0; border-radius: 16px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-weight: 800; font-size: 1.1rem; color: #fff;
    background: linear-gradient(140deg, var(--primary), var(--accent));
}
.st-member-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-member-meta { flex: 1; min-width: 0; }
.st-member-meta strong { display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.st-member-badge {
    font-size: 0.66rem; font-weight: 700; padding: 1px 7px; border-radius: 999px;
    background: var(--primary-light); color: var(--st-blue-ink); border: 1px solid var(--primary-border);
}
.st-member-meta > span { display: block; font-size: 0.78rem; color: var(--text-muted); margin-top: 3px; }
.st-member-bio { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.75; margin-top: 7px; }
.st-member-mail { display: inline-block; font-size: 0.75rem; color: var(--st-blue-ink); margin-top: 7px; text-decoration: none; }
.st-member-mail:hover { text-decoration: underline; }
.st-member-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.st-member-tags span {
    font-size: 0.68rem; padding: 2px 8px; border-radius: 999px;
    background: var(--surface-hover); border: 1px solid var(--border-light); color: var(--text-secondary);
}
.st-about-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.st-about-facts > div {
    text-align: center; padding: 14px 8px; border-radius: var(--radius-sm);
    background: var(--surface); border: 1px solid var(--border);
}
.st-about-facts b { display: block; font-size: 1.3rem; color: var(--st-blue-ink); font-family: var(--font-mono); }
.st-about-facts span { font-size: 0.72rem; color: var(--text-muted); }

.st-contact {
    display: flex; gap: 22px; align-items: center; justify-content: space-between; flex-wrap: wrap;
    padding: 28px; border-radius: var(--radius-xl);
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.st-contact-text h2 { font-size: 1.34rem; margin-bottom: 8px; }
.st-contact-text p { font-size: 0.89rem; color: var(--text-secondary); line-height: 1.85; max-width: 520px; }
.st-contact-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.st-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 20px; }
.st-contact-card {
    padding: 22px; border-radius: var(--radius-lg);
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.st-contact-card h3 { font-size: 0.98rem; margin-bottom: 12px; }
.st-contact-card ul { list-style: none; }
.st-contact-card li {
    font-size: 0.85rem; color: var(--text-secondary); line-height: 1.85;
    padding-left: 16px; position: relative;
}
.st-contact-card li + li { margin-top: 6px; }
.st-contact-card li::before {
    content: ''; position: absolute; left: 0; top: 0.72em; width: 6px; height: 6px; border-radius: 50%;
    background: var(--primary); opacity: 0.6;
}
.st-contact-card a { color: var(--st-blue-ink); text-decoration: none; }
.st-contact-card a:hover { text-decoration: underline; }

/* ============================================================
   页脚
   ============================================================ */
.st-footer { margin-top: 20px; padding: 44px 0 24px; border-top: 1px solid var(--border); background: var(--st-glass); backdrop-filter: blur(8px); }
.st-footer-brand { text-align: center; margin-bottom: 26px; }
.st-footer-logo { font-family: var(--font-mono); font-size: 1.14rem; font-weight: 800; color: var(--st-blue-ink); }
.st-footer-brand p { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }
.st-footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 22px; }
.st-footer-col h4 { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.st-footer-col a { display: block; font-size: 0.85rem; color: var(--text-secondary); text-decoration: none; padding: 3px 0; transition: color var(--transition); }
.st-footer-col a:hover { color: var(--primary); }
.st-footer-legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border-light); }
.st-footer-legal p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.85; }
.st-footer .app-footer { margin-top: 20px; }

/* ============================================================
   进场动画：默认可见，仅在被观察器标记后播放一次淡入
   （隐藏态作为默认值会导致观察器不触发时内容永久消失）
   ============================================================ */
.st-reveal.visible { animation: stRevealIn 0.65s cubic-bezier(0.4, 0, 0.2, 1) both; }
.st-stats.visible { animation: stRevealIn 0.65s cubic-bezier(0.4, 0, 0.2, 1) both; }

@keyframes stRevealIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes stPulse { 0%, 100% { box-shadow: 0 0 0 4px var(--primary-light); } 50% { box-shadow: 0 0 0 8px transparent; } }
@keyframes stDrift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(-2%, -3%, 0) scale(1.05); }
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 900px) {
    .st-section { padding: 56px 0; }
    .st-about { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .st-wrap { padding: 0 16px; }
    .st-hero { padding-top: 52px; }
    .st-actions .btn { flex: 1 1 100%; }
    .st-head h2 { font-size: 1.4rem; }
    .st-feature-work { padding: 24px 20px 22px; }
    .st-feature-work h3 { font-size: 1.14rem; }
    .st-contact { padding: 22px 20px; }
    .st-about-facts { grid-template-columns: repeat(3, 1fr); }
    .st-footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .st-hero-glow, .st-dot { animation: none !important; }
    .st-reveal.visible, .st-stats.visible { animation: none; }
}
