/*
Theme Name: PigPro
Theme URI: https://example.com/pigpro
Author: PigPro Team
Author URI: https://example.com
Description: B2B 养猪设备外贸站主题。按《养猪设备外贸站 · 网站架构与 SEO 规格书 v1.0》实现全站信息架构：9 大产品类目、型号页、解决方案、博客、About / Quote / Contact / Privacy / Terms / Sitemap，共 27 个首期页面。产品、方案、文章均为后台可增删的内容类型；品牌名、联系方式、首屏文案、页脚等全部集中在「外观 → 自定义 → 站点设置」修改，无需改代码。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pigpro
Tags: business, e-commerce, custom-logo, custom-menu, featured-images, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   1. 设计令牌（改这几行即可换全站配色）
   ========================================================================== */
:root {
  /* 主色：制造业 / 农业装备的稳绿 */
  --c-primary: #0E5E3A;
  --c-primary-dark: #0A452B;
  --c-primary-soft: #E8F3ED;
  --c-primary-line: #CFE3D8;

  /* 强调色：询盘 / CTA */
  --c-accent: #F59E0B;
  --c-accent-dark: #D97706;
  --c-accent-soft: #FEF3C7;

  /* 文字与中性色 */
  --c-ink: #0F172A;
  --c-body: #374151;
  --c-muted: #6B7280;
  --c-line: #E5E7EB;
  --c-line-soft: #F1F3F5;

  /* 背景 */
  --c-bg: #FFFFFF;
  --c-bg-soft: #F7F9F8;
  --c-bg-dark: #0B1F17;
  --c-bg-dark-2: #123026;

  /* 尺寸 */
  --container: 1240px;
  --container-narrow: 860px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 4px 16px rgba(15, 23, 42, .08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, .12);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  --header-h: 76px;
}

/* ==========================================================================
   2. 基础重置
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-body);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5em;
  color: var(--c-ink);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p { margin: 0 0 1.1em; }

a { color: var(--c-primary); text-decoration: none; transition: color .18s ease, opacity .18s ease; }
a:hover { color: var(--c-primary-dark); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .4em; }

hr { border: 0; border-top: 1px solid var(--c-line); margin: 2.5rem 0; }

blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--c-primary);
  background: var(--c-bg-soft);
  color: var(--c-ink);
  font-style: italic;
}

code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
pre { background: var(--c-bg-soft); padding: 1.25rem; border-radius: var(--radius); overflow: auto; }

table { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: .95rem; }
th, td { padding: .75rem 1rem; border: 1px solid var(--c-line); text-align: left; vertical-align: top; }
th { background: var(--c-bg-soft); color: var(--c-ink); font-weight: 600; }

:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 3px; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 9999;
  background: var(--c-primary); color: #fff; padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius) var(--radius); transition: top .2s;
}
.skip-link:focus { top: 0; color: #fff; }

/* ==========================================================================
   3. 布局工具类
   ========================================================================== */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-narrow { width: 100%; max-width: var(--container-narrow); margin: 0 auto; padding: 0 20px; }
.container-wide { width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 20px; }

