/* ============================================================
   RELAXBUY THEME — Main CSS  v1.1
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #0a0a0f;
  --paper: #f7f6f3;
  --cream: #ede9e0;
  --gold: #b8973a;
  --gold-light: #d4af5a;
  --blue: #1a3a5c;
  --blue-light: #2d5f8a;
  --white: #ffffff;
  --gray: #8a8a8a;
  --gray-light: #c8c4bc;
  --border: #e0ddd7;
  --border-light: #eeebe4;
  --red: #c0392b;
  --green: #1a7a3c;
  --shadow: 0 4px 32px rgba(10,10,15,.08);
  --shadow-md: 0 8px 40px rgba(10,10,15,.12);
  --radius: 4px;
  --radius-lg: 10px;
}

html { scroll-behavior: smooth; }
body { font-family: 'DM Sans','Helvetica Neue',Arial,sans-serif; background: var(--paper); color: var(--ink); line-height: 1.6; overflow-x: hidden; font-size: 15px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; outline: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
h1,h2,h3,h4,h5,h6 { font-family: 'Cormorant Garamond','Georgia',serif; font-weight: 400; }
.inner, .container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ---- TOPBAR ---- */
.site-topbar { background: var(--ink); color: rgba(255,255,255,.55); font-size: 12px; letter-spacing: .05em; padding: 7px 0; }
.site-topbar .inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.site-topbar a { color: rgba(255,255,255,.55); transition: color .2s; }
.site-topbar a:hover { color: var(--gold-light); }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-auth { display: flex; gap: 10px; }
.topbar-auth a { padding: 2px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 2px; transition: all .2s; }
.topbar-auth a:hover { border-color: var(--gold); color: var(--gold-light); }

/* ================================================================
   HEADER — 固定高度64px，搜索框绝对定位，不撑高 header
   ================================================================ */
.site-header {
  background: var(--blue);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 20px rgba(0,0,0,.15);
  height: 64px;       /* 固定高度 */
  overflow: visible;  /* 允许搜索框下拉超出 */
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
  position: relative; /* 搜索框绝对定位的参考点 */
}

/* Logo */
.site-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--white); }
.logo-mark { width: 40px; height: 40px; background: var(--gold); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.logo-mark svg { width: 22px; height: 22px; fill: var(--white); }
.logo-name { font-family: 'Cormorant Garamond','Georgia',serif; font-size: 22px; font-weight: 700; letter-spacing: .02em; }
.logo-sub { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.5); display: block; margin-top: -4px; }

/* 搜索下拉框 — 绝对定位，默认隐藏 */
.header-search {
  position: absolute;
  top: 64px;                          /* header 底部 */
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 560px;
  max-width: 92vw;
  background: var(--blue);
  border: 1.5px solid rgba(255,255,255,.22);
  border-top: none;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 10px 28px rgba(0,0,0,.3);
  z-index: 300;
  /* 默认折叠 */
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.header-search.search-open {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.header-search form { display: flex; align-items: center; height: 50px; }
.header-search input {
  flex: 1; height: 50px; padding: 0 18px;
  background: transparent; border: none;
  color: var(--white); font-size: 14px; outline: none; font-family: inherit;
}
.header-search input::placeholder { color: rgba(255,255,255,.4); }
.header-search-btn {
  width: 50px; height: 50px; background: var(--gold); border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  border-radius: 0 0 8px 0; flex-shrink: 0; transition: background .2s;
}
.header-search-btn:hover { background: var(--gold-light); }
.header-search-btn svg { width: 17px; height: 17px; stroke: var(--white); fill: none; stroke-width: 2; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; margin-left: auto; }
.header-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 12px; color: rgba(255,255,255,.8); cursor: pointer;
  transition: color .2s, background .2s; border-radius: 6px;
  font-size: 11px; letter-spacing: .04em; position: relative; text-decoration: none;
}
.header-btn:hover { color: var(--white); background: rgba(255,255,255,.08); }
.header-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.header-badge {
  position: absolute; top: 4px; right: 8px;
  background: var(--gold); color: var(--white); border-radius: 50%;
  width: 16px; height: 16px; font-size: 10px;
  display: flex; align-items: center; justify-content: center; font-weight: 600;
}

/* 搜索触发按钮 */
.search-toggle-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 12px; color: rgba(255,255,255,.8); cursor: pointer;
  transition: color .2s, background .2s; border-radius: 6px;
  font-size: 11px; letter-spacing: .04em;
  background: none; border: none; font-family: inherit;
}
.search-toggle-btn:hover, .search-toggle-btn.active {
  color: var(--white); background: rgba(255,255,255,.08);
}
.search-toggle-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* ---- NAV ---- */
.site-nav { background: var(--ink); }
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; }
.nav-all { display: flex; align-items: center; gap: 8px; padding: 12px 20px; background: var(--blue); color: var(--white); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; flex-shrink: 0; transition: background .2s; }
.nav-all:hover { background: var(--blue-light); }
.nav-all svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.nav-links { display: flex; }
.nav-links a { display: block; padding: 12px 18px; color: rgba(255,255,255,.75); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; transition: all .2s; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.current-menu-item { color: var(--white); border-bottom-color: var(--gold); }

/* ---- TRUST BAR ---- */
.site-trust { background: var(--blue); padding: 14px 0; border-top: 1px solid rgba(255,255,255,.08); }
.trust-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--white); }
.trust-item svg { width: 20px; height: 20px; stroke: var(--gold-light); fill: none; stroke-width: 1.8; flex-shrink: 0; }
.trust-title { font-size: 13px; font-weight: 500; }
.trust-sub { font-size: 11px; color: rgba(255,255,255,.5); }

