/*
Theme Name: QiField
Theme URI: https://www.che0.com/
Author: PromoStation
Author URI: https://www.che0.com/
Description: QiField （气场） v1.5.0 — che0.com 主站主题。以"气"(Qi)为统一概念的中英双语国际站：星象风水玄学 / 功夫气功 / 中医养生 / AI导航 4 频道门户。v1.5 融合 aliyun.com/benefit（深蓝渐变大气 hero）× 4dj.net/news-front（浅色扁平信息流、胶囊导航）× hu6.cc（行式大卡、中央搜索、频道 chips、页脚渐变彩线）的独特设计：平铺大气，大卡片，全响应式。PHP 8.3 原生兼容，原生 JS 无 jQuery，AdSense 广告位 + SEO 基础开箱即用。
Version: 1.5.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: MIT
Text Domain: qifield
*/

/* ============ 设计语言 v1.5：三站融合独特风 ============
   融合 aliyun benefit（深蓝渐变 hero / 大气）× 4dj news-front（浅色扁平 / 胶囊导航 / 扁平卡片）
   × hu6.cc（行式大卡 / 中央搜索 / 频道 chips / 页脚渐变彩线）
   主蓝 #2f6bf2 · 底 #f3f6fb · 文字 #1a202c/#5f6b7a/#8a94a6 · 卡片白 #fff
   圆角 12px · 边框 #e8eef5 · 容器 1280px · 断点 1120/900/640 */
