/*
Theme Name: AURORA
Theme URI: https://aurora.example
Author: AURORA
Author URI: https://aurora.example
Description: AURORA — 原创品牌首饰主题。高级、简洁、大方，繁体中文优先，移动端优先，深度集成 WooCommerce（Stripe / 信用卡付款）。参考 gygigacc.com 视觉语言打造。
Version: 1.2.5
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aurora
Tags: e-commerce, woocommerce, jewelry, custom-colors, custom-menu, featured-images, sticky-post, translation-ready
*/

/* =========================================================================
   AURORA — Design Tokens
   Mobile-first. 手机端为第一优先级。
   ========================================================================= */
:root {
  /* Brand palette (champagne-gold + ink, warm neutrals) */
  --aurora-gold: #b0925a;
  --aurora-gold-dark: #927545;
  --aurora-gold-light: #cbb488;
  --aurora-ink: #171412;
  --aurora-ink-2: #4d4842;
  --aurora-muted: #8a8178;
  --aurora-cream: #faf7f2;
  --aurora-sand: #f2ece1;
  --aurora-white: #ffffff;
  --aurora-line: #e6ddce;
  --aurora-rose: #cbb0aa;
  --aurora-blue: #2e4a6b;   /* 政策页标题蓝 */
  --aurora-danger: #b23b3b;

  /* Semantic (overridable by Customizer) */
  --color-primary: var(--aurora-gold);
  --color-primary-dark: var(--aurora-gold-dark);
  --color-accent: var(--aurora-gold);
  --color-bg: var(--aurora-cream);
  --color-surface: var(--aurora-white);
  --color-text: var(--aurora-ink);
  --color-text-soft: var(--aurora-ink-2);
  --color-heading: var(--aurora-ink);
  --color-line: var(--aurora-line);
  --color-footer-bg: #100e0c;
  --color-footer-text: #efe9df;

  /* Typography */
  --font-serif: "Noto Serif TC", "Songti TC", "Source Han Serif TC", serif;
  --font-sans: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-brand: "Cormorant Garamond", "Noto Serif TC", serif;
  --fs-base: 15px;
  --lh-base: 1.85;

  /* Layout */
  --container: 1240px;
  --container-narrow: 860px;
  --radius: 3px;
  --radius-lg: 8px;
  --shadow-sm: 0 2px 10px rgba(23, 20, 18, 0.06);
  --shadow-md: 0 10px 34px rgba(23, 20, 18, 0.12);
  --header-h: 58px;
  --gap: 14px;
  --ease: cubic-bezier(.22,.61,.36,1);

  /* Shopping-bag icon as a mask (used for the circular add-to-cart button) */
  --icon-bag: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"/><line x1="3" y1="6" x2="21" y2="6"/><path d="M16 10a4 4 0 0 1-8 0"/></svg>');
}

/* =========================================================================
   Reset / base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--color-heading);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 .6em;
  letter-spacing: .01em;
}
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--color-primary); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 16px; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 18px; }
.container--narrow { max-width: var(--container-narrow); }
.section { padding: 46px 0; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px,1px,1px,1px); word-wrap: normal;
}
.text-center { text-align: center; }

/* Section titles */
.section-head { text-align: center; margin-bottom: 26px; }
.section-head .eyebrow {
  display: inline-block; font-family: var(--font-brand); letter-spacing: .34em;
  text-transform: uppercase; font-size: 13px; color: var(--color-primary); margin-bottom: 8px;
}
.section-head h2 { font-size: clamp(23px, 6vw, 34px); margin: 0; }
.section-head .sub { color: var(--aurora-muted); margin-top: 8px; font-size: 14px; }

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 13px 32px; border: 1px solid var(--color-primary);
  background: var(--color-primary); color: #fff;
  font-family: var(--font-sans); font-size: 14px; letter-spacing: .16em;
  border-radius: var(--radius); text-transform: uppercase; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); color: #fff; }
