/* 医美热词心理学 · 静态站点样式
   文字一律 #262626；墨绿 #1F4A38 只用于结构线；表格与图解只用黑白灰细线 */
:root {
  --text: #262626;
  --green: #1F4A38;
  --muted: #8A908A;
  --bg: #FCFBF8;
  --paper: #FFFFFF;
  --hair: #E4E0D8;
  --song: "Songti SC", "STSong", "Noto Serif SC", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", "宋体", serif;
  --hei: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", "SimHei", "黑体", sans-serif;
  --kai: "Kaiti SC", "STKaiti", "KaiTi", "楷体", "Noto Serif SC", serif;
  --measure: 40em;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--song); font-size: 17px; line-height: 1.9; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 1px; text-underline-offset: .24em; }
a:hover { text-decoration-thickness: 2px; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .55rem 16px; background: rgba(252, 251, 248, .95); border-top: 3px solid var(--green); border-bottom: 1px solid var(--hair); }
.brand { font-family: var(--hei); font-size: 1rem; letter-spacing: .1em; text-decoration: none; }
.mnav { position: static; }
.mnav summary { font-family: var(--hei); font-size: .88rem; cursor: pointer; list-style: none; padding: .15rem .7rem; border: 1px solid #D6D1C7; border-radius: 2px; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav[open] summary { border-color: var(--green); }
.mnav[open] .toc { position: absolute; left: 16px; right: 16px; top: 100%; max-height: 76vh; overflow: auto;
  background: var(--paper); border: 1px solid var(--hair); padding: .4rem 1.2rem 1.2rem; box-shadow: 0 10px 28px rgba(0, 0, 0, .07); }

/* layout */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: minmax(0, 1fr); }
.side { display: none; }
@media (min-width: 1100px) {
  .wrap { grid-template-columns: 14.5rem minmax(0, 1fr); column-gap: 3rem; }
  .side { display: block; position: sticky; top: 3.6rem; align-self: start; max-height: calc(100vh - 4rem); overflow: auto; padding: 1.4rem 0 2rem; }
  .mnav { display: none; }
}
.toc { font-family: var(--hei); font-size: .86rem; line-height: 1.6; }
.toc .grp { margin: 1.1rem 0 .3rem; font-weight: 600; letter-spacing: .04em; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li a { display: block; padding: .2rem 0 .2rem .75rem; border-left: 2px solid transparent; text-decoration: none; }
.toc li a:hover { border-left-color: #CFC9BE; }
.toc li a[aria-current="page"] { border-left-color: var(--green); }
.toc .n { font-family: var(--kai); font-size: .8rem; margin-right: .45em; }

/* article */
.doc { min-width: 0; padding: 2.4rem 0 3rem; }
article { max-width: var(--measure); margin: 0 auto; }
.label { font-family: var(--kai); font-size: .92rem; margin: 0 0 .5rem; }
h1 { font-family: var(--hei); font-weight: 500; font-size: 2.15rem; line-height: 1.3; letter-spacing: .04em; margin: 0; }
.sub { font-family: var(--hei); font-size: 1.16rem; line-height: 1.6; margin: .55rem 0 1.6rem; }
.hero { margin: 0 0 1.5rem; }
.hero img { width: 100%; aspect-ratio: 2.35 / 1; object-fit: cover; background: #F1EEE8; }
.epi { margin: 0 0 1.5rem; text-align: right; font-family: var(--kai); }
.epi p { margin: 0; font-size: 1.04rem; line-height: 1.8; }
.epi cite { display: block; font-style: normal; font-size: .88rem; }
article p { margin: 0 0 .8em; text-align: justify; text-indent: 2em; }
article .label, article .sub { text-indent: 0; text-align: left; }
article .epi p { text-indent: 0; text-align: right; }
article .lead { text-indent: 0; border-left: 2px solid var(--green); padding: .05rem 0 .05rem 1rem; margin: 0 0 2rem; line-height: 1.85; }
article h2 { font-family: var(--hei); font-weight: 500; font-size: 1.22rem; line-height: 1.5; margin: 2.4rem 0 1rem; padding-bottom: .35rem; border-bottom: 1px solid var(--green); }
article .formula { text-indent: 0; text-align: center; margin: 1.2rem 0 1.3rem; }

/* tables: black horizontal hairlines only */
.tbl { margin: 1rem 0 1.4rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.65; }
table.wide { min-width: 34em; }
table.ws { table-layout: fixed; }
th { font-family: var(--hei); font-weight: 600; font-size: .84rem; text-align: center; padding: .55rem .6rem; border-top: 1px solid #000; border-bottom: 1px solid #000; }
td { padding: .55rem .6rem; border-bottom: 1px solid #000; vertical-align: middle; }
td.c { text-align: center; white-space: nowrap; }
td.k { white-space: nowrap; }
td.blank { height: 3.2em; }
.checklist { margin: 2.2rem 0 1rem; }
article .checklist .cap { font-family: var(--hei); font-weight: 600; text-indent: 0; margin: 0 0 .3rem; }

/* charts */
.chart { margin: 1.4rem 0 1.9rem; }
.chart .cv { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.chart svg { display: block; width: 100%; height: auto; }
@media (max-width: 640px) { .chart svg { min-width: 600px; } }
.chart figcaption { font-family: var(--kai); font-size: .9rem; line-height: 1.7; text-align: center; margin-top: .4rem; }

article .next { font-family: var(--kai); text-indent: 0; margin-top: 1.6rem; }
article .sign { font-family: var(--kai); text-align: right; text-indent: 0; margin-top: 1.3rem; }
article .note { font-family: var(--kai); font-size: .9rem; line-height: 1.75; text-indent: 0; margin-top: 1.3rem; }

/* pager */
.pager { max-width: var(--measure); margin: 3rem auto 0; padding-top: 1.1rem; border-top: 1px solid var(--hair);
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; font-family: var(--hei); line-height: 1.5; }
.pager a { display: block; text-decoration: none; font-size: .92rem; }
.pager span { display: block; font-family: var(--kai); font-size: .82rem; }
.pager .nx { text-align: right; }
.foot { text-align: center; font-size: .78rem; color: var(--muted); padding: 2.4rem 16px 3rem; }

/* home */
.home-main { max-width: 1180px; margin: 0 auto; padding: 0 16px 1rem; }
.cover { margin: 1.4rem 0 0; }
.cover img { width: 100%; aspect-ratio: 2.35 / 1; object-fit: cover; background: #F1EEE8; }
.masthead { max-width: 40rem; margin: 2.2rem auto 0; padding: 1.3rem 0 1.15rem; text-align: center; border-top: 3px solid var(--green); border-bottom: 3px solid var(--green); }
.masthead h1 { font-size: 2.3rem; letter-spacing: .14em; }
.masthead .sub { margin: .55rem 0 0; }
.byline { text-align: center; font-family: var(--kai); line-height: 1.9; margin: 1.1rem 0 0; }
.intro { max-width: 40rem; margin: 2.4rem auto 0; }
.intro .lead { border-left: 2px solid var(--green); padding: .05rem 0 .05rem 1rem; margin: 0 0 1rem; text-align: justify; }
.start { text-align: center; font-family: var(--hei); margin: 0; }
.part { margin: 3.8rem 0 0; }
.part-head { max-width: 38rem; margin: 0 auto 1.5rem; text-align: center; }
.part-label { font-family: var(--kai); margin: 0; }
.part h2 { font-family: var(--hei); font-weight: 500; font-size: 1.7rem; letter-spacing: .12em; margin: .15rem 0 .6rem; }
.part-lead { margin: 0 auto; max-width: 34rem; }
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cards.one { grid-template-columns: minmax(0, 1fr); max-width: 40rem; margin: 0 auto; } }
.card { display: block; text-decoration: none; background: var(--paper); border: 1px solid #ECE8E0; }
.card img { width: 100%; aspect-ratio: 2.35 / 1; object-fit: cover; background: #F1EEE8; }
.card .ct { display: block; padding: .9rem 1rem 1.1rem; }
.card .cl { display: block; font-family: var(--kai); font-size: .84rem; }
.card .tt { display: block; font-family: var(--hei); font-size: 1.2rem; line-height: 1.4; margin: .1rem 0; }
.card .cs { display: block; font-family: var(--hei); font-size: .88rem; line-height: 1.5; }
.card .cd { display: block; font-size: .86rem; line-height: 1.75; margin-top: .55rem; text-align: justify; }
.card:hover .tt { text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: .24em; }
.list { max-width: 54rem; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 2.4rem; }
@media (min-width: 720px) { .list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.list a { display: block; text-decoration: none; padding: .8rem 0; border-bottom: 1px solid var(--hair); }
.list .tt { font-family: var(--hei); font-size: 1.05rem; }
.list .cs { font-family: var(--hei); font-size: .86rem; margin-left: .6em; }
.list .cd { display: block; font-size: .86rem; line-height: 1.75; margin-top: .25rem; text-align: justify; }
.list a:hover .tt { text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: .24em; }

@media (max-width: 600px) {
  body { font-size: 16.5px; }
  h1 { font-size: 1.8rem; }
  .masthead h1 { font-size: 1.95rem; }
  .doc { padding-top: 1.8rem; }
}
@media print {
  .bar, .side, .pager, .mnav { display: none; }
  .wrap { display: block; }
  body { background: #fff; font-size: 11pt; }
  .hero img { max-height: 6.5cm; }
  .tbl { overflow: visible; }
}

/* ---------- book additions ---------- */
article h2 { scroll-margin-top: 4.2rem; }
article .byline-a { font-family: var(--kai); font-size: .92rem; text-indent: 0; text-align: left; margin: -1rem 0 1.5rem; }
article h1 + .byline-a { margin-top: .75rem; }
article .meta { font-family: var(--kai); text-indent: 0; text-align: left; margin: .7rem 0 1.5rem; }
article .ednote { font-family: var(--kai); font-size: .9rem; line-height: 1.75; text-indent: 0; margin: 0 0 1.6rem; }
article .note + p:not(.note) { margin-top: 1.1rem; }
article .end { font-family: var(--kai); text-align: right; text-indent: 0; margin-top: 1.4rem; }
a.cite { text-decoration: none; font-size: .78em; white-space: nowrap; }
a.cite:hover { text-decoration: underline; text-decoration-color: var(--green); }
article .pair { font-family: var(--kai); text-indent: 0; text-align: left; margin-top: 2.2rem; }

/* mechanism figures: black-and-white hairlines, no fills */
.flow { margin: 1.7rem 0 2.1rem; }
.flow .fl { display: grid; grid-template-columns: minmax(0, 1fr) 1.9rem minmax(0, 1fr) 1.9rem minmax(0, 1fr) 1.9rem minmax(0, 1fr); }
.flow.set .fl { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: .9rem; }
.flow .st { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 5.4rem; padding: .8rem .45rem;
  border: 1px solid var(--text); background: var(--paper); text-align: center; font-family: var(--hei); font-size: .9rem; line-height: 1.6; }
.flow .st span { display: block; }
.flow .ar { position: relative; }
.flow .ar::before { content: ""; position: absolute; left: .3rem; right: .5rem; top: 50%; border-top: 1px solid var(--text); }
.flow .ar::after { content: ""; position: absolute; right: .3rem; top: 50%; margin-top: -4px; border-left: 7px solid var(--text); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.flow .lp { grid-column: 1 / -1; height: 1.5rem; margin: 0 calc((100% - 5.7rem) / 8); border: 1px solid var(--text); border-top: 0; position: relative; }
.flow .lp::before { content: ""; position: absolute; left: -4.5px; top: 0; border-bottom: 7px solid var(--text); border-left: 4px solid transparent; border-right: 4px solid transparent; }
.flow figcaption { margin-top: .8rem; text-align: center; font-family: var(--kai); font-size: .92rem; line-height: 1.7; }
.flow figcaption span { display: block; }
.flow figcaption .fn, .flow figcaption .fa { font-size: .84rem; }
.flow figcaption .fa { margin-top: .15rem; }
@media (max-width: 560px) {
  .flow .fl, .flow.set .fl { grid-template-columns: minmax(0, 1fr); }
  .flow.set .fl { row-gap: .6rem; }
  .flow .st { min-height: 0; height: 3rem; padding: 0 .6rem; flex-direction: row; flex-wrap: wrap; align-content: center; }
  .flow .ar { height: 1.5rem; }
  .flow .ar::before { left: 50%; right: auto; top: .25rem; bottom: .5rem; border-top: 0; border-left: 1px solid var(--text); }
  .flow .ar::after { left: 50%; right: auto; top: auto; bottom: .25rem; margin: 0 0 0 -4px; border-top: 7px solid var(--text); border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 0; }
  .flow.loop .fl { grid-template-columns: minmax(0, 1fr) 1.5rem; }
  .flow.loop .st, .flow.loop .ar { grid-column: 1; }
  .flow.loop .lp { grid-column: 2; grid-row: 1 / 8; height: auto; margin: 1.5rem 0; border: 1px solid var(--text); border-left: 0; }
  .flow.loop .lp::before { left: 0; top: -3.5px; border-right: 7px solid var(--text); border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 0; }
}

/* references */
.refs { margin-top: 1.2rem; }
.ref { padding: .85rem 0 .95rem; border-bottom: 1px solid var(--hair); scroll-margin-top: 4.2rem; }
.ref:target { border-left: 2px solid var(--green); padding-left: .85rem; }
article .ref p { text-indent: 0; text-align: left; margin: 0; }
article .ref .rt { font-family: var(--hei); font-size: .96rem; line-height: 1.6; }
.ref .rn { margin-right: .35em; }
article .ref .rl { font-size: .86rem; line-height: 1.75; margin-top: .3rem; }
article .ref .rc { font-family: var(--kai); font-size: .84rem; line-height: 1.7; margin-top: .3rem; }
.ref a { overflow-wrap: anywhere; word-break: break-all; }

/* home */
.list .cl { display: block; font-family: var(--kai); font-size: .84rem; }
.part-lead { text-align: justify; }

/* 联系与备案（2026-11-02） */
.foot-extra{max-width:560px;margin:14px auto 0;padding-top:14px;border-top:1px solid rgba(0,0,0,.08)}
.foot-extra .fc{margin:0 0 14px;font-size:13px}
.foot-extra .fc a{color:inherit}
.foot-extra .fq{display:flex;gap:22px;justify-content:center}
.foot-extra .qri{margin:0}
.foot-extra .qri img{display:block;width:110px;height:110px;background:#fff;border:1px solid rgba(0,0,0,.08)}
.foot-extra .qri figcaption{margin-top:6px;font-size:12px}

/* 分享（2026-11-02） */
.share-row{margin:18px 0 0;display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.share-row button{font:inherit;padding:10px 20px;border:1px solid rgba(0,0,0,.15);background:#fff;color:inherit;cursor:pointer}
.share-row button:hover{border-color:#24413a;color:#24413a}
.share-row .stip{font-size:13px;opacity:.75}
