/* ============================================================
   余千金珠宝 · 设计系统
   配色：墨黑 / 鎏金 / 米白  字体：衬线标题 + 无衬线正文
   ============================================================ */
:root {
  --gold: #c8a45c;
  --gold-deep: #a8843a;
  --gold-soft: #e8dcc4;
  --gold-tint: #f6efe2;
  --ink: #1c1a17;
  --ink-soft: #514b43;
  --cream: #faf6ef;
  --paper: #ffffff;
  --line: rgba(28, 26, 23, 0.10);
  --shadow: 0 18px 50px -24px rgba(28, 26, 23, 0.35);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 文字 ---------- */
.serif { font-family: var(--serif); }
.eyebrow {
  font-size: 13px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 600; margin-bottom: 14px;
}
.section-title {
  font-family: var(--serif); font-size: clamp(26px, 4vw, 40px);
  font-weight: 600; line-height: 1.25; color: var(--ink);
}
.section-sub { color: var(--ink-soft); margin-top: 12px; max-width: 620px; }
.divider {
  width: 56px; height: 2px; background: linear-gradient(90deg, var(--gold), transparent);
  margin: 18px 0 0;
}
.section { padding: 84px 0; }
.section.alt { background: var(--paper); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .divider { margin: 18px auto 0; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  padding: 13px 30px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: all .25s ease; white-space: nowrap;
}
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #fff; box-shadow: 0 12px 26px -12px var(--gold-deep); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -12px var(--gold-deep); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-line { background: transparent; color: var(--gold-deep); border-color: var(--gold); }
.btn-line:hover { background: var(--gold-tint); }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 239, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand .logo-mark {
  font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--ink);
  letter-spacing: 2px;
}
.brand .logo-en { font-size: 11px; letter-spacing: 0.28em; color: var(--gold-deep); font-weight: 600; }
.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a { font-size: 15px; color: var(--ink-soft); position: relative; padding: 6px 0; transition: color .2s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--gold); transition: width .25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 28px; height: 22px; position: relative; }
.nav-toggle span { position: absolute; left: 0; height: 2px; width: 100%; background: var(--ink); transition: .3s; }
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 20px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 86vh; display: flex; align-items: center;
  overflow: hidden; color: #fff;
  background:
    radial-gradient(120% 120% at 80% 20%, rgba(200,164,92,0.35), transparent 55%),
    linear-gradient(135deg, #221d16 0%, #2c2519 45%, #1a1611 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
  background-size: 26px 26px; opacity: .6;
}
.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 660px; }
.hero h1 {
  font-family: var(--serif); font-size: clamp(38px, 7vw, 72px);
  font-weight: 600; line-height: 1.15; letter-spacing: 2px; margin: 18px 0 22px;
}
.hero h1 .accent { color: var(--gold); }
.hero p { font-size: 18px; color: rgba(255,255,255,0.82); max-width: 520px; }
.hero-actions { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,0.5); }
.hero .btn-outline:hover { background: #fff; color: var(--ink); }
.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.6); font-size: 12px; letter-spacing: .3em; z-index: 2;
}
/* 今日金价条 */
.gold-strip { background: linear-gradient(135deg, #2a2317, #3c3120); color: #fff; }
.gold-inner { display: flex; align-items: center; gap: 24px; padding: 16px 0; flex-wrap: wrap; }
.gold-label { font-family: var(--serif); font-size: 18px; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.gold-label em { font-style: normal; font-size: 12px; color: rgba(255,255,255,0.55); font-family: var(--sans); }
.g-dot { width: 9px; height: 9px; border-radius: 50%; background: #f0c869; box-shadow: 0 0 0 4px rgba(240,200,105,0.18); animation: gpulse 1.8s infinite; }
@keyframes gpulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.gold-prices { display: flex; gap: 34px; margin-left: auto; }
.gp { display: flex; align-items: baseline; gap: 8px; }
.gp span { font-size: 13px; color: rgba(255,255,255,0.6); }
.gp b { font-family: var(--serif); font-size: 26px; color: #f3d08a; font-weight: 700; }
.gp i { font-style: normal; font-size: 12px; color: rgba(255,255,255,0.5); }
@media (max-width: 720px) {
  .gold-inner { gap: 10px; }
  .gold-label { font-size: 15px; }
  .gold-prices { margin-left: 0; gap: 18px; width: 100%; justify-content: space-between; }
  .gp b { font-size: 22px; }
  .gold-inner .btn.btn-sm { width: 100%; justify-content: center; margin-top: 2px; }
}
.hero-gem {
  position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
  width: 460px; max-width: 46vw; opacity: .9; z-index: 1;
  filter: drop-shadow(0 30px 60px rgba(200,164,92,0.25));
}

/* ---------- 优势条 ---------- */
.advantages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 8px; }
.advantage { text-align: center; padding: 28px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; transition: transform .25s, box-shadow .25s; }
.advantage:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.advantage .ico { width: 46px; height: 46px; margin: 0 auto 16px; color: var(--gold-deep); }
.advantage h4 { font-family: var(--serif); font-size: 19px; margin-bottom: 8px; }
.advantage p { font-size: 14px; color: var(--ink-soft); }

/* ---------- 产品网格 ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 40px; }
.chip {
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft);
  padding: 9px 22px; border-radius: 999px; font-size: 14px; cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: var(--gold); color: var(--gold-deep); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.product-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.product-media { aspect-ratio: 4/5; position: relative; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .product-media img { transform: scale(1.06); }
.product-tag {
  position: absolute; top: 14px; left: 14px; background: rgba(28,26,23,0.78); color: #fff;
  font-size: 12px; padding: 5px 12px; border-radius: 999px; letter-spacing: .05em;
}
.product-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-body h3 { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.product-meta { font-size: 13px; color: var(--ink-soft); }
.product-price { margin-top: auto; padding-top: 12px; color: var(--gold-deep); font-weight: 700; font-size: 18px; font-family: var(--serif); }
.product-price small { color: var(--ink-soft); font-weight: 400; font-size: 12px; }

/* 占位图（无上传图片时） */
.ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  position: relative;
}
.ph svg { width: 42%; opacity: .9; filter: drop-shadow(0 8px 18px rgba(0,0,0,.18)); }
.ph .ph-label {
  position: absolute; bottom: 14px; left: 0; right: 0; text-align: center;
  font-family: var(--serif); font-size: 15px; letter-spacing: 2px; color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 8px rgba(0,0,0,.3);
}

/* ---------- 新闻 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.news-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-media { aspect-ratio: 16/10; }
.news-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-date { font-size: 13px; color: var(--gold-deep); letter-spacing: .05em; }
.news-body h3 { font-family: var(--serif); font-size: 19px; line-height: 1.4; }
.news-body p { font-size: 14px; color: var(--ink-soft); flex: 1; }
.news-more { font-size: 14px; color: var(--gold-deep); font-weight: 600; }

/* ---------- 关于 / 品牌故事 ---------- */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.story-text p { color: var(--ink-soft); margin-bottom: 18px; }
.story-visual {
  aspect-ratio: 4/5; border-radius: 18px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #2a241b, #4a3c25);
  display: flex; align-items: center; justify-content: center;
}
.story-visual .big-mark { font-family: var(--serif); font-size: 120px; color: rgba(200,164,92,0.85); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.stat { text-align: center; }
.stat .num { font-family: var(--serif); font-size: 44px; color: var(--gold-deep); font-weight: 700; }
.stat .lab { color: var(--ink-soft); font-size: 14px; margin-top: 4px; }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-info li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-info .ci { color: var(--gold-deep); flex: 0 0 24px; margin-top: 3px; }
.contact-info strong { display: block; font-family: var(--serif); font-size: 16px; }
.contact-info span { color: var(--ink-soft); font-size: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; margin-bottom: 7px; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--sans); font-size: 15px; background: var(--paper); color: var(--ink); transition: border .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 13px; color: var(--ink-soft); margin-top: 10px; }

/* ---------- 详情页 ---------- */
.detail-hero { padding: 50px 0 10px; }
.detail-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; padding: 36px 0 76px; }
.detail-media-col { min-width: 0; position: sticky; top: 92px; }
.detail-media { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/5; background: #f6f2ea; box-shadow: 0 20px 50px rgba(70,52,22,.10); }
.detail-media img, .detail-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-media img.fade { animation: mediaFade .45s ease; }
@keyframes mediaFade { from { opacity: 0; } to { opacity: 1; } }
.detail-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 12px; margin-top: 16px; }
.detail-thumbs .dt { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: #efe9dd; cursor: pointer; transition: border-color .2s, transform .2s; }
.detail-thumbs .dt:hover { transform: translateY(-2px); }
.detail-thumbs .dt img, .detail-thumbs .dt video { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-thumbs .dt.active { border-color: var(--gold-deep); }
.detail-thumbs .dt .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(20,15,5,.32); }
.detail-thumbs .dt .play svg { width: 24px; height: 24px; fill: #fff; }
.detail-thumbs .dt.active .play { background: rgba(178,140,60,.5); }

.detail-info { padding-top: 4px; }
.di-eyebrow { font-size: 12px; letter-spacing: .24em; color: var(--gold-deep); text-transform: uppercase; margin-bottom: 16px; }
.detail-info h1 { font-family: var(--serif); font-size: 25px; line-height: 1.3; margin-bottom: 10px; color: var(--ink); }
.di-meta { color: var(--ink-soft); font-size: 15px; margin-bottom: 22px; }
.di-price { font-family: var(--serif); font-size: 32px; color: var(--gold-deep); font-weight: 700; margin-bottom: 6px; }
.di-price .unit { font-size: 16px; font-weight: 400; color: var(--ink-soft); margin-left: 4px; }
.di-price-note { font-size: 13px; color: var(--ink-soft); margin-bottom: 24px; line-height: 1.6; }
.di-sep { height: 1px; background: var(--line); margin: 0 0 24px; }
.di-desc { color: var(--ink-soft); line-height: 1.85; font-size: 15px; margin-bottom: 30px; }
.di-specs { margin-bottom: 32px; }
.spec-title { font-family: var(--serif); font-size: 17px; color: var(--ink); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.spec-title::before { content: ''; width: 4px; height: 16px; background: var(--gold-deep); border-radius: 2px; }
.spec-ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.spec-ul li { display: flex; flex-direction: column; gap: 3px; padding: 9px 13px; font-size: 13px; border: 1px solid var(--line); border-radius: 9px; background: #faf8f3; }
.spec-ul li span { color: var(--ink-soft); font-size: 12px; }
.spec-ul li b { color: var(--ink); font-weight: 600; text-align: left; }
.di-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.di-actions .btn { flex: 1 1 180px; justify-content: center; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 14px; margin-bottom: 10px; }
.back-link:hover { color: var(--gold-deep); }
@media (max-width: 860px) {
  .detail-grid { grid-template-columns: 1fr; gap: 24px; }
  .detail-media-col { position: static; }
  .detail-info h1 { font-size: 21px; }
  .di-price { font-size: 28px; }
  .spec-ul { grid-template-columns: 1fr 1fr; }
}
.article { max-width: 760px; margin: 0 auto; }
.article h1 { font-family: var(--serif); font-size: 34px; line-height: 1.3; margin-bottom: 14px; }
.article .meta { color: var(--gold-deep); font-size: 14px; margin-bottom: 26px; }
.article .cover { border-radius: 16px; overflow: hidden; aspect-ratio: 16/9; margin-bottom: 30px; }
.article p { color: var(--ink-soft); margin-bottom: 18px; font-size: 16px; }
.article img { max-width: 100%; height: auto; border-radius: 10px; margin: 18px 0; display: block; }
.product-rich { max-width: 860px; margin: 0 auto; color: var(--ink-soft); font-size: 16px; line-height: 1.9; }
.product-rich h1, .product-rich h2, .product-rich h3 { font-family: var(--serif); color: var(--ink); margin: 30px 0 14px; line-height: 1.35; }
.product-rich h2 { font-size: 24px; }
.product-rich h3 { font-size: 20px; }
.product-rich p { margin-bottom: 16px; }
.product-rich img { max-width: 100%; height: auto; border-radius: 12px; margin: 20px 0; display: block; box-shadow: 0 10px 30px rgba(70,52,22,.08); }
.product-rich a { color: var(--gold-deep); text-decoration: none; border-bottom: 1px solid rgba(178,140,60,.4); }
.product-rich ul, .product-rich ol { margin: 0 0 16px 22px; }
.product-rich li { margin-bottom: 8px; }
.article h2, .article h3, .article h4 { font-family: var(--serif); color: var(--ink); margin: 28px 0 12px; line-height: 1.4; }
.article h2 { font-size: 24px; } .article h3 { font-size: 20px; }
.article ul, .article ol { margin: 0 0 18px 22px; color: var(--ink-soft); font-size: 16px; }
.article li { margin-bottom: 8px; }
.article blockquote { border-left: 3px solid var(--gold); padding: 6px 0 6px 18px; margin: 0 0 18px; color: var(--ink-soft); background: var(--gold-tint); border-radius: 0 8px 8px 0; }
.article a { color: var(--gold-deep); text-decoration: underline; }
.kbread { font-size: 13px; color: var(--gold-deep); margin-bottom: 14px; letter-spacing: .03em; }
.kbread a:hover { text-decoration: underline; }
.ktags { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.ktag { font-size: 13px; color: var(--gold-deep); border: 1px solid var(--gold); border-radius: 999px; padding: 5px 16px; background: var(--gold-tint); }

/* ---------- 页脚 ---------- */
.site-footer { background: #1a1611; color: rgba(255,255,255,0.7); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h5 { font-family: var(--serif); font-size: 16px; color: #fff; margin-bottom: 18px; }
.footer-grid p, .footer-grid a { font-size: 14px; color: rgba(255,255,255,0.62); line-height: 2; }
.footer-grid a:hover { color: var(--gold); }
.footer-brand .logo-mark { color: #fff; font-family: var(--serif); font-size: 22px; }
.footer-brand p { margin-top: 14px; max-width: 280px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 44px; padding-top: 22px; text-align: center; font-size: 13px; color: rgba(255,255,255,0.45); }

/* ---------- 提示 / 空态 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 36px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 13px 24px; border-radius: 999px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: all .3s; z-index: 999; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.empty { text-align: center; color: var(--ink-soft); padding: 60px 0; font-size: 15px; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .advantages { grid-template-columns: repeat(2, 1fr); }
  .product-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid, .contact-grid, .detail-grid { grid-template-columns: 1fr; gap: 36px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-gem { opacity: .35; right: -120px; }
  /* 平板/手机：导航转汉堡，避免横排链接溢出 */
  .nav-links {
    position: fixed; top: 74px; left: 0; right: 0; background: var(--cream);
    flex-direction: column; gap: 0; padding: 10px 24px 22px; border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform .3s; box-shadow: var(--shadow); z-index: 99;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .nav-actions .btn { display: none; }
}
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .section { padding: 52px 0; }
  .product-grid, .news-grid, .advantages { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  /* 数据指标保持三列更紧凑，不占整屏 */
  .stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat .num { font-size: 28px; }
  .stat .lab { font-size: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero { min-height: 76vh; }
  .hero h1 { letter-spacing: 1px; }
  .hero p { font-size: 15px; }
  .hero-actions { gap: 12px; }
  .product-body h3 { font-size: 18px; }
  .product-price { font-size: 17px; }
  .story-visual .big-mark { font-size: 92px; }
  /* 富文本/文章在手机上收敛字号与行距 */
  .product-rich, .product-rich p, .article, .article p { font-size: 15px; line-height: 1.8; }
  .product-rich h2, .article h2 { font-size: 21px; }
  .product-rich h3, .article h3 { font-size: 18px; }
  .article h1 { font-size: 26px; }
}
@media (max-width: 480px) {
  .hero-actions .btn { flex: 1 1 auto; }
  .detail-info h1 { font-size: 20px; }
}
