/*
Theme Name: RGINFO 企业形象版
Theme URI: https://rginfo.com.cn/
Author: 深圳容光信息科技有限公司
Author URI: https://rginfo.com.cn/
Description: 深圳容光信息科技有限公司官方主题 —— 企业形象展示型首页（front-page.php），覆盖软硬件设计、综合解决方案、电路板与结构件设计加工四大业务板块。启用后首页自动走企业形象模板，不再显示博客列表。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rginfo
Requires PHP: 7.4
Requires at least: 5.9
Tested up to: 6.8
Tags: business, responsive-layout, custom-menu, custom-logo, translation-ready, blog
*/

/* =========================================================
   深圳容光信息科技有限公司 — 企业官网主样式
   rginfo-website / assets/css/style.css
   纯 CSS 实现，无第三方依赖；桌面优先 + 移动断点 1024 / 768 / 480
   ========================================================= */

/* ---------- 1. 设计变量 ---------- */
:root {
  --ink: #0d1b2a;
  --ink-soft: #33445c;
  --muted: #5f7089;
  --brand-900: #061a35;
  --brand-800: #08264a;
  --brand-700: #0b3a75;
  --brand-600: #10529f;
  --brand-500: #1668d6;
  --brand-100: #e8f1ff;
  --accent: #ff7a18;
  --accent-dark: #e4620a;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --bg-deep: #0a1d3a;
  --line: #e3e9f2;
  --white: #ffffff;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 10px rgba(11, 58, 117, .06);
  --shadow: 0 10px 30px rgba(11, 58, 117, .10);
  --shadow-lg: 0 24px 60px rgba(6, 26, 53, .18);
  --maxw: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --transition: .28s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- 2. 基础重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  background: var(--bg);
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  color: var(--brand-900);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }

:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. 布局工具 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--soft { background: var(--bg-soft); }
.section--deep { background: var(--bg-deep); color: rgba(255, 255, 255, .78); }
.section--deep h2,
.section--deep h3 { color: #fff; }

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(32px, 5vw, 56px);
  text-align: center;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-500);
  margin-bottom: 12px;
}

.section--deep .eyebrow { color: var(--accent); }

.grid { display: grid; gap: 26px; }
.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)); }

/* ---------- 4. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--brand-500);
  color: #fff;
  box-shadow: 0 8px 22px rgba(22, 104, 214, .28);
}
.btn--primary:hover {
  background: var(--brand-600);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(22, 104, 214, .36);
}

.btn--accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px rgba(255, 122, 24, .3);
}
.btn--accent:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
}
.btn--ghost:hover { background: rgba(255, 255, 255, .16); }

.btn--outline {
  background: transparent;
  border-color: var(--brand-500);
  color: var(--brand-600);
}
.btn--outline:hover { background: var(--brand-100); }

.btn--sm { padding: 9px 20px; font-size: .9rem; }

/* ---------- 5. 顶部工具条 ---------- */
.topbar {
  background: var(--brand-900);
  color: rgba(255, 255, 255, .72);
  font-size: .85rem;
  padding: 8px 0;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-item { display: inline-flex; align-items: center; gap: 7px; }
.topbar-item svg { width: 14px; height: 14px; flex: none; }
.topbar a:hover { color: #fff; }
.topbar-right { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- 6. 导航 ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700) 60%, var(--accent));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: -.04em;
  flex: none;
}

.logo-text strong {
  display: block;
  color: var(--brand-900);
  font-size: 1.02rem;
  line-height: 1.3;
  font-weight: 800;
}

.logo-text span {
  display: block;
  font-size: .74rem;
  color: var(--muted);
  letter-spacing: .04em;
}

/* 公司 LOGO 图片（横向版，2 倍图按需缩放） */
.logo-img {
  height: 44px;
  width: auto;
  display: block;
  flex: none;
}

.footer .logo-img { height: 40px; }

.menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: .97rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: var(--transition);
}

.menu a:hover,
.menu a.is-active { color: var(--brand-500); background: var(--brand-100); }

.nav-cta { display: flex; align-items: center; gap: 12px; flex: none; }

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--brand-900);
  border-radius: 2px;
  position: relative;
  transition: var(--transition);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--brand-900);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-open span::after { top: 0; transform: rotate(-45deg); }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 520px at 12% -10%, rgba(22, 104, 214, .22), transparent 60%),
    radial-gradient(900px 460px at 92% 8%, rgba(255, 122, 24, .18), transparent 62%),
    linear-gradient(180deg, var(--brand-900) 0%, var(--brand-800) 55%, var(--brand-700) 100%);
  color: rgba(255, 255, 255, .82);
  overflow: hidden;
  padding: clamp(60px, 9vw, 108px) 0 clamp(48px, 7vw, 84px);
}

/* 背景网格纹理（纯 CSS，无图片请求） */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 30%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 10%, transparent 78%);
  pointer-events: none;
}

.hero .container { position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}

