* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --brand: #8c1d1d;
  --gold: #c9a227;
  --ink: #262626;
  --muted: #8c8c8c;
  --line: #f0ece8;
  --bg: #f5f3f0;
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

.wrap { padding: 0 16px 24px; }

/* 顶部导航 */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--brand); color: #fff;
  padding: calc(env(safe-area-inset-top) + 12px) 16px 12px;
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 600;
}
.nav .back { font-size: 20px; font-weight: 400; line-height: 1; }

/* 底部标签栏 */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; background: #fff; border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  flex: 1; text-align: center; padding: 10px 0 8px;
  font-size: 12px; color: #8a8a8a;
}
.tabbar a.on { color: var(--brand); font-weight: 600; }
.tabbar a i { display: block; font-size: 18px; font-style: normal; line-height: 1.3; }

/* 首屏 */
.hero { position: relative; height: 300px; background: #222; }
.hero img { height: 100%; object-fit: cover; }
.hero .mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,10,10,.30) 0%, rgba(20,10,10,.85) 100%);
}
.hero .txt { position: absolute; left: 20px; right: 20px; bottom: 28px; color: #fff; }
.hero .brand { font-size: 12px; letter-spacing: 3px; color: var(--gold); }
.hero h1 { font-size: 28px; font-weight: 700; margin: 8px 0 6px; letter-spacing: 1px; }
.hero .sub { font-size: 13px; opacity: .88; }

/* 标题 */
.sec-title { font-size: 20px; font-weight: 700; margin: 28px 0 4px; letter-spacing: 1px; }
.sec-sub { font-size: 13px; color: var(--muted); margin-bottom: 14px; }

/* 卡片 */
.card { background: #fff; border-radius: 12px; overflow: hidden; margin-bottom: 14px;
        box-shadow: 0 1px 8px rgba(0,0,0,.05); }
.card.pad { padding: 18px; }

/* 简介 */
.about-img { height: 200px; object-fit: cover; }
.about-body { padding: 16px 18px 18px; }
.about-body p { font-size: 14.5px; color: #4a4a4a; margin-bottom: 10px; text-indent: 2em; }
.about-body p:last-child { margin-bottom: 0; }

/* 数据 */
.stats { display: flex; background: #fff; border-radius: 12px; padding: 18px 0;
         box-shadow: 0 1px 8px rgba(0,0,0,.05); }
.stats div { flex: 1; text-align: center; }
.stats b { display: block; font-size: 22px; color: var(--brand); }
.stats b em { font-size: 13px; font-style: normal; }
.stats span { font-size: 11.5px; color: var(--muted); }

/* 产品卡 */
.pcard { background: #fff; border-radius: 12px; overflow: hidden; margin-bottom: 14px;
         box-shadow: 0 1px 8px rgba(0,0,0,.05); }
.pcard img { height: 190px; object-fit: cover; background: #e8e4e0; }
.pcard .body { padding: 14px 16px 16px; }
.pcard .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pcard .name { font-size: 17px; font-weight: 700; }
.pcard .tag { font-size: 11px; color: var(--brand); background: #fbeaea;
              padding: 2px 9px; border-radius: 99px; white-space: nowrap; }
.pcard .brief { font-size: 13px; color: #7a7a7a; margin-top: 6px; }
.pcard .more { font-size: 13px; color: var(--brand); margin-top: 8px; }

/* 产品列表行 */
.row { display: flex; background: #fff; border-radius: 12px; overflow: hidden;
       margin-bottom: 12px; box-shadow: 0 1px 8px rgba(0,0,0,.05); }
.row img { width: 118px; height: 118px; object-fit: cover; background: #e8e4e0; flex: 0 0 auto; }
.row .body { padding: 12px 14px; min-width: 0; }
.row .name { font-size: 15.5px; font-weight: 700; }
.row .tagline { font-size: 12.5px; color: var(--brand); margin-top: 4px; }
.row .brief { font-size: 12px; color: var(--muted); margin-top: 5px;
              display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 厂容 */
.gal { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gal img { height: 120px; object-fit: cover; border-radius: 10px; background: #e8e4e0; }

/* 视频 */
.vwrap { margin-bottom: 16px; }
.vwrap video {
  width: 100%; display: block; border-radius: 12px; background: #000;
  aspect-ratio: 16 / 9; object-fit: contain;
}
.vwrap .vtitle { font-size: 13px; color: #7a7a7a; margin-top: 6px; padding-left: 2px; }

/* 按钮 */
.btn {
  display: block; text-align: center; border-radius: 99px;
  padding: 13px; font-size: 15px; margin-bottom: 10px;
}
.btn-main { background: var(--brand); color: #fff; }
.btn-ghost { background: #fff; color: var(--brand); border: 1px solid var(--brand); }

/* 详情 */
.swiper { display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
          -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.swiper::-webkit-scrollbar { display: none; }
.swiper img { flex: 0 0 100%; width: 100%; height: 260px; object-fit: cover;
              scroll-snap-align: start; background: #e8e4e0; }
.dhead { background: #fff; padding: 18px 16px; }
.dhead h2 { font-size: 21px; line-height: 1.35; }
.dhead .tagline { font-size: 14px; color: var(--brand); margin-top: 6px; }
.badges { margin-top: 10px; }
.badges span { display: inline-block; font-size: 11.5px; color: #8c5a1d;
               background: #fdf4e3; padding: 3px 10px; border-radius: 99px; margin: 0 6px 6px 0; }

.feat { display: flex; background: #fff; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.feat:last-child { border-bottom: none; }
.feat b { width: 100px; flex: 0 0 auto; color: var(--brand); font-size: 14px; }
.feat span { font-size: 13.5px; color: #4a4a4a; }
.feat:first-child { border-radius: 12px 12px 0 0; }
.feat:last-child { border-radius: 0 0 12px 12px; }

.spec { display: flex; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.spec:last-child { border-bottom: none; }
.spec b { width: 96px; flex: 0 0 auto; color: var(--muted); font-weight: 400; }
.spec span { flex: 1; }

/* 联系 */
.ctop { text-align: center; padding: 30px 0 22px; }
.ctop .logo { width: 72px; height: 72px; line-height: 72px; margin: 0 auto 12px;
              background: var(--brand); color: #f0d68a; border-radius: 16px;
              font-size: 26px; font-weight: 700; }
.ctop h2 { font-size: 19px; }
.ctop .en { font-size: 11px; color: #b0a89f; letter-spacing: 3px; margin-top: 3px; }
.ctop .slogan { font-size: 13px; color: var(--muted); margin-top: 6px; }

.item { display: flex; align-items: center; padding: 15px 16px; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: none; }
.item .k { width: 76px; flex: 0 0 auto; color: var(--muted); font-size: 13px; }
.item .v { flex: 1; font-size: 15px; word-break: break-all; }
.item .v.small { font-size: 13px; line-height: 1.5; }
.item .a { color: var(--brand); font-size: 13px; flex: 0 0 auto; margin-left: 8px; }

.qrbox { padding: 22px; text-align: center; }
.qrbox img { width: 190px; margin: 0 auto 8px; }

.foot { text-align: center; color: #b8b0a8; font-size: 11.5px; margin: 26px 0 10px; }

/* 安装提示条 */
#install {
  display: none; position: fixed; left: 12px; right: 12px;
  bottom: calc(74px + env(safe-area-inset-bottom));
  background: #1f1f1f; color: #fff; border-radius: 12px;
  padding: 12px 14px; font-size: 13px; z-index: 70;
  box-shadow: 0 6px 22px rgba(0,0,0,.25);
}
#install button {
  float: right; background: var(--gold); color: #2a1a00; border: 0;
  border-radius: 99px; padding: 4px 12px; font-size: 12px; margin-left: 10px;
}
