/* ==========================================================================
   home.css — 首页视觉系统（Awwwards 级重设计）
   仅由 templates/index.html 引入
   ========================================================================== */

/* 首页使用自定义背景层，隐藏全站粒子画布 */
#particle-canvas { display: none !important; }

/* ====== 设计令牌 ====== */
.home-page {
    --hp-bg: #f6f7fb;
    --hp-surface: #ffffff;
    --hp-ink: #0d1220;
    --hp-ink-2: #33405a;
    --hp-muted: #6b7280;
    --hp-line: rgba(15, 23, 42, 0.08);
    --hp-accent: #2f6bff;
    --hp-accent-soft: rgba(47, 107, 255, 0.10);
    --hp-radius: 20px;
    --hp-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 12px 32px rgba(16, 24, 40, 0.06);
    --hp-shadow-hover: 0 2px 6px rgba(16, 24, 40, 0.06), 0 26px 52px rgba(16, 24, 40, 0.12);
    --hp-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.home-page a { text-decoration: none; }

/* 滚动后导航栏加深阴影（微交互） */
.mac-navbar.scrolled { box-shadow: 0 12px 32px rgba(30, 41, 59, 0.12); }

.home-page a:focus-visible {
    outline: 2px solid var(--hp-accent);
    outline-offset: 3px;
    border-radius: 12px;
}

.home-page ::selection { background: rgba(47, 107, 255, 0.18); }

/* ====== 背景层 ====== */
.hp-backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.hp-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px),
        linear-gradient(180deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(120% 78% at 50% 0%, #000 26%, transparent 76%);
    mask-image: radial-gradient(120% 78% at 50% 0%, #000 26%, transparent 76%);
}

.hp-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
}

.hp-orb--a {
    width: 520px; height: 520px;
    top: -170px; left: -130px;
    background: #7aa2ff; opacity: 0.45;
    animation: hpDrift 18s ease-in-out infinite alternate;
}
.hp-orb--b {
    width: 460px; height: 460px;
    top: -90px; right: -150px;
    background: #c4b5fd; opacity: 0.42;
    animation: hpDrift 22s ease-in-out infinite alternate-reverse;
}
.hp-orb--c {
    width: 520px; height: 520px;
    bottom: -220px; left: 28%;
    background: #a7f3d0; opacity: 0.3;
    animation: hpDrift 26s ease-in-out infinite alternate;
}

/* ====== HERO ====== */
.hp-hero {
    padding: clamp(28px, 5vw, 68px) 0 clamp(20px, 3vw, 40px);
}

.hp-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(24px, 4vw, 60px);
    align-items: center;
}

.hp-hero__copy {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.hp-hero__visual {
    position: relative;
    z-index: 0;
}

.hp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 15px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #41506b;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--hp-line);
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(16, 24, 40, 0.05);
    backdrop-filter: blur(8px);
}

.hp-eyebrow__dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
    animation: hpPulse 2.4s ease-in-out infinite;
}

.hp-title {
    margin: 0.32em 0 0.46em;
    max-width: 11em;
    font-size: clamp(2.2rem, 5.2vw, 4.1rem);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -0.018em;
    color: var(--hp-ink);
    text-wrap: balance;
}

.hp-title__line { display: block; }

.hp-title__line--accent {
    background: linear-gradient(100deg, #2f6bff 0%, #8b5cf6 52%, #06b6d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hp-lede {
    max-width: 34em;
    margin: 0 0 1.9em;
    font-size: clamp(0.98rem, 1.3vw, 1.1rem);
    line-height: 1.78;
    color: #4a5568;
    text-wrap: pretty;
}

.hp-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.3s var(--hp-ease), box-shadow 0.3s, background 0.3s, color 0.3s;
}

.hp-btn i { transition: transform 0.3s var(--hp-ease); }
.hp-btn:hover i { transform: translateX(3px); }

.hp-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #2f6bff, #5b8bff);
    box-shadow: 0 10px 24px rgba(47, 107, 255, 0.32);
}
.hp-btn--primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(47, 107, 255, 0.4);
}

.hp-btn--ghost {
    color: var(--hp-ink);
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--hp-line);
    backdrop-filter: blur(8px);
}
.hp-btn--ghost:hover {
    color: var(--hp-accent);
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(16, 24, 40, 0.1);
}

