html[data-youzi-route="home"] {
  color-scheme: dark;
  background: #08090d;
}

body.youzi-home {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow: auto;
  background:
    radial-gradient(circle at 50% -12%, rgba(95, 87, 255, .22), transparent 34rem),
    radial-gradient(circle at 92% 18%, rgba(16, 205, 220, .10), transparent 26rem),
    #08090d;
  color: #f7f8fb;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body.youzi-home #root { min-height: 100vh; }
body.youzi-home *, body.youzi-home *::before, body.youzi-home *::after { box-sizing: border-box; }
body.youzi-home button, body.youzi-home a { font: inherit; }

.home-shell { width: 100%; margin: 0; }
.home-header { height: 82px; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; border-bottom: 1px solid rgba(255,255,255,.08); }
.home-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-size: 20px; font-weight: 760; letter-spacing: -.02em; }
.home-brand img { width: 38px; height: 38px; border-radius: 12px; object-fit: cover; }
.home-header-actions { display: flex; align-items: center; gap: 18px; }
.home-online-dot { color: #9ca3b5; font-size: 14px; }
.home-online-dot::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #56e5a6; box-shadow: 0 0 14px rgba(86,229,166,.72); }
.home-canvas-link { padding: 10px 17px; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; background: rgba(255,255,255,.055); color: #fff; font-size: 14px; font-weight: 650; text-decoration: none; transition: background .2s ease, transform .2s ease; }
.home-canvas-link:hover { background: rgba(255,255,255,.11); transform: translateY(-1px); }

.home-hero { position: relative; display: grid; justify-items: center; min-height: 610px; margin: 0 32px; padding: 118px 24px 84px; overflow: hidden; text-align: center; }
.home-hero::before { content: ""; position: absolute; inset: 28px 0 30px; z-index: -2; border: 1px solid rgba(255,255,255,.065); border-radius: 38px; background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); }
.home-hero-glow { position: absolute; top: 94px; left: 50%; z-index: -1; width: 480px; height: 260px; border-radius: 50%; background: conic-gradient(from 210deg, rgba(72,211,255,.30), rgba(119,87,255,.32), rgba(236,91,211,.26), rgba(72,211,255,.30)); filter: blur(90px); opacity: .78; transform: translateX(-50%); }
.home-eyebrow, .home-section-kicker { margin: 0 0 15px; color: #8c91a4; font-size: 12px; font-weight: 760; letter-spacing: .16em; }
.home-hero h1 { max-width: 920px; margin: 0; font-size: clamp(44px, 6vw, 78px); line-height: 1.08; letter-spacing: -.055em; }
.home-lead { max-width: 720px; margin: 24px 0 42px; color: #a8adbd; font-size: 18px; line-height: 1.75; }
.home-new-canvas { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; width: min(720px, 100%); min-height: 122px; padding: 22px 24px; border: 1px solid rgba(255,255,255,.16); border-radius: 25px; background: rgba(20,22,31,.76); box-shadow: 0 28px 80px rgba(0,0,0,.38), inset 0 1px rgba(255,255,255,.07); color: #fff; text-align: left; text-decoration: none; backdrop-filter: blur(24px); transition: border-color .24s ease, transform .24s ease, box-shadow .24s ease; }
.home-new-canvas:hover { border-color: rgba(134,116,255,.64); transform: translateY(-4px); box-shadow: 0 34px 100px rgba(47,25,118,.32), inset 0 1px rgba(255,255,255,.08); }
.home-new-icon { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 20px; background: linear-gradient(135deg, #27d5e8, #7664ff 55%, #ee65cb); box-shadow: 0 12px 36px rgba(103,90,255,.34); color: #fff; font-size: 34px; font-weight: 320; }
.home-new-copy { display: grid; gap: 8px; }
.home-new-copy strong { font-size: 22px; letter-spacing: -.02em; }
.home-new-copy small { color: #9fa4b4; font-size: 14px; }
.home-new-arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.08); font-size: 21px; }

.home-gallery-section { padding: 76px 32px 110px; }
.home-gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 18px; }
.home-gallery-head h2 { margin: 0; font-size: clamp(34px, 4vw, 50px); letter-spacing: -.045em; }
.home-tabs { display: inline-flex; gap: 7px; padding: 5px; border: 1px solid rgba(255,255,255,.09); border-radius: 15px; background: rgba(255,255,255,.035); }
.home-tab { min-width: 108px; padding: 11px 18px; border: 0; border-radius: 11px; background: transparent; color: #a4a9b9; cursor: pointer; font-weight: 650; }
.home-tab.is-active { background: #f3f5f8; color: #11131a; box-shadow: 0 7px 20px rgba(0,0,0,.25); }
.home-tab-summary { margin-bottom: 28px; color: #858b9d; font-size: 14px; }
.home-masonry { columns: 6 250px; column-gap: 18px; }
.home-masonry[hidden] { display: none; }
.home-work-card { display: block; width: 100%; margin: 0 0 18px; padding: 0; break-inside: avoid; overflow: hidden; border: 1px solid rgba(255,255,255,.09); border-radius: 18px; background: #12141b; color: #fff; cursor: pointer; text-align: left; transition: border-color .22s ease, transform .22s ease; }
.home-work-card:hover { border-color: rgba(255,255,255,.24); transform: translateY(-3px); }
.home-work-media { position: relative; display: block; min-height: 260px; overflow: hidden; background: linear-gradient(145deg, #1a2030, #25203d 45%, #102e3c); }
.home-work-media img, .home-work-video { display: block; width: 100%; height: auto; min-height: 260px; object-fit: cover; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.home-work-video { aspect-ratio: 4 / 5; background: #11131a; }
.home-video-badge { position: absolute; top: 13px; left: 13px; z-index: 2; padding: 6px 9px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(7,9,14,.62); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; backdrop-filter: blur(12px); }
.home-work-media.is-fallback img { visibility: hidden; height: 340px; }
.home-work-card:hover img, .home-work-card:hover .home-work-video { transform: scale(1.025); }
.home-work-overlay { position: absolute; inset: auto 0 0; display: grid; gap: 8px; padding: 60px 17px 16px; background: linear-gradient(transparent, rgba(5,6,10,.86)); }
.home-work-title { font-size: 16px; letter-spacing: -.01em; }
.home-work-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: rgba(255,255,255,.74); font-size: 12px; }
.home-work-model { max-width: 58%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-empty { display: grid; justify-items: center; min-height: 360px; padding: 68px 24px; border: 1px dashed rgba(255,255,255,.13); border-radius: 24px; color: #9aa0b1; text-align: center; }
.home-empty[hidden] { display: none; }
.home-empty-icon { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 20px; background: rgba(255,255,255,.06); color: #d8dbea; font-size: 30px; }
.home-empty h3 { margin: 22px 0 9px; color: #f5f6fa; font-size: 22px; }
.home-empty p { margin: 0 0 24px; }
.home-empty a { padding: 11px 18px; border-radius: 11px; background: #f4f5f8; color: #121319; font-weight: 700; text-decoration: none; }
.home-footer { display: flex; justify-content: space-between; margin: 0 32px; padding: 28px 0 46px; border-top: 1px solid rgba(255,255,255,.08); color: #707687; font-size: 13px; }

.home-detail-modal[hidden] { display: none; }
.home-detail-modal { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 30px; }
.home-detail-backdrop { position: absolute; inset: 0; border: 0; background: rgba(3,4,8,.76); backdrop-filter: blur(12px); cursor: default; }
.home-detail-panel { position: relative; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); width: min(1080px, 96vw); max-height: 88vh; overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 25px; background: #12141b; box-shadow: 0 35px 120px rgba(0,0,0,.6); }
.home-detail-close { position: absolute; top: 15px; right: 15px; z-index: 2; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; background: rgba(12,13,18,.72); color: #fff; cursor: pointer; font-size: 24px; }
.home-detail-image { display: grid; place-items: center; min-height: 540px; overflow: hidden; background: #090a0f; }
.home-detail-image img { display: block; width: 100%; height: 100%; max-height: 88vh; object-fit: contain; }
.home-detail-content { display: flex; flex-direction: column; justify-content: flex-end; padding: 42px 34px; }
.home-detail-content h2 { margin: 0 0 12px; font-size: 34px; letter-spacing: -.04em; }
.home-detail-content p:not(.home-section-kicker) { margin: 0 0 28px; color: #9ca2b2; line-height: 1.6; }
.home-detail-content a { display: block; padding: 14px 18px; border-radius: 13px; background: linear-gradient(135deg, #2bc7ec, #7368ff 52%, #e766d0); color: #fff; font-weight: 760; text-align: center; text-decoration: none; }
body.home-modal-open { overflow: hidden; }

@media (max-width: 820px) {
  .home-shell { width: 100%; }
  .home-header { height: 70px; padding-inline: 16px; }
  .home-online-dot { display: none; }
  .home-hero { min-height: 540px; margin-inline: 14px; padding: 92px 15px 64px; }
  .home-hero::before { inset-inline: -6px; border-radius: 28px; }
  .home-lead { font-size: 16px; }
  .home-new-canvas { min-height: 106px; gap: 14px; padding: 17px; }
  .home-new-icon { width: 58px; height: 58px; border-radius: 17px; }
  .home-new-arrow { display: none; }
  .home-gallery-head { align-items: flex-start; flex-direction: column; }
  .home-gallery-section { padding: 62px 14px 86px; }
  .home-tabs { width: 100%; }
  .home-tab { flex: 1; }
  .home-masonry { columns: 2 150px; column-gap: 12px; }
  .home-work-card { margin-bottom: 12px; border-radius: 14px; }
  .home-work-media, .home-work-media img, .home-work-video { min-height: 210px; }
  .home-detail-panel { grid-template-columns: 1fr; max-height: 92vh; overflow: auto; }
  .home-detail-image { min-height: 52vh; }
  .home-detail-content { padding: 26px 22px; }
  .home-footer { gap: 18px; margin-inline: 14px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .home-work-card, .home-work-media img, .home-new-canvas, .home-canvas-link { transition: none; }
}
