/* ============================================================
   HYSPERIX 海斯电力 · 全站样式
   ------------------------------------------------------------
   风格：经典 WordPress 企业站（白底 / 蓝灰 / 简单卡片 / 传统导航）
   ============================================================ */

/* ---------- 0. Reset & 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* 全局 SVG 尺寸：所有内联图标按字号缩放，避免撑爆容器 */
svg { width: 1em; height: 1em; vertical-align: middle; flex-shrink: 0; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
button { font-family: inherit; cursor: pointer; }

/* ---------- 1. Design Tokens ---------- */
:root {
  --bg:           #ffffff;
  --bg-alt:       #f6f7f7;
  --bg-soft:      #fafafa;
  --surface:      #ffffff;
  --text:         #1e1e1e;
  --text-muted:   #646970;
  --heading:      #0a0a0a;
  --link:         #2271b1;
  --link-hover:   #135e96;
  --brand:        #2271b1;
  --brand-dark:   #135e96;
  --warm:         #ff7800;          /* logo 中的橙 */
  --warm-dark:    #e56600;
  --border:       #e5e7eb;
  --border-strong:#c3c4c7;
  --success:      #00a32a;
  --warning:      #dba617;
  --danger:       #d63638;
  --radius:       6px;
  --radius-lg:    10px;
  --shadow-sm:    0 1px 2px rgba(0,0,0,.04);
  --shadow:       0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:    0 4px 12px rgba(0,0,0,.08);
  --container:    1200px;
}

/* ---------- 2. 布局辅助 ---------- */
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.row { display: flex; flex-wrap: wrap; }
.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-sidebar { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
@media (max-width: 900px) {
  .g-2, .g-3, .g-4, .g-sidebar { grid-template-columns: 1fr; }
}

/* ---------- 3. 排版 ---------- */
h1, h2, h3, h4, h5, h6 { color: var(--heading); margin: 0 0 .6em; line-height: 1.3; font-weight: 700; }
.h1 { font-size: clamp(1.85rem, 3.5vw, 2.6rem); line-height: 1.18; letter-spacing: -.01em; margin: 0 0 .4em; }
.h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); line-height: 1.25; margin: 0 0 .5em; }
.h3 { font-size: 1.25rem; line-height: 1.35; }
.h4 { font-size: 1.1rem; line-height: 1.4; }
p  { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.6em; }
li { margin-bottom: .35em; }
blockquote {
  margin: 1.4em 0; padding: 14px 20px;
  border-left: 4px solid var(--brand);
  background: var(--bg-alt); color: var(--text);
  font-style: italic;
}
code { background: var(--bg-alt); padding: 2px 6px; border-radius: 4px; font-size: .92em; color: #c7254e; }
pre { background: #1e1e1e; color: #f8f8f2; padding: 18px; border-radius: var(--radius); overflow-x: auto; font-size: .88rem; }
table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .95rem; }
th, td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
th { background: var(--bg-alt); font-weight: 600; }
.eyebrow {
  display: inline-block; font-size: .76rem; font-weight: 700;
  color: var(--brand); text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: 8px;
}
.small { font-size: .875rem; color: var(--text-muted); }
.muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* ---------- 4. 顶部条 / 导航 ---------- */
.topbar {
  background: #f6f7f7;
  color: var(--text-muted);
  font-size: .84rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar a { color: var(--text); }
.topbar a:hover { color: var(--brand); text-decoration: none; }
.topbar__left, .topbar__right { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.topbar__left > span, .topbar__right > span, .topbar__right > a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar__right svg { color: var(--brand); }
.topbar__left svg { color: var(--brand); }

.header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--heading); text-decoration: none;
}
.brand:hover { text-decoration: none; color: var(--heading); }
.brand__logo { width: 44px; height: 44px; flex-shrink: 0; }
.brand__text { display: inline-flex; flex-direction: column; gap: 2px; line-height: 1.1; }
.brand__name { font-size: 1.15rem; font-weight: 800; line-height: 1.1; color: var(--heading); white-space: nowrap; }
.brand__sub { font-size: .72rem; color: var(--text-muted); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.nav__item {
  position: relative; padding: 14px 14px;
  color: var(--text); font-weight: 500; font-size: .96rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav__item:hover { color: var(--brand); text-decoration: none; }
.nav__item.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.nav__item:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.header__search {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 14px; min-width: 220px;
}
.header__search input {
  flex: 1; border: 0; background: transparent; outline: none; font-size: .9rem; color: var(--text);
}
.header__search button {
  border: 0; background: transparent; color: var(--text-muted); padding: 4px;
}

.nav-toggle { display: none; border: 0; background: transparent; padding: 6px; color: var(--text); }
@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header__search { display: none; }
  .nav.is-open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 8px 24px;
  }
  .nav.is-open .nav__item { width: 100%; border-bottom: 1px solid var(--border); }
}

/* ---------- 5. Section / Hero ---------- */
.section { padding: 72px 0; }
.section--alt { background: var(--bg-alt); }
.section--brand { background: var(--brand); color: #fff; }
.section--brand h1, .section--brand h2, .section--brand h3 { color: #fff; }
.section--dark { background: #0a2540; color: rgba(255,255,255,.92); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section-head { margin-bottom: 36px; }
.section-head p { font-size: 1.05rem; color: var(--text-muted); max-width: 720px; }
.section-head--center { text-align: center; }
.section-head--center p { margin-left: auto; margin-right: auto; }

.pagehead {
  background: var(--bg-alt);
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--border);
}
.pagehead__in { max-width: 720px; }
.pagehead .h1 { margin-bottom: 12px; }
.pagehead p { font-size: 1.05rem; color: var(--text-muted); }

.crumbs { padding: 14px 0; font-size: .88rem; color: var(--text-muted); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "/"; color: var(--border-strong); margin: 0 4px; }
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-current="page"] { color: var(--text); }

.hero {
  background: var(--bg-alt);
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.hero--img {
  background-color: #1a2332;
  background-size: cover; background-position: center 68%; color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 540px;
  display: flex;
  align-items: center;
}
.hero--img::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.78) 0%, rgba(15, 23, 42, 0.55) 45%, rgba(15, 23, 42, 0.25) 100%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.25) 0%, transparent 30%, transparent 70%, rgba(15, 23, 42, 0.4) 100%);
  pointer-events: none;
  z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }
.hero--img .h1 { color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45); }
.hero--img .h1 em { font-style: normal; color: #FFC93C; }
.hero--img .lead { color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4); }
.hero--img .eyebrow { color: #FFC93C; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35); }
.btn--outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #fff; }

.hero__in {
  padding: 80px 0 96px;
  width: 100%;
}
/* 桌面端避开左侧 social-rail */
@media (min-width: 961px) {
  .hero--img .hero__in { padding-left: 96px; }
}
.hero__text { max-width: 640px; }

.hero__media-tag {
  position: absolute;
  right: 18px; bottom: 18px;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(15, 23, 42, 0.65);
  color: #fff;
  font-size: .82rem; font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  letter-spacing: .02em;
}
.hero__media-tag svg { color: #FFC93C; flex-shrink: 0; }

@media (max-width: 720px) {
  .hero--img { min-height: 480px; background-position: center 20%; }
  .hero--img::before {
    background: linear-gradient(180deg, rgba(15,23,42,.5) 0%, rgba(15,23,42,.3) 50%, rgba(15,23,42,.7) 100%);
  }
  .hero__in { padding: 48px 0 64px; }
  .hero__media-tag { right: 12px; bottom: 12px; font-size: .76rem; padding: 6px 10px; }
}
.hero .lead { font-size: 1.1rem; max-width: 640px; }
.hero__actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 6. Button / Tag / Badge ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; font-size: .95rem; font-weight: 600;
  border-radius: var(--radius); border: 1px solid transparent;
  text-decoration: none; line-height: 1.2; white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn--primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn--warm { background: var(--warm); color: #fff; border-color: var(--warm); }
.btn--warm:hover { background: var(--warm-dark); border-color: var(--warm-dark); color: #fff; }
.btn--outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--outline:hover { background: var(--brand); color: #fff; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--bg-alt); color: var(--heading); }
.btn--lg { padding: 14px 28px; font-size: 1rem; }
.btn--sm { padding: 7px 14px; font-size: .85rem; }
.btn--block { display: flex; width: 100%; }

.tag {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 999px;
  font-size: .76rem; font-weight: 600; letter-spacing: .02em;
  background: var(--bg-alt); color: var(--text-muted);
  border: 1px solid var(--border);
}
.tag--brand { background: rgba(34,113,177,.08); color: var(--brand); border-color: rgba(34,113,177,.2); }
.tag--warm  { background: rgba(255,120,0,.08); color: var(--warm-dark); border-color: rgba(255,120,0,.2); }
.tag--success { background: rgba(0,163,42,.08); color: var(--success); border-color: rgba(0,163,42,.25); }
.tag--info  { background: rgba(0,123,184,.08); color: #0078b8; border-color: rgba(0,123,184,.2); }

.badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: .75rem; font-weight: 700;
  background: var(--bg-alt); color: var(--text-muted); border: 1px solid var(--border);
}
.badge--new { background: rgba(0,163,42,.1); color: var(--success); border-color: rgba(0,163,42,.25); }
.badge--done { background: rgba(124,92,255,.1); color: #7C5CFF; border-color: rgba(124,92,255,.25); }

/* ---------- 7. Card / 图文卡 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card--hover:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.card__body { padding: 20px 22px; }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card--hover:hover .card__media img { transform: scale(1.04); }
/* 产品卡：4:3 统一风格图（浅灰渐变画布已内置于图片中） */
.card__media--sq { aspect-ratio: 4 / 3; background: #f4f6f9; }
.card__media--sq img { object-fit: contain; transform: none; }
.card--hover:hover .card__media--sq img { transform: scale(1.03); }
/* 产品列表：筛选标签 + 分组头 */
.linetabs-bar { display: flex; gap: 8px; flex-wrap: wrap; padding: 2px 0 20px; }
.pline-head { margin: 30px 0 16px; }
.pline-head:first-child { margin-top: 0; }
.pline-head h3 { margin: 0; display: flex; align-items: center; gap: 10px; }
.pline-head p { max-width: 720px; line-height: 1.7; }
/* 产品总览：一屏网格（12 产品 + 3 CTA，统一比例） */
.g-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pagehead--mini { padding: 34px 0 26px; }
.pagehead--mini .h1 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); margin-bottom: 6px; }
.pagehead--mini p { margin: 0; font-size: .95rem; }
.section--tight { padding: 26px 0 40px; }
.card__body--mini { padding: 12px 14px 14px; }
.card__body--mini h3 { font-size: .95rem; font-weight: 700; margin: 0 0 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.35; }
.card__body--mini p { font-size: .78rem; color: var(--text-muted); margin: 0 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; }
.card__body--mini .btn { width: 100%; justify-content: center; }
.card__cta-media { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; background: #eef2f7; color: var(--brand); border-bottom: 1px solid var(--border); }
@media (max-width: 1280px) { .g-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1020px) { .g-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .g-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .g-5 { grid-template-columns: 1fr; } }
.card__title { font-size: 1.1rem; font-weight: 700; margin: 0 0 8px; line-height: 1.4; }
.card__title a { color: var(--heading); }
.card__title a:hover { color: var(--brand); text-decoration: none; }
.card__excerpt { color: var(--text-muted); font-size: .92rem; margin: 0 0 12px; }
.card__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-top: 14px; margin-top: 10px;
  border-top: 1px solid var(--border); font-size: .85rem; color: var(--text-muted);
}

/* 产品线卡片（彩色顶部 + 描述） */
.linecard {
  display: flex; flex-direction: column; padding: 28px 24px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--bg); text-decoration: none; color: inherit;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.linecard:hover { border-color: var(--brand); box-shadow: var(--shadow); text-decoration: none; }
.linecard__top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.linecard__icon {
  width: 52px; height: 52px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(34,113,177,.1); color: var(--brand);
  border-radius: 12px;
}
.linecard__icon svg { width: 28px; height: 28px; }
.linecard h3 { margin: 0; font-size: 1.2rem; }

/* ---------- 8. KPI 数据条 ---------- */
.kpis {
  display: grid; gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  grid-template-columns: repeat(4, 1fr);
  margin: 24px 0;
  overflow: hidden;
}
.kpi { background: var(--bg); padding: 22px 20px; text-align: center; }
.kpi__num { font-size: 1.8rem; font-weight: 800; color: var(--brand); line-height: 1; }
.kpi__num small { font-size: .9rem; font-weight: 600; color: var(--text-muted); margin-left: 2px; }
.kpi__label { font-size: .85rem; color: var(--text-muted); margin-top: 6px; }
@media (max-width: 700px) { .kpis { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 9. 侧边栏 / Widget ---------- */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.widget {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
}
.widget__title {
  font-size: 1rem; font-weight: 700; color: var(--heading);
  margin: 0 0 14px; padding-bottom: 10px;
  border-bottom: 2px solid var(--brand);
  display: inline-block;
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--border); }
.widget ul li:last-child { border-bottom: 0; }
.widget ul li a { color: var(--text); display: flex; justify-content: space-between; gap: 8px; }
.widget ul li a:hover { color: var(--brand); text-decoration: none; }
.widget ul li .count { color: var(--text-muted); font-size: .85rem; }
.widget-search input { width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: .9rem; }
.widget-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(34,113,177,.12); }
.tagcloud { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- 10. 表单 ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .9rem; font-weight: 600; color: var(--heading); }
.field .required { color: var(--danger); }
.input, textarea.input, select.input {
  width: 100%; padding: 10px 12px;
  font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, textarea.input:focus, select.input:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(34,113,177,.12);
}
textarea.input { min-height: 120px; resize: vertical; }
.form__msg { padding: 10px 14px; border-radius: var(--radius); font-size: .9rem; display: none; }
.form__msg.is-ok { display: block; background: rgba(0,163,42,.08); border: 1px solid rgba(0,163,42,.3); color: var(--success); }
.form__msg.is-err { display: block; background: rgba(214,54,56,.08); border: 1px solid rgba(214,54,56,.3); color: var(--danger); }
.form__note { font-size: .85rem; color: var(--text-muted); margin: 4px 0 0; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- 11. 文章 / 博客卡片 ---------- */
.post { display: flex; flex-direction: column; height: 100%; }
.post__meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .82rem; color: var(--text-muted); margin-bottom: 10px; }
.post__meta a { color: var(--text-muted); }
.post__meta a:hover { color: var(--brand); }
.post__title { font-size: 1.2rem; font-weight: 700; line-height: 1.4; margin: 0 0 10px; }
.post__title a { color: var(--heading); }
.post__title a:hover { color: var(--brand); text-decoration: none; }
.post__excerpt { color: var(--text-muted); font-size: .94rem; line-height: 1.7; margin: 0 0 14px; flex: 1; }
.read-more { color: var(--brand); font-weight: 600; font-size: .9rem; }
.read-more::after { content: " →"; }
.read-more:hover { text-decoration: underline; }

.entry-content { font-size: 1rem; line-height: 1.85; color: var(--text); }
.entry-content h2 { font-size: 1.5rem; margin: 1.8em 0 .6em; }
.entry-content h3 { font-size: 1.2rem; margin: 1.4em 0 .5em; }
.entry-content p { margin: 0 0 1.1em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.1em; padding-left: 1.5em; }
.entry-content img { margin: 1.4em 0; border-radius: var(--radius); }
.entry-content a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 12. 询盘浮条 + 弹窗 ---------- */
/* .inqbar 已停用（与 .lp-form 重复），CSS 暂留以防外部页面引用 */
.inqbar { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: flex; flex-direction: column; gap: 8px; }
.inqbar a { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; background: var(--warm); color: #fff; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-md); text-decoration: none; }
.inqbar a:hover { background: var(--warm-dark); color: #fff; text-decoration: none; }

/* ---------- 13. 常见问题 FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.faq__q {
  width: 100%; text-align: left; padding: 16px 20px;
  background: transparent; border: 0;
  font: inherit; font-weight: 600; color: var(--heading);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq__q:hover { background: var(--bg-alt); }
.faq__ic {
  width: 18px; height: 18px; flex-shrink: 0; position: relative;
}
.faq__ic::before, .faq__ic::after {
  content: ""; position: absolute; background: var(--text-muted);
  transition: transform .2s ease;
}
.faq__ic::before { top: 8px; left: 0; right: 0; height: 2px; }
.faq__ic::after  { top: 0; bottom: 0; left: 8px; width: 2px; }
.faq__item.is-open .faq__ic::after { transform: scaleY(0); }
.faq__a { display: none; padding: 0 20px 20px; color: var(--text-muted); font-size: .95rem; }
.faq__a p:last-child { margin-bottom: 0; }
.faq__item.is-open .faq__a { display: block; }

/* ---------- 14. CTA 横幅 ---------- */
.cta {
  background: linear-gradient(135deg, var(--brand), #1a5d9e);
  color: #fff; border-radius: var(--radius-lg);
  padding: 48px;
}
.cta__in { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.cta h2, .cta .h2 { color: #fff; margin-bottom: 10px; }
.cta p { color: rgba(255,255,255,.85); margin: 0; }
.cta__actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 700px) { .cta__in { grid-template-columns: 1fr; } .cta { padding: 32px 24px; } }

/* ---------- 15. 页脚 ---------- */
.footer {
  background: #f6f7f7; color: var(--text-muted);
  padding: 56px 0 0; margin-top: 48px;
  border-top: 1px solid var(--border);
}
.footer h4 { color: var(--heading); }
.footer a { color: var(--text); }
.footer a:hover { color: var(--brand); text-decoration: none; }
.footer__grid {
  display: grid; gap: 32px;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand p { font-size: .9rem; color: var(--text-muted); margin: 12px 0 16px; line-height: 1.7; }
.footer h4 {
  color: var(--heading); font-size: 1rem; font-weight: 700;
  margin: 0 0 16px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.footer__list { list-style: none; padding: 0; margin: 0; }
.footer__list li { margin: 0 0 8px; }
.footer__contact { font-size: .9rem; line-height: 1.8; }
.footer__contact strong { color: var(--heading); display: block; margin-top: 8px; }
.footer__social { display: flex; gap: 8px; margin-top: 14px; }
.footer__social a {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 50%; font-size: .9rem;
  color: var(--text-muted);
}
.footer__social a:hover { background: var(--bg-alt); border-color: var(--brand); color: var(--brand); }
.footer__bottom {
  margin-top: 40px; padding: 20px 0; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: .85rem; color: var(--text-muted);
}
.footer__bottom a { color: var(--text-muted); }
.footer__bottom a:hover { color: var(--brand); }

/* ---------- 16. Skip link / Accessibility ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #fff; padding: 10px 16px;
  z-index: 9999; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.hide-sm { display: inline-flex; }
@media (max-width: 720px) { .hide-sm { display: none !important; } }

/* 头部滚动后加阴影 */
.header.is-stuck { box-shadow: 0 2px 8px rgba(0,0,0,.06); }

/* ---------- 17. 后台管理界面 ---------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--bg-alt); }
.login-card { width: 100%; max-width: 400px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.admin { padding: 24px; max-width: 1280px; margin: 0 auto; }
.admin__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.admin__card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; }
.admin__card-head { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.admin__table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin__table th, .admin__table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.admin__table thead th { background: var(--bg-alt); font-weight: 600; }
.admin__table tbody tr:hover td { background: var(--bg-alt); }
.admin__empty { display: none; padding: 48px 24px; text-align: center; color: var(--text-muted); background: var(--bg-alt); border: 1px dashed var(--border); border-radius: var(--radius); }
.linetab { padding: 8px 14px; border: 0; background: transparent; border-radius: var(--radius); font-size: .88rem; color: var(--text-muted); }
.linetab.is-active { background: var(--brand); color: #fff; }
.linetab:hover:not(.is-active) { background: var(--bg-alt); color: var(--text); }
.status-select, .btn-icon { padding: 5px 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); font-size: .85rem; cursor: pointer; }
.status-select:hover, .btn-icon:hover { border-color: var(--brand); color: var(--brand); }
.btn-icon.danger:hover { border-color: var(--danger); color: var(--danger); }
.row-detail { background: var(--bg-alt); border-left: 3px solid var(--brand); padding: 14px 16px; margin-top: 8px; border-radius: 0 var(--radius) var(--radius) 0; font-size: .88rem; }
.table-scroll { overflow-x: auto; }

/* ---------- 18. 文章详情（art 容器） ---------- */
.art { max-width: 760px; margin: 0 auto; }
.art__meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: .88rem; color: var(--text-muted); margin-bottom: 16px; }
.art__title { font-size: clamp(1.7rem, 3.6vw, 2.4rem); line-height: 1.2; margin: 0 0 16px; }
.art__cover { border-radius: var(--radius-lg); overflow: hidden; margin: 24px 0; border: 1px solid var(--border); }
.art__cover img { width: 100%; display: block; }
.art__body { font-size: 1.04rem; line-height: 1.9; color: var(--text); }
.art__body h2 { font-size: 1.5rem; margin: 1.8em 0 .6em; }
.art__body h3 { font-size: 1.2rem; margin: 1.4em 0 .5em; }
.art__body p { margin: 0 0 1.1em; }
.art__body ul, .art__body ol { margin: 0 0 1.1em; padding-left: 1.5em; }
.art__body a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.art__body blockquote { margin: 1.4em 0; padding: 14px 22px; border-left: 4px solid var(--brand); background: var(--bg-alt); border-radius: 0 var(--radius) var(--radius) 0; }
.art__body table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .94rem; }
.art__body th, .art__body td { border: 1px solid var(--border); padding: 10px 14px; }
.art__body th { background: var(--bg-alt); }
.art__body img { border-radius: var(--radius); margin: 1.2em 0; }
.art__foot { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; gap: 10px; flex-wrap: wrap; }
.art__state { padding: 80px 0; text-align: center; color: var(--text-muted); }

/* ---------- 19. 动画微动效 ---------- */
@media (prefers-reduced-motion: no-preference) {
  .card--hover { will-change: transform; }
  .btn { transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease; }
}

/* ---------- 20. 左侧社交图标竖列（WordPress 经典简风） ---------- */
.social-rail {
  position: fixed;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 90;
  padding: 10px 8px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
  opacity: 0.55;
  transition: opacity .25s ease;
}
.social-rail:hover { opacity: 1; }
.sr__item {
  --sr-bg: #3a4a63;
  --sr-hover: #1f2937;
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sr-bg);
  color: #fff;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}
.sr__item svg {
  width: 18px;
  height: 18px;
  display: block;
}
.sr__item:hover {
  transform: scale(1.18);
  background: var(--sr-hover);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.28);
}
.sr__item:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}
.sr__tip {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  background: #0f172a;
  color: #fff;
  font-size: .78rem;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s ease, transform .15s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
}
.sr__tip::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right-color: #0f172a;
}
.sr__item:hover .sr__tip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(2px);
}

/* 窄屏 / 移动端隐藏：占空间 */
@media (max-width: 720px) {
  .social-rail { display: none; }
}

/* ---------- 21. 打印样式 ---------- */
@media print {
  .topbar, .header, .nav, .footer, .inqbar, .crumbs, .social-rail { display: none !important; }
  body { color: #000; background: #fff; }
  .section { padding: 16px 0; }
}