.hp-btn--light {
    color: #1b2a6b;
    background: #fff;
    box-shadow: 0 10px 24px rgba(9, 20, 60, 0.22);
}
.hp-btn--light:hover { color: #1b2a6b; transform: translateY(-2px); }

.hp-btn--sm { padding: 10px 16px; font-size: 0.86rem; border-radius: 12px; }

.hp-stats {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(18px, 3vw, 42px);
    margin: 2.45em 0 0;
    padding: 0;
}

.hp-stat {
    position: relative;
    min-width: 76px;
    padding-left: 13px;
}

.hp-stat::before {
    content: "";
    position: absolute;
    inset: 2px auto 2px 0;
    width: 2px;
    border-radius: 99px;
    background: var(--hp-accent);
    opacity: 0.28;
}

.hp-stat:first-child::before { opacity: 0.7; }
.hp-stat { display: flex; flex-direction: column; margin: 0; }
.hp-stat__num {
    order: 1;
    margin: 0;
    font-size: clamp(1.5rem, 2.4vw, 1.95rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--hp-ink);
    font-variant-numeric: tabular-nums;
}
.hp-stat__num--live { color: var(--hp-accent); }
.hp-stat__num.hp-count-updated { animation: hpCountFlash 0.55s var(--hp-ease); }
.hp-stat__label {
    order: 2;
    margin: 5px 0 0;
    font-size: 0.79rem;
    color: var(--hp-muted);
}

/* ====== HERO 视觉：轨道图 ====== */
.hp-hero__visual {
    display: grid;
    place-items: center;
}

.hp-orbit {
    position: relative;
    width: min(100%, 440px);
    aspect-ratio: 1 / 1;
}

.hp-orbit__svg { width: 100%; height: 100%; overflow: visible; }

.hp-orbit__ring,
.hp-orbit__spin { transform-origin: 240px 240px; }
.hp-orbit__ring--1 { animation: hpSpin 26s linear infinite; }
.hp-orbit__ring--2 { animation: hpSpin 40s linear infinite reverse; }
.hp-orbit__ring--3 { animation: hpSpin 62s linear infinite; }
.hp-orbit__spin { animation: hpSpin 22s linear infinite; }
.hp-orbit__spin--rev { animation: hpSpin 34s linear infinite reverse; }

.hp-orbit::after {
    content: "";
    position: absolute;
    inset: 37% 37%;
    border: 1px solid rgba(47, 107, 255, 0.24);
    border-radius: 50%;
    animation: hpCorePulse 3.4s ease-in-out infinite;
    pointer-events: none;
}

.hp-orbit__label {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -1px;
    fill: #1b2a6b;
}

.hp-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #243049;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--hp-line);
    border-radius: 999px;
    box-shadow: 0 14px 30px rgba(16, 24, 40, 0.13);
    backdrop-filter: blur(10px);
    animation: hpFloat 6.5s ease-in-out infinite;
    white-space: nowrap;
}
.hp-chip i { color: var(--hp-accent); }
.hp-chip--1 { top: 5%; left: -3%; animation-delay: -0.4s; }
.hp-chip--2 { top: 15%; right: -5%; animation-delay: -2.1s; }
.hp-chip--3 { bottom: 15%; left: -7%; animation-delay: -3.4s; }
.hp-chip--4 { bottom: 4%; right: 1%; animation-delay: -1.2s; }

/* ====== 区块通用 ====== */
.hp-section { padding: clamp(34px, 5vw, 70px) 0; }
.hp-section--last { padding-bottom: clamp(20px, 3.5vw, 44px); }

.hp-head {
    max-width: 640px;
    margin-bottom: clamp(22px, 3vw, 36px);
}

.hp-kicker {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hp-accent);
}

.hp-h2 {
    margin: 0 0 10px;
    font-size: clamp(1.5rem, 2.8vw, 2.05rem);
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -0.01em;
    color: var(--hp-ink);
    text-wrap: balance;
}

.hp-sub {
    margin: 0;
    font-size: 0.97rem;
    line-height: 1.65;
    color: var(--hp-muted);
}

/* ====== Bento 工具矩阵 ====== */
.hp-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(14px, 1.6vw, 22px);
}

