/*
Theme Name: web2geo
Theme URI: https://web2geo.com
Author: web2geo
Author URI: https://web2geo.com
Description: 面向出口型企业的跨境 GEO 服务官网主题。优化目标为 ChatGPT / Gemini / Claude / Perplexity / Copilot 等国外主流 AI 引擎。经典 PHP 主题架构，零插件依赖，服务端渲染，结构化数据完整，内置 AI 爬虫放行策略与合规话术校验。
Version: 1.0.5
Requires at least: 5.9
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: web2geo
Tags: business, blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, right-sidebar
*/

/* ==========================================================================
   1. 设计令牌
   ========================================================================== */
:root {
  /* 主色：深墨绿 */
  --w2g-950: #041a17;
  --w2g-900: #07211e;
  --w2g-800: #0b302b;
  --w2g-700: #0e3b36;
  --w2g-600: #14544b;
  --w2g-500: #1c7263;
  --w2g-400: #358c7b;
  --w2g-300: #7bb5a6;
  --w2g-100: #cfe3dd;
  --w2g-50: #ebf3f0;

  /* 点缀色：暖琥珀（仅用于 CTA 与关键强调） */
  --w2g-amber: #e08d3c;
  --w2g-amber-dark: #c4741f;
  --w2g-amber-50: #fdf3e6;

  /* 中性色（偏暖灰，与墨绿协调） */
  --w2g-ink: #10201d;
  --w2g-ink-2: #3a4a47;
  --w2g-ink-3: #6b7a77;
  --w2g-line: #e3e8e6;
  --w2g-line-2: #eff2f1;
  --w2g-bg: #fafaf8;
  --w2g-bg-2: #f2f5f3;
  --w2g-white: #ffffff;

  /* 字体：Inter 负责拉丁字符，中文字体兜底 */
  --w2g-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue",
    Arial, sans-serif;
  --w2g-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --w2g-radius-s: 6px;
  --w2g-radius: 10px;
  --w2g-radius-l: 16px;
  --w2g-shadow-s: 0 1px 2px rgba(16, 32, 29, 0.05);
  --w2g-shadow: 0 4px 18px rgba(16, 32, 29, 0.07);

  --w2g-wrap: 1140px;
  --w2g-gap: 24px;
  --w2g-section-y: 92px;
}

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

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

body {
  margin: 0;
  font-family: var(--w2g-font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--w2g-ink-2);
  background: var(--w2g-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  color: var(--w2g-ink);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.125rem); }
h3 { font-size: 1.1875rem; }
h4 { font-size: 1.0625rem; }

p { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }

a { color: var(--w2g-600); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--w2g-amber-dark); }

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

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

strong, b { font-weight: 600; color: var(--w2g-ink); }

code, pre { font-family: var(--w2g-mono); font-size: .875em; }
code {
  background: var(--w2g-bg-2);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--w2g-700);
}
pre {
  background: var(--w2g-800);
  color: #dbe7e3;
  padding: 20px 22px;
  border-radius: var(--w2g-radius);
  overflow-x: auto;
  line-height: 1.6;
}
pre code { background: none; padding: 0; color: inherit; }

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

blockquote {
  margin: 1.75em 0;
  padding: 2px 0 2px 20px;
  border-left: 3px solid var(--w2g-700);
  color: var(--w2g-ink-3);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75em 0;
  font-size: .9375rem;
  font-variant-numeric: tabular-nums;
}
th, td { padding: 12px 14px; border: 1px solid var(--w2g-line); text-align: left; }
th { background: var(--w2g-bg-2); color: var(--w2g-ink); font-weight: 600; }
tbody tr:nth-child(even) { background: var(--w2g-bg-2); }

/* 数字统一等宽对齐 */
.num, time, .w2g-stat__value, .w2g-metric__value {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* 可访问性 */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; padding: 0; overflow: hidden;
  position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
  background: var(--w2g-900); color: #fff;
  clip: auto; clip-path: none; height: auto; width: auto;
  left: 16px; top: 16px; z-index: 9999; padding: 10px 18px;
  border-radius: var(--w2g-radius-s); font-size: .875rem;
}
:focus-visible { outline: 2px solid var(--w2g-500); outline-offset: 2px; border-radius: 3px; }

/* ==========================================================================
   3. 布局
   ========================================================================== */
.w2g-wrap { width: 100%; max-width: var(--w2g-wrap); margin: 0 auto; padding: 0 24px; }
.w2g-wrap--narrow { max-width: 740px; }
.w2g-wrap--wide { max-width: 1280px; }

