/* 淄博交易网 (www.dzbgo.cn) - 本地化无外部CDN样式表 */
:root {
  --blue: #0e6ba8;
  --blue-dark: #0a5282;
  --blue-soft: #eaf4fc;
  --orange: #e66a12;
  --orange-dark: #c9580a;
  --orange-soft: #fff3e8;
  --teal: #0f766e;
  --teal-soft: #e6f7f5;
  --green: #15803d;
  --green-soft: #eaf8ef;
  --indigo: #4338ca;
  --indigo-soft: #eef2ff;
  --amber: #b45309;
  --amber-soft: #fef3c7;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --ink: #162238;
  --muted: #55657d;
  --line: #dfe7f0;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 18px rgba(14, 42, 74, 0.06);
  --shadow-hover: 0 10px 28px rgba(14, 42, 74, 0.11);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

a:hover {
  color: var(--orange);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(15, 35, 65, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.brand-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--ink);
  font-weight: 500;
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 15px;
  white-space: nowrap;
}

.main-nav a:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

.main-nav a.active {
  background: var(--blue);
  color: #fff;
}

.header-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg);
  flex-shrink: 0;
  width: 220px;
}

.header-search input {
  border: 0;
  background: transparent;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--ink);
  width: 100%;
  min-width: 0;
  outline: none;
}

.header-search button {
  border: 0;
  background: var(--blue);
  color: #fff;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.header-search button:hover {
  background: var(--blue-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
}

/* Announcement Banner */
.announce-bar {
  background: linear-gradient(90deg, #fff6ee 0%, #fff0e2 55%, #eef6fd 100%);
  border-bottom: 1px solid #f4d8be;
}

.announce-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 9px;
  padding-bottom: 9px;
  flex-wrap: wrap;
}

.announce-badge {
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  flex-shrink: 0;
}

.announce-text {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #7c3305;
  flex: 1;
  min-width: 180px;
}

.announce-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #0b4d7c 0%, #0e6ba8 55%, #1680c4 100%);
  color: #fff;
  padding: 42px 0 46px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.92fr);
  gap: 28px;
  align-items: center;
}

.hero-kicker {
  display: inline-block;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero-copy h1 span {
  color: #ffd19e;
}

.hero-lead {
  margin: 0 0 22px;
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.92);
  max-width: 600px;
}

.hero-search-form {
  display: flex;
  background: #fff;
  border-radius: 10px;
  padding: 5px;
  box-shadow: 0 10px 28px rgba(6, 33, 56, 0.2);
  gap: 6px;
}

.hero-search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 10px 12px;
  font-size: 14.5px;
  color: var(--ink);
  outline: none;
  background: transparent;
}

.hero-search-form button {
  border: 0;
  background: var(--orange);
  color: #fff;
  font-weight: 600;
  font-size: 14.5px;
  padding: 10px 18px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
}

.hero-search-form button:hover {
  background: var(--orange-dark);
}

.hero-hot-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.hero-hot-tags a {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  padding: 3px 10px;
  border-radius: 999px;
}

.hero-hot-tags a:hover {
  background: var(--orange);
  color: #fff;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 10px 12px;
}

.stat-box strong {
  display: block;
  font-size: 20px;
  line-height: 1.2;
  color: #fff;
}

.stat-box span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}

/* Hero Mini Valuation Card */
.hero-tool-card {
  background: var(--surface);
  color: var(--ink);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 18px 40px rgba(6, 33, 56, 0.24);
}

.tool-card-head h2 {
  margin: 8px 0 14px;
  font-size: 19px;
  line-height: 1.3;
}

