/* ============================================================
   HONO.IoT — Editorial Industrial design system
   Replaces glassmorphism. Black/white + amber accent.
   ============================================================ */

/* --- Reset --- */
*,*::before,*::after { box-sizing: border-box; }
html,body,h1,h2,h3,h4,h5,h6,p,ul,ol,figure,blockquote,dl,dd { margin: 0; padding: 0; }
ul,ol { list-style: none; }
img,svg,video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input,textarea,select { font: inherit; color: inherit; }
table { border-collapse: collapse; border-spacing: 0; }

/* --- Tokens --- */
:root {
  --ink-1000: #0A0A0A;
  --ink-900:  #1A1A1A;
  --ink-800:  #2B2B2B;
  --ink-700:  #4A4A4A;
  --ink-500:  #8A8A8A;
  --ink-300:  #C9C9C9;
  --ink-200:  #E5E5E2;
  --ink-100:  #F1F1EE;
  --ink-50:   #FAFAF8;
  --paper:    #FFFFFF;

  --accent:        #C84B1F;  /* burnt amber */
  --brand:         #3B82F6;  /* electric blue (lighter) */
  --accent-soft:   #E85D04;
  --accent-ink:    #6B1F00;

  --line:        #E5E5E2;
  --line-strong: #1A1A1A;

  --font-sans:    "Inter", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter Tight", "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --container:    1280px;
  --gutter:       24px;

  --r-0: 0;
  --r-1: 2px;
  --r-2: 4px;

  --t-fast:  .18s cubic-bezier(.2,.7,.3,1);
  --t-base:  .32s cubic-bezier(.2,.7,.3,1);
}

/* --- Base --- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--paper);
  font-feature-settings: "kern" 1, "liga" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--accent); color: #fff; }

/* --- Typography --- */
.t-display { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.04; font-weight: 700; }
.t-mono    { font-family: var(--font-mono); letter-spacing: 0.02em; }
.t-mute    { color: var(--ink-500); }
.t-upper   { text-transform: uppercase; letter-spacing: 0.16em; }
.t-num     { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.t-cn-14   { font-size: 14px; }
.t-cn-12   { font-size: 12px; }

/* --- Layout --- */
.container { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.container-narrow { max-width: 920px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: 64px 0; }
.section-lg { padding: 88px 0; }
@media (max-width: 720px) { .section { padding: 40px 0; } .section-lg { padding: 56px 0; } }

.row { display: flex; gap: 24px; }
.row-wrap { flex-wrap: wrap; }

/* --- Skip link --- */
.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--ink-1000); color: #fff;
  padding: 10px 14px; z-index: 1000; font-size: 14px;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 16px; outline: 2px solid var(--accent); outline-offset: 2px; }

/* ============================================================
   TOP NAV
   ============================================================ */
.topnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topnav-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 14px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
}
.topnav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 16px; letter-spacing: -0.01em;
  color: var(--ink-1000);
}
.topnav-logo svg { color: var(--accent); }
.topnav-logo .dot { color: var(--accent); margin: 0 2px; }

.topnav-menu {
  display: flex; gap: 4px;
  justify-self: center;
}
.topnav-menu a {
  position: relative;
  display: inline-block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--ink-900);
  transition: color var(--t-fast);
}
.topnav-menu a::after {
  content: ""; position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-base);
}
.topnav-menu a:hover { color: var(--ink-1000); }
.topnav-menu a:hover::after { transform: scaleX(1); }
.topnav-menu a.is-active { color: var(--ink-1000); }
.topnav-menu a.is-active::after { transform: scaleX(1); }

.topnav-meta {
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; color: var(--ink-700);
}
.topnav-meta .lab { color: var(--ink-500); margin-right: 6px; }
.topnav-meta a { font-family: var(--font-mono); color: var(--ink-1000); }

.topnav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px;
  background: var(--brand); color: #fff;
  font-size: 13px; font-family: var(--font-mono);
  transition: background var(--t-fast);
}
.topnav-cta:hover { background: var(--accent); }

