/* ==========================================================================
   RawPhotos · 首页现代化样式（蓝白主题 v3 · 版式重构）
   作用域：#homePage 内的所有模块
   ========================================================================== */

/* ---------- 主题变量与公共增强 ---------- */
#homePage {
    --hp-blue-50:  #eff6ff;
    --hp-blue-100: #dbeafe;
    --hp-blue-200: #bfdbfe;
    --hp-blue-300: #93c5fd;
    --hp-blue-400: #60a5fa;
    --hp-blue-500: #3b82f6;
    --hp-blue-600: #2563eb;
    --hp-blue-700: #1d4ed8;
    --hp-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.05);
    --hp-shadow-md: 0 6px 16px -8px rgba(37, 99, 235, 0.18), 0 4px 8px -4px rgba(15, 23, 42, 0.06);
    --hp-shadow-lg: 0 18px 40px -18px rgba(37, 99, 235, 0.28), 0 8px 16px -8px rgba(15, 23, 42, 0.08);
    --hp-card-border: 1px solid rgba(191, 219, 254, 0.65);
    --hp-card-bg: #ffffff;
    --hp-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --hp-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    isolation: isolate;
}

#homePage .home-shell {
    position: relative;
    z-index: 0;
}

/* ---------- 装饰背景（流动光斑 + 网格） ---------- */
#homePage .home-deco {
    position: absolute;
    inset: -40px -20px auto -20px;
    height: 720px;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}
#homePage .home-deco-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
    will-change: transform;
}
#homePage .home-deco-blob.blob-1 {
    width: 460px; height: 460px;
    top: -120px; left: -80px;
    background: radial-gradient(circle at 30% 30%, #93c5fd 0%, rgba(147, 197, 253, 0) 70%);
    animation: hpFloatA 18s ease-in-out infinite;
}
#homePage .home-deco-blob.blob-2 {
    width: 520px; height: 520px;
    top: 60px; right: -160px;
    background: radial-gradient(circle at 70% 30%, #bfdbfe 0%, rgba(191, 219, 254, 0) 70%);
    animation: hpFloatB 22s ease-in-out infinite;
}
#homePage .home-deco-blob.blob-3 {
    width: 380px; height: 380px;
    top: 360px; left: 35%;
    background: radial-gradient(circle at 50% 50%, #dbeafe 0%, rgba(219, 234, 254, 0) 70%);
    animation: hpFloatC 26s ease-in-out infinite;
}
#homePage .home-deco-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(37, 99, 235, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, #000 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, #000 30%, transparent 70%);
    opacity: 0.55;
    animation: hpGridDrift 28s linear infinite;
}
#homePage .home-deco-shimmer {
    position: absolute;
    inset: -25% -20%;
    background: linear-gradient(
        115deg,
        transparent 35%,
        rgba(255, 255, 255, 0.45) 48%,
        transparent 58%
    );
    opacity: 0.4;
    pointer-events: none;
    animation: hpShimmerSweep 16s ease-in-out infinite;
}
@keyframes hpGridDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(36px, 36px); }
}
@keyframes hpShimmerSweep {
    0%, 100% { transform: translateX(-18%) rotate(2deg); }
    50%      { transform: translateX(18%) rotate(-1deg); }
}
@keyframes hpFloatA {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(40px, 30px) scale(1.06); }
}
@keyframes hpFloatB {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-50px, 20px) scale(1.08); }
}
@keyframes hpFloatC {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(20px, -30px) scale(1.05); }
}

/* ---------- 通用版块标题 ---------- */
#homePage .section-heading {
    margin: 0 0 clamp(20px, 3vw, 28px);
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        'kicker line'
        'text line';
    gap: 6px 20px;
    align-items: end;
}
#homePage .section-kicker {
    grid-area: kicker;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hp-blue-600);
    opacity: 0.92;
    animation: hpKickerGlow 4s ease-in-out infinite;
}
@keyframes hpKickerGlow {
    0%, 100% { opacity: 0.88; filter: saturate(1); }
    50%      { opacity: 1; filter: saturate(1.25); }
}
#homePage .section-heading-text {
    grid-area: text;
    min-width: 0;
}
#homePage .section-heading-line {
    grid-area: line;
    width: min(160px, 22vw);
    height: 5px;
    border-radius: 99px;
    align-self: center;
    background: linear-gradient(90deg, var(--hp-blue-400), rgba(255, 255, 255, 0.95), var(--hp-blue-600));
    background-size: 200% 100%;
    box-shadow: 0 2px 14px -4px rgba(37, 99, 235, 0.55);
    animation: hpLineGradient 5s ease-in-out infinite;
}
@keyframes hpLineGradient {
    0%, 100% { background-position: 0% 50%; transform: scaleX(1); }
    50%      { background-position: 100% 50%; transform: scaleX(1.06); }
}
#homePage .section-heading-title {
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.4px;
    margin: 0 0 6px;
    line-height: 1.2;
    position: relative;
}
#homePage .section-heading-sub {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14.5px;
    line-height: 1.55;
    max-width: 42ch;
}

/* ---------- Hero 区 ---------- */
#homePage .home-hero {
    position: relative;
    margin: 0 0 var(--spacing-2xl);
    padding: clamp(28px, 4vw, 52px);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(248,250,255,0.98) 100%),
        radial-gradient(circle at 0% 0%, rgba(191, 219, 254, 0.55), transparent 52%),
        radial-gradient(circle at 100% 100%, rgba(147, 197, 253, 0.4), transparent 55%);
    border: 1px solid rgba(191, 219, 254, 0.65);
    box-shadow:
        0 24px 64px -28px rgba(37, 99, 235, 0.22),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    overflow: hidden;
}
#homePage .home-hero::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(
        125deg,
        rgba(96, 165, 250, 0.55),
        rgba(255, 255, 255, 0.15),
        rgba(37, 99, 235, 0.45),
        rgba(255, 255, 255, 0.2)
    );
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: hpBorderFlow 10s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.65;
    z-index: 0;
}
@keyframes hpBorderFlow {
    0%, 100% { background-position: 0% 40%; }
    50%      { background-position: 100% 60%; }
}
#homePage .home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.6) 45%, transparent 70%);
    transform: translateX(-100%);
    animation: hpShine 6s ease-in-out 1s infinite;
    pointer-events: none;
    z-index: 0;
}
@keyframes hpShine {
    0%   { transform: translateX(-100%); }
    35%  { transform: translateX(120%); }
    100% { transform: translateX(120%); }
}
#homePage .home-hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    position: relative;
    z-index: 1;
}
#homePage .home-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.18);
    color: var(--hp-blue-700);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    animation: hpFadeInUp 0.7s var(--hp-ease-out) both;
}
#homePage .home-hero-eyebrow-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--hp-blue-500);
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.6);
    animation: hpPulse 1.8s ease-in-out infinite;
}
@keyframes hpPulse {
    0%   { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.45); }
    70%  { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}
