/* ==========================================================================
   五河信息港 (www.wuhexxg.com) — 水韵五河 · 皖美虹城
   Local-only responsive CSS, zero external CDN dependencies
   ========================================================================== */

:root {
  --brand-dark: #0A3642;
  --brand: #0F4C5C;
  --brand-mid: #136F63;
  --brand-light: #E6F4F1;
  --accent: #D97706;
  --accent-deep: #B45309;
  --accent-bg: #FEF7E8;
  --vermilion: #C2410C;
  --bg: #F5F7F6;
  --surface: #FFFFFF;
  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #64748B;
  --border: #E2E8F0;
  --border-soft: #EDF2F1;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow: 0 8px 24px rgba(15, 76, 92, 0.07);
  --max-w: 1200px;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

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

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

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

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Top Utility Bar ---------- */
.topbar {
  background: var(--brand-dark);
  color: #CBD5E1;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  flex-wrap: wrap;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar-badge {
  background: rgba(245, 158, 11, 0.18);
  color: #FCD34D;
  padding: 1px 8px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 11.5px;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.topbar-links a {
  color: #CBD5E1;
}

.topbar-links a:hover {
  color: #FFFFFF;
}

/* ---------- Main Header & Nav ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 80;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

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

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

.header-search {
  display: flex;
  align-items: center;
  flex: 0 1 320px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 4px 3px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search:focus-within {
  border-color: var(--brand-mid);
  box-shadow: 0 0 0 3px rgba(19, 111, 99, 0.12);
  background: #FFFFFF;
}

.header-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13.5px;
  color: var(--ink);
  width: 100%;
  min-width: 0;
  font-family: inherit;
}

.header-search button {
  background: var(--brand);
  color: #FFFFFF;
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
}

.header-search button:hover {
  background: var(--brand-mid);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--brand-dark);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-bar {
  background: var(--brand);
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
  flex-wrap: wrap;
}

.nav-list a {
  display: block;
  padding: 11px 15px;
  color: #E2F1EE;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.nav-list a:hover,
.nav-list a.active {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
  border-bottom-color: #FBBF24;
}

/* ---------- Mandatory Announcement Banner (Below Nav) ---------- */
.announce-bar {
  background: linear-gradient(90deg, #FEF7E8 0%, #FFFBEB 60%, #F0FDF9 100%);
  border-bottom: 1px solid #FDE68A;
}

.announce-inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  font-size: 13.5px;
  color: #78350F;
  line-height: 1.55;
}

.announce-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--vermilion);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
}

.announce-text {
  margin: 0;
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ---------- Main Content Wrapper ---------- */
.main-content {
  padding: 22px 0 44px;
}

/* ---------- Hero Editorial Grid ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 22px;
}

.hero-lead {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--brand-dark);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

.hero-lead-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--brand-dark);
}

.hero-lead-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.hero-lead:hover .hero-lead-media img {
  transform: scale(1.02);
}

.hero-lead-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(194, 65, 12, 0.92);
  color: #FFFFFF;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.hero-lead-body {
  padding: 18px 22px 20px;
  background: linear-gradient(180deg, #0D3F4D 0%, #0A2E38 100%);
  color: #FFFFFF;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-lead-body h1 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.38;
  font-weight: 700;
}

.hero-lead-body h1 a {
  color: #FFFFFF;
}

.hero-lead-body h1 a:hover {
  color: #FCD34D;
}

.hero-lead-body p {
  margin: 0 0 12px;
  font-size: 14px;
  color: #CBD5E1;
  line-height: 1.6;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: #94A3B8;
  flex-wrap: wrap;
}

.hero-headlines {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--border-soft);
}

.panel-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.panel-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 17px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--brand) 0%, var(--accent) 100%);
}

.panel-more {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.panel-more:hover {
  color: var(--brand);
}

.headline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.headline-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border);
}

.headline-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.headline-main {
  min-width: 0;
  flex: 1;
}

.headline-cat {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--brand-mid);
  background: var(--brand-light);
  padding: 1px 7px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: 1px;
}

.headline-link {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
}

.headline-link:hover {
  color: var(--vermilion);
}

.headline-date {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- Quick Service Strip ---------- */
.quick-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.quick-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 8px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.quick-card:hover {
  border-color: var(--brand-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.quick-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-mid) 100%);
}