.topnav-toggle {
  display: none;
  width: 36px; height: 36px;
  position: relative;
}
.topnav-toggle span {
  display: block; position: absolute;
  left: 9px; right: 9px; height: 1.5px;
  background: var(--ink-1000);
  transition: transform var(--t-base), opacity var(--t-fast);
}
.topnav-toggle span:nth-child(1) { top: 12px; }
.topnav-toggle span:nth-child(2) { top: 17px; }
.topnav-toggle span:nth-child(3) { top: 22px; }
.topnav-toggle.is-open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.topnav-toggle.is-open span:nth-child(2) { opacity: 0; }
.topnav-toggle.is-open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1080px) {
  .topnav-menu { display: none; }
  .topnav-inner { grid-template-columns: auto 1fr auto auto; }
}
@media (max-width: 920px) {
  .topnav-cta { display: none; }
  .topnav-meta { display: none; }
}
@media (max-width: 720px) {
  .topnav-inner {
    grid-template-columns: 1fr auto;
    padding: 12px 16px;
    gap: 12px;
  }
  .topnav-logo { font-size: 14px; min-width: 0; }
  .topnav-logo .logo-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topnav-toggle { display: block; }
}
@media (max-width: 380px) {
  .topnav-logo .logo-text { max-width: 200px; }
}

/* Mobile menu drawer */
.mm {
  position: fixed; inset: 0;
  background: var(--ink-50);
  z-index: 49;
  display: none;
  flex-direction: column;
  padding: 80px var(--gutter) 32px;
  opacity: 0; transition: opacity var(--t-base);
}
.mm.is-open { display: flex; opacity: 1; }
.mm a {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600;
  color: var(--ink-1000);
}
.mm .mm-cta {
  margin-top: 24px;
  display: inline-block;
  padding: 14px 20px;
  background: var(--ink-1000); color: #fff;
  font-size: 14px; font-family: var(--font-mono);
  border-bottom: 0;
}

/* ============================================================
   PAGE HERO (sub pages)
   ============================================================ */