.pill-orange {
  display: inline-block;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.pill-blue {
  display: inline-block;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.mini-val-form label,
.val-form label {
  display: block;
  margin-bottom: 12px;
}

.mini-val-form label span,
.val-form label span {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 5px;
}

.mini-val-form select,
.mini-val-form input,
.val-form select,
.val-form input,
.receipt-grid input {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  font-family: inherit;
}

.mini-val-form select:focus,
.mini-val-form input:focus,
.val-form select:focus,
.val-form input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(14, 107, 168, 0.14);
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mini-val-result {
  background: var(--blue-soft);
  border: 1px solid #cbe2f5;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 14px;
}

.mini-val-result small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.mini-val-result strong {
  font-size: 20px;
  color: var(--orange-dark);
}

.mini-val-result span {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-dark);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
}

.btn-primary:hover {
  background: var(--orange-dark);
  color: #fff;
}

.btn-outline {
  background: #fff;
  color: var(--blue);
  border-color: var(--blue);
}

.btn-outline:hover {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.btn-sm {
  padding: 7px 13px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

.btn-text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
}

/* Sections */
.section {
  padding: 40px 0;
}

.section-alt {
  background: #edf3f9;
  border-top: 1px solid #e1eaf3;
  border-bottom: 1px solid #e1eaf3;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 0 0 4px;
  font-size: 22px;
  line-height: 1.3;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.link-more {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

/* Categories */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cat-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: #b7d3ec;
  color: var(--ink);
}

.cat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cat-icon svg {
  width: 22px;
  height: 22px;
}

.cat-info h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.cat-info p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* Badges */
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.badge-blue { background: var(--blue-soft); color: var(--blue-dark); }
.badge-teal { background: var(--teal-soft); color: var(--teal); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-indigo { background: var(--indigo-soft); color: var(--indigo); }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-orange { background: var(--orange-soft); color: var(--orange-dark); }

/* District pills */
.district-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill-link {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 12.5px;
  padding: 4px 10px;
  border-radius: 999px;
}

.pill-link:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* Listings Grid */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.listing-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.listing-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.listing-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.district-tag {
  font-size: 12px;
  color: var(--muted);
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.listing-title {
  margin: 0 0 8px;
  font-size: 15.5px;
  line-height: 1.4;
}

.listing-title a {
  color: var(--ink);
}

.listing-title a:hover {
  color: var(--blue);
}

.listing-summary {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
  flex: 1;
}

.listing-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.cond-tag, .trade-tag, .meta-chip {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 5px;
  background: #f8fafc;
  border: 1px solid var(--line);
  color: var(--muted);
}

.listing-bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.price-group {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.price-now {
  font-size: 19px;
  color: var(--orange-dark);
  font-weight: 800;
}

.price-orig {
  font-size: 12.5px;
  color: #94a3b8;
}

/* Price Table */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
  font-size: 14px;
}

.price-table th,
.price-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #eef2f7;
  vertical-align: middle;
}

.price-table thead th {
  background: #f7fafd;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

.price-table tbody tr:hover {
  background: #fafcff;
}

.td-strong {
  font-weight: 700;
  color: var(--ink);
}

.td-price {
  font-weight: 700;
  color: var(--orange-dark);
  white-space: nowrap;
}

.td-muted {
  color: var(--muted);
  font-size: 13px;
}

.td-tip {
  font-size: 13px;
  color: #334155;
  max-width: 280px;
}

.trend {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.trend-up { background: #fff1f2; color: #be123c; }
.trend-down { background: var(--green-soft); color: var(--green); }
.trend-flat { background: #f1f5f9; color: #475569; }

/* Guides */
.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.guide-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.guide-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.guide-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.guide-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 10px;
}

.guide-card h2,
.guide-card h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
  line-height: 1.4;
}

.guide-card h2 a,
.guide-card h3 a {
  color: var(--ink);
}

.guide-card h2 a:hover,
.guide-card h3 a:hover {
  color: var(--blue);
}

.guide-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  flex: 1;
}

.guide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag-pill {
  font-size: 12px;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 2px 8px;
  border-radius: 6px;
}

/* Side panels */
.side-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.side-panel h3 {
  margin: 0 0 12px;
  font-size: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf2f7;
}

.side-tool-link {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid #e6eef7;
  background: #f9fcff;
  margin-bottom: 10px;
  color: var(--ink);
}

.side-tool-link:last-child {
  margin-bottom: 0;
}

.side-tool-link:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.side-tool-link strong {
  display: block;
  font-size: 14.5px;
  color: var(--blue-dark);
}

.side-tool-link span {
  font-size: 12.5px;
  color: var(--muted);
}

.simple-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.simple-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed #edf2f7;
  font-size: 13.5px;
}

.simple-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.simple-list a {
  color: var(--ink);
}

.simple-list a:hover {
  color: var(--blue);
}

.simple-list time {
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
}

/* Safety Banner */
.safety-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f1f7fd 100%);
  border: 1px solid #cfe0f0;
  border-radius: 16px;
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.safety-copy {
  flex: 1;
  min-width: 260px;
}

.safety-copy h2 {
  margin: 10px 0 14px;
  font-size: 21px;
}

.safety-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}

.safety-points strong {
  display: block;
  font-size: 14.5px;
  color: var(--blue-dark);
}

.safety-points span {
  font-size: 13px;
  color: var(--muted);
}

.safety-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 180px;
}

/* Sub-pages Hero */
.page-hero {
  background: linear-gradient(180deg, #eaf3fb 0%, #f4f7fb 100%);
  border-bottom: 1px solid var(--line);
  padding: 26px 0 28px;
}

.page-hero h1 {
  margin: 8px 0 8px;
  font-size: 27px;
  line-height: 1.3;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 820px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--blue);
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

/* Filter Bar */
.filter-bar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-filter-bar {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin-right: 4px;
}

.chip {
  font-size: 13px;
  padding: 4px 11px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--ink);
  border: 1px solid transparent;
}

.chip:hover {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.chip.active {
  background: var(--blue);
  color: #fff;
}

.inline-search input {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13.5px;
  width: 280px;
  max-width: 100%;
}

.result-bar {
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--muted);
}

/* Detail Pages */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 0.95fr);
  gap: 24px;
  align-items: start;
}

