/* 68赚外贸电商营销网 - Local Editorial & Utility Design System */
*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --brand-blue: #0d5ca8;
  --brand-blue-dark: #09427a;
  --brand-sky: #2596d2;
  --brand-orange: #ea6c00;
  --brand-orange-dark: #c95800;
  --navy-900: #0a1b34;
  --navy-800: #12294d;
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --line-200: #e2e8f0;
  --line-300: #cbd5e1;
  --bg-page: #f8fafc;
  --bg-white: #ffffff;
  --bg-soft: #f1f5f9;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--bg-page);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

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

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
}

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

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

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

.nav-link {
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  color: var(--ink-700);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--brand-blue);
  background: var(--bg-soft);
}

.nav-link.is-active {
  color: var(--brand-blue);
  background: #eff6ff;
}

.header-search {
  display: flex;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--line-200);
  border-radius: 999px;
  padding: 3px 6px 3px 14px;
  width: 220px;
  flex-shrink: 0;
}

.header-search:focus-within {
  border-color: var(--brand-blue);
  background: var(--bg-white);
}

.header-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.86rem;
  color: var(--ink-900);
  width: 100%;
  min-width: 0;
}

.header-search button {
  border: none;
  background: var(--brand-blue);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

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

.mobile-menu-btn {
  display: none;
  border: 1px solid var(--line-200);
  background: var(--bg-white);
  color: var(--ink-900);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-drawer {
  border-top: 1px solid var(--line-200);
  background: var(--bg-white);
  padding: 14px 0 18px;
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.mobile-search input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line-300);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 0.92rem;
}

.mobile-search button {
  border: none;
  background: var(--brand-blue);
  color: #fff;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
}

.mobile-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mobile-nav a {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--ink-900);
  font-weight: 600;
  font-size: 0.92rem;
  text-align: center;
}

.mobile-nav a.is-active {
  background: #eff6ff;
  color: var(--brand-blue);
  border: 1px solid #bfdbfe;
}

/* Top Announcement Banner (Directly under main nav on Home) */
.announce-bar {
  background: linear-gradient(90deg, #fff7ed 0%, #ffedd5 50%, #eff6ff 100%);
  border-bottom: 1px solid #fed7aa;
  padding: 10px 0;
}

.announce-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.announce-badge {
  display: inline-block;
  background: var(--brand-orange);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}

.announce-text {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #7c2d12;
}

/* Hero Band */
.hero-band {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 58%, #0f3d75 100%);
  color: #fff;
  padding: 52px 0 56px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 36px;
  align-items: start;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fdba74;
  background: rgba(234, 108, 0, 0.16);
  border: 1px solid rgba(251, 146, 60, 0.35);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  line-height: 1.24;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 0 24px;
  color: #cbd5e1;
  font-size: 1rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

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

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

.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.btn-secondary {
  background: var(--bg-white);
  border-color: var(--line-300);
  color: var(--ink-900);
}

.btn-secondary:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.btn-block {
  width: 100%;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.metric-label {
  font-size: 0.78rem;
  color: #94a3b8;
}

.spotlight-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 14px;
}

.spotlight-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.8rem;
  color: #cbd5e1;
}

.spotlight-title {
  margin: 0 0 10px;
  font-size: 1.22rem;
  line-height: 1.4;
}

.spotlight-title a {
  color: #fff;
}

.spotlight-title a:hover {
  color: #fdba74;
}

.spotlight-summary {
  margin: 0 0 14px;
  color: #cbd5e1;
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spotlight-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: #94a3b8;
}

.link-arrow {
  color: #fdba74;
  font-weight: 700;
}

.spotlight-list {
  display: grid;
  gap: 8px;
}

.spotlight-mini {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: #e2e8f0;
  font-size: 0.88rem;
}

.spotlight-mini:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.mini-cat {
  font-size: 0.74rem;
  color: #93c5fd;
  font-weight: 700;
  white-space: nowrap;
}

.mini-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Pills & Badges */
.pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.pill-accent {
  background: var(--brand-orange);
  color: #fff;
}

.pill-subtle {
  background: rgba(147, 197, 253, 0.18);
  color: #dbeafe;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
}

.badge-blue { background: #eff6ff; color: #1d4ed8; }
.badge-orange { background: #fff7ed; color: #c2410c; }
.badge-teal { background: #f0fdfa; color: #0f766e; }
.badge-indigo { background: #eef2ff; color: #4338ca; }
.badge-emerald { background: #ecfdf5; color: #047857; }

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

.section-muted {
  background: var(--bg-soft);
  border-top: 1px solid var(--line-200);
}

.section-ai-preview {
  background: var(--bg-white);
  border-top: 1px solid var(--line-200);
}

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

.section-kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--brand-orange);
  margin-bottom: 4px;
}

.section-title {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--ink-900);
}

.section-more {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-blue);
  white-space: nowrap;
}

/* Tool Cards */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.tools-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tool-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  color: var(--ink-900);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-sky);
  color: var(--ink-900);
}

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