/* ---- BREADCRUMB ---- */
.breadcrumb { background: var(--cream); border-bottom: 1px solid var(--border); }
.breadcrumb-inner { max-width: 1280px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gray); }
.breadcrumb-inner a { color: var(--gray); transition: color .2s; }
.breadcrumb-inner a:hover { color: var(--blue); }
.breadcrumb-inner .sep { color: var(--gray-light); }
.breadcrumb-inner span:last-child { color: var(--ink); }

/* ---- SECTION HEADER ---- */
.section-hd { margin-bottom: 28px; }
.section-title { font-size: 30px; font-weight: 400; color: var(--ink); margin-bottom: 8px; }
.section-title::after { content: ''; display: block; width: 36px; height: 2px; background: var(--gold); margin-top: 8px; }
.section-hd-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.view-all { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gray); display: flex; align-items: center; gap: 4px; transition: color .2s; }
.view-all:hover { color: var(--blue); }
.view-all::after { content: '→'; }

/* ---- PRODUCT CARD ---- */
.product-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; transition: all .3s; border: 1.5px solid transparent; position: relative; }
.product-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.pc-img { height: 200px; display: flex; align-items: center; justify-content: center; background: var(--paper); position: relative; overflow: hidden; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.product-card:hover .pc-img img { transform: scale(1.06); }
.pc-badge { position: absolute; top: 10px; left: 10px; font-size: 9px; font-weight: 600; letter-spacing: .1em; padding: 3px 8px; border-radius: 2px; text-transform: uppercase; }
.badge-sale { background: var(--gold); color: var(--white); }
.badge-new  { background: var(--blue); color: var(--white); }
.badge-hot  { background: var(--red); color: var(--white); }
.pc-body { padding: 16px; }
.pc-cat { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.pc-name { font-size: 14px; color: var(--ink); margin-bottom: 6px; line-height: 1.4; font-weight: 400; }
.pc-price-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pc-price { font-family: 'Cormorant Garamond','Georgia',serif; font-size: 18px; color: var(--gold); }
.pc-price-old { font-size: 12px; color: var(--gray); text-decoration: line-through; }
.pc-stars { color: var(--gold); font-size: 12px; margin-bottom: 10px; }
.pc-actions { display: flex; gap: 8px; opacity: 0; transform: translateY(4px); transition: all .3s; }
.product-card:hover .pc-actions { opacity: 1; transform: none; }
.btn-cart { flex: 1; padding: 8px; background: var(--blue); color: var(--white); border-radius: var(--radius); font-size: 12px; letter-spacing: .05em; text-align: center; transition: background .2s; display: block; }
.btn-cart:hover { background: var(--blue-light); }
.btn-wish { width: 34px; height: 34px; border-radius: var(--radius); border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; transition: all .2s; flex-shrink: 0; cursor: pointer; }
.btn-wish:hover, .btn-wish.wished { border-color: var(--gold); color: var(--gold); }
.btn-wish svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ---- HERO ---- */
.site-hero { background: linear-gradient(135deg,#0b1e36 0%,#1a3a5c 55%,#0e2740 100%); position: relative; overflow: hidden; padding: 80px 0 64px; }
.site-hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z' fill='%23fff' fill-opacity='.025'/%3E%3C/svg%3E"); }
.hero-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1fr 480px; align-items: center; gap: 48px; position: relative; }
.hero-label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 14px; }
.hero-title { font-size: clamp(36px,5vw,64px); font-weight: 300; color: var(--white); line-height: 1.1; margin-bottom: 20px; }
.hero-title em { font-style: normal; color: var(--gold-light); }
.hero-desc { color: rgba(255,255,255,.55); font-size: 15px; line-height: 1.75; margin-bottom: 32px; max-width: 400px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 32px; }
.hero-stat-num { font-size: 28px; color: var(--white); }
.hero-stat-label { font-size: 11px; color: rgba(255,255,255,.4); letter-spacing: .05em; margin-top: 2px; }
.hero-visual { display: flex; justify-content: center; align-items: flex-end; gap: 16px; }
.hero-float { animation: float 5s ease-in-out infinite; }
.hero-float:nth-child(2) { animation-delay: .8s; }
.hero-float:nth-child(3) { animation-delay: 1.6s; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }

/* ---- BUTTONS ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px; border-radius: var(--radius); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; transition: all .25s; cursor: pointer; border: none; font-family: inherit; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-light); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.4); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn-sm { padding: 8px 18px; font-size: 12px; }
.btn-lg { padding: 16px 40px; font-size: 14px; }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ---- FORMS ---- */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gray); margin-bottom: 5px; font-weight: 500; }
.form-input, .form-select, .form-textarea { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 14px; font-family: inherit; color: var(--ink); background: var(--paper); transition: border-color .2s; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--blue); outline: none; background: var(--white); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---- MODAL ---- */
.modal-overlay { position: fixed; inset: 0; background: rgba(10,10,15,.7); backdrop-filter: blur(4px); z-index: 1000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-box { background: var(--white); border-radius: 16px; width: 100%; max-width: 480px; padding: 40px; position: relative; transform: translateY(24px) scale(.97); transition: all .3s; max-height: 90vh; overflow-y: auto; }
.modal-overlay.active .modal-box { transform: none; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--paper); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s; }
.modal-close:hover { background: var(--cream); }
.modal-close svg { width: 16px; height: 16px; stroke: var(--ink); fill: none; stroke-width: 2; }
.modal-title { font-size: 26px; font-weight: 400; margin-bottom: 4px; }
.modal-sub { font-size: 13px; color: var(--gray); margin-bottom: 24px; }
.modal-tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.modal-tab { flex: 1; text-align: center; padding: 10px; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--gray); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .2s; }
.modal-tab.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 500; }
.auth-form-panel { display: none; }
.auth-form-panel.active { display: block; }
.modal-switch { font-size: 13px; color: var(--gray); margin-top: 14px; text-align: center; }
.modal-switch a { color: var(--blue); font-weight: 500; }