.page-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
  background: var(--ink-50);
}
.page-hero .crumb {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-500);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.page-hero .crumb a { color: var(--ink-700); }
.page-hero .crumb a:hover { color: var(--accent); }
.page-hero .crumb .sep { margin: 0 8px; color: var(--ink-300); }

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink-1000);
  max-width: 16ch;
}
.page-hero h1 .accent { color: var(--accent); }
.page-hero .lede {
  margin-top: 20px;
  font-size: 18px; line-height: 1.6;
  color: var(--ink-700);
  max-width: 60ch;
}
.page-hero .meta {
  margin-top: 32px;
  display: flex; gap: 32px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-700);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.page-hero .meta b {
  display: block; font-family: var(--font-display);
  font-size: 22px; color: var(--ink-1000);
  font-weight: 600; letter-spacing: -0.02em;
  text-transform: none;
  margin-bottom: 4px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  font-size: 14px; font-family: var(--font-mono);
  letter-spacing: 0.04em;
  border: 1px solid var(--brand);
  background: var(--brand); color: #fff;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  cursor: pointer;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn--ghost { background: transparent; color: var(--ink-1000); }
.btn--ghost:hover { background: var(--brand); color: #fff; }
.btn--quiet { padding: 8px 12px; font-size: 13px; border-color: var(--line); }
.btn--quiet:hover { border-color: var(--ink-1000); }
.btn .arrow { transition: transform var(--t-base); }
.btn:hover .arrow { transform: translateX(4px); }

/* link arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 13px;
  color: var(--ink-1000);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--ink-1000);
  transition: color var(--t-fast), border-color var(--t-fast), gap var(--t-base);
}
.link-arrow:hover { color: var(--accent); border-color: var(--accent); gap: 12px; }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.sec-head { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; margin-bottom: 40px; align-items: end; }
@media (max-width: 720px) { .sec-head { grid-template-columns: 1fr; gap: 16px; } }
.sec-head .label { font-family: var(--font-mono); font-size: 12px; color: var(--ink-500); letter-spacing: 0.16em; text-transform: uppercase; }
.sec-head .label .num { color: var(--accent); }
.sec-head h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 36px);
  line-height: 1.06; letter-spacing: -0.02em;
  font-weight: 700; color: var(--ink-1000);
}
.sec-head .sub { color: var(--ink-700); font-size: 16px; max-width: 56ch; }

/* ============================================================
   HOME / HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 64px 0 48px;
  background: var(--ink-50);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(0,0,0,.04) 1px, transparent 1px);
  background-size: 80px 100%;
  pointer-events: none;
}
.hero-inner { position: relative; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.hero .row { max-width: 720px; }
@media (max-width: 920px) { .hero .row { max-width: 100%; } }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-700);
  letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-eyebrow .pip {
  width: 6px; height: 6px; background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%     { transform: scale(1.4); opacity: 0.4; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.8vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink-1000);
}
.hero h1 .line { display: block; }
.hero h1 .accent { color: var(--accent); }
.hero h1 em { font-style: normal; color: var(--ink-700); font-weight: 500; }

.hero-lede {
  margin-top: 24px;
  font-size: 16px; line-height: 1.65;
  color: var(--ink-700);
  max-width: 44ch;
}

.hero-cta {
  margin-top: 28px;
  display: flex; gap: 12px; flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-stats .stat {
  padding: 0 24px;
  border-right: 1px solid var(--line);
}
.hero-stats .stat:first-child { padding-left: 0; }
.hero-stats .stat:last-child  { border-right: 0; }
.hero-stats .b {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-1000);
}
.hero-stats .l {
  margin-top: 4px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-500);
}
@media (max-width: 720px) {
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .hero-stats .stat { border-right: 0; padding: 0; }
}

/* Marquee strip (home) */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
}
.marquee-track {
  display: flex; gap: 64px;
  padding: 14px 0;
  white-space: nowrap;
  animation: slide 40s linear infinite;
  font-family: var(--font-mono); font-size: 13px;
  color: var(--ink-700);
  letter-spacing: 0.04em;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 64px; }
.marquee-track .dot { color: var(--accent); }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.cat-tabs {
  display: flex; gap: 4px; flex-wrap: wrap;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
}
.cat-tabs button, .cat-tabs a {
  padding: 10px 16px;
  font-family: var(--font-mono); font-size: 13px;
  color: var(--ink-700);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.cat-tabs button:hover, .cat-tabs a:hover { color: var(--ink-1000); }
.cat-tabs .is-active { color: var(--ink-1000); border-color: var(--accent); }

.cards-wrap { position: relative; }
.cards-viewport { overflow: hidden; padding: 4px 0 8px; }
.cards {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: carousel-scroll 45s linear infinite;
}
.cards-wrap:hover .cards { animation-play-state: paused; }
@keyframes carousel-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 10px)); }
}
/* Auto-scroll disabled on touch devices via media query below */

.scroll-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background var(--t-base), border-color var(--t-base);
  font-size: 18px; color: var(--ink-700);
}
.scroll-btn:hover { background: var(--ink-50); border-color: var(--ink-300); }
.scroll-btn.left { left: -20px; }
.scroll-btn.right { right: -20px; }
@media (max-width: 768px) { .scroll-btn { display: none; } }

.card {
  flex: 0 0 360px;
  background: var(--paper);
  padding: 32px 28px 28px;
  display: flex; flex-direction: column;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.card:hover {
  border-color: var(--ink-300);
  box-shadow: 0 4px 20px rgba(10,10,10,0.06);
}
.card .num {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-500); letter-spacing: 0.08em;
}
.card .tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--ink-1000); color: #fff;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em;
  margin-left: 8px;
  vertical-align: 2px;
}
.card .tag.t-amber { background: var(--accent); }
.card .tag.t-cyan  { background: #0E7490; }
.card .tag.t-violet{ background: #5B21B6; }
.card .tag.t-pink  { background: #9D174D; }

.card .img {
  margin-top: 20px;
  aspect-ratio: 1 / 1;
  background: var(--ink-50);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: 16px;
}
.card .img img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform var(--t-base);
}
.card:hover .img img { transform: scale(1.04); }

.card h3 {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: 19px; line-height: 1.3;
  font-weight: 600; color: var(--ink-1000);
  letter-spacing: -0.01em;
}
.card .desc {
  margin-top: 8px;
  font-size: 14px; line-height: 1.6;
  color: var(--ink-700);
  min-height: 3.2em;
}
.card .specs {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: flex; flex-direction: column; gap: 4px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-700);
}
.card .specs li { display: flex; justify-content: space-between; gap: 12px; }
.card .specs b { color: var(--ink-1000); font-weight: 600; }

.card .more {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-1000);
  letter-spacing: 0.04em;
}
.card .more .arrow { transition: transform var(--t-base); }
.card:hover .more .arrow { transform: translateX(4px); }

