/*
  设计决定（改之前先看这里）：
  - 主色只有一个：门店灯牌的红。MIUIX 的主题色本来就可以换成品牌色。
  - 底色一个：MIUIX 的 #f7f7f7，平的，不加渐变。分组列表用白底 + 细线，不加阴影。
  - 玻璃只用在两处浮动导航上（iOS 27），其他地方不用。
  - 动效用于反馈：导航下滑隐藏、上滑出现；图片加载时扫光、完成后淡入。卡片不做放大、上浮。
  - 字体用系统字：国内访问不用等字体下载，苹方和 MiSans 也都是手机上看着最习惯的字。
*/
:root {
  --bg: #f7f7f7;
  --surface: #fff;
  --ink: #15151a;
  --ink-2: #4c4c52;
  --line: #e0e0e0;
  --red: #c8201a;
  --red-dark: #a91812;
  --tile: #ececec;
  --r: 12px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "MiSans", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
  accent-color: var(--red);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--red); color: #fff; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; text-wrap: balance; }
p { text-wrap: pretty; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 76px; }
.num { font-variant-numeric: tabular-nums; }
.sprite { position: absolute; }
.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
.ico { width: 28px; height: 28px; flex: none; border-radius: 23%; }
.chev { width: 8px; height: 13px; flex: none; color: #9a9aa0; }

/* 图片占位保留原有尺寸；慢加载和失败后停止动效，允许单独重试。 */
.image-frame { position: relative; overflow: hidden; background: var(--tile); }
.image-frame > img { transition: opacity .24s ease; }
.image-frame.is-loading > img,
.image-frame.is-slow > img,
.image-frame.is-error > img { opacity: 0; }
.image-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  padding: 12px; background: var(--tile); color: var(--ink-2);
  text-align: center; font-size: 14px; line-height: 1.5;
}
.image-placeholder::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 25%, rgba(255,255,255,.6) 50%, transparent 75%);
  transform: translateX(-100%); animation: image-shimmer 1.8s ease-in-out infinite;
}
.image-placeholder-content { position: relative; display: grid; justify-items: center; gap: 8px; }
.image-retry {
  min-width: 64px; min-height: 44px; padding: 6px 14px;
  border: 1px solid #b7b7bc; border-radius: 8px;
  background: var(--surface); color: var(--red); font-size: 14px; font-weight: 600;
}
.image-retry:hover { border-color: var(--red); }
.is-loaded > .image-placeholder { display: none; }
.is-slow > .image-placeholder::before,
.is-error > .image-placeholder::before { animation: none; display: none; }
@keyframes image-shimmer { to { transform: translateX(100%); } }

/* 玻璃：只给浮动导航用 */
.glass {
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 0 0 .5px rgba(0, 0, 0, .16),
    0 6px 16px -8px rgba(0, 0, 0, .28);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: #fff; }
}

/* 顶部导航：下滑隐藏，上滑出现 */
.site-head {
  position: sticky; top: 10px; z-index: 30; margin-top: 10px;
  transition: transform .34s var(--ease);
}
.nav-hidden .site-head { transform: translateY(calc(-100% - 14px)); }
.site-head:focus-within { transform: none; }
.head-row {
  display: flex; align-items: center; gap: 18px;
  width: min(1160px, 100% - 32px); min-height: 54px; margin-inline: auto; padding: 6px 12px 6px 20px;
  border-radius: 999px;
}
.brand { flex: none; color: var(--red); font-size: 19px; font-weight: 800; letter-spacing: .08em; text-decoration: none; white-space: nowrap; }
.main-nav { display: flex; gap: 2px; margin-left: auto; }
.main-nav a {
  padding: 6px 13px; border-radius: 999px;
  font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: color .15s, background .15s;
}
.main-nav a:hover { background: rgba(0, 0, 0, .06); }
.main-nav a.is-on { color: var(--red); }
.head-links { display: flex; align-items: center; gap: 8px; flex: none; }
.head-links a, .head-links button {
  display: flex; align-items: center; gap: 7px;
  padding: 0; border: 0; background: none;
  font-size: 16px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.head-tel { margin-right: 6px; font-variant-numeric: tabular-nums; }
.head-tel:hover { color: var(--red); }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 8px 24px; border-radius: var(--r); border: 1.500px solid transparent;
  font-size: 17px; font-weight: 700; text-decoration: none;
  transition: background .15s, color .15s;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-line { background: transparent; border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }

/* 首屏 */
.hero { padding: 40px 0 0; }
.hero-top { display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: end; margin-bottom: 32px; }
.hero-name { display: block; color: var(--red); font-size: clamp(52px, 7vw, 92px); font-weight: 800; line-height: 1.08; letter-spacing: .03em; }
.hero-what { display: block; margin-top: 10px; font-size: clamp(22px, 2.600vw, 32px); font-weight: 700; }
.hero-lead { margin-top: 14px; max-width: 32em; font-size: 18px; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.facts > div { display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-2); font-size: 16px; }
.facts dd { font-size: 17px; font-weight: 600; line-height: 1.5; }
.facts a { text-decoration: none; }
.facts a:hover { color: var(--red); text-decoration: underline; }
.hero-photo { width: 100%; aspect-ratio: 2 / 1; border-radius: var(--r); }
.hero-photo > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }

/* 分区 */
.sec { padding: 88px 0; }
.sec-head { max-width: 680px; margin-bottom: 36px; }
.sec h2, .whole h2 { font-size: clamp(30px, 3.300vw, 40px); font-weight: 800; }
.sec-head p { margin-top: 10px; font-size: 18px; color: var(--ink-2); }

/* 手机 */
.phone-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: start; }
.phone-side h2 { margin-bottom: 28px; }
.nb { display: inline-block; }
.phone-pic { display: flex; justify-content: center; align-items: flex-end; gap: 2%; padding: 34px 24px 0; border-radius: var(--r); background: var(--tile); overflow: hidden; }
.phone-pic img { width: 100%; height: auto; }
.phone-pic .image-frame:first-child { width: 57%; aspect-ratio: 633 / 763; }
.phone-pic .image-frame:last-child { width: 37%; aspect-ratio: 436 / 764; margin-bottom: -20px; }
.phone-list article { padding: 20px 0; border-top: 1px solid var(--line); }
.phone-list article:first-child { padding-top: 0; border-top: 0; }
.phone-list h3 { font-size: 24px; }
.phone-list article p { margin-top: 4px; color: var(--ink-2); }
.phone-more { padding: 18px 0 22px; border-top: 1px solid var(--line); }

/* 批发：整条灯牌红 */
.whole { background: var(--red); color: #fff; padding: 56px 0; }
.whole-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 48px; }
.whole p { margin-top: 8px; font-size: 18px; color: #fff; }
.whole-contact { display: grid; justify-items: start; gap: 8px; }
.whole-num { font-size: clamp(36px, 4.800vw, 58px); font-weight: 800; line-height: 1.1; text-decoration: none; font-variant-numeric: tabular-nums; }
.whole-num:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.whole-wx { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: #fff; font-size: 17px; font-weight: 600; text-align: left; }
.whole-wx:hover { text-decoration: underline; }

/* 配件 */
.acc-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 32px 20px; }
.a-big { grid-row: span 2; }
.a-pic { height: 196px; padding: 18px; border-radius: var(--r); background: var(--tile); }
.a-big .a-pic { height: 520px; padding: 40px; }
.a-pic img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .2)); }
.a-item h3 { margin-top: 12px; font-size: 21px; }
.a-big h3 { font-size: 26px; }
.a-item p { margin-top: 2px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.fine { margin-top: 24px; font-size: 15px; color: var(--ink-2); }

/* AI */
.sec-ai { background: var(--surface); }
.ai-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-bottom: 26px; }
.ai-paths h3 { padding-bottom: 12px; border-bottom: 2px solid var(--ink); font-size: 24px; }
.learn { counter-reset: s; }
.learn li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr; padding: 11px 0; border-bottom: 1px solid var(--line); line-height: 1.5; }
.learn li::before { content: counter(s); color: var(--red); font-weight: 800; font-variant-numeric: tabular-nums; }

