:root {
  --ink: #f7f8fb;
  --muted: #9ca1b3;
  --blue: #30d5ff;
  --blue-dark: #6aa6ff;
  --blue-soft: rgba(48, 213, 255, .1);
  --line: rgba(255, 255, 255, .1);
  --surface: #0f1017;
  --white: #fff;
  --shadow: 0 34px 92px rgba(0, 0, 0, .42);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar { width: 0; height: 0; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #07070a 0%, #090a10 42%, #0c0d13 100%),
    #07070a;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }

.case-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1216px, calc(100% - 64px));
  height: 76px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}
.case-brand { display: inline-flex; align-items: center; gap: 11px; }
.case-brand img { width: 38px; height: 38px; border-radius: 9px; }
.case-brand span { display: flex; flex-direction: column; }
.case-brand strong { color: #fff; font-size: 16px; letter-spacing: .12em; }
.case-brand small { color: var(--muted); font-size: 11px; }
.case-type { color: var(--muted); font-size: 13px; letter-spacing: .08em; }

main { overflow: hidden; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(38px, 4vw, 64px);
  align-items: center;
  width: min(1216px, calc(100% - 64px));
  min-height: 720px;
  margin: 0 auto;
  padding: 76px 0 94px;
}
.eyebrow { margin: 0 0 18px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .18em; }
.hero h1 { margin: 0; font-size: clamp(50px, 3.6vw, 64px); line-height: 1.12; letter-spacing: -.045em; }
.hero h1 span { display: block; white-space: nowrap; }
html[lang="en"] .case-type { margin-right: 158px; white-space: nowrap; }
html[lang="en"] .hero h1 { font-size: clamp(34px, 2.7vw, 46px); letter-spacing: -.035em; }
.hero-lead { max-width: 570px; margin: 26px 0 0; color: var(--muted); font-size: clamp(16px, 1.05vw, 18px); line-height: 1.78; }
.hero-actions { display: flex; gap: 12px; margin-top: 36px; }
.hero-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 7px; font-size: 14px; font-weight: 700; transition: .2s ease; }
.primary-action { color: #061117; background: var(--blue); box-shadow: 0 12px 28px rgba(48, 213, 255, .2); }
.secondary-action { border: 1px solid var(--line); background: rgba(255, 255, 255, .04); }
.hero-actions a:hover { transform: translateY(-2px); }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 44px 0 0; }
.hero-stats div { padding-left: 15px; border-left: 2px solid var(--blue); }
.hero-stats dt { font-size: 21px; font-weight: 800; }
.hero-stats dd { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.hero-visual { position: relative; margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .045); box-shadow: var(--shadow); }
.hero-visual::before { content: ""; position: absolute; inset: -35px -45px auto auto; z-index: -1; width: 210px; height: 210px; border-radius: 50%; background: rgba(52, 120, 246, .12); filter: blur(4px); }
.hero-visual img { width: 100%; border-radius: 9px; }
.hero-visual figcaption { display: flex; align-items: center; gap: 8px; padding: 14px 2px 0; color: var(--muted); font-size: 12px; }
.hero-visual figcaption span { width: 8px; height: 8px; border-radius: 50%; background: #27b36a; box-shadow: 0 0 0 4px rgba(39, 179, 106, .12); }

.pain-points, .functions, .screens { padding: 110px max(32px, calc((100% - 1216px) / 2)); }
.pain-points { border-block: 1px solid var(--line); background: #0f1017; color: #fff; }
.section-heading { max-width: none; margin-bottom: 50px; }
.section-heading.compact { max-width: none; }
.section-heading h2 { margin: 0; font-size: clamp(36px, 3vw, 52px); line-height: 1.16; letter-spacing: -.04em; white-space: nowrap; }
.section-heading > p:last-child { max-width: 720px; margin: 20px 0 0; color: var(--muted); font-size: 17px; line-height: 1.8; }
.pain-points .section-heading .eyebrow { color: #71a5ff; }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.16); }
.value-grid article { min-height: 260px; padding: 34px 30px; background: #0f1017; }
.value-grid span { color: #6fa4ff; font-size: 12px; font-weight: 800; }
.value-grid h3 { margin: 54px 0 12px; font-size: 22px; }
.value-grid p { margin: 0; color: rgba(231,238,249,.68); font-size: 14px; line-height: 1.8; }

.functions { background: #0b0c11; }
.function-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.function-grid article { display: grid; grid-template-columns: 66px 1fr; gap: 22px; min-height: 210px; padding: 34px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255, .045); box-shadow: 0 20px 54px rgba(0, 0, 0, .18); }
.function-grid article:last-child { grid-column: 1 / -1; min-height: 170px; }
.function-no { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 10px; color: var(--blue); background: var(--blue-soft); font-size: 13px; font-weight: 800; }
.function-grid h3 { margin: 4px 0 12px; font-size: 23px; }
.function-grid p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }

.screens { background: #07070a; }
.screen-tabs { display: flex; gap: 8px; margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.screen-tabs button { flex: 0 0 auto; padding: 12px 20px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: rgba(255, 255, 255, .035); cursor: pointer; transition: .2s ease; }
.screen-tabs button.active { border-color: var(--blue); color: #061117; background: var(--blue); }
.screen-stage { display: grid; grid-template-columns: 260px 1fr; border: 1px solid var(--line); border-radius: 16px; background: #0f1017; overflow: hidden; box-shadow: var(--shadow); }
.screen-copy { padding: 36px 30px; }
.screen-copy span { color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.screen-copy h3 { margin: 20px 0 14px; font-size: 27px; }
.screen-copy p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.85; }
.screen-stage figure { margin: 0; padding: 18px; background: rgba(255, 255, 255, .035); }
.screen-stage img { width: 100%; border-radius: 7px; box-shadow: 0 12px 30px rgba(38, 62, 96, .16); }

.result-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: end; padding: 100px max(32px, calc((100% - 1216px) / 2)); color: #fff; border-block: 1px solid var(--line); background: linear-gradient(115deg, rgba(48, 213, 255, .12), rgba(155, 140, 255, .08)), #0f1017; }
.result-section h2 { max-width: 600px; margin: 0; font-size: clamp(38px, 4vw, 62px); line-height: 1.16; letter-spacing: -.04em; }
.result-section .eyebrow { color: #a9c8ff; }
.result-section > p { margin: 0; color: rgba(255,255,255,.78); font-size: 17px; line-height: 1.9; }

footer { display: flex; justify-content: space-between; gap: 24px; padding: 34px max(32px, calc((100% - 1216px) / 2)); color: var(--muted); background: #07070a; font-size: 13px; }
footer a { color: var(--blue); font-weight: 700; }

.floating-scrollbar {
  position: fixed;
  top: 88px;
  right: 8px;
  bottom: 88px;
  z-index: 10000;
  width: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}
.floating-scrollbar.is-visible { opacity: .42; }
.floating-scrollbar:hover,
.floating-scrollbar.is-dragging { opacity: .92; }
.floating-scrollbar::before {
  position: absolute;
  inset: 0 5px 0 auto;
  width: 1px;
  content: "";
  background: rgba(255, 255, 255, .12);
}
.floating-scrollbar span {
  position: absolute;
  top: 0;
  right: 2px;
  width: 6px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .34);
  cursor: grab;
  pointer-events: auto;
  transition: width 160ms ease, background 160ms ease;
}
.floating-scrollbar:hover span,
.floating-scrollbar.is-dragging span {
  right: 1px;
  width: 8px;
  background: #fff;
}
.floating-scrollbar.is-dragging span { cursor: grabbing; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; padding-top: 64px; }
  .hero-copy { max-width: 780px; }
  .value-grid { grid-template-columns: 1fr 1fr; }
  .screen-stage { grid-template-columns: 1fr; }
  .section-heading h2 { white-space: normal; }
  .screen-copy { display: grid; grid-template-columns: 80px 180px 1fr; align-items: start; gap: 18px; }
  .screen-copy h3, .screen-copy p { margin: 0; }
}

@media (max-width: 700px) {
  .case-header { width: calc(100% - 32px); height: 64px; }
  .case-type { display: none; }
  .hero { width: calc(100% - 32px); min-height: 0; padding: 54px 0 72px; }
  .hero h1 { font-size: clamp(42px, 13vw, 60px); }
  .hero h1 span { white-space: normal; }
  .hero-lead { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-visual { padding: 8px; border-radius: 11px; }
  .pain-points, .functions, .screens { padding: 76px 16px; }
  .section-heading { margin-bottom: 34px; }
  .section-heading h2 { font-size: 34px; }
  .value-grid, .function-grid { grid-template-columns: 1fr; }
  .function-grid article:last-child { grid-column: auto; }
  .value-grid article { min-height: 210px; }
  .function-grid article { grid-template-columns: 52px 1fr; gap: 14px; padding: 24px 20px; }
  .screen-copy { display: block; padding: 26px 22px; }
  .screen-copy h3 { margin: 14px 0 10px; }
  .screen-stage figure { padding: 8px; overflow-x: auto; }
  .screen-stage img { width: 920px; max-width: none; }
  .result-section { grid-template-columns: 1fr; gap: 28px; padding: 76px 16px; }
  footer { flex-direction: column; padding: 28px 16px; }
  .floating-scrollbar { top: 74px; right: 4px; bottom: 74px; width: 10px; }
  .floating-scrollbar span { right: 1px; width: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