/* card link full-bleed */
.card-link { display: contents; }

/* ============================================================
   CATEGORY GRID (home)
   ============================================================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 920px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; } }
.cat-grid .cat {
  background: var(--paper);
  padding: 36px 28px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 280px;
  position: relative;
  transition: background var(--t-base);
}
.cat-grid .cat:hover { background: var(--ink-1000); color: var(--paper); }
.cat-grid .cat:hover .icon { color: var(--accent); }
.cat-grid .cat:hover .arrow { background: var(--accent); color: #fff; border-color: var(--accent); }
.cat-grid .num { font-family: var(--font-mono); font-size: 12px; color: var(--ink-500); }
.cat-grid .icon { color: var(--ink-1000); transition: color var(--t-base); }
.cat-grid h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; color: inherit; }
.cat-grid .en  { font-family: var(--font-mono); font-size: 12px; color: var(--ink-500); letter-spacing: 0.04em; }
.cat-grid .desc { font-size: 14px; line-height: 1.6; color: inherit; opacity: .8; }
.cat-grid .stat { font-family: var(--font-mono); font-size: 12px; }
.cat-grid .stat b { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: inherit; margin-right: 6px; }
.cat-grid .arrow {
  position: absolute; top: 24px; right: 24px;
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-base), color var(--t-base), border-color var(--t-base);
}

/* ============================================================
   ABOUT / GENERIC SPLIT
   ============================================================ */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
