:root {
  --ink: #1d2433; --muted: #5b6474; --line: #e7e3da; --bg: #fbf9f4; --card: #fff;
  --accent: #b3261e; --accent-ink: #fff; --gold: #a07a2c;
  --g: #1a7f37; --y: #b58100; --o: #c2410c; --r: #b91c1c; --i: #64748b;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Inter", -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; }
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
header.site { border-bottom: 1px solid var(--line); background: rgba(251, 249, 244, .92); position: sticky; top: 0; backdrop-filter: blur(6px); z-index: 10; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.logo { font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo .seal { display: inline-grid; place-items: center; width: 28px; height: 28px; background: var(--accent); color: #fff; border-radius: 6px; font-size: 15px; font-family: "Songti SC", "STSong", serif; }
nav.top a { color: var(--ink); text-decoration: none; margin-left: 18px; font-size: 15px; }
nav.top a.btn { color: var(--accent-ink); }
@media (max-width: 720px) { nav.top a:not(.btn) { display: none; } }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 10px 18px; border-radius: 999px; text-decoration: none; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn:disabled { opacity: .6; cursor: wait; }
.hero { padding: 64px 0 40px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 36px; } }
.hero h1 { font-size: 44px; line-height: 1.15; margin: 0 0 16px; letter-spacing: -.5px; }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 24px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.namecard { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: 0 10px 30px rgba(29, 36, 51, .06); }
.namecard .big { font-family: "Songti SC", "STSong", "Noto Serif SC", serif; font-size: 64px; letter-spacing: 10px; }
.namecard .py { color: var(--muted); font-size: 18px; letter-spacing: 1px; }
.pill { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: #f1ede3; color: var(--muted); margin: 2px 4px 2px 0; }
section { padding: 48px 0; }
section h2 { font-size: 30px; margin: 0 0 12px; }
section p.sub { color: var(--muted); margin: 0 0 28px; max-width: 680px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 860px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); }
.price { font-size: 34px; font-weight: 700; margin: 8px 0; }
.price small { font-size: 14px; color: var(--muted); font-weight: 400; }
.plan ul { padding-left: 18px; color: var(--muted); margin: 12px 0 18px; }
.plan.featured { border: 2px solid var(--accent); }
.tag { color: var(--accent); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; }
footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; margin-top: 40px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer.site a { color: var(--muted); margin-right: 14px; }
.prose { max-width: 760px; }
.prose h1 { font-size: 34px; margin: 40px 0 10px; }
.prose h2 { font-size: 21px; margin: 28px 0 8px; }
.prose p, .prose li { color: #343b4a; }
.notice { background: #fff7e6; border: 1px solid #f3d9a4; border-radius: 10px; padding: 12px 14px; font-size: 14px; color: #6b4e12; }

/* forms */
form.tool { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
form.tool label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
form.tool .full { grid-column: 1 / -1; }
input, select, textarea { font: inherit; padding: 10px 12px; border: 1px solid #d6d1c4; border-radius: 10px; background: #fff; color: var(--ink); }
textarea { min-height: 90px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { flex-direction: row !important; align-items: center; gap: 6px !important; border: 1px solid #d6d1c4; border-radius: 999px; padding: 6px 12px; cursor: pointer; color: var(--ink) !important; background: #fff; }
.chips input { margin: 0; }
details.more { grid-column: 1 / -1; }
details.more summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.err { color: var(--r); margin-top: 10px; }

/* report */
.report .head { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.report .big { font-family: "Songti SC", "STSong", "Noto Serif SC", serif; font-size: 56px; letter-spacing: 8px; line-height: 1.1; }
.score { font-size: 52px; font-weight: 800; line-height: 1; }
.badge { display: inline-block; padding: 5px 12px; border-radius: 999px; color: #fff; font-size: 14px; font-weight: 600; }
.green { background: var(--g); } .yellow { background: var(--y); } .orange { background: var(--o); } .red { background: var(--r); } .info { background: var(--i); }
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cat { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 13px; background: #fff; }
ul.items { list-style: none; padding: 0; margin: 0; }
ul.items li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
ul.items li:last-child { border-bottom: 0; }
.dot { flex: 0 0 11px; height: 11px; border-radius: 50%; margin-top: 7px; }
.it-title { font-weight: 600; }
.grp { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 18px 0 4px; font-weight: 600; }
.chars { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.char { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; }
.char .h { font-family: "Songti SC", "STSong", serif; font-size: 38px; line-height: 1; }
.muted { color: var(--muted); font-size: 13px; }
.veto { color: var(--r); font-weight: 600; margin-top: 10px; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pillar { text-align: center; border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #fff; }
.pillar .gz { font-family: "Songti SC", serif; font-size: 28px; }
.bars { display: grid; gap: 6px; }
.bar { display: grid; grid-template-columns: 70px 1fr 24px; align-items: center; gap: 8px; font-size: 14px; }
.bar i { display: block; height: 10px; border-radius: 6px; background: var(--gold); }
.ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.idea .big { font-family: "Songti SC", "STSong", serif; font-size: 40px; letter-spacing: 6px; }
.speak { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 10px; cursor: pointer; font-size: 13px; }

/* 语言切换与报告视图 */
nav.top a.lang { border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 14px; }
@media (max-width: 720px) { nav.top a.lang { display: inline-block !important; } }
.langbar { background: #fff3d6; border-bottom: 1px solid #f0d9a0; font-size: 14px; }
.langbar .wrap { padding: 8px 20px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.langbar button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font: inherit; text-decoration: underline; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 8px 0 12px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: transparent; padding: 6px 12px; cursor: pointer; font: inherit; font-size: 14px; color: var(--ink); }
.seg button.on { background: var(--ink); color: #fff; }
.zh-line { color: var(--muted); font-size: 14px; margin-top: 2px; }
.trad { color: var(--muted); font-family: "Songti TC", "PMingLiU", serif; }
#out { scroll-margin-top: 76px; }