.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section--soft { background: var(--c-bg-soft); }
.section--dark { background: var(--c-bg-dark); color: rgba(255, 255, 255, .78); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--tight { padding: clamp(2rem, 4vw, 3rem) 0; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--gap-sm { gap: 16px; }
.grid--gap-lg { gap: 32px; }

.section-head { max-width: 720px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }
.section-eyebrow {
  display: inline-block; margin-bottom: .75rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--c-primary);
}
.section--dark .section-eyebrow { color: var(--c-accent); }
.section-title { margin-bottom: .6rem; }
.section-sub { color: var(--c-muted); font-size: 1.05rem; margin: 0; }
.section--dark .section-sub { color: rgba(255, 255, 255, .68); }

/* ==========================================================================
   4. 按钮
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .7rem 1.5rem;
  font-size: .95rem; font-weight: 600; line-height: 1.2;
  border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: transform .15s ease, background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-dark); border-color: var(--c-primary-dark); color: #fff; box-shadow: var(--shadow); }
.btn-accent { background: var(--c-accent); border-color: var(--c-accent); color: #422006; }
.btn-accent:hover { background: var(--c-accent-dark); border-color: var(--c-accent-dark); color: #fff; box-shadow: var(--shadow); }
.btn-outline { background: transparent; border-color: var(--c-primary); color: var(--c-primary); }
.btn-outline:hover { background: var(--c-primary); color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--c-primary); }
.btn-light:hover { background: var(--c-primary-soft); border-color: var(--c-primary-soft); color: var(--c-primary-dark); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.btn-lg { min-height: 54px; padding: .9rem 1.9rem; font-size: 1.02rem; }
.btn-sm { min-height: 38px; padding: .45rem 1rem; font-size: .85rem; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }

/* 文字箭头链接 */
.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; font-size: .92rem; color: var(--c-primary);
}
.link-arrow::after { content: "→"; transition: transform .18s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ==========================================================================
   5. 顶部工具条
   ========================================================================== */
.topbar {
  background: var(--c-bg-dark); color: rgba(255, 255, 255, .82);
  font-size: .82rem;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar-list { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.topbar-list li { margin: 0; display: flex; align-items: center; gap: .45rem; }
.topbar a { color: rgba(255, 255, 255, .82); }
.topbar a:hover { color: #fff; }
.topbar .sep { width: 1px; height: 14px; background: rgba(255,255,255,.2); }
.topbar-right { display: flex; align-items: center; gap: 1rem; }
.lang-switch { display: inline-flex; gap: .35rem; align-items: center; }
.lang-switch a.is-active { color: var(--c-accent); font-weight: 700; }

/* ==========================================================================
   6. 页头 / 导航
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-line);
  transition: box-shadow .2s ease;
}
.site-header.is-stuck { box-shadow: var(--shadow); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand img { max-height: 48px; width: auto; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
  color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 1.12rem; font-weight: 800; color: var(--c-ink); letter-spacing: -.01em; }
.brand-tag { font-size: .72rem; color: var(--c-muted); letter-spacing: .06em; text-transform: uppercase; }

.nav-primary ul { display: flex; align-items: center; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.nav-primary li { margin: 0; position: relative; }
.nav-primary a {
  display: block; padding: .6rem .82rem;
  font-size: .93rem; font-weight: 600; color: var(--c-ink);
  border-radius: var(--radius-sm);
}
.nav-primary a:hover, .nav-primary .current-menu-item > a, .nav-primary .current-menu-parent > a, .nav-primary .current-menu-ancestor > a {
  color: var(--c-primary); background: var(--c-primary-soft);
}
.nav-primary .menu-item-has-children > a::after {
  content: ""; display: inline-block; margin-left: .4rem;
  border: 4px solid transparent; border-top-color: currentColor;
  transform: translateY(2px);
}

/* 下拉菜单 */
.nav-primary .sub-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 50;
  min-width: 250px; padding: .5rem;
  margin: 0; list-style: none;
  background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav-primary .sub-menu li { width: 100%; }
.nav-primary .sub-menu a { padding: .55rem .75rem; font-weight: 500; font-size: .9rem; }
.nav-primary li:hover > .sub-menu,
.nav-primary li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-primary .sub-menu .sub-menu { top: -0.5rem; left: 100%; }

.header-actions { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.nav-toggle {
  display: none; width: 46px; height: 46px; padding: 0;
  background: var(--c-bg-soft); border: 1px solid var(--c-line);
  border-radius: var(--radius); cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; margin: 0 auto;
  background: var(--c-ink); border-radius: 2px; transition: transform .2s ease, opacity .2s;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   7. 首屏 Hero
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--c-bg-dark) 0%, var(--c-bg-dark-2) 55%, var(--c-primary-dark) 100%);
  color: rgba(255, 255, 255, .82);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(900px 460px at 88% 10%, rgba(245, 158, 11, .16), transparent 65%),
    radial-gradient(700px 420px at 6% 92%, rgba(14, 94, 58, .55), transparent 70%);
}
.hero-media {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  opacity: .3;
}
.hero-inner { position: relative; z-index: 2; padding: clamp(4rem, 9vw, 7.5rem) 0; max-width: 760px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .9rem; margin-bottom: 1.4rem;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px; font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: #fff;
}
.hero-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c-accent); }
.hero-title { color: #fff; margin-bottom: 1.1rem; text-shadow: 0 2px 24px rgba(0,0,0,.22); }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.18rem); color: rgba(255, 255, 255, .8); margin-bottom: 2rem; max-width: 620px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; margin: 2.25rem 0 0; padding: 0; list-style: none; }
.hero-points li { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: .9rem; color: rgba(255,255,255,.9); }
.hero-points li::before { content: "✓"; color: var(--c-accent); font-weight: 800; }

/* 首屏数字条 */
.hero-stats {
  border-top: 1px solid rgba(255, 255, 255, .16);
  background: rgba(0, 0, 0, .18);
  position: relative; z-index: 2;
}
.hero-stats .grid { gap: 0; }
.stat {
  padding: 1.5rem 1rem; text-align: center;
  border-right: 1px solid rgba(255, 255, 255, .14);
}
.stat:last-child { border-right: 0; }
.stat-num { font-size: clamp(1.6rem, 3vw, 2.35rem); font-weight: 800; color: #fff; line-height: 1.1; letter-spacing: -.02em; }
.stat-label { font-size: .82rem; color: rgba(255, 255, 255, .66); margin-top: .25rem; }

/* 内页页头 */
.page-hero {
  background: linear-gradient(135deg, var(--c-bg-dark) 0%, var(--c-primary-dark) 100%);
  color: rgba(255, 255, 255, .8);
  padding: clamp(2.5rem, 5vw, 4.25rem) 0 clamp(2rem, 4vw, 3.25rem);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 340px at 92% 0%, rgba(245,158,11,.13), transparent 70%);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 860px; }
.page-hero h1 { color: #fff; margin-bottom: .65rem; }
.page-hero p { color: rgba(255, 255, 255, .76); margin: 0; max-width: 680px; }
.page-hero .section-eyebrow { color: var(--c-accent); }

/* 面包屑 */
.breadcrumbs { margin-bottom: 1.1rem; font-size: .82rem; color: rgba(255, 255, 255, .62); }
.breadcrumbs a { color: rgba(255, 255, 255, .78); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs .sep { margin: 0 .5rem; opacity: .5; }
.breadcrumbs--light { color: var(--c-muted); }
.breadcrumbs--light a { color: var(--c-body); }

/* ==========================================================================
   8. 卡片：产品 / 类目 / 方案 / 文章
   ========================================================================== */
.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--c-primary-line); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--c-bg-soft); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.35rem 1.4rem 1.5rem; }
.card-title { margin: 0 0 .5rem; font-size: 1.08rem; }
.card-title a { color: var(--c-ink); }
.card-title a:hover { color: var(--c-primary); }
.card-text { margin: 0 0 1rem; font-size: .9rem; color: var(--c-muted); flex: 1; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.card-tag {
  position: absolute; top: .8rem; left: .8rem; z-index: 2;
  padding: .28rem .65rem; border-radius: 999px;
  background: rgba(11, 31, 23, .78); color: #fff;
  font-size: .72rem; font-weight: 600; letter-spacing: .04em;
}
.card--flat { box-shadow: none; }
.card--flat:hover { transform: none; box-shadow: var(--shadow); }

/* 类目卡（9 大类目入口） */
.cat-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 230px; padding: 1.5rem; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--c-line);
  background: var(--c-bg-soft); color: var(--c-ink);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-card::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(11,31,23,0) 35%, rgba(11,31,23,.86) 100%);
}
.cat-card img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.cat-card:hover img { transform: scale(1.06); }
.cat-card-inner { position: relative; z-index: 2; }
.cat-card h3 { color: #fff; margin: 0 0 .25rem; font-size: 1.12rem; }
.cat-card p { color: rgba(255, 255, 255, .74); font-size: .82rem; margin: 0; }
.cat-card .cat-count {
  display: inline-block; margin-bottom: .55rem; padding: .2rem .6rem;
  border-radius: 999px; background: rgba(245, 158, 11, .9); color: #422006;
  font-size: .7rem; font-weight: 700;
}
.cat-card--plain { justify-content: flex-start; min-height: 0; background: #fff; }
.cat-card--plain::before { display: none; }
.cat-card--plain h3 { color: var(--c-ink); }
.cat-card--plain p { color: var(--c-muted); }

/* 特性块（Who We Are） */
.feature {
  padding: 1.9rem 1.6rem; height: 100%;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 52px; height: 52px; margin-bottom: 1.1rem; border-radius: var(--radius);
  display: grid; place-items: center;
  background: var(--c-primary-soft); color: var(--c-primary);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.08rem; margin-bottom: .55rem; }
.feature p { font-size: .9rem; color: var(--c-muted); margin-bottom: 1rem; }

/* 方案卡 */
.solution-card {
  display: flex; flex-direction: column; overflow: hidden; height: 100%;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  transition: transform .2s ease, box-shadow .2s ease;
}
.solution-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.solution-card .card-media { aspect-ratio: 16 / 10; }
.solution-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.solution-card h3 a { color: var(--c-ink); }
.solution-card p { font-size: .9rem; color: var(--c-muted); }

/* 文章卡 */
.post-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card .card-media { aspect-ratio: 16 / 10; }
.post-date {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 52px; padding: .4rem .5rem; margin-bottom: .9rem;
  background: var(--c-primary-soft); border-radius: var(--radius-sm);
  color: var(--c-primary); line-height: 1.05;
}
.post-date .d { font-size: 1.15rem; font-weight: 800; }
.post-date .m { font-size: .68rem; text-transform: uppercase; font-weight: 700; letter-spacing: .06em; }
.post-card h3 { font-size: 1rem; margin-bottom: .5rem; }
.post-card h3 a { color: var(--c-ink); }
.post-card p { font-size: .88rem; color: var(--c-muted); }
.post-meta { font-size: .78rem; color: var(--c-muted); display: flex; gap: .75rem; flex-wrap: wrap; }

/* ==========================================================================
   9. 列表 / 表格 / FAQ
   ========================================================================== */
.entry-content { font-size: 1.02rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin-top: 2.5rem; padding-bottom: .4rem; border-bottom: 2px solid var(--c-primary-soft); }
.entry-content h3 { margin-top: 1.9rem; }
.entry-content img { border-radius: var(--radius); }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content a { text-decoration: underline; text-underline-offset: 2px; }

.specs-table { font-size: .92rem; }
.specs-table th { width: 34%; background: var(--c-bg-soft); font-weight: 600; }
.specs-table tr:nth-child(even) td { background: #FCFDFC; }

.faq { border-top: 1px solid var(--c-line); }
.faq-item { border-bottom: 1px solid var(--c-line); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 0; background: none; border: 0; cursor: pointer; text-align: left;
  font-size: 1rem; font-weight: 600; color: var(--c-ink); font-family: inherit;
}
.faq-q::after { content: "+"; font-size: 1.4rem; color: var(--c-primary); flex-shrink: 0; transition: transform .2s; }
.faq-q[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 0 1.25rem; color: var(--c-body); font-size: .95rem; }
.faq-a.is-open { display: block; }
.faq-a p:last-child { margin-bottom: 0; }

/* 侧栏 */
.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.sidebar-widget { margin-bottom: 2rem; padding: 1.5rem; background: var(--c-bg-soft); border-radius: var(--radius-lg); }
.sidebar-widget h3 { font-size: 1rem; margin-bottom: 1rem; }
.sidebar-widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar-widget li { margin: 0; border-bottom: 1px solid var(--c-line); }
.sidebar-widget li:last-child { border-bottom: 0; }
.sidebar-widget li a { display: flex; align-items: center; justify-content: space-between; padding: .6rem 0; font-size: .9rem; color: var(--c-body); font-weight: 500; }
.sidebar-widget li a:hover { color: var(--c-primary); }
.sidebar-sticky { position: sticky; top: calc(var(--header-h) + 24px); }

/* ==========================================================================
   10. CTA / 联系条
   ========================================================================== */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--c-primary-dark) 0%, var(--c-primary) 100%);
  color: rgba(255, 255, 255, .84);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 320px at 88% 20%, rgba(245,158,11,.2), transparent 70%); pointer-events: none; }
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: .6rem; }
.cta-band p { color: rgba(255, 255, 255, .8); margin: 0; max-width: 620px; }
.cta-flex { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.75rem; }
.cta-flex > * { flex: 1 1 320px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

.contact-strip { background: var(--c-bg-dark); color: rgba(255,255,255,.76); }
.contact-strip .grid { gap: 0; }
.contact-item { padding: 1.75rem 1.5rem; border-right: 1px solid rgba(255,255,255,.1); }
.contact-item:last-child { border-right: 0; }
.contact-item h3 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent); margin-bottom: .5rem; }
.contact-item p, .contact-item a { color: #fff; margin: 0; font-size: 1rem; font-weight: 600; word-break: break-word; }
.contact-item small { display: block; margin-top: .35rem; color: rgba(255,255,255,.55); font-size: .82rem; font-weight: 400; }

/* ==========================================================================
   11. 表单
   ========================================================================== */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: .4rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: .85rem; font-weight: 600; color: var(--c-ink); }