@media (max-width: 920px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.facts {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.facts .fact { background: var(--paper); padding: 28px 24px; }
.facts .fact b {
  font-family: var(--font-display); font-size: 28px; font-weight: 700;
  letter-spacing: -0.02em; color: var(--ink-1000); display: block;
}
.facts .fact span { margin-top: 8px; display: block; font-family: var(--font-mono); font-size: 12px; color: var(--ink-500); letter-spacing: 0.08em; text-transform: uppercase; }

/* prose blocks */
.prose p { margin-bottom: 16px; color: var(--ink-800); font-size: 16px; line-height: 1.75; }
.prose p.lead { font-size: 20px; line-height: 1.6; color: var(--ink-1000); font-weight: 500; }
.prose p.lead em { font-style: normal; color: var(--accent); }
.prose h2, .prose h3 { font-family: var(--font-display); font-weight: 700; color: var(--ink-1000); letter-spacing: -0.01em; margin-top: 32px; margin-bottom: 12px; }
.prose h2 { font-size: 28px; }
.prose h3 { font-size: 20px; }
.prose ul { padding-left: 20px; list-style: disc; margin-bottom: 16px; color: var(--ink-800); }
.prose ul li { margin-bottom: 6px; }
.prose img { margin: 24px 0; border: 1px solid var(--line); }
.prose blockquote { border-left: 2px solid var(--accent); padding: 8px 20px; color: var(--ink-700); font-style: italic; margin: 20px 0; }

/* ============================================================
   PRODUCT DETAIL
   ============================================================ */
.pdetail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 920px) { .pdetail { grid-template-columns: 1fr; gap: 32px; } }

.pdetail .gallery { position: sticky; top: 88px; }
.pdetail .gallery .main {
  background: var(--ink-50);
  border: 1px solid var(--line);
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: 32px;
}
.pdetail .gallery .main img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.pdetail .gallery .thumbs { margin-top: 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pdetail .gallery .thumbs button {
  background: var(--ink-50);
  border: 1px solid var(--line);
  aspect-ratio: 1 / 1;
  cursor: pointer; padding: 4px;
  transition: border-color var(--t-fast);
}
.pdetail .gallery .thumbs button.is-active,
.pdetail .gallery .thumbs button:hover { border-color: var(--ink-1000); }
.pdetail .gallery .thumbs img { width: 100%; height: 100%; object-fit: contain; }

.pdetail .info .num {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--accent); letter-spacing: 0.16em;
}
.pdetail .info h1 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1.1; letter-spacing: -0.02em;
  font-weight: 700; color: var(--ink-1000);
}
.pdetail .info .tag-row { margin-top: 16px; display: flex; gap: 6px; flex-wrap: wrap; }
.pdetail .info .tag-row span {
  font-family: var(--font-mono); font-size: 11px;
  padding: 4px 10px; background: var(--ink-100); color: var(--ink-900);
  letter-spacing: 0.08em;
}
.pdetail .info .desc { margin-top: 24px; font-size: 16px; line-height: 1.7; color: var(--ink-800); }
.pdetail .info .actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.pdetail .spec-table {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
.pdetail .spec-table .row {
  display: grid; grid-template-columns: 200px 1fr;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.pdetail .spec-table .row .k {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-500); letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pdetail .spec-table .row .v { color: var(--ink-1000); }
@media (max-width: 560px) { .pdetail .spec-table .row { grid-template-columns: 1fr; gap: 4px; } }

/* Related products strip */
.related {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

/* ============================================================
   NEWS / ARTICLE LIST
   ============================================================ */
.news-list { display: flex; flex-direction: column; }
.news-list .item {
  display: grid; grid-template-columns: 100px 1fr 120px;
  align-items: center; gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left var(--t-base);
}
.news-list .item:first-child { border-top: 1px solid var(--line); }
.news-list .item:hover { padding-left: 12px; }
.news-list .item .num {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-500); letter-spacing: 0.08em;
}
.news-list .item h3 {
  font-family: var(--font-display); font-size: 19px;
  font-weight: 600; color: var(--ink-1000);
  letter-spacing: -0.01em;
}
.news-list .item .meta {
  margin-top: 6px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-500); letter-spacing: 0.04em;
}
.news-list .item .date {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-500);
  text-align: right;
}
.news-list .item .arrow {
  display: inline-block;
  transition: transform var(--t-base);
  color: var(--ink-1000);
}
.news-list .item:hover .arrow { transform: translateX(8px); }
@media (max-width: 720px) {
  .news-list .item { grid-template-columns: 60px 1fr; }
  .news-list .item .date { grid-column: 2; text-align: left; }
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pager {
  margin-top: 48px;
  display: flex; gap: 4px; align-items: center;
  font-family: var(--font-mono); font-size: 13px;
}
.pager a, .pager span {
  padding: 8px 14px;
  border: 1px solid var(--line);
  color: var(--ink-700);
}
.pager .is-current { background: var(--ink-1000); color: #fff; border-color: var(--ink-1000); }
.pager a:hover { border-color: var(--ink-1000); color: var(--ink-1000); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-card {
  background: var(--paper);
  color: var(--ink-1000);
  padding: 64px;
  border: 1px solid var(--line);
}
.contact-card .grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
}
@media (max-width: 920px) { .contact-card { padding: 40px 24px; } .contact-card .grid { grid-template-columns: 1fr; gap: 32px; } }
.contact-card .label { font-family: var(--font-mono); font-size: 12px; color: var(--ink-500); letter-spacing: 0.16em; text-transform: uppercase; }
.contact-card .label .accent-dot { color: var(--accent); }
.contact-card h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 36px); line-height: 1.1;
  letter-spacing: -0.02em; font-weight: 700;
  margin-top: 16px;
}
.contact-card h2 .accent { color: var(--accent); }
.contact-card .sub { margin-top: 16px; color: var(--ink-700); font-size: 16px; }
.contact-card .actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.contact-card .btn--ghost { color: var(--ink-1000); border-color: var(--line); }
.contact-card .btn--ghost:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.contact-card .btn { background: var(--accent); border-color: var(--accent); }
.contact-card .btn:hover { background: var(--ink-1000); color: #fff; border-color: var(--ink-1000); }

.contact-list { display: flex; flex-direction: column; }
.contact-list .row {
  display: grid; grid-template-columns: 110px 1fr;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.contact-list .row:first-child { border-top: 1px solid var(--line); }
.contact-list .k { font-family: var(--font-mono); font-size: 11px; color: var(--ink-500); letter-spacing: 0.08em; text-transform: uppercase; }
.contact-list .v { font-family: var(--font-display); font-size: 18px; color: var(--ink-1000); font-weight: 500; letter-spacing: -0.01em; }
.contact-list a.v:hover { color: var(--accent); }

/* ============================================================
   FORMS (feedback, search)
   ============================================================ */
.form { display: flex; flex-direction: column; gap: 0; }
.form .field {
  display: grid; grid-template-columns: 200px 1fr;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.form .field:first-child { border-top: 1px solid var(--line); }
.form .field label {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-700); letter-spacing: 0.08em;
  text-transform: uppercase; padding-top: 6px;
}
.form .field label .req { color: var(--accent); margin-left: 4px; }
.form .field input,
.form .field textarea,
.form .field select {
  width: 100%;
  padding: 8px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 15px; color: var(--ink-1000);
  transition: border-color var(--t-fast);
}
.form .field input:focus,
.form .field textarea:focus,
.form .field select:focus {
  outline: none; border-color: var(--brand);
}
.form .field textarea { resize: vertical; min-height: 120px; }
.form .field .hint { font-size: 12px; color: var(--ink-500); margin-top: 6px; }
.form .submit { margin-top: 24px; display: flex; gap: 12px; align-items: center; }
@media (max-width: 720px) {
  .form .field { grid-template-columns: 1fr; gap: 8px; }
}

/* search bar */
.search-bar {
  display: flex;
  border: 1px solid var(--ink-1000);
  background: var(--paper);
}
.search-bar input {
  flex: 1; padding: 12px 16px;
  border: 0; font-size: 15px;
  background: transparent;
}
.search-bar input:focus { outline: none; }
.search-bar button {
  padding: 0 20px;
  background: var(--brand); color: #fff;
  font-family: var(--font-mono); font-size: 13px;
  letter-spacing: 0.04em;
  transition: background var(--t-fast);
}
.search-bar button:hover { background: var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--paper);
  color: var(--ink-1000);
  border-top: 1px solid var(--line);
  padding: 56px 0 24px;
  margin-top: 64px;
}
.footer .grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 920px) { .footer .grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer .brand { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink-1000); }
.footer .brand svg { color: var(--accent); display: inline; vertical-align: -2px; margin-right: 8px; }
.footer .about { margin-top: 16px; color: var(--ink-700); font-size: 14px; line-height: 1.7; max-width: 36ch; }
.footer h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 16px; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: var(--ink-800); font-size: 14px; transition: color var(--t-fast); }
.footer ul a:hover { color: var(--accent); }

