/*
Theme Name: CHENHAN GROUP
Theme URI: https://chenhangroup.com
Author: CHENHAN GROUP
Description: 企业官网单页主题，简洁商务风格
Version: 1.0
License: Private
Text Domain: chenhan
*/

:root {
  --navy: #0b2545;
  --navy-2: #123a63;
  --navy-3: #1b4f80;
  --gold: #c9a227;
  --gold-light: #e3c565;
  --ink: #17212e;
  --muted: #5f6c7d;
  --line: #e3e9f0;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --radius: 14px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(11, 37, 69, .08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--navy-2), var(--navy));
  color: var(--gold-light);
  display: grid; place-items: center;
  font-weight: 700; font-size: 15px; letter-spacing: .5px;
  box-shadow: 0 6px 16px rgba(11, 37, 69, .22);
}
.brand-text strong {
  display: block;
  font-size: 17px;
  letter-spacing: 2.2px;
  line-height: 1.2;
  color: var(--navy);
}
.brand-text span {
  display: block;
  font-size: 10px;
  letter-spacing: 3.4px;
  color: var(--muted);
  text-transform: uppercase;
}
.site-nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a {
  font-size: 14px;
  color: #43536a;
  position: relative;
  transition: color .2s;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--gold); transition: width .25s;
}
.site-nav a:hover { color: var(--navy); }
.site-nav a:hover::after { width: 100%; }
.nav-cta {
  padding: 9px 20px;
  border: 1px solid var(--navy);
  border-radius: 999px;
  color: var(--navy) !important;
  font-weight: 600;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--navy); color: #fff !important; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 520px at 78% 22%, rgba(37, 105, 165, .55), transparent 65%),
    radial-gradient(600px 420px at 8% 100%, rgba(201, 162, 39, .16), transparent 70%),
    linear-gradient(125deg, #081d38 0%, #0d2c50 52%, #123a63 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(100deg, transparent, #000 60%);
}
.hero::after {
  content: "CH";
  position: absolute; right: -30px; bottom: -120px;
  font-size: 400px; line-height: 1; font-weight: 800;
  letter-spacing: -30px;
  color: rgba(255, 255, 255, .035);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 60px; align-items: center;
  padding: 116px 0 126px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold-light); font-weight: 600;
  margin-bottom: 26px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.hero h1 {
  margin: 0 0 26px;
  font-size: clamp(38px, 5.2vw, 66px);
  line-height: 1.24;
  font-weight: 700;
  letter-spacing: 2px;
}
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero-desc {
  max-width: 540px;
  font-size: 16.5px;
  color: rgba(255, 255, 255, .76);
  margin: 0 0 40px;
}
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 28px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--gold); color: #10243d;
  box-shadow: 0 10px 26px rgba(201, 162, 39, .28);
}
.btn-primary:hover { background: var(--gold-light); }
.btn-ghost { border: 1px solid rgba(255,255,255,.42); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.09); }
.arrow { font-size: 17px; line-height: 1; }

.hero-visual { position: relative; }
.glass-card {
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(14px);
  border-radius: 18px;
  padding: 34px 34px 30px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .22);
}
.glass-card .gc-top {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; letter-spacing: 2.5px; color: rgba(255,255,255,.6);
  text-transform: uppercase;
}
.gc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(201,162,39,.16); }
.gc-title {
  margin: 44px 0 8px;
  font-size: 27px; font-weight: 700; letter-spacing: 1px;
}
.gc-sub { color: rgba(255,255,255,.66); font-size: 13.5px; margin: 0 0 34px; }
.gc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  border-top: 1px solid rgba(255,255,255,.18); padding-top: 24px;
}
.gc-grid div { text-align: center; }
.gc-grid b { display: block; font-size: 15px; color: var(--gold-light); letter-spacing: 1px; }
.gc-grid small { font-size: 11px; color: rgba(255,255,255,.55); letter-spacing: 1px; }
.float-tag {
  position: absolute; right: -18px; bottom: -22px;
  background: #fff; color: var(--navy);
  border-radius: 12px; padding: 14px 20px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 1px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .2);
}
.float-tag span { color: var(--gold); margin-right: 8px; }

