:root {
  --bg: #f6f8f5;
  --surface: #ffffff;
  --surface-alt: #eef3ec;
  --border: #dfe6dc;
  --border-strong: #c8d4c4;
  --text: #1c271e;
  --text-muted: #526155;
  --text-soft: #708074;
  --brand: #166534;
  --brand-dark: #114b27;
  --brand-light: #e8f5ec;
  --accent: #b45309;
  --accent-bg: #fef3c7;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 10px rgba(20, 46, 26, 0.05);
  --shadow-hover: 0 8px 24px rgba(20, 46, 26, 0.10);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.68;
  overflow-x: hidden;
  word-wrap: break-word;
}

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

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.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(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

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

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-soft);
  margin-top: 2px;
}

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

.main-nav a {
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.main-nav a:hover {
  background: var(--surface-alt);
  color: var(--brand);
}

.main-nav a.active {
  background: var(--brand-light);
  color: var(--brand-dark);
}

.main-nav a.nav-tools {
  color: var(--accent);
}

.main-nav a.nav-tools.active {
  background: var(--accent-bg);
  color: #92400e;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 6px 3px 12px;
  width: 210px;
  transition: border-color 0.15s ease, width 0.2s ease;
}

.header-search:focus-within {
  border-color: var(--brand);
  background: #fff;
}

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

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

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

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

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.mobile-drawer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 14px 0 18px;
}

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

.mobile-search input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 0.92rem;
}

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

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