#homePage .home-hero-title {
    margin: 18px 0 14px;
    font-size: clamp(28px, 4.6vw, 48px);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -1px;
}
#homePage .home-hero-title-line {
    display: block;
    animation: hpFadeInUp 0.8s var(--hp-ease-out) both;
}
#homePage .home-hero-title-line:nth-child(1) { animation-delay: 0.05s; }
#homePage .home-hero-title-line:nth-child(2) { animation-delay: 0.18s; }
#homePage .home-hero-title-grad {
    background: linear-gradient(120deg, #2563eb 0%, #3b82f6 50%, #1d4ed8 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: hpFadeInUp 0.8s var(--hp-ease-out) 0.18s both, hpGradientShift 6s ease-in-out infinite;
}
@keyframes hpGradientShift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}
#homePage .home-hero-sub {
    margin: 0 0 26px;
    font-size: clamp(14px, 1.3vw, 16px);
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 560px;
    animation: hpFadeInUp 0.8s var(--hp-ease-out) 0.28s both;
}
#homePage .home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
    animation: hpFadeInUp 0.8s var(--hp-ease-out) 0.38s both;
}
#homePage .hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.25s var(--hp-ease-out), box-shadow 0.25s var(--hp-ease-out), background 0.25s ease, color 0.25s ease;
    border: none;
    position: relative;
    overflow: hidden;
}
#homePage .hero-btn-primary {
    background: linear-gradient(135deg, var(--hp-blue-500) 0%, var(--hp-blue-700) 100%);
    color: #fff;
    box-shadow: 0 12px 28px -12px rgba(37, 99, 235, 0.6), inset 0 1px 0 rgba(255,255,255,0.25);
}
#homePage .hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px -14px rgba(37, 99, 235, 0.7), inset 0 1px 0 rgba(255,255,255,0.3);
}
#homePage .hero-btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -120%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    transition: left 0.7s var(--hp-ease-out);
}
#homePage .hero-btn-primary:hover::before { left: 120%; }
#homePage .hero-btn-ghost {
    background: rgba(255,255,255,0.7);
    color: var(--hp-blue-700);
    border: 1.5px solid var(--hp-blue-200);
}
#homePage .hero-btn-ghost:hover {
    background: var(--hp-blue-50);
    border-color: var(--hp-blue-400);
    transform: translateY(-2px);
}
#homePage .hero-btn-icon {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,0.22);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700;
    transition: transform 0.3s var(--hp-ease-out);
}
#homePage .hero-btn-primary:hover .hero-btn-icon { transform: translateY(-2px); }
#homePage .hero-btn-arrow {
    transition: transform 0.3s var(--hp-ease-out);
}
#homePage .hero-btn-ghost:hover .hero-btn-arrow { transform: translateX(4px); }

#homePage .home-hero-pills {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
#homePage .home-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--hp-blue-700);
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(191, 219, 254, 0.85);
    box-shadow: 0 4px 14px -8px rgba(37, 99, 235, 0.35);
    transition: transform 0.35s var(--hp-ease-spring), border-color 0.25s ease, box-shadow 0.25s ease;
}
#homePage .home-hero-pill:nth-child(1) { animation: hpPillPop 0.65s var(--hp-ease-out) 0.5s both; }
#homePage .home-hero-pill:nth-child(2) { animation: hpPillPop 0.65s var(--hp-ease-out) 0.58s both; }
#homePage .home-hero-pill:nth-child(3) { animation: hpPillPop 0.65s var(--hp-ease-out) 0.66s both; }
@keyframes hpPillPop {
    from { opacity: 0; transform: translateY(10px) scale(0.94); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
#homePage .home-hero-pill:hover {
    transform: translateY(-2px);
    border-color: var(--hp-blue-300);
    box-shadow: 0 12px 24px -12px rgba(37, 99, 235, 0.4);
}
#homePage .home-hero-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hp-blue-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
    animation: hpMiniPulse 2.2s ease-in-out infinite;
}
#homePage .home-hero-pill:nth-child(2) .home-hero-pill-dot { animation-delay: 0.25s; }
#homePage .home-hero-pill:nth-child(3) .home-hero-pill-dot { animation-delay: 0.5s; }
@keyframes hpMiniPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.15); opacity: 0.85; }
}

#homePage .home-hero-meta {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.4vw, 28px);
    padding-top: 22px;
    margin-top: 4px;
    border-top: 1px dashed rgba(37, 99, 235, 0.18);
    animation: hpFadeInUp 0.8s var(--hp-ease-out) 0.5s both;
}
#homePage .home-hero-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
#homePage .home-hero-meta-num {
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 800;
    color: var(--hp-blue-700);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
#homePage .home-hero-meta-label {
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 0.2px;
}
#homePage .home-hero-meta-divider {
    width: 1px;
    height: 28px;
    background: linear-gradient(180deg, transparent, rgba(37, 99, 235, 0.25), transparent);
}

/* Hero 视觉装饰 */
#homePage .home-hero-visual {
    position: relative;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#homePage .hero-orbit {
    position: relative;
    width: 320px; height: 320px;
}
#homePage .hero-orbit-ring {
    position: absolute;
    top: 50%; left: 50%;
    border-radius: 50%;
    border: 1.5px dashed rgba(37, 99, 235, 0.25);
    transform: translate(-50%, -50%);
}
#homePage .hero-orbit-ring-outer { width: 320px; height: 320px; animation: hpSpin 26s linear infinite; }
#homePage .hero-orbit-ring-mid   { width: 230px; height: 230px; border-style: solid; border-color: rgba(37, 99, 235, 0.12); animation: hpSpin 22s linear reverse infinite; }
#homePage .hero-orbit-ring-inner { width: 150px; height: 150px; border-color: rgba(37, 99, 235, 0.35); animation: hpSpin 14s linear infinite; }
@keyframes hpSpin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
#homePage .hero-orbit-core {
    position: absolute;
    top: 50%; left: 50%;
    width: 96px; height: 96px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
    box-shadow: 0 18px 36px -10px rgba(37, 99, 235, 0.45),
                inset 0 1px 0 rgba(255,255,255,0.8);
    display: grid; place-items: center;
    animation: hpHeroFloat 4.5s ease-in-out infinite;
}
@keyframes hpHeroFloat {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50%      { transform: translate(-50%, -50%) translateY(-8px); }
}
#homePage .hero-plane {
    width: 56px; height: 56px;
    transform: rotate(-12deg);
    filter: drop-shadow(0 8px 14px rgba(37, 99, 235, 0.35));
    animation: hpPlaneTilt 4s ease-in-out infinite;
}
@keyframes hpPlaneTilt {
    0%, 100% { transform: rotate(-12deg); }
    50%      { transform: rotate(-2deg); }
}
#homePage .hero-orbit-dot {
    position: absolute;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
    top: 50%; left: 50%;
    transform-origin: 0 0;
}
#homePage .hero-orbit-dot.dot-a {
    transform: translate(-50%, -50%) translate(160px) translate(-7px, -7px);
    animation: hpOrbitA 12s linear infinite;
}
#homePage .hero-orbit-dot.dot-b {
    width: 10px; height: 10px;
    transform: translate(-50%, -50%) translate(115px) translate(-5px, -5px);
    animation: hpOrbitB 9s linear infinite reverse;
}
#homePage .hero-orbit-dot.dot-c {
    width: 8px; height: 8px;
    transform: translate(-50%, -50%) translate(75px) translate(-4px, -4px);
    animation: hpOrbitC 7s linear infinite;
}
@keyframes hpOrbitA {
    from { transform: translate(-50%, -50%) rotate(0deg) translate(160px) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg) translate(160px) rotate(-360deg); }
}
@keyframes hpOrbitB {
    from { transform: translate(-50%, -50%) rotate(0deg) translate(115px) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg) translate(115px) rotate(-360deg); }
}
@keyframes hpOrbitC {
    from { transform: translate(-50%, -50%) rotate(0deg) translate(75px) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg) translate(75px) rotate(-360deg); }
}

