/* 五十自在 · 全站样式
   配色（构想草案第五节）：主色深青绿 #14665A，点缀暖橙 #E07B2A，
   底色暖白 #FAF7F2，正文近黑 #1F2421。正文默认 19px，行高 1.8。 */

:root {
  --green: #14665a;
  --green-dark: #0e4f45;
  --orange: #e07b2a;
  --bg: #faf7f2;
  --ink: #1f2421;
  --muted: #5a625d;
  --card-bg: #ffffff;
  --line: #ddd5c7;
  --base: 19px;
}

html[data-font="large"]  { --base: 22px; }
html[data-font="xlarge"] { --base: 25px; }

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC",
    "Source Han Sans SC", sans-serif;
  font-size: var(--base);
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }

/* ---------- 站名栏 ---------- */
.site-header {
  background: var(--green);
  color: #fff;
}
.site-header .wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 18px 20px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
}
.site-name {
  font-size: 1.6em;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  text-decoration: none;
}
.site-name:hover { color: #fff; }
.site-tagline { font-size: 0.82em; opacity: 0.92; }

.font-switch {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78em;
}
.font-switch span { opacity: 0.9; }
.font-switch button {
  font: inherit;
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  border-radius: 6px;
  padding: 2px 10px;
  cursor: pointer;
}
.font-switch button[aria-pressed="true"] {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  font-weight: 700;
}

/* ---------- 导航 ---------- */
.site-nav {
  background: var(--green-dark);
}
.site-nav .wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 0.86em;
}
.site-nav a { color: #fff; text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.site-nav .soon { color: rgba(255, 255, 255, 0.65); }
.site-nav .soon em {
  font-style: normal;
  font-size: 0.82em;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  padding: 0 5px;
  margin-left: 4px;
}

/* ---------- 正文区 ---------- */
.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 28px 20px 40px;
}

h1 { font-size: 1.55em; line-height: 1.45; margin: 0 0 10px; }
h2 {
  font-size: 1.22em;
  line-height: 1.5;
  margin: 1.6em 0 0.5em;
  padding-left: 10px;
  border-left: 5px solid var(--green);
}
p { margin: 0.7em 0; }
ul, ol { margin: 0.6em 0; padding-left: 1.5em; }
li { margin: 0.45em 0; }
strong { font-weight: 700; }
sup { font-size: 0.68em; }
sup a { color: var(--green); text-decoration: none; font-weight: 700; }

.lede { color: var(--muted); font-size: 0.92em; margin: 0 0 18px; }

/* ---------- 徽章 ---------- */
.badge {
  display: inline-block;
  font-size: 0.78em;
  font-weight: 700;
  line-height: 1.5;
  border-radius: 6px;
  padding: 2px 10px;
  vertical-align: middle;
  white-space: nowrap;
}
.badge-harm { background: var(--orange); color: #fff; }
.badge-evidence {
  border: 2px solid var(--green);
  color: var(--green);
  background: #fff;
}
.badge-col {
  border: 2px solid var(--orange);
  color: var(--orange);
  background: #fff;
}

/* ---------- 卡片（首页 / 栏目页文章列表） ---------- */
.card {
  background: var(--card-bg);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 16px 0;
}
.card h3 { margin: 0 0 6px; font-size: 1.12em; line-height: 1.5; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--green); text-decoration: underline; }
.card .meta { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 8px; }
.card .conclusion { margin: 4px 0 0; }

/* ---------- 三句话版 ---------- */
.key-box {
  background: #eef4f1;
  border: 1.5px solid var(--green);
  border-radius: 10px;
  padding: 6px 20px 10px;
  margin: 18px 0;
}
.key-box h2 { border-left: none; padding-left: 0; margin-top: 0.7em; }

/* ---------- 结论图卡 ---------- */
.share-card {
  background: var(--green);
  color: #fff;
  border-radius: 12px;
  padding: 22px 24px;
  margin: 26px 0 10px;
}
.share-card .sc-brand {
  font-size: 0.8em;
  letter-spacing: 0.2em;
  opacity: 0.85;
  margin: 0 0 8px;
}
.share-card h2 {
  border: none;
  padding: 0;
  margin: 0 0 10px;
  font-size: 1.25em;
  color: #fff;
}
.share-card p { margin: 0.4em 0; }
.share-card .badge-harm { margin-bottom: 6px; }
.copy-btn {
  font: inherit;
  font-size: 0.85em;
  font-weight: 700;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 22px;
  margin: 10px 0 26px;
  cursor: pointer;
}
.copy-btn:hover { filter: brightness(1.07); }
.copy-btn .done { display: none; }

