/* ==========================================================================
   人人手工网 · 视觉系统
   绿色系 / 手作温度 / 移动优先 / 响应式
   ========================================================================== */

:root {
  /* 主色：深林绿 → 嫩芽绿 */
  --g900: #0b3b2a;
  --g800: #10503a;
  --g700: #14684a;
  --g600: #1c7c58;
  --g500: #2a9d70;
  --g400: #4db98a;
  --g300: #8ed3b0;
  --g200: #c4e8d5;
  --g100: #e8f6ee;
  --g50:  #f3fbf7;

  /* 中性 */
  --ink:   #1b2621;
  --ink-2: #3d4d45;
  --muted: #6f8279;
  --line:  #e2ece6;
  --paper: #fbfaf6;
  --white: #ffffff;

  /* 强调（暖陶土色，用于价格/标签点缀） */
  --clay: #c9743f;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(16, 80, 58, .06), 0 2px 8px rgba(16, 80, 58, .05);
  --shadow: 0 4px 14px rgba(16, 80, 58, .08), 0 12px 32px rgba(16, 80, 58, .06);
  --shadow-lg: 0 18px 48px rgba(16, 80, 58, .16);

  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;

  --wrap: 1200px;
  --header-h: 64px;
}

/* --------------------------------------------------------------------------
   基础
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--g700); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--g500); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--g900);
  line-height: 1.35;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: .01em;
}

h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 200;
  background: var(--g700); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

/* --------------------------------------------------------------------------
   顶部信息条 + 主导航
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--g900);
  color: var(--g200);
  font-size: 12.5px;
  letter-spacing: .04em;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 34px; gap: 12px;
}
.topbar a { color: var(--g200); }
.topbar a:hover { color: #fff; }
.topbar .tb-left { display: flex; align-items: center; gap: 8px; }
.topbar .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--g400);
  box-shadow: 0 0 0 4px rgba(77, 185, 138, .18);
}
.topbar .tb-right { display: flex; gap: 16px; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 250, 246, .88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; gap: 22px;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--serif); font-size: 21px; font-weight: 700;
  color: var(--g900); letter-spacing: .06em;
}
.brand-tag { font-size: 10.5px; color: var(--muted); letter-spacing: .22em; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav > li { list-style: none; position: relative; }
.nav a {
  display: block; padding: 8px 12px; border-radius: 999px;
  font-size: 15px; color: var(--ink-2); white-space: nowrap;
}
.nav a:hover, .nav a.is-active {
  background: var(--g100); color: var(--g800);
}
.nav a.is-active { font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }

.search-mini {
  display: flex; align-items: center; gap: 6px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 6px 4px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.search-mini:focus-within {
  border-color: var(--g300);
  box-shadow: 0 0 0 4px rgba(142, 211, 176, .25);
}
.search-mini input {
  border: 0; outline: 0; background: transparent; font-size: 14px;
  width: 132px; color: var(--ink); font-family: inherit;
}
.search-mini button {
  border: 0; cursor: pointer; background: var(--g700); color: #fff;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
}
.search-mini button:hover { background: var(--g600); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; cursor: pointer; font-family: inherit;
  font-size: 14px; font-weight: 600; padding: 9px 18px; border-radius: 999px;
  background: var(--g700); color: #fff; transition: transform .16s, background .2s, box-shadow .2s;
}
.btn:hover { background: var(--g600); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--g800); border: 1px solid var(--g200); }
.btn-ghost:hover { background: var(--g100); color: var(--g900); }

.burger {
  display: none; border: 1px solid var(--line); background: #fff;
  width: 40px; height: 40px; border-radius: 12px; cursor: pointer;
  place-items: center; padding: 0;
}
.burger span {
  display: block; width: 18px; height: 2px; background: var(--g800);
  position: relative; transition: .2s;
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px;
  background: var(--g800); transition: .2s;
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

/* 移动抽屉 */
.drawer {
  position: fixed; inset: 0; z-index: 150; display: none;
  background: rgba(11, 59, 42, .42);
  backdrop-filter: blur(2px);
}
.drawer.is-open { display: block; }
.drawer-panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(86vw, 340px);
  background: var(--paper); box-shadow: var(--shadow-lg);
  padding: 18px; overflow-y: auto;
  transform: translateX(100%); transition: transform .26s ease;
}
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.drawer-close {
  border: 0; background: var(--g100); color: var(--g900);
  width: 36px; height: 36px; border-radius: 10px; font-size: 18px; cursor: pointer;
}
.drawer nav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 6px; border-bottom: 1px dashed var(--line); color: var(--ink-2);
}
.drawer nav a:hover { color: var(--g700); }
.drawer .sub { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 6px 0; }
.drawer .sub a {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 12px; font-size: 13px; color: var(--muted); background: #fff;
}