.w2g-section { padding: var(--w2g-section-y) 0; }
.w2g-section--tint { background: var(--w2g-bg-2); }
.w2g-section--dark { background: var(--w2g-800); color: #c3d4cf; }
.w2g-section--dark h1,
.w2g-section--dark h2,
.w2g-section--dark h3 { color: #fff; }
.w2g-section--dark a { color: var(--w2g-300); }
.w2g-section--dark a:hover { color: #fff; }

.w2g-grid { display: grid; gap: var(--w2g-gap); }
.w2g-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.w2g-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.w2g-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.w2g-main { min-width: 0; }
.w2g-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }

/* ==========================================================================
   4. 组件
   ========================================================================== */
.w2g-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--w2g-radius-s);
  font-size: .9375rem; font-weight: 600; line-height: 1.2;
  font-family: inherit; border: 1px solid transparent; cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.w2g-btn--primary { background: var(--w2g-amber); color: #2b1607; }
.w2g-btn--primary:hover { background: var(--w2g-amber-dark); color: #fff; }
.w2g-btn--solid { background: var(--w2g-700); color: #fff; }
.w2g-btn--solid:hover { background: var(--w2g-800); color: #fff; }
.w2g-btn--ghost { background: transparent; color: var(--w2g-700); border-color: var(--w2g-300); }
.w2g-btn--ghost:hover { background: var(--w2g-700); color: #fff; border-color: var(--w2g-700); }
.w2g-btn--light { background: #fff; color: var(--w2g-800); border-color: var(--w2g-line); }
.w2g-btn--light:hover { background: var(--w2g-50); color: var(--w2g-800); }
.w2g-btn--block { width: 100%; }
.w2g-btn--sm { padding: 9px 18px; font-size: .875rem; }

.w2g-eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--w2g-500);
}
.w2g-section--dark .w2g-eyebrow { color: var(--w2g-300); }

.w2g-lead { font-size: 1.0625rem; color: var(--w2g-ink-3); }
.w2g-section--dark .w2g-lead { color: #a8bcb7; }

.w2g-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.w2g-head--left { margin-left: 0; text-align: left; }
.w2g-head h2 { margin-bottom: .4em; }

.w2g-badge {
  display: inline-block; padding: 5px 12px;
  border-radius: 100px; background: var(--w2g-50);
  color: var(--w2g-700); font-size: .75rem; font-weight: 600;
}

.w2g-card {
  background: var(--w2g-white);
  border: 1px solid var(--w2g-line);
  border-radius: var(--w2g-radius-l);
  padding: 30px 26px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.w2g-card:hover { border-color: var(--w2g-300); box-shadow: var(--w2g-shadow); }
.w2g-card h3 { margin-bottom: 10px; }
.w2g-card__icon {
  width: 42px; height: 42px; border-radius: 10px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--w2g-50); color: var(--w2g-700);
}
.w2g-card__icon svg { width: 20px; height: 20px; }

.w2g-takeaway {
  margin: 1.75em 0; padding: 18px 22px;
  background: var(--w2g-50);
  border-left: 3px solid var(--w2g-700);
  border-radius: 0 var(--w2g-radius) var(--w2g-radius) 0;
  font-size: .9375rem; color: var(--w2g-800);
}
.w2g-takeaway strong { color: var(--w2g-900); }
.w2g-takeaway__label {
  display: block; margin-bottom: 4px;
  font-size: .75rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--w2g-500);
}

/* 首屏 */
.w2g-hero {
  padding: 104px 0 84px;
  background: linear-gradient(180deg, var(--w2g-900) 0%, var(--w2g-800) 100%);
  color: #c3d4cf;
}
.w2g-hero h1 { color: #fff; max-width: 760px; }
.w2g-hero__sub {
  max-width: 620px; margin: 20px 0 32px;
  font-size: 1.125rem; line-height: 1.7; color: #a8bcb7;
}
.w2g-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* 域名检测表单 */
.w2g-scan { max-width: 560px; margin-bottom: 28px; }
.w2g-scan__form {
  display: flex; gap: 8px; padding: 8px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
}
.w2g-scan input[type="url"],
.w2g-scan input[type="text"] {
  flex: 1 1 auto; min-width: 0;
  padding: 12px 16px; border: 0; border-radius: var(--w2g-radius-s);
  background: rgba(255, 255, 255, .96); color: var(--w2g-ink);
  font-family: inherit; font-size: .9375rem;
}
.w2g-scan input::placeholder { color: var(--w2g-ink-3); }
.w2g-scan__note {
  margin: 10px 0 0; font-size: .8125rem; color: #8ba39d;
}

/* 引擎墙 */
.w2g-engines {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 40px; padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.w2g-engine {
  padding: 8px 16px; border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .05);
  font-size: .875rem; font-weight: 500; color: #d6e3df;
}

/* 痛点 */
.w2g-pain { display: grid; gap: 0; }
.w2g-pain__item {
  display: grid; grid-template-columns: 44px minmax(0, 1fr);
  gap: 20px; padding: 26px 0;
  border-bottom: 1px solid var(--w2g-line);
}
.w2g-pain__item:last-child { border-bottom: 0; }
.w2g-pain__idx {
  font-family: var(--w2g-mono); font-size: .8125rem; font-weight: 600;
  color: var(--w2g-400); padding-top: 4px;
}
.w2g-pain__item h3 { margin-bottom: 6px; }
.w2g-pain__item p { margin: 0; color: var(--w2g-ink-3); font-size: .9375rem; }

/* 方法论四信号 */
.w2g-signal {
  padding: 26px 22px; border-radius: var(--w2g-radius);
  background: var(--w2g-white); border: 1px solid var(--w2g-line);
}
.w2g-signal__n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; margin-bottom: 14px;
  border-radius: 50%; background: var(--w2g-700); color: #fff;
  font-size: .75rem; font-weight: 600;
}
.w2g-signal h4 { margin-bottom: 8px; }
.w2g-signal p { margin: 0; font-size: .875rem; color: var(--w2g-ink-3); }

/* 数据条 */
.w2g-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--w2g-line); border-radius: var(--w2g-radius); overflow: hidden; }
.w2g-metric { background: var(--w2g-white); padding: 28px 22px; }
.w2g-metric__value { font-size: 1.875rem; font-weight: 600; color: var(--w2g-700); line-height: 1.1; }
.w2g-metric__label { margin-top: 6px; font-size: .8125rem; color: var(--w2g-ink-3); }

/* 合规双栏 */
.w2g-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--w2g-gap); }
.w2g-compare__col { padding: 30px 26px; border-radius: var(--w2g-radius-l); }
.w2g-compare__col--do { background: var(--w2g-50); border: 1px solid var(--w2g-300); }
.w2g-compare__col--dont { background: #fdf6f4; border: 1px solid #edd5cf; }
.w2g-compare__col h3 { display: flex; align-items: center; gap: 10px; font-size: 1rem; }
.w2g-compare__col ul { margin: 0; padding-left: 0; list-style: none; }
.w2g-compare__col li { position: relative; padding-left: 26px; margin-bottom: 12px; font-size: .9375rem; }
.w2g-compare__col li::before {
  position: absolute; left: 0; top: 0;
  font-weight: 700; font-size: .875rem;
}
.w2g-compare__col--do li::before { content: "✓"; color: var(--w2g-500); }
.w2g-compare__col--dont li::before { content: "✕"; color: #b4483a; }

/* FAQ */
.w2g-faq__item {
  border-bottom: 1px solid var(--w2g-line);
  padding: 4px 0;
}
.w2g-faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: 100%; padding: 22px 0; margin: 0;
  background: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: 1.0625rem; font-weight: 600;
  color: var(--w2g-ink); text-align: left;
}
.w2g-faq__q::after {
  content: ""; flex: 0 0 auto;
  width: 10px; height: 10px;
  border-right: 2px solid var(--w2g-400);
  border-bottom: 2px solid var(--w2g-400);
  transform: rotate(45deg); transition: transform .2s ease;
  margin-top: -4px;
}
.w2g-faq__item.is-open .w2g-faq__q::after { transform: rotate(-135deg); margin-top: 4px; }
.w2g-faq__a { display: none; padding: 0 0 24px; max-width: 760px; color: var(--w2g-ink-3); }
.w2g-faq__item.is-open .w2g-faq__a { display: block; }
.w2g-faq__a p:last-child { margin-bottom: 0; }

/* CTA 带 */
.w2g-band {
  padding: 56px 48px; border-radius: var(--w2g-radius-l);
  background: var(--w2g-800); color: #c3d4cf;
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px; align-items: center;
}
.w2g-band h2 { color: #fff; margin-bottom: 8px; }
.w2g-band p { margin: 0; color: #a8bcb7; }

/* 表单 */
.w2g-form { display: grid; gap: 18px; }
.w2g-field { display: grid; gap: 6px; }
.w2g-field label { font-size: .875rem; font-weight: 600; color: var(--w2g-ink); }
.w2g-field .req { color: #b4483a; }
.w2g-field input,
.w2g-field select,
.w2g-field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--w2g-line); border-radius: var(--w2g-radius-s);
  background: var(--w2g-white); color: var(--w2g-ink);
  font-family: inherit; font-size: .9375rem;
  transition: border-color .18s ease;
}
.w2g-field input:focus,
.w2g-field select:focus,
.w2g-field textarea:focus { border-color: var(--w2g-500); }
.w2g-field textarea { min-height: 110px; resize: vertical; }
.w2g-form__foot { font-size: .8125rem; color: var(--w2g-ink-3); }

/* 页头 / 页脚 */
.w2g-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 250, 248, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--w2g-line);
}
.w2g-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 68px;
}.w2g-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.0625rem; color: var(--w2g-900); letter-spacing: -.02em; }
.w2g-logo:hover { color: var(--w2g-900); }
.w2g-logo__mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--w2g-700); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .6875rem; font-weight: 700; letter-spacing: .02em;
}
.w2g-nav ul { display: flex; align-items: center; flex-wrap: nowrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.w2g-nav li { margin: 0; }
.w2g-nav a {
  display: block; padding: 8px 13px; border-radius: var(--w2g-radius-s);
  font-size: .9375rem; font-weight: 500; color: var(--w2g-ink-2);
  white-space: nowrap;
}
.w2g-nav a:hover { background: var(--w2g-50); color: var(--w2g-700); }
.w2g-nav .current-menu-item > a,
.w2g-nav .current_page_item > a { color: var(--w2g-700); background: var(--w2g-50); }
.w2g-header__cta { display: flex; align-items: center; gap: 10px; }
.w2g-nav-toggle {
  display: none; width: 40px; height: 40px;
  border: 1px solid var(--w2g-line); border-radius: var(--w2g-radius-s);
  background: var(--w2g-white); cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.w2g-nav-toggle span {
  display: block; width: 16px; height: 1.5px; background: var(--w2g-ink);
  position: relative;
}
.w2g-nav-toggle span::before,
.w2g-nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--w2g-ink);
}
.w2g-nav-toggle span::before { top: -5px; }
.w2g-nav-toggle span::after { top: 5px; }

