/* 珠宝首饰资讯平台 site.css —— 暖棕金色系，语义化 HTML5 */
:root {
  --brand: #7a4a1a;
  --brand-dark: #5a3413;
  --brand-deep: #3e2a18;
  --gold: #b8860b;
  --gold-light: #f2c94c;
  --cream: #faf6ef;
  --card-bg: #ffffff;
  --ink: #33241a;
  --ink-soft: #6b5648;
  --line: #eadfce;
  --accent-red: #b3542c;
  --radius: 10px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "微软雅黑", "Hiragino Sans GB", sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.85;
  font-size: 16px;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--accent-red); }
img, svg { max-width: 100%; }
ul, ol { list-style-position: inside; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- header ---------- */
.site-header {
  background: linear-gradient(180deg, var(--brand-deep) 0%, var(--brand) 100%);
  border-bottom: 3px solid var(--gold);
  position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { display: block; }
.logo-text { color: #fdf3dd; font-size: 22px; font-weight: 700; letter-spacing: 1px; }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.main-nav a {
  color: #f0e2c8; padding: 8px 14px; border-radius: 6px; font-size: 15px;
}
.main-nav a:hover { background: rgba(242, 201, 76, .16); color: var(--gold-light); }

/* ---------- main ---------- */
.site-main { padding: 22px 20px 40px; }

/* breadcrumb */
.breadcrumb { font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--accent-red); }
.breadcrumb .sep { margin: 0 8px; color: #c9b89d; }

/* headings */
h1 {
  font-size: 30px; color: var(--brand-dark); line-height: 1.4;
  border-left: 5px solid var(--gold); padding-left: 14px; margin: 8px 0 18px;
}
h2 { font-size: 22px; color: var(--brand-dark); margin-bottom: 14px; }
h3 { font-size: 17px; color: var(--brand); margin: 14px 0 8px; }
.page-intro {
  font-size: 16px; color: var(--ink-soft); background: #f7efdf;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 22px;
}

/* ---------- sections ---------- */
.block {
  background: var(--card-bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px; margin-bottom: 22px;
  box-shadow: 0 2px 8px rgba(90, 52, 19, .05);
}
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 2px solid var(--line); padding-bottom: 10px; margin-bottom: 16px;
}
.section-head h2 { margin: 0; }
.section-head .more { font-size: 14px; color: var(--gold); }
.section-head .more:hover { color: var(--accent-red); }
.section-intro { color: var(--ink-soft); margin-bottom: 16px; }
.rank-note { font-size: 13px; color: #a08d78; }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(ellipse at 18% 20%, rgba(242, 201, 76, .28) 0, transparent 50%),
    radial-gradient(ellipse at 85% 80%, rgba(184, 134, 11, .22) 0, transparent 55%),
    linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 55%, #9a6a2e 100%);
  border-radius: 14px; margin-bottom: 22px; color: #fdf3dd;
  border: 1px solid rgba(242, 201, 76, .35);
}
.hero-inner { padding: 46px 40px; max-width: 860px; }
.hero h1 { color: #fff4d6; border-left-color: var(--gold-light); font-size: 34px; margin-bottom: 16px; }
.hero-lead { font-size: 17px; color: #f3e6c8; margin-bottom: 24px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 11px 26px; border-radius: 24px;
  font-size: 15px; font-weight: 600; border: 1px solid transparent;
}
.btn-primary { background: var(--gold-light); color: var(--brand-deep); }
.btn-primary:hover { background: #ffdf80; color: var(--brand-deep); }
.btn-ghost { background: transparent; color: #f3e6c8; border-color: rgba(243, 230, 200, .55); }
.btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }
.block .btn-primary { margin-top: 8px; }

/* ---------- cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; background: #fffdf8; position: relative;
  display: flex; flex-direction: column; gap: 6px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 6px 16px rgba(90, 52, 19, .12); transform: translateY(-2px); }
.card-real { border-color: var(--gold); background: linear-gradient(180deg, #fff7e0, #fffdf8); }
.card-badge {
  position: absolute; top: 10px; right: 10px; background: var(--accent-red);
  color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 10px;
}
.card h3 { font-size: 16px; margin: 0; line-height: 1.5; }
.card-meta { font-size: 12px; color: #a08d78; }
.card-desc { font-size: 13px; color: var(--ink-soft); flex: 1; }

/* ---------- hot list ---------- */
.hot-list { list-style: none; }
.hot-list li { border-bottom: 1px dashed var(--line); }
.hot-list li:last-child { border-bottom: none; }
.hot-list a { display: flex; gap: 12px; align-items: baseline; padding: 10px 4px; color: var(--ink); }
.hot-list a:hover { color: var(--accent-red); }
.hot-date { color: var(--accent-red); font-weight: 700; font-size: 13px; white-space: nowrap; }

/* ---------- category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px;
  background: linear-gradient(180deg, #fdf6e8, #fffdf8); text-align: center;
  transition: box-shadow .2s, transform .2s;
}
.cat-card:hover { box-shadow: 0 6px 16px rgba(90, 52, 19, .12); transform: translateY(-2px); }
.cat-card h3 { color: var(--brand-dark); margin: 0 0 6px; font-size: 18px; }
.cat-card p { color: var(--ink-soft); font-size: 13px; }
.cat-arrow { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--gold); }

/* ---------- pick / rank ---------- */
.pick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pick-item { border-left: 3px solid var(--gold); padding: 6px 14px; background: #fffdf8; border-radius: 0 8px 8px 0; }
.pick-item h3 { margin: 0 0 6px; }
.pick-item p { font-size: 13px; color: var(--ink-soft); }
.rank-list { list-style: none; counter-reset: rank; }
.rank-list li {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 8px; border-bottom: 1px dashed var(--line);
}
.rank-list li:last-child { border-bottom: none; }
.rank-no {
  width: 30px; height: 30px; border-radius: 50%; background: var(--brand);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; flex: none;
}
.rank-list li:nth-child(1) .rank-no { background: var(--accent-red); }
.rank-list li:nth-child(2) .rank-no { background: #c97b2c; }
.rank-list li:nth-child(3) .rank-no { background: var(--gold); }
.rank-list a { color: var(--ink); font-size: 16px; flex: 1; }
.rank-list a:hover { color: var(--accent-red); }
.rank-val { color: #a08d78; font-size: 13px; }

/* ---------- FAQ ---------- */
.faq-list details {
  border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px;
  background: #fffdf8;
}
.faq-list summary {
  padding: 12px 16px; cursor: pointer; font-weight: 600; color: var(--brand-dark);
  list-style-position: outside;
}
.faq-list summary:hover { color: var(--accent-red); }
.faq-list details[open] summary { border-bottom: 1px dashed var(--line); }
.faq-list details p { padding: 12px 16px; color: var(--ink-soft); font-size: 14.5px; }

/* ---------- tips / steps ---------- */
.tips-list { list-style: none; }
.tips-list li {
  padding: 9px 4px 9px 26px; position: relative; color: var(--ink);
  border-bottom: 1px dashed var(--line); font-size: 15px;
}
.tips-list li:last-child { border-bottom: none; }
.tips-list li::before {
  content: "◆"; position: absolute; left: 4px; color: var(--gold); font-size: 12px;
}
.step-list { list-style: none; counter-reset: step; }
.step-list li {
  counter-increment: step; position: relative; padding: 12px 6px 12px 56px;
  border-bottom: 1px dashed var(--line); font-size: 15px;
}
.step-list li:last-child { border-bottom: none; }
.step-list li::before {
  content: counter(step); position: absolute; left: 6px; top: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gold); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- table ---------- */
.svc-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.svc-table th, .svc-table td {
  border: 1px solid var(--line); padding: 10px 14px; text-align: left; font-size: 15px;
}
.svc-table thead th { background: var(--brand); color: #fdf3dd; }
.svc-table tbody tr:nth-child(even) { background: #fdf8ee; }

/* ---------- gov / related links ---------- */
.gov-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.gov-links a {
  border: 1px solid var(--gold); color: var(--brand); border-radius: 20px;
  padding: 7px 18px; font-size: 14px; background: #fffdf8;
}
.gov-links a:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--brand-deep); }
.related-links { display: flex; flex-wrap: wrap; gap: 12px; }
.related-links a {
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 18px;
  background: #fffdf8; color: var(--brand-dark); font-size: 15px;
}
.related-links a:hover { border-color: var(--gold); color: var(--accent-red); }
.rel-tip { margin-top: 14px; color: var(--ink-soft); font-size: 14px; }

/* ---------- article list rows ---------- */
.art-rows { list-style: none; }
.art-rows li {
  display: flex; align-items: center; gap: 14px; padding: 11px 6px;
  border-bottom: 1px dashed var(--line); font-size: 15.5px;
}
.art-rows li:last-child { border-bottom: none; }
.art-rows .art-date { color: #a08d78; font-size: 13px; white-space: nowrap; }
.art-rows .art-real a { font-weight: 600; }
.art-rows .art-tag {
  margin-left: auto; font-size: 12px; border-radius: 10px; padding: 2px 10px;
  background: #f3ead9; color: #8a735c; white-space: nowrap;
}
.art-rows .art-real .art-tag { background: var(--accent-red); color: #fff; }

/* ---------- article page ---------- */
.news-article { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; margin-bottom: 22px; }
.news-article h1 { border-left: none; padding-left: 0; }
.article-meta { color: #a08d78; font-size: 13.5px; border-bottom: 1px dashed var(--line); padding-bottom: 12px; margin-bottom: 16px; }
.article-intro p {
  background: #f7efdf; border-left: 4px solid var(--gold);
  padding: 14px 18px; border-radius: 0 8px 8px 0; margin-bottom: 18px; color: var(--ink);
}
.news-article h2 { margin-top: 22px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.news-article h3 { color: var(--brand-dark); }
.news-article p { margin-bottom: 14px; text-align: justify; }
.article-ending { border-top: 1px dashed var(--line); margin-top: 20px; padding-top: 12px; }
.article-ending p { color: var(--ink-soft); }

/* ---------- footer ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--brand-deep) 0%, #2c1e10 100%);
  color: #d9c8ab; margin-top: 30px; border-top: 3px solid var(--gold);
}
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-top: 32px; padding-bottom: 26px; }
.footer-title { color: var(--gold-light); font-weight: 700; margin-bottom: 12px; font-size: 16px; }
.footer-col nav a { display: block; color: #d9c8ab; padding: 4px 0; font-size: 14.5px; }
.footer-col nav a:hover { color: var(--gold-light); }
.footer-about p { font-size: 14px; color: #c7b491; }
.footer-copy { border-top: 1px solid rgba(217, 200, 171, .2); padding-top: 18px; padding-bottom: 24px; text-align: center; }
.footer-copyright { color: #f0e2c8; font-size: 15px; }
.footer-note { color: #9c8868; font-size: 13px; margin-top: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .card-grid, .cat-grid, .pick-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .card-grid, .cat-grid, .pick-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; gap: 18px; }
  h1 { font-size: 24px; }
  .hero-inner { padding: 30px 20px; }
  .hero h1 { font-size: 26px; }
  .news-article { padding: 18px 16px; }
}