/* ---------- 精选轮播 ---------- */
#homePage .featured-section {
    margin-bottom: var(--spacing-2xl);
}
#homePage .featured-stage {
    position: relative;
    padding: clamp(12px, 2vw, 18px);
    border-radius: 26px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(239, 246, 255, 0.9) 100%);
    border: 1px solid rgba(191, 219, 254, 0.75);
    box-shadow:
        0 24px 56px -32px rgba(37, 99, 235, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.65) inset;
    overflow: visible;
}
#homePage .featured-stage-glow {
    position: absolute;
    inset: -20% -10% 40%;
    background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(96, 165, 250, 0.35), transparent 70%);
    pointer-events: none;
    animation: hpStageGlow 8s ease-in-out infinite;
    z-index: 0;
}
@keyframes hpStageGlow {
    0%, 100% { opacity: 0.55; transform: translateY(0) scale(1); }
    50%      { opacity: 0.85; transform: translateY(8px) scale(1.03); }
}
#homePage .featured-section.reveal:not(.is-visible) .featured-stage {
    opacity: 0;
    transform: translateY(26px) scale(0.99);
}
#homePage .featured-section.reveal.is-visible .featured-stage {
    animation: hpStageEnter 0.72s var(--hp-ease-out) 0.06s both;
}
@keyframes hpStageEnter {
    from { opacity: 0; transform: translateY(26px) scale(0.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
#homePage .featured-carousel {
    position: relative;
    z-index: 1;
    border-radius: 18px;
    overflow: hidden;
    /* 中性深灰：避免 Ken Burns 缩放或加载间隙露出时整栏偏「深蓝」 */
    background: linear-gradient(180deg, #18181b 0%, #27272a 100%);
    height: clamp(320px, 42vw, 480px);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow:
        0 28px 50px -28px rgba(15, 23, 42, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
#homePage .featured-carousel .carousel-container {
    position: relative;
    width: 100%; height: 100%;
}
#homePage .featured-carousel .carousel-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(1.06);
    transition:
        opacity 0.58s var(--hp-ease-out),
        transform 0.58s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    /* 裁剪子图 Ken Burns 放大，避免四角露出外层背景 */
    overflow: hidden;
    z-index: 0;
}
/* 切换方向：非当前张略微侧偏，与当前张交叉淡化形成滑动感（依赖 main.js 保留 DOM 仅切换 .active） */
#homePage .featured-carousel[data-slide-dir="next"] .carousel-item:not(.active) {
    transform: translate3d(22px, 0, 0) scale(1.05);
}
#homePage .featured-carousel[data-slide-dir="prev"] .carousel-item:not(.active) {
    transform: translate3d(-22px, 0, 0) scale(1.05);
}
#homePage .featured-carousel .carousel-item > a {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
}
#homePage .featured-carousel .carousel-item.active {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    pointer-events: auto;
    z-index: 2;
}
#homePage .featured-carousel .carousel-item.active img {
    animation: hpKenBurns 8s ease-out forwards;
}
#homePage .featured-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    display: block;
}
@keyframes hpKenBurns {
    0%   { transform: scale(1.02); }
    /* 略减小缩放，进一步减少边缘与蒙层叠加时的色偏感 */
    100% { transform: scale(1.05); }
}

/* 渐变蒙版 + 信息浮层 */
#homePage .featured-carousel .carousel-item::after {
    content: '';
    position: absolute;
    inset: 0;
    /* 底部压暗用中性黑，避免 slate 蓝让画面整体发冷/发蓝 */
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
    z-index: 2;
}

#homePage .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    color: var(--hp-blue-700);
    border: 1px solid rgba(255,255,255,0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    transition: transform 0.25s var(--hp-ease-spring), background 0.25s ease, color 0.25s ease;
    font-size: 0;
    animation: none;
}
#homePage .carousel-btn:hover {
    background: #fff;
    color: var(--hp-blue-600);
    transform: translateY(-50%) scale(1.08);
    animation: none;
}
#homePage .carousel-btn:active {
    transform: translateY(-50%) scale(0.96);
}
#homePage .carousel-btn.prev { left: 18px; }
#homePage .carousel-btn.next { right: 18px; }

#homePage .carousel-progress {
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.18);
    z-index: 3;
}
#homePage .carousel-progress > span {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #60a5fa, #ffffff);
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.6);
    transition: width 0.2s linear;
}
#homePage .carousel-indicators {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    gap: 8px;
    z-index: 3;
    padding: 6px 12px;
    background: rgba(15, 23, 42, 0.32);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
#homePage .carousel-indicators button {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: width 0.3s var(--hp-ease-out), background 0.3s ease;
}
#homePage .carousel-indicators button.active {
    width: 24px;
    background: #fff;
    border-radius: 999px;
}

/* ---------- 数据统计卡 ---------- */
#homePage .stats-section {
    margin-bottom: var(--spacing-2xl);
}
#homePage .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
@media (min-width: 1024px) {
    #homePage .stats-grid {
        grid-template-columns: 1.15fr 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 20px;
    }
    #homePage .stat-card--reviewers {
        grid-row: span 2;
        align-self: stretch;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 100%;
    }
    #homePage .stat-card--upload {
        grid-column: 2;
        grid-row: 1;
    }
    #homePage .stat-card--approved {
        grid-column: 3;
        grid-row: 1;
    }
    #homePage .stat-card--featured {
        grid-column: 2 / span 2;
        grid-row: 2;
    }
}
#homePage .stat-card {
    position: relative;
    background: var(--hp-card-bg);
    border: var(--hp-card-border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--hp-shadow-sm);
    overflow: hidden;
    transition:
        box-shadow 0.3s var(--hp-ease-out),
        border-color 0.3s ease,
        transform 0.35s var(--hp-ease-out);
    /* 重置外部 stat-card 多余的玻璃背景 */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    text-align: left;
}
#homePage .stats-section.reveal:not(.is-visible) .stat-card {
    opacity: 0;
    transform: translateY(22px);
}
#homePage .stats-section.reveal.is-visible .stat-card {
    animation: hpCardRise 0.62s var(--hp-ease-out) both;
}
#homePage .stats-section.reveal.is-visible .stat-card:nth-child(1) { animation-delay: 0.05s; }
#homePage .stats-section.reveal.is-visible .stat-card:nth-child(2) { animation-delay: 0.12s; }
#homePage .stats-section.reveal.is-visible .stat-card:nth-child(3) { animation-delay: 0.19s; }
#homePage .stats-section.reveal.is-visible .stat-card:nth-child(4) { animation-delay: 0.26s; }
@keyframes hpCardRise {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}
#homePage .stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--hp-blue-400), var(--hp-blue-600));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--hp-ease-out);
}
#homePage .stat-card::after {
    content: '';
    position: absolute;
    inset: auto -40% -60% auto;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18), transparent 65%);
    border-radius: 50%;
    transform: scale(0.6);
    opacity: 0;
    transition: transform 0.6s var(--hp-ease-out), opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}