.w2g-footer { background: var(--w2g-900); color: #8ba39d; padding: 64px 0 32px; font-size: .9375rem; }
.w2g-footer a { color: #c3d4cf; }
.w2g-footer a:hover { color: #fff; }
.w2g-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; margin-bottom: 48px; }
.w2g-footer h4 { color: #fff; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.w2g-footer ul { margin: 0; padding: 0; list-style: none; }
.w2g-footer li { margin-bottom: 10px; }

/* 页脚微信二维码 */
.w2g-footer__qr { margin-top: 22px; }
.w2g-footer__qr img {
  display: block;
  width: 84px; height: 84px;
  box-sizing: content-box;
  padding: 6px;
  background: #fff;
  border-radius: 8px;
}
.w2g-footer__qr span {
  display: block; margin-top: 10px;
  font-size: .8125rem; color: #8ba39d;
}

.w2g-footer__bottom {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .09);
  font-size: .8125rem; color: #6d8781;
}

/* 文章 */
.w2g-entry { margin-bottom: 72px; }
.w2g-entry__head { margin-bottom: 28px; }
.w2g-entry__meta {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  font-size: .8125rem; color: var(--w2g-ink-3);
}
.w2g-entry__title { margin: 12px 0 0; }
.w2g-entry__title a { color: var(--w2g-ink); }
.w2g-entry__title a:hover { color: var(--w2g-600); }
.w2g-entry__thumb { border-radius: var(--w2g-radius); overflow: hidden; margin-bottom: 24px; }
.w2g-entry__excerpt { color: var(--w2g-ink-3); }
.w2g-entry__more { font-weight: 600; font-size: .9375rem; }
.w2g-meta-dot { color: var(--w2g-line); }

.w2g-post__header { margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--w2g-line); }
.w2g-post__body { font-size: 1.0625rem; line-height: 1.85; }
.w2g-post__body h2 { margin-top: 2em; }
.w2g-post__body h3 { margin-top: 1.6em; }
.w2g-post__body > p:first-of-type { font-size: 1.125rem; color: var(--w2g-ink); }

.w2g-breadcrumb {
  font-size: .8125rem; color: var(--w2g-ink-3);
  margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px;
}
.w2g-breadcrumb a { color: var(--w2g-ink-3); }
.w2g-breadcrumb a:hover { color: var(--w2g-600); }

.w2g-pagination { display: flex; gap: 8px; flex-wrap: wrap; margin: 48px 0; }
.w2g-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 12px;
  border: 1px solid var(--w2g-line); border-radius: var(--w2g-radius-s);
  background: var(--w2g-white); font-size: .875rem; color: var(--w2g-ink-2);
}
.w2g-pagination .page-numbers:hover { border-color: var(--w2g-400); color: var(--w2g-700); }
.w2g-pagination .page-numbers.current { background: var(--w2g-700); border-color: var(--w2g-700); color: #fff; }

/* 侧边栏 */
.w2g-widget { margin-bottom: 36px; }
.w2g-widget__title { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--w2g-ink-3); margin-bottom: 16px; }
.w2g-widget ul { margin: 0; padding: 0; list-style: none; }
.w2g-widget li { padding: 10px 0; border-bottom: 1px solid var(--w2g-line-2); font-size: .9375rem; }
.w2g-widget li:last-child { border-bottom: 0; }

