/* ============ MANDALA 前台主题：宝石光泽 ============ */
/* 浅色优雅底 + 深蓝/金点缀；Playfair Display（自托管，含西里尔）衬线标题 */

:root {
  --ink: #1b2432;
  --ink-soft: #46506a;
  --muted: #7c8494;
  --paper: #faf8f4;
  --card: #ffffff;
  --navy: #101826;
  --navy-2: #18243c;
  --gold: #b08d3e;
  --gold-bright: #c9a961;
  --gold-pale: #f1e8d2;
  --line: #e9e3d7;
  --wa: #1fbf5f;
  --wa-dark: #16a34a;
  --tg: #229ED9;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(16, 24, 38, .08);
  --font-display: 'Playfair Display', 'Noto Serif SC', 'Source Han Serif SC', 'STZhongsong', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.25; color: var(--ink); text-wrap: balance; overflow-wrap: break-word; }
p { hyphens: auto; -webkit-hyphens: auto; }
html[lang="zh"] h1, html[lang="zh"] h2, html[lang="zh"] h3 { letter-spacing: .02em; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.section { padding: 64px 0; }
.section-alt { background: #f3efe6; }
.section-title { text-align: center; font-size: 32px; margin-bottom: 40px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 28px; }
.section-head h2 { font-size: 30px; min-width: 0; }
.section-head .link-more { margin-left: auto; }
.link-more { color: var(--gold); font-size: 15px; letter-spacing: .04em; white-space: nowrap; }
.link-more:hover { color: var(--ink); }

/* ============ 顶栏 ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 244, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: .08em; color: var(--ink); }
.main-nav { display: flex; align-items: center; gap: 26px; font-size: 15.5px; }
.main-nav > a, .nav-drop-link { color: var(--ink-soft); padding: 6px 2px; border-bottom: 2px solid transparent; }
.main-nav > a:hover, .nav-drop-link:hover { color: var(--ink); border-bottom-color: var(--gold-bright); }
.nav-contact { display: flex; gap: 10px; }
.lang-switch { display: inline-flex; margin-left: 10px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--paper); }
.lang-switch a {
  padding: 5px 11px; font-size: 13px; color: var(--muted);
  border: 0; border-right: 1px solid var(--line); transition: background .15s, color .15s;
}
.lang-switch a:last-child { border-right: 0; }
.lang-switch a:hover { color: var(--ink); background: var(--gold-pale); }
.lang-switch a.active { color: var(--navy); background: var(--gold-pale); font-weight: 600; }
.header-phone { font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.header-phone::before { content: '☎ '; color: var(--gold); }

/* —— 目录下拉（桌面悬停）—— */
.nav-drop { position: relative; }
.nav-drop-link { display: inline-flex; align-items: center; gap: 4px; }
.caret { font-size: 11px; transform: translateY(1px); transition: .2s; }
.drop {
  display: none; position: absolute; top: 100%; left: -14px; min-width: 290px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 44px rgba(16, 24, 38, .16); padding: 8px; z-index: 60;
}
.nav-drop:hover .drop, .nav-drop:focus-within .drop { display: block; }
.nav-drop:hover .caret { transform: translateY(1px) rotate(180deg); }
.drop a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px; font-size: 14.5px; color: var(--ink-soft);
  border: 0; white-space: normal; line-height: 1.3;
}
.drop a:hover { background: var(--gold-pale); color: var(--ink); }
.drop-count { font-size: 12px; color: var(--gold); background: #fff; border: 1px solid var(--gold-pale); border-radius: 999px; padding: 0 8px; flex: none; }
.mobile-cats { display: none; }

/* —— 悬浮询价按钮 —— */
.float-cta { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.fc {
  width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 10px 26px rgba(16, 24, 38, .35); transition: .2s;
}
.fc svg { width: 26px; height: 26px; }
.fc:hover { transform: translateY(-3px) scale(1.05); }
.fc-wa { background: var(--wa); }
.fc-tg { background: var(--tg); }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: 12px; border: 1.5px solid transparent;
  font-size: 15.5px; font-weight: 600; cursor: pointer; transition: .2s;
}
.btn-sm { padding: 8px 14px; font-size: 13.5px; border-radius: 9px; }
.btn-lg { padding: 15px 26px; font-size: 16.5px; }
.btn-gold { background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #fff; box-shadow: 0 6px 18px rgba(176, 141, 62, .35); }
.btn-gold:hover { filter: brightness(1.07); }
.btn-ghost { border-color: rgba(255, 255, 255, .8); color: #fff; background: rgba(255, 255, 255, .12); }
.hero .btn-ghost { background: rgba(20, 28, 44, .38); text-shadow: 0 1px 10px rgba(0, 0, 0, .45); }
.btn-ghost:hover { background: rgba(255, 255, 255, .22); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-tg { background: var(--tg); color: #fff; }
.btn-tg:hover { filter: brightness(.94); }
main .btn-ghost, .page-head .btn-ghost { border-color: var(--ink); color: var(--ink); }

/* ============ Hero ============ */
.hero {
  background-image: linear-gradient(100deg, rgba(10, 17, 32, .93) 22%, rgba(10, 17, 32, .6) 60%, rgba(10, 17, 32, .3)), url('/img/hero-cover.png');
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero-in { padding: 96px 22px 72px; max-width: 780px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-bright); letter-spacing: .18em; text-transform: uppercase; font-size: 13px; margin-bottom: 18px; }
.hero-title { color: #fff; font-size: clamp(32px, 4.6vw, 52px); margin-bottom: 18px; }
.hero-sub { color: rgba(255, 255, 255, .82); font-size: clamp(16px, 2vw, 19px); max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 42px; list-style: none; margin-top: 46px; flex-wrap: wrap; }
.hero-stats b { display: block; font-family: var(--font-display); font-size: 30px; color: var(--gold-bright); }
.hero-stats span { font-size: 13.5px; color: rgba(255, 255, 255, .72); }

/* ============ 分类网格 ============ */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--card);
  box-shadow: var(--shadow); transition: .25s;
}
.cat-card:hover { transform: translateY(-5px); }
.cat-card img { width: 100%; aspect-ratio: 9 / 11; object-fit: cover; }
.cat-card-body { padding: 16px 18px 18px; }
.cat-card-body h3 { font-size: 19px; margin-bottom: 4px; }
.cat-card-body span { font-size: 13.5px; color: var(--gold); }

/* ============ 商品卡 ============ */
.p-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.p-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid #f0ece3; transition: .25s; display: flex; flex-direction: column;
}
.p-card:hover { transform: translateY(-4px); border-color: var(--gold-pale); }
.p-card-img { background: #fff; }
.p-card-img img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 18px; }
.p-card-body { padding: 14px 18px 18px; border-top: 1px solid #f2eee6; }
.p-card-sku { font-size: 12px; letter-spacing: .12em; color: var(--gold); }
.p-card-name { font-family: var(--font-body); font-weight: 600; font-size: 16.5px; margin: 5px 0 7px; line-height: 1.35; }
.p-card-desc {
  font-size: 13.8px; color: var(--muted); margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.p-card-cta { color: var(--gold); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.p-card:hover .p-card-cta { text-decoration: underline; text-underline-offset: 4px; }

/* ============ 优势 ============ */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.adv-card { background: var(--card); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow); border-top: 3px solid var(--gold-bright); }
.adv-num { font-family: var(--font-display); font-size: 26px; color: var(--gold-bright); display: block; margin-bottom: 10px; }
.adv-card h3 { font-size: 20px; margin-bottom: 10px; }
.adv-card p { font-size: 14.5px; color: var(--ink-soft); }

/* ============ 关于 ============ */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 46px; align-items: center; }
.about-text { font-size: 16.5px; color: var(--ink-soft); }
.about-img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ============ 询价区 ============ */
.inquiry-wrap {
  display: grid; grid-template-columns: 1fr 1.1fr; border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow); background: var(--card);
}
.inquiry-side { background: linear-gradient(150deg, var(--navy), var(--navy-2)); color: #fff; padding: 42px 38px; }
.inquiry-side h2 { color: #fff; font-size: 27px; margin-bottom: 12px; }
.inquiry-side p { color: rgba(255, 255, 255, .78); margin-bottom: 26px; font-size: 15.5px; }
.inquiry-btns { display: flex; flex-direction: column; gap: 12px; max-width: 260px; }
.inquiry-btns .btn { justify-content: flex-start; }
.inquiry-form-wrap { padding: 42px 38px; }
.inquiry-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inquiry-form input, .inquiry-form textarea {
  width: 100%; padding: 13px 15px; margin-bottom: 14px; border: 1.5px solid var(--line);
  border-radius: 10px; font: inherit; background: #fdfcf9; color: var(--ink);
}
.inquiry-form input:focus, .inquiry-form textarea:focus { outline: none; border-color: var(--gold-bright); }
.inquiry-form .btn { margin-top: 4px; }
.form-note { margin-top: 12px; font-size: 14px; }
.form-note.ok { color: var(--wa-dark); }
.form-note.err { color: #c0392b; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ============ 页头（目录/联系）============ */
.page-head { background: linear-gradient(150deg, var(--navy), var(--navy-2)); color: #fff; padding: 56px 0 30px; }
.page-head h1 { color: #fff; font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 8px; }
.page-head p { color: rgba(255, 255, 255, .78); }
.cat-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cat-pills a {
  padding: 8px 16px; border-radius: 999px; font-size: 14px; color: rgba(255, 255, 255, .85);
  border: 1px solid rgba(255, 255, 255, .3); transition: .2s;
}
.cat-pills a:hover, .cat-pills a.active { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--navy); font-weight: 600; }

/* ============ 目录页 ============ */
.pager { display: flex; align-items: center; gap: 16px; justify-content: center; margin-top: 34px; font-size: 15px; color: var(--ink-soft); }
.pager a { padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.pager a:hover { border-color: var(--gold-bright); }
.empty-note { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-note .btn { margin-top: 18px; }

/* ============ 商品页 ============ */
.product-wrap { padding-top: 26px; }
.crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
.crumbs a:hover { color: var(--gold); }
.product-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 42px; align-items: start; }
.gallery-main {
  position: relative; background: #fff; border: 1px solid #f0ece3; border-radius: var(--radius);
  overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow);
}
.gallery-main img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.zoom-hint {
  position: absolute; right: 14px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(16, 24, 38, .72); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs button {
  width: 72px; height: 72px; border-radius: 10px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; background: #fff; padding: 0;
}
.gallery-thumbs button.active, .gallery-thumbs button:hover { border-color: var(--gold-bright); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product-info .chip {
  display: inline-block; background: var(--gold-pale); color: var(--gold); font-size: 12.5px;
  letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; font-weight: 700;
}
.product-info h1 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 10px; }
.product-meta { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.product-meta b { color: var(--ink); letter-spacing: .05em; }
.product-short { font-size: 16.5px; color: var(--ink-soft); margin-bottom: 22px; }
.specs { width: 100%; border-collapse: collapse; margin: 8px 0 26px; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.specs caption { caption-side: top; text-align: left; font-family: var(--font-display); font-size: 19px; padding: 14px 18px 8px; color: var(--ink); }
.specs tr { border-bottom: 1px solid #f1ede4; }
.specs tr:last-child { border-bottom: 0; }
.specs th { text-align: left; font-weight: 400; color: var(--muted); width: 44%; padding: 11px 18px; vertical-align: top; }
.specs td { padding: 11px 18px 11px 0; font-weight: 600; }
.cta-col { display: flex; flex-direction: column; gap: 12px; max-width: 340px; }
.cta-col .btn { justify-content: flex-start; }
.product-desc { max-width: 800px; margin-top: 54px; }
.product-desc h2, .product-video h2 { font-size: 25px; margin-bottom: 16px; }
.product-desc p { margin-bottom: 14px; color: var(--ink-soft); }
.product-video { max-width: 800px; margin-top: 40px; }
.product-video video { width: 100%; border-radius: var(--radius); background: #000; box-shadow: var(--shadow); }
.product-wrap .section { padding: 40px 0 0; }

/* ============ 联系页 ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact-cards { display: flex; flex-direction: column; gap: 14px; }
.contact-card {
  display: flex; align-items: center; gap: 16px; background: var(--card); border-radius: var(--radius);
  padding: 18px 22px; box-shadow: var(--shadow); border-left: 4px solid var(--gold-bright); transition: .2s;
}
.contact-card:hover { transform: translateX(4px); }
.contact-card.wa { border-left-color: var(--wa); }
.contact-card.tg { border-left-color: var(--tg); }
.cc-icon {
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--gold-pale); color: var(--gold); font-size: 20px; flex: none;
}
.contact-card.wa .cc-icon { background: #e2f8ea; color: var(--wa-dark); }
.contact-card.tg .cc-icon { background: #e3f2fc; color: var(--tg); }
.cc-body b { display: block; font-size: 15px; }
.cc-body span { color: var(--muted); font-size: 14.5px; word-break: break-all; }
.contact-form { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); }

/* ============ 错误页 ============ */
.err-page { text-align: center; padding: 110px 22px; }
.err-page h1 { font-size: 84px; color: var(--gold-bright); }
.err-page p { color: var(--ink-soft); margin: 12px 0 28px; }

/* ============ 页脚 ============ */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .8); margin-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding: 54px 22px 30px; }
.brand-light .brand-name { color: #fff; }
.footer-intro { font-size: 14px; margin-top: 14px; max-width: 380px; color: rgba(255, 255, 255, .62); }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; letter-spacing: .06em; }
.site-footer a { display: block; font-size: 14px; padding: 4px 0; color: rgba(255, 255, 255, .66); }
.site-footer a:hover { color: var(--gold-bright); }
.footer-all { color: var(--gold-bright); margin-top: 4px; }
.footer-addr { display: block; font-size: 14px; padding: 4px 0; color: rgba(255, 255, 255, .66); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 22px 26px; font-size: 13px; color: rgba(255, 255, 255, .45); }

/* ============ Toast / Lightbox ============ */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 11px 22px; border-radius: 999px; font-size: 14.5px;
  opacity: 0; pointer-events: none; transition: .3s; z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.lightbox { position: fixed; inset: 0; background: rgba(8, 12, 20, .94); z-index: 150; display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 92vw; max-height: 90vh; object-fit: contain; }
.lightbox button {
  position: absolute; background: rgba(255, 255, 255, .1); border: 0; color: #fff;
  width: 52px; height: 52px; border-radius: 50%; font-size: 24px; cursor: pointer;
}
.lightbox .lb-close { top: 22px; right: 26px; }
.lightbox .lb-prev { left: 22px; }
.lightbox .lb-next { right: 22px; }

/* ============ SEO 文案 / 三步下单 ============ */
.seo-text { max-width: 860px; color: var(--ink-soft); font-size: 14.8px; }
.seo-text p { margin-bottom: 13px; }
.how-order { margin-top: 30px; border-top: 1px dashed var(--line); padding-top: 22px; }
.how-order h3 { font-size: 17px; margin-bottom: 14px; }
.steps { list-style: none; display: flex; flex-direction: column; gap: 12px; max-width: 380px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.steps b {
  flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--gold-pale);
  color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.steps span { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.steps i { display: block; font-style: normal; font-weight: 600; color: var(--ink); margin-bottom: 2px; }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .cat-grid, .p-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .inquiry-wrap { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .header-in { height: 62px; }
  .header-phone { display: none; }
  .burger { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 18px 22px 22px; gap: 14px;
    max-height: 78vh; overflow-y: auto;
  }
  .main-nav.open { display: flex; }
  .nav-drop .drop { display: none !important; }
  .caret { display: none; }
  .nav-contact { flex-direction: column; }
  .lang-switch { margin: 6px 0 0; }
  .mobile-cats { display: flex; flex-direction: column; gap: 2px; padding: 8px 0 2px 12px; border-left: 2px solid var(--gold-pale); }
  .mobile-cats a { font-size: 14px; color: var(--gold); padding: 3px 0; }
  .hero-in { padding: 66px 22px 54px; }
  .hero-stats { gap: 26px; }
  .product-grid { grid-template-columns: 1fr; gap: 26px; }
  .inquiry-form .form-row { grid-template-columns: 1fr; }
  .inquiry-side, .inquiry-form-wrap { padding: 30px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .section { padding: 46px 0; }
  .float-cta { right: 14px; bottom: 14px; }
  .fc { width: 48px; height: 48px; }
}
@media (max-width: 520px) {
  .cat-grid, .p-grid { grid-template-columns: 1fr; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 12px; align-items: start; margin-top: 34px; }
  .hero-stats b { font-size: 22px; }
  .hero-stats span { font-size: 11.5px; line-height: 1.35; }
  .gallery-thumbs button { width: 60px; height: 60px; }
}
