﻿:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --panel: #ffffff;
  --ink: #171923;
  --muted: #5f6878;
  --line: #dfe4ec;
  --blue: #1769e0;
  --teal: #0e9f9b;
  --yellow: #f4bf2a;
  --coral: #e8664f;
  --green: #24845f;
  --purple: #6f65d8;
  --shadow: 0 16px 42px rgba(36, 47, 71, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.65;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 12px;
  min-height: 70px;
  padding: 0 5vw;
  background: rgba(247, 248, 251, 0.9);
  border-bottom: 1px solid rgba(223, 228, 236, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  flex: 1;
  min-width: 0;
}

.brand > span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 15px;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(500px, 0.95fr);
  gap: 48px;
  align-items: center;
  padding: 52px 5vw 42px;
  min-height: calc(100vh - 70px);
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(42px, 8vw, 86px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.25;
}

.lead {
  max-width: 600px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.button.secondary {
  background: #fff;
  color: var(--ink);
}

.hero-gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
}

.hero-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-frame.tall {
  width: min(430px, 100%);
  aspect-ratio: 5 / 8;
}

.hero-frame.tall img,
.poster-media img {
  object-fit: contain;
  background: linear-gradient(145deg, #ebe7ff 0%, #fcf6dc 48%, #dff8fb 100%);
}

.hero-frame figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.summary-band {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 0 5vw;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.summary-band div {
  padding: 22px;
  background: #fff;
}

.summary-band strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.summary-band span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.section {
  padding: 86px 5vw 0;
}

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 32px;
  text-align: center;
}

.work-item {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 32px;
  align-items: center;
  margin-bottom: 34px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.work-item.poster-layout {
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1fr);
}

.work-media {
  overflow: hidden;
  min-height: 300px;
  aspect-ratio: 2.45 / 1;
  border-radius: 6px;
  background: #e8edf5;
  position: relative;
}

.download-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
}

.download-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-1px);
  color: #fff;
}

.poster-media {
  max-width: 460px;
  min-height: 620px;
  aspect-ratio: 5 / 8;
}

.work-copy {
  min-width: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  margin-bottom: 16px;
  border-radius: 6px;
  background: rgba(23, 105, 224, 0.11);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.tag.warm {
  background: rgba(244, 191, 42, 0.22);
  color: #8b6100;
}

.tag.coral {
  background: rgba(232, 102, 79, 0.14);
  color: var(--coral);
}

.tag.green {
  background: rgba(36, 132, 95, 0.12);
  color: var(--green);
}

.tag.purple {
  background: rgba(111, 101, 216, 0.13);
  color: var(--purple);
}

.video-section {
  padding-top: 68px;
}

.video-work {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 32px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.video-frame {
  overflow: hidden;
  border: 1px solid #e5eaf2;
  border-radius: 6px;
  background: #10141d;
}

.video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 620px;
  background: #10141d;
  object-fit: contain;
}

.meta-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
}

.meta-list div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.meta-list dt {
  color: var(--muted);
  font-size: 14px;
}

.meta-list dd {
  margin: 0;
  font-weight: 700;
}

