/* ============================================================
   AI福宝 · 官网样式
   东方文明美学：朱砂红 + 鎏金 + 宣纸白
============================================================ */

:root {
  --primary: #a83226;        /* 朱砂红 */
  --primary-dark: #7e241b;
  --gold: #b8860b;           /* 鎏金 */
  --gold-light: #d4af37;
  --bg: #fdfbf6;             /* 宣纸白 */
  --bg-soft: #f7f3ea;
  --text: #2b2b2b;
  --text-soft: #666;
  --text-light: #999;
  --border: #e8e2d4;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(120, 60, 30, .08);
  --font-serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ================= 顶部导航 ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 251, 246, .95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
}
.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e05a3a, var(--primary) 60%, var(--primary-dark));
  color: #f5e6c8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(168, 50, 38, .35);
}
.logo-text { font-size: 22px; font-weight: bold; color: var(--text); letter-spacing: 2px; }
.logo-sub { font-size: 12px; color: var(--text-light); letter-spacing: 1px; }

.nav { display: flex; gap: 8px; }
.nav a {
  padding: 8px 18px;
  border-radius: 20px;
  color: var(--text);
  font-size: 15px;
  transition: all .25s;
}
.nav a:hover { background: var(--bg-soft); color: var(--primary); }
.nav a.active {
  color: var(--primary);
  font-weight: bold;
  position: relative;
}
.nav a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: var(--primary);
}