#homePage .stat-card > * { position: relative; z-index: 1; }
#homePage .stat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(96, 165, 250, 0.6);
    box-shadow: var(--hp-shadow-lg);
}
#homePage .stat-card:hover::before { transform: scaleX(1); }
#homePage .stat-card:hover::after  { transform: scale(1); opacity: 1; }
#homePage .stat-icon {
    width: 44px; height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--hp-blue-50), var(--hp-blue-100));
    color: var(--hp-blue-600);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.1);
    transition: transform 0.4s var(--hp-ease-spring);
}
#homePage .stat-card:hover .stat-icon {
    transform: translateY(-2px) rotate(-6deg);
}
#homePage .stat-card--reviewers .stat-icon { color: #2563eb; }
#homePage .stat-card--upload    .stat-icon { color: #1d4ed8; }
#homePage .stat-card--approved  .stat-icon { color: #0284c7; background: linear-gradient(135deg, #e0f2fe, #bae6fd); }
#homePage .stat-card--featured  .stat-icon { color: #1d4ed8; background: linear-gradient(135deg, #eff6ff, #bfdbfe); }

#homePage .stat-card .stat-num {
    font-size: clamp(28px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    background: linear-gradient(135deg, #1e293b 0%, #2563eb 120%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 6px;
    font-variant-numeric: tabular-nums;
    /* 关闭旧版 .stat-card h3 上的 countUp 动画，由 JS count-up 接管 */
    animation: none !important;
}
#homePage .stat-card .stat-label {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    margin: 0;
}

/* ---------- 排行榜 ---------- */
#homePage .leaderboard-section {
    margin-bottom: var(--spacing-2xl);
}
#homePage .leaderboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
#homePage .leaderboard-section.reveal:not(.is-visible) .leaderboard-card {
    opacity: 0;
    transform: translateY(20px);
}
#homePage .leaderboard-section.reveal.is-visible .leaderboard-card {
    animation: hpCardRise 0.58s var(--hp-ease-out) both;
}
#homePage .leaderboard-section.reveal.is-visible .leaderboard-card:nth-child(1) { animation-delay: 0.06s; }
#homePage .leaderboard-section.reveal.is-visible .leaderboard-card:nth-child(2) { animation-delay: 0.14s; }
#homePage .leaderboard-section.reveal.is-visible .leaderboard-card:nth-child(3) { animation-delay: 0.22s; }
#homePage .leaderboard-card {
    position: relative;
    background: var(--hp-card-bg);
    border: var(--hp-card-border);
    border-radius: 20px;
    padding: 22px;
    box-shadow: var(--hp-shadow-sm);
    overflow: hidden;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: transform 0.3s var(--hp-ease-out), box-shadow 0.3s var(--hp-ease-out);
    flex: unset;
    min-width: 0;
}
#homePage .leaderboard-card::after { display: none; }
#homePage .leaderboard-card::before {
    content: '';
    position: absolute;
    top: -1px; left: 22px; right: 22px;
    height: 3px;
    background: linear-gradient(90deg, var(--hp-blue-400), var(--hp-blue-600));
    border-radius: 0 0 4px 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
#homePage .leaderboard-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hp-shadow-lg);
}
#homePage .leaderboard-card:hover::before { opacity: 1; }
#homePage .leaderboard-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
#homePage .leaderboard-card-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--hp-blue-50), var(--hp-blue-100));
    color: var(--hp-blue-600);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.1);
}
#homePage .leaderboard-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}
#homePage .leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
#homePage .leaderboard-item {
    display: grid;
    grid-template-columns: 36px 44px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--hp-blue-50);
    border: 1px solid rgba(191, 219, 254, 0.6);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: transform 0.25s var(--hp-ease-out), background 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: hpFadeInUp 0.5s var(--hp-ease-out) both;
}
#homePage .leaderboard-list .leaderboard-item:nth-child(1) { animation-delay: 0.05s; }
#homePage .leaderboard-list .leaderboard-item:nth-child(2) { animation-delay: 0.10s; }
#homePage .leaderboard-list .leaderboard-item:nth-child(3) { animation-delay: 0.15s; }
#homePage .leaderboard-list .leaderboard-item:nth-child(4) { animation-delay: 0.20s; }
#homePage .leaderboard-list .leaderboard-item:nth-child(5) { animation-delay: 0.25s; }
#homePage .leaderboard-item::after { display: none; }
#homePage .leaderboard-item:hover {
    transform: translateX(4px);
    background: #fff;
    border-color: var(--hp-blue-300);
    box-shadow: 0 8px 20px -12px rgba(37, 99, 235, 0.35);
}
#homePage .leaderboard-rank {
    width: 32px; height: 32px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 13px;
    background: #fff;
    color: var(--text-secondary);
    border: 1px solid var(--hp-blue-100);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
#homePage .leaderboard-rank .medal { font-size: 11px; }
#homePage .leaderboard-rank.gold {
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    color: #78350f; border: none;
    box-shadow: 0 4px 10px -4px rgba(245, 158, 11, 0.55);
}
#homePage .leaderboard-rank.silver {
    background: linear-gradient(135deg, #e5e7eb, #9ca3af);
    color: #1f2937; border: none;
    box-shadow: 0 4px 10px -4px rgba(156, 163, 175, 0.55);
}
#homePage .leaderboard-rank.bronze {
    background: linear-gradient(135deg, #fed7aa, #c2410c);
    color: #ffffff; border: none;
    box-shadow: 0 4px 10px -4px rgba(194, 65, 12, 0.55);
}
#homePage .leaderboard-avatar-wrap {
    position: relative;
    width: 44px; height: 44px;
    justify-self: center;
}
#homePage .leaderboard-avatar,
#homePage .leaderboard-item img.leaderboard-avatar {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 4px 8px -3px rgba(15, 23, 42, 0.18);
    object-fit: cover;
    display: block;
}
#homePage .leaderboard-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
#homePage .leaderboard-username {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#homePage .leaderboard-count {
    font-size: 12.5px;
    color: var(--hp-blue-700);
    font-weight: 600;
}