.hp-group--a { grid-column: span 4; --g: #4f46e5; --gt: rgba(79, 70, 229, 0.10); }
.hp-group--b { grid-column: span 8; --g: #f59e0b; --gt: rgba(245, 158, 11, 0.13); }
.hp-group--c { grid-column: span 8; --g: #10b981; --gt: rgba(16, 185, 129, 0.12); }
.hp-group--d { grid-column: span 4; --g: #06b6d4; --gt: rgba(6, 182, 212, 0.12); }

.hp-group {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(18px, 2vw, 26px);
    background: var(--hp-surface);
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-radius);
    box-shadow: var(--hp-shadow);
    overflow: hidden;
    transition: transform 0.5s var(--hp-ease), box-shadow 0.5s, border-color 0.5s;
}

.hp-group::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--g), transparent 78%);
    opacity: 0.75;
}

.hp-group:hover {
    transform: translateY(-3px);
    border-color: rgba(47, 107, 255, 0.16);
    box-shadow: var(--hp-shadow-hover);
}

.hp-group--a {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 246, 255, 0.94));
}

.hp-group--a .hp-group__title { font-size: 1.14rem; }
.hp-group--a .hp-tool:first-child {
    background: rgba(79, 70, 229, 0.06);
    border-color: rgba(79, 70, 229, 0.12);
}

.hp-group--a .hp-tool:first-child .hp-tool__name { color: #3730a3; }

.hp-group__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: clamp(14px, 1.6vw, 20px);
}

.hp-group__icon {
    width: 44px; height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    color: var(--g);
    background: var(--gt);
    border-radius: 13px;
    transition: transform 0.4s var(--hp-ease);
}
.hp-group:hover .hp-group__icon { transform: rotate(-6deg) scale(1.06); }

.hp-group__title {
    margin: 0;
    font-size: 1.06rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--hp-ink);
}
.hp-group__desc {
    margin: 3px 0 0;
    font-size: 0.82rem;
    color: var(--hp-muted);
}

.hp-group__list { display: grid; gap: 8px; }
.hp-group__list--stack { grid-template-columns: 1fr; }
.hp-group__list--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hp-group--c .hp-group__list--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.hp-tool {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: inherit;
    overflow: hidden;
    transition: background 0.3s, border-color 0.3s, transform 0.3s var(--hp-ease);
}
.hp-tool:hover {
    background: #f7f9ff;
    border-color: rgba(47, 107, 255, 0.16);
    transform: translateY(-1px);
}

.hp-tool:focus-visible {
    outline: 2px solid var(--hp-accent);
    outline-offset: 2px;
}

.hp-tool__icon {
    width: 38px; height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    font-size: 1.05rem;
    color: var(--g);
    background: var(--gt);
    border-radius: 11px;
    transition: transform 0.3s var(--hp-ease);
}
.hp-tool:hover .hp-tool__icon { transform: scale(1.07) rotate(-3deg); }

.hp-tool__body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hp-tool__name { font-size: 0.92rem; font-weight: 600; color: var(--hp-ink); }
.hp-tool__desc { font-size: 0.78rem; line-height: 1.35; color: var(--hp-muted); }

.hp-tool__arrow {
    margin-left: auto;
    color: var(--hp-muted);
    opacity: 0;
    transform: translate(-4px, 4px);
    transition: opacity 0.3s, transform 0.3s var(--hp-ease), color 0.3s;
}
.hp-tool:hover .hp-tool__arrow {
    opacity: 1;
    transform: none;
    color: var(--hp-accent);
}

.task-badge {
    margin-left: auto;
    padding: 3px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
    color: #1d4ed8;
    background: #dbeafe;
    border-radius: 999px;
}

/* ====== 聚光微交互 ====== */
.hp-spot { position: relative; }
.hp-spot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(200px circle at var(--mx, 50%) var(--my, 50%), rgba(47, 107, 255, 0.10), transparent 65%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.hp-spot:hover::after { opacity: 1; }

/* ====== 项目进度 ====== */
.hp-project {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(14px, 1.6vw, 22px);
    align-items: stretch;
}

.hp-card {
    display: flex;
    flex-direction: column;
    padding: clamp(18px, 2vw, 26px);
    background: var(--hp-surface);
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-radius);
    box-shadow: var(--hp-shadow);
}

.hp-card--recent { min-height: 0; }

.hp-card__title {
    margin: 0 0 14px;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--hp-ink);
}