.hero h1 {
  color: #fff;
  font-size: clamp(1.95rem, 4.6vw, 3.25rem);
  margin-bottom: 18px;
}

.hero h1 .hl {
  color: transparent;
  background: linear-gradient(100deg, #ffd7ad, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  color: rgba(255, 255, 255, .84);
  font-weight: 600;
  margin-bottom: 14px;
}

.hero-desc { color: rgba(255, 255, 255, .72); max-width: 56ch; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 34px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .88);
}

.badge svg { width: 14px; height: 14px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.stat strong {
  display: block;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: #fff;
  font-weight: 800;
  line-height: 1.2;
}

.stat span {
  font-size: .84rem;
  color: rgba(255, 255, 255, .66);
}

/* Hero 右侧：能力面板 */
.hero-panel {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  font-size: .88rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .8);
}

.panel-dot { display: inline-flex; gap: 6px; }
.panel-dot i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.3); display: block; }
.panel-dot i:first-child { background: var(--accent); }

.stack-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  transition: var(--transition);
}

.stack-item:hover { background: rgba(255, 255, 255, .09); }

.stack-icon {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, .1);
  display: grid;
  place-items: center;
  color: #ffd7ad;
}

.stack-icon svg { width: 20px; height: 20px; }

.stack-item strong { display: block; color: #fff; font-size: .95rem; }
.stack-item span { font-size: .83rem; color: rgba(255, 255, 255, .66); }

/* ---------- 8. 服务卡片 ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(22, 104, 214, .3);
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--brand-100);
  color: var(--brand-600);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.card-icon svg { width: 26px; height: 26px; }

.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }

.card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

.tag {
  font-size: .78rem;
  padding: 5px 11px;
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

/* ---------- 9. 能力 / 技术矩阵 ---------- */
.ability {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  height: 100%;
}

.ability h3 {
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.ability h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  flex: none;
}

.ability ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: .94rem;
  color: var(--muted);
}

.ability ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 10px;
  height: 2px;
  background: var(--brand-500);
  border-radius: 2px;
}

/* ---------- 10. 交付流程 ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-top: 8px;
}

.flow-step { position: relative; padding: 0 16px; text-align: center; }

.flow-step::after {
  content: "";
  position: absolute;
  top: 34px;
  right: -6px;
  width: 12px;
  height: 12px;
  border-top: 2px solid rgba(255, 255, 255, .4);
  border-right: 2px solid rgba(255, 255, 255, .4);
  transform: rotate(45deg);
}

.flow-step:last-child::after { display: none; }

.flow-num {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(140deg, var(--brand-500), var(--brand-700));
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
}

.flow-step strong { display: block; color: #fff; margin-bottom: 6px; }
.flow-step p { font-size: .87rem; color: rgba(255, 255, 255, .68); margin: 0; }

/* ---------- 11. 关于我们 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 56px);
  align-items: center;
}

.about-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(140deg, var(--brand-700), var(--brand-900));
  min-height: 340px;
  padding: 30px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow);
}

.about-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 40px 40px;
}

.about-visual > * { position: relative; }
.about-visual h3 { color: #fff; font-size: 1.3rem; }
.about-visual p { color: rgba(255, 255, 255, .78); margin: 0; font-size: .95rem; }

.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: .97rem;
}

.checklist li:last-child { border-bottom: 0; }

.check-ico {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand-600);
  display: grid;
  place-items: center;
  margin-top: 5px;
}

.check-ico svg { width: 13px; height: 13px; }

/* ---------- 12. 联系我们 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 52px);
}

.contact-info li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-info li:last-child { border-bottom: 0; }

.contact-ico {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--brand-100);
  color: var(--brand-600);
  display: grid;
  place-items: center;
}

.contact-ico svg { width: 20px; height: 20px; }
.contact-info small { display: block; color: var(--muted); font-size: .82rem; }
.contact-info strong { display: block; color: var(--brand-900); font-size: .98rem; }

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow-sm);
}

.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  color: var(--brand-900);
  margin-bottom: 7px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: #fff;
  transition: var(--transition);
}

.field textarea { min-height: 118px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(22, 104, 214, .12);
}

.field input.is-error,
.field textarea.is-error { border-color: #e0342c; }

.form-note { font-size: .8rem; color: var(--muted); margin: 12px 0 0; }
.form-msg { margin-top: 12px; font-size: .9rem; font-weight: 600; display: none; }
.form-msg.is-ok { display: block; color: #1a8a4c; }
.form-msg.is-err { display: block; color: #e0342c; }

/* ---------- 13. CTA 条 ---------- */
.cta-bar {
  background: linear-gradient(120deg, var(--brand-700), var(--brand-500) 60%, var(--accent));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 46px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}