/* ---------- 最新作品 ---------- */
#homePage .latest-works-section {
    margin-bottom: var(--spacing-2xl);
}
#homePage .home-latest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
#homePage .home-latest-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: var(--hp-card-bg);
    border: var(--hp-card-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--hp-shadow-sm);
    transition: transform 0.3s var(--hp-ease-out), box-shadow 0.3s var(--hp-ease-out), border-color 0.25s ease;
}
#homePage .home-latest-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hp-shadow-lg);
    border-color: rgba(96, 165, 250, 0.55);
}
#homePage .home-latest-card:focus-visible {
    outline: 2px solid var(--hp-blue-500);
    outline-offset: 3px;
}
#homePage .home-latest-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(180deg, var(--hp-blue-50) 0%, #ffffff 100%);
    overflow: hidden;
}
#homePage .home-latest-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s var(--hp-ease-out);
}
#homePage .home-latest-card:hover .home-latest-card-media img {
    transform: scale(1.04);
}
#homePage .home-latest-card-caption {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-height: 92px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, #f8fbff 100%);
    border-top: 1px solid rgba(191, 219, 254, 0.5);
}
#homePage .home-latest-card-title {
    font-size: clamp(16px, 1.45vw, 19px);
    font-weight: 800;
    line-height: 1.35;
    color: var(--text-primary);
    letter-spacing: -0.25px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
#homePage .home-latest-card-user {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--hp-blue-700);
    margin-top: auto;
    padding-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#homePage .home-latest-grid > .loading,
#homePage .home-latest-grid > .empty-state {
    grid-column: 1 / -1;
    justify-self: stretch;
    text-align: center;
    padding: 28px 16px;
}

/* ---------- 关于 RawPhotos ---------- */
#homePage .about-section {
    margin-bottom: var(--spacing-2xl);
}
#homePage .about-card {
    background: var(--hp-card-bg);
    border: var(--hp-card-border);
    border-radius: 24px;
    padding: clamp(20px, 3vw, 32px);
    box-shadow: var(--hp-shadow-md);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: hidden;
}
#homePage .about-section.reveal:not(.is-visible) .about-card {
    opacity: 0;
    transform: translateY(22px);
}
#homePage .about-section.reveal.is-visible .about-card {
    animation: hpCardRise 0.68s var(--hp-ease-out) 0.06s both;
}
#homePage .about-card::after { display: none; }
#homePage .about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(16px, 3vw, 36px);
    align-items: stretch;
    margin-bottom: 24px;
}
#homePage .about-subtitle {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
#homePage .about-subtitle::before {
    content: '';
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--hp-blue-400), var(--hp-blue-600));
}

/* 时间线 */
#homePage .timeline-container {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border: 1px solid var(--hp-blue-100);
    border-radius: 18px;
    padding: 22px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
#homePage .timeline {
    position: relative;
    padding-left: 28px;
}
#homePage .timeline::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: linear-gradient(180deg, var(--hp-blue-500) 0%, var(--hp-blue-300) 60%, transparent 100%);
    border-radius: 2px;
}
#homePage .timeline-item {
    position: relative;
    padding: 10px 14px 10px 14px;
    margin-bottom: 14px;
    background: #fff;
    border: 1px solid rgba(191, 219, 254, 0.6);
    border-radius: 12px;
    transition: transform 0.25s var(--hp-ease-out), box-shadow 0.25s var(--hp-ease-out), border-color 0.25s ease;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
#homePage .timeline-item:last-child { margin-bottom: 0; }
#homePage .timeline-item:hover {
    transform: translateX(4px);
    border-color: var(--hp-blue-300);
    box-shadow: 0 6px 20px -10px rgba(37, 99, 235, 0.35);
}
#homePage .timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 50%;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--hp-blue-500);
    border: 3px solid #fff;
    transform: translateY(-50%);
    box-shadow: 0 0 0 2px var(--hp-blue-200), 0 0 0 0 rgba(59, 130, 246, 0.5);
    animation: hpDotPulse 2.4s ease-in-out infinite;
}
@keyframes hpDotPulse {
    0%, 100% { box-shadow: 0 0 0 2px var(--hp-blue-200), 0 0 0 0 rgba(59, 130, 246, 0); }
    50%      { box-shadow: 0 0 0 2px var(--hp-blue-200), 0 0 0 8px rgba(59, 130, 246, 0); }
    25%      { box-shadow: 0 0 0 2px var(--hp-blue-200), 0 0 0 0 rgba(59, 130, 246, 0.45); }
}
#homePage .timeline-item:nth-child(2)::before { animation-delay: 0.2s; }
#homePage .timeline-item:nth-child(3)::before { animation-delay: 0.4s; }
#homePage .timeline-item:nth-child(4)::before { animation-delay: 0.6s; }
#homePage .timeline-date {
    font-size: 13px;
    font-weight: 700;
    color: var(--hp-blue-700);
    margin-bottom: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
#homePage .timeline-date::before { content: '✈'; font-size: 12px; }
#homePage .timeline-content {
    font-size: 14.5px;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.55;
}

/* 正计时 */
#homePage .countup-container {
    background:
        radial-gradient(circle at 100% 0%, rgba(191, 219, 254, 0.5), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
    border: 1px solid var(--hp-blue-100);
    border-radius: 18px;
    padding: 22px;
    text-align: center;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#homePage .countup-container .about-subtitle {
    margin-bottom: 18px;
    justify-content: flex-start;
}
#homePage .countup-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
#homePage .countup-item {
    background: linear-gradient(135deg, var(--hp-blue-600) 0%, var(--hp-blue-500) 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 16px;
    min-width: 72px;
    box-shadow: 0 12px 24px -12px rgba(37, 99, 235, 0.55), inset 0 1px 0 rgba(255,255,255,0.3);
    transition: transform 0.3s var(--hp-ease-out);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    position: relative;
    overflow: hidden;
}
#homePage .countup-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0) 50%);
    pointer-events: none;
}
#homePage .countup-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 32px -16px rgba(37, 99, 235, 0.65), inset 0 1px 0 rgba(255,255,255,0.3);
}
#homePage .countup-value {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
}
#homePage .countup-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    letter-spacing: 1px;
    text-transform: uppercase;
}
#homePage .countup-separator {
    font-size: 22px;
    font-weight: 800;
    color: var(--hp-blue-500);
    opacity: 0.6;
    margin: 0 2px;
    animation: hpBlink 1s step-end infinite;
}
@keyframes hpBlink {
    50% { opacity: 0.18; }
}
#homePage .countup-start-date {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 4px;
}

/* 感谢 */
#homePage .thanks-container {
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    border: 1px dashed var(--hp-blue-200);
    border-radius: 18px;
    padding: 22px;
    text-align: center;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