/* ---------- section common ---------- */
.section { padding: 106px 0; }
.section.soft { background: var(--bg-soft); }
.sec-head { margin-bottom: 54px; }
.sec-kicker {
  font-size: 11px; letter-spacing: 3.4px; text-transform: uppercase;
  color: var(--gold); font-weight: 700; display: block; margin-bottom: 14px;
}
.sec-title {
  margin: 0; font-size: clamp(27px, 3.4vw, 40px);
  line-height: 1.35; letter-spacing: 1px; color: var(--navy); font-weight: 700;
}
.sec-line { width: 46px; height: 3px; background: var(--gold); margin: 20px 0 0; border: 0; border-radius: 3px; }
.sec-lead { color: var(--muted); max-width: 620px; margin: 18px 0 0; font-size: 16px; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.about-copy p { color: var(--muted); margin: 0 0 18px; }
.about-copy .sign {
  margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--navy); letter-spacing: 2px; font-weight: 600;
}
.value-list { display: grid; gap: 16px; }
.value-item {
  display: flex; gap: 20px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 28px;
  transition: transform .25s, box-shadow .25s;
}
.value-item:hover { transform: translateX(6px); box-shadow: 0 14px 34px rgba(11,37,69,.08); }
.value-num { font-size: 13px; font-weight: 700; color: var(--gold); letter-spacing: 1px; padding-top: 2px; }
.value-item h3 { margin: 0 0 6px; font-size: 18px; color: var(--navy); letter-spacing: .5px; }
.value-item p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ---------- services ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px 32px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-7px); box-shadow: 0 20px 44px rgba(11,37,69,.1); border-color: rgba(201,162,39,.5); }
.card-icon {
  width: 46px; height: 46px; border-radius: 11px;
  background: rgba(11,37,69,.055);
  display: grid; place-items: center; margin-bottom: 26px;
  color: var(--navy-2);
}
.card .idx { display: block; font-size: 11px; letter-spacing: 2px; color: var(--gold); font-weight: 700; margin-bottom: 8px; }
.card h3 { margin: 0 0 6px; font-size: 19px; color: var(--navy); letter-spacing: .5px; }
.card .en { display: block; font-size: 11px; letter-spacing: 1.6px; color: #97a3b2; text-transform: uppercase; margin-bottom: 14px; }
.card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.75; }