.form-field .req { color: #DC2626; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; min-height: 48px; padding: .65rem .85rem;
  font-family: inherit; font-size: .95rem; color: var(--c-ink);
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 0; border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-soft);
}
.form-field .hint { font-size: .78rem; color: var(--c-muted); }
.form-note { font-size: .82rem; color: var(--c-muted); }
.form-alert { padding: .9rem 1.1rem; margin-bottom: 1.25rem; border-radius: var(--radius); font-size: .9rem; }
.form-alert--ok { background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46; }
.form-alert--err { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
.hp-field { position: absolute !important; left: -9999px !important; }

/* ==========================================================================
   12. 页脚
   ========================================================================== */
.site-footer { background: var(--c-bg-dark); color: rgba(255, 255, 255, .68); font-size: .9rem; padding-top: clamp(3rem, 5vw, 4.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding-bottom: 3rem; }
.footer-col h4 { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a { color: rgba(255, 255, 255, .68); }
.footer-col a:hover { color: var(--c-accent); }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-tag { color: rgba(255, 255, 255, .5); }
.footer-intro { margin-top: 1.1rem; max-width: 340px; }
.footer-contact { margin-top: 1.1rem; }
.footer-contact li { display: flex; gap: .6rem; }
.footer-contact strong { color: rgba(255,255,255,.5); font-weight: 500; flex-shrink: 0; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .8);
}
.footer-social a:hover { background: var(--c-accent); color: #422006; }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 1.4rem 0; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: .75rem;
  font-size: .82rem; color: rgba(255, 255, 255, .5);
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.footer-bottom li { margin: 0; }

/* 返回顶部 */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 800;
  width: 46px; height: 46px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--c-primary); color: #fff; box-shadow: var(--shadow-lg);
  display: grid; place-items: center; opacity: 0; visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease, background-color .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--c-primary-dark); }

