/* =========================================================
   装修陪跑笔记 · 主题样式
   色彩：暖白纸面 + 墨绿主色 + 陶土橙点缀（家居/可信赖）
   ========================================================= */

:root {
  --ink: #1d201e;
  --ink-2: #434a46;
  --muted: #7b837d;
  --paper: #faf8f4;
  --card: #ffffff;
  --line: #e8e2d7;
  --line-2: #f1ece3;
  --brand: #1f5d4c;
  --brand-2: #2b7360;
  --brand-soft: #eaf2ee;
  --accent: #c86a35;
  --accent-soft: #fbeee2;
  --danger: #b4443a;
  --shadow: 0 1px 2px rgba(29, 32, 30, .04), 0 8px 24px rgba(29, 32, 30, .06);
  --shadow-lg: 0 2px 6px rgba(29, 32, 30, .06), 0 18px 40px rgba(29, 32, 30, .10);
  --radius: 14px;
  --radius-s: 9px;
  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { 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;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font-family: inherit; font-size: 15px; color: inherit; }

.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.tiny { font-size: 12.5px; }

/* ---------- 启动页 ---------- */
.boot-splash { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: var(--muted); }
.boot-mark { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: .9; } 50% { transform: scale(.86); opacity: .55; } }

/* ---------- 顶栏 ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(250, 248, 244, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-2); }
.topbar-inner { max-width: 1120px; margin: 0 auto; padding: 0 20px; height: 62px; display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .2px; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #f6c77d; display: grid; place-items: center; font-size: 15px; font-weight: 700; }
.brand-txt { font-size: 16.5px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 7px 13px; border-radius: 999px; font-size: 14.5px; color: var(--ink-2); transition: .18s; }
.nav a:hover { background: var(--line-2); }
.nav a.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 8px; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 18px; border-radius: 999px; border: 1px solid transparent; font-size: 14.5px; cursor: pointer; transition: .18s; background: var(--line-2); color: var(--ink); white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(31, 93, 76, .22); }
.btn.primary:hover { background: var(--brand-2); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink-2); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.btn.danger { background: #fdeeea; color: var(--danger); }
.btn.tiny { padding: 4px 11px; font-size: 12.5px; border-radius: 8px; }
.btn.wide { width: 100%; }
.small-btn { padding: 7px 15px; font-size: 13.5px; }

/* ---------- Hero ---------- */
.hero { padding: 68px 20px 40px; background: radial-gradient(120% 100% at 50% 0%, #f2efe6 0%, var(--paper) 70%); border-bottom: 1px solid var(--line-2); }
.hero-inner { max-width: 860px; margin: 0 auto; text-align: center; }
.hero-kicker { font-size: 12px; letter-spacing: 3px; color: var(--accent); font-weight: 700; }
.hero h1 { font-size: clamp(30px, 5.2vw, 46px); line-height: 1.28; margin: 14px 0 16px; font-weight: 800; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; color: var(--brand); position: relative; }
.hero-sub { max-width: 620px; margin: 0 auto 26px; color: var(--ink-2); font-size: 16.5px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-search { margin: 30px auto 0; max-width: 520px; display: flex; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 20px; box-shadow: var(--shadow); }
.hero-search input { flex: 1; border: 0; outline: 0; background: none; font-size: 15px; min-width: 0; }

/* ---------- 首页四大板块 ---------- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); gap: 16px; margin-top: 28px; }
.pillar { display: flex; flex-direction: column; gap: 7px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 18px; transition: .2s; }
.pillar:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-3px); }
.pillar-tag { align-self: flex-start; font-size: 11.5px; letter-spacing: 1px; padding: 2px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.pillar h3 { margin: 2px 0 0; font-size: 17px; font-weight: 750; }
.pillar p { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--muted); }
.pillar-more { margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--brand); font-weight: 600; }

/* ---------- 版式容器 ---------- */
.main { max-width: 1120px; margin: 0 auto; padding: 30px 20px 70px; min-height: 60vh; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin: 34px 0 16px; }
.sec-head h2 { font-size: 21px; margin: 0; font-weight: 750; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 8px 0 22px; }
.page-head h1 { font-size: 27px; margin: 0 0 4px; font-weight: 800; }
.loading { color: var(--muted); }

/* ---------- 精选大图 ---------- */
.feature { display: grid; grid-template-columns: 1.15fr 1fr; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .22s; }
.feature:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.feature-cover { min-height: 250px; background-size: cover; background-position: center; }
.feature-body { padding: 30px 32px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.feature-badge { align-self: flex-start; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; letter-spacing: 1px; }
.feature-body h2 { margin: 4px 0 0; font-size: 24px; line-height: 1.4; font-weight: 750; }
.feature-body p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- 文章卡片 ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 20px; }
.post-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .22s; box-shadow: 0 1px 2px rgba(29,32,30,.03); }
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: #dcd4c5; }
.card-link { display: block; }
.card-cover { height: 158px; overflow: hidden; background: var(--line-2); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.post-card:hover .card-cover img { transform: scale(1.04); }
.cover-fallback { display: grid; place-items: center; color: rgba(255, 255, 255, .92); font-size: 19px; font-weight: 700; letter-spacing: 2px; }
.card-body { padding: 16px 18px 8px; }
.card-title { margin: 0 0 8px; font-size: 17px; line-height: 1.5; font-weight: 700; }
.card-summary { margin: 0; color: var(--muted); font-size: 13.8px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; gap: 12px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.card-tags { display: flex; flex-wrap: wrap; gap: 7px; padding: 10px 18px 16px; }

/* ---------- 标签 ---------- */
.tag-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; padding: 3px 11px; border-radius: 999px; border: 1px solid transparent; transition: .18s; }
.tag-chip.big { font-size: 14.5px; padding: 8px 16px; }
.tag-chip.big i, .tag-chip i { font-style: normal; opacity: .7; font-size: 11px; }
.tag-chip:hover { filter: brightness(.97); transform: translateY(-1px); }
.t0 { background: #eaf2ee; color: #1f5d4c; border-color: #d6e5de; }
.t1 { background: #fdeee2; color: #a9552a; border-color: #f4dcc8; }
.t2 { background: #e9eff7; color: #2b4a63; border-color: #d5e0ec; }
.t3 { background: #f0ecf7; color: #4a3f63; border-color: #e0d9ee; }
.t4 { background: #eef3e9; color: #37513a; border-color: #dde7d5; }
.t5 { background: #f9ecf0; color: #7a4252; border-color: #efd6dd; }
.tag-strip { display: flex; flex-wrap: wrap; gap: 9px; margin: 4px 0 10px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- 首页 CTA ---------- */
.home-cta { margin-top: 40px; padding: 26px 30px; border-radius: var(--radius); background: linear-gradient(120deg, #1f5d4c, #2b7360); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.home-cta h3 { margin: 0 0 4px; font-size: 20px; }
.home-cta p { margin: 0; opacity: .88; font-size: 14.5px; }
.home-cta .btn { background: #fff; color: var(--brand); }

/* ---------- 文章页 ---------- */
.crumb { font-size: 13px; color: var(--muted); display: flex; gap: 8px; margin-bottom: 16px; max-width: 800px; margin-left: auto; margin-right: auto; }
.crumb a:hover { color: var(--brand); }
.crumb span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.article-wrap { max-width: 800px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 40px 42px; box-shadow: var(--shadow); }
.article-cover { margin: -6px 0 24px; border-radius: 12px; overflow: hidden; }
.article-cover img { width: 100%; max-height: 380px; object-fit: cover; }
.article-head h1 { font-size: clamp(24px, 3.6vw, 32px); line-height: 1.4; margin: 0 0 16px; font-weight: 800; letter-spacing: -.3px; }
.article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.avatar.big { width: 60px; height: 60px; font-size: 24px; border-radius: 18px; }
.dot { opacity: .5; }
.article-head .card-tags { padding: 0; }
.article-foot { max-width: 800px; margin: 22px auto 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px; vertical-align: 2px; margin-left: 8px; font-weight: 700; }
.badge.draft { background: #fdf3d8; color: #8a6d1f; }
.badge.feat { background: var(--accent-soft); color: var(--accent); }

/* ---------- Markdown 正文 ---------- */
.md-body { font-size: 16.5px; line-height: 1.9; color: #232624; word-break: break-word; }
.md-body h1, .md-body h2, .md-body h3, .md-body h4 { line-height: 1.45; font-weight: 750; margin: 1.8em 0 .7em; }
.md-body h1 { font-size: 25px; }
.md-body h2 { font-size: 21.5px; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); }
.md-body h3 { font-size: 18.5px; color: var(--brand); }
.md-body h4 { font-size: 16.5px; }
.md-body > *:first-child { margin-top: 0; }
.md-body p { margin: 0 0 1.05em; }
.md-body a { color: var(--brand); border-bottom: 1px solid rgba(31, 93, 76, .28); }
.md-body a:hover { color: var(--brand-2); }
.md-body strong { color: #14201c; }
.md-body ul, .md-body ol { padding-left: 1.5em; margin: 0 0 1.1em; }
.md-body li { margin: .35em 0; }
.md-body li::marker { color: var(--accent); }
.md-body blockquote { margin: 1.3em 0; padding: 12px 18px; background: var(--brand-soft); border-left: 3px solid var(--brand); border-radius: 0 10px 10px 0; color: #2c4a41; }
.md-body blockquote p:last-child { margin-bottom: 0; }
.md-body code { background: var(--line-2); padding: 2px 6px; border-radius: 5px; font-size: 14px; font-family: "SF Mono", Consolas, "Courier New", monospace; }
.md-body pre { background: #1d201e; color: #e9e7e0; padding: 16px 18px; border-radius: 12px; overflow-x: auto; margin: 1.3em 0; }
.md-body pre code { background: none; color: inherit; padding: 0; }
.md-body img { border-radius: 12px; margin: 1.2em 0; border: 1px solid var(--line-2); }
.md-body hr { border: 0; border-top: 1px dashed var(--line); margin: 2em 0; }
.md-body table { width: 100%; border-collapse: collapse; margin: 1.3em 0; font-size: 15px; }
.md-body th, .md-body td { border: 1px solid var(--line); padding: 9px 13px; text-align: left; }
.md-body th { background: var(--line-2); font-weight: 700; }
.md-body tr:nth-child(even) td { background: #fcfaf6; }

/* ---------- 附件 / 资料 ---------- */
.attach-panel { margin-top: 30px; padding: 20px 22px; border-radius: var(--radius-s); background: #fdfaf4; border: 1px dashed #e3d8c2; }
.attach-panel h3 { margin: 0 0 12px; font-size: 16px; }
.attach-panel ul, .attach-list { list-style: none; margin: 0; padding: 0; }
.attach-panel li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.attach-panel li:last-child { border-bottom: 0; }
.att-name { font-weight: 600; font-size: 14.5px; word-break: break-all; }
.att-meta { color: var(--muted); font-size: 12.5px; margin-left: auto; white-space: nowrap; }
.attach-panel .btn { margin-left: 10px; }
.attach-panel p.muted { margin: 10px 0 0; }

.res-list { display: flex; flex-direction: column; gap: 12px; }
.res-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 16px 20px; }
.res-item h4 { margin: 0 0 3px; font-size: 15.5px; }
.res-item p { margin: 0; }
.res-empty { text-align: center; padding: 50px 0; }
.res-empty h3 { margin: 0 0 8px; }

/* ---------- 关于页 ---------- */
.about-wrap { max-width: 820px; margin: 0 auto; }
.about-head { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.about-head h1 { margin: 0 0 4px; font-size: 27px; font-weight: 800; }
.about-head p { margin: 0; }
.about-head .btn { margin-left: auto; }
.hl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 30px; }
.hl-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 18px; transition: .2s; }
.hl-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.hl-card h4 { margin: 0 0 6px; font-size: 15.5px; color: var(--brand); }
.hl-card p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.65; }
.about-md { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 34px; }
.contact-card { margin-top: 22px; padding: 24px 30px; border-radius: var(--radius); background: linear-gradient(120deg, #22443a, #1f5d4c); color: #f3f6f4; }
.contact-card h3 { margin: 0 0 6px; font-size: 17px; }
.contact-card .md-body { color: #e6ede9; font-size: 15.5px; }
.contact-card .md-body a { color: #f6c77d; border-color: rgba(246, 199, 125, .4); }

/* ---------- 空态 / 骨架 / 错误 ---------- */
.empty { text-align: center; padding: 60px 20px; color: var(--ink-2); }
.empty-icon { font-size: 40px; color: var(--line); margin-bottom: 6px; }
.empty.err p { color: var(--danger); margin-bottom: 16px; }
.skel { background: linear-gradient(90deg, #efeae0 25%, #f7f3eb 50%, #efeae0 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skel-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding-bottom: 18px; overflow: hidden; }
.skel.cover { height: 150px; border-radius: 0; }
.skel.line { height: 13px; margin: 14px 16px 0; }
.w80 { width: 80%; } .w90 { width: 90%; } .w60 { width: 60%; } .w40 { width: 40%; }

/* ---------- 表单 / 登录 ---------- */
.auth-wrap { display: flex; justify-content: center; padding: 40px 0 20px; }
.auth-card { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 32px 32px 30px; box-shadow: var(--shadow-lg); }
.auth-card h1 { margin: 0 0 6px; font-size: 23px; font-weight: 800; }
.auth-card > .muted { margin: 0 0 20px; }
.auth-card.claim p.muted { line-height: 1.7; }
.tabs { display: flex; gap: 4px; background: var(--line-2); padding: 4px; border-radius: 999px; margin-bottom: 22px; }
.tab { flex: 1; border: 0; background: none; padding: 8px 4px; border-radius: 999px; font-size: 13.5px; cursor: pointer; color: var(--muted); transition: .18s; }
.tab.on { background: var(--card); color: var(--brand); font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.sub-tabs { display: flex; gap: 14px; margin-bottom: 16px; font-size: 13.5px; }
.stab { border: 0; background: none; padding: 0 0 4px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; }
.stab.on { color: var(--brand); font-weight: 700; border-color: var(--brand); }
.pane { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: #fcfbf8; transition: .18s; font-size: 15px; line-height: 1.7; }
.field input:focus, .field textarea:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(31, 93, 76, .10); }
.field textarea { resize: vertical; min-height: 90px; font-family: var(--sans); }
.field.row { flex-direction: row; align-items: stretch; }
.field.row input { flex: 1; min-width: 0; }
.field.row .btn { flex-shrink: 0; }
.field-err { color: var(--danger); font-size: 13px; min-height: 18px; margin: -4px 0 0; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); margin-top: 4px; }

/* ---------- 后台 ---------- */
.studio-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.post-table { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pt-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 20px; border-bottom: 1px solid var(--line-2); }
.pt-row:last-child { border-bottom: 0; }
.pt-row:hover { background: #fcfaf6; }
.pt-main a { font-weight: 650; font-size: 15.5px; }
.pt-main a:hover { color: var(--brand); }
.pt-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.pt-meta .badge { margin-left: 0; }
.pt-tag { background: var(--line-2); padding: 1px 8px; border-radius: 999px; }
.pt-act { display: flex; gap: 7px; flex-shrink: 0; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; margin: 26px 0; }
.panel h3 { margin: 0 0 4px; font-size: 18px; }
.panel .field { margin-bottom: 14px; }
.row-end { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }

/* ---------- 编辑器 ---------- */
.editor-wrap { max-width: 1100px; margin: 0 auto; }
.editor-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.editor-head h1 { margin: 0 0 4px; font-size: 25px; font-weight: 800; }
.editor-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.cover-box { margin-bottom: 6px; }
.cover-empty { display: grid; place-items: center; height: 130px; border: 1.5px dashed var(--line); border-radius: var(--radius-s); background: #fcfaf6; color: var(--muted); cursor: pointer; font-size: 14.5px; transition: .18s; }
.cover-empty:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.cover-preview { position: relative; }
.cover-preview img { max-height: 230px; border-radius: var(--radius-s); border: 1px solid var(--line); }
.cover-preview .btn { position: absolute; right: 10px; bottom: 10px; }
.ed-toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 9px; background: var(--card); border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; }
.ed-toolbar button { border: 1px solid var(--line); background: #fcfaf6; border-radius: 7px; padding: 5px 11px; font-size: 12.5px; cursor: pointer; transition: .15s; }
.ed-toolbar button:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.ed-toolbar .hl { background: var(--accent-soft); color: var(--accent); border-color: #f2d9c2; font-weight: 700; }
.ed-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 0 0 10px 10px; overflow: hidden; }
.ed-split textarea { width: 100%; min-height: 480px; border: 0; outline: 0; resize: vertical; padding: 18px 20px; background: #fcfbf8; font-family: "SF Mono", Consolas, Menlo, monospace; font-size: 14px; line-height: 1.85; }
.ed-preview { padding: 18px 22px; background: var(--card); border-left: 1px solid var(--line-2); max-height: 640px; overflow-y: auto; font-size: 15.5px; }
.attach-box { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.attach-list li { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.attach-list li:last-child { border-bottom: 0; }

/* ---------- 提示条 / 页脚 ---------- */
.toast { position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 20px); background: #23282f; color: #fff; padding: 11px 22px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 99; box-shadow: var(--shadow-lg); max-width: 86vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--danger); }

.footer { border-top: 1px solid var(--line-2); background: #f6f2ea; }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 34px 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-inner p { margin: 4px 0 0; }
.footer-links { display: flex; gap: 18px; font-size: 14px; }
.footer-links a { color: var(--ink-2); }
.footer-links a:hover { color: var(--brand); }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature-cover { min-height: 190px; }
  .ed-split { grid-template-columns: 1fr; }
  .ed-preview { border-left: 0; border-top: 1px solid var(--line-2); max-height: 320px; }
  .article-wrap { padding: 24px 22px 32px; }
  .about-md { padding: 22px 20px; }
}
@media (max-width: 640px) {
  .topbar-inner { gap: 12px; height: 56px; }
  .brand-txt { display: none; }
  .nav a { padding: 6px 9px; font-size: 13.5px; }
  .nav-right .btn { padding: 6px 11px; font-size: 12.5px; }
  .hero { padding: 44px 18px 32px; }
  .main { padding: 20px 16px 50px; }
  .post-grid { grid-template-columns: 1fr; }
  .hl-grid { grid-template-columns: 1fr 1fr; }
  .about-head { flex-wrap: wrap; }
  .about-head .btn { margin-left: 0; width: 100%; }
  .pt-row { flex-direction: column; align-items: flex-start; }
  .res-item { flex-direction: column; align-items: flex-start; }
  .panel { padding: 20px 18px; }
  .auth-card { padding: 26px 22px; }
}