/* ---------- strengths ---------- */
.strength { background: linear-gradient(120deg, #0b2545, #123a63); color: #fff; padding: 92px 0; }
.strength .sec-title { color: #fff; }
.strength .sec-kicker { color: var(--gold-light); }
.strength-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 10px; }
.strength-item { padding: 10px 38px; border-left: 1px solid rgba(255,255,255,.16); }
.strength-item:first-child { padding-left: 0; border-left: 0; }
.strength-item b { display: block; font-size: 34px; color: var(--gold-light); font-weight: 700; line-height: 1; margin-bottom: 20px; }
.strength-item h3 { margin: 0 0 10px; font-size: 19px; letter-spacing: .5px; }
.strength-item p { margin: 0; font-size: 14px; color: rgba(255,255,255,.65); line-height: 1.75; }

/* ---------- contact ---------- */
.contact-inner {
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 54px 58px;
  box-shadow: 0 18px 50px rgba(11,37,69,.06);
}
.contact-inner h2 { margin: 0 0 12px; font-size: 30px; color: var(--navy); letter-spacing: 1px; }
.contact-inner p { margin: 0; color: var(--muted); font-size: 15px; }
.contact-mail { display: inline-block; margin-top: 18px; color: var(--navy-2); font-weight: 600; font-size: 16px; letter-spacing: .4px; }
.contact-mail:hover { color: var(--gold); }

/* ---------- footer ---------- */
.site-footer { background: #071a31; color: rgba(255,255,255,.6); padding: 54px 0 26px; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand strong { display: block; font-size: 18px; letter-spacing: 2.4px; color: #fff; margin-bottom: 8px; }
.footer-brand p { margin: 0; font-size: 13px; max-width: 330px; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; font-size: 13.5px; }
.footer-nav a:hover { color: var(--gold-light); }
.footer-bottom { padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; letter-spacing: .4px; }

/* ---------- generic content page ---------- */
.page-head { background: var(--navy); color: #fff; padding: 72px 0; }
.page-head h1 { margin: 0; font-size: 34px; letter-spacing: 1px; }
.page-body { padding: 60px 0 90px; min-height: 320px; }
.post-item { padding: 26px 0; border-bottom: 1px solid var(--line); }
.post-item h2 { margin: 0 0 8px; font-size: 22px; }
.post-item h2 a:hover { color: var(--gold); }
.post-item .meta { font-size: 12px; color: #97a3b2; letter-spacing: 1px; }
.post-item p { color: var(--muted); margin: 10px 0 0; }

/* ---------- animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 54px; padding: 86px 0 100px; }
  .hero-visual { max-width: 440px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .wrap { width: min(100% - 32px, var(--max)); }
  .header-inner { height: auto; padding: 14px 0; flex-wrap: wrap; gap: 12px; }
  .site-nav { gap: 12px 18px; width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .site-nav a { font-size: 12.5px; }
  .nav-cta { padding: 6px 14px; }
  .hero-inner { padding: 66px 0 80px; }
  .hero-desc { max-width: 100%; }
  .hero::after { font-size: 230px; }
  .glass-card { padding: 26px 22px 24px; }
  .gc-title { margin-top: 30px; font-size: 23px; }
  .float-tag { right: 0; font-size: 11.5px; padding: 11px 15px; }
  .section { padding: 72px 0; }
  .sec-head { margin-bottom: 36px; }
  .cards, .strength-grid { grid-template-columns: 1fr; }
  .strength-item { padding: 20px 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.16); }
  .strength-item:first-child { border-top: 0; }
  .contact-inner { grid-template-columns: 1fr; padding: 36px 28px; }
  .footer-top { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ================================================================== *
 * 双语 / 语言切换
 * ================================================================== */
.lang-switch { display: inline-flex; align-items: stretch; gap: 0; white-space: nowrap; border: 1px solid var(--line, #d8e0ea); border-radius: 999px; overflow: hidden; margin-left: 6px; }
.lang-switch a { color: var(--navy, #0b2545); font-size: 12.5px; font-weight: 700; letter-spacing: .4px; padding: 6px 13px; line-height: 1; display: inline-flex; align-items: center; background: #fff; }
.lang-switch a::after { display: none; }
.lang-switch a:hover { background: #f4f7fb; }
.lang-switch a.active { background: var(--gold, #c9a227); color: #16233a; }
.lang-switch i { display: none; }
.site-nav a.current { color: var(--gold); font-weight: 600; }

/* ================================================================== *
 * 商城入口横幅 / 按钮 / WhatsApp
 * ================================================================== */
.shop-banner { background: linear-gradient(105deg, #0b2545, #174a78); padding: 46px 0; color: #fff; }
.banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.banner-inner h2 { margin: 0 0 8px; font-size: 26px; letter-spacing: 1px; }
.banner-inner p { margin: 0; color: rgba(255,255,255,.72); font-size: 14.5px; }
.btn-wa { background: #25d366; color: #fff; box-shadow: 0 10px 26px rgba(37,211,102,.24); }
.btn-wa:hover { background: #1ebe5a; }
.btn-wa svg { flex-shrink: 0; }
.btn-ghost-dark { border: 1px solid rgba(11,37,69,.25); color: var(--navy); }
.btn-ghost-dark:hover { background: rgba(11,37,69,.05); }
.btn-lg { padding: 16px 32px; font-size: 15.5px; }
.contact-actions { margin-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.contact-wa-num { font-size: 13px; color: var(--muted); }
.wa-float {
  position: fixed; right: 26px; bottom: 26px; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  background: #25d366; color: #fff; padding: 11px 18px 11px 12px;
  border-radius: 999px; font-size: 13.5px; font-weight: 600;
  box-shadow: 0 12px 30px rgba(37,211,102,.34);
  transition: transform .22s, box-shadow .22s;
}
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(37,211,102,.42); }
.wa-float::before {
  content: ""; position: absolute; inset: -6px; border-radius: 999px;
  border: 2px solid rgba(37,211,102,.45); animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse { 0% { transform: scale(.9); opacity: .8; } 100% { transform: scale(1.25); opacity: 0; } }
.wa-ico { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; }

/* ================================================================== *
 * 商城页
 * ================================================================== */
.shop-head {
  position: relative; overflow: hidden; color: #fff; padding: 86px 0 92px;
  background:
    radial-gradient(700px 400px at 85% 10%, rgba(37,105,165,.5), transparent 70%),
    linear-gradient(125deg, #081d38, #123a63);
}
.shop-head::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(100deg, transparent, #000 60%);
}
.shop-head .wrap { position: relative; z-index: 2; }
.shop-head h1 { margin: 0 0 18px; font-size: clamp(32px, 4.6vw, 54px); letter-spacing: 1px; line-height: 1.2; }
.shop-head p { margin: 0; max-width: 660px; color: rgba(255,255,255,.75); font-size: 16px; }
.sec-kicker.light { color: var(--gold-light); }
.shop-section { padding-top: 76px; }
.shop-head-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; position: relative; z-index: 2; }

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-btn {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  padding: 9px 20px; border-radius: 999px; font-size: 13.5px;
  cursor: pointer; font-family: inherit; transition: all .2s;
}
.filter-btn:hover { border-color: var(--navy-2); color: var(--navy); }
.filter-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(11,37,69,.11); border-color: rgba(201,162,39,.45); }
.product-media { position: relative; height: 230px; display: grid; place-items: center; overflow: hidden; }
.product-card:nth-child(1) .product-media { background: linear-gradient(135deg, #1d5f9e, #c9a227); }
.product-card:nth-child(2) .product-media { background: linear-gradient(135deg, #e0607e, #7a3db8); }
.product-card:nth-child(3) .product-media { background: linear-gradient(135deg, #0f8b8d, #a8d84a); }
.product-card:nth-child(4) .product-media { background: linear-gradient(135deg, #e4712c, #b02a4a); }
.product-card:nth-child(5) .product-media { background: linear-gradient(135deg, #2b4fa2, #20b2c4); }
.product-card:nth-child(6) .product-media { background: linear-gradient(135deg, #33405c, #c9a227); }
.product-media::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.3) 2px, transparent 2px);
  background-size: 22px 22px;
}
.pm-badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-size: 11px; letter-spacing: 2px; color: #fff;
  background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.35);
  padding: 5px 10px; border-radius: 6px;
}
.tee {
  width: 118px; height: 128px; position: relative; z-index: 2;
  fill: rgba(255,255,255,.9); stroke: none;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.22));
}
.tee-line { fill: none; stroke: rgba(11,37,69,.28); stroke-width: 1.5; }
.pm-hint { position: absolute; bottom: 14px; right: 16px; z-index: 2; font-size: 10px; letter-spacing: 2.4px; color: rgba(255,255,255,.85); }
.product-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.product-en { font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase; color: #97a3b2; }
.product-body h3 { margin: 6px 0 10px; font-size: 20px; color: var(--navy); letter-spacing: .5px; }
.product-body p { margin: 0 0 18px; font-size: 14px; color: var(--muted); line-height: 1.7; flex: 1; }
.product-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 20px; }
.product-tags span { font-size: 11px; padding: 4px 9px; border-radius: 5px; background: rgba(11,37,69,.055); color: var(--navy-2); }
.product-cta {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 18px; border-radius: 8px; background: var(--navy); color: #fff;
  font-size: 14px; font-weight: 600; transition: background .2s;
}
.product-cta:hover { background: var(--navy-3); }
.shop-note { margin: 24px 0 0; font-size: 12.5px; color: #97a3b2; }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.step { padding: 30px 24px; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step-n { display: block; font-size: 24px; font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: 16px; }
.step h3 { margin: 0 0 8px; font-size: 16px; color: var(--navy); }
.step p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.7; }

.faq-list { max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 4px;
  font-size: 16.5px; font-weight: 600; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; background: var(--gold); border-radius: 2px; }
.faq-plus::before { left: 0; top: 7px; width: 16px; height: 2px; }
.faq-plus::after { left: 7px; top: 0; width: 2px; height: 16px; transition: transform .2s; }
.faq-item[open] .faq-plus::after { transform: rotate(90deg); }
.faq-a { padding: 0 40px 24px 4px; font-size: 14.5px; color: var(--muted); line-height: 1.8; }

.shop-cta { background: linear-gradient(120deg, #0b2545, #123a63); color: #fff; padding: 80px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.cta-inner h2 { margin: 0 0 12px; font-size: 30px; letter-spacing: 1px; }
.cta-inner p { margin: 0; color: rgba(255,255,255,.7); font-size: 15px; max-width: 600px; }
.cta-num { display: inline-block; margin-top: 16px; font-size: 13px; color: var(--gold-light); }

/* 多导航项后的额外断点 */
@media (max-width: 1100px) {
  .site-nav { gap: 16px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { border-bottom: 1px solid var(--line); }
}
@media (max-width: 720px) {
  body { padding-bottom: 72px; }
  .site-nav { gap: 10px 14px; justify-content: flex-start; }
  .site-nav a { font-size: 12.5px; }
  .product-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; }
  .shop-head { padding: 64px 0 70px; }
  .banner-inner { flex-direction: column; align-items: flex-start; }
  .wa-float { right: 16px; bottom: 16px; padding: 10px; }
  .wa-float .wa-txt { display: none; }
  .wa-ico { width: 38px; height: 38px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .faq-a { padding-right: 8px; }
}

/* hidden 属性必须压过组件自身的 display，否则 hidden 不生效 */
[hidden] { display: none !important; }

/* ================================================================== *
 * 在线定制 / 实时合成预览 / 下单表单
 * ================================================================== */
.custom-head {
  padding: 66px 0 72px;
  background:
    radial-gradient(620px 360px at 88% 12%, rgba(201,162,39,.28), transparent 70%),
    linear-gradient(125deg, #081d38, #123a63);
}
.custom-section { padding: 62px 0 96px; background: #f7f9fb; }
.custom-layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 30px; align-items: start; }

.cust-preview-col, .cust-panel, .cust-order {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 12px 34px rgba(11,37,69,.05);
}
.cust-preview-col { padding: 22px 22px 18px; }
.cust-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.cust-preview-head h2 { margin: 0; font-size: 18px; color: var(--navy); letter-spacing: .5px; }
.view-switch { display: inline-flex; background: #f1f4f8; border-radius: 999px; padding: 3px; }
.view-btn {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  padding: 7px 18px; border-radius: 999px; font: 600 13px/1.2 inherit;
  font-family: inherit; transition: all .2s;
}
.view-btn.active { background: var(--navy); color: #fff; }

.canvas-shell { position: relative; border-radius: 12px; overflow: hidden; background: #f3f6f9; border: 1px solid var(--line); }
#chCanvas { display: block; width: 100%; height: auto; touch-action: none; }
.canvas-empty {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(255,255,255,.55); pointer-events: none;
}
.canvas-empty span {
  background: rgba(11,37,69,.86); color: #fff; padding: 12px 22px;
  border-radius: 999px; font-size: 13.5px; letter-spacing: .3px;
}
.cust-hint { margin: 12px 0 0; text-align: center; font-size: 12.5px; color: #97a3b2; }

.cust-panel { padding: 8px 24px 20px; position: sticky; top: 92px; }
.cust-block { padding: 20px 0; border-bottom: 1px solid var(--line); }
.cust-block:last-child { border-bottom: 0; }
.cust-block h3 { margin: 0 0 14px; font-size: 14px; color: var(--navy); letter-spacing: .4px; }
.style-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.style-chip {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  padding: 8px 13px; border-radius: 8px; font-size: 12.5px; font-family: inherit;
  cursor: pointer; transition: all .18s;
}
.style-chip:hover { border-color: var(--navy-2); color: var(--navy); }
.style-chip.active { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }

.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; min-height: 128px; padding: 20px; text-align: center; cursor: pointer;
  border: 2px dashed #cbd6e2; border-radius: 12px; background: #f9fbfd;
  transition: all .2s;
}
.dropzone:hover, .dropzone.over { border-color: var(--gold); background: #fffcf3; }
.dropzone input[type=file] { display: none; }
.dz-ico { color: var(--navy-2); }
.dropzone strong { font-size: 13.5px; color: var(--navy); }
.dropzone small { font-size: 11.5px; color: #97a3b2; line-height: 1.6; }
.file-chip {
  margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #f1f6f3; border: 1px solid #cfe6d6; border-radius: 8px; padding: 9px 12px;
  font-size: 12.5px; color: #2a6b43;
}
.file-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip button { border: 0; background: none; color: var(--navy-2); font-size: 12px; cursor: pointer; font-family: inherit; text-decoration: underline; flex-shrink: 0; }

.cust-field { margin-bottom: 16px; }
.cust-field > label { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.cust-field > label span { color: var(--navy); font-weight: 600; }
.seg-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #f1f4f8; border-radius: 9px; padding: 4px; }
.seg-btn {
  border: 0; background: transparent; color: var(--muted); padding: 9px 6px;
  border-radius: 7px; font-size: 12.5px; font-family: inherit; cursor: pointer; transition: all .18s;
}
.seg-btn.active { background: #fff; color: var(--navy); font-weight: 600; box-shadow: 0 2px 8px rgba(11,37,69,.09); }
input[type=range] {
  width: 100%; height: 5px; border-radius: 5px; appearance: none; -webkit-appearance: none;
  background: #e2e8f0; outline: none; cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none; width: 17px; height: 17px; border-radius: 50%;
  background: var(--navy); border: 3px solid #fff; box-shadow: 0 1px 6px rgba(11,37,69,.3);
}
input[type=range]::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%; background: var(--navy);
  border: 3px solid #fff; box-shadow: 0 1px 6px rgba(11,37,69,.3);
}
.swatches { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.sw {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff;
  box-shadow: 0 0 0 1px #d5dde6; cursor: pointer; padding: 0; position: relative;
}
.sw.active { box-shadow: 0 0 0 2px var(--gold); }
.sw.custom { overflow: hidden; display: block; }
.sw.custom input { position: absolute; inset: -8px; width: 52px; height: 52px; border: 0; padding: 0; cursor: pointer; background: none; }
.cust-reset {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  padding: 8px 16px; border-radius: 8px; font-size: 12.5px; font-family: inherit; cursor: pointer;
}
.cust-reset:hover { border-color: var(--navy-2); color: var(--navy); }

.cust-order { padding: 38px 40px 42px; margin-top: 30px; }
.cust-order h2 { margin: 0 0 26px; font-size: 22px; color: var(--navy); letter-spacing: .6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row.full { grid-column: 1 / -1; }
.form-row label { font-size: 13px; color: var(--navy-2); font-weight: 600; }
.form-row label i { color: #d0454c; font-style: normal; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; box-sizing: border-box; padding: 12px 14px; font-size: 14px;
  font-family: inherit; color: var(--navy); background: #fff;
  border: 1px solid #d9e1ea; border-radius: 8px; outline: none; transition: border-color .18s, box-shadow .18s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(23,74,120,.1);
}
.form-row textarea { resize: vertical; min-height: 76px; }

.est-box {
  margin-top: 24px; padding: 18px 22px; border-radius: 10px;
  background: #f8f5ec; border: 1px solid #ecdfbd;
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
.est-box > span { font-size: 13px; color: var(--muted); }
.est-box strong { font-size: 26px; color: var(--navy); }
.est-box small { font-size: 11.5px; color: #97a3b2; }
.cust-notes { margin: 22px 0 0; font-size: 12.5px; line-height: 1.8; color: var(--muted); }
.cust-notes.muted { margin-top: 6px; color: #97a3b2; }
.form-error {
  margin: 18px 0 0; padding: 12px 16px; border-radius: 8px;
  background: #fdf0f0; border: 1px solid #f0caca; color: #b3373d; font-size: 13px;
}
.cust-submit { margin-top: 26px; width: 100%; justify-content: center; }
.cust-submit:disabled { opacity: .65; cursor: wait; }

.cust-success { text-align: center; padding: 26px 10px 12px; }
.ok-badge {
  width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%;
  background: #e6f6ec; color: #269c55; display: grid; place-items: center; font-size: 32px;
}
.cust-success h2 { margin: 0 0 10px; font-size: 26px; color: var(--navy); }
.ok-no { display: inline-block; margin: 0 0 14px; padding: 8px 20px; border-radius: 999px;
  background: #f1f4f8; color: var(--navy); font-size: 17px; font-weight: 700; letter-spacing: 1px; }
.cust-success p { max-width: 560px; margin: 0 auto; font-size: 14px; line-height: 1.8; color: var(--muted); }
.ok-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

@media (max-width: 1100px) {
  .custom-layout { grid-template-columns: 1fr; }
  .cust-panel { position: static; }
  .canvas-shell { max-width: 560px; margin: 0 auto; }
}
@media (max-width: 720px) {
  .custom-section { padding: 42px 0 72px; }
  .custom-head { padding: 52px 0 58px; }
  .cust-preview-col { padding: 16px 14px 14px; }
  .cust-panel { padding: 4px 18px 16px; }
  .cust-order { padding: 28px 20px 32px; }
  .form-grid { grid-template-columns: 1fr; }
  .cust-order h2 { font-size: 19px; }
  .cust-submit { padding: 15px 18px; font-size: 14.5px; }
  body.page-custom { padding-bottom: 72px; }
}

/* ================================================================== *
 * 画布内手势交互：变换框 / 工具条 / 浮动预览 / 全屏查看
 * ================================================================== */
.canvas-shell {
  touch-action: none;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
#chCanvas { cursor: grab; }
.canvas-shell.is-grabbing #chCanvas { cursor: grabbing; }

.canvas-guides { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.guide-box {
  position: absolute; transform-origin: center center; pointer-events: none;
  border: 1.5px dashed rgba(201,162,39,.95); border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.55), 0 2px 14px rgba(11,37,69,.14);
}
.guide-handle {
  /* 略微内收，避免手机首屏被底部快捷栏遮住 */
  position: absolute; right: -19px; bottom: 14%;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gold); border: 3px solid #fff;
  box-shadow: 0 3px 12px rgba(11,37,69,.38);
  pointer-events: auto; cursor: nesw-resize; touch-action: none;
}
.guide-handle::after {
  content: ""; position: absolute; inset: 8px;
  border: 2px solid #fff; border-right-color: transparent; border-radius: 50%;
}
.gesture-tip {
  position: absolute; left: 50%; top: 66px; z-index: 4;
  transform: translateX(-50%);
  max-width: calc(100% - 26px); width: max-content;
  background: rgba(11,37,69,.92); color: #fff;
  padding: 9px 15px; border-radius: 999px;
  font-size: 12px; line-height: 1.5; text-align: center;
  pointer-events: none; animation: tip-in .35s ease-out;
}
@keyframes tip-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

.canvas-tools {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px;
  padding: 5px; background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(11,37,69,.09);
  pointer-events: none;               /* 空白处仍可直接在画布上拖拽 */
}
.canvas-tools button { pointer-events: auto; }
.canvas-tools button {
  min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 4px 2px; border: 1px solid transparent; border-radius: 8px;
  background: transparent; color: var(--navy); font-family: inherit; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: background .16s, transform .16s, border-color .16s;
}
.canvas-tools button:hover { border-color: var(--navy-2); }
.canvas-tools button:active { background: #eaf1f8; transform: scale(.95); }
.canvas-tools .ti { font-size: 20px; line-height: 1.1; font-weight: 600; }
.canvas-tools .tl { font-size: 10.5px; line-height: 1.2; color: var(--muted); white-space: nowrap; }

.mini-preview {
  position: fixed; right: 12px; bottom: calc(82px + env(safe-area-inset-bottom, 0px)); z-index: 55;
  width: 118px; padding: 5px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 12px 32px rgba(11,37,69,.24); cursor: pointer;
}
.mini-preview canvas { display: block; width: 100%; height: auto; border-radius: 6px; }
.mini-preview button {
  position: absolute; top: -10px; right: -10px; width: 26px; height: 26px; padding: 0;
  border: 2px solid #fff; border-radius: 50%; background: var(--navy); color: #fff;
  font-size: 17px; line-height: 1; cursor: pointer;
}

.preview-modal {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(4,14,28,.94);
}
.preview-modal img { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: 8px; }
.preview-modal > button {
  position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 16px;
  width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}
body.modal-open { overflow: hidden; }

/* ---------- 折叠菜单按钮 ---------- */
.nav-toggle {
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 44px; height: 44px; margin-left: auto; padding: 0;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--navy);
  transition: transform .22s, opacity .22s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 手机底部拇指快捷栏 ---------- */
.mobile-dock {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255,255,255,.97); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 22px rgba(11,37,69,.09);
  padding: 5px 4px calc(5px + env(safe-area-inset-bottom, 0px));
}
.mobile-dock a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 52px; font-size: 11px; line-height: 1.25; color: var(--muted);
  -webkit-tap-highlight-color: transparent;
}
.mobile-dock a svg { width: 21px; height: 21px; flex-shrink: 0; }
.mobile-dock a.active { color: var(--navy); font-weight: 700; }
.mobile-dock a.dock-main { color: #b18a15; font-weight: 700; }
.mobile-dock a.dock-wa { color: #1ebe5a; }

/* ---------- 平板 / 手机：折叠导航 ---------- */
@media (max-width: 900px) {
  .site-header { position: sticky; }
  .header-inner { height: 62px; flex-wrap: nowrap; padding: 0; gap: 12px; }
  .brand-text strong { font-size: 15px; letter-spacing: 1.4px; }
  .brand-text span { font-size: 9px; letter-spacing: 2.4px; }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    width: 100%; padding: 6px 20px 18px;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 36px rgba(11,37,69,.14);
    max-height: calc(100vh - 62px); overflow-y: auto;
  }
  .site-nav.open { display: flex; }
  .site-nav > a {
    display: flex; align-items: center; min-height: 50px; padding: 12px 6px;
    font-size: 16px; border-bottom: 1px solid var(--line);
  }
  .site-nav > a::after { display: none; }
  .site-nav .lang-switch { padding: 10px 2px; justify-content: flex-start; }
  .site-nav .lang-switch a { font-size: 15px; }
  .site-nav .nav-cta {
    justify-content: center; margin-top: 10px; padding: 14px;
    border-radius: 10px; text-align: center; font-size: 15px;
  }
}

/* ---------- 手机：触摸目标 / 防缩放 / 安全区 ---------- */
@media (max-width: 720px) {
  /* 手机端不做滚动淡入，避免内容延迟出现造成大片留白 */
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  body.page-custom { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .mobile-dock { display: grid; }
  .wa-float { display: none !important; }

  .btn, .product-cta, .cust-submit { min-height: 48px; }
  .btn { padding: 13px 22px; }
  .filter-btn { min-height: 44px; padding: 11px 18px; font-size: 13.5px; }
  .faq-item summary { min-height: 56px; padding: 16px 2px; }

  /* iOS 输入框字号 <16px 会触发页面自动放大 */
  .form-row input, .form-row select, .form-row textarea {
    font-size: 16px; padding: 13px 14px; min-height: 50px;
  }
  .form-row textarea { min-height: 92px; }
  .form-grid { gap: 16px; }

  input[type=range] { height: 8px; }
  input[type=range]::-webkit-slider-thumb { width: 26px; height: 26px; border-width: 3px; }
  input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-width: 3px; }
  .cust-field { margin-bottom: 20px; }
  .style-chip, .seg-btn, .view-btn, .cust-reset, #changeFile { min-height: 44px; }
  .style-chip { padding: 11px 14px; font-size: 13.5px; }
  .seg-btn { padding: 12px 6px; font-size: 13.5px; }
  .view-btn { padding: 11px 20px; font-size: 14px; }
  .cust-reset { padding: 12px 18px; font-size: 13.5px; width: 100%; }
  .sw { width: 40px; height: 40px; }
  .sw.custom input { width: 62px; height: 62px; inset: -11px; }
  .file-chip button { min-height: 40px; padding: 0 6px; }
  .dropzone { min-height: 118px; }
  .dropzone strong { font-size: 14.5px; }

  .canvas-tools { gap: 3px; padding: 4px; }
  .canvas-tools button { min-height: 42px; }
  .canvas-tools .ti { font-size: 19px; }
  .canvas-tools .tl { font-size: 10px; }
  .cust-hint { font-size: 11.5px; line-height: 1.65; }
  .gesture-tip { font-size: 11px; padding: 8px 12px; }
  .custom-layout { gap: 18px; }
  .cust-order { margin-top: 20px; }
  .mini-preview { width: 104px; }
}

/* ================================================================== *
 * 门户首页 / 业务板块
 * ================================================================== */
.btn-gold, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 26px; border-radius: 10px;
  font-size: 15px; font-weight: 600; text-decoration: none; letter-spacing: .02em;
  transition: transform .18s, background .18s, border-color .18s;
  touch-action: manipulation;
}
.btn-gold { background: var(--gold); color: var(--navy); border: 1px solid var(--gold); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.portal-hero {
  background: linear-gradient(180deg, #0b2545 0%, #123a63 100%);
  color: #fff; padding: 96px 0 104px;
}
.portal-hero-inner { max-width: 760px; }
.portal-hero h1 { margin: 14px 0 18px; font-size: clamp(32px, 5vw, 54px); line-height: 1.2; letter-spacing: -.01em; }
.portal-hero p { margin: 0 0 34px; font-size: 17px; line-height: 1.9; color: rgba(255,255,255,.86); max-width: 620px; }
.portal-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.portal-about { padding: 82px 0; }
.portal-about h2 { font-size: clamp(26px, 3.4vw, 36px); color: var(--navy); margin: 10px 0 16px; }
.portal-about-p { max-width: 760px; color: var(--muted); font-size: 16.5px; line-height: 1.95; margin: 0 0 46px; }
.portal-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.portal-feature { padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.portal-feature .pf-no { display: block; color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: .12em; margin-bottom: 12px; }
.portal-feature h3 { color: var(--navy); font-size: 18px; margin: 0 0 8px; }
.portal-feature p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.8; }

.portal-divisions { padding: 76px 0 96px; background: var(--bg-soft); }
.portal-divisions h2 { font-size: clamp(26px, 3.4vw, 36px); color: var(--navy); margin: 10px 0 14px; }
.portal-lead { color: var(--muted); margin: 0 0 38px; max-width: 720px; }
.portal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.portal-card {
  display: flex; flex-direction: column; min-height: 224px; padding: 24px 22px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  text-decoration: none; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.portal-card.is-live { border-color: var(--gold); box-shadow: 0 8px 26px rgba(11,37,69,.08); }
.portal-card.is-live:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(11,37,69,.14); }
.portal-card.is-soon { background: #fbfcfe; }
.portal-badge { font-size: 11.5px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.portal-card.is-live .portal-badge { color: #a8800f; font-weight: 600; }
.portal-card h3 { color: var(--navy); font-size: 19px; margin: 14px 0 10px; }
.portal-card.is-soon h3 { color: #8b97a6; }
.portal-card p { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 0 0 20px; }
.portal-go { margin-top: auto; color: var(--navy); font-weight: 600; font-size: 14px; }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; padding: 46px 0 30px; }
.footer-brand { color: #fff; font-size: 19px; font-weight: 700; letter-spacing: .06em; margin-bottom: 10px; }
.footer-desc { color: rgba(255,255,255,.66); font-size: 14px; line-height: 1.85; max-width: 520px; margin: 0; }
.footer-grid h4 { color: #fff; font-size: 14px; margin: 0 0 14px; }
.footer-grid a { display: block; color: rgba(255,255,255,.72); font-size: 14px; text-decoration: none; margin-bottom: 9px; }
.footer-grid a:hover { color: var(--gold-light); }

/* ================================================================== *
 * WooCommerce 商城 / 购物车 / 结账
 * ================================================================== */
.wc-head p { color: rgba(255,255,255,.82); margin: 10px 0 0; font-size: 15px; }
.wc-wrap { padding: 40px 0 90px; min-height: 420px; }
.wc-notice {
  padding: 12px 16px; margin-bottom: 26px; border-left: 3px solid var(--gold);
  background: #fffaf0; color: #7a5c0d; font-size: 13.5px; line-height: 1.7; border-radius: 0 8px 8px 0;
}
.woocommerce .wc-wrap h1, .wc-page h2, .wc-page h3 { color: var(--navy); }
.woocommerce ul.products {
  display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px; margin: 0 0 40px; padding: 0; list-style: none;
}
.woocommerce ul.products li.product {
  float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s, box-shadow .18s;
}
.woocommerce ul.products li.product:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(11,37,69,.1); }
.woocommerce ul.products li.product a img { width: 100%; height: auto; margin: 0; border-radius: 0; background: #e7edf5; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  padding: 16px 18px 0; font-size: 16px; color: var(--navy); line-height: 1.5;
}
.woocommerce ul.products li.product .price { padding: 4px 18px 14px; color: var(--navy-3); font-size: 15px; }
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button { margin: 0 18px 18px !important; }
.woocommerce .onsale {
  background: var(--gold) !important; color: var(--navy) !important;
  border-radius: 6px; font-size: 12px; padding: 4px 10px; min-height: auto; line-height: 1.6;
}
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce .wc-block-grid__product-add-to-cart.wp-block-button__link {
  background: var(--navy) !important; color: #fff !important; border: 0; border-radius: 8px;
  padding: 12px 20px; font-size: 14px; font-weight: 600; min-height: 46px;
}
/* 触摸设备不应用 :hover，避免手机上点击后按钮一直停留在金色高亮态 */
@media (hover: hover) and (pointer: fine) {
  .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover {
    background: var(--gold) !important; color: var(--navy) !important;
  }
}
.woocommerce div.product .product_title { color: var(--navy); font-size: 30px; }
.woocommerce div.product .price { color: var(--navy-3); font-size: 22px; }
.woocommerce div.product form.cart { margin: 22px 0; }
.woocommerce div.product .woocommerce-tabs { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 20px; margin-top: 34px; }
.woocommerce table.shop_table { border: 1px solid var(--line); border-radius: var(--radius); border-collapse: separate; font-size: 14px; }
.woocommerce table.shop_table th { background: var(--bg-soft); color: var(--navy); }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { padding: 14px 12px; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .quantity .qty {
  font-size: 16px !important; padding: 11px 12px; min-height: 46px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
}
.woocommerce .woocommerce-notices-wrapper,
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--gold); font-size: 14px; }
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { font-size: 14px; color: var(--muted); }
.woocommerce .woocommerce-ordering select { font-size: 16px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; }
.woocommerce-pagination .page-numbers li a, .woocommerce-pagination .page-numbers li span { padding: 9px 13px; }
.woocommerce .col2-set .col-1, .woocommerce .col2-set .col-2 { max-width: none; }
.wc-page .woocommerce { max-width: 100%; }
.wc-page .wp-block-woocommerce-cart, .wc-page .wp-block-woocommerce-checkout { max-width: 100%; }

@media (max-width: 980px) {
  .portal-grid { grid-template-columns: repeat(2, 1fr); }
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .portal-hero { padding: 62px 0 72px; }
  .portal-hero p { font-size: 15.5px; }
  .portal-actions .btn-gold, .portal-actions .btn-ghost { width: 100%; }
  .portal-about { padding: 58px 0; }
  .portal-features { grid-template-columns: 1fr; gap: 14px; }
  .portal-divisions { padding: 56px 0 70px; }
  .portal-grid { grid-template-columns: 1fr; gap: 14px; }
  .portal-card { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .wc-wrap { padding: 26px 0 76px; }
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 12px 12px 0; font-size: 14px; }
  .woocommerce ul.products li.product .price { padding: 2px 12px 10px; font-size: 13.5px; }
  .woocommerce ul.products li.product .button { margin: 0 12px 12px !important; padding: 10px 12px !important; font-size: 13px !important; }
  .woocommerce div.product .product_title { font-size: 24px; }
  .woocommerce table.shop_table td, .woocommerce table.shop_table th { padding: 10px 8px; }
  .woocommerce .col2-set .col-1, .woocommerce .col2-set .col-2 { width: 100%; float: none; }
}

/* 桌面端浮动 WhatsApp 收成圆形，避免遮住商品卡按钮；手机端交给底部快捷栏 */
@media (min-width: 721px) {
  .wa-float { width: 54px; height: 54px; padding: 0; justify-content: center; }
  .wa-float .wa-txt { display: none; }
  .wa-float .wa-ico { width: 40px; height: 40px; }
}
@media (max-width: 720px) {
  .wa-float { display: none; }
}