/* --------------------------------------------------------------------------
   首页 · 首屏
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 420px at 82% -12%, rgba(142, 211, 176, .55), transparent 60%),
    radial-gradient(900px 380px at 8% 0%, rgba(196, 232, 213, .6), transparent 62%),
    linear-gradient(180deg, var(--g50), var(--paper) 72%);
  border-bottom: 1px solid var(--line);
}

.hero-inner { padding: 44px 0 32px; }

.hero-copy { max-width: 760px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--g700); background: rgba(255, 255, 255, .72);
  border: 1px solid var(--g200); border-radius: 999px; padding: 6px 14px;
  margin-bottom: 18px;
}
.hero h1 { margin-bottom: .35em; letter-spacing: .02em; }
.hero h1 em {
  font-style: normal; color: var(--g600);
  background: linear-gradient(180deg, transparent 64%, var(--g200) 64%);
}
.hero p.lead {
  font-size: 16.5px; color: var(--ink-2); max-width: 60ch; margin-bottom: 22px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero-stats {
  display: flex; gap: 28px; margin-top: 30px; flex-wrap: wrap;
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b {
  font-family: var(--serif); font-size: 24px; color: var(--g800); line-height: 1.2;
}
.hero-stats span { font-size: 12.5px; color: var(--muted); letter-spacing: .06em; }

/* --------------------------------------------------------------------------
   区块通用
   -------------------------------------------------------------------------- */
.section { padding: 46px 0; }
.section.tight { padding: 28px 0; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 22px;
}
.section-head .kicker {
  font-size: 12px; letter-spacing: .2em; color: var(--g600);
  text-transform: uppercase; margin-bottom: 6px;
}
.section-head h2 { margin: 0; }
.section-head .more {
  font-size: 14px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center;
  white-space: nowrap;
}
.section-head .more:hover { color: var(--g700); }

/* 频道快捷入口 */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips a {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px; font-size: 14.5px; color: var(--ink-2);
  box-shadow: var(--shadow-sm); transition: .18s;
}
.chips a:hover {
  border-color: var(--g300); color: var(--g800);
  transform: translateY(-2px); box-shadow: var(--shadow);
}
.chips .ico { font-size: 16px; }

/* 分类卡网格 */
.cat-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
}
.cat-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(160deg, #fff, var(--g50));
  border: 1px solid var(--line); padding: 18px 16px;
  transition: .2s; min-height: 104px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.cat-card:hover {
  transform: translateY(-3px); border-color: var(--g300); box-shadow: var(--shadow);
}
.cat-card b { font-family: var(--serif); font-size: 17px; color: var(--g900); }
.cat-card span { font-size: 12.5px; color: var(--muted); }
.cat-card .num {
  position: absolute; right: 12px; top: 10px;
  font-family: var(--serif); font-size: 26px; color: var(--g200); font-weight: 700;
}

/* --------------------------------------------------------------------------
   文章卡片
   -------------------------------------------------------------------------- */
.grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--g200); }

.card-thumb {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--g100);
}
.card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.card:hover .card-thumb img { transform: scale(1.05); }

.card-cat {
  position: absolute; left: 10px; top: 10px;
  background: rgba(11, 59, 42, .72); color: #fff;
  font-size: 11.5px; padding: 3px 10px; border-radius: 999px;
  backdrop-filter: blur(4px); letter-spacing: .04em;
}

