/* ============================================================
   明法 · 公益普法网站  —  全局样式（收敛版）
   设计系统：浅咖啡底 + 深咖主色 + 焦糖金标识
   ============================================================ */

:root {
  /* 品牌色（仅保留两套主色，去除杂乱的栏目色） */
  --bg: #F2E9DA;          /* 浅咖底 */
  --card: #FBF6EC;        /* 奶白卡 */
  --dark: #463726;        /* 深咖主色 */
  --sec: #7A6850;         /* 次文字 */
  --caramel: #A9743F;     /* 焦糖 accent */
  --gold: #C0882E;        /* 标识金 */
  --footer: #3A2E22;      /* 页脚深 */
  --line: #D9C7AD;        /* 细描边 */

  --maxw: 1100px;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(70, 55, 38, .10);
  --shadow-sm: 0 4px 14px rgba(70, 55, 38, .08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif { font-family: "Noto Serif SC", serif; }

a { color: inherit; text-decoration: none; }

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

/* ---------------- 导航 ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 236, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text .zh { font-family: "Noto Serif SC", serif; font-weight: 700; font-size: 21px; color: var(--dark); letter-spacing: 1px; }
.brand-text .sub { font-size: 12px; color: var(--sec); letter-spacing: 1px; }

.nav-links { display: flex; align-items: center; gap: 24px; margin-left: auto; flex-wrap: wrap; }
.nav-links a { font-size: 15px; color: var(--sec); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--caramel); }
.nav-toggle { display: none; }

/* ---------------- Hero ---------------- */
.hero {
  background: linear-gradient(135deg, #EADFCB 0%, var(--bg) 60%);
  overflow: hidden;
}
.hero-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 64px 24px 72px;
  display: flex; align-items: center; gap: 48px;
}
.hero-left { flex: 1; min-width: 0; }
.eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: 3px;
  color: var(--caramel); font-weight: 600; margin-bottom: 18px;
}
.hero h1 {
  font-size: 46px; line-height: 1.25; color: var(--dark); font-weight: 700;
  margin-bottom: 22px;
}
.hero h1 em { color: var(--caramel); font-style: normal; }
.hero-rule { width: 64px; height: 4px; background: var(--gold); border-radius: 4px; margin-bottom: 22px; }
.hero p { font-size: 17px; color: var(--sec); max-width: 560px; margin-bottom: 28px; }
.hero-highlights { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-highlights .item { display: flex; flex-direction: column; }
.hero-highlights .num { font-family: "Noto Serif SC", serif; font-size: 30px; font-weight: 700; color: var(--dark); }
.hero-highlights .lbl { font-size: 13px; color: var(--sec); }

.hero-art {
  width: 360px; height: 320px; flex-shrink: 0;
  background: #E4D6C2; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.hero-art svg { width: 86%; height: 86%; }

/* ---------------- 通用区块标题 ---------------- */
.section { padding: 56px 0; }
.section.alt { background: rgba(255, 255, 255, .4); }
.section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.section-head .ico { width: 30px; height: 30px; flex-shrink: 0; }
.section-head h2 { font-size: 28px; color: var(--dark); font-weight: 700; }
.section-head .en { font-size: 12px; color: var(--caramel); letter-spacing: 2px; margin-left: 2px; }

/* ---------------- 栏目导览（统一浅卡网格） ---------------- */
.cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.col-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.col-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.col-card .cico {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  background: rgba(192, 136, 46, .14);
  display: flex; align-items: center; justify-content: center;
}
.col-card .cico svg { width: 26px; height: 26px; }
.col-card h3 { font-size: 20px; color: var(--dark); font-weight: 700; }
.col-card .desc { color: var(--sec); font-size: 14px; flex: 1; }
.col-card .more { font-size: 14px; font-weight: 600; color: var(--caramel); display: inline-flex; align-items: center; gap: 6px; }

/* ---------------- 关于站长 ---------------- */
.profile-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-sm);
  display: flex; gap: 36px; align-items: center;
}
.profile-photo {
  width: 150px; height: 180px; flex-shrink: 0; border-radius: 14px;
  background: linear-gradient(160deg, #D9C7AD, #C9B79B);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; text-align: center;
  border: 3px solid #fff; box-shadow: var(--shadow-sm);
}
.profile-photo span { background: rgba(70,55,38,.55); padding: 6px 10px; border-radius: 8px; }
.profile-body h3 { font-size: 22px; margin-bottom: 12px; color: var(--dark); }
.profile-body p { color: var(--sec); font-size: 16px; }
.profile-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.profile-tags span { font-size: 13px; background: #EFE3CF; color: var(--dark); padding: 5px 12px; border-radius: 20px; }

/* ---------------- 常用法律工具 ---------------- */
.res-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.res-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 22px; box-shadow: var(--shadow-sm);
  transition: transform .2s, border-color .2s;
}
.res-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.res-card .rt { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.res-card .rd { font-size: 13px; color: var(--sec); }

/* ---------------- 页脚 ---------------- */
.footer { background: var(--footer); color: #D9C7AD; margin-top: 64px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 48px 24px 28px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .zh { font-family: "Noto Serif SC", serif; font-weight: 700; font-size: 20px; color: var(--card); }
.footer-brand .sub { font-size: 12px; color: #C9B79B; }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-nav a { font-size: 14px; color: #D9C7AD; transition: color .2s; }
.footer-nav a:hover { color: var(--gold); }
.footer-bottom { padding-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom .copy { font-size: 13px; color: #A9987C; }
.footer-beian { border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; margin-top: 4px; display: flex; gap: 20px; flex-wrap: wrap; }
.footer-beian a { font-size: 13px; color: #A9987C; transition: color .2s; }
.footer-beian a:hover { color: var(--gold); }
.to-top { font-size: 13px; color: var(--gold); cursor: pointer; }

/* ---------------- 列表页 ---------------- */
.page-hero { background: var(--dark); color: var(--card); padding: 40px 0 44px; }
.page-hero h1 { font-size: 32px; font-weight: 700; }
.page-hero .crumb { font-size: 13px; color: #C9B79B; margin-bottom: 14px; }
.page-hero .crumb a:hover { color: var(--gold); }

.layout { display: flex; gap: 32px; align-items: flex-start; padding: 40px 0; }
.aside { width: 280px; flex-shrink: 0; display: flex; flex-direction: column; gap: 24px; }
.aside-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.aside-card h4 { font-size: 16px; color: var(--dark); margin-bottom: 14px; font-weight: 700; }
.aside-nav a { display: block; font-size: 15px; color: var(--sec); padding: 9px 0; border-bottom: 1px dashed var(--line); transition: color .2s, padding-left .2s; }
.aside-nav a:hover, .aside-nav a.active { color: var(--caramel); padding-left: 6px; }
.search-box { display: flex; gap: 8px; }
.search-box input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; background: #fff; font-family: inherit; }
.search-box button { background: var(--caramel); color: #fff; border: none; border-radius: 10px; padding: 0 16px; cursor: pointer; font-family: inherit; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font-size: 13px; background: #EFE3CF; color: var(--dark); padding: 5px 12px; border-radius: 20px; cursor: pointer; }
.tags span:hover { background: var(--caramel); color: #fff; }

.main { flex: 1; min-width: 0; }
.main-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; }
.main-head h2 { font-size: 24px; color: var(--dark); font-weight: 700; }
.main-head .count { font-size: 14px; color: var(--sec); }

.article-item {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 24px; margin-bottom: 16px; display: flex; gap: 18px; align-items: center;
  transition: transform .2s, box-shadow .2s;
}
.article-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.article-item .meta-left { flex: 1; min-width: 0; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; background: rgba(169,116,63,.14); color: var(--caramel); margin-bottom: 8px; }
.article-item h3 { font-size: 18px; color: var(--dark); font-weight: 700; margin-bottom: 6px; }
.article-item .desc { font-size: 14px; color: var(--sec); }
.article-item .info { font-size: 12px; color: #A9987C; margin-top: 8px; }
.article-item .arrow { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: #EFE3CF; display: flex; align-items: center; justify-content: center; color: var(--caramel); }

/* ---------------- 文章详情页 ---------------- */
.article-hero { background: var(--dark); color: var(--card); padding: 44px 0; position: relative; overflow: hidden; }
.article-hero .inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; display: flex; gap: 36px; align-items: center; }
.article-hero .htext { flex: 1; min-width: 0; }
.article-hero .pill { background: rgba(192,136,46,.2); color: var(--gold); }
.article-hero h1 { font-size: 30px; font-weight: 700; margin: 14px 0; line-height: 1.35; }
.article-hero .meta { font-size: 13px; color: #C9B79B; }
.article-hero .himg { width: 300px; height: 200px; flex-shrink: 0; border-radius: 14px; background: linear-gradient(135deg,#5A4631,#463726); display:flex; align-items:center; justify-content:center; }
.article-hero .himg svg { width: 70%; height: 70%; }

.article-body { display: flex; gap: 32px; padding: 44px 0; align-items: flex-start; }
.article-main { flex: 1; min-width: 0; }
.article-main .lead { font-size: 18px; color: var(--dark); font-weight: 500; line-height: 1.9; margin-bottom: 26px; background: #EFE3CF; padding: 18px 22px; border-left: 4px solid var(--gold); border-radius: 0 10px 10px 0; }
.article-main h2 { font-size: 22px; color: var(--dark); margin: 28px 0 14px; }
.article-main p { color: var(--sec); font-size: 16px; margin-bottom: 16px; }
.article-main blockquote { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin: 20px 0; font-size: 15px; color: var(--dark); }
.article-main blockquote b { color: var(--caramel); }
.article-aside { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 24px; }
.aside-card h4 { font-size: 16px; }
.aside-card .law { font-size: 14px; color: var(--sec); padding: 10px 0; border-bottom: 1px dashed var(--line); }
.aside-card .law b { color: var(--dark); }
.case-link { display: block; font-size: 14px; color: var(--caramel); padding: 10px 0; border-bottom: 1px dashed var(--line); }

/* ---------------- 品牌页 ---------------- */
.brand-board { background: var(--bg); padding: 0 0 60px; }
.brand-sec { margin-bottom: 44px; }
.brand-sec .label { font-size: 15px; color: var(--caramel); letter-spacing: 1px; margin-bottom: 18px; font-weight: 600; }
.brand-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 44px; box-shadow: var(--shadow-sm); }
.lockup { display: flex; align-items: center; gap: 22px; justify-content: center; }
.lockup .mark { width: 96px; height: 96px; }
.lockup .word .zh { font-family: "Noto Serif SC", serif; font-weight: 700; font-size: 56px; color: var(--dark); letter-spacing: 3px; }
.lockup .word .en { font-size: 17px; color: var(--sec); }
.var-row { display: flex; gap: 24px; flex-wrap: wrap; }
.var-item { width: 300px; border: 1px solid var(--line); border-radius: 14px; padding: 24px; text-align: center; }
.var-item.dark { background: var(--footer); border: none; }
.var-item .mark { width: 72px; height: 72px; margin: 0 auto 14px; }
.var-item .note { font-size: 13px; color: var(--sec); }
.var-item.dark .note { color: #C9B79B; }
.fav-row { display: flex; align-items: center; gap: 28px; }
.fav-row .mark { border-radius: 11px; }
.palette { display: flex; gap: 16px; flex-wrap: wrap; }
.swatch { width: 140px; }
.swatch .block { height: 72px; border-radius: 8px; margin-bottom: 8px; }
.swatch .name { font-size: 12.5px; color: var(--dark); }
.typo-card .zh { font-family: "Noto Serif SC", serif; font-weight: 700; font-size: 56px; color: var(--dark); letter-spacing: 4px; }
.typo-card .en { font-size: 22px; color: var(--dark); letter-spacing: 6px; margin: 10px 0; }
.typo-card .body { font-size: 16px; color: var(--sec); max-width: 860px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
  .hero-inner { flex-direction: column; }
  .hero-art { width: 100%; height: 260px; }
  .profile-card { flex-direction: column; text-align: center; }
  .cols { grid-template-columns: repeat(2, 1fr); }
  .res-grid { grid-template-columns: repeat(2, 1fr); }
  .layout { flex-direction: column; }
  .aside { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .aside-card { flex: 1; min-width: 240px; }
  .article-body { flex-direction: column; }
  .article-aside { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .article-aside .aside-card { flex: 1; min-width: 240px; }
  .article-hero .inner { flex-direction: column; }
  .article-hero .himg { width: 100%; }
  .nav-links { display: none; }
}