.hp-card__foot {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 18px;
}

.project-overview-header { margin-bottom: 14px; font-size: 0.86rem; }

.project-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.project-stat-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    background: #f7f9ff;
    border: 1px solid rgba(47, 107, 255, 0.10);
    border-radius: 14px;
    transition: transform 0.3s var(--hp-ease), box-shadow 0.3s, border-color 0.3s;
}
.project-stat-item:hover {
    transform: translateY(-2px);
    border-color: rgba(47, 107, 255, 0.2);
    box-shadow: 0 10px 22px rgba(47, 107, 255, 0.14);
}

.stat-label { font-size: 0.76rem; color: var(--hp-muted); }
.stat-value {
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #1b3a8b;
    font-variant-numeric: tabular-nums;
}

.project-recent-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 420px;
    padding-right: 4px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.project-recent-list::-webkit-scrollbar { width: 8px; }
.project-recent-list::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.14);
    border-radius: 999px;
}

.project-recent-item {
    padding: 12px 14px;
    background: #fafbff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-left: 3px solid var(--hp-accent);
    border-radius: 12px;
    transition: transform 0.3s var(--hp-ease), background 0.3s, box-shadow 0.3s;
}
.project-recent-item:hover {
    transform: translateX(3px);
    background: #fff;
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.07);
}

.project-recent-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.project-recent-type {
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #1f4aa8;
    background: #e9f2ff;
    border-radius: 999px;
}

.project-recent-status { margin-left: auto; font-size: 0.75rem; color: var(--hp-muted); }

.project-recent-title {
    margin-top: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--hp-ink);
}

.project-recent-desc {
    margin-top: 4px;
    font-size: 0.86rem;
    line-height: 1.55;
    color: #4b5563;
}

/* ====== AI 助手 & 快捷 ====== */
.hp-duo {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(14px, 1.6vw, 22px);
    align-items: stretch;
}

.hp-ai {
    position: relative;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: clamp(22px, 2.6vw, 34px);
    overflow: hidden;
    color: #eaf0ff;
    background: linear-gradient(135deg, #1b2a6b 0%, #2f6bff 56%, #6d5cf6 100%);
    border-radius: var(--hp-radius);
    box-shadow: 0 24px 50px rgba(27, 42, 107, 0.28);
}

.hp-ai__glow {
    position: absolute;
    top: -130px; right: -90px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.38), transparent 70%);
    pointer-events: none;
}

.hp-ai.hp-spot::after {
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.18), transparent 66%);
}

.hp-ai__icon {
    width: 52px; height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 15px;
}

.hp-ai__body { position: relative; }
.hp-ai__title { margin: 0 0 8px; font-size: 1.25rem; font-weight: 800; color: #fff; }
.hp-ai__desc {
    max-width: 36em;
    margin: 0 0 18px;
    font-size: 0.94rem;
    line-height: 1.65;
    color: rgba(234, 240, 255, 0.85);
}

.hp-quick {
    display: flex;
    flex-direction: column;
    padding: clamp(18px, 2vw, 26px);
    background: var(--hp-surface);
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-radius);
    box-shadow: var(--hp-shadow);
}

.hp-quick__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--hp-ink);
}
.hp-quick__title i { color: #f59e0b; }

.quick-link-list {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-content: start;
}

.quick-link-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    background: #fafbff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 13px;
    transition: transform 0.3s var(--hp-ease), background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.quick-link-item:hover {
    color: var(--hp-accent);
    background: #fff;
    border-color: rgba(47, 107, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.08);
}

.quick-link-item__icon {
    width: 32px; height: 32px;
    flex: 0 0 32px;
    display: grid;
    place-items: center;
    font-size: 0.95rem;
    color: var(--hp-accent);
    background: var(--hp-accent-soft);
    border-radius: 10px;
}

.quick-link-item__arrow {
    margin-left: auto;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.3s, transform 0.3s var(--hp-ease);
}
.quick-link-item:hover .quick-link-item__arrow { opacity: 1; transform: none; }

/* ====== 收尾 CTA ====== */
.hp-closing {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: clamp(26px, 3vw, 40px);
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff, #eef3ff);
    border: 1px solid var(--hp-line);
    border-radius: calc(var(--hp-radius) + 4px);
    box-shadow: var(--hp-shadow);
}

.hp-closing__text { position: relative; }
.hp-closing__text h2 {
    margin: 0 0 8px;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--hp-ink);
}
.hp-closing__text p { margin: 0; font-size: 0.95rem; color: var(--hp-muted); }