.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card-title {
  font-family: var(--serif); font-size: 16px; line-height: 1.5;
  color: var(--ink); margin: 0 0 8px; font-weight: 700;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card:hover .card-title { color: var(--g700); }
.card-desc {
  font-size: 13.5px; color: var(--muted); margin: 0 0 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: var(--muted); gap: 8px;
}
.card-meta .views { display: inline-flex; align-items: center; gap: 4px; }

/* 横向列表卡（侧栏/紧凑列表） */
.media-list { display: grid; gap: 14px; }
.media {
  display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center;
}
.media .thumb {
  width: 96px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--g100);
}
.media .thumb img { width: 100%; height: 100%; object-fit: cover; }
.media h3 {
  font-size: 14.5px; margin: 0 0 4px; font-family: var(--sans); font-weight: 600;
  line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.media time { font-size: 12px; color: var(--muted); }

/* 排行榜 */
.rank-list { counter-reset: r; display: grid; gap: 2px; }
.rank-list li {
  list-style: none; counter-increment: r; display: grid;
  grid-template-columns: 22px 1fr; gap: 10px; align-items: start;
  padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px;
}
.rank-list li:last-child { border-bottom: 0; }
.rank-list li::before {
  content: counter(r); font-family: var(--serif); font-weight: 700;
  color: var(--g300); font-size: 15px; line-height: 1.6;
}
.rank-list li:nth-child(-n+3)::before { color: var(--g600); }
.rank-list a { color: var(--ink-2); }
.rank-list a:hover { color: var(--g700); }

/* --------------------------------------------------------------------------
   布局：主内容 + 侧栏
   -------------------------------------------------------------------------- */
.layout {
  display: grid; gap: 34px;
  grid-template-columns: minmax(0, 1fr) 312px;
  align-items: start;
}
.sidebar { display: grid; gap: 22px; position: sticky; top: calc(var(--header-h) + 18px); }

.panel {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
}
.panel-title {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--serif); font-size: 15.5px; font-weight: 700;
  color: var(--g900); margin: 0 0 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.panel-title::before {
  content: ""; width: 4px; height: 16px; border-radius: 2px;
  background: linear-gradient(180deg, var(--g400), var(--g700));
}

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  font-size: 12.5px; padding: 5px 11px; border-radius: 999px;
  background: var(--g50); color: var(--g700); border: 1px solid var(--g100);
}
.tag-cloud a:hover { background: var(--g100); border-color: var(--g200); }

/* --------------------------------------------------------------------------
   面包屑
   -------------------------------------------------------------------------- */
.crumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted); padding: 18px 0 6px;
}
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--g700); }
.crumb .sep { color: var(--g200); }
.crumb .cur { color: var(--ink-2); }

/* --------------------------------------------------------------------------
   列表页
   -------------------------------------------------------------------------- */
.page-hero {
  background: linear-gradient(180deg, var(--g50), var(--paper));
  border-bottom: 1px solid var(--line); padding: 26px 0 24px;
}
.page-hero h1 { margin: 0 0 8px; }
.page-hero .desc { color: var(--muted); max-width: 70ch; font-size: 14.5px; margin: 0; }
.page-hero .count { font-size: 13px; color: var(--g600); margin-top: 10px; }

.subcats {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px;
}
.subcats a {
  font-size: 13.5px; padding: 7px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
}
.subcats a:hover, .subcats a.on {
  background: var(--g700); border-color: var(--g700); color: #fff;
}

/* 分页 */
.pager {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin: 40px 0 10px;
}
.pager a, .pager span {
  min-width: 40px; height: 40px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); font-size: 14px;
}
.pager a:hover { border-color: var(--g300); color: var(--g700); }
.pager .cur { background: var(--g700); border-color: var(--g700); color: #fff; }
.pager .disabled { opacity: .45; }

/* --------------------------------------------------------------------------
   内容页
   -------------------------------------------------------------------------- */
.article-head { padding: 8px 0 4px; }
.article-head h1 { margin: 6px 0 14px; }
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  font-size: 13px; color: var(--muted);
  padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.article-meta .pill {
  background: var(--g100); color: var(--g700); border-radius: 999px;
  padding: 3px 11px; font-size: 12.5px;
}

.article-body {
  font-size: 16.5px; line-height: 1.95; color: var(--ink-2);
  padding: 24px 0 8px; overflow-wrap: break-word;
}
.article-body h2, .article-body h3 {
  margin: 1.8em 0 .7em; padding-left: 12px;
  border-left: 4px solid var(--g400); line-height: 1.5;
}
.article-body p { margin: 0 0 1.1em; }
.article-body img {
  border-radius: var(--radius-sm); margin: 1.2em auto;
  box-shadow: var(--shadow-sm); max-width: 100%; height: auto;
}
.article-body a { border-bottom: 1px solid var(--g200); }
.article-body blockquote {
  margin: 1.4em 0; padding: 14px 18px; background: var(--g50);
  border-left: 3px solid var(--g400); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-2);
}
.article-body ul, .article-body ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.article-body li { margin-bottom: .4em; }