/* 移动端底部联系条 */
.mobile-bar { display: none; }

/* ==========================================================================
   13. 分页 / 归档
   ========================================================================== */
.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 3rem; }
.pagination .page-numbers {
  min-width: 42px; height: 42px; padding: 0 .75rem;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--c-line); border-radius: var(--radius);
  font-size: .9rem; font-weight: 600; color: var(--c-body); background: #fff;
}
.pagination .page-numbers:hover { border-color: var(--c-primary); color: var(--c-primary); }
.pagination .current { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

.empty-state { text-align: center; padding: 4rem 1rem; color: var(--c-muted); }

/* ==========================================================================
   13b. 站点地图（HTML Sitemap）
   ========================================================================== */
.sitemap-block { margin-bottom: 3rem; }
.sitemap-block:last-of-type { margin-bottom: 0; }
.sitemap-title {
  font-size: 1.25rem; margin-bottom: 1rem; padding-bottom: .6rem;
  border-bottom: 2px solid var(--c-primary-soft);
}
.sitemap-cat { background: var(--c-bg-soft); border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 1.25rem 1.4rem; }
.sitemap-cat h3 { font-size: 1rem; margin: 0 0 .7rem; }
.sitemap-cat h3 a { color: var(--c-primary); }
.sitemap-list { list-style: none; margin: 0; padding: 0; }
.sitemap-list li { margin-bottom: .45rem; font-size: .93rem; }
.sitemap-list a { color: var(--c-body); }
.sitemap-list a:hover { color: var(--c-primary); text-decoration: underline; text-underline-offset: 2px; }
.sitemap-list--cols { column-count: 3; column-gap: 2rem; }
@media (max-width: 860px) { .sitemap-list--cols { column-count: 2; } }
@media (max-width: 560px) { .sitemap-list--cols { column-count: 1; } }

/* ==========================================================================
   14. 404
   ========================================================================== */
.err-404 { text-align: center; padding: clamp(3rem, 8vw, 6rem) 0; }
.err-404 .code { font-size: clamp(4.5rem, 14vw, 8rem); font-weight: 800; line-height: 1; color: var(--c-primary-soft); letter-spacing: -.04em; }
.err-404 h1 { margin-top: -1rem; }

/* ==========================================================================
   15. 响应式
   ========================================================================== */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .layout-sidebar { grid-template-columns: 1fr; gap: 32px; }
  .sidebar-sticky { position: static; }
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-primary {
    position: fixed; inset: 0 0 0 auto; z-index: 1000;
    width: min(88vw, 380px); padding: calc(var(--header-h) + 16px) 20px 32px;
    background: #fff; border-left: 1px solid var(--c-line);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .26s ease;
    overflow-y: auto;
  }
  .nav-primary.is-open { transform: translateX(0); }
  .nav-primary ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-primary li { border-bottom: 1px solid var(--c-line-soft); }
  .nav-primary a { padding: .85rem .25rem; font-size: 1rem; }
  .nav-primary .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0 0 .5rem .9rem; min-width: 0;
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav-primary li.is-open > .sub-menu { max-height: 900px; }
  .nav-primary .sub-menu .sub-menu { left: 0; }
  .nav-primary li:hover > .sub-menu { transform: none; }
  .nav-backdrop {
    position: fixed; inset: 0; z-index: 999;
    background: rgba(15, 23, 42, .5); opacity: 0; visibility: hidden;
    transition: opacity .22s ease, visibility .22s;
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
}

@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .cta-flex > * { flex: 1 1 100%; }
  .cta-actions { justify-content: flex-start; }
  .contact-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .form-grid { grid-template-columns: 1fr; }
  .topbar-list li.hide-sm { display: none; }
  .to-top { right: 14px; bottom: 76px; }
  .mobile-bar {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 850;
    background: #fff; border-top: 1px solid var(--c-line);
    box-shadow: 0 -4px 16px rgba(15,23,42,.08);
  }
  .mobile-bar a {
    padding: .6rem .25rem; text-align: center; font-size: .72rem; font-weight: 600;
    color: var(--c-body); display: flex; flex-direction: column; align-items: center; gap: .15rem;
  }
  .mobile-bar a svg { width: 20px; height: 20px; color: var(--c-primary); }
  .mobile-bar a.is-accent { background: var(--c-accent); color: #422006; }
  .mobile-bar a.is-accent svg { color: #422006; }
  body { padding-bottom: 62px; }
}

@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero-inner { padding: 3rem 0 3.5rem; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .stat:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .card-foot .btn { width: auto; }
}

/* ==========================================================================
   16. 后台 / 编辑器对齐与无障碍
   ========================================================================== */
.alignwide { margin-left: calc(-1 * (100vw - 100%) / 2); max-width: 100vw; }
.alignfull { margin-left: calc(-50vw + 50%); max-width: 100vw; }
.wp-block-image figcaption { font-size: .82rem; color: var(--c-muted); text-align: center; }

@media print {
  .site-header, .site-footer, .mobile-bar, .to-top, .cta-band { display: none; }
  body { color: #000; }
}