:root {
  --blue: #2f6bf2;
  --blue-dark: #1f56d8;
  --brand-grad: linear-gradient(45deg, #7b8cff 0%, #2f6bf2 50%, #1b9bf0 100%);
  --hero-grad: linear-gradient(100deg, #1b2f9e 0%, #2b6ff2 55%, #3f9bf5 100%);
  --cta-grad: linear-gradient(120deg, #1663d9 0%, #2f9bf0 100%);
  --foot-grad: linear-gradient(90deg, #2f6bf2 0%, #856efa 50%, #ff6a00 100%);
  --accent: #ff6a00;
  --accent-dark: #e05a00;
  --ink: #1a202c;
  --text: #5f6b7a;
  --muted: #8a94a6;
  --line: #e8eef5;
  --bg: #f3f6fb;
  --card: #ffffff;
  --seal: #c8402a;
  --radius: 12px;
  --shadow-sm: 0 1px 4px rgba(16, 24, 40, .03);
  --shadow-hover: 0 8px 28px rgba(47, 107, 242, .10);
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --header-h: 64px;
  --container: 1280px;
}

/* ---- 基础 ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
ul, ol { list-style: none; }
button, input { font-family: inherit; }
::selection { background: rgba(47, 107, 242, .16); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---- 按钮 ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 34px;
  font-size: 16px; font-weight: 600; line-height: 1;
  border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  transition: all .25s ease; white-space: nowrap;
}
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--blue); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: 0 6px 18px rgba(47, 107, 242, .28); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 26px rgba(47, 107, 242, .36); }

/* ============ 顶导航 ============ */
.site-header {
  position: sticky; top: 0; z-index: 200;
  height: var(--header-h);
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(16, 24, 40, .06); }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-seal {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--seal); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; line-height: 1;
  box-shadow: 0 4px 12px rgba(200, 64, 42, .30);
}
.brand-text { line-height: 1.25; }
.brand-zh { font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: .06em; }
.brand-en { font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: .18em; text-transform: uppercase; }

/* 胶囊导航（4dj/hu6 式） */
.main-nav { margin-left: 8px; }
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: inline-block; padding: 8px 18px;
  font-size: 14px; font-weight: 500; color: var(--text);
  border-radius: 999px; transition: all .22s ease; white-space: nowrap;
}
.main-nav a:hover { color: var(--blue); background: rgba(47, 107, 242, .08); }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  background: var(--blue); color: #fff; font-weight: 600;
  box-shadow: 0 4px 12px rgba(47, 107, 242, .30);
}

/* 中央搜索框（hu6 式内凹） */
.header-search {
  display: flex; align-items: center; flex: 1; max-width: 340px; margin-left: auto;
  background: #eef2f8; border-radius: 10px; padding: 4px 4px 4px 14px;
  box-shadow: inset 0 2px 6px rgba(16, 24, 40, .06);
  transition: box-shadow .2s ease, background .2s ease;
}
.header-search:focus-within { background: #fff; box-shadow: inset 0 2px 6px rgba(16,24,40,.04), 0 0 0 2px rgba(47,107,242,.25); }
.header-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font-size: 13px; color: var(--ink); height: 32px;
}
.header-search input::placeholder { color: var(--muted); }
.header-search button {
  flex-shrink: 0; width: 40px; height: 32px; border: 0; border-radius: 7px; cursor: pointer;
  background: var(--brand-grad); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.header-search button:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(47,107,242,.35); }
.header-search button svg { width: 15px; height: 15px; }

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

/* 中英切换胶囊 */
.lang-switch { display: flex; background: #eef2f8; border-radius: 999px; padding: 3px; }
.lang-switch a {
  padding: 6px 14px; font-size: 12px; font-weight: 600; color: var(--text);
  border-radius: 999px; transition: all .2s ease; white-space: nowrap;
}
.lang-switch a:hover { color: var(--blue); }
.lang-switch a.is-active { background: #fff; color: var(--blue); box-shadow: 0 1px 4px rgba(16,24,40,.10); }

.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .2s ease;
}
.icon-btn:hover { border-color: var(--blue); color: var(--blue); }
.icon-btn svg { width: 17px; height: 17px; }
.hamburger { display: none; }
.search-toggle { display: none; }

/* 移动端抽屉 */
.drawer-scrim {
  position: fixed; inset: 0; z-index: 290; background: rgba(16, 24, 40, .45);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 300;
  width: min(340px, 86vw); background: #fff;
  padding: 20px 22px; overflow-y: auto;
  transform: translateX(105%); transition: transform .28s ease;
  box-shadow: -12px 0 40px rgba(16, 24, 40, .12);
}
body.drawer-open .drawer { transform: translateX(0); }
body.drawer-open .drawer-scrim { opacity: 1; pointer-events: auto; }
body.drawer-open { overflow: hidden; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.drawer-head .brand-zh { color: var(--ink); }
.drawer nav ul { list-style: none; }
.drawer nav a { display: block; padding: 13px 6px; color: var(--text); border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 500; }
.drawer nav a:hover { color: var(--blue); }
.drawer .lang-switch { margin-top: 18px; justify-content: center; }

/* 搜索浮层（移动端用） */
.search-overlay {
  position: fixed; inset: 0; z-index: 310; background: rgba(16, 24, 40, .55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center; padding: 12vh 20px 20px;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
body.search-open .search-overlay { opacity: 1; pointer-events: auto; }
body.search-open { overflow: hidden; }
.search-box { width: min(560px, 100%); background: #fff; border-radius: 14px; padding: 26px; box-shadow: 0 24px 60px rgba(16,24,40,.25); }
.search-box form { display: flex; gap: 10px; }
.search-box input[type="search"] {
  flex: 1; min-width: 0; height: 48px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 10px; font-size: 15px; outline: none;
}
.search-box input[type="search"]:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,107,242,.15); }
.search-box button[type="submit"] {
  height: 48px; padding: 0 26px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--brand-grad); color: #fff; font-size: 15px; font-weight: 600;
}
.search-hint { margin-top: 12px; font-size: 12px; color: var(--muted); text-align: center; }
.search-close {
  position: absolute; top: 22px; right: 26px; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: transparent;
  color: #fff; font-size: 16px; cursor: pointer;
}

/* ============ Hero（benefit 式深蓝渐变大气） ============ */
.hero {
  position: relative; overflow: hidden;
  background: var(--hero-grad);
  color: #fff; padding: 96px 0 90px;
}
.hero::before {
  /* 白色光斑 + 点阵纹理 */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(520px 300px at 12% 18%, rgba(255,255,255,.20), transparent 60%),
    radial-gradient(420px 260px at 88% 78%, rgba(255,255,255,.12), transparent 60%),
    radial-gradient(rgba(255,255,255,.28) 1px, transparent 1.6px);
  background-size: auto, auto, 26px 26px;
}
#qiCanvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .8; }
.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 820px; }
.hero-eyebrow {
  display: inline-block; padding: 7px 18px; margin-bottom: 22px;
  background: rgba(0, 0, 0, .42); color: #fff;
  font-size: 13px; font-weight: 600; letter-spacing: .22em;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22);
}
.hero h1 { font-size: 56px; font-weight: 700; line-height: 1.25; letter-spacing: .12em; color: #fff; }
.hero-en {
  margin-top: 6px; font-size: 20px; font-weight: 600;
  letter-spacing: .42em; text-indent: .42em; color: rgba(255, 255, 255, .85);
}
.hero-tagline { margin-top: 10px; font-size: 13px; letter-spacing: .3em; color: rgba(255, 255, 255, .6); }
.hero-sub { margin: 20px auto 0; max-width: 620px; font-size: 15px; color: rgba(255, 255, 255, .72); }
.hero-search {
  display: flex; margin: 30px auto 0; max-width: 560px;
  background: #fff; border-radius: 12px; padding: 6px;
  box-shadow: 0 16px 44px rgba(10, 30, 90, .30);
}
.hero-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  padding: 0 18px; font-size: 15px; color: var(--ink); height: 48px;
}
.hero-search input::placeholder { color: var(--muted); }
.hero-search button {
  border: 0; border-radius: 8px; cursor: pointer; padding: 0 34px; height: 48px;
  background: var(--brand-grad); color: #fff; font-size: 15px; font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease;
}
.hero-search button:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(47,107,242,.45); }
.hero-btns { display: flex; gap: 14px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }

/* ============ 频道 chips 条（hu6 式） ============ */
.channel-chips { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.channel-chips-inner {
  display: flex; gap: 10px; overflow-x: auto; padding: 14px 24px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.channel-chips-inner::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; padding: 8px 20px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--text);
  background: #f1f4fa; border: 1px solid transparent;
  transition: all .2s ease; white-space: nowrap;
}
.chip:hover { color: var(--blue); border-color: rgba(47, 107, 242, .35); background: #fff; }
.chip.is-active { background: var(--blue); color: #fff; font-weight: 600; box-shadow: 0 4px 12px rgba(47,107,242,.30); }

/* ============ 分区标题（benefit 式） ============ */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.kicker {
  display: inline-block; margin-bottom: 14px; padding: 6px 16px;
  font-size: 12px; font-weight: 600; letter-spacing: .24em; text-indent: .24em;
  color: var(--blue); background: rgba(47, 107, 242, .09);
  border-radius: 999px;
}
.sec-title { font-size: 44px; font-weight: 700; line-height: 1.4; color: var(--ink); letter-spacing: .04em; }
.sec-title .grad {
  background: linear-gradient(80deg, #2f6bf2 0%, #856efa 72%, #7048ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head > p { margin-top: 14px; font-size: 15px; color: var(--text); }

/* ============ 四大板块大卡片（平铺大气） ============ */
.sections { padding: 96px 0; }
.section-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.section-card {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  overflow: hidden; transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.section-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: var(--shadow-hover);
}
.sec-cover {
  position: relative; height: 200px;
  background: var(--brand-grad);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.sec-cover::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(300px 160px at 80% 10%, rgba(255,255,255,.25), transparent 60%);
  pointer-events: none;
}
.sec-cover-zh {
  position: relative; z-index: 2;
  font-size: 72px; font-weight: 700; color: #fff; line-height: 1;
  text-shadow: 0 6px 24px rgba(10, 30, 90, .30); letter-spacing: .1em; text-indent: .1em;
}
.sec-cover-en {
  position: absolute; right: 18px; bottom: 12px; z-index: 2;
  font-size: 13px; font-weight: 700; letter-spacing: .42em;
  color: rgba(255, 255, 255, .35); white-space: nowrap;
}
.sec-body { padding: 28px; }
.sec-body h3 { font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.sec-en { margin-top: 4px; font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.sec-desc { margin-top: 12px; font-size: 14px; color: var(--text); }
.sec-qi { margin-top: 8px; font-size: 14px; font-style: italic; color: var(--blue); }
.sec-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 18px;
  font-size: 14px; font-weight: 600; color: var(--blue);
}
.sec-link .arrow { transition: transform .22s ease; }
.sec-link:hover { color: var(--accent); }
.sec-link:hover .arrow { transform: translateX(4px); }

/* ============ 最新内容区（hu6 行式大卡 × 4dj 扁平） ============ */
.latest { padding: 96px 0; background: #fff; border-top: 1px solid var(--line); }
.latest-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.latest-main { min-width: 0; }
.latest-block { margin-bottom: 36px; }
.latest-block:last-child { margin-bottom: 0; }
.latest-block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.latest-block-head h3 { font-size: 18px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.latest-block-head h3::before { content: ""; width: 5px; height: 20px; border-radius: 3px; background: var(--brand-grad); }
.latest-block-head a { font-size: 13px; font-weight: 500; color: var(--muted); }
.latest-block-head a:hover { color: var(--blue); }

/* 行式大卡（左文右图） */
.row-card {
  display: flex; gap: 20px; align-items: stretch;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 20px; margin-bottom: 16px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.row-card:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: var(--shadow-hover); }
.row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-chip {
  align-self: flex-start; margin-bottom: 10px; padding: 3px 12px;
  font-size: 11px; font-weight: 600; letter-spacing: .08em;
  color: var(--blue); background: rgba(47, 107, 242, .09); border-radius: 999px;
}
.row-body h4 { font-size: 17px; font-weight: 700; line-height: 1.5; }
.row-body h4 a {
  color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.row-body h4 a:hover { color: var(--blue); }
.row-excerpt {
  margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.row-meta { margin-top: auto; padding-top: 10px; font-size: 12px; color: var(--muted); }
.row-thumb {
  flex-shrink: 0; width: 160px; height: 110px; border-radius: 10px; overflow: hidden;
  background: #eef2f8; align-self: center;
}
.row-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.row-card:hover .row-thumb img { transform: scale(1.06); }
.row-thumb-ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: var(--brand-grad); color: #fff; font-size: 34px; font-weight: 700;
}
.latest-empty { color: var(--muted); font-size: 13px; padding: 14px 0; }

/* 右栏：AI导航 mini 卡 + 订阅小卡 */
.latest-side { display: flex; flex-direction: column; gap: 24px; position: sticky; top: calc(var(--header-h) + 20px); }
.side-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 22px;
}
.side-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.side-card-head h3 { font-size: 16px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.side-card-head h3::before { content: ""; width: 5px; height: 18px; border-radius: 3px; background: var(--brand-grad); }
.side-card-head a { font-size: 12px; color: var(--muted); }
.side-card-head a:hover { color: var(--blue); }
.mini-site { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.mini-site:last-child { border-bottom: 0; }
.mini-site .site-icon {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px;
  background: rgba(47, 107, 242, .09);
  display: inline-flex; align-items: center; justify-content: center;
}
.mini-site .letter { font-size: 15px; font-weight: 700; color: var(--blue); }
.mini-site .site-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; }
.mini-site a { color: var(--ink); font-size: 14px; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.mini-site a:hover { color: var(--blue); }

.side-sub { background: var(--hero-grad); border: 0; color: #fff; }
.side-sub h3 { color: #fff; }
.side-sub h3::before { background: rgba(255, 255, 255, .7); }
.side-sub p { font-size: 13px; color: rgba(255, 255, 255, .78); margin: 8px 0 16px; }
.side-sub .btn { width: 100%; min-height: 46px; font-size: 14px; }

/* ============ CTA 通栏（benefit 式） ============ */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--cta-grad); color: #fff; padding: 88px 0;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(480px 280px at 10% 20%, rgba(255,255,255,.18), transparent 60%),
    radial-gradient(rgba(255,255,255,.25) 1px, transparent 1.6px);
  background-size: auto, 24px 24px;
}
.cta-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.cta-left h2 { font-size: 40px; font-weight: 700; line-height: 1.4; color: #fff; }
.cta-left h2 .grad {
  background: linear-gradient(80deg, #ffd9a8 0%, #ffb37a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cta-left > p { margin: 16px 0 26px; font-size: 15px; color: rgba(255, 255, 255, .82); max-width: 460px; }
.cta-card {
  background: linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,.12));
  backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 16px; padding: 30px;
  box-shadow: 0 24px 60px rgba(10, 40, 120, .25);
}
.cta-card form { display: flex; gap: 10px; }
.cta-card input[type="email"] {
  flex: 1; min-width: 0; height: 52px; padding: 0 16px;
  border: 0; border-radius: 10px; font-size: 14px; outline: none; background: #fff; color: var(--ink);
}
.cta-card input[type="email"]:focus { box-shadow: 0 0 0 3px rgba(255, 255, 255, .45); }
.cta-card .btn { min-height: 52px; }
.cta-note { margin-top: 14px; font-size: 12px; color: rgba(255, 255, 255, .72); text-align: center; }

/* ============ 页脚（hu6 式渐变彩线） ============ */
.site-footer { background: #fff; border-top: 1px solid var(--line); position: relative; }
.site-footer::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 3px;
  background: var(--foot-grad);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding: 56px 0 40px;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { font-size: 13px; color: var(--text); margin-bottom: 10px; max-width: 300px; }
.footer-col h4 { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13px; color: var(--text); transition: color .2s ease; }
.footer-col a:hover { color: var(--blue); }
.footer-disclaimer {
  padding: 18px 0; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted); line-height: 1.8;
}
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 18px 0 26px; font-size: 12px; color: var(--muted);
}

/* ============ AdSense 广告位 ============ */
.qifield-ad { margin: 0 auto; max-width: var(--container); padding: 0 24px; }
.qifield-ad-header { margin-top: 18px; }
.qifield-ad-infeed { margin: 8px auto; }
.qifield-ad-footer { margin-bottom: 18px; }

/* ============ 动效 / 返回顶部 ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.to-top {
  position: fixed; right: 26px; bottom: 30px; z-index: 250;
  width: 46px; height: 46px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--text);
  font-size: 18px; box-shadow: 0 8px 24px rgba(16, 24, 40, .10);
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: all .25s ease;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ============ 内页通用 ============ */
.page-hero {
  background: var(--hero-grad); color: #fff; padding: 64px 0;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 240px at 85% 20%, rgba(255,255,255,.16), transparent 60%);
}
.page-hero h1 { position: relative; font-size: 34px; font-weight: 700; color: #fff; }
.page-hero .crumbs { position: relative; margin-top: 10px; font-size: 13px; color: rgba(255,255,255,.72); }
.page-hero .crumbs a { color: #fff; }
.content-wrap { padding: 48px 0 80px; }
.post-card, .archive-list .post-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 36px; margin-bottom: 24px;
}
.post-card h1.post-title { font-size: 30px; font-weight: 700; color: var(--ink); line-height: 1.45; margin-bottom: 14px; }
.post-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.post-content { font-size: 16px; color: var(--text); }
.post-content p { margin-bottom: 1.2em; }
.post-content h2 { font-size: 22px; font-weight: 700; color: var(--ink); margin: 1.6em 0 .8em; }
.post-content h3 { font-size: 18px; font-weight: 700; color: var(--ink); margin: 1.4em 0 .7em; }
.post-content ul { margin: 0 0 1.2em 1.4em; list-style: disc; }
.post-content a { border-bottom: 1px solid rgba(47,107,242,.4); }
.post-content img { border-radius: 10px; margin: 1.2em 0; }
.archive-head { margin-bottom: 28px; }
.archive-head h1 { font-size: 28px; font-weight: 700; color: var(--ink); }
.archive-head p { margin-top: 8px; font-size: 14px; color: var(--text); }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 36px; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font-size: 14px; font-weight: 500; color: var(--text);
}
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.pagination .current { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }
.error-404 { text-align: center; padding: 80px 0; }
.error-404 h1 { font-size: 88px; font-weight: 700; color: var(--blue); line-height: 1; }
.error-404 p { margin: 18px 0 28px; }

/* AI导航目录页 */
.ainav-group { margin-bottom: 36px; }
.ainav-group > h2 { font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.ainav-group > h2::before { content: ""; width: 5px; height: 20px; border-radius: 3px; background: var(--brand-grad); }
.ainav-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ainav-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 20px;
  display: flex; gap: 14px; align-items: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.ainav-card:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: var(--shadow-hover); }
.ainav-card .site-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 11px;
  background: rgba(47, 107, 242, .09);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 700; color: var(--blue); overflow: hidden;
}
.ainav-card .site-icon img { width: 100%; height: 100%; object-fit: cover; }
.ainav-card h3 { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.ainav-card p { font-size: 12px; color: var(--muted); margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* ============ 响应式 ============ */
/* ≤1120px：最新区 2/3+1/3 → 上下堆叠；导航压缩 */
@media (max-width: 1120px) {
  .latest-layout { grid-template-columns: 1fr; }
  .latest-side { position: static; display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .header-search { max-width: 240px; }
  .ainav-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ≤900px：汉堡导航；板块 2×2 → 1 列；CTA 纵向 */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-search { display: none; }
  .hamburger { display: inline-flex; }
  .search-toggle { display: inline-flex; }
  .header-inner { gap: 12px; }
  .brand-en { display: none; }
  .sections, .latest { padding: 64px 0; }
  .section-cards { grid-template-columns: 1fr; }
  .sec-cover { height: 170px; }
  .sec-cover-zh { font-size: 60px; }
  .sec-title { font-size: 32px; }
  .cta-inner { grid-template-columns: 1fr; gap: 32px; }
  .cta-left h2 { font-size: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; padding: 44px 0 32px; }
  .latest-side { grid-template-columns: 1fr; }
  .ainav-grid { grid-template-columns: repeat(2, 1fr); }
  .post-card, .archive-list .post-card { padding: 24px; }
}

/* ≤640px：手机紧凑 */
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero { padding: 64px 0 60px; }
  .hero h1 { font-size: 40px; }
  .hero-en { font-size: 15px; }
  .hero-search { flex-direction: column; gap: 8px; background: transparent; box-shadow: none; padding: 0; }
  .hero-search input { background: #fff; border-radius: 10px; height: 50px; box-shadow: 0 10px 30px rgba(10,30,90,.25); }
  .hero-search button { height: 50px; border-radius: 10px; }
  .hero-btns .btn { min-height: 48px; padding: 0 24px; font-size: 14px; }
  .sec-title { font-size: 28px; }
  .section-head { margin-bottom: 32px; }
  .sec-cover { height: 150px; }
  .sec-cover-zh { font-size: 52px; }
  .sec-body { padding: 22px; }
  .sec-body h3 { font-size: 19px; }
  .row-card { padding: 14px; gap: 14px; }
  .row-thumb { width: 118px; height: 88px; }
  .row-body h4 { font-size: 15px; }
  .row-excerpt { display: none; }
  .cta-band { padding: 60px 0; }
  .cta-left h2 { font-size: 26px; }
  .cta-card { padding: 22px; }
  .cta-card form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .channel-chips-inner { padding: 12px 16px; }
  .to-top { right: 16px; bottom: 20px; }
  .post-card h1.post-title { font-size: 24px; }
  .ainav-grid { grid-template-columns: 1fr; }
}