/* ---- CART MODAL ---- */
.cart-item { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cart-item-img { width: 60px; height: 60px; border-radius: 6px; object-fit: cover; background: var(--paper); flex-shrink: 0; }
.cart-item-name { font-size: 13px; margin-bottom: 3px; }
.cart-item-price { font-size: 14px; color: var(--gold); }
.cart-empty { text-align: center; padding: 32px; color: var(--gray); }
.cart-empty svg { width: 40px; height: 40px; stroke: var(--gray-light); fill: none; stroke-width: 1.5; margin: 0 auto 12px; }

/* ---- TOAST ---- */
.toast-container { position: fixed; bottom: 28px; right: 28px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--ink); color: var(--white); padding: 12px 20px; border-radius: 8px; font-size: 13px; display: flex; align-items: center; gap: 10px; transform: translateX(120%); opacity: 0; transition: all .4s; box-shadow: 0 8px 32px rgba(0,0,0,.3); min-width: 260px; }
.toast.show { transform: translateX(0); opacity: 1; }
.toast svg { width: 16px; height: 16px; stroke: var(--gold-light); fill: none; stroke-width: 2; flex-shrink: 0; }
.toast-error svg { stroke: var(--red); }

/* ---- PAGINATION ---- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 48px; }
.page-item { width: 38px; height: 38px; border-radius: var(--radius); border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 13px; cursor: pointer; transition: all .2s; color: var(--ink); }
.page-item:hover { border-color: var(--blue); color: var(--blue); }
.page-item.active { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* ---- SINGLE PRODUCT ---- */
.product-layout { display: grid; grid-template-columns: 1fr 1fr 260px; gap: 40px; align-items: start; }
.sp-main-img { background: var(--white); border-radius: var(--radius-lg); height: 420px; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 14px; border: 1.5px solid var(--border); }
.sp-main-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s; }
.sp-main-img:hover img { transform: scale(1.05); }
.sp-thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.sp-thumb { width: 76px; height: 76px; border-radius: 6px; border: 2px solid transparent; overflow: hidden; cursor: pointer; flex-shrink: 0; background: var(--white); transition: border-color .2s; }
.sp-thumb.active { border-color: var(--blue); }
.sp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sp-stars { color: var(--gold); font-size: 16px; margin-bottom: 4px; }
.sp-review-meta { font-size: 13px; color: var(--gray); margin-bottom: 12px; }
.sp-review-meta a { color: var(--blue); }
.sp-title { font-size: 38px; font-weight: 400; line-height: 1.1; margin-bottom: 10px; }
.sp-sku { font-size: 12px; color: var(--gray); letter-spacing: .06em; margin-bottom: 16px; }
.sp-sku strong { color: var(--ink); }
.sp-price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.sp-price { font-size: 42px; color: var(--gold); }
.sp-price-old { font-size: 18px; color: var(--gray); text-decoration: line-through; }
.sp-badge-sale { background: var(--gold); color: var(--white); font-size: 11px; font-weight: 600; letter-spacing: .08em; padding: 3px 10px; border-radius: 2px; }
.sp-desc { font-size: 14px; color: var(--gray); line-height: 1.75; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.sp-specs { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.sp-specs-title { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); font-weight: 500; margin-bottom: 10px; }
.sp-spec-row { display: flex; gap: 12px; margin-bottom: 7px; font-size: 14px; }
.sp-spec-key { color: var(--gray); min-width: 90px; flex-shrink: 0; }
.sp-spec-val { color: var(--ink); font-weight: 500; }
.sp-buy-section { margin-bottom: 20px; }
.sp-buy-label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); font-weight: 500; margin-bottom: 10px; }
.sp-buy-btns { display: flex; flex-direction: column; gap: 10px; }
.btn-hoobuy { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; background: var(--gold); color: var(--white); border-radius: 8px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; transition: all .3s; }
.btn-hoobuy:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(184,151,58,.35); }
.btn-hoobuy svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.btn-other-link { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 24px; border: 1.5px solid var(--border); color: var(--ink); border-radius: 8px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; transition: all .2s; }
.btn-other-link:hover { border-color: var(--blue); color: var(--blue); }
.sp-action-row { display: flex; gap: 10px; margin-bottom: 20px; }
.btn-icon-sq { width: 44px; height: 44px; border-radius: 6px; border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s; flex-shrink: 0; }
.btn-icon-sq:hover { border-color: var(--blue); color: var(--blue); }
.btn-icon-sq svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.sp-share { display: flex; align-items: center; gap: 10px; padding-top: 16px; border-top: 1px solid var(--border); }
.sp-share-label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gray); }
.sp-share-btns { display: flex; gap: 6px; }
.share-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s; }
.share-btn:hover { border-color: var(--blue); color: var(--blue); }
.share-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Product tabs */
.product-tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 36px; }
.product-tab { padding: 12px 24px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gray); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .2s; }
.product-tab.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 500; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-desc h3 { font-size: 24px; font-weight: 400; margin-bottom: 16px; }
.tab-desc p { font-size: 14px; color: var(--gray); line-height: 1.8; margin-bottom: 12px; }
.tab-video-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.cv-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1.5px solid var(--border); }
.cv-video-wrap { position: relative; aspect-ratio: 9/16; background: var(--ink); overflow: hidden; max-height: 380px; cursor: pointer; }
.cv-video-wrap video { width: 100%; height: 100%; object-fit: cover; }
.cv-play-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.35); transition: opacity .3s; }
.cv-play-overlay svg { width: 48px; height: 48px; stroke: var(--white); fill: rgba(255,255,255,.15); stroke-width: 1.5; }
.cv-card.playing .cv-play-overlay { opacity: 0; }
.cv-card-meta { padding: 14px; }
.cv-user { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cv-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--white); font-weight: 600; flex-shrink: 0; }
.cv-name { font-size: 13px; font-weight: 500; }
.cv-platform { font-size: 10px; color: var(--gray); letter-spacing: .06em; text-transform: uppercase; }
.cv-caption { font-size: 12px; color: var(--gray); line-height: 1.5; }
.tab-gallery-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; }
.tab-gallery-img { aspect-ratio: 1; border-radius: 6px; overflow: hidden; cursor: pointer; border: 1.5px solid transparent; transition: all .2s; }
.tab-gallery-img:hover { border-color: var(--blue); transform: scale(1.02); }
.tab-gallery-img img { width: 100%; height: 100%; object-fit: cover; }
.tab-reviews-empty { text-align: center; padding: 48px; color: var(--gray); }
.tab-reviews-empty svg { width: 48px; height: 48px; stroke: var(--border); fill: none; stroke-width: 1.5; margin: 0 auto 12px; }

