/* ============================================================
   王凯元律师个人网站 · 共用样式
   设计基调：藏青主色 + 金色点缀，克制、专业、可信
   移动端优先响应式
   ============================================================ */

:root {
  --navy: #16294a;        /* 主色：深藏青 */
  --navy-deep: #0e1c36;   /* 深一档，用于页脚 */
  --gold: #b8964f;        /* 点缀金 */
  --gold-soft: #d9c49a;   /* 浅金 */
  --bg: #faf9f7;          /* 暖白背景 */
  --bg-card: #ffffff;
  --text: #2b2f36;
  --text-muted: #6b7280;
  --line: #e5e2db;
  --max-width: 1040px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
}

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

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

/* ---------- 顶部导航 ---------- */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(14, 28, 54, 0.25);
}

.header-inner {
  display: block;
  padding-top: 14px;
  padding-bottom: 12px;
}

.site-logo {
  display: block;
}
.site-logo img {
  display: block;
  margin: 0 auto;
  width: 900px;
  height: 80px;
  max-width: 100%;
}

.site-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
  transform: translateX(248px);
  margin-top: 8px;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  padding: 6px 12px;
  border-radius: 4px;
  transition: all 0.2s;
  text-shadow: 0 1px 3px rgba(10, 19, 48, 0.65);
}
.site-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* 窄屏下标题图自适应缩放，避免固定 900×80 变形 */
@media (max-width: 940px) {
  .site-logo img { width: 100%; height: auto; }
}

/* ---------- Hero 首屏 ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #24406e 60%, #35507c 100%);
  color: #fff;
  padding: 72px 0 80px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: center;
}

.hero-text { text-align: left; }

.hero h1 {
  font-family: "Songti SC", "SimSun", "Noto Serif SC", serif;
  font-size: 42px;
  letter-spacing: 6px;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero .tagline {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
  margin-bottom: 14px;
}

.hero .tagline-sub {
  font-size: 14.5px;
  color: var(--gold-soft);
  letter-spacing: 1px;
  margin-bottom: 38px;
}

.hero-actions { display: flex; gap: 16px; justify-content: flex-start; flex-wrap: wrap; }

.hero-photo img {
  width: 100%;
  display: block;
  border-radius: 10px;
  border: 2px solid rgba(217, 196, 154, 0.45);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.btn {
  display: inline-block;
  padding: 12px 34px;
  border-radius: 4px;
  font-size: 16px;
  letter-spacing: 2px;
  transition: all 0.25s;
}

.btn-gold {
  background: var(--gold);
  color: #fff;
  border: 1px solid var(--gold);
}
.btn-gold:hover { background: #a5813c; color: #fff; }

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.08); }

/* ---------- 通用 Section ---------- */
main > section { padding: 72px 0; }

.section-title {
  font-family: "Songti SC", "SimSun", "Noto Serif SC", serif;
  font-size: 28px;
  color: var(--navy);
  text-align: center;
  letter-spacing: 3px;
  margin-bottom: 10px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 48px;
}

/* ---------- 专业方向卡片 ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px 26px;
  transition: all 0.25s;
  display: block;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(22, 41, 74, 0.12);
  border-color: var(--gold-soft);
}

.card .num {
  font-family: Georgia, serif;
  font-size: 15px;
  color: var(--gold);
  letter-spacing: 2px;
  display: block;
  margin-bottom: 12px;
}

.card h3 {
  font-family: "Songti SC", "SimSun", "Noto Serif SC", serif;
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.card p { font-size: 14.5px; color: var(--text-muted); }

/* ---------- FAQ 折叠 ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }

details {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 14px;
  overflow: hidden;
}

details[open] { border-color: var(--gold-soft); }

summary {
  cursor: pointer;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  position: relative;
  padding-right: 46px;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--gold);
  font-weight: 400;
  transition: transform 0.2s;
}

details[open] summary::after { content: "−"; }

details .answer {
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 15px;
  border-top: 1px dashed var(--line);
  padding-top: 16px;
  margin: 0 22px 20px;
  padding-left: 0;
  padding-right: 0;
}

/* ---------- 关于我 ---------- */
.about { background: #f3f1ec; }

.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  max-width: 780px;
  margin: 0 auto;
}

/* 关于我：照片 + 文字 两列变体 */
.about-inner.profile {
  grid-template-columns: 280px 1fr;
  gap: 44px;
  max-width: 880px;
  align-items: start;
}
.about-photo img {
  width: 100%;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(22, 41, 74, 0.14);
}