.tool-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-blue);
  background: #eff6ff;
  padding: 3px 9px;
  border-radius: 6px;
}

.tool-badge {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--brand-orange);
}

.tool-card-title {
  margin: 0 0 8px;
  font-size: 1.06rem;
  line-height: 1.38;
  font-weight: 700;
}

.tool-card-desc {
  margin: 0 0 16px;
  font-size: 0.87rem;
  color: var(--ink-500);
  flex: 1;
}

.tool-card-cta {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--brand-blue);
}

/* Category Pills */
.cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg-white);
  border: 1px solid var(--line-200);
  color: var(--ink-700);
  font-size: 0.87rem;
  font-weight: 600;
}

.cat-pill:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.cat-pill.is-active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}

.cat-count {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Articles Layout & Cards */
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  align-items: start;
}

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

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

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.article-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--ink-500);
  margin-bottom: 10px;
}

.article-card-title {
  margin: 0 0 10px;
  font-size: 1.06rem;
  line-height: 1.42;
}

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

.article-card-title a:hover {
  color: var(--brand-blue);
}

.article-card-summary {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--ink-500);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-foot {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--ink-500);
  padding-top: 12px;
  border-top: 1px solid var(--bg-soft);
}

.article-list {
  display: grid;
  gap: 16px;
}

.list-card {
  background: var(--bg-white);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.list-card-title {
  margin: 0 0 10px;
  font-size: 1.24rem;
  line-height: 1.4;
}

.list-card-title a {
  color: var(--ink-900);
}

.list-card-title a:hover {
  color: var(--brand-blue);
}

.list-card-summary {
  margin: 0 0 12px;
  font-size: 0.93rem;
  color: var(--ink-700);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-chip {
  font-size: 0.78rem;
  color: var(--ink-500);
  background: var(--bg-soft);
  padding: 3px 10px;
  border-radius: 999px;
}

.tag-chip:hover {
  background: #eff6ff;
  color: var(--brand-blue);
}

/* Sidebar */
.home-sidebar,
.article-sidebar {
  display: grid;
  gap: 18px;
}

.side-box {
  background: var(--bg-white);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.side-box-accent {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border-color: #bfdbfe;
}

.side-box-title {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink-900);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bg-soft);
}

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

.rank-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.89rem;
  line-height: 1.45;
}

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

.rank-list li:nth-child(1) .rank-num { background: var(--brand-orange); color: #fff; }
.rank-list li:nth-child(2) .rank-num { background: var(--brand-blue); color: #fff; }
.rank-list li:nth-child(3) .rank-num { background: var(--brand-sky); color: #fff; }

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

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

.check-list {
  margin: 0 0 16px;
  padding-left: 18px;
  font-size: 0.88rem;
  color: var(--ink-700);
  display: grid;
  gap: 10px;
}

.side-tools-list {
  display: grid;
  gap: 10px;
}

.side-tool-item {
  display: flex;
  flex-direction: column;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--ink-900);
}

.side-tool-item:hover {
  background: #eff6ff;
  color: var(--brand-blue);
}

.side-tool-item strong {
  font-size: 0.89rem;
}

.side-tool-item span {
  font-size: 0.78rem;
  color: var(--brand-blue);
  margin-top: 2px;
}

/* AI Hub & Glossary Cards */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ai-card {
  background: var(--bg-page);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

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

.ai-cat {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--brand-blue);
  background: #e0f2fe;
  padding: 3px 9px;
  border-radius: 6px;
}

.ai-tier {
  font-size: 0.74rem;
  color: var(--ink-500);
}

.ai-card-name {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--ink-900);
}

.ai-card-scene,
.ai-card-desc {
  margin: 0 0 8px;
  font-size: 0.87rem;
  color: var(--ink-700);
}

.ai-card-tip {
  margin: auto 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line-300);
  font-size: 0.83rem;
  color: #9a3412;
}

