/* 睿兔官网样式 —— 原木奶油风，稳重、可信、移动端优先 */

:root {
  --wood: #8B5E3C;
  --wood-dark: #6B4629;
  --wood-light: #F5EFE8;
  --cream: #FDFBF7;
  --cream-2: #F7F3ED;
  --text: #2C2620;
  --text-2: #6B6259;
  --text-3: #9A9088;
  --line: #E5DDD3;
  --white: #ffffff;
  --green: #4A7C59;
  --radius: 10px;
  --radius-lg: 16px;
  --wrap: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--cream);
}

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

a { color: var(--wood); text-decoration: none; }
a:hover { color: var(--wood-dark); text-decoration: underline; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--wood); color: #fff;
  padding: 10px 16px; z-index: 999;
}
.skip-link:focus { left: 0; }

/* ---------- 头部 ---------- */
.site-header {
  background: rgba(253, 251, 247, .96);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  min-height: 68px; flex-wrap: wrap;
}
.logo { display: flex; align-items: baseline; gap: 6px; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-mark {
  font-size: 22px; font-weight: 700; color: var(--wood); letter-spacing: 1px;
}
.logo-text { font-size: 14px; color: var(--text-2); letter-spacing: 2px; }

.main-nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.main-nav a {
  font-size: 15px; color: var(--text-2); padding: 6px 0;
  border-bottom: 2px solid transparent; text-decoration: none;
}
.main-nav a:hover { color: var(--wood); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--wood); border-bottom-color: var(--wood); }

.header-cta {
  background: var(--wood); color: #fff; padding: 9px 18px; border-radius: 8px;
  font-size: 14px; white-space: nowrap; text-decoration: none;
}
.header-cta:hover { background: var(--wood-dark); color: #fff; text-decoration: none; }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  max-width: var(--wrap); margin: 0 auto; padding: 16px 20px 0;
  font-size: 13px; color: var(--text-3);
}
.breadcrumb a { color: var(--text-2); }
.breadcrumb .sep { margin: 0 8px; color: var(--text-3); }

/* ---------- 通用区块 ---------- */
section { padding: 56px 0; }
.section-tight { padding: 36px 0; }
h1, h2, h3 { line-height: 1.4; font-weight: 600; margin: 0 0 16px; }
h1 { font-size: 30px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }

.lead { font-size: 17px; color: var(--text-2); line-height: 1.85; }

/* ---------- 首屏 ---------- */
.hero {
  background: linear-gradient(180deg, var(--wood-light) 0%, var(--cream) 100%);
  padding: 64px 0 56px; text-align: center;
}
.hero h1 { font-size: 34px; margin-bottom: 18px; letter-spacing: .5px; }
.hero .lead { max-width: 720px; margin: 0 auto 28px; }
.hero-badges {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 30px;
}
.hero-badges span {
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 16px; font-size: 14px; color: var(--wood-dark);
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 12px 28px; border-radius: 8px;
  font-size: 16px; text-decoration: none; transition: all .18s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--wood); color: #fff; }