.hp-closing__actions {
    position: relative;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ====== 动效关键帧 ====== */
@keyframes hpSpin { to { transform: rotate(360deg); } }
@keyframes hpFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes hpDrift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(32px, 44px, 0) scale(1.08); }
}
@keyframes hpPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18); }
    50% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0.05); }
}
@keyframes hpCorePulse {
    0%, 100% { opacity: 0.32; transform: scale(0.88); }
    50% { opacity: 0.85; transform: scale(1.14); }
}
@keyframes hpCountFlash {
    0% { color: var(--hp-accent); transform: translateY(4px); opacity: 0.4; }
    100% { color: inherit; transform: none; opacity: 1; }
}
@keyframes hpFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

/* JS 可用时才启用入场动画，避免脚本失效导致内容不可见 */
html.hp-js .hp-anim {
    opacity: 0;
    animation: hpFadeUp 0.85s var(--hp-ease) forwards;
    animation-delay: var(--d, 0s);
}

html.hp-js .reveal {
    opacity: 0;
    /* 使用独立的 translate 属性，避免与卡片 hover 的 transform 冲突 */
    translate: 0 22px;
    transition: opacity 0.8s var(--hp-ease), translate 0.8s var(--hp-ease);
    transition-delay: var(--d, 0s);
    will-change: opacity, translate;
}
html.hp-js .reveal.is-in { opacity: 1; translate: none; }

/* ====== 响应式 ====== */
@media (max-width: 1100px) {
    .hp-group--c .hp-group__list--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
    .hp-hero__grid {
        grid-template-columns: 1fr;
        gap: clamp(18px, 4vw, 32px);
    }
    .hp-hero__visual { order: 2; max-width: 380px; margin: 0 auto; }
    .hp-hero__copy { order: 1; }

    .hp-bento { grid-template-columns: repeat(2, 1fr); }
    .hp-group--a, .hp-group--b, .hp-group--c, .hp-group--d { grid-column: auto; }
    .hp-group__list--grid,
    .hp-group--c .hp-group__list--grid { grid-template-columns: 1fr; }

    .hp-project, .hp-duo { grid-template-columns: 1fr; }
    .hp-card--recent { min-height: 0; }
}

@media (max-width: 767.98px) {
    .hp-hero { padding-top: 18px; }
    .hp-title { letter-spacing: -0.01em; }

    /* 移动端降低背景层开销 */
    .hp-orb { filter: blur(70px); }
    .hp-orb--c { display: none; }

    .hp-bento { grid-template-columns: 1fr; }

    .project-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .project-recent-list { max-height: 320px; }

    .hp-orbit { width: min(100%, 320px); }
    .hp-chip { padding: 7px 11px; font-size: 0.72rem; }
    .hp-chip--1 { top: 2%; left: 0; }
    .hp-chip--2 { top: 12%; right: 0; }
    .hp-chip--3 { bottom: 12%; left: 0; }
    .hp-chip--4 { bottom: 2%; right: 0; }

    .hp-closing { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 575.98px) {
    .hp-cta { flex-direction: column; align-items: stretch; }
    .hp-cta .hp-btn { justify-content: center; }
    .hp-stats { gap: 20px; }
    .quick-link-list { grid-template-columns: 1fr; }
    .hp-closing__actions { width: 100%; }
    .hp-closing__actions .hp-btn { flex: 1; justify-content: center; }
    .hp-ai { flex-direction: column; }
}

/* ====== 无障碍：尊重减少动效偏好 ====== */
@media (prefers-reduced-motion: reduce) {
    .hp-orb,
    .hp-orbit__ring,
    .hp-orbit__spin,
    .hp-orbit::after,
    .hp-chip,
    .hp-eyebrow__dot,
    .hp-stat__num.hp-count-updated { animation: none !important; }

    html.hp-js .hp-anim { opacity: 1 !important; animation: none !important; }
    html.hp-js .reveal { opacity: 1 !important; translate: none !important; transition: none; }

    .hp-btn, .hp-tool, .hp-group, .quick-link-item, .project-stat-item, .project-recent-item { transition: none; }
}