/* ---------- 参考文献 ---------- */
.refs {
  font-size: 0.82em;
  line-height: 1.7;
  color: var(--ink);
  padding-left: 1.6em;
}
.refs li { margin: 0.55em 0; }
.refs .ref-note { display: block; color: var(--muted); }

.checked-date { color: var(--muted); font-size: 0.88em; }
.submit-invite {
  border-top: 1.5px dashed var(--line);
  margin-top: 26px;
  padding-top: 14px;
  font-size: 0.95em;
}

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 2px solid var(--green);
  margin-top: 10px;
}
.site-footer .wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 22px 20px 34px;
  font-size: 0.88em;
  color: var(--muted);
}
.site-footer h2 {
  font-size: 1.05em;
  color: var(--ink);
  border-left: none;
  padding-left: 0;
  margin: 1.1em 0 0.4em;
}
.site-footer h2:first-child { margin-top: 0; }
.site-footer p { margin: 0.4em 0; }
.site-footer ul { margin: 0.3em 0; }

/* ---------- 打印 ---------- */
@media print {
  .site-nav, .font-switch, .copy-btn { display: none; }
  body { background: #fff; }
  .share-card { border: 2px solid var(--green); }
}

/* ---------- 小屏 ---------- */
@media (max-width: 560px) {
  .site-header .wrap, .site-nav .wrap, .container, .site-footer .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
  .font-switch { margin-left: 0; }
  .card, .share-card { padding: 16px; }
  .key-box { padding: 4px 16px 8px; }
}

/* 首页主视觉 */
.hero { margin: 0 auto 1.2em; max-width: 780px; }
.hero img { display: block; width: 100%; height: auto; border-radius: 12px; }

/* ---------- 装饰：三句话版与结论图卡 ---------- */
.key-box { position: relative; overflow: hidden; }
.key-box::before {
  content: "“";
  position: absolute;
  top: -0.28em; left: 6px;
  font-size: 4.2em;
  line-height: 1;
  color: rgba(20, 102, 90, 0.14);
  font-family: Georgia, "Times New Roman", serif;
  pointer-events: none;
}
.key-box::after {
  content: "";
  position: absolute;
  top: -26px; right: -26px;
  width: 84px; height: 84px;
  border-radius: 50%;
  background: rgba(224, 123, 42, 0.16);
  pointer-events: none;
}
.key-box h2::before {
  content: "";
  display: inline-block;
  width: 0.52em; height: 0.52em;
  border-radius: 50%;
  background: var(--orange);
  margin-right: 0.45em;
  vertical-align: 0.08em;
}
.share-card { position: relative; overflow: hidden; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.30); }
.share-card::before {
  content: "";
  position: absolute;
  top: -34px; right: -34px;
  width: 118px; height: 118px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.9;
  pointer-events: none;
}
.share-card::after {
  content: "";
  position: absolute;
  top: 6px; right: 6px;
  width: 118px; height: 118px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  transform: translate(34px, -34px);
  pointer-events: none;
}
.share-card .sc-brand::before {
  content: "";
  display: inline-block;
  width: 0.6em; height: 0.6em;
  border-radius: 50%;
  background: var(--orange);
  margin-right: 0.5em;
  vertical-align: 0.05em;
}

/* 图卡装饰定版（2026-11-26 用户选定：图卡用排毒版样式，三句话版用灵芝版样式） */
.share-card {
  background:
    radial-gradient(circle 90px at 0% 108%, rgba(255, 255, 255, 0.13) 0 62px, rgba(255, 255, 255, 0.05) 63px 88px, transparent 89px),
    var(--green);
}
.share-card div > p:last-child::before {
  content: "◆";
  display: block;
  text-align: center;
  color: var(--orange);
  font-size: 0.62em;
  letter-spacing: 0;
  margin: 0.2em 0 0.5em;
}