.btn--outline { background: transparent; color: var(--color-primary); }
.btn--outline:hover { background: var(--color-primary); color: #fff; }
.btn--ink { background: var(--aurora-ink); border-color: var(--aurora-ink); color: #fff; }
.btn--ink:hover { background: #000; border-color: #000; color: #fff; }
.btn--block { width: 100%; }
.btn--wide { padding-left: 54px; padding-right: 54px; }

/* =========================================================================
   Promo bar (marquee) — 置顶滚轮动画文字
   ========================================================================= */
.promo-bar {
  background: var(--color-primary); color: #fff; overflow: hidden;
  font-size: 13px; letter-spacing: .08em; position: relative;
}
.promo-bar__track {
  display: flex; width: max-content; white-space: nowrap;
  animation: aurora-marquee 22s linear infinite;
}
.promo-bar:hover .promo-bar__track { animation-play-state: paused; }
.promo-bar__item { padding: 9px 34px; position: relative; }
.promo-bar__item::after {
  content: "•"; position: absolute; right: -3px; top: 50%; transform: translateY(-50%); opacity: .55;
}
@keyframes aurora-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .promo-bar__track { animation: none; justify-content: center; }
}

/* =========================================================================
   Header
   ========================================================================= */
.site-header { position: relative; z-index: 200; background: var(--color-surface); border-bottom: 1px solid var(--color-line); }
.site-header.is-sticky { position: sticky; top: 0; }
.site-header.is-stuck { box-shadow: var(--shadow-sm); }
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: var(--header-h); gap: 8px;
}
.header-left, .header-right { display: flex; align-items: center; gap: 4px; }
.header-right { justify-content: flex-end; }
.header-center { display: flex; justify-content: center; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; background: none; border: none; color: var(--color-text);
  position: relative; border-radius: 50%;
}
.icon-btn:hover { color: var(--color-primary); }
.icon-btn svg { width: 21px; height: 21px; }

/* Brand wordmark: 长条 AURORA，黑体白底简单即可 */
.brand {
  font-family: var(--font-brand); font-weight: 600; font-size: clamp(21px, 6vw, 27px);
  letter-spacing: .42em; text-transform: uppercase; color: var(--aurora-ink);
  padding-left: .42em; line-height: 1; white-space: nowrap;
}
.brand img { max-height: 34px; width: auto; }

/* Cart bubble */
.cart-count {
  position: absolute; top: 4px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--color-primary); color: #fff; font-size: 10px; line-height: 17px;
  text-align: center; border-radius: 9px; font-family: var(--font-sans);
}
.cart-count:empty, .cart-count[data-count="0"] { display: none; }

/* Desktop nav (hidden on mobile) */
.primary-nav { display: none; }