#homePage .thanks-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
}
#homePage .thanks-item {
    background: #fff;
    border: 1px solid var(--hp-blue-200);
    border-radius: 999px;
    padding: 8px 16px;
    color: var(--hp-blue-700);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px -8px rgba(37, 99, 235, 0.45);
    transition: transform 0.25s var(--hp-ease-spring), background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    position: relative;
    overflow: hidden;
}
#homePage .thanks-item::before {
    content: '✦ ';
    color: var(--hp-blue-500);
    margin-right: 4px;
}
#homePage .thanks-item:hover {
    transform: translateY(-3px) scale(1.04);
    background: linear-gradient(135deg, var(--hp-blue-500), var(--hp-blue-700));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 12px 24px -12px rgba(37, 99, 235, 0.6);
}
#homePage .thanks-item:hover::before { color: #fff; }

/* ---------- Reveal 动画 ---------- */
#homePage .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--hp-ease-out), transform 0.7s var(--hp-ease-out);
    will-change: opacity, transform;
}
#homePage .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes hpFadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 主导航：滑动高亮与指示条见 style.css (.bottom-nav-slider) ---------- */

/* ---------- Header logo：Apple 风格无动画 ---------- */
.header .logo {
    animation: none !important;
    background-size: auto;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    #homePage .stats-grid          { grid-template-columns: repeat(2, 1fr); }
    #homePage .leaderboard-grid    { grid-template-columns: 1fr; }
    #homePage .home-hero-inner     { grid-template-columns: 1fr; }
    #homePage .home-hero-visual    { height: 260px; order: -1; }
    #homePage .hero-orbit          { width: 260px; height: 260px; }
    #homePage .hero-orbit-ring-outer { width: 260px; height: 260px; }
    #homePage .hero-orbit-ring-mid   { width: 180px; height: 180px; }
    #homePage .hero-orbit-ring-inner { width: 110px; height: 110px; }
    #homePage .hero-orbit-dot.dot-a {
        animation-name: hpOrbitA1024;
    }
    @keyframes hpOrbitA1024 {
        from { transform: translate(-50%, -50%) rotate(0deg) translate(130px) rotate(0deg); }
        to   { transform: translate(-50%, -50%) rotate(360deg) translate(130px) rotate(-360deg); }
    }
    #homePage .hero-orbit-dot.dot-b { animation-name: hpOrbitB1024; }
    @keyframes hpOrbitB1024 {
        from { transform: translate(-50%, -50%) rotate(0deg) translate(90px) rotate(0deg); }
        to   { transform: translate(-50%, -50%) rotate(360deg) translate(90px) rotate(-360deg); }
    }
    #homePage .hero-orbit-dot.dot-c { animation-name: hpOrbitC1024; }
    @keyframes hpOrbitC1024 {
        from { transform: translate(-50%, -50%) rotate(0deg) translate(55px) rotate(0deg); }
        to   { transform: translate(-50%, -50%) rotate(360deg) translate(55px) rotate(-360deg); }
    }
    #homePage .about-grid          { grid-template-columns: 1fr; }
    #homePage .home-latest-grid    { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    /* 固定底栏药丸占用视口底缘：为 Hero 统计条等区域留白，避免首屏与导航重叠 */
    #homePage .home-hero {
        padding-bottom: calc(clamp(28px, 4vw, 52px) + 102px + env(safe-area-inset-bottom, 16px));
    }
}

@media (max-width: 1023px) and (min-width: 641px) {
    #homePage .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    #homePage .section-heading {
        grid-template-columns: 1fr;
        grid-template-areas:
            'kicker'
            'text'
            'line';
        gap: 8px;
    }
    #homePage .section-heading-line {
        width: 100%;
        max-width: 220px;
        justify-self: start;
        height: 4px;
    }
    #homePage .home-hero-pills {
        gap: 8px;
    }
    #homePage .home-hero-pill {
        font-size: 12px;
        padding: 7px 12px;
    }
    #homePage .home-hero {
        padding: 22px;
        padding-bottom: calc(22px + 102px + env(safe-area-inset-bottom, 16px));
        border-radius: 22px;
    }
    #homePage .home-hero-eyebrow {
        font-size: 12px;
        padding: 5px 12px;
    }
    #homePage .home-hero-title {
        font-size: 30px;
        margin: 14px 0 10px;
    }
    #homePage .home-hero-sub {
        font-size: 14px;
        margin-bottom: 20px;
    }
    #homePage .home-hero-actions {
        flex-direction: column;
    }
    #homePage .hero-btn {
        width: 100%;
        justify-content: center;
    }
    #homePage .home-hero-meta {
        gap: 14px;
        padding-top: 16px;
    }
    #homePage .home-hero-visual { height: 220px; }
    #homePage .hero-orbit       { width: 220px; height: 220px; }
    #homePage .hero-orbit-ring-outer { width: 220px; height: 220px; }
    #homePage .hero-orbit-ring-mid   { width: 150px; height: 150px; }
    #homePage .hero-orbit-ring-inner { width: 90px; height: 90px; }
    #homePage .hero-orbit-core { width: 78px; height: 78px; }
    #homePage .hero-plane { width: 44px; height: 44px; }

    #homePage .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    #homePage .stat-card { padding: 18px; border-radius: 16px; }
    #homePage .stat-icon { width: 38px; height: 38px; margin-bottom: 10px; border-radius: 12px; }
    #homePage .stat-card .stat-num { font-size: 24px; }

    #homePage .featured-carousel { height: 280px; border-radius: 18px; }
    #homePage .carousel-btn { width: 38px; height: 38px; }
    #homePage .carousel-btn.prev { left: 10px; }
    #homePage .carousel-btn.next { right: 10px; }

    #homePage .leaderboard-card { padding: 18px; border-radius: 18px; }
    #homePage .leaderboard-item {
        grid-template-columns: 30px 40px 1fr;
        gap: 10px;
        padding: 8px 10px;
    }
    #homePage .leaderboard-rank { width: 28px; height: 28px; font-size: 12px; }
    #homePage .leaderboard-avatar,
    #homePage .leaderboard-item img.leaderboard-avatar {
        width: 40px !important; height: 40px !important;
    }
    #homePage .leaderboard-username { font-size: 13.5px; }
    #homePage .leaderboard-count    { font-size: 12px; }

    #homePage .home-latest-grid { grid-template-columns: 1fr; gap: 14px; }
    #homePage .home-latest-card { border-radius: 16px; }
    #homePage .home-latest-card-caption { min-height: 80px; padding: 14px 14px 16px; }
    #homePage .home-latest-card-title { font-size: 16px; }

    #homePage .countup-item { padding: 12px 12px; min-width: 62px; }
    #homePage .countup-value { font-size: 22px; }
    #homePage .countup-label { font-size: 10px; }
}