.article-tags {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 18px 0; border-top: 1px solid var(--line); margin-top: 10px;
}
.article-tags .label { font-size: 13px; color: var(--muted); }

.nav-prev-next {
  display: grid; gap: 10px; grid-template-columns: 1fr 1fr;
  margin: 6px 0 4px;
}
.nav-prev-next a {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 14px; color: var(--ink-2);
  display: flex; gap: 8px; align-items: flex-start;
}
.nav-prev-next a:hover { border-color: var(--g300); color: var(--g700); }
.nav-prev-next .k { color: var(--g500); font-size: 12px; flex: none; }

/* 相关阅读 */
.rel-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.rel-card {
  display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center;
}
.rel-card .thumb { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--g100); }
.rel-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.rel-card h4 { font-size: 14px; margin: 0; font-family: var(--sans); font-weight: 600; line-height: 1.5; }

/* 评论 */
.pl-box { margin-top: 8px; }
.pl-box .pl-form textarea {
  width: 100%; min-height: 96px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14.5px; resize: vertical; background: #fff;
  color: var(--ink);
}
.pl-box .pl-form textarea:focus { outline: 0; border-color: var(--g300); box-shadow: 0 0 0 4px rgba(142,211,176,.22); }
.pl-box .row { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.pl-box input[type="text"] {
  flex: 1 1 160px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-family: inherit; font-size: 14px;
}

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: 56px; background: var(--g900); color: var(--g200);
  padding: 46px 0 0;
}
.footer-grid {
  display: grid; gap: 30px;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
}
.site-footer h4 {
  color: #fff; font-family: var(--sans); font-size: 14px;
  letter-spacing: .08em; margin-bottom: 14px;
}
.site-footer a { color: var(--g200); font-size: 13.5px; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer .about { font-size: 13.5px; line-height: 1.9; color: rgba(196, 232, 213, .8); max-width: 34ch; }
.footer-bottom {
  margin-top: 36px; border-top: 1px solid rgba(196, 232, 213, .16);
  padding: 18px 0; font-size: 12.5px; color: rgba(196, 232, 213, .62);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand .brand-name { color: #fff; font-size: 19px; }
.footer-brand .brand-tag { color: rgba(196,232,213,.7); }

/* 返回顶部 */
.to-top {
  position: fixed; right: 18px; bottom: 22px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--g200);
  background: rgba(255, 255, 255, .9); color: var(--g700); cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
  opacity: 0; pointer-events: none; transition: .22s;
  backdrop-filter: blur(6px);
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--g700); color: #fff; }

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: grid; }
  .search-mini input { width: 92px; }
  .hero-inner { padding: 30px 0 24px; }
  .section { padding: 34px 0; }
}