.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  border: 1px solid var(--line-300);
  background: var(--bg-white);
  color: var(--ink-700);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-pill.is-active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}

.filter-search {
  border: 1px solid var(--line-300);
  background: var(--bg-white);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.88rem;
  min-width: 240px;
  max-width: 100%;
}

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

.glossary-card {
  background: var(--bg-white);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.glossary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.glossary-term {
  margin: 0;
  font-size: 1.04rem;
  color: var(--navy-900);
}

.glossary-cn {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--brand-orange);
  margin-bottom: 8px;
}

.glossary-desc {
  margin: 0;
  font-size: 0.89rem;
  color: var(--ink-700);
}

/* Page Banner & Article Header */
.page-banner,
.article-header-band {
  background: var(--bg-white);
  border-bottom: 1px solid var(--line-200);
  padding: 32px 0 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  color: var(--ink-500);
  margin-bottom: 12px;
}

.page-title,
.article-h1 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  line-height: 1.3;
  font-weight: 800;
  color: var(--ink-900);
}

.page-desc,
.article-lead {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink-700);
  max-width: 820px;
}

.article-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--ink-500);
  margin-bottom: 12px;
}

/* Article Detail */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 28px;
  align-items: start;
}

.article-body-card,
.prose-card,
.info-panel {
  background: var(--bg-white);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  box-shadow: var(--shadow-sm);
}

.prose-card,
.info-panel {
  margin-top: 26px;
}

.takeaway-box {
  background: #eff6ff;
  border-left: 4px solid var(--brand-blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.takeaway-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--brand-blue);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.takeaway-box p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-900);
  font-weight: 500;
}

.prose h2,
.prose-card h2 {
  margin: 28px 0 12px;
  font-size: 1.32rem;
  color: var(--navy-900);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-200);
}

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

.prose h3,
.prose-card h3 {
  margin: 20px 0 8px;
  font-size: 1.08rem;
  color: var(--brand-blue-dark);
}

.prose p,
.prose-card p {
  margin: 0 0 14px;
  font-size: 0.98rem;
  color: var(--ink-700);
  line-height: 1.82;
}

.prose ul, .prose ol,
.prose-card ul, .prose-card ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--ink-700);
  line-height: 1.8;
}

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

.prose blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  background: #fff7ed;
  border-left: 4px solid var(--brand-orange);
  color: #7c2d12;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.prose code, .prose-card code {
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: #be123c;
  word-break: break-word;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid var(--line-200);
  border-radius: var(--radius-sm);
}

.table-wrap table,
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 480px;
}

.table-wrap th, .table-wrap td,
.prose th, .prose td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-200);
  text-align: left;
}

.table-wrap th,
.prose th {
  background: var(--bg-soft);
  font-weight: 700;
  color: var(--ink-900);
}

.toc-box {
  position: sticky;
  top: 86px;
}

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

.toc-list a {
  font-size: 0.86rem;
  color: var(--ink-700);
  display: block;
  padding: 4px 0 4px 10px;
  border-left: 2px solid var(--line-200);
}

.toc-list a:hover {
  border-left-color: var(--brand-orange);
  color: var(--brand-blue);
}

.article-tags-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line-200);
}

.tags-label {
  font-size: 0.85rem;
  color: var(--ink-500);
}

.article-action-banner {
  margin-top: 26px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--navy-900), #143666);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.article-action-banner strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.article-action-banner p {
  margin: 0;
  font-size: 0.88rem;
  color: #cbd5e1;
}

/* Calculators & Interactive Tools */
.calc-shell {
  background: var(--bg-white);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.calc-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line-200);
}

.preset-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink-700);
}

.preset-btn {
  border: 1px solid var(--line-300);
  background: var(--bg-soft);
  color: var(--ink-700);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

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

.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 28px;
  align-items: start;
}