/* Sidebar */
.sidebar-widget { background: var(--paper); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px; border: 1.5px solid var(--border); }
.sidebar-widget-title { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); font-weight: 600; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1.5px solid var(--border); }
.cat-list li { padding: 8px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; cursor: pointer; transition: color .2s; font-size: 13px; }
.cat-list li:last-child { border-bottom: none; }
.cat-list li:hover { color: var(--blue); }
.cat-count { font-size: 11px; background: var(--cream); padding: 2px 8px; border-radius: 3px; color: var(--gray); }
.sidebar-banner { background: linear-gradient(135deg,#0d1f35,#1a3a5c); border-radius: var(--radius-lg); padding: 24px; text-align: center; color: var(--white); }
.sidebar-banner-label { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 6px; }
.sidebar-banner-title { font-size: 22px; font-weight: 300; line-height: 1.2; margin-bottom: 4px; }
.sidebar-banner-price { font-size: 26px; color: var(--gold-light); margin-bottom: 14px; }

/* ---- FOOTER ---- */
.site-footer { background: var(--ink); padding: 56px 0 0; }
.footer-top { max-width: 1280px; margin: 0 auto; padding: 0 24px 48px; border-bottom: 1px solid rgba(255,255,255,.08); display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo-name { font-size: 20px; font-weight: 700; color: var(--white); }
.footer-desc { font-size: 13px; color: rgba(255,255,255,.45); line-height: 1.75; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 10px; }
.footer-social { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.4); transition: all .2s; }
.footer-social:hover { border-color: var(--gold); color: var(--gold-light); }
.footer-social svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.footer-col-title { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; font-weight: 500; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: 13px; color: rgba(255,255,255,.45); transition: color .2s; }
.footer-col ul a:hover { color: var(--gold-light); }
.footer-bottom { max-width: 1280px; margin: 0 auto; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,.25); letter-spacing: .04em; }
.footer-payments { display: flex; gap: 8px; align-items: center; }
.pay-chip { background: rgba(255,255,255,.08); border-radius: 4px; padding: 4px 10px; font-size: 11px; color: rgba(255,255,255,.35); letter-spacing: .04em; }

/* ---- SHOP / ARCHIVE ---- */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.shop-filters { background: var(--white); border-radius: var(--radius-lg); padding: 24px; border: 1.5px solid var(--border); position: sticky; top: 80px; }
.filter-title { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--ink); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1.5px solid var(--border); }
.filter-section { margin-bottom: 24px; }
.filter-label { font-size: 11px; font-weight: 600; color: var(--ink); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .06em; }
.filter-option { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13px; color: var(--gray); cursor: pointer; }
.filter-option input { accent-color: var(--blue); }
.filter-option:hover { color: var(--ink); }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.shop-count { font-size: 13px; color: var(--gray); }
.shop-sort select { padding: 8px 14px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 13px; font-family: inherit; color: var(--ink); background: var(--white); cursor: pointer; }
.shop-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }

/* ---- BLOG ---- */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.blog-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1.5px solid var(--border); transition: all .3s; }
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: transparent; }
.blog-thumb { height: 220px; background: var(--cream); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.blog-card:hover .blog-thumb img { transform: scale(1.05); }
.blog-body { padding: 22px; }
.blog-tag { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); font-weight: 600; margin-bottom: 8px; }
.blog-title { font-size: 20px; font-weight: 400; line-height: 1.3; margin-bottom: 10px; color: var(--ink); }
.blog-excerpt { font-size: 13px; color: var(--gray); line-height: 1.65; margin-bottom: 16px; }
.blog-read-more { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); display: flex; align-items: center; gap: 4px; }
.blog-read-more::after { content: '→'; transition: transform .2s; }
.blog-card:hover .blog-read-more::after { transform: translateX(4px); }

/* ---- SINGLE POST ---- */
.single-layout { display: grid; grid-template-columns: 1fr 280px; gap: 48px; align-items: start; }
.post-meta-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.post-tag { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; background: rgba(26,58,92,.08); color: var(--blue); padding: 3px 10px; border-radius: 3px; }
.post-title { font-size: 42px; font-weight: 300; line-height: 1.15; margin-bottom: 14px; }
.post-meta { display: flex; gap: 16px; font-size: 13px; color: var(--gray); margin-bottom: 28px; flex-wrap: wrap; }
.post-cover { width: 100%; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 32px; }
.post-cover img { width: 100%; max-height: 480px; object-fit: cover; }
.post-content { font-size: 15px; line-height: 1.85; color: var(--ink); }
.post-content h2 { font-size: 28px; font-weight: 400; margin: 36px 0 14px; }
.post-content h3 { font-size: 22px; font-weight: 400; margin: 28px 0 10px; }
.post-content p { margin-bottom: 18px; }
.post-content img { max-width: 100%; border-radius: 6px; margin: 24px 0; }
.post-content a { color: var(--blue); text-decoration: underline; }
.post-content blockquote { border-left: 3px solid var(--gold); padding: 16px 24px; margin: 24px 0; background: var(--paper); border-radius: 0 6px 6px 0; font-style: italic; color: var(--gray); }