.prompt { margin-top: 72px; padding-top: 32px; border-top: 2px solid var(--ink); }
.prompt-head h3 { font-size: 26px; }
.prompt-head p { margin-top: 6px; max-width: 40em; color: var(--ink-2); }
.prompt-tabs { display: inline-grid; grid-template-columns: repeat(3, auto); gap: 2px; margin: 20px 0 22px; padding: 3px; border-radius: 10px; background: #e6e6e6; }
.prompt-tabs button {
  min-height: 38px; padding: 3px 18px; border: 0; border-radius: 8px; background: none;
  font-size: 16px; font-weight: 600; white-space: nowrap;
  transition: background .15s;
}
.prompt-tabs button[aria-selected="true"] { background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.prompt-panel { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: start; }
.say h4 { font-size: 16px; font-weight: 700; color: var(--ink-2); }
.say p { margin-top: 6px; font-size: 19px; line-height: 1.6; }
.say-bad p { color: var(--ink-2); }
.say-good h4 { color: var(--red); }
.say-good p { font-weight: 600; }
.copy {
  margin-top: 12px; min-height: 40px; padding: 4px 16px; border-radius: var(--r);
  border: 1.500px solid var(--ink); background: none;
  font-size: 15.500px; font-weight: 700;
  transition: background .15s, color .15s;
}
.copy:hover { background: var(--ink); color: #fff; }
.prompt-note { margin-top: 22px; color: var(--ink-2); }

/* 门店 */
.sign-band { width: 100%; height: clamp(110px, 15vw, 190px); border-radius: var(--r); }
.sign-band > img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.about-grid { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; margin-top: 36px; }
.about-num { display: flex; align-items: baseline; color: var(--red); line-height: .9; }
.about-num b { font-size: clamp(110px, 15vw, 180px); font-weight: 800; letter-spacing: -.04em; }
.about-num span { margin-left: 6px; font-size: 36px; font-weight: 800; }
.about-grid h2 + p { margin-top: 10px; max-width: 34em; font-size: 18px; color: var(--ink-2); }

/* MIUIX 分组列表 */
.group { background: var(--surface); border-radius: var(--r); }
.sec-faq { background: #efefef; }
.faq-grid { display: grid; grid-template-columns: 1fr 2.2fr; gap: 48px; align-items: start; }
.faq-list { overflow: hidden; }
details + details { box-shadow: inset 0 1px 0 var(--line); }
summary {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 15px 20px; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 600; line-height: 1.45;
}
summary:hover { color: var(--red); }
summary::-webkit-details-marker { display: none; }
summary .chev { rotate: 90deg; transition: rotate .2s; }
details[open] summary .chev { rotate: -90deg; }
details p { padding: 0 20px 16px; color: var(--ink-2); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.contact-grid .sec-head { margin-bottom: 0; }
.c-list { overflow: hidden; }
.c-row {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 62px;
  padding: 10px 18px; border: 0; background: none;
  font: inherit; text-align: left; text-decoration: none;
  transition: background .15s;
}
a.c-row:hover, button.c-row:hover { background: #f4f4f4; }
.c-row + .c-row { box-shadow: inset 0 1px 0 var(--line); }
.c-row .ico { width: 38px; height: 38px; }
.c-text { flex: 1; min-width: 0; display: grid; line-height: 1.4; }
.c-text small { font-size: 15px; color: var(--ink-2); }
.c-text b { font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.c-row em { flex: none; font-style: normal; font-size: 16px; font-weight: 600; color: var(--red); }
.wechat-qr { border-radius: 8px; }

/* 页脚 */
.foot { padding: 22px 0 28px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; }
.foot a { margin-left: 8px; }
.foot-tm { width: 100%; font-size: 14px; }

/* 底部浮动胶囊（手机） */
.dock { display: none; }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 50;
  translate: -50% 10px; opacity: 0; pointer-events: none;
  width: max-content; max-width: calc(100% - 32px); padding: 9px 16px; border-radius: var(--r);
  background: var(--ink); color: #fff;
  font-size: 16px; text-align: center;
  transition: opacity .18s, translate .18s;
}
.toast.show { opacity: 1; translate: -50% 0; }

/* 平板 */
@media (max-width: 1080px) {
  .head-tel span { display: none; }
  .head-tel { margin-right: 0; }
  .hero-top { gap: 40px; }
  .phone-grid { gap: 40px; }
  .acc-grid { grid-template-columns: repeat(2, 1fr); }
  .a-big { grid-column: span 2; grid-row: auto; }
  .a-big .a-pic { height: 340px; padding: 28px; }
}
@media (max-width: 860px) {
  .hero-top, .phone-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .phone-side h2 { max-width: none; margin-bottom: 20px; }
  .phone-pic { max-width: 440px; }
  .ai-paths { grid-template-columns: 1fr; gap: 32px; }
  .prompt-panel { grid-template-columns: 1fr; gap: 20px; }
  .about-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* 手机 */
@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  section[id] { scroll-margin-top: 66px; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }

  .site-head { top: 8px; margin-top: 8px; }
  .nav-hidden .site-head { transform: translateY(calc(-100% - 12px)); }
  .head-row { width: calc(100% - 24px); min-height: 44px; gap: 0; padding: 3px 6px; }
  .brand, .head-links { display: none; }
  .main-nav { flex: 1; justify-content: space-between; gap: 0; margin: 0; }
  .main-nav a { padding: 6px 10px; font-size: 16.500px; }

  .hero { padding-top: 22px; }
  .hero-top { margin-bottom: 20px; }
  .hero-name { font-size: min(54px, 14.500vw); }
  .hero-what { margin-top: 8px; font-size: min(22px, 5.800vw); }
  .hero-lead { font-size: 17px; }
  .hero-actions { margin-top: 18px; }
  .hero-actions .btn { flex: 1 1 120px; }
  .hero-photo { aspect-ratio: 3 / 2; }

  .sec { padding: 60px 0; }
  .sec-head { margin-bottom: 24px; }
  .sec h2, .whole h2 { font-size: 28px; }
  .sec-head p { font-size: 17px; }

  .phone-pic { padding: 22px 18px 0; }
  .phone-list h3 { font-size: 22px; }
  .phone-list .btn { width: 100%; }

  .whole { padding: 40px 0; }
  .whole p { font-size: 17px; }
  .whole-num { font-size: min(42px, 11.200vw); }

  .acc-grid { gap: 24px 12px; }
  .a-pic { height: 150px; padding: 14px; }
  .a-big .a-pic { height: 260px; padding: 20px; }
  .a-item h3 { font-size: 20px; }
  .a-big h3 { font-size: 22px; }

  .sec-ai .btn { width: 100%; }
  .prompt { margin-top: 52px; padding-top: 24px; }
  .prompt-head h3 { font-size: 22px; }
  .prompt-tabs { display: grid; grid-template-columns: repeat(3, 1fr); }
  .prompt-tabs button { padding-inline: 2px; }
  .say p { font-size: 17px; }

  .about-num b { font-size: 104px; }
  .about-num span { font-size: 30px; }
  .about-grid h2 + p { font-size: 17px; }

  summary { padding: 14px 16px; }
  details p { padding: 0 16px 14px; }
  .c-row { padding: 10px 14px; }

  .dock {
    position: fixed; z-index: 40; left: 50%; translate: -50% 0;
    bottom: calc(10px + env(safe-area-inset-bottom));
    display: flex; gap: 2px; padding: 4px 8px; border-radius: 999px;
    transition: transform .34s var(--ease);
  }
  .nav-hidden .dock { transform: translateY(calc(100% + 24px + env(safe-area-inset-bottom))); }
  .dock:focus-within { transform: none; }
  .dock a, .dock button { display: grid; place-items: center; width: 44px; height: 40px; padding: 0; border: 0; background: none; }
  .dock .ico { width: 30px; height: 30px; }
  .toast { bottom: calc(70px + env(safe-area-inset-bottom)); }
}

@media (max-width: 360px) {
  .main-nav a { padding: 6px 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .image-placeholder::before { animation: none; display: none; }
}