/* 404 / 搜索 */
.w2g-empty { text-align: center; padding: 80px 0; }
.w2g-empty h1 { margin-bottom: 12px; }
.w2g-search-form { display: flex; gap: 8px; max-width: 460px; }
.w2g-search-form input[type="search"] {
  flex: 1 1 auto; min-width: 0; padding: 12px 14px;
  border: 1px solid var(--w2g-line); border-radius: var(--w2g-radius-s);
  font-family: inherit; font-size: .9375rem; background: var(--w2g-white);
}

/* 评论 */
.w2g-comments { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--w2g-line); }
.w2g-comments .comment-list { list-style: none; padding: 0; margin: 0 0 40px; }
.w2g-comments .comment-list ol { list-style: none; padding-left: 28px; }
.w2g-comments .comment-body { padding: 20px 0; border-bottom: 1px solid var(--w2g-line-2); }
.w2g-comments .comment-author img { border-radius: 50%; display: inline-block; margin-right: 8px; vertical-align: middle; }
.w2g-comments .comment-meta { font-size: .8125rem; color: var(--w2g-ink-3); }
.w2g-comments input[type="text"],
.w2g-comments input[type="email"],
.w2g-comments input[type="url"],
.w2g-comments textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--w2g-line);
  border-radius: var(--w2g-radius-s); font-family: inherit; font-size: .9375rem;
}
.w2g-comments .submit {
  padding: 13px 26px; border: 0; border-radius: var(--w2g-radius-s);
  background: var(--w2g-700); color: #fff; font-family: inherit;
  font-size: .9375rem; font-weight: 600; cursor: pointer;
}
.w2g-comments .submit:hover { background: var(--w2g-800); }