.quick-icon.warm {
  background: linear-gradient(135deg, #D97706 0%, #C2410C 100%);
}

.quick-card strong {
  font-size: 13.5px;
  color: var(--ink);
}

.quick-card span {
  font-size: 11.5px;
  color: var(--muted);
}

/* ---------- Two-Column Portal Layout ---------- */
.portal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}

.portal-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

/* ---------- Feature Banner (Tuohu Crab & Culture) ---------- */
.crab-spotlight {
  background: linear-gradient(135deg, #0D3D4A 0%, #115E59 60%, #1E293B 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  box-shadow: var(--shadow);
}

.crab-spotlight-tag {
  display: inline-block;
  background: rgba(245, 158, 11, 0.22);
  color: #FCD34D;
  border: 1px solid rgba(252, 211, 77, 0.35);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.crab-spotlight h2 {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.35;
}

.crab-spotlight p {
  margin: 0 0 14px;
  font-size: 14px;
  color: #D1FAE5;
  line-height: 1.65;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.btn-amber {
  background: var(--accent);
  color: #FFFFFF;
}

.btn-amber:hover {
  background: var(--accent-deep);
  color: #FFFFFF;
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

.btn-brand {
  background: var(--brand);
  color: #FFFFFF;
}

.btn-brand:hover {
  background: var(--brand-mid);
  color: #FFFFFF;
}

.crab-spotlight-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* ---------- Article Cards Grid ---------- */
.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.article-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.article-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--brand-dark);
  position: relative;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-thumb-cat {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(15, 76, 92, 0.88);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.article-body {
  padding: 13px 14px 15px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-title {
  margin: 0 0 7px;
  font-size: 15.5px;
  line-height: 1.42;
  font-weight: 700;
}

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

.article-title a:hover {
  color: var(--vermilion);
}

.article-excerpt {
  margin: 0 0 10px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  padding-top: 8px;
  border-top: 1px solid var(--border-soft);
}

/* ---------- Compact Editorial List ---------- */
.compact-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.compact-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}

.compact-list a {
  color: var(--ink-2);
  font-weight: 500;
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-list a:hover {
  color: var(--vermilion);
}

/* ---------- Classifieds Tabs & Cards ---------- */
.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tab-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--brand);
  color: #FFFFFF;
  border-color: var(--brand);
}

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

.listing-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 15px;
  background: #FAFBFB;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.listing-card:hover {
  border-color: var(--brand-mid);
  background: #FFFFFF;
}

.listing-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.listing-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}

.listing-highlight {
  font-size: 13px;
  font-weight: 700;
  color: var(--vermilion);
  white-space: nowrap;
  flex-shrink: 0;
}

.listing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  display: inline-block;
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--brand-light);
  color: var(--brand);
  font-weight: 600;
}

.pill.amber {
  background: var(--accent-bg);
  color: var(--accent-deep);
}

.listing-desc {
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* ---------- Sidebar ---------- */
.sidebar-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

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

.fact-item {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
}

.fact-item strong {
  display: block;
  font-size: 16px;
  color: var(--brand);
}

.fact-item span {
  font-size: 12px;
  color: var(--muted);
}

.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rank-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.45;
}