.footer .legal {
  margin-top: 32px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-500);
  letter-spacing: 0.04em;
}

/* ============================================================
   BACK TO TOP / TOAST
   ============================================================ */
.to-top {
  position: fixed; right: 24px; bottom: 24px;
  width: 44px; height: 44px;
  background: var(--brand); color: #fff;
  border: 1px solid var(--brand);
  display: none; align-items: center; justify-content: center;
  cursor: pointer; z-index: 40;
  transition: background var(--t-fast), transform var(--t-fast);
}
.to-top.is-show { display: flex; }
.to-top:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: var(--ink-1000); color: #fff;
  padding: 12px 20px;
  font-family: var(--font-mono); font-size: 13px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-base), transform var(--t-base);
  z-index: 60;
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .marquee-track, .hero-eyebrow .pip { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}
/* ============================================================
   MOTION · 动效层 (added 20260707)
   ============================================================ */

/* Loader bar — top progress like NProgress */
.np-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent);
  z-index: 200;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .25s ease, opacity .3s ease;
  pointer-events: none;
}
.np-bar.is-done { opacity: 0; }

/* Scroll indicator — bottom of hero */
.scroll-hint {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-500);
  letter-spacing: 0.16em; text-transform: uppercase;
  pointer-events: none;
}
.scroll-hint .line {
  width: 1px; height: 48px; background: var(--ink-200);
  position: relative; overflow: hidden;
}
.scroll-hint .line::after {
  content: ""; position: absolute; top: 0; left: 0;
  width: 1px; height: 24px; background: var(--accent);
  animation: scrollDown 1.6s ease-in-out infinite;
}
@keyframes scrollDown {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

/* Parallax target */
[data-parallax] { will-change: transform; }

/* 3D tilt */
.tilt { transform-style: preserve-3d; perspective: 1200px; }
.tilt-inner { transition: transform .25s cubic-bezier(.2,.7,.3,1); transform-style: preserve-3d; }
.tilt .tilt-glare {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.18), transparent 60%);
  opacity: 0; transition: opacity .25s ease;
}
.tilt:hover .tilt-glare { opacity: 1; }