/* WP 核心类 */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .8125rem; color: var(--w2g-ink-3); text-align: center; margin-top: 8px; }
.sticky .w2g-entry__head::before { content: "置顶"; }

/* ==========================================================================
   5. 响应式
   ========================================================================== */
@media (max-width: 1024px) {
  :root { --w2g-section-y: 72px; }
  .w2g-layout { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .w2g-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w2g-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w2g-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }

  /* 平板宽度就收起导航，避免七个入口挤成两行 */
  .w2g-nav-toggle { display: inline-flex; }
  .w2g-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--w2g-white);
    border-bottom: 1px solid var(--w2g-line);
    padding: 12px 24px 20px;
    display: none;
  }
  .w2g-nav.is-open { display: block; }
  .w2g-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .w2g-nav a { padding: 12px 8px; border-radius: 0; border-bottom: 1px solid var(--w2g-line-2); }
  .w2g-header__inner { position: relative; }
  .w2g-header__cta .w2g-btn { display: none; }
}

@media (max-width: 860px) {
  .w2g-band { grid-template-columns: minmax(0, 1fr); padding: 40px 28px; }
  .w2g-compare { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  :root { --w2g-section-y: 56px; --w2g-gap: 18px; }
  body { font-size: 15px; }
  .w2g-wrap { padding: 0 18px; }
  .w2g-hero { padding: 68px 0 56px; }
  .w2g-grid--2,
  .w2g-grid--3,
  .w2g-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .w2g-metrics { grid-template-columns: minmax(0, 1fr); }
  .w2g-scan__form { flex-direction: column; }
  .w2g-scan__form .w2g-btn { width: 100%; }
  .w2g-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .w2g-pain__item { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