.mobile-nav-grid a {
  padding: 9px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.mobile-nav-grid a.active {
  background: var(--brand-light);
  border-color: var(--brand);
  color: var(--brand-dark);
}

/* Homepage Top Announcement Bar */
.announce-bar {
  background: linear-gradient(90deg, #14532d 0%, #166534 65%, #1e743f 100%);
  color: #ffffff;
  border-bottom: 1px solid #0f3d21;
}

.announce-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
}

.announce-tag {
  display: inline-block;
  background: #f59e0b;
  color: #1c1917;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.announce-text {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  flex: 1;
}

.announce-links {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.84rem;
}

.announce-links a {
  color: #fde68a;
  font-weight: 600;
}

.announce-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

.badge-aqua { background: #e0f2fe; color: #075985; }
.badge-pig  { background: #fce7f3; color: #9d174d; }
.badge-live { background: #ecfccb; color: #3f6212; }
.badge-mach { background: #fef3c7; color: #92400e; }
.badge-nutr { background: #e8f5ec; color: #166534; }
.badge-news { background: #ede9fe; color: #5b21b6; }
.badge-default { background: var(--surface-alt); color: var(--brand); }

.pill-subtle {
  display: inline-block;
  padding: 2px 8px;
  background: var(--surface-alt);
  color: var(--text-muted);
  border-radius: 6px;
  font-size: 0.78rem;
  white-space: nowrap;
}

/* Buttons */
.btn-primary, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

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

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

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

.btn-outline:hover {
  background: var(--brand-light);
  color: var(--brand-dark);
}

.btn-block {
  width: 100%;
}

/* Hero Section */
.hero-section {
  padding: 26px 0 14px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.hero-feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.hero-cover-link {
  position: relative;
  display: block;
  background: var(--surface-alt);
}

.hero-cover {
  width: 100%;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
}

.hero-cover-link .badge {
  position: absolute;
  top: 14px;
  left: 14px;
}

.hero-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hero-kicker {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 6px;
}

.hero-title {
  margin: 0 0 10px;
  font-size: 1.48rem;
  line-height: 1.35;
}

.hero-title a {
  color: var(--text);
}

.hero-title a:hover {
  color: var(--brand);
}

.hero-summary {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-soft);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.hero-readmore {
  margin-left: auto;
  font-weight: 700;
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.tool-launcher-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.tool-launcher-head h2 {
  margin: 0;
  font-size: 1.12rem;
}

.tool-launcher-head a {
  font-size: 0.85rem;
  font-weight: 700;
}

.tool-launcher-desc {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.tool-quick-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tool-quick-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.tool-quick-item:hover {
  border-color: var(--brand);
  background: #fff;
  transform: translateY(-1px);
}

.tool-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.tool-icon-calc { background: #dcfce7; color: #166534; }
.tool-icon-ing  { background: #fef3c7; color: #92400e; }
.tool-icon-mach { background: #e0f2fe; color: #075985; }

.tool-quick-item strong {
  display: block;
  font-size: 0.94rem;
  color: var(--text);
}

.tool-quick-item span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

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

.pulse-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
  box-shadow: var(--shadow);
}

.pulse-item strong {
  display: block;
  font-size: 1.15rem;
  color: var(--brand);
}

.pulse-item span {
  display: block;
  font-size: 0.74rem;
  color: var(--text-soft);
  margin-top: 3px;
}

.featured-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.strip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.strip-card h3 {
  margin: 8px 0 6px;
  font-size: 0.96rem;
  line-height: 1.4;
}

.strip-card h3 a {
  color: var(--text);
}

.strip-card h3 a:hover {
  color: var(--brand);
}

.strip-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Section blocks */
.section-block {
  padding: 34px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.section-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
}

.section-sub {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

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

.channel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--brand-light);
}

.channel-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--brand-dark);
}

.channel-desc {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.channel-more {
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

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

.channel-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.9rem;
}

.channel-list a {
  color: var(--text);
  font-weight: 500;
}

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

.channel-list span {
  font-size: 0.76rem;
  color: var(--text-soft);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Content + Sidebar layout */
.content-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-row {
  display: flex;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.article-row:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--border-strong);
}

.article-thumb-wrap {
  width: 210px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-alt);
}

.article-thumb {
  width: 100%;
  height: 100%;
  min-height: 128px;
  object-fit: cover;
}

.article-row-body {
  flex: 1;
  min-width: 0;
}

.article-row-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.article-row h2, .article-row h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  line-height: 1.4;
}

.article-row h2 a, .article-row h3 a {
  color: var(--text);
}

.article-row h2 a:hover, .article-row h3 a:hover {
  color: var(--brand);
}

.article-row p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Sidebar */
.side-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.side-card-title {
  margin: 0 0 14px;
  font-size: 1.02rem;
  font-weight: 800;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

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

.rank-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.rank-num {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--surface-alt);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.rank-top {
  background: var(--brand);
  color: #fff;
}

.rank-list a {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

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

.rank-list small {
  display: block;
  font-size: 0.76rem;
  color: var(--text-soft);
  margin-top: 3px;
}

.side-cta {
  background: linear-gradient(155deg, #f0fdf4 0%, #ffffff 70%);
  border-color: #bbf7d0;
}

.side-cta h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--brand-dark);
}

.side-cta p {
  margin: 0 0 14px;
  font-size: 0.87rem;
  color: var(--text-muted);
}

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

.tag-cloud a {
  padding: 5px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.tag-cloud a:hover {
  background: var(--brand-light);
  border-color: var(--brand);
  color: var(--brand-dark);
}

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

.side-links a {
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

.side-links a.active, .side-links a:hover {
  background: var(--brand-light);
  color: var(--brand-dark);
}

.side-article-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-article-list a {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.4;
}

.side-article-list small {
  display: block;
  font-size: 0.76rem;
  color: var(--text-soft);
  margin-top: 3px;
}

/* Page Banner */
.page-banner {
  background: linear-gradient(180deg, #ecf5ee 0%, #f6f8f5 100%);
  border-bottom: 1px solid var(--border);
  padding: 26px 0;
}

.page-banner-compact {
  padding: 14px 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.page-banner-compact .breadcrumb {
  margin-bottom: 0;
}

.page-banner h1 {
  margin: 0 0 8px;
  font-size: 1.7rem;
  line-height: 1.3;
}

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

.banner-search-form {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  max-width: 620px;
}

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

.list-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

/* Article Detail */
.article-detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow);
}

.article-header h1 {
  margin: 10px 0 10px;
  font-size: 1.75rem;
  line-height: 1.35;
}

.article-subtitle {
  margin: 0 0 12px;
  font-size: 1.02rem;
  color: var(--text-muted);
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.84rem;
  color: var(--text-soft);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.article-summary-box {
  margin: 20px 0;
  padding: 14px 16px;
  background: var(--brand-light);
  border-left: 4px solid var(--brand);
  border-radius: 0 8px 8px 0;
  font-size: 0.94rem;
  color: #143620;
}

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

.article-cover-banner img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
}

.article-content {
  font-size: 1.01rem;
  line-height: 1.85;
  color: #1f2b22;
}

.article-content h2 {
  margin: 26px 0 12px;
  font-size: 1.28rem;
  padding-left: 12px;
  border-left: 4px solid var(--brand);
  color: var(--text);
}

.article-content h3 {
  margin: 20px 0 8px;
  font-size: 1.08rem;
  color: var(--brand-dark);
}

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

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

.article-content li {
  margin-bottom: 7px;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9rem;
  display: block;
  overflow-x: auto;
}

.article-content th, .article-content td {
  border: 1px solid var(--border);
  padding: 9px 12px;
  text-align: left;
  white-space: nowrap;
}

.article-content th {
  background: var(--surface-alt);
  font-weight: 700;
}

.article-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.86rem;
}

.article-tags a {
  padding: 4px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
}

.article-disclaimer {
  margin-top: 18px;
  padding: 12px 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #78350f;
}

.article-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.pager-item span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-bottom: 4px;
}

.pager-item a {
  font-weight: 700;
  font-size: 0.92rem;
}

.pager-item em {
  font-style: normal;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.pager-right {
  text-align: right;
}

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

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 680px;
}

.data-table th, .data-table td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  background: var(--surface-alt);
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: #fafcf9;
}

.num-accent {
  font-weight: 800;
  color: var(--brand);
}

.td-notes {
  min-width: 220px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Tools & Calculator */
.tools-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

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

.hub-badge {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 0.76rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.hub-badge-amber { background: #fef3c7; color: #92400e; }
.hub-badge-teal  { background: #e0f2fe; color: #075985; }

.hub-card h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.hub-card p {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.hub-points {
  margin: 0 0 18px;
  padding-left: 18px;
  font-size: 0.88rem;
  color: var(--text);
  flex: 1;
}

.hub-points li {
  margin-bottom: 6px;
}

.calc-presets {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

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

.preset-btn {
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

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

.calc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.calc-panel, .calc-result-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.calc-panel-title, .calc-result-panel h2 {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.calc-table {
  min-width: 540px;
}

.calc-table input {
  width: 100%;
  padding: 7px 9px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-size: 0.9rem;
}

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

.calc-extra-grid label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.calc-extra-grid input {
  padding: 9px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text);
}

.ratio-check {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.ratio-check.ratio-warn {
  background: #fef2f2;
  color: #991b1b;
}

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

.kpi-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}

.kpi-box span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.kpi-box strong {
  display: block;
  font-size: 1.25rem;
  margin: 4px 0 2px;
  color: var(--text);
}

.kpi-box small {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.kpi-primary {
  background: #f0fdf4;
  border-color: #86efac;
}

.kpi-primary strong {
  color: var(--brand-dark);
}

.kpi-accent {
  background: #fffbeb;
  border-color: #fcd34d;
}

.kpi-accent strong {
  color: #92400e;
}

.calc-tips {
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.calc-tips h3 {
  margin: 0 0 8px;
  font-size: 0.96rem;
}

.calc-tips ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.calc-tips li {
  margin-bottom: 6px;
}

/* Filters & Machinery Cards */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

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

.filter-pill {
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
}

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

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

.filter-search input {
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 0.9rem;
  min-width: 200px;
}

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

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

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

.machine-price {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--accent);
}

.machine-card h2 {
  margin: 0 0 12px;
  font-size: 1.18rem;
}

.machine-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  background: var(--bg);
  border-radius: 8px;
  margin-bottom: 12px;
}

.machine-specs span {
  display: block;
  font-size: 0.76rem;
  color: var(--text-soft);
}

.machine-specs strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
  margin-top: 2px;
}

.machine-detail p {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Prose Card, Pagination, Empty & 404 */
.prose-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
}

.prose-card h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.prose-card h2:not(:first-child) {
  margin-top: 24px;
}

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

.pagination a {
  padding: 7px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

.pagination a.active, .pagination a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.empty-box, .notfound-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.notfound-code {
  font-size: 3.4rem;
  font-weight: 900;
  color: var(--brand);
  line-height: 1;
}

.notfound-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 26px;
}

.notfound-popular {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.notfound-popular h2 {
  font-size: 1.05rem;
  margin: 0 0 10px;
}

.notfound-popular ul {
  margin: 0;
  padding-left: 18px;
}

.notfound-popular li {
  margin-bottom: 6px;
}

/* Footer */
.site-footer {
  background: #142218;
  color: #d6e2d8;
  margin-top: 40px;
}

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

.footer-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

.footer-desc {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: #b4c7b8;
  line-height: 1.7;
}

.footer-tagline {
  margin: 0;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fde68a;
  font-size: 0.82rem;
  font-weight: 600;
}

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

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.87rem;
}

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

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

.footer-note {
  font-size: 0.8rem;
  color: #93ab98;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  font-size: 0.82rem;
  color: #9bb1a0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
  .main-nav {
    display: none;
  }
  .header-search {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .hero-grid,
  .content-with-sidebar,
  .calc-layout {
    grid-template-columns: 1fr;
  }
  .featured-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .channel-grid,
  .tools-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 14px;
  }
  .header-inner {
    min-height: 60px;
  }
  .brand-logo {
    height: 36px;
  }
  .brand-name {
    font-size: 1.02rem;
  }
  .brand-sub {
    display: none;
  }
  .announce-links {
    display: none;
  }
  .announce-text {
    font-size: 0.88rem;
  }
  .hero-title {
    font-size: 1.24rem;
  }
  .featured-strip,
  .channel-grid,
  .tools-hub-grid,
  .machine-grid,
  .footer-grid,
  .calc-extra-grid,
  .result-kpi-grid,
  .article-pager {
    grid-template-columns: 1fr;
  }
  .pager-right {
    text-align: left;
  }
  .article-row {
    flex-direction: column;
    gap: 12px;
    padding: 14px;
  }
  .article-thumb-wrap {
    width: 100%;
  }
  .article-thumb {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
  .article-detail,
  .prose-card,
  .calc-panel,
  .calc-result-panel {
    padding: 18px 15px;
  }
  .article-header h1,
  .page-banner h1 {
    font-size: 1.35rem;
  }
  .filter-search {
    width: 100%;
  }
  .filter-search input {
    flex: 1;
    min-width: 0;
  }
  .banner-search-form {
    flex-direction: column;
  }
  .industry-pulse {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .pulse-item strong {
    font-size: 1rem;
  }
  .pulse-item span {
    font-size: 0.7rem;
  }
}