@media (max-width: 620px) {
  :root { --header-h: 58px; }
  .wrap { padding: 0 16px; }
  .topbar .tb-right { display: none; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 18px; }
  .brand-tag { display: none; }
  .search-mini { display: none; }
  .grid { gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .card-body { padding: 10px 12px 12px; }
  .card-title { font-size: 14px; }
  .card-desc { display: none; }
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
  .hero-stats { gap: 18px; }
  .article-body { font-size: 16px; line-height: 1.9; }
  .nav-prev-next { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .rel-grid { grid-template-columns: 1fr; }
}

/* 打印 */
@media print {
  .site-header, .site-footer, .sidebar, .to-top, .topbar, .pager { display: none !important; }
  .article-body { font-size: 12pt; color: #000; }
}

/* 上一篇/下一篇（帝国CMS 标签直出） */
.nav-prev-next { display: block; font-size: 14px; color: var(--muted); line-height: 2; }
.nav-prev-next a { background: none; border: 0; padding: 0; color: var(--g700); }
.nav-prev-next a:hover { color: var(--g500); text-decoration: underline; }
/* 评论列表 */
.comment-list { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 16px; }
.comment-list li { background: var(--g50); border: 1px solid var(--g100); border-radius: var(--radius-sm); padding: 12px 14px; }
.comment-list .cm-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.comment-list .cm-head b { color: var(--g800); font-weight: 600; }
.comment-list p { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.8; }
/* 来源标注 */
.source-note {
  margin-top: 28px; padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: 12.5px; color: var(--muted); line-height: 1.9;
}
/* --------------------------------------------------------------------------
   首页首屏插画拼贴 + 本期精选（重绘位）
   -------------------------------------------------------------------------- */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: 44px;
  align-items: center;
}

.hero-art {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  transform: rotate(-1.2deg);
}

.art-tile {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(196, 232, 213, .9);
  box-shadow: 0 10px 30px rgba(16, 80, 58, .12);
  transition: transform .3s ease, box-shadow .3s ease;
}
.art-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-tile.t1 { transform: translateY(-12px) rotate(-2.5deg); }
.art-tile.t2 { transform: translateY(14px) rotate(2deg); }
.art-tile.t3 { transform: translateY(-6px) rotate(1.5deg); }
.art-tile.t4 { transform: translateY(10px) rotate(-1.5deg); }
.hero-art:hover .art-tile { transform: none; }

.picks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.pick {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.pick:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--g200); }
.pick-art { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--g50); }
.pick-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pick:hover .pick-art img { transform: scale(1.04); }
.pick-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 5px; }
.pick-body b { font-family: var(--serif); font-size: 17px; color: var(--g900); }
.pick-body span { font-size: 13.5px; color: var(--muted); line-height: 1.7; }

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-art { max-width: 540px; }
}

@media (max-width: 760px) {
  .picks { grid-template-columns: 1fr; gap: 14px; }
  .hero-art { gap: 10px; border-radius: 14px; }
  .art-tile { border-radius: 14px; }
  .art-tile.t1, .art-tile.t2, .art-tile.t3, .art-tile.t4 { transform: none; }
}
/* 会员中心 */
.member-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.member-stats .panel { display: flex; flex-direction: column; gap: 4px; }
.member-stats b { font-family: var(--serif); font-size: 22px; color: var(--g800); }
.member-stats span { font-size: 12.5px; color: var(--muted); }
.member-guest { text-align: left; }
.fav-btn { padding: 6px 14px; font-size: 13px; }
@media (max-width: 620px) {
  .member-stats { grid-template-columns: 1fr; }
  .article-meta .fav-btn { margin-left: 0 !important; }
}
/* 静态信息页 */
.prose {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
}
.prose h2 {
  font-size: 1.22rem;
  margin: 30px 0 10px;
  padding-left: 12px;
  border-left: 4px solid var(--g400);
}
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-2); font-size: 15.5px; line-height: 1.95; margin: 0 0 12px; }
@media (max-width: 620px) {
  .prose { padding: 20px 18px; }
  .prose p { font-size: 15px; }
}
/* 图片灯箱 */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(8, 40, 29, .9);
  display: grid; place-items: center; padding: 24px;
  backdrop-filter: blur(4px);
  animation: lbIn .18s ease;
}
@keyframes lbIn { from { opacity: 0 } to { opacity: 1 } }
.lightbox img {
  max-width: 94vw; max-height: 90vh; width: auto; height: auto;
  border-radius: 12px; box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
  background: #fff;
}
.lightbox-close {
  position: absolute; top: 16px; right: 18px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .12); color: #fff;
  font-size: 24px; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .24); }