.rank-num {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.rank-item:nth-child(1) .rank-num { background: #C2410C; color: #FFFFFF; }
.rank-item:nth-child(2) .rank-num { background: #D97706; color: #FFFFFF; }
.rank-item:nth-child(3) .rank-num { background: #0F4C5C; color: #FFFFFF; }

.rank-item a {
  color: var(--ink-2);
}

.rank-item a:hover {
  color: var(--vermilion);
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13px;
}

.service-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
  color: var(--ink-2);
}

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

.service-list strong {
  color: var(--brand-dark);
}

/* ---------- Towns Grid ---------- */
.town-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.town-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background: #FFFFFF;
}

.town-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.town-card h3 {
  margin: 0;
  font-size: 15.5px;
  color: var(--brand-dark);
}

.town-card p {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
}

.town-meta {
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Breadcrumb & Article Detail ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.article-detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
}

.article-detail-header {
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.article-detail-header h1 {
  margin: 8px 0 12px;
  font-size: 25px;
  line-height: 1.38;
  color: var(--ink);
}

.article-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
}

.article-cover-full {
  margin: 0 0 22px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-soft);
}

.article-prose {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-2);
}

.article-prose h2,
.article-prose h3 {
  color: var(--brand-dark);
  margin: 24px 0 10px;
  line-height: 1.4;
}

.article-prose h3 {
  font-size: 18px;
  padding-left: 10px;
  border-left: 4px solid var(--accent);
}

.article-prose p {
  margin: 0 0 14px;
}

.article-prose ul,
.article-prose ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

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

.article-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.article-prose th,
.article-prose td {
  border: 1px solid var(--border);
  padding: 9px 11px;
  text-align: left;
}

.article-prose th {
  background: var(--bg);
  color: var(--brand-dark);
}

.article-notice {
  margin-top: 24px;
  padding: 13px 16px;
  background: var(--bg);
  border-left: 4px solid var(--brand);
  border-radius: 6px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Interactive Tool Card (Crab & Travel Assistant) ---------- */
.tool-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

.tool-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.field select,
.field input {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #FFFFFF;
  color: var(--ink);
}

.tool-result {
  background: linear-gradient(135deg, #F0FDF9 0%, #FEF7E8 100%);
  border: 1px solid #B7E4D8;
  border-radius: var(--radius);
  padding: 16px 18px;
}

.tool-result h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--brand-dark);
}

.tool-result p {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--ink-2);
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #FFFFFF;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
}

.page-link.active,
.page-link:hover {
  background: var(--brand);
  color: #FFFFFF;
  border-color: var(--brand);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-dark);
  color: #CBD5E1;
  padding: 34px 0 24px;
  margin-top: 24px;
  border-top: 4px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-title {
  margin: 0 0 10px;
  font-size: 15.5px;
  font-weight: 700;
  color: #FFFFFF;
}

.footer-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: #94A3B8;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  font-size: 13.5px;
}

.footer-links a {
  color: #CBD5E1;
}

.footer-links a:hover {
  color: #FCD34D;
}

.footer-bottom {
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #94A3B8;
}

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

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

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

/* ---------- Responsive (Tablet & Mobile 375px safe) ---------- */
@media (max-width: 1024px) {
  .portal-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .quick-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .town-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .topbar-links {
    display: none;
  }
  .header-main {
    flex-wrap: wrap;
    gap: 10px;
  }
  .brand-logo img {
    height: 40px;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .header-search {
    order: 3;
    flex: 1 1 100%;
    max-width: 100%;
  }
  .nav-bar {
    display: none;
  }
  .nav-bar.open {
    display: block;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 6px 0;
  }
  .nav-list a {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .hero-grid,
  .crab-spotlight,
  .card-grid-2,
  .card-grid-3,
  .listing-grid,
  .compact-list,
  .tool-form-grid,
  .town-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .quick-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
  .quick-card {
    padding: 10px 4px;
  }
  .quick-card strong {
    font-size: 12.5px;
  }
  .quick-card span {
    display: none;
  }
  .hero-lead-body h1 {
    font-size: 19px;
  }
  .article-detail {
    padding: 18px 16px;
  }
  .article-detail-header h1 {
    font-size: 21px;
  }
  .portal-section {
    padding: 16px 14px;
  }
  .article-prose table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
  }
}

@media (max-width: 400px) {
  .container {
    padding: 0 12px;
  }
  .brand-logo img {
    height: 36px;
  }
  .announce-inner {
    font-size: 12.5px;
  }
}