.calc-inputs {
  display: grid;
  gap: 14px;
}

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

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

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field span {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink-700);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-300);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink-900);
  background: var(--bg-white);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(13, 92, 168, 0.12);
}

.calc-results {
  background: var(--bg-soft);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-md);
  padding: 20px;
}

.res-hero {
  background: linear-gradient(135deg, var(--navy-900), #143769);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 14px;
}

.res-label {
  font-size: 0.8rem;
  color: #93c5fd;
  font-weight: 600;
}

.res-main {
  font-size: 1.9rem;
  font-weight: 800;
  margin: 4px 0 2px;
  line-height: 1.2;
}

.res-sub {
  font-size: 0.88rem;
  color: #cbd5e1;
}

.res-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.res-kpi {
  background: var(--bg-white);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.res-kpi span {
  display: block;
  font-size: 0.77rem;
  color: var(--ink-500);
  margin-bottom: 4px;
}

.res-kpi strong {
  font-size: 1.12rem;
  color: var(--ink-900);
}

.res-breakdown h3 {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--ink-700);
}

.res-breakdown ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.res-breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--ink-700);
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--line-300);
}

.res-breakdown li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.copy-toast {
  font-size: 0.85rem;
  font-weight: 700;
  color: #047857;
}

.prompt-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink-700);
}

.prompt-textarea {
  width: 100%;
  border: 1px solid var(--line-300);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 0.87rem;
  line-height: 1.65;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--bg-white);
  color: var(--ink-900);
  resize: vertical;
}

/* Search & About & 404 */
.search-page-form {
  display: flex;
  gap: 10px;
  max-width: 640px;
  margin-top: 16px;
}

.search-page-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line-300);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 0.95rem;
}

.search-section {
  margin-bottom: 32px;
}

.search-section-title {
  margin: 0 0 14px;
  font-size: 1.15rem;
  color: var(--ink-900);
}

.empty-state,
.empty-filter-msg,
.not-found-card {
  background: var(--bg-white);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-md);
  padding: 36px 24px;
  text-align: center;
  color: var(--ink-700);
}

.nf-code {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--brand-blue);
  line-height: 1;
  margin-bottom: 10px;
}

.about-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 22px;
}

.about-link-card {
  display: block;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--line-200);
}

.about-link-card strong {
  display: block;
  color: var(--brand-blue);
  margin-bottom: 4px;
}

.about-link-card span {
  font-size: 0.86rem;
  color: var(--ink-700);
}

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.page-btn {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-300);
  background: var(--bg-white);
  color: var(--ink-700);
  font-size: 0.88rem;
  font-weight: 600;
}

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

/* Footer */
.site-footer {
  background: var(--navy-900);
  color: #cbd5e1;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding: 46px 20px 36px;
}

.footer-brand-name {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.footer-desc {
  margin: 0 0 10px;
  color: #fdba74;
  font-size: 0.92rem;
  font-weight: 600;
}

.footer-sub {
  margin: 0;
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.7;
}

.footer-col h3 {
  margin: 0 0 12px;
  font-size: 0.94rem;
  color: #fff;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-col a {
  color: #94a3b8;
  font-size: 0.87rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.83rem;
  color: #94a3b8;
}

.footer-bottom-inner p {
  margin: 0;
}

.footer-beian a {
  color: #cbd5e1;
}

.footer-beian a:hover {
  color: #fdba74;
}

/* Responsive Breakpoints (Zero horizontal scroll at 375px) */
@media (max-width: 1024px) {
  .main-nav,
  .header-search {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .hero-grid,
  .content-layout,
  .article-layout,
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ai-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .toc-box {
    position: static;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }
  .brand-logo {
    height: 36px;
  }
  .hero-band {
    padding: 34px 0 38px;
  }
  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tools-grid,
  .tools-grid-2,
  .article-grid,
  .ai-grid,
  .related-grid,
  .glossary-grid,
  .about-links-grid,
  .form-row-2,
  .form-row-3,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 34px 0;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .article-body-card,
  .prose-card,
  .info-panel,
  .calc-shell {
    padding: 20px 16px;
  }
  .article-action-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .announce-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .search-page-form {
    flex-direction: column;
  }
  .filter-search {
    width: 100%;
    min-width: 0;
  }
}