/* =========================================================================
   Mobile drawer menu — 全屏金色抽屉（参考站）
   ========================================================================= */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.4); opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s; z-index: 998;
}
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; left: 0; height: 100%; width: min(86vw, 420px);
  background: var(--color-primary); color: #fff; z-index: 999;
  transform: translateX(-100%); transition: transform .34s var(--ease);
  display: flex; flex-direction: column; box-shadow: var(--shadow-md);
}
.drawer.is-open { transform: translateX(0); }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.18);
}
.drawer__brand { font-family: var(--font-brand); letter-spacing: .3em; text-transform: uppercase; font-size: 18px; }
.drawer__close { background: none; border: none; color: #fff; width: 40px; height: 40px; }
.drawer__close svg { width: 22px; height: 22px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px 0 40px; -webkit-overflow-scrolling: touch; }

.drawer__section-title {
  text-align: center; font-family: var(--font-serif); font-size: 20px; font-weight: 600;
  margin: 22px 0 10px; color: #fff; letter-spacing: .1em;
}
.drawer__divider { width: 56px; height: 1px; background: rgba(255,255,255,.4); margin: 14px auto; }

/* Drawer menu list */
.drawer-menu { list-style: none; margin: 0; padding: 0; }
.drawer-menu a {
  display: block; text-align: center; color: #fff; padding: 13px 22px;
  font-size: 15px; letter-spacing: .06em;
}
.drawer-menu a:hover { color: #fff; background: rgba(255,255,255,.10); }
.drawer-menu .menu-item-has-children { position: relative; }
.drawer-menu .sub-toggle {
  position: absolute; top: 4px; right: 14px; width: 40px; height: 40px; background: none; border: none;
  color: #fff; display: flex; align-items: center; justify-content: center;
}
.drawer-menu .sub-toggle svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.drawer-menu .is-expanded > .sub-toggle svg { transform: rotate(180deg); }
.drawer-menu .sub-menu {
  list-style: none; margin: 0; padding: 0; max-height: 0; overflow: hidden;
  background: rgba(0,0,0,.12); transition: max-height .34s var(--ease);
}
.drawer-menu .is-expanded > .sub-menu { max-height: 1200px; }
.drawer-menu .sub-menu a { font-size: 13.5px; color: rgba(255,255,255,.9); padding: 10px; }

.drawer__account-icons { display: flex; justify-content: center; gap: 18px; margin-top: 18px; }
.drawer__account-icons a,
.drawer__account-badge {
  width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.drawer__account-icons svg { width: 20px; height: 20px; }

/* =========================================================================
   Hero — 首页横幅 + 促销文案
   ========================================================================= */
.hero { position: relative; }
.hero__media { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: var(--aurora-sand); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.32)); }
.hero__overlay {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; color: #fff; padding: 20px;
}
.hero__overlay .brand-mark {
  font-family: var(--font-brand); font-size: clamp(30px, 10.5vw, 60px); letter-spacing: .18em;
  text-transform: uppercase; margin: 0; text-shadow: 0 2px 24px rgba(0,0,0,.4);
  max-width: 100%; text-indent: .18em;
}
.hero__overlay .brand-mark small { display: block; font-size: 13px; letter-spacing: .5em; margin-top: 10px; opacity: .9; }

.hero__promo { background: var(--color-surface); text-align: center; padding: 34px 20px 40px; }
.hero__promo h1 { font-size: clamp(24px, 7vw, 40px); margin-bottom: 18px; }
.hero__promo .promo-lines { list-style: none; padding: 0; margin: 0 auto 24px; max-width: 560px; }
.hero__promo .promo-lines li {
  font-size: clamp(15px, 4.4vw, 19px); font-weight: 500; padding: 7px 0; color: var(--color-text);
  border-bottom: 1px dashed var(--color-line);
}
.hero__promo .promo-lines li:last-child { border-bottom: 0; }
.hero__promo .promo-lines .heart { color: var(--aurora-danger); }

/* =========================================================================
   Category grid — 四大分类
   ========================================================================= */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cat-card { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--aurora-sand); }
.cat-card__media { aspect-ratio: 1 / 1; overflow: hidden; }
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.cat-card:hover .cat-card__media img { transform: scale(1.06); }
.cat-card__label {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; text-align: center; padding: 10px;
  /* 分类配图多为浅米色，纯 16% 遮罩下白字几乎看不清；用渐变压暗文字所在区域，
     顶部保持通透以免遮住商品。 */
  background: linear-gradient(180deg, rgba(20,17,14,.10) 0%, rgba(20,17,14,.34) 48%, rgba(20,17,14,.44) 100%);
  transition: background .3s var(--ease);
}
.cat-card:hover .cat-card__label {
  background: linear-gradient(180deg, rgba(20,17,14,.24) 0%, rgba(20,17,14,.46) 48%, rgba(20,17,14,.56) 100%);
}
.cat-card__en {
  font-family: var(--font-brand); letter-spacing: .04em; text-transform: uppercase; font-weight: 600;
  font-size: clamp(10px, 2.7vw, 18px); line-height: 1.2; max-width: 92%; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.cat-card__zh { font-family: var(--font-serif); font-size: clamp(13px, 3.6vw, 16px); letter-spacing: .12em; margin-top: 4px; text-shadow: 0 2px 12px rgba(0,0,0,.5); }

/* =========================================================================
   Info carousel — 轮播图 + 配文
   ========================================================================= */
.info-carousel { position: relative; }
.info-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.info-track::-webkit-scrollbar { display: none; }
.info-slide { flex: 0 0 100%; scroll-snap-align: center; position: relative; }
.info-slide__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--aurora-sand); }
.info-slide__media img { width: 100%; height: 100%; object-fit: cover; }
.info-slide__caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,.6)); color: #fff;
  font-family: var(--font-serif); font-size: clamp(14px,4vw,18px); letter-spacing: .04em; text-align: center;
}
.info-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.info-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--color-line); padding: 0; }
.info-dots button.is-active { background: var(--color-primary); width: 22px; border-radius: 5px; }

/* =========================================================================
   Product cards / grids (theme + WooCommerce)
   ========================================================================= */