.data-section {
  padding-bottom: 86px;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.data-card {
  display: flex;
  flex-direction: column;
  min-height: 560px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.data-card.wide-card {
  grid-column: span 2;
}

.card-heading {
  min-height: 88px;
}

.chart-box {
  width: 100%;
  min-height: 320px;
  border: 1px solid #e5eaf2;
  border-radius: 6px;
  background: #fbfcff;
}

.chart-box.compact {
  min-height: 330px;
}

.split-charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.data-card p,
.work-copy p,
.closing p {
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: auto;
  color: var(--blue);
  font-weight: 800;
}

.text-link:hover {
  color: var(--teal);
}

.closing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 54px 5vw;
  background: #10141d;
  color: #fff;
}

.closing .eyebrow {
  color: var(--yellow);
}

.closing p {
  margin-bottom: 0;
}

.contact-email {
  margin-top: 8px;
}

.contact-email a {
  color: #fff;
  font-weight: 700;
}

.contact-email a:hover {
  color: var(--yellow);
}

@media (max-width: 1080px) {
  .hero,
  .work-item,
  .work-item.poster-layout,
  .video-work {
    grid-template-columns: 1fr;
  }

  .hero-gallery {
    min-height: 520px;
  }

  .poster-media {
    max-width: 100%;
    min-height: 560px;
  }
}

@media (max-width: 760px) {
  .summary-band {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-header {
    position: static;
    flex-direction: row;
    align-items: center;
    padding: 12px 6vw;
    flex-wrap: nowrap;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero {
    padding: 46px 6vw 34px;
    min-height: auto;
  }

  .hero-gallery {
    min-height: 0;
  }

  .hero-frame {
    margin: 0 auto 14px;
  }

  .hero-frame.tall {
    width: min(320px, 100%);
  }

  .summary-band,
  .data-grid,
  .split-charts {
    grid-template-columns: 1fr;
  }

  .summary-band {
    margin: 0 6vw;
  }

  .section {
    padding-left: 6vw;
    padding-right: 6vw;
  }

  .data-card.wide-card {
    grid-column: auto;
  }

  .work-item,
  .data-card,
  .video-work {
    padding: 16px;
  }

  .work-media {
    min-height: 210px;
  }

  .poster-media {
    min-height: 420px;
  }

  .video-frame video {
    min-height: 220px;
  }

  .meta-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .closing {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 6vw;
    padding-right: 6vw;
  }

  .section-heading {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
  }

  .hero-gallery {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding: 0 4vw;
  }

  .hero-frame.tall {
    width: auto;
    aspect-ratio: auto;
    min-height: 45vh; max-height: 48vh; flex-shrink: 0;
  }

  .hero-frame.tall img {
    height: 48vh; width: auto;
    max-width: none;
  }

  .work-item {
    align-items: start;
  }

  .work-media {
    aspect-ratio: auto;
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
  }

  .work-media img {
    width: 100%;
    height: auto;
    max-height: none;
    flex-shrink: 0;
  }

  .work-media .chart-box {
    width: 100%;
    min-height: 200px;
    height: 280px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .poster-media {
    max-width: 100%;
    min-height: auto;
    aspect-ratio: auto;
    margin: 0 auto;
  }

  .poster-media img {
    height: auto;
  }

  .work-item {
    overflow: hidden;
  }
}

/* ===== Hamburger Menu ===== */
.hamburger {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 30;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  position: absolute;
  left: 10px;
}

.hamburger span:nth-child(1) { top: 11px; }
.hamburger span:nth-child(2) { top: 19px; }
.hamburger span:nth-child(3) { top: 27px; }

.hamburger.open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

@media (max-width: 768px) {
  .hamburger { display: block; }

  .site-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    z-index: 20;
    box-shadow: var(--shadow);
  }

  .site-nav.nav-open {
    max-height: 280px;
    padding: 8px 0 12px;
  }

  .site-nav a {
    padding: 16px 5vw;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-of-type {
    border-bottom: none;
  }
}

/* ===== Dark Mode ===== */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1117;
  --panel: #1a1d27;
  --ink: #e8eaf0;
  --muted: #9ba1b0;
  --line: #2a2e3a;
  --shadow: 0 16px 42px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .site-header {
  background: rgba(15, 17, 23, 0.92);
  border-bottom-color: rgba(42, 46, 58, 0.8);
}

html[data-theme="dark"] .brand-mark {
  background: #e8eaf0;
  color: #0f1117;
}

html[data-theme="dark"] .hero-frame {
  border-color: var(--line);
}

html[data-theme="dark"] .hero-frame figcaption {
  background: rgba(26, 29, 39, 0.92);
  color: var(--ink);
}

html[data-theme="dark"] .hero-frame.tall img,
html[data-theme="dark"] .poster-media img {
  background: linear-gradient(145deg, #1e1b3a 0%, #2a2318 48%, #1a2a2e 100%);
}

html[data-theme="dark"] .summary-band {
  border-color: var(--line);
  background: var(--line);
}

html[data-theme="dark"] .summary-band div {
  background: var(--panel);
}

html[data-theme="dark"] .work-item,
html[data-theme="dark"] .data-card,
html[data-theme="dark"] .video-work {
  background: var(--panel);
  border-color: var(--line);
}

html[data-theme="dark"] .button.primary {
  background: var(--ink);
  color: #0f1117;
}

html[data-theme="dark"] .button.secondary {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--line);
}

html[data-theme="dark"] .chart-box {
  background: #12141c;
  border-color: var(--line);
}

html[data-theme="dark"] .work-media {
  background: #1e2130;
}

html[data-theme="dark"] .video-frame {
  border-color: var(--line);
}

html[data-theme="dark"] .tag.warm {
  background: rgba(244, 191, 42, 0.15);
  color: #f4bf2a;
}

html[data-theme="dark"] .closing {
  background: #0a0c12;
}

html[data-theme="dark"] .hero-gallery {
  background: transparent;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f1117;
    --panel: #1a1d27;
    --ink: #e8eaf0;
    --muted: #9ba1b0;
    --line: #2a2e3a;
    --shadow: 0 16px 42px rgba(0, 0, 0, 0.35);
  }
  html:not([data-theme="light"]) .site-header {
    background: rgba(15, 17, 23, 0.92);
    border-bottom-color: rgba(42, 46, 58, 0.8);
  }
  html:not([data-theme="light"]) .brand-mark {
    background: #e8eaf0;
    color: #0f1117;
  }
  html:not([data-theme="light"]) .hero-frame { border-color: var(--line); }
  html:not([data-theme="light"]) .hero-frame figcaption {
    background: rgba(26, 29, 39, 0.92);
    color: var(--ink);
  }
  html:not([data-theme="light"]) .hero-frame.tall img,
  html:not([data-theme="light"]) .poster-media img {
    background: linear-gradient(145deg, #1e1b3a 0%, #2a2318 48%, #1a2a2e 100%);
  }
  html:not([data-theme="light"]) .summary-band { border-color: var(--line); background: var(--line); }
  html:not([data-theme="light"]) .summary-band div { background: var(--panel); }
  html:not([data-theme="light"]) .work-item,
  html:not([data-theme="light"]) .data-card,
  html:not([data-theme="light"]) .video-work { background: var(--panel); border-color: var(--line); }
  html:not([data-theme="light"]) .button.primary { background: var(--ink); color: #0f1117; }
  html:not([data-theme="light"]) .button.secondary { background: var(--panel); color: var(--ink); border-color: var(--line); }
  html:not([data-theme="light"]) .chart-box { background: #12141c; border-color: var(--line); }
  html:not([data-theme="light"]) .work-media { background: #1e2130; }
  html:not([data-theme="light"]) .video-frame { border-color: var(--line); }
  html:not([data-theme="light"]) .tag.warm { background: rgba(244, 191, 42, 0.15); color: #f4bf2a; }
  html:not([data-theme="light"]) .closing { background: #0a0c12; }
  html:not([data-theme="light"]) .theme-btn .icon-sun { display: inline; }
  html:not([data-theme="light"]) .theme-btn .icon-moon { display: none; }
}

/* Theme toggle button */
.theme-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  transition: color 0.2s, background 0.2s;
}

.theme-btn:hover {
  color: var(--blue);
  background: rgba(23, 105, 224, 0.08);
}

.theme-btn .icon-sun,
.theme-btn .icon-moon {
  position: absolute;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

/* Light mode: sun visible, moon hidden */
.theme-btn .icon-sun {
  opacity: 1;
  transform: translateY(0) rotate(0deg) scale(1);
}
.theme-btn .icon-moon {
  opacity: 0;
  transform: translateY(12px) rotate(-45deg) scale(0.4);
}

/* Light mode hover: sun out, moon in */
.theme-btn:hover .icon-sun {
  opacity: 0;
  transform: translateY(-12px) rotate(45deg) scale(0.4);
}
.theme-btn:hover .icon-moon {
  opacity: 1;
  transform: translateY(0) rotate(0deg) scale(1);
}

/* Dark mode: moon visible, sun hidden */
html[data-theme="dark"] .theme-btn .icon-moon {
  opacity: 1;
  transform: translateY(0) rotate(0deg) scale(1);
}
html[data-theme="dark"] .theme-btn .icon-sun {
  opacity: 0;
  transform: translateY(12px) rotate(-45deg) scale(0.4);
}

/* Dark mode hover: moon out, sun in */
html[data-theme="dark"] .theme-btn:hover .icon-moon {
  opacity: 0;
  transform: translateY(-12px) rotate(45deg) scale(0.4);
}
html[data-theme="dark"] .theme-btn:hover .icon-sun {
  opacity: 1;
  transform: translateY(0) rotate(0deg) scale(1);
}

/* System dark preference (no manual toggle set) */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .theme-btn .icon-moon {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
  }
  html:not([data-theme="light"]) .theme-btn .icon-sun {
    opacity: 0;
    transform: translateY(12px) rotate(-45deg) scale(0.4);
  }
  html:not([data-theme="light"]) .theme-btn:hover .icon-moon {
    opacity: 0;
    transform: translateY(-12px) rotate(45deg) scale(0.4);
  }
  html:not([data-theme="light"]) .theme-btn:hover .icon-sun {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
  }
}


