﻿:root {
  --ink: #18202a;
  --muted: #657083;
  --paper: #fbf8f2;
  --white: #ffffff;
  --line: #eadfce;
  --gold: #b9832f;
  --jade: #1f6f61;
  --seal: #9a2f2a;
  --shadow: 0 18px 42px rgba(30, 28, 24, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(185, 131, 47, .06) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px, auto;
  font-family: Arial, "Microsoft YaHei", sans-serif;
}
a { color: inherit; text-decoration: none; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.rank-page .site-header {
  background: linear-gradient(120deg, #1b2a32, #274b42 62%, #78312d);
  border-bottom: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 12px 30px rgba(24, 32, 42, .14);
}
.rank-page .logo strong {
  color: #fffaf1;
}
.rank-page .logo small {
  color: #d9b36a;
}
.rank-page .nav {
  color: rgba(255,250,241,.78);
}
.rank-page .nav a:hover {
  color: #d9b36a;
}
.header-inner {
  width: min(1240px, calc(100% - 40px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.logo { display: grid; gap: 2px; }
.logo strong { font-size: 28px; letter-spacing: .12em; }
.logo small { color: var(--gold); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.nav { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 14px; }
.nav a:hover { color: var(--seal); }
.hero {
  background: linear-gradient(120deg, #1b2a32, #274b42 60%, #78312d);
  color: #fffaf1;
}
.hero-inner {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 132px) 0;
}
.kicker {
  margin: 0 0 16px;
  color: #d9b36a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
h1 {
  max-width: 920px;
  margin: 0 0 20px;
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 1.04;
}
.hero p, .lead {
  max-width: 760px;
  margin: 0;
  color: rgba(255,250,241,.82);
  font-size: 18px;
  line-height: 1.8;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(680px, 100%);
  margin-top: 34px;
  border: 1px solid rgba(255,255,255,.18);
}
.stats span { padding: 18px 20px; border-right: 1px solid rgba(255,255,255,.18); }
.stats span:last-child { border-right: 0; }
.stats strong { color: #d9b36a; font-size: 24px; }
.section {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 104px) 0;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.15;
}
.section-head p { max-width: 520px; margin: 0; color: var(--muted); line-height: 1.75; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.product-card, .rank-card, .note-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow);
}
.product-card {
  min-height: 104px;
  display: grid;
  gap: 8px;
  padding: 20px;
}
.product-card:hover { border-color: rgba(154,47,42,.35); background: #fff; }
.product-card span { font-size: 22px; font-weight: 800; }
.product-card small { color: var(--muted); line-height: 1.45; }
.search { display: grid; gap: 8px; min-width: min(360px, 100%); color: var(--muted); font-size: 13px; }
.search input { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 0 14px; font: inherit; }
.rank-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rank-card { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 18px; }
.rank-no { color: var(--gold); font-size: 26px; font-weight: 900; }
.rank-card h3 { margin: 0 0 6px; font-size: 20px; }
.rank-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.rank-page {
  background:
    linear-gradient(90deg, rgba(185, 131, 47, .06) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px, auto;
}
.rank-top {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 18px;
}
.breadcrumb {
  margin: 0 0 16px;
  color: #6f7a70;
  font-size: 13px;
}
.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 54px;
}
.ranking-main,
.ranking-side {
  min-width: 0;
}
.ranking-panel,
.side-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow);
}
.ranking-panel {
  padding: 26px 30px;
}
.ranking-panel h1 {
  margin: 0 0 14px;
  color: #1f2937;
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.25;
}
.ranking-desc {
  margin: 0 0 20px;
  color: #566174;
  font-size: 15px;
  line-height: 1.85;
}
.ranking-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}
.ranking-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: #f7f0e4;
  color: #946128;
  font-size: 13px;
}
.ranking-summary {
  margin: 0 0 24px;
  padding: 16px 18px;
  border-radius: 8px;
  background: #fffaf1;
  color: #4b5565;
  line-height: 1.8;
}
.ranking-summary strong {
  color: #b56f1f;
}
.ranking-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0 10px;
  border-top: 1px solid #edf0f2;
}
.ranking-titlebar h2 {
  font-family: Arial, "Microsoft YaHei", sans-serif;
  font-size: 24px;
}
.ranking-titlebar small {
  color: #8a94a6;
}
.brand-rank-list {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}
.brand-rank-item {
  position: relative;
  display: grid;
  grid-template-columns: 78px 96px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.92);
}
.brand-rank-item:hover {
  border-color: rgba(31,111,97,.36);
  box-shadow: 0 10px 28px rgba(32, 38, 46, .06);
}
.rank-badge {
  display: grid;
  justify-items: center;
  gap: 4px;
  color: #9a2f2a;
  font-weight: 900;
}
.rank-badge span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff3e5;
  color: #c5762c;
  font-size: 22px;
}
.brand-logo-box {
  display: grid;
  place-items: center;
  width: 96px;
  height: 74px;
  border: 1px solid #edf0f2;
  border-radius: 8px;
  background: #f8fbf7;
  color: var(--seal);
  font-weight: 900;
  text-align: center;
  overflow: hidden;
}
.brand-logo-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-info h3 {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 22px;
}
.brand-info p {
  margin: 0;
  color: #657083;
  font-size: 14px;
  line-height: 1.75;
}
.brand-company {
  display: block;
  margin-bottom: 3px;
  color: #374151;
  font-weight: 700;
}
.brand-info em {
  color: #b9832f;
  font-style: normal;
}
.brand-action,
.brand-detail summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--jade);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  list-style: none;
}
.brand-detail {
  position: relative;
  display: block;
  justify-self: end;
}
.brand-detail summary::-webkit-details-marker {
  display: none;
}
.brand-detail-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 4;
  width: min(380px, calc(100vw - 48px));
  margin-top: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbf7;
  box-shadow: 0 16px 34px rgba(24, 32, 42, .14);
  color: #566174;
  font-size: 14px;
  line-height: 1.75;
}
.brand-detail-panel p {
  margin: 0;
}
.ranking-note {
  margin-top: 22px;
  padding: 18px;
  border-radius: 8px;
  background: #fff9ef;
  color: #6b5a42;
  line-height: 1.8;
}
.side-panel {
  padding: 18px;
  margin-bottom: 16px;
}
.side-panel h3 {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf0f2;
  font-size: 18px;
}
.side-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.side-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #4b5565;
  font-size: 14px;
  line-height: 1.5;
}
.side-list a:hover {
  color: #9a2f2a;
}
.side-list small {
  color: #a0a7b3;
}
.question-list {
  display: grid;
  gap: 10px;
  color: #657083;
  font-size: 14px;
  line-height: 1.7;
}
.note-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.note-card { padding: 22px; }
.note-card h3 { margin: 0 0 10px; color: var(--seal); }
.note-card p { margin: 0; color: var(--muted); line-height: 1.75; }
.footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  color: var(--muted);
  display: grid;
  gap: 18px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  line-height: 1.7;
}
.footer-links strong {
  color: var(--ink);
}
.footer-links a {
  color: var(--muted);
}
.footer-links a:hover {
  color: var(--jade);
}
.footer-copy {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
@media (max-width: 980px) {
  .header-inner, .section-head { align-items: start; flex-direction: column; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rank-grid, .note-grid { grid-template-columns: 1fr; }
  .ranking-layout { grid-template-columns: 1fr; }
  .brand-rank-item { grid-template-columns: 64px 90px minmax(0, 1fr); }
  .brand-action,
  .brand-detail { grid-column: 3; justify-self: start; }
}
@media (max-width: 640px) {
  .header-inner, .hero-inner, .section, .footer-inner { width: calc(100% - 32px); }
  .stats, .product-grid { grid-template-columns: 1fr; }
  .stats span { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .stats span:last-child { border-bottom: 0; }
  .rank-card { grid-template-columns: 1fr; }
  .rank-top,
  .ranking-layout { width: calc(100% - 32px); }
  .ranking-panel { padding: 20px 16px; }
  .brand-rank-item { grid-template-columns: 1fr; }
  .rank-badge { justify-items: start; }
  .brand-action,
  .brand-detail { grid-column: auto; justify-self: start; }
  .brand-detail-panel {
    position: static;
    width: auto;
    margin-top: 10px;
  }
}