.about h3 {
  font-family: "Songti SC", "SimSun", serif;
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 8px;
}

.about ul { list-style: none; }
.about li {
  padding-left: 18px;
  position: relative;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 15.5px;
}
.about li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
}

/* ---------- CTA ---------- */
.cta {
  background: var(--navy);
  color: #fff;
  text-align: center;
}
.cta h2 {
  font-family: "Songti SC", "SimSun", serif;
  font-size: 26px;
  letter-spacing: 3px;
  margin-bottom: 14px;
}
.cta p { color: rgba(255,255,255,0.8); margin-bottom: 30px; font-size: 15.5px; }

/* ---------- 文章列表 ---------- */
.article-list { max-width: 780px; margin: 0 auto; }

.article-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  padding: 22px 26px;
  margin-bottom: 18px;
  transition: box-shadow 0.2s;
}
.article-item:hover { box-shadow: 0 6px 18px rgba(22, 41, 74, 0.08); }

.article-item .meta {
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.article-item h3 {
  font-size: 17.5px;
  color: var(--navy);
  margin-bottom: 6px;
  font-family: "Songti SC", "SimSun", serif;
}

.article-item p { font-size: 14.5px; color: var(--text-muted); }

.journal-badge {
  display: block;
  width: fit-content;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 12.5px;
  letter-spacing: 1px;
  padding: 4px 16px;
  border-radius: 999px;
  margin: 14px auto 2px;
}

.journal-more { text-align: center; margin-top: 30px; }
.journal-more a {
  font-size: 15px;
  color: var(--navy);
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: 10px 28px;
  transition: all 0.2s;
}
.journal-more a:hover { background: var(--gold); color: #fff; }

/* ---------- 材料清单 ---------- */
.doc-list {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px 30px 24px;
  max-width: 780px;
  margin: 0 auto;
}
.doc-list h3 {
  font-family: "Songti SC", "SimSun", serif;
  color: var(--navy);
  font-size: 19px;
  margin-bottom: 14px;
}
.doc-list ol { padding-left: 22px; }
.doc-list li { margin-bottom: 8px; color: var(--text); font-size: 15px; }
.doc-list .note { margin-top: 14px; font-size: 13.5px; color: var(--text-muted); }

/* ---------- 联系页 ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto 48px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 0;
}

.contact-photo img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(16, 32, 56, 0.16);
}

@media (max-width: 760px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .contact-photo img { max-width: 300px; }
  .contact-social { padding: 16px; gap: 4px 10px; }
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 24px;
  text-align: center;
}
.contact-card .label {
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.contact-card .value {
  font-size: 17px;
  color: var(--navy);
  font-weight: 600;
  word-break: break-all;
}

/* V61 联系页：白底图标卡（复用 social-item 结构，2列x4行，位于照片左侧） */
.contact-social {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(22, 41, 74, 0.06);
  border-radius: 12px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 14px;
}
.contact-social .social-item { color: var(--navy); border-radius: 8px; padding: 12px 12px; border-bottom: 1px solid var(--line); }
.contact-social .social-item:hover { background: rgba(22, 41, 74, 0.05); }
.contact-social .social-ico { width: 44px; height: 44px; }
.contact-social .social-txt strong { color: var(--navy); font-size: 15px; }
.contact-social .social-txt em { color: #6b7785; word-break: break-all; }
@media (max-width: 560px) {
  .contact-social { grid-template-columns: 1fr; }
}

.tips {
  max-width: 780px;
  margin: 0 auto;
  background: #f3f1ec;
  border-radius: 8px;
  padding: 28px 30px;
}
.tips h3 {
  font-family: "Songti SC", "SimSun", serif;
  color: var(--navy);
  margin-bottom: 12px;
  font-size: 18px;
}
.tips li { margin-bottom: 8px; font-size: 15px; }
.tips ul, .tips ol { padding-left: 20px; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.72);
  padding: 44px 0 36px;
  text-align: center;
  font-size: 13.5px;
}
.site-footer .brand {
  font-family: "Songti SC", "SimSun", serif;
  font-size: 17px;
  color: #fff;
  letter-spacing: 3px;
  margin-bottom: 10px;
}
.site-footer p { margin-bottom: 8px; }
.site-footer .fine-print {
  color: rgba(255, 255, 255, 0.45);
  font-size: 12.5px;
  max-width: 720px;
  margin: 14px auto 0;
  line-height: 1.7;
}
.site-footer a { color: rgba(255, 255, 255, 0.55); }
.site-footer a:hover { color: var(--gold-soft); }

/* ---------- 页面内页头（子页用） ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #24406e 100%);
  color: #fff;
  padding: 58px 0 54px;
  text-align: center;
}
.page-hero h1 {
  font-family: "Songti SC", "SimSun", serif;
  font-size: 32px;
  letter-spacing: 4px;
  margin-bottom: 12px;
}
.page-hero p { color: rgba(255, 255, 255, 0.8); font-size: 15.5px; max-width: 640px; margin: 0 auto; }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 26px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- 文章正文页 ---------- */
.post-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #24406e 100%);
  color: #fff;
  padding: 52px 0 50px;
}
.post-hero .container { max-width: 800px; }
.post-hero .cat {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--gold-soft);
  border: 1px solid rgba(217, 196, 154, 0.5);
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.post-hero h1 {
  font-family: "Songti SC", "SimSun", "Noto Serif SC", serif;
  font-size: 30px;
  letter-spacing: 1px;
  line-height: 1.5;
  margin-bottom: 14px;
}
.post-hero .post-meta { font-size: 14px; color: rgba(255, 255, 255, 0.65); }

.post-wrap { padding: 56px 0 64px; }
.post-content { max-width: 800px; margin: 0 auto; }

.post-content h2 {
  font-family: "Songti SC", "SimSun", "Noto Serif SC", serif;
  font-size: 23px;
  color: var(--navy);
  margin: 44px 0 18px;
  padding-left: 14px;
  border-left: 4px solid var(--gold);
  letter-spacing: 1px;
}
.post-content p {
  font-size: 16px;
  line-height: 1.95;
  margin-bottom: 18px;
  color: var(--text);
}
.post-content strong { color: var(--navy); }
.post-content ul, .post-content ol { margin: 0 0 18px 24px; }
.post-content li { font-size: 16px; line-height: 1.9; margin-bottom: 8px; }
.post-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 18px auto; display: block; }
.post-content blockquote { margin: 18px 0; padding: 12px 18px; border-left: 3px solid var(--gold); background: #f6f3ec; color: var(--text); border-radius: 0 8px 8px 0; }
.post-content table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.post-content th, .post-content td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; line-height: 1.7; }
.post-content th { background: #f6f3ec; font-weight: 700; }
.post-content tr:nth-child(even) td { background: #faf8f4; }
.post-content .lead {
  font-size: 17px;
  color: var(--text-muted);
  border-bottom: 1px dashed var(--line);
  padding-bottom: 22px;
  margin-bottom: 30px;
}

/* 法条速查表 */
.law-table {
  max-width: 800px;
  margin: 40px auto 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px 26px 20px;
}
.law-table h3 {
  font-family: "Songti SC", "SimSun", serif;
  color: var(--navy);
  font-size: 18px;
  margin-bottom: 14px;
}
.law-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.law-table th, .law-table td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  line-height: 1.6;
}
.law-table th { background: #f3f1ec; color: var(--navy); font-weight: 600; }
.law-table .note { margin-top: 12px; font-size: 13px; color: var(--text-muted); }

/* 文末作者卡 */
.author-box {
  max-width: 800px;
  margin: 46px auto 0;
  background: #f3f1ec;
  border-radius: 8px;
  padding: 28px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.author-box .who h3 {
  font-family: "Songti SC", "SimSun", serif;
  color: var(--navy);
  font-size: 19px;
  margin-bottom: 6px;
}
.author-box .who p { font-size: 14px; color: var(--text-muted); }
.author-box .btn { flex-shrink: 0; padding: 10px 26px; font-size: 15px; }

.post-nav {
  max-width: 800px;
  margin: 34px auto 0;
  font-size: 14.5px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.post-nav a { color: var(--navy); }
.post-nav a:hover { color: var(--gold); }

/* ---------- 文章内示意图（情景对照 / 流程 / 提示） ---------- */
.diagram {
  max-width: 800px;
  margin: 30px auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px 22px;
}
.diagram .diagram-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 18px;
  text-align: center;
}
.flow { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; justify-content: center; }
.flow .node {
  flex: 1 1 150px;
  background: #f3f1ec;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 14px;
  text-align: center;
}
.flow .node .role { font-size: 12px; color: var(--text-muted); }
.flow .node .name {
  font-family: "Songti SC", "SimSun", serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 16px;
  margin-top: 4px;
}
.flow .arrow { align-self: center; color: var(--gold); font-size: 22px; font-weight: 700; }

.scenario-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.scenario { border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; background: #fff; }
.scenario .tag { font-size: 12.5px; font-weight: 700; }
.scenario .yes { color: #1f7a44; }
.scenario .no  { color: #b9554a; }
.scenario .q { font-weight: 700; color: var(--navy); margin: 6px 0 6px; font-family: "Songti SC", "SimSun", serif; }
.scenario .desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

.callout {
  max-width: 800px;
  margin: 24px auto;
  background: #fbf6ee;
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  padding: 16px 20px;
  font-size: 15px;
  color: var(--text);
}
.callout .ct { font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.callout p { font-size: 15px; margin-bottom: 10px; }

@media (max-width: 640px) {
  .scenario-grid { grid-template-columns: 1fr; }
  .flow { flex-direction: column; }
  .flow .arrow { transform: rotate(90deg); }
}

/* ---------- 律所页 / 首页律所板块 ---------- */
.firm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px; max-width: 880px; margin: 0 auto; }
.firm-stat { background: var(--bg-card); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 8px; padding: 24px 18px; text-align: center; }
.firm-stat .num { font-family: "Songti SC", "SimSun", serif; font-size: 30px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.firm-stat .label { font-size: 14px; color: var(--text-muted); margin-top: 8px; }
.practice-tags { max-width: 880px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.practice-tags span { display: inline-block; background: #f3f1ec; border: 1px solid var(--line); border-radius: 20px; padding: 7px 16px; font-size: 14px; color: var(--navy); }
.firm-note { max-width: 880px; margin: 30px auto 0; font-size: 13.5px; color: var(--text-muted); }
.btn-line { display: inline-block; padding: 12px 34px; border-radius: 4px; font-size: 16px; letter-spacing: 2px; transition: all 0.25s; background: transparent; color: var(--navy); border: 1px solid var(--gold); }
.btn-line:hover { background: var(--gold); color: #fff; }

/* 律所页 · 官方链接 */
.firm-links {
  margin-top: 26px;
  padding: 18px 22px;
  background: #f3f1ec;
  border-left: 3px solid var(--gold);
  border-radius: 8px;
}
.firm-links-title { font-weight: 700; color: var(--navy); margin-bottom: 10px; font-size: 15px; }
.firm-links p { margin: 6px 0; }
.firm-links p a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
}
.firm-links p a:hover { color: var(--gold); }
@media (max-width: 640px) { .firm-stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .hero-text { text-align: center; }
  .hero .tagline { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-photo { max-width: 240px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .hero { padding: 64px 0 70px; }
  .hero h1 { font-size: 30px; letter-spacing: 4px; }
  .hero .tagline { font-size: 16px; }
  main > section { padding: 52px 0; }
  .section-title { font-size: 23px; }
  .page-hero h1 { font-size: 26px; }
  .site-nav {
    position: static;
    transform: none;
    justify-content: center;
    margin-top: 6px;
    padding-bottom: 12px;
  }
  .about-inner.profile { grid-template-columns: 1fr; gap: 26px; }
  .about-photo { max-width: 260px; margin: 0 auto; }
  .post-hero h1 { font-size: 24px; }
  .author-box { flex-direction: column; text-align: center; }
}

/* ---------- 全站搜索 ---------- */
.site-search { padding: 2px 0 18px; }
.site-search .search-box .search-ico { color: #8fa0c0; }
.site-search .search-box input {
  background: #22355c;
  border-color: #3a4f7d;
  color: #fff;
}
.site-search .search-box input::placeholder { color: #8fa0c0; }
.site-search .search-box input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 150, 79, 0.25);
}
.search-box { position: relative; max-width: 620px; margin: 0 0 0 auto; }
.search-box .search-ico {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none;
}
.search-box input {
  width: 100%; box-sizing: border-box;
  padding: 13px 18px 13px 44px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg-card); color: var(--text);
  font-size: 14.5px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 150, 79, 0.15);
}
.search-results {
  display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(22, 41, 74, 0.12);
  max-height: 380px; overflow-y: auto; z-index: 50;
}
.sr-item {
  display: block; padding: 12px 18px; text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.sr-item:last-child { border-bottom: none; }
.sr-item:hover { background: #faf7f0; }
.sr-item .sr-cat {
  display: inline-block; font-size: 11.5px; color: var(--gold);
  border: 1px solid var(--gold-soft); border-radius: 999px;
  padding: 1px 9px; margin-right: 8px; vertical-align: 1px;
}
.sr-item strong { font-size: 14.5px; color: var(--navy); font-weight: 500; }
.sr-item p { margin: 5px 0 0; font-size: 13px; color: var(--text-muted); line-height: 1.55; }
.sr-item mark { background: #f5e7c8; color: inherit; padding: 0 1px; }
.sr-empty { text-align: center; color: var(--text-muted); font-size: 14px; cursor: default; }

/* ---------- 公众号原文链接 ---------- */
.wx-origin {
  max-width: 780px; margin: 26px auto 6px; text-align: center;
  font-size: 14px; color: var(--text-muted);
}
.wx-origin a {
  color: var(--gold); border: 1px solid var(--gold); border-radius: 999px;
  padding: 8px 24px; margin-left: 6px; text-decoration: none;
  transition: all 0.2s; white-space: nowrap;
}
.wx-origin a:hover { background: var(--gold); color: #fff; }

.wx-origin-top { margin: 18px auto 22px; }
.wx-origin-top a { padding: 6px 18px; font-size: 13px; }

/* ---------- V48 编辑杂志风 ---------- */
.en-cap {
  display: block;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--gold);
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.page-hero .en-cap { color: var(--gold-soft); }
.section-title {
  font-size: 30px;
  letter-spacing: 2px;
  padding-top: 18px;
  position: relative;
}
.section-title::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 38px; height: 2px;
  background: var(--gold);
}
.section-sub { margin-bottom: 54px; }
.card { border-top: 2px solid var(--navy); }
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(22, 41, 74, 0.10);
  border-color: var(--gold-soft);
}
.card .num { font-size: 26px; letter-spacing: 1px; margin-bottom: 10px; }
.article-item { transition: all 0.25s; }
.article-item:hover { transform: translateX(4px); }

/* 滚动渐入（仅首页，配合 js/site.js） */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- V49 动效 ---------- */
.type-line {
  font-family: "Songti SC", "SimSun", serif;
  font-size: 17px;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.85);
  min-height: 1.8em;
  margin: 12px 0 0;
}
.type-cursor { color: var(--gold); font-weight: 400; animation: typeBlink 1s steps(1) infinite; }
@keyframes typeBlink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .type-cursor { animation: none; } }
.reveal-child { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-child.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-child { opacity: 1; transform: none; transition: none; }
}

/* ---------- V52 联系与关注 ---------- */
.social-band { background: var(--navy-deep); padding: 56px 0 40px; }
.social-grid { display: flex; align-items: center; gap: 30px; }
.social-main { flex: 1; min-width: 0; }
.social-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.social-band .section-title { color: #fff; font-size: 28px; }
.social-band .section-title::before { display: none; }
.social-band .en-cap { color: var(--gold-soft); }
.social-items {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 18px; margin-top: 18px;
}
.social-item {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 14px; border-radius: 8px;
  color: #fff; text-decoration: none;
  border-bottom: 1px solid rgba(217, 196, 154, 0.18);
  transition: background 0.2s;
}
.social-item:hover { background: rgba(217, 196, 154, 0.10); }
.social-ico { width: 56px; height: 56px; color: var(--gold-soft); flex-shrink: 0; }
.social-ico svg { width: 100%; height: 100%; }
.social-ico img { width: 100%; height: 100%; display: block; }
.social-txt { display: flex; flex-direction: column; min-width: 0; }
.social-txt strong { font-size: 15.5px; font-weight: 500; color: #fff; }
.social-txt em { font-style: normal; font-size: 12.5px; color: rgba(255, 255, 255, 0.55); margin-top: 3px; word-break: break-all; }
.social-top { align-self: flex-end; margin: 0 0 30px; text-align: right; }
.social-top a { color: rgba(255, 255, 255, 0.45); font-size: 12.5px; text-decoration: none; }
.social-top a:hover { color: var(--gold-soft); }

@media (max-width: 760px) {
  .social-items { grid-template-columns: 1fr 1fr; gap: 6px 10px; }
  .social-ico { width: 44px; height: 44px; }
  .social-item { gap: 10px; padding: 11px 10px; }
}