/* ---------- 深色模式（与页面底色统一，卡片用半透明玻璃避免「外深内浅」割裂） ---------- */
html.theme-dark #homePage,
body.theme-dark #homePage {
    --hp-card-bg: rgba(30, 41, 59, 0.42);
    --hp-card-border: 1px solid rgba(148, 163, 184, 0.14);
    --hp-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.28), 0 1px 3px rgba(0, 0, 0, 0.18);
    --hp-shadow-md: 0 6px 16px -8px rgba(0, 0, 0, 0.38), 0 4px 8px -4px rgba(0, 0, 0, 0.22);
    --hp-shadow-lg: 0 18px 40px -18px rgba(0, 0, 0, 0.45), 0 8px 16px -8px rgba(0, 0, 0, 0.28);
}

body.theme-dark #homePage .home-deco-blob {
    opacity: 0.22;
}

body.theme-dark #homePage .home-deco-grid {
    opacity: 0.18;
    background-image:
        linear-gradient(to right, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
}

html.theme-dark #homePage .home-hero,
body.theme-dark #homePage .home-hero {
    background:
        linear-gradient(180deg, rgba(30, 41, 59, 0.38) 0%, rgba(15, 23, 42, 0.48) 100%),
        radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.12), transparent 52%),
        radial-gradient(circle at 100% 100%, rgba(37, 99, 235, 0.08), transparent 55%);
    border-color: rgba(148, 163, 184, 0.14);
    box-shadow:
        0 24px 64px -28px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(148, 163, 184, 0.06) inset;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
}

html.theme-dark #homePage .stat-card,
body.theme-dark #homePage .stat-card {
    background: var(--hp-card-bg) !important;
    border: var(--hp-card-border) !important;
    box-shadow: var(--hp-shadow-sm) !important;
    backdrop-filter: blur(10px) saturate(130%);
    -webkit-backdrop-filter: blur(10px) saturate(130%);
}

body.theme-dark #homePage .home-hero::after {
    background: linear-gradient(
        125deg,
        rgba(96, 165, 250, 0.35),
        rgba(30, 41, 59, 0.2),
        rgba(59, 130, 246, 0.3),
        rgba(30, 41, 59, 0.25)
    );
    opacity: 0.45;
}

body.theme-dark #homePage .home-hero::before {
    background: linear-gradient(120deg, transparent 0%, rgba(148, 163, 184, 0.08) 45%, transparent 70%);
}

body.theme-dark #homePage .home-hero-eyebrow {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(96, 165, 250, 0.22);
    color: #93c5fd;
}

body.theme-dark #homePage .home-hero-sub,
html.theme-dark #homePage .home-hero-sub {
    color: var(--text-secondary);
}

html.theme-dark #homePage .home-hero-meta-label,
body.theme-dark #homePage .home-hero-meta-label {
    color: #cbd5e1;
}

html.theme-dark #homePage .home-hero-meta-num,
body.theme-dark #homePage .home-hero-meta-num {
    color: #f8fafc;
}

/* 数据卡数字：深色底上禁用渐变镂空字，改用高对比实色 */
html.theme-dark #homePage .stat-card .stat-num,
body.theme-dark #homePage .stat-card .stat-num {
    color: #f8fafc !important;
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: #f8fafc !important;
}

html.theme-dark #homePage .stat-card .stat-label,
body.theme-dark #homePage .stat-card .stat-label {
    color: #cbd5e1 !important;
}

body.theme-dark #homePage .home-hero-meta-divider {
    background: rgba(148, 163, 184, 0.2);
}

body.theme-dark #homePage .home-hero-pill {
    color: #93c5fd;
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(148, 163, 184, 0.22);
}

body.theme-dark #homePage .home-hero-pill:hover {
    background: rgba(37, 99, 235, 0.18);
    border-color: rgba(96, 165, 250, 0.35);
}

body.theme-dark #homePage .hero-btn-ghost {
    background: rgba(30, 41, 59, 0.9);
    color: #93c5fd;
    border-color: rgba(96, 165, 250, 0.35);
}

body.theme-dark #homePage .hero-btn-ghost:hover {
    background: rgba(37, 99, 235, 0.2);
    border-color: rgba(96, 165, 250, 0.5);
}

body.theme-dark #homePage .section-heading-sub {
    color: var(--text-secondary);
}

body.theme-dark #homePage .section-heading-line {
    background: linear-gradient(90deg, #3b82f6, rgba(148, 163, 184, 0.35), #2563eb);
}

body.theme-dark #homePage .section-kicker {
    color: #93c5fd;
}

body.theme-dark #homePage .hot-section .section-kicker {
    color: #93c5fd !important;
}

body.theme-dark #homePage .stat-card:hover {
    border-color: rgba(96, 165, 250, 0.35);
}

body.theme-dark #homePage .leaderboard-item {
    background: transparent;
    border-color: rgba(148, 163, 184, 0.12);
}

body.theme-dark #homePage .leaderboard-item:hover {
    background: var(--bg-tertiary);
    border-color: rgba(96, 165, 250, 0.28);
    box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.4);
}

body.theme-dark #homePage .leaderboard-rank:not(.gold):not(.silver):not(.bronze) {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-color: rgba(148, 163, 184, 0.2);
}

body.theme-dark #homePage .leaderboard-avatar,
body.theme-dark #homePage .leaderboard-item img.leaderboard-avatar {
    border-color: #334155;
}

body.theme-dark #homePage .home-latest-card {
    background: var(--bg-primary);
    border-color: rgba(148, 163, 184, 0.2);
}

body.theme-dark #homePage .home-latest-card-caption {
    background: linear-gradient(180deg, var(--bg-primary) 0%, #111827 100%);
    border-top-color: rgba(148, 163, 184, 0.15);
}

html.theme-dark #homePage .featured-stage,
html.theme-dark #homePage .hot-frame,
body.theme-dark #homePage .featured-stage,
body.theme-dark #homePage .hot-frame {
    background: var(--hp-card-bg) !important;
    border-color: rgba(148, 163, 184, 0.14) !important;
    box-shadow: var(--hp-shadow-md) !important;
    backdrop-filter: blur(10px) saturate(130%);
    -webkit-backdrop-filter: blur(10px) saturate(130%);
}

html.theme-dark #homePage .hot-frame:hover,
body.theme-dark #homePage .hot-frame:hover {
    box-shadow: var(--hp-shadow-lg) !important;
    border-color: rgba(96, 165, 250, 0.22) !important;
}

html.theme-dark #homePage .hot-frame .hot-frame-media,
body.theme-dark #homePage .hot-frame .hot-frame-media {
    background: rgba(15, 23, 42, 0.65);
}

body.theme-dark #homePage .timeline-container,
body.theme-dark #homePage .timeline-item,
body.theme-dark #homePage .about-card,
body.theme-dark #homePage .countup-container,
body.theme-dark #homePage .thanks-container {
    background: var(--bg-primary) !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
    color: var(--text-primary);
}

body.theme-dark #homePage .carousel-btn {
    background: rgba(30, 41, 59, 0.88);
    color: #93c5fd;
    border-color: rgba(148, 163, 184, 0.25);
}

body.theme-dark #homePage .carousel-btn:hover {
    background: #1e293b;
    color: #bfdbfe;
}

