:root {
  color-scheme: light;
  --bg: #efece4;
  --ink: #1b2421;
  --muted: #5e6a64;
  --line: #ddd6c8;
  --paper: #fffcf7;
  --green: #114237;
  --green-2: #1c6b56;
  --brass: #a68445;
  --price: #9d2c1a;
  --shadow: 0 10px 30px rgba(28, 36, 32, 0.06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Songti SC", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(166, 132, 69, 0.08), transparent 28%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font-family: inherit; }
a { color: var(--green-2); }
img { max-width: 100%; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #fff;
  padding: 8px 12px;
  z-index: 50;
}
.skip:focus { left: 12px; }

.header { background: rgba(255, 252, 247, 0.92); border-bottom: 1px solid var(--line); }
.header-inner,
.nav-inner,
main,
.footer-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: grid;
  grid-template-columns: 240px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 18px 0 14px;
}

.logo { display: flex; gap: 10px; align-items: center; color: inherit; text-decoration: none; }
.logo-img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; display: block; }
.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green);
  color: #f3e2b8;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 24px;
}
.logo strong { display: block; font-size: 20px; letter-spacing: 0.04em; }
.logo small { color: var(--muted); font-size: 12px; }

.search { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.search input { flex: 1; border: 0; padding: 11px 16px; min-width: 0; outline: none; background: transparent; }
.search:focus-within { box-shadow: 0 0 0 2px var(--brass); }
.search button { border: 0; background: var(--brass); color: #fff; padding: 0 18px; cursor: pointer; }
.hotwords { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.hotwords a { color: var(--green-2); text-decoration: none; }

.actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.user { font-size: 13px; color: var(--muted); white-space: nowrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
}
.btn-solid { background: var(--green); color: #fff; }
.btn-ghost { border-color: var(--green); color: var(--green); background: #fff; }
.btn-quote { min-height: 34px; border-color: var(--brass); color: #6d5420; background: #fff; padding: 0 12px; }
.btn-solid:hover { background: #0c332a; }
button:disabled { opacity: 0.5; cursor: not-allowed; }

.nav { background: var(--green); position: sticky; top: 0; z-index: 20; }
.nav-inner { display: flex; align-items: center; min-height: 54px; position: relative; }
.nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  background: transparent;
  border-radius: 8px;
  min-height: 36px;
  padding: 0 12px;
  cursor: pointer;
}
.nav-panel { display: flex; align-items: center; gap: 12px; flex: 1; }
.nav-links { display: flex; gap: 2px; flex: 1; flex-wrap: wrap; }
.nav-links a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 15px;
}
.nav-links a.is-active,
.nav-links a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.hotline { margin-left: auto; color: #fff; text-align: right; line-height: 1.25; }
.hotline small { display: block; font-size: 11px; opacity: 0.75; }
.hotline strong { font-size: 16px; letter-spacing: 0.03em; font-weight: 600; }

main { padding-bottom: 48px; }
.hero {
  position: relative;
  margin-top: 16px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--green);
  aspect-ratio: 1160 / 380;
  min-height: 180px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  color: #fff;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.hero-slide.is-on { opacity: 1; z-index: 1; pointer-events: auto; }
.hero-slide:not(.is-on) { pointer-events: none; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-slide.has-caption::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48%;
  background: linear-gradient(transparent, rgba(8, 24, 20, 0.62));
}
.hero-caption {
  position: absolute;
  left: 28px;
  bottom: 28px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: min(680px, 72%);
}
.hero-caption strong { font-family: var(--serif); font-size: 34px; font-weight: 600; letter-spacing: 0.04em; }
.hero-caption small { font-size: 15px; color: rgba(255, 255, 255, 0.88); }
.hero-nav, .hero-dot {
  position: absolute;
  z-index: 2;
  border: 0;
  cursor: pointer;
}
.hero-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 252, 247, 0.88);
  color: var(--green);
  font-size: 22px;
  line-height: 1;
}
.hero-prev { left: 12px; }
.hero-next { right: 12px; }
.hero-dots {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  gap: 8px;
}
.hero-dot {
  position: static;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  padding: 0;
}
.hero-dot.is-on { background: #fff; }

.notice {
  margin-top: 16px;
  background: #f8f1dc;
  color: #5c4a22;
  border: 1px solid #ead9ae;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
}

.ticker {
  margin-top: 12px;
  display: flex;
  align-items: stretch;
  background: var(--paper);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.ticker-label, .ticker-more {
  flex: none;
  background: var(--green);
  color: #fff;
  padding: 10px 14px;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.ticker-more { background: #0c332a; }
.ticker-window { overflow: hidden; flex: 1; }
.ticker-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: marquee 42s linear infinite;
  padding: 10px 0;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { white-space: nowrap; color: var(--muted); font-size: 14px; }
.ticker-track b { color: var(--ink); font-weight: 600; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.block { margin-top: 28px; }
.block-head, .page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}
.page-head { padding: 22px 0 8px; display: block; }
.text-block h2 { font-family: var(--serif); font-size: 28px; margin: 0 0 8px; }
.text-block p { margin: 0 0 10px; }
.kicker { color: var(--brass); letter-spacing: 0.16em; font-size: 12px; }
.block-head h2, .page-head h1, .form-card h1, .article h1 {
  font-family: var(--serif);
  font-weight: 600;
}
.block-head h2 { font-size: 28px; }
.page-head h1, .article h1, .form-card h1 { font-size: 34px; margin: 6px 0; }
.block-head p, .page-head p, .lede { color: var(--muted); }
.more { color: var(--green-2); text-decoration: none; font-size: 14px; white-space: nowrap; }
.crumb { color: var(--muted); font-size: 13px; }
.crumb-pad { padding-top: 18px; }
.crumb a { text-decoration: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chip {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 5px 10px;
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
}
.chip.is-on { background: var(--green); color: #fff; border-color: var(--green); }

.toolbar { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.toolbar label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: 0; }

.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card:hover { transform: translateY(-2px); transition: transform 0.18s ease; }
.cover {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 14px;
  text-decoration: none;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.2), transparent 42%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 14px);
}
.cover span, .cover strong { position: relative; z-index: 1; }
.cover span { font-size: 12px; letter-spacing: 0.14em; }
.cover strong { font-family: var(--serif); font-size: clamp(18px, 2vw, 26px); font-weight: 600; line-height: 1.35; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.62));
}
.is-domain { background: linear-gradient(145deg, #102e28, #1d6b54 62%, #b8924a); }
.is-keyword { background: linear-gradient(145deg, #16283f, #2c5f93 70%, #d2b48c); }
.is-miniapp { background: linear-gradient(145deg, #3a2416, #8d5a2b 68%, #e2c391); }
.is-app { background: linear-gradient(145deg, #221f45, #4d4894 70%, #d7c4a3); }
.is-website { background: linear-gradient(145deg, #3a1820, #8e3d49 68%, #e3c7a1); }

.card-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { font-size: 16px; line-height: 1.4; margin-bottom: 4px; }
.card h3 a { color: inherit; text-decoration: none; }
.tag-local { font-style: normal; font-size: 12px; color: var(--brass); margin-left: 6px; }
.meta { color: var(--muted); font-size: 13px; }
.meta em { font-style: normal; color: var(--green-2); }
.card-foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.price { display: grid; gap: 2px; }
.price span, .price small { color: var(--muted); font-size: 12px; }
.price b { color: var(--price); font-size: 22px; font-variant-numeric: tabular-nums; }
.empty { color: var(--muted); padding: 12px 0 4px; }

.news-list { display: grid; gap: 12px; }
.news-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 16px;
  background: var(--paper);
  border-radius: 14px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.news-item time { color: var(--brass); font-variant-numeric: tabular-nums; }
.news-item strong { display: block; font-size: 17px; margin-bottom: 6px; }
.news-item small { color: var(--muted); font-size: 14px; line-height: 1.6; }
.news-item:hover { border-color: #c8b48a; }

.article { max-width: 760px; padding-top: 8px; }
.article p { margin-top: 14px; line-height: 1.8; font-size: 16px; }
.related { margin-top: 28px; display: grid; gap: 8px; }
.related a { text-decoration: none; }

.table-wrap { overflow-x: auto; background: var(--paper); border-radius: 14px; border: 1px solid var(--line); margin-top: 8px; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
th { font-size: 13px; color: var(--muted); font-weight: 600; background: #faf7f1; }
tr:last-child td { border-bottom: 0; }

.auction-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 8px; }
.auction-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 8px;
}
.auction-card h2 { font-size: 22px; font-family: var(--serif); }
.auction-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.pill { font-size: 12px; color: #6d5420; background: #f8f1dc; border-radius: 999px; padding: 3px 8px; }
.bid-form { display: flex; gap: 8px; margin-top: 6px; }
.bid-form input { width: 140px; }

.detail { display: grid; grid-template-columns: 300px 1fr; gap: 22px; margin-top: 12px; }
.detail-side .cover { min-height: 220px; border-radius: 16px; }
.facts { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 8px 16px 16px; }
.fact { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.fact span { color: var(--muted); }
.detail-main h1 { font-family: var(--serif); font-size: 36px; margin: 8px 0 12px; }
.detail-main .summary { line-height: 1.8; margin: 8px 0 16px; }
.detail-actions { display: flex; gap: 10px; align-items: center; margin: 8px 0 18px; }

.form-card, .dialog {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}
.form-card { max-width: 560px; margin: 22px auto; display: grid; gap: 8px; }
.form-card p, .hint { color: var(--muted); line-height: 1.6; font-size: 14px; }
label { display: grid; gap: 6px; font-size: 14px; margin-top: 8px; }
input, select, textarea {
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
.form-error { color: var(--price); min-height: 1.2em; font-size: 13px; }
.form-card .btn { margin-top: 8px; justify-self: start; }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 20, 0.48);
  display: grid;
  place-items: center;
  z-index: 30;
  padding: 16px;
}
.dialog { width: min(440px, 100%); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dialog h3 { font-size: 20px; font-family: var(--serif); }
.icon-close { border: 0; background: transparent; font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  z-index: 40;
  font-size: 14px;
}

.footer { background: var(--green); color: #e7eee9; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; padding: 28px 0; }
.footer h2 { font-size: 16px; margin-bottom: 8px; color: #fff; }
.footer a { color: #f3e2b8; text-decoration: none; }
.footer li { margin: 6px 0; }
.footer p { color: #d5e2db; line-height: 1.6; font-size: 14px; }
.subfooter { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.subfooter .footer-inner { padding: 12px 0 18px; font-size: 12px; color: #c9d5cf; }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 1fr; gap: 12px; }
  .actions { justify-content: flex-start; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail, .auction-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav-panel { display: none; }
  .nav.is-open .nav-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #0d352c;
    padding: 8px 12px 14px;
    z-index: 21;
  }
  .nav.is-open .nav-links { flex-direction: column; }
  .nav.is-open .hotline { text-align: left; margin: 8px 10px 0; }
}

@media (max-width: 640px) {
  .grid-4, .grid-3, .footer-grid { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; gap: 4px; }
  .hero { aspect-ratio: 16 / 9; }
  .hero-caption strong { font-size: 24px; }
  .hero-caption { left: 16px; bottom: 20px; max-width: 68%; }
  .card-foot, .bid-form, .detail-actions { flex-direction: column; align-items: stretch; }
  .bid-form input { width: 100%; }
  .page-head h1, .article h1, .form-card h1, .detail-main h1 { font-size: 28px; }
  .block-head { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .hero-slide { transition: none; }
  .card:hover { transform: none; }
}