.article-body img { cursor: zoom-in; }
/* 站点地图页 */
.map-block { margin-bottom: 30px; padding-bottom: 22px; border-bottom: 1px dashed var(--line); }
.map-block h2 {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 1.2rem; margin-bottom: 12px;
}
.map-block h2 a { color: var(--g900); }
.map-count { font-family: var(--sans); font-size: 12.5px; color: var(--muted); font-weight: 400; }
.map-links { display: flex; flex-wrap: wrap; gap: 8px; }
.map-links a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; padding: 6px 12px; border-radius: 999px;
  background: var(--g50); border: 1px solid var(--g100); color: var(--g800);
}
.map-links a span { font-size: 11.5px; color: var(--muted); }
.map-links a:hover { background: var(--g100); border-color: var(--g200); }
.map-articles { columns: 3; column-gap: 26px; }
.map-articles a {
  display: block; padding: 5px 0; font-size: 14px; color: var(--ink-2);
  break-inside: avoid; border-bottom: 1px dotted var(--line);
}
.map-articles a:hover { color: var(--g700); }
@media (max-width: 900px) { .map-articles { columns: 2; } }
@media (max-width: 620px) { .map-articles { columns: 1; } }
/* 搜索关键词高亮 */
mark { background: #fff2b8; color: inherit; padding: 0 2px; border-radius: 3px; }
/* ---------- 登录 / 注册 ---------- */
.auth-wrap { display:flex; justify-content:center; padding:56px 18px 72px; }
.auth-card {
  width:100%; max-width:430px; background:#fff; border:1px solid var(--line);
  border-radius:20px; padding:30px 28px 26px; box-shadow:0 18px 46px rgba(23,61,43,.09);
}
.auth-brand { display:flex; gap:14px; align-items:center; margin-bottom:22px; }
.auth-brand h1 { font-size:22px; margin:0 0 4px; letter-spacing:-.01em; }
.auth-brand p { margin:0; font-size:13.5px; color:var(--muted); }
.auth-form { display:flex; flex-direction:column; gap:16px; }
.field { display:flex; flex-direction:column; gap:6px; }
.field > span { font-size:13.5px; font-weight:600; color:var(--ink); }
.field > span small { font-weight:400; color:var(--muted); }
.field input {
  width:100%; padding:11px 13px; border:1px solid var(--line); border-radius:10px;
  font-size:15px; background:#fbfdfb; transition:border-color .15s, box-shadow .15s;
}
.field input:focus {
  outline:none; border-color:var(--green); background:#fff;
  box-shadow:0 0 0 3px rgba(37,124,90,.12);
}
.field em { font-style:normal; font-size:12px; color:var(--muted); }
.btn-block { width:100%; justify-content:center; padding:12px 18px; font-size:15px; }
.auth-err {
  background:#fdeced; color:#a32f38; border:1px solid #f5c9cd;
  border-radius:10px; padding:10px 13px; font-size:13.5px; margin-bottom:16px;
}
.auth-note { margin:18px 0 0; font-size:13.5px; color:var(--muted); text-align:center; }
.auth-note a { color:var(--green-d); font-weight:600; }
.auth-fine { margin:2px 0 0; font-size:12px; color:var(--muted); line-height:1.6; }
.user-menu { display:flex; gap:14px; align-items:center; font-size:13.5px; }
.user-menu b { font-weight:600; color:var(--ink); }
@media (max-width:520px) {
  .auth-wrap { padding:32px 14px 48px; }
  .auth-card { padding:24px 20px; border-radius:16px; }
}
/* ---------- 登录 / 注册：全屏底图 + 右侧信息卡 ---------- */
.auth-body { background:#0b241b; }
.auth-page {
  position:relative; min-height:100vh; min-height:100dvh;
  background:url(/skin/rrsg/img/auth-bg.svg) center center / cover no-repeat fixed;
  display:flex; flex-direction:column;
}
.auth-page::before {
  content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(100deg, rgba(4,20,14,.62) 0%, rgba(4,20,14,.30) 42%, rgba(4,20,14,.80) 100%);
}
.auth-stage {
  position:relative; z-index:1; display:flex; flex-direction:column;
  width:100%; max-width:1280px; margin:0 auto; padding:24px 40px 18px; flex:1;
}
.auth-top { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.auth-brand {
  display:inline-flex; align-items:center; gap:9px; color:#eafff1; font-weight:700;
  font-size:16px; letter-spacing:.01em; text-decoration:none;
}
.auth-brand:hover { color:#fff; }
.auth-back { color:rgba(234,255,241,.72); font-size:13.5px; text-decoration:none; }
.auth-back:hover { color:#fff; }

.auth-panel {
  flex:1; display:grid; grid-template-columns:1fr minmax(380px, 440px);
  align-items:center; gap:48px; padding:26px 0 20px;
}
.auth-aside { color:rgba(234,255,241,.9); max-width:430px; }
.auth-aside-quote {
  font-family:var(--serif, inherit); font-size:clamp(26px, 3.4vw, 40px);
  line-height:1.32; margin:0 0 22px; letter-spacing:-.01em;
  text-shadow:0 2px 18px rgba(0,0,0,.35);
}
.auth-aside-list { margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:10px; }
.auth-aside-list li {
  position:relative; padding-left:20px; font-size:14px; color:rgba(234,255,241,.78);
}
.auth-aside-list li::before {
  content:""; position:absolute; left:2px; top:8px; width:7px; height:7px;
  border-radius:50%; background:#8ff0b6; box-shadow:0 0 0 4px rgba(143,240,182,.16);
}

.auth-card {
  background:#fff; border-radius:20px; padding:32px 32px 26px;
  box-shadow:0 30px 70px rgba(0,0,0,.38), 0 2px 0 rgba(255,255,255,.5) inset;
}
.auth-kicker {
  margin:0 0 8px; font-size:11.5px; letter-spacing:.16em; text-transform:uppercase;
  color:var(--green-d, #256b4e); font-weight:700;
}
.auth-title { margin:0 0 8px; font-size:26px; letter-spacing:-.02em; color:#12291f; }
.auth-lead { margin:0 0 22px; font-size:13.5px; line-height:1.7; color:#68796f; }
.auth-note { margin:16px 0 0; font-size:13.5px; color:#68796f; text-align:center; }
.auth-note a { color:var(--green-d, #256b4e); font-weight:600; }
.auth-fine { margin:2px 0 0; font-size:12px; color:#8a9a91; line-height:1.6; }
.field-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.auth-bottom {
  display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap;
  padding-top:14px; font-size:12.5px; color:rgba(234,255,241,.55);
}
.auth-bottom a { color:rgba(234,255,241,.72); text-decoration:none; }
.auth-bottom a:hover { color:#fff; }

@media (max-width:1000px) {
  .auth-panel { grid-template-columns:1fr; gap:26px; }
  .auth-aside { display:none; }
  .auth-card { max-width:460px; margin:0 auto; }
}
@media (max-width:560px) {
  .auth-stage { padding:18px 16px 14px; }
  .auth-card { padding:24px 20px 20px; border-radius:16px; }
  .auth-title { font-size:22px; }
  .field-row { grid-template-columns:1fr; }
  .auth-page { background-attachment:scroll; }
}
/* ---------- 会员中心：统计卡 / 收藏列表 / 分页 ---------- */
.member-stats a.mstat { text-decoration:none; color:inherit; position:relative; transition:border-color .15s, box-shadow .15s, transform .15s; }
.member-stats a.mstat:hover { border-color:var(--g200, #bfe0cd); box-shadow:0 8px 20px rgba(23,61,43,.07); transform:translateY(-1px); }
.member-stats a.mstat.is-on { border-color:var(--green); box-shadow:0 0 0 1px var(--green) inset; }
.member-stats a.mstat.is-on span { color:var(--green-d); font-weight:600; }

.fav-list { list-style:none; margin:20px 0 0; padding:0; display:grid; gap:14px; }
.fav-item {
  display:flex; gap:16px; align-items:center; padding:12px; background:#fff;
  border:1px solid var(--line); border-radius:14px; transition:box-shadow .15s, border-color .15s;
}
.fav-item:hover { border-color:var(--g200, #bfe0cd); box-shadow:0 8px 22px rgba(23,61,43,.07); }
.fav-thumb {
  flex:0 0 132px; width:132px; height:88px; border-radius:10px; overflow:hidden;
  background:var(--g50); display:flex; align-items:center; justify-content:center; text-decoration:none;
}
.fav-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.fav-thumb-ph { font-family:var(--serif); font-size:20px; color:var(--g600, #4f8a6d); letter-spacing:.05em; }
.fav-body { min-width:0; flex:1; }
.fav-title {
  display:block; font-family:var(--serif); font-size:16.5px; line-height:1.45; color:var(--ink);
  text-decoration:none; margin-bottom:6px;
}
.fav-title:hover { color:var(--green-d); }
.fav-meta { margin:0; display:flex; flex-wrap:wrap; gap:6px; align-items:center; font-size:12.5px; color:var(--muted); }
.fav-meta .dot { opacity:.5; }
.fav-meta .fav-date { color:var(--green-d); font-weight:600; }

@media (max-width:600px) {
  .fav-item { gap:12px; padding:10px; }
  .fav-thumb { flex:0 0 96px; width:96px; height:68px; }
  .fav-title { font-size:15px; }
}
/* ---------- 难度星级 ---------- */
.article-meta .difficulty { display:inline-flex; align-items:center; gap:4px; color:var(--muted); }
.article-meta .stars { font-style:normal; font-weight:400; letter-spacing:1.5px; color:#e8a33d; font-size:13.5px; }
.article-meta .stars i { font-style:normal; color:#d6dbd8; }
/* ---------- 列表卡片上的难度标签 ---------- */
.card-meta .card-diff { margin-left:auto; display:inline-flex; align-items:center; }
.card-meta .card-diff .stars { font-size:11.5px; letter-spacing:1px; }
.card-meta .diff-badge { color:#e8a33d; }
/* ---------- 安全提示块 ---------- */
.safety-note {
  border:1px solid #f0d3a8; background:#fff8ec; border-left:4px solid #e8a33d;
  border-radius:10px; padding:14px 16px; margin:0 0 22px;
}
.safety-note b { display:block; color:#a86a12; font-size:14px; margin-bottom:6px; letter-spacing:.02em; }
.safety-note p { margin:0; font-size:14px; line-height:1.8; color:#6b5836; }
/* ---------- 手工副业指南 ---------- */
.table-scroll { overflow-x:auto; -webkit-overflow-scrolling:touch; }
.hustle-table { width:100%; border-collapse:collapse; font-size:13.5px; min-width:720px;
  border:1px solid #d7e4dc; background:#fff; }
.hustle-table th { text-align:left; padding:10px 13px; background:var(--g50); color:var(--g800);
  font-weight:600; border:1px solid #dde8e2; white-space:nowrap; }
.hustle-table td { padding:10px 13px; border:1px solid #dde8e2; color:var(--ink-2); vertical-align:top; line-height:1.7; }
.hustle-table tbody tr:nth-child(even) td { background:#fafcfb; }
.hustle-table tbody tr:hover td { background:#f3f9f5; }
.hustle-table tbody td:first-child { color:var(--ink); }
.hustle-table td.price { color:#b3721a; font-weight:600; white-space:nowrap; }
.hustle-table td.note { color:var(--muted); font-size:12.5px; }
.hustle-list { margin:0; padding-left:20px; display:flex; flex-direction:column; gap:10px; }
.hustle-list li { font-size:14px; line-height:1.85; color:var(--ink-2); }
.hustle-list b { color:var(--g800); }
.hustle-p { margin:6px 0 0; font-size:14px; line-height:1.85; color:var(--ink-2); }
.grid-2 { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
@media (max-width:760px) { .grid-2 { grid-template-columns:1fr; } }
/* ---------- 正文表格（带表格线） ---------- */
.article-body table {
  width:100%; border-collapse:collapse; margin:22px 0 24px;
  font-size:14px; border:1px solid #d7e4dc; background:#fff;
}
.article-body caption { caption-side:top; text-align:left; font-size:13px; color:var(--muted); padding:0 0 8px; }
.article-body th, .article-body td {
  border:1px solid #dde8e2; padding:10px 13px; text-align:left; vertical-align:top; line-height:1.7;
}
.article-body thead th { background:var(--g50); color:var(--g800); font-weight:600; white-space:nowrap; }
.article-body tbody tr:nth-child(even) td { background:#fafcfb; }
.article-body tbody tr:hover td { background:#f3f9f5; }
.article-body tbody td:first-child { color:var(--ink); font-weight:500; }
@media (max-width:640px) {
  .article-body table { font-size:12.5px; }
  .article-body th, .article-body td { padding:8px 9px; }
}