/* ---- NEWSLETTER ---- */
.newsletter { background: linear-gradient(135deg,#0b1e36,#1a3a5c); padding: 64px 0; }
.newsletter-inner { max-width: 520px; margin: 0 auto; text-align: center; padding: 0 24px; }
.newsletter-label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.newsletter-title { font-size: 38px; font-weight: 300; color: var(--white); margin-bottom: 12px; }
.newsletter-desc { color: rgba(255,255,255,.55); font-size: 14px; margin-bottom: 28px; }
.newsletter-form { display: flex; border-radius: 6px; overflow: hidden; }
.newsletter-form input { flex: 1; padding: 14px 18px; background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.2); border-right: none; color: var(--white); font-size: 14px; font-family: inherit; transition: border-color .2s; }
.newsletter-form input::placeholder { color: rgba(255,255,255,.35); }
.newsletter-form input:focus { border-color: var(--gold); outline: none; }
.newsletter-form button { padding: 14px 24px; background: var(--gold); color: var(--white); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; transition: background .2s; font-family: inherit; flex-shrink: 0; }
.newsletter-form button:hover { background: var(--gold-light); }

/* ---- RESPONSIVE ---- */
@media(max-width:1100px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .product-layout { grid-template-columns: 1fr 1fr; }
  .sp-sidebar { grid-column: 1/-1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .tab-video-grid { grid-template-columns: repeat(2,1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-filters { position: static; }
  .shop-grid { grid-template-columns: repeat(4,1fr); }
}
@media(max-width:768px) {
  /* 手机搜索框全宽，从左边展开 */
  .header-search {
    left: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
    transform: translateY(-6px);
  }
  .header-search.search-open { transform: translateY(0); }
  .nav-links { display: none; }
  .trust-inner { gap: 14px; flex-direction: column; align-items: flex-start; }
  .product-layout { grid-template-columns: 1fr; }
  .sp-sidebar { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: repeat(2,1fr); }
  .tab-video-grid { grid-template-columns: repeat(2,1fr); }
  .tab-gallery-grid { grid-template-columns: repeat(3,1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .single-layout { grid-template-columns: 1fr; }
  .modal-box { margin: 12px; padding: 28px; }
  .sp-buy-btns { flex-direction: column; }
  .sp-action-row { flex-wrap: wrap; }
}
@media(max-width:480px) {
  .footer-top { grid-template-columns: 1fr; }
  .topbar-left { display: none; }
  .shop-grid { grid-template-columns: repeat(2,1fr); }
  .tab-video-grid { grid-template-columns: 1fr; }
}