.price-hero-card {
  background: linear-gradient(135deg, #fff8f2 0%, #ffffff 70%);
  border: 1px solid #f4d6bc;
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.price-caption {
  font-size: 12.5px;
  color: var(--muted);
  display: block;
}

.price-big-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.price-big {
  font-size: 32px;
  color: var(--orange-dark);
  font-weight: 800;
}

.save-pill {
  background: var(--green-soft);
  color: var(--green);
  font-size: 12.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
}

.price-meta-right {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.8;
}

.content-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 19px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.spec-item {
  background: #f8fafc;
  border: 1px solid #e9eff6;
  border-radius: 8px;
  padding: 10px 12px;
}

.spec-k {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.spec-v {
  font-size: 14px;
  color: var(--ink);
}

.prose h2 {
  margin: 22px 0 10px;
  font-size: 19px;
  color: var(--blue-dark);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 18px 0 8px;
  font-size: 16.5px;
}

.prose p {
  margin: 0 0 12px;
  color: #24344d;
}

.prose ul, .prose ol {
  margin: 0 0 14px;
  padding-left: 20px;
  color: #24344d;
}

.prose li {
  margin-bottom: 6px;
}

.verify-callout {
  background: var(--blue-soft);
  border: 1px solid #c4dff4;
  border-radius: var(--radius);
  padding: 20px;
}

.verify-callout h3 {
  margin: 0 0 8px;
  color: var(--blue-dark);
}

.verify-callout p {
  margin: 0 0 14px;
  color: #22405e;
  font-size: 14.5px;
}

.callout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tip-list {
  margin: 0 0 14px;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--muted);
}

.tip-list li {
  margin-bottom: 8px;
}

.mini-listing-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mini-listing-list li {
  padding: 10px 0;
  border-bottom: 1px dashed #edf2f7;
}

.mini-listing-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.mini-listing-list strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 3px;
}

.mini-listing-sub {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted);
}

.mini-listing-sub em {
  font-style: normal;
  font-weight: 700;
  color: var(--orange-dark);
}

.article-subtitle {
  margin-top: 8px !important;
  font-size: 15.5px;
}

.article-tags-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13.5px;
  color: var(--muted);
}

.related-block {
  margin-top: 32px;
}

.related-block h2,
.sub-heading {
  margin: 0 0 16px;
  font-size: 20px;
}

/* Valuation Tool */
.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 22px;
  align-items: start;
}

.tool-panel,
.val-summary-card,
.copy-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.tool-panel h2 {
  margin: 0 0 16px;
  font-size: 19px;
}

.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.checkbox-pill {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 13px;
  cursor: pointer;
  margin-bottom: 0 !important;
}

.checkbox-pill input {
  width: auto !important;
  margin: 0;
}

.val-summary-card {
  background: linear-gradient(145deg, #0b4d7c 0%, #0e6ba8 100%);
  color: #fff;
  border-color: #0b4d7c;
  margin-bottom: 18px;
}

.val-main-box span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.val-main-box strong {
  display: block;
  font-size: 32px;
  color: #ffd19e;
  line-height: 1.25;
  margin: 4px 0;
}

.val-main-box small {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
}

.val-sub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.val-sub-item {
  background: rgba(255, 255, 255, 0.13);
  border-radius: 9px;
  padding: 10px 12px;
}

.val-sub-item span {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
}

.val-sub-item strong {
  font-size: 17px;
  color: #fff;
}

.val-advice {
  background: rgba(255, 255, 255, 0.12);
  border-left: 3px solid #ffd19e;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.95);
}

.copy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.copy-head h3 {
  margin: 0;
  font-size: 16px;
}

.copy-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font-size: 13.5px;
  line-height: 1.6;
  font-family: inherit;
  color: var(--ink);
  background: #f9fbfd;
  resize: vertical;
}