/* ================= 英雄区 ================= */
.hero {
  position: relative;
  padding: 90px 0 80px;
  background:
    radial-gradient(ellipse 800px 400px at 85% -10%, rgba(212, 175, 55, .12), transparent),
    radial-gradient(ellipse 700px 500px at 5% 110%, rgba(168, 50, 38, .07), transparent),
    var(--bg);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 20px;
  font-size: 13px;
  letter-spacing: 3px;
  margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: 52px;
  line-height: 1.25;
  letter-spacing: 4px;
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--primary); }
.hero p.lead {
  font-size: 18px;
  color: var(--text-soft);
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 1px;
  transition: all .25s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 6px 18px rgba(168, 50, 38, .3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(168, 50, 38, .4); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.hero-qr {
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.hero-qr img {
  width: 200px;
  height: 200px;
  margin: 0 auto 16px;
  border-radius: 8px;
}
.hero-qr .qr-title { font-weight: bold; font-size: 17px; margin-bottom: 4px; }
.hero-qr .qr-sub { font-size: 13px; color: var(--text-light); }

/* ================= 通用区块 ================= */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .en {
  font-size: 13px;
  letter-spacing: 6px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-head h2 {
  font-family: var(--font-serif);
  font-size: 34px;
  letter-spacing: 6px;
  margin-bottom: 14px;
}
.section-head .divider {
  width: 60px;
  height: 3px;
  margin: 0 auto 16px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  border-radius: 2px;
}
.section-head p { color: var(--text-soft); max-width: 600px; margin: 0 auto; }

/* ================= 特色卡片 ================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(168,50,38,.1), rgba(212,175,55,.12));
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 19px; margin-bottom: 10px; letter-spacing: 1px; }
.feature-card p { font-size: 14px; color: var(--text-soft); }

/* ================= 选品机构（卡片网格） ================= */
.curator-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.curator-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: all .3s;
}
.curator-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.curator-card img {
  width: 88px; height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  border: 3px solid var(--gold-light);
}
.curator-card .name { font-weight: bold; font-size: 17px; margin-bottom: 6px; }
.curator-card .tag {
  display: inline-block;
  font-size: 12px;
  color: var(--gold);
  border: 1px solid var(--gold-light);
  border-radius: 12px;
  padding: 2px 12px;
}

/* ================= 商品 ================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .3s;
  display: block;
  color: var(--text);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card .thumb {
  aspect-ratio: 1 / 1;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .thumb .placeholder { font-size: 40px; opacity: .35; }
.product-card .info { padding: 16px 18px; }
.product-card .pname {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card .pmeta { font-size: 12px; color: var(--text-light); margin-bottom: 8px; }
.product-card .price { color: var(--primary); font-size: 18px; font-weight: bold; }
.product-card .price small { font-size: 12px; }

.empty-state {
  text-align: center;
  padding: 70px 20px;
  color: var(--text-light);
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.empty-state .icon { font-size: 48px; margin-bottom: 16px; opacity: .4; }
.loading-state { text-align: center; padding: 70px 20px; color: var(--text-light); }
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ================= CTA ================= */
.cta-band {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary) 55%, #c0562f);
  color: #fff;
  padding: 72px 0;
  text-align: center;
}
.cta-band h2 { font-family: var(--font-serif); font-size: 32px; letter-spacing: 6px; margin-bottom: 14px; }
.cta-band p { opacity: .85; margin-bottom: 30px; }
.cta-band .btn { background: #fff; color: var(--primary); }
.cta-band .btn:hover { background: #f5e6c8; color: var(--primary-dark); }

/* ================= 内容页（协议/关于/联系） ================= */
.page-hero {
  padding: 64px 0 48px;
  text-align: center;
  background:
    radial-gradient(ellipse 600px 300px at 50% -20%, rgba(212,175,55,.14), transparent),
    var(--bg);
}
.page-hero h1 { font-family: var(--font-serif); font-size: 36px; letter-spacing: 6px; margin-bottom: 10px; }
.page-hero .divider { width: 60px; height: 3px; margin: 0 auto 14px; background: linear-gradient(90deg, var(--primary), var(--gold)); border-radius: 2px; }
.page-hero p { color: var(--text-soft); }

.content-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 24px 90px;
}
.content-body h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  margin: 44px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--primary);
  letter-spacing: 2px;
}
.content-body h2:first-child { margin-top: 0; }
.content-body p { margin-bottom: 12px; color: #444; font-size: 15px; }
.content-body .update-date { color: var(--text-light); font-size: 14px; margin-bottom: 36px; }
.content-body .panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 44px;
  box-shadow: var(--shadow);
}

/* 联系卡片 */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all .3s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-card .icon { font-size: 32px; margin-bottom: 14px; }
.contact-card h3 { font-size: 17px; margin-bottom: 8px; }
.contact-card p { font-size: 14px; color: var(--text-soft); word-break: break-all; }

/* ================= 页脚 ================= */
.site-footer {
  background: #241a16;
  color: #b8a99a;
  padding: 56px 0 0;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-grid h4 { color: #e8dcc8; font-size: 16px; margin-bottom: 16px; letter-spacing: 2px; }
.footer-grid a { color: #b8a99a; display: block; margin-bottom: 10px; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-brand .logo-mark { width: 38px; height: 38px; font-size: 20px; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; line-height: 1.8; opacity: .8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 22px 0;
  text-align: center;
  font-size: 13px;
  color: #8a7a6a;
}
.footer-bottom a { color: #8a7a6a; margin: 0 8px; }
.footer-bottom a:hover { color: var(--gold-light); }

/* ================= 响应式 ================= */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .curator-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 38px; }
  .nav a { padding: 8px 12px; font-size: 14px; }
}
@media (max-width: 600px) {
  .feature-grid, .curator-grid, .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-inner { height: auto; padding: 14px 0; flex-wrap: wrap; gap: 12px; }
  .nav { flex-wrap: wrap; }
}

/* ================= 商品详情 ================= */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.detail-gallery img#mainImg {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.detail-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 72px; opacity: .35;
}
.thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.thumbs img {
  width: 68px; height: 68px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all .2s;
}
.thumbs img.active, .thumbs img:hover { border-color: var(--primary); }
.detail-info h1 { font-size: 26px; margin-bottom: 16px; line-height: 1.4; }
.detail-price {
  color: var(--primary);
  font-size: 34px;
  font-weight: bold;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.detail-price small { font-size: 15px; font-weight: normal; }
.detail-meta { margin-bottom: 24px; }
.detail-meta > div {
  display: flex;
  gap: 16px;
  padding: 8px 0;
  font-size: 15px;
  border-bottom: 1px dashed var(--border);
}
.detail-meta span { color: var(--text-light); min-width: 70px; }
.detail-desc { margin-bottom: 28px; }
.detail-desc h3 { font-size: 17px; margin-bottom: 10px; }
.detail-desc p { color: var(--text-soft); font-size: 15px; white-space: pre-line; }
.detail-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ================= 分页 ================= */
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 44px; flex-wrap: wrap; }
.page-btn {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  transition: all .2s;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

@media (max-width: 860px) {
  .detail-grid { grid-template-columns: 1fr; }
}

/* ================= 选品机构卡片 ================= */
.org-card { text-align: center; }
.org-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(168,50,38,.1), rgba(212,175,55,.12));
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin: 0 auto 14px;
}
.org-area { font-size: 13px; color: var(--gold); margin-bottom: 10px; }
.org-tags { margin-bottom: 12px; }
.org-tags .tag { margin: 0 3px; }
.org-intro {
  font-size: 13px;
  color: var(--text-soft);
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
  min-height: 60px;
}
.org-meta {
  font-size: 12px;
  color: var(--text-light);
  border-top: 1px dashed var(--border);
  padding-top: 12px;
}