/* Magnetic */
.magnetic { transition: transform .35s cubic-bezier(.2,.7,.3,1); will-change: transform; }

/* Split text */
.split-text { display: inline-block; }
.split-word {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding-bottom: 0.12em;
}
.split-word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform .9s cubic-bezier(.2,.7,.3,1);
}
.split-word.is-in > span { transform: translateY(0); }


/* Hero background drift */
@keyframes gridDrift {
  from { background-position: 0 0; }
  to   { background-position: 80px 0; }
}
.hero::before { animation: gridDrift 24s linear infinite; }

/* To-top progress ring */
.to-top { position: relative; }
.to-top svg.ring { position: absolute; inset: 0; pointer-events: none; transform: rotate(-90deg); }
.to-top svg.ring circle { transition: stroke-dashoffset .1s linear; }

/* Marquee enhanced — multi-direction */
.marquee-track .item { display: inline-flex; align-items: center; gap: 32px; }
.marquee-track .item::before {
  content: ""; display: inline-block;
  width: 4px; height: 4px; background: var(--accent);
  border-radius: 50%;
}

/* Number counter suffix */
[data-count] { font-variant-numeric: tabular-nums; }


/* ============================================================
   MOBILE HARDENING (added 20260707)
   ============================================================ */

/* Touch targets ≥ 44px */
@media (max-width: 920px) {
  .btn { min-height: 44px; }
  .nav-links a, .topnav-menu a { min-height: 44px; display: inline-flex; align-items: center; }
  .topnav-toggle { width: 44px; height: 44px; }
  .topnav-cta { min-height: 44px; padding: 12px 16px; }
}

/* Tablet (≤920px): hide topnav-cta phone number, keep only hamburger */
@media (max-width: 920px) {
  .topnav-cta { display: none; }
  .topnav-meta { display: none; }
}

/* Hero stats: stack to 2 columns cleanly on tablet, 1 on phone */
@media (max-width: 920px) and (min-width: 561px) {
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .hero-stats .stat { padding: 0 16px; border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
  .hero-stats .stat:nth-last-child(-n+2) { border-bottom: 0; padding-bottom: 0; }
}

/* Section head collapses cleanly */
@media (max-width: 720px) {
  .sec-head { grid-template-columns: 1fr; gap: 12px; }
  .page-hero .meta { gap: 16px; flex-wrap: wrap; }
  .page-hero .meta > div { flex: 1 1 calc(50% - 16px); }
}

/* Contact card padding mobile */
@media (max-width: 720px) {
  .contact-card { padding: 32px 20px; }
  .contact-card .grid { gap: 32px; }
}

/* Spec table: stack key/value on small screens */
@media (max-width: 560px) {
  .pdetail .spec-table .row { grid-template-columns: 1fr; gap: 4px; }
  .pdetail .gallery .main { padding: 16px; }
}

/* Footer: 1 column on phone */
@media (max-width: 560px) {
  .footer .grid { grid-template-columns: 1fr; gap: 24px; padding-bottom: 32px; }
  .footer .legal { flex-direction: column; gap: 8px; }
}

/* Forms: stack label/input on mobile */
@media (max-width: 560px) {
  .form .field { grid-template-columns: 1fr; gap: 8px; padding: 16px 0; }
  .form .submit { flex-direction: column; align-items: stretch; }
}

/* Hero on narrow phones: shrink the eyebrow/title */
@media (max-width: 480px) {
  .hero { padding: 64px 0 40px; }
  .hero h1 { font-size: 30px; line-height: 1.1; }
  .hero-eyebrow { font-size: 10px; margin-bottom: 20px; }
  .hero-stats { gap: 16px 0; }
  .hero-stats .b { font-size: 22px; }
  .hero-stats .l { font-size: 10px; }
  .hero-lede { font-size: 15px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}

/* Tables: horizontal scroll */
.prose table, table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Card spec table: keep on one line */
.card .specs li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