/* ---------- 主题：新年（保持红系，简单覆盖关键蓝） ---------- */
body.theme-newyear #homePage .stat-card,
body.theme-newyear #homePage .leaderboard-card,
body.theme-newyear #homePage .about-card,
body.theme-newyear #homePage .timeline-container,
body.theme-newyear #homePage .countup-container,
body.theme-newyear #homePage .thanks-container,
body.theme-newyear #homePage .home-hero {
    background: #ffffff;
    border-color: rgba(244, 199, 199, 0.7);
    box-shadow: 0 18px 40px -22px rgba(198, 40, 40, 0.25);
}
body.theme-newyear #homePage .stat-icon,
body.theme-newyear #homePage .leaderboard-card-icon {
    background: linear-gradient(135deg, #ffe4e4, #ffc4c4);
    color: #c62828;
}
body.theme-newyear #homePage .stat-card .stat-num {
    background: linear-gradient(135deg, #1a1a1a 0%, #c62828 120%);
    -webkit-background-clip: text;
    background-clip: text;
}
body.theme-newyear #homePage .home-hero-eyebrow {
    background: rgba(198, 40, 40, 0.08);
    border-color: rgba(198, 40, 40, 0.25);
    color: #c62828;
}
body.theme-newyear #homePage .home-hero-title-grad {
    background: linear-gradient(120deg, #c62828 0%, #ef5350 50%, #b71c1c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
body.theme-newyear #homePage .hero-btn-primary {
    background: linear-gradient(135deg, #c62828, #b71c1c);
    box-shadow: 0 12px 28px -12px rgba(198, 40, 40, 0.55);
}
body.theme-newyear #homePage .hero-btn-ghost {
    color: #c62828;
    border-color: #f4c7c7;
}
body.theme-newyear #homePage .countup-item {
    background: linear-gradient(135deg, #c62828, #b71c1c);
    box-shadow: 0 12px 24px -12px rgba(198, 40, 40, 0.55), inset 0 1px 0 rgba(255,255,255,0.3);
}
body.theme-newyear #homePage .thanks-item:hover {
    background: linear-gradient(135deg, #c62828, #b71c1c);
}
body.theme-newyear #homePage .home-latest-card {
    background: #ffffff;
    border-color: rgba(244, 199, 199, 0.75);
    box-shadow: 0 12px 28px -18px rgba(198, 40, 40, 0.2);
}
body.theme-newyear #homePage .home-latest-card:hover {
    border-color: rgba(239, 83, 80, 0.48);
    box-shadow: 0 18px 36px -20px rgba(198, 40, 40, 0.26);
}
body.theme-newyear #homePage .home-latest-card-caption {
    border-top-color: rgba(244, 199, 199, 0.55);
    background: linear-gradient(180deg, #ffffff 0%, #fff8f8 100%);
}
body.theme-newyear #homePage .home-latest-card-user {
    color: #b71c1c;
}
body.theme-newyear #homePage .hot-frame .hot-frame-user {
    color: #b71c1c;
}
body.theme-newyear #homePage .featured-stage {
    background: #ffffff;
    border-color: rgba(244, 199, 199, 0.75);
    box-shadow: 0 18px 40px -22px rgba(198, 40, 40, 0.2);
}
body.theme-newyear #homePage .section-kicker {
    color: #b71c1c;
    animation: none;
}
body.theme-newyear #homePage .section-heading-line {
    background: linear-gradient(90deg, #ef5350, rgba(255, 255, 255, 0.95), #c62828);
    box-shadow: 0 2px 12px -2px rgba(198, 40, 40, 0.35);
}
body.theme-newyear #homePage .home-hero-pill {
    color: #c62828;
    border-color: rgba(244, 199, 199, 0.85);
    box-shadow: 0 4px 12px -6px rgba(198, 40, 40, 0.25);
}
body.theme-newyear #homePage .home-hero-pill-dot {
    background: #c62828;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.2);
}
body.theme-newyear #homePage .home-hero::after {
    background: linear-gradient(
        125deg,
        rgba(239, 83, 80, 0.45),
        rgba(255, 255, 255, 0.12),
        rgba(183, 28, 28, 0.4),
        rgba(255, 255, 255, 0.18)
    );
}

/* ---------- 减少动画偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
    #homePage *,
    #homePage *::before,
    #homePage *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
    #homePage .stats-section.reveal:not(.is-visible) .stat-card,
    #homePage .leaderboard-section.reveal:not(.is-visible) .leaderboard-card,
    #homePage .about-section.reveal:not(.is-visible) .about-card,
    #homePage .featured-section.reveal:not(.is-visible) .featured-stage {
        opacity: 1;
        transform: none;
    }
    #homePage .reveal {
        opacity: 1;
        transform: none;
    }
    #homePage .home-latest-card:hover .home-latest-card-media img {
        transform: none;
    }
}

/* ==========================================================================
   HOT 照片栏（精选之上）
   ========================================================================== */
#homePage .hot-section {
    position: relative;
    margin: 32px 0 48px;
}
#homePage .hot-section[hidden] {
    display: none !important;
}
/* HOT 眉题与其它版块一致：蓝色小标签，无橙色底条（覆盖旧样式/缓存） */
#homePage .hot-section .section-kicker {
    justify-self: start;
    width: max-content;
    max-width: 100%;
    color: var(--hp-blue-600);
    background: none !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    animation: hpKickerGlow 4s ease-in-out infinite;
}
body.theme-newyear #homePage .hot-section .section-kicker {
    color: #b71c1c;
    background: none !important;
    border: none !important;
    animation: none;
}
#homePage .hot-frames {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(10px, 2.5vw, 16px);
    align-items: stretch;
}
#homePage .hot-frame {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary, #fff);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 6px 22px rgba(234, 88, 12, 0.10);
    border: 1px solid #fed7aa;
    transition: transform .25s ease, box-shadow .25s ease;
}
#homePage .hot-frame:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(234, 88, 12, 0.18);
}
#homePage .hot-frame .hot-frame-media {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    background: #fff7ed;
    overflow: hidden;
}
#homePage .hot-frame .hot-frame-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .55s ease;
    will-change: opacity;
}
#homePage .hot-frame .hot-frame-img.is-active {
    opacity: 1;
}
#homePage .hot-frame .hot-frame-media::after {
    content: '🔥 hot';
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 4px 10px;
    background: rgba(234, 88, 12, 0.92);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(234, 88, 12, .25);
}
#homePage .hot-frame .hot-frame-caption {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 78px;
}
#homePage .hot-frame .hot-frame-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary, #0f172a);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#homePage .hot-frame .hot-frame-user {
    font-size: 13px;
    font-weight: 600;
    color: var(--hp-blue-700, #1d4ed8);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#homePage .hot-frame .hot-frame-reason {
    font-size: 13px;
    color: #ea580c;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 主页"最新作品"卡片上的 hot 徽章 */
#homePage .home-latest-card-hot {
    margin-top: 4px;
    color: #ea580c;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .02em;
}
