/* GlaceFlower static showcase —冰川蓝设计规范 */
:root {
  --primary: #2E7CF6;
  --dark: #0B1F3A;
  --ice: #F5FAFF;
  --text: #1A2333;
  --muted: #5B6B7F;
  --card: #FFFFFF;
  --radius: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  background: var(--ice);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }

/* Header */
header {
  background: var(--card);
  border-bottom: 1px solid #E3EDF9;
  position: sticky; top: 0; z-index: 50;
}
.nav {
  max-width: 1100px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.logo { font-size: 1.35rem; font-weight: 800; color: var(--dark); letter-spacing: .5px; }
.logo span { color: var(--primary); }
.logo-link { display: flex; align-items: center; }
.logo-img { height: 46px; width: auto; display: block; }
.logo-text { font-size: 1.35rem; font-weight: 800; color: #E56631; letter-spacing: .5px; margin-left: 10px; white-space: nowrap; }
nav ul { display: flex; gap: 18px; list-style: none; flex-wrap: wrap; }
nav a { color: var(--muted); font-weight: 600; font-size: .95rem; }
nav a:hover, nav a.active { color: var(--primary); }

/* Language switcher */
.lang-btn {
  background: transparent; border: 1.5px solid var(--primary); color: var(--primary);
  font-weight: 700; font-size: .82rem; padding: 6px 14px; border-radius: 999px;
  cursor: pointer; margin-left: 4px; transition: background .15s ease, color .15s ease;
}
.lang-btn:hover { background: var(--primary); color: #fff; }

/* Hero */
.hero { background: linear-gradient(135deg, #EAF3FF 0%, #F5FAFF 60%); padding: 64px 20px 48px; text-align: center; position: relative; overflow: hidden; }
.hero > * { position: relative; z-index: 1; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("logo.png") 50% 50% / 520px no-repeat;
  opacity: .1;
}

/* Categories section logo watermark */
#categories { position: relative; overflow: hidden; }
#categories > * { position: relative; z-index: 1; }
#categories::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("logo.png") 50% 50% / 460px no-repeat;
  opacity: .07;
}

/* Full-page logo watermark: every section + footer, top to bottom */
section, footer { position: relative; overflow: hidden; }
section > *, footer > * { position: relative; z-index: 1; }
section::before, footer::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("logo.png") 50% 50% / 460px no-repeat;
  opacity: .06;
}
footer::before { opacity: .14; }
.hero h1 { font-size: 2.6rem; color: var(--dark); letter-spacing: 1px; }
.hero .slogan { margin-top: 6px; font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.hero .decode { margin-top: 4px; color: var(--muted); font-size: .95rem; font-style: italic; }
.hero p.body { max-width: 640px; margin: 18px auto 26px; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.btn {
  display: inline-block; background: var(--primary); color: #fff; font-weight: 700;
  padding: 13px 30px; border-radius: 999px; border: none; cursor: pointer; font-size: 1rem;
}
.btn:hover { background: #1F66D6; }
.btn.ghost { background: transparent; color: var(--primary); border: 2px solid var(--primary); }

/* Trust bar */
.trust { max-width: 1100px; margin: 26px auto 0; padding: 0 20px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.trust span {
  background: var(--card); border: 1px solid #E3EDF9; border-radius: 999px;
  padding: 8px 16px; font-size: .85rem; font-weight: 600; color: var(--dark);
}

/* Sections */
section { max-width: 1100px; margin: 0 auto; padding: 56px 20px; }
section h2 { text-align: center; font-size: 1.7rem; color: var(--dark); margin-bottom: 8px; }
section .sub { text-align: center; color: var(--muted); margin-bottom: 32px; }

/* Category grid */
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.cat-card {
  background: var(--card); border: 1px solid #E3EDF9; border-radius: var(--radius);
  padding: 26px 22px; transition: transform .15s ease, box-shadow .15s ease; display: block;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(46,124,246,.12); }
.cat-card h3 { color: var(--dark); font-size: 1.15rem; }
.cat-card .zh { color: var(--primary); font-size: .85rem; font-weight: 700; }
.cat-card p { margin-top: 8px; color: var(--muted); font-size: .92rem; }

/* Product grid */
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.product {
  background: var(--card); border: 1px solid #E3EDF9; border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.thumb img { width:100%; height:100%; object-fit:contain; background:#fff; padding:6px; }
.amz-link { font-size:.76rem; color:var(--primary); font-weight:700; text-decoration:none; }
.thumb {
  height: 150px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #DCEBFF, #F0F7FF); color: #7FA9E8; font-size: 2.2rem;
}
.product .info { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product h3 { font-size: 1.02rem; color: var(--dark); }
.product p { color: var(--muted); font-size: .88rem; flex: 1; }
.product .cta-row { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.product .price { font-weight: 800; color: var(--dark); }
.product .cta-row a { font-size: .85rem; font-weight: 700; }
.soon { font-size: .75rem; color: #9AA9BC; }

/* Promise */
.promise { background: var(--dark); color: #EAF3FF; border-radius: var(--radius); padding: 40px 30px; }
.promise h2 { color: #fff; }
.promise .sub { color: #A9C4E8; }
.promise ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 10px; }
.promise li { background: rgba(255,255,255,.06); border-radius: 10px; padding: 16px 18px; font-size: .95rem; }
.promise li b { color: #fff; display: block; margin-bottom: 4px; }

/* About teaser / page prose */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { text-align: left; }
.prose h3 { color: var(--dark); margin: 22px 0 8px; }
.prose p { margin-bottom: 14px; color: var(--muted); }
.prose .lead { color: var(--text); font-weight: 600; }

/* Forms */
.signup { background: #EAF3FF; border-radius: var(--radius); padding: 36px 24px; text-align: center; }
.signup form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.signup input[type=email] {
  padding: 12px 16px; border: 1px solid #C7DBF7; border-radius: 999px; min-width: 260px; font-size: 1rem;
}

/* Contact */
.contact-card { background: var(--card); border: 1px solid #E3EDF9; border-radius: var(--radius); padding: 30px; max-width: 640px; margin: 0 auto; }
.contact-card dl { display: grid; grid-template-columns: 130px 1fr; gap: 10px 14px; margin-top: 12px; }
.contact-card dt { font-weight: 700; color: var(--dark); }
.contact-card dd { color: var(--muted); }

/* Footer */
footer { background: var(--dark); color: #9FB6D4; margin-top: 40px; }
.foot {
  max-width: 1100px; margin: 0 auto; padding: 34px 20px;
  display: flex; flex-wrap: wrap; gap: 22px; justify-content: space-between;
}
.foot .brand { color: #fff; font-weight: 800; font-size: 1.2rem; }
.foot .slogan { font-size: .9rem; margin-top: 4px; }
.foot ul { list-style: none; display: flex; gap: 16px; flex-wrap: wrap; font-size: .88rem; }
.foot .foot-brand { flex: 1 1 240px; }
.foot .foot-links { flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; }
.foot .foot-policy ul { font-size: .78rem; gap: 12px; letter-spacing: 0; }
.foot .foot-cats ul { font-size: .78rem; gap: 12px; letter-spacing: 0; }
.foot a { color: #9FB6D4; }
.foot a:hover { color: #fff; }
.foot .legal { width: 100%; border-top: 1px solid rgba(255,255,255,.12); padding-top: 14px; font-size: .8rem; }

.note { text-align: center; color: #9AA9BC; font-size: .8rem; margin-top: 14px; }

/* ==========================================================================
   GlaceFlower 购物车 + 产品目录/详情 (2026-12-03 上架6品新增)
   ========================================================================== */

/* 导航购物车入口 */
.nav-cart { position: relative; color: var(--primary) !important; font-size: 1.05rem; font-weight: 700; white-space: nowrap; }
.nav-cart [data-cart-count] {
  display: none; background: #E56631; color: #fff; font-size: .7rem; font-weight: 800;
  min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px;
  align-items: center; justify-content: center; vertical-align: top; margin-left: 2px;
}

/* 悬浮购物车按钮（醒目：右下角橙色圆形 + 角标） */
.gc-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 9000;
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, #E56631, #F08A3C); color: #fff;
  box-shadow: 0 10px 26px rgba(229,102,49,.42);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.gc-fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 32px rgba(229,102,49,.55); }
.gc-fab-count {
  position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 5px;
  background: var(--dark); color: #fff; border: 2px solid #fff; border-radius: 999px;
  font-size: .74rem; font-weight: 800; display: none; align-items: center; justify-content: center;
}

/* 遮罩 + 侧滑面板 */
.gc-backdrop { position: fixed; inset: 0; background: rgba(11,31,58,.42); z-index: 9500; opacity: 0; visibility: hidden; transition: opacity .2s ease; }
.gc-backdrop.show, body.gc-lock .gc-backdrop { opacity: 1; visibility: visible; }
.gc-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); z-index: 9600;
  background: #fff; box-shadow: -8px 0 30px rgba(11,31,58,.18);
  transform: translateX(105%); transition: transform .25s ease; display: flex; flex-direction: column;
}
.gc-panel.open { transform: translateX(0); }
body.gc-lock { overflow: hidden; }
.gc-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #E3EDF9; }
.gc-head h2 { font-size: 1.2rem; color: var(--dark); margin: 0; }
.gc-head-count { color: var(--primary); }
.gc-close { background: none; border: none; font-size: 1.7rem; line-height: 1; color: var(--muted); cursor: pointer; }
.gc-body { flex: 1; overflow-y: auto; padding: 12px 20px; }
.gc-foot { padding: 16px 20px 22px; border-top: 1px solid #E3EDF9; background: var(--ice); }
.gc-empty { text-align: center; color: var(--muted); padding: 60px 10px; }
.gc-empty-icon { font-size: 2.6rem; opacity: .5; }
.gc-empty p { font-weight: 700; color: var(--dark); margin: 12px 0 4px; }
.gc-empty span { font-size: .86rem; }
.gc-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #EEF4FC; position: relative; }
.gc-item-img { width: 68px; height: 68px; object-fit: contain; background: var(--ice); border-radius: 10px; }
.gc-item-main { flex: 1; min-width: 0; }
.gc-item-name { font-size: .92rem; font-weight: 700; color: var(--dark); padding-right: 22px; line-height: 1.35; }
.gc-item-qty { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.gc-item-qty button { width: 26px; height: 26px; border: 1px solid #C7DBF7; background: #fff; border-radius: 6px; cursor: pointer; font-size: 1rem; color: var(--primary); font-weight: 700; }
.gc-item-qty span { min-width: 18px; text-align: center; font-weight: 700; }
.gc-item-remove { position: absolute; top: 10px; right: 0; border: none; background: none; color: #9AA9BC; font-size: 1.3rem; cursor: pointer; line-height: 1; }
.gc-summary { display: flex; justify-content: space-between; align-items: center; font-size: 1rem; color: var(--muted); }
.gc-summary b { font-size: 1.15rem; color: var(--dark); }
.gc-hint { font-size: .76rem; color: #9AA9BC; margin: 8px 0 14px; line-height: 1.4; }
.gc-checkout, .gc-email { display: block; width: 100%; padding: 13px; border-radius: 999px; font-weight: 800; font-size: .96rem; cursor: pointer; border: none; margin-top: 8px; }
.gc-checkout { background: #E56631; color: #fff; }
.gc-checkout:hover { background: #D4571F; }
.gc-email { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.gc-email:hover { background: var(--primary); color: #fff; }
.gc-toast {
  position: fixed; left: 50%; bottom: 34px; z-index: 9800; transform: translate(-50%, 20px);
  background: var(--dark); color: #fff; padding: 12px 16px 12px 20px; border-radius: 999px;
  display: flex; align-items: center; gap: 16px; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  opacity: 0; transition: opacity .25s ease, transform .25s ease; font-size: .92rem;
}
.gc-toast.show { opacity: 1; transform: translate(-50%, 0); }
.gc-toast-action { background: #E56631; color: #fff; border: none; border-radius: 999px; padding: 6px 14px; font-weight: 700; cursor: pointer; font-size: .82rem; }

/* 产品目录卡片（collection.js） */
.col-badge { display: inline-block; background: #E56631; color: #fff; font-size: .68rem; font-weight: 800; padding: 2px 9px; border-radius: 999px; margin-bottom: 4px; align-self: flex-start; }
.product .info h3 a { color: var(--dark); }
.product .info h3 a:hover { color: var(--primary); }
.col-detail { font-size: .85rem; font-weight: 700; color: var(--primary); }
.col-add { background: #E56631; color: #fff; border: none; border-radius: 999px; padding: 7px 13px; font-size: .8rem; font-weight: 800; cursor: pointer; white-space: nowrap; }
.col-add:hover { background: #D4571F; }
.col-amz { display: inline-block; margin-top: 2px; }
.pd-mini-add { background: #E56631; color: #fff; border: none; border-radius: 999px; padding: 6px 12px; font-size: .8rem; font-weight: 800; cursor: pointer; }

/* 产品详情页 */
.pd-root { max-width: 1100px; margin: 0 auto; padding: 24px 20px 40px; }
.pd-loading { text-align: center; padding: 80px; color: var(--muted); }
.pd-crumb { font-size: .84rem; color: var(--muted); margin-bottom: 18px; }
.pd-crumb a { color: var(--primary); }
.pd-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: start; }
.pd-gallery { position: sticky; top: 84px; }
.pd-mainimg { background: #fff; border: 1px solid #E3EDF9; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: 10px; }
.pd-mainimg img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 7px; margin-top: 10px; }
.pd-thumb { border: 2px solid transparent; background: #fff; border-radius: 9px; padding: 3px; cursor: pointer; aspect-ratio: 1; overflow: hidden; }
.pd-thumb.active { border-color: var(--primary); }
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pd-info { display: flex; flex-direction: column; gap: 12px; }
.pd-badge { display: inline-block; background: #E56631; color: #fff; font-size: .72rem; font-weight: 800; padding: 3px 11px; border-radius: 999px; align-self: flex-start; }
.pd-title { font-size: 1.85rem; color: var(--dark); line-height: 1.25; }
.pd-tagline { color: var(--muted); font-size: 1.02rem; }
.pd-rating { color: #E5A100; font-size: .95rem; }
.pd-rating span { color: var(--muted); font-size: .84rem; margin-left: 6px; }
.pd-buybox { background: var(--ice); border: 1px solid #E3EDF9; border-radius: var(--radius); padding: 18px; }
.pd-price-label { font-size: .9rem; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.pd-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-add { flex: 1 1 190px; background: linear-gradient(135deg, #E56631, #F08A3C); color: #fff; border: none; border-radius: 999px; padding: 15px 22px; font-size: 1.05rem; font-weight: 800; cursor: pointer; box-shadow: 0 8px 20px rgba(229,102,49,.3); }
.pd-add:hover { filter: brightness(1.05); }
.pd-amazon { flex: 1 1 190px; text-align: center; background: var(--primary); color: #fff !important; border-radius: 999px; padding: 15px 22px; font-size: 1.05rem; font-weight: 800; }
.pd-amazon:hover { background: #1F66D6; }
.pd-trust { font-size: .78rem; color: var(--muted); margin-top: 12px; text-align: center; }
.pd-bullets { list-style: none; display: grid; gap: 9px; }
.pd-bullets li { position: relative; padding-left: 20px; color: var(--text); font-size: .94rem; }
.pd-bullets li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 800; }
.pd-details { margin-top: 42px; display: grid; gap: 26px; }
.pd-block h2 { text-align: left; font-size: 1.3rem; color: var(--dark); margin-bottom: 12px; border-left: 4px solid var(--primary); padding-left: 12px; }
.pd-block p { color: var(--muted); line-height: 1.75; }
.pd-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.pd-table th, .pd-table td { border: 1px solid #E3EDF9; padding: 10px 14px; text-align: left; vertical-align: top; }
.pd-table th { background: var(--ice); color: var(--dark); width: 32%; font-weight: 700; }
.pd-table td { color: var(--muted); }
.pd-howto, .pd-notes { list-style: none; display: grid; gap: 10px; }
.pd-howto li { position: relative; padding-left: 38px; color: var(--text); }
.pd-step { position: absolute; left: 0; top: 0; width: 26px; height: 26px; background: var(--primary); color: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .82rem; font-weight: 800; }
.pd-notes li { position: relative; padding-left: 20px; color: var(--muted); font-size: .92rem; }
.pd-notes li::before { content: "•"; position: absolute; left: 4px; color: #E56631; font-weight: 800; }
.pd-related-wrap { max-width: 1100px; margin: 0 auto; padding: 10px 20px 50px; }
.pd-related-wrap h2 { text-align: center; font-size: 1.5rem; color: var(--dark); margin-bottom: 24px; }

@media (max-width: 820px) {
  .pd-layout { grid-template-columns: 1fr; }
  .pd-gallery { position: static; }
  .pd-title { font-size: 1.5rem; }
  .gc-fab { right: 14px; bottom: 14px; width: 54px; height: 54px; }
}

/* 数据驱动产品容器（collection.js 注入） */
[data-catalog] { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; width: 100%; }