.btn-primary:hover { background: var(--wood-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--wood); border: 1px solid var(--wood); }
.btn-ghost:hover { background: var(--wood); color: #fff; }

/* ---------- 数据条 ---------- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
}
.stats > div { background: var(--white); padding: 26px 18px; text-align: center; }
.stats .num { font-size: 26px; font-weight: 700; color: var(--wood); display: block; }
.stats .lbl { font-size: 13px; color: var(--text-2); margin-top: 4px; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px; display: block;
  color: inherit; text-decoration: none;
}
.card:hover { text-decoration: none; border-color: var(--wood); }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; font-size: 14.5px; color: var(--text-2); }

.card-img { border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; }
.card-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.case-card { padding: 0; overflow: hidden; }
.case-card .card-body { padding: 20px 22px; }

/* ---------- 图片网格 ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.gallery img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* ---------- 内容排版 ---------- */
.prose { max-width: 780px; }
.prose h2 { margin-top: 40px; padding-top: 8px; }
.prose h3 { margin-top: 28px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose blockquote {
  margin: 22px 0; padding: 16px 20px; background: var(--wood-light);
  border-left: 3px solid var(--wood); border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-2);
}
.prose img { border-radius: var(--radius); margin: 24px 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }

.table-wrap { overflow-x: auto; margin: 22px 0; }
.prose table, .table-wrap table {
  width: 100%; border-collapse: collapse; font-size: 14.5px; background: var(--white);
}
.prose th, .prose td, .table-wrap th, .table-wrap td {
  border: 1px solid var(--line); padding: 10px 14px; text-align: left;
}
.prose tr:first-child td, .table-wrap tr:first-child td {
  background: var(--wood-light); font-weight: 600;
}

/* ---------- 问答块（AI 收录友好）---------- */
.faq { margin: 26px 0; }
.faq-item {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 22px; margin-bottom: 12px;
}
.faq-item .q { font-weight: 600; margin: 0 0 8px; color: var(--text); }
.faq-item .a { margin: 0; color: var(--text-2); font-size: 15px; }

/* ---------- 侧栏布局 ---------- */
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; }
.aside-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 22px; margin-bottom: 20px;
}
.aside-card h3 { font-size: 16px; margin-bottom: 14px; }
.aside-card ul { list-style: none; padding: 0; margin: 0; }
.aside-card li { padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.aside-card li:last-child { border-bottom: 0; }

/* ---------- CTA 区块 ---------- */
.cta-band {
  background: var(--wood); color: #fff; text-align: center;
  padding: 48px 20px; border-radius: var(--radius-lg); margin: 48px auto;
  max-width: var(--wrap);
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.88); margin: 0 0 24px; }
.cta-band .btn-primary { background: #fff; color: var(--wood); }
.cta-band .btn-primary:hover { background: var(--cream-2); }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--cream-2); border-top: 1px solid var(--line);
  padding: 48px 0 24px; margin-top: 60px; font-size: 14px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 36px; }
.footer-brand { font-size: 17px; font-weight: 600; margin: 0 0 10px; color: var(--wood); }
.footer-desc { color: var(--text-2); margin: 0 0 8px; line-height: 1.7; }
.footer-title { font-weight: 600; margin: 0 0 12px; color: var(--text); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--text-2); }
.footer-bottom {
  border-top: 1px solid var(--line); margin-top: 32px; padding-top: 18px;
  text-align: center; color: var(--text-3); font-size: 13px;
}
.footer-bottom p { margin: 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .with-aside { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 700px) {
  h1 { font-size: 25px; }
  .hero h1 { font-size: 26px; }
  h2 { font-size: 21px; }
  section { padding: 40px 0; }
  .header-inner { min-height: 60px; gap: 14px; }
  .main-nav { order: 3; width: 100%; gap: 16px; overflow-x: auto; padding-bottom: 8px; }
  .main-nav a { font-size: 14px; white-space: nowrap; }
  .header-cta { margin-left: auto; padding: 8px 14px; font-size: 13px; }
  .btn { padding: 11px 22px; font-size: 15px; }
  .hero { padding: 44px 0 40px; }
}

/* ---------- 合集 / 文章增强（公众号同步内容） ---------- */
.collection-chip {
  display: inline-block; margin: 0 0 12px; font-size: 13.5px; color: var(--wood);
  background: var(--wood-light); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 14px;
}
.collection-chip a { color: var(--wood); }
.post-meta { font-size: 13.5px; color: var(--text-3); margin: -6px 0 22px; }
.post-figure { margin: 26px 0; }
.post-figure img { border-radius: var(--radius); width: 100%; }
.post-figure figcaption { font-size: 13.5px; color: var(--text-2); text-align: center; margin-top: 8px; }
.series-box {
  margin: 36px 0 24px; padding: 20px 22px; background: var(--cream-2);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.series-box h2 { font-size: 19px; margin: 0 0 12px; }
.series-box ul { margin: 0; padding-left: 20px; }
.series-box li { margin: 6px 0; font-size: 15px; }
.series-more { margin: 12px 0 0; font-size: 14.5px; }
.post-nav {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 20px; margin-top: 8px;
}
.post-nav-item { font-size: 14.5px; color: var(--text-2); max-width: 46%; }
.col-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 8px; }
.col-nav a {
  font-size: 14px; padding: 6px 14px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--white); color: var(--wood);
}
.col-nav a:hover { background: var(--wood-light); text-decoration: none; }
.col-block { margin-top: 40px; }
.col-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.col-block-head h2 { font-size: 22px; margin: 0; }
.col-block-head a { font-size: 14.5px; }
.col-block-desc { color: var(--text-2); font-size: 15px; margin: 6px 0 18px; }
.card-date { display: block; margin-top: 10px; font-size: 13px; color: var(--text-3); }
@media (max-width: 640px) {
  .post-nav-item { max-width: 100%; }
}