.products-grid, ul.products {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 10px;
}
.product-card, ul.products li.product {
  position: relative; background: var(--color-surface); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--color-line); transition: box-shadow .3s var(--ease), transform .3s var(--ease); margin: 0;
  text-align: left; width: auto; float: none;
}
.product-card:hover, ul.products li.product:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-card__media, ul.products li.product a img { margin: 0; }
.product-card__media { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--aurora-sand); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card__body { padding: 12px 12px 14px; }
.product-card__title, ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-sans); font-size: 13.5px; font-weight: 500; line-height: 1.5; color: var(--color-text);
  margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.9em; padding: 0;
}
.product-card__price, ul.products li.product .price {
  font-family: var(--font-serif); color: var(--color-primary-dark); font-weight: 600; font-size: 15px; margin: 0;
}
ul.products li.product .price del { color: var(--aurora-muted); font-weight: 400; font-size: 13px; margin-right: 6px; opacity: .8; }
ul.products li.product .price ins { text-decoration: none; }

/* on-sale / rating badges */
.onsale, span.onsale {
  position: absolute; top: 10px; left: 10px; z-index: 3; background: var(--aurora-danger); color: #fff;
  font-family: var(--font-sans); font-size: 11px; letter-spacing: .1em; padding: 3px 9px; border-radius: 2px; min-height: 0; min-width: 0; margin: 0; line-height: 1.6;
}
.star-rating { font-size: 12px; margin: 4px 0; color: var(--color-primary); }