.copy-note {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

/* Checklist Tool */
.checklist-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tab-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 9px 15px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.tab-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.checklist-progress-bar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.checklist-progress-bar strong {
  display: block;
  font-size: 16px;
  color: var(--blue-dark);
}

.checklist-progress-bar span {
  font-size: 13px;
  color: var(--muted);
}

.checklist-panel {
  display: none;
}

.checklist-panel.active {
  display: block;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.check-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px;
}

.check-list label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14.5px;
}

.check-list input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--blue);
}

.check-list li.is-checked {
  background: #f2fbf6;
  border-color: #b7e4c7;
}

/* Printable Receipt */
.receipt-section {
  margin-top: 34px;
}

.receipt-card {
  background: #fff;
  border: 2px solid #cbd5e1;
  border-radius: var(--radius);
  padding: 24px;
}

.receipt-card h3 {
  text-align: center;
  margin: 0 0 18px;
  font-size: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}

.receipt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.receipt-grid label span {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 4px;
}

.receipt-terms {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: #334155;
  margin-bottom: 18px;
}

.receipt-terms p {
  margin: 0;
}

.receipt-sign {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  font-size: 13.5px;
  padding-top: 10px;
}

/* Districts Hub */
.district-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.district-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.district-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #edf2f7;
}

.district-card-head h2 {
  margin: 0 0 2px;
  font-size: 19px;
}

.district-sub {
  font-size: 13px;
  color: var(--orange-dark);
  font-weight: 600;
}

.district-dl {
  margin: 0;
  display: grid;
  gap: 8px;
}

.district-dl div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 8px;
  font-size: 13.5px;
}

.district-dl dt {
  font-weight: 700;
  color: var(--muted);
}

.district-dl dd {
  margin: 0;
  color: #24344d;
}

/* Empty / 404 */
.empty-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
}

.empty-box h1, .empty-box h3 {
  margin: 0 0 10px;
}

.empty-box p {
  color: var(--muted);
  margin: 0 auto 18px;
  max-width: 520px;
}

.code-404 {
  font-size: 56px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 12px;
}

.about-stack {
  max-width: 900px;
}

/* Footer */
.site-footer {
  background: #0f2137;
  color: #cbd5e1;
  padding-top: 38px;
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 24px;
  padding-bottom: 28px;
}

.footer-logo-wrap {
  display: inline-block;
  background: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.footer-desc {
  margin: 0;
  font-size: 13.5px;
  color: #9fb2c9;
  line-height: 1.65;
}

.footer-col h4 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 15px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 7px;
  font-size: 13.5px;
}

.footer-col a {
  color: #b6c7dc;
}

.footer-col a:hover {
  color: #ffd19e;
}

.footer-warn {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: #f8b47e;
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  font-size: 13px;
  color: #94a9c3;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  text-align: center;
}

.footer-bottom a {
  color: #d6e4f5;
}

.footer-bottom a:hover {
  color: #ffd19e;
}

/* Responsive */
@media (max-width: 1080px) {
  .header-search {
    display: none;
  }
  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cat-grid,
  .guide-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }
  .header-inner {
    flex-wrap: wrap;
  }
  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 12px;
    border-top: 1px solid var(--line);
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav a {
    padding: 10px 12px;
  }
  .hero-grid,
  .guide-layout,
  .detail-layout,
  .tool-grid,
  .district-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .guide-cards,
  .safety-points,
  .receipt-grid,
  .receipt-sign {
    grid-template-columns: minmax(0, 1fr);
  }
  .spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 14px;
  }
  .brand-logo {
    height: 44px;
  }
  .hero-section {
    padding: 28px 0 32px;
  }
  .hero-copy h1 {
    font-size: 25px;
  }
  .hero-search-form {
    flex-direction: column;
  }
  .hero-search-form button {
    width: 100%;
  }
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cat-grid,
  .listing-grid,
  .guide-archive-grid,
  .form-row-2,
  .val-sub-grid,
  .footer-grid,
  .spec-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .section {
    padding: 28px 0;
  }
  .section-head h2,
  .page-hero h1 {
    font-size: 21px;
  }
  .mini-val-result {
    flex-direction: column;
    align-items: flex-start;
  }
  .safety-banner {
    padding: 18px;
  }
  .safety-actions {
    width: 100%;
  }
  .district-dl div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

@media print {
  .site-header,
  .announce-bar,
  .page-hero,
  .checklist-tabs,
  .checklist-progress-bar,
  .checklist-panels,
  .site-footer,
  #printReceiptBtn {
    display: none !important;
  }
  body {
    background: #fff;
  }
  .receipt-card {
    border: 1px solid #000;
    box-shadow: none;
  }
}