.cta-bar h2 { color: #fff; margin-bottom: 6px; }
.cta-bar p { margin: 0; color: rgba(255, 255, 255, .85); }

/* ---------- 14. 页脚 ---------- */
.footer {
  background: var(--brand-900);
  color: rgba(255, 255, 255, .68);
  padding: clamp(46px, 6vw, 72px) 0 0;
  font-size: .93rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 34px;
  padding-bottom: 40px;
}

.footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer .logo-text strong { color: #fff; }
.footer .logo-text span { color: rgba(255, 255, 255, .55); }

.footer li { margin-bottom: 10px; }
.footer a { transition: var(--transition); }
.footer a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: .85rem;
}

.icp { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.icp a:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom .addr { flex-basis: 100%; color: rgba(255, 255, 255, .82); font-size: .85rem; margin-top: 2px; }
.footer-bottom .gongan { flex-basis: 100%; color: rgba(255, 255, 255, .82); font-size: .85rem; margin-top: 2px; }
.footer-bottom .gongan a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- 15. 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--brand-500);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition);
  z-index: 90;
}

.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand-600); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- 16. 滚动进场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, .8, .3, 1);
}

.reveal.is-in { opacity: 1; transform: none; }

/* 无障碍：尊重系统降低动画偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- 17. 响应式断点 ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { order: 2; }
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 0; }
  .flow-step:nth-child(3)::after { display: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }

  /* 移动端菜单 */
  .nav-toggle { display: inline-flex; }

  .menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .menu.is-open {
    max-height: 70vh;
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
  }

  .menu a { padding: 13px 6px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-cta { display: none; }
  .logo-img { height: 38px; }
  .logo-text { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .topbar { font-size: .78rem; }
  .topbar-left { display: none; }
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-step:nth-child(3)::after { display: block; }
  .flow-step:nth-child(2)::after,
  .flow-step:nth-child(4)::after { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { flex: 1 1 100%; }
  .cta-bar { flex-direction: column; align-items: flex-start; }
}

/* ---------- 18. 打印样式 ---------- */
@media print {
  .header, .topbar, .to-top, .hero-actions, .form { display: none !important; }
  body { color: #000; }
  .hero { background: #fff !important; color: #000 !important; }
  .hero h1, .hero-sub { color: #000 !important; }
}

/* =========================================================
   WordPress 必需 / 兼容样式（仅在使用本主题时生效）
   ========================================================= */

/* 屏幕阅读器专用文本（WP 无障碍规范） */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: #fff;
  clip: auto !important;
  clip-path: none;
  color: var(--brand-900);
  display: block;
  font-size: .95rem;
  height: auto;
  left: 8px;
  line-height: normal;
  padding: 12px 18px;
  text-decoration: none;
  top: 8px;
  width: auto;
  z-index: 100000;
}

/* 图片对齐（古腾堡区块） */
.alignleft  { float: left;  margin: .4rem 1.4rem 1rem 0; }
.alignright { float: right; margin: .4rem 0 1rem 1.4rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.size-auto, .size-full, .size-large, .size-medium, .size-thumbnail {
  max-width: 100%; height: auto;
}
img.aligncenter { display: block; margin: 0 auto; }

/* 图片说明文字 */
.wp-caption { max-width: 100%; }
.wp-caption-text,
figcaption {
  font-size: .85rem;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
}

/* 内容区排版 */
.entry-content { overflow-wrap: break-word; }
.entry-content > * + * { margin-top: 1rem; }
.entry-content ul,
.entry-content ol { padding-left: 1.3em; margin: 0 0 1rem; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: .4rem; }
.entry-content blockquote {
  margin: 1.4rem 0;
  padding: 14px 20px;
  border-left: 4px solid var(--brand-500);
  background: var(--bg-soft);
  color: var(--ink-soft);
  border-radius: 0 10px 10px 0;
}
.entry-content pre {
  background: var(--brand-900);
  color: #dbe7f7;
  padding: 16px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: .88rem;
}
.entry-content code { font-family: ui-monospace, Consolas, Menlo, monospace; }
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: .93rem;
  display: block;
  overflow-x: auto;
}
.entry-content th,
.entry-content td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}
.entry-content th { background: var(--bg-soft); color: var(--brand-900); }

/* 文章 / 页面标题区 */
.entry-title { margin-bottom: .4em; }
.entry-meta {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 20px;
}

/* 分页 */
.pagination,
.post-nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 30px;
}
.pagination .page-numbers,
.post-nav-links a,
.post-nav-links > span {
  display: inline-block;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: .9rem;
  transition: var(--transition);
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--brand-500);
  border-color: var(--brand-500);
  color: #fff;
}

/* 侧边栏小工具 */
.widget { margin-bottom: 26px; }
.widget-title { font-size: 1rem; margin-bottom: 12px; }
.widget ul li { margin-bottom: 8px; font-size: .93rem; }

/* 归档 / 文章列表（博客页兜底用） */
.post-list { display: grid; gap: 20px; }
.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card h2 { font-size: 1.22rem; margin-bottom: 8px; }

/* 404 */
.error-404 { text-align: center; padding: 60px 0; }
.error-404 h1 { font-size: clamp(3rem, 10vw, 6rem); color: var(--brand-500); }