/* circular add-to-cart on card (参考站：图右下角圆形加购) */
.product-card__media .add_to_cart_button,
ul.products li.product a.add_to_cart_button,
ul.products li.product a.added_to_cart {
  position: absolute; bottom: 10px; right: 10px; z-index: 4;
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--aurora-ink);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
  font-size: 0; padding: 0; border: 1px solid var(--color-line); transition: background .25s var(--ease), color .25s var(--ease);
}
ul.products li.product a.add_to_cart_button::before,
ul.products li.product a.added_to_cart::before {
  content: ""; width: 19px; height: 19px; display: block;
  background: currentColor; -webkit-mask: var(--icon-bag) center/contain no-repeat; mask: var(--icon-bag) center/contain no-repeat;
}
ul.products li.product a.add_to_cart_button:hover { background: var(--color-primary); color: #fff; }
ul.products li.product a.add_to_cart_button.loading { opacity: .6; }
ul.products li.product a.add_to_cart_button.loading::before { animation: aurora-spin .8s linear infinite; }
@keyframes aurora-spin { to { transform: rotate(360deg); } }

/* the "more" long button row */
.shop-more { text-align: center; margin-top: 26px; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--color-footer-bg); color: var(--color-footer-text); padding: 46px 0 26px; margin-top: 40px; }
.footer-col { text-align: center; margin-bottom: 38px; }
.footer-col h4 { color: #fff; font-size: 19px; letter-spacing: .18em; margin-bottom: 18px; }
.footer-col p, .footer-col li { color: var(--color-footer-text); font-size: 13.5px; line-height: 2; opacity: .92; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col a:hover { color: var(--color-primary-light, #cbb488); }
.footer-social { display: flex; justify-content: center; gap: 14px; margin-top: 14px; }
.footer-social a { width: 40px; height: 40px; border-radius: 8px; background: var(--color-primary); color: #fff; display: flex; align-items: center; justify-content: center; }
.footer-social svg { width: 20px; height: 20px; }
.footer-pay { display: flex; justify-content: center; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.footer-pay img, .footer-pay svg { height: 26px; width: auto; border-radius: 3px; background: #fff; padding: 3px 6px; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; font-size: 12px; opacity: .7; letter-spacing: .05em; }

/* =========================================================================
   Back to top — 一键返回顶部
   ========================================================================= */
.to-top {
  position: fixed; right: 16px; bottom: 18px; width: 46px; height: 46px; z-index: 300;
  border-radius: 50%; border: 1px solid var(--color-line); background: rgba(255,255,255,.92); color: var(--aurora-ink);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 20px; height: 20px; }

/* Floating social contact (Customizer) */
.floating-social { position: fixed; bottom: 78px; z-index: 290; display: flex; flex-direction: column; gap: 10px; }
.floating-social.pos-right { right: 16px; }
.floating-social.pos-left { left: 16px; }
.floating-social a { width: 46px; height: 46px; border-radius: 50%; background: var(--color-primary); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); }
.floating-social a svg { width: 22px; height: 22px; }
.floating-social__qr { position: fixed; inset: 0; z-index: 999; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.6); }
.floating-social__qr.is-open { display: flex; }
.floating-social__qr img { max-width: 260px; border-radius: 8px; background: #fff; padding: 10px; }

/* =========================================================================
   Pages / content / policy pages
   ========================================================================= */
.page-hero { text-align: center; padding: 40px 18px 10px; }
.page-hero h1 { font-size: clamp(26px, 7vw, 38px); }
.page-hero .crumbs { color: var(--aurora-muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.entry-content { font-size: 15px; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-content img { border-radius: var(--radius); margin: 1em auto; }

/* 尺寸对照表等图表：手机上原图字很小，点开可看大图 */
.chart-figure { text-align: center; margin: 1em 0 1.6em; }
.chart-figure a { display: inline-block; max-width: 100%; }
.chart-figure img { margin: 0 auto; border: 1px solid var(--color-line); }
.chart-hint {
  display: block; margin-top: 8px; font-size: 12.5px; color: var(--aurora-muted);
  letter-spacing: .06em; font-family: var(--font-sans);
}

/* Policy article style: 蓝色标题 + 黑色宋体正文 */
.policy { font-family: var(--font-serif); color: var(--aurora-ink); }
.policy h1, .policy h2, .policy h3 { color: var(--aurora-blue); font-family: var(--font-serif); }
.page-hero--policy h1 { color: var(--aurora-blue); }
.policy h2 { font-size: 21px; margin-top: 1.8em; }
.policy strong, .policy b { font-weight: 700; color: var(--aurora-ink); }
.policy ul { padding-left: 1.3em; }

/* =========================================================================
   Blog / archive / single
   ========================================================================= */
.post-card { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.post-card__media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.post-card__body { padding: 18px; }
.post-card__meta { color: var(--aurora-muted); font-size: 12px; letter-spacing: .08em; margin-bottom: 8px; }
.post-card__title { font-size: 20px; }
.single-content { max-width: var(--container-narrow); margin: 0 auto; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; border: 1px solid var(--color-line); border-radius: var(--radius); padding: 0 10px; }
.pagination .page-numbers.current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* =========================================================================
   Forms
   ========================================================================= */
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=search], textarea, select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--color-line); border-radius: var(--radius);
  background: #fff; color: var(--color-text); transition: border-color .25s var(--ease);
}
input:focus, textarea:focus, select:focus { border-color: var(--color-primary); outline: none; }
label { font-size: 13px; color: var(--color-text-soft); }

/* =========================================================================
   Search overlay
   ========================================================================= */
.search-overlay {
  position: fixed; inset: 0; z-index: 500; background: rgba(250,247,242,.98);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.search-overlay.is-open { opacity: 1; visibility: visible; }
.search-overlay__close { position: absolute; top: 18px; right: 18px; }
.search-overlay__inner { width: 100%; max-width: 560px; }
.search-form__row { display: flex; gap: 8px; }
.search-form__row .search-field { flex: 1; }
.search-form__row .btn { padding: 12px 18px; }

/* =========================================================================
   Reveal on scroll
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* =========================================================================
   Responsive — tablet & desktop (mobile-first: 手机端优先)
   ========================================================================= */
@media (min-width: 768px) {
  :root { --header-h: 74px; --fs-base: 16px; }
  .section { padding: 64px 0; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .products-grid, ul.products { grid-template-columns: repeat(3, 1fr); gap: 22px 18px; }
  .info-slide__media { aspect-ratio: 21/9; }
  .hero__media { aspect-ratio: 21 / 9; }
  .footer-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: start; }
  .footer-col { margin-bottom: 0; }
}
@media (min-width: 992px) {
  .products-grid, ul.products { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1200px) {
  .products-grid, ul.products { grid-template-columns: repeat(4, 1fr); }
  /* Keep the compact drawer navigation on smaller laptops. */
  .primary-nav { display: flex; align-items: center; gap: 26px; }
  .primary-nav > ul { display: flex; flex-wrap: nowrap; gap: clamp(10px, 1.1vw, 18px); list-style: none; margin: 0; padding: 0; }
  .primary-nav a { display: block; white-space: nowrap; font-size: 13px; letter-spacing: .05em; }
  .menu-toggle.desktop-hide { display: none; }
}
