:root {
  color-scheme: light;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: #f9f7f3;
  color: #33282b;
  --paper: #fffdfa;
  --line: #e8dfd5;
  --secondary: #665b5c;
  --accent: #704754;
  --ink: #34252e;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid #a55471; outline-offset: 4px; }
[hidden] { display: none !important; }
.container { width: min(1080px, calc(100% - 56px)); margin: 0 auto; }
.topbar { border-bottom: 1px solid var(--line); background: #fffcf8; }
.top-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 19px; font-weight: 700; }
.brand small { color: var(--secondary); margin-left: 8px; font: 12px Georgia, serif; letter-spacing: .04em; }
.brand-mark { width: 33px; height: 33px; display: grid; place-items: center; border: 1px solid #cab9b3; border-radius: 50%; color: var(--accent); }
.top-link { font-size: 14px; color: var(--accent); }
.hero { border-radius: 26px; background: radial-gradient(ellipse at 98% 100%, #654251, transparent 65%), #392731; color: #fffbf5; padding: 50px 56px; position: relative; overflow: hidden; isolation: isolate; }
.hero::after { content: ""; width: 330px; height: 330px; position: absolute; right: -14px; top: -43px; z-index: -1; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 32px, #d8b4a632 33px 34px, transparent 35px 39px); }
.hero h1 { margin: 12px 0 15px; font-family: "Songti SC", "Noto Serif CJK SC", "STSong", serif; font-weight: 700; font-size: clamp(34px, 5vw, 59px); line-height: 1.28; letter-spacing: -.025em; }
.hero p { max-width: 31em; margin: 0; color: #eedfdb; line-height: 1.85; font-size: 16px; }
.index-hero { margin-top: 34px; }
.tool-hero { margin-bottom: 23px; }
.eyebrow { color: #e8c6b6; font-size: 13px; font-weight: 600; letter-spacing: .12em; }
.hero-button, .primary, .outline { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 46px; padding: 10px 18px; border-radius: 11px; font-weight: 650; border: 1px solid transparent; }
.hero-button { margin-top: 24px; background: #f0ded0; color: #3f2a2c; }
.hero-button:hover { background: #fff6ec; }
.primary { color: white; background: var(--accent); }
.primary:hover { background: #573443; }
.outline { color: var(--secondary); background: #f5f0ec; border-color: var(--line); }
.tool-section { margin: 33px 0; }
.tool-section h2, .panel h2 { font-size: 22px; margin: 0 0 15px; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tool-card { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-content: start; align-items: start; padding: 20px 17px; min-height: 138px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.tool-card:hover { border-color: #ac8493; background: #fcf6f5; }
.card-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #f2e7e8; color: var(--accent); font-family: "Songti SC", "STSong", serif; font-weight: 700; }
.tool-card h3 { font-size: 16px; margin: 5px 0 8px; }
.tool-card p { font-size: 13px; line-height: 1.7; margin: 0; color: var(--secondary); }
.card-arrow { color: var(--accent); }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: var(--secondary); font-size: 14px; margin: 25px 0 14px; }
.breadcrumb a:hover, .top-link:hover { text-decoration: underline; }
.workspace { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(220px, 1fr); gap: 17px; align-items: start; }
.panel { border: 1px solid var(--line); padding: 26px; border-radius: 18px; background: var(--paper); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.panel-head h2 { margin: 0; }
.text-button { padding: 7px 0; border: 0; font-size: 14px; color: var(--accent); background: transparent; text-decoration: underline; text-underline-offset: 4px; }
.secondary, .paid p { color: var(--secondary); line-height: 1.7; font-size: 14px; }
fieldset { padding: 13px 0 18px; border: 0; margin: 0; min-width: 0; }
legend { padding: 0; font-size: 15px; font-weight: 650; }
.inputs { display: grid; grid-template-columns: 1.3fr 1.15fr 1fr; gap: 12px; }
.inputs label, .permission { font-size: 13px; color: var(--secondary); }
.inputs input, .inputs select { margin-top: 7px; display: block; min-width: 0; width: 100%; min-height: 43px; padding: 8px 9px; background: #fffcf8; border-radius: 8px; border: 1px solid #dfd4ca; color: var(--ink); }
.permission { display: flex; align-items: flex-start; gap: 8px; margin: 6px 0 17px; }
.permission input { accent-color: var(--accent); }
.method { background: #f4eeea; }
.method h2 { font-size: 18px; }
.method ul { padding-left: 19px; color: var(--ink); font-size: 14px; line-height: 2; }
.error { color: #973549; margin: 10px 0 0; }
.error:empty { display: none; }
.result { margin-top: 17px; }
.result .eyebrow { color: var(--accent); margin-bottom: 10px; }
.result h2 { font-size: clamp(23px, 4vw, 31px); width: fit-content; }
.result-rows { margin: 20px 0; border-block: 1px solid var(--line); }
.result-rows div { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 12px 0; }
.result-rows div + div { border-top: 1px solid var(--line); }
.result-rows dt { color: var(--secondary); }
.result-rows dd { margin: 0; font-weight: 650; }
.unlocked, .paid { border-radius: 13px; padding: 18px; background: #f6eeea; }
.paid { margin-top: 12px; background: #f9f6f2; border: 1px dashed #d9ccc6; }
.unlocked h3, .paid h3 { margin: 0; font-size: 17px; }
.unlocked p, .paid p { line-height: 1.7; margin: 7px 0 14px; }
#download-state { display: inline-block; margin-left: 8px; }
.footer { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; margin: 32px auto 20px; font-size: 12px; color: var(--secondary); }

@media (max-width: 800px) {
  .container { width: calc(100% - 32px); }
  .hero { padding: 33px 26px; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 0; }
  .workspace { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .top-inner { height: 57px; }
  .panel { padding: 18px; }
  .inputs { grid-template-columns: 1fr 1fr; }
  .inputs label:first-child { grid-column: span 2; }
  .result-rows div { grid-template-columns: 1fr; gap: 4px; }
  .hero::after { right: -200px; opacity: .6; }
}


.tool-detail {
  --paper: #fff;
  --line: #e7e3d9;
  --secondary: #6f6c60;
  --accent: #827049;
  --ink: #2d2e29;
  --tool-tint: #f9f7f2;
  background: white;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.tool-detail :focus-visible { outline-color: #827049; }
.tool-side {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  padding: 25px 12px;
  background: #fdfdfc;
  border-right: 1px solid #eeece7;
  z-index: 1;
}
.tool-brand { display: inline-flex; gap: 7px; align-items: center; color: #2d2e29; font-size: 23px; font-weight: 750; }
.tool-brand > span { color: #a99562; font-size: 26px; margin-right: 3px; }
.tool-brand small { color: #827750; font-size: 10px; font-weight: 500; letter-spacing: .045em; }
.tool-side .tool-brand { margin: 0 14px 19px; }
.tool-side nav { display: grid; gap: 4px; }
.tool-side nav a { display: flex; align-items: center; gap: 12px; min-height: 42px; border: 1px solid transparent; border-radius: 24px; padding: 8px 14px; font-size: 14px; font-weight: 550; }
.tool-side nav a span { min-width: 16px; text-align: center; font-size: 19px; }
.tool-side nav a:hover, .tool-side nav a.tool-nav-active { background: var(--tool-tint); border-color: #eee7d8; color: #6f5c32; }
.tool-mobile-head, .tool-mobile-nav { display: none; }
.tool-main { max-width: 1320px; margin-left: 240px; padding: 28px clamp(22px, 4.4vw, 66px) 30px; }
.tool-breadcrumb { display: flex; align-items: center; gap: 9px; color: var(--secondary); font-size: 13px; margin: 0 0 15px; }
.tool-breadcrumb a:hover { text-decoration: underline; }
.tool-heading { margin-bottom: 24px; }
.tool-heading h1 { color: var(--ink); font-size: clamp(26px, 3vw, 34px); line-height: 1.25; margin: 0 0 10px; }
.tool-heading p { color: var(--secondary); line-height: 1.75; font-size: 14px; margin: 0; max-width: 45em; }
.tool-workbench { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.tool-detail .panel { border-radius: 17px; }
.tool-input-panel { background: #f8f8f6; padding: 24px; }
.tool-input-panel .panel-head h2 { font-size: 18px; }
.tool-input-panel .secondary { font-size: 13px; margin-block: 9px 13px; }
.tool-input-panel legend { color: #534c3c; }
.tool-input-panel .inputs { gap: 10px; }
.tool-input-panel .inputs input, .tool-input-panel .inputs select { background: #fff; border-color: #e1dfd9; border-radius: 10px; font-size: 13px; padding-inline: 7px; }
.tool-detail .text-button { color: #6f5b34; font-weight: 550; }
.tool-detail .primary { border-radius: 24px; background: #827049; }
.tool-detail .primary:hover { background: #6f5c34; }
.tool-input-panel .primary { width: 100%; }
.tool-output .result { margin: 0; }
.tool-output .result h2 { font-size: 22px; }
.tool-example-hero { background: var(--tool-tint); border-color: #e9e2d2; padding: 22px; }
.tool-result-label { margin-bottom: 9px; color: #70654d; font-size: 12px; }
.tool-example-hero h2 { font-size: 19px; line-height: 1.35; margin: 0 0 15px; }
.tool-evidence { border-top: 1px solid var(--line); margin: 0; }
.tool-evidence div { display: flex; flex-wrap: wrap; gap: 3px 12px; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 9px 0; line-height: 1.55; }
.tool-evidence dt { color: var(--secondary); font-size: 13px; }
.tool-evidence dd { margin: 0; color: var(--ink); font-size: 13px; font-weight: 650; }
.tool-detail .unlocked { background: var(--tool-tint); }
.tool-detail .paid { background: #faf9f6; }
.tool-output .result-rows div { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); font-size: 13px; }
.tool-content-section { margin-top: 29px; }
.tool-content-section h2 { font-size: 20px; margin: 0 0 13px; }
.tool-example-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.tool-case { display: flex; flex-direction: column; padding: 16px; }
.tool-case h3 { margin: 0 0 7px; font-size: 15px; line-height: 1.45; }
.tool-example-input { margin: 0 0 12px; font-size: 11px; color: var(--secondary); line-height: 1.6; }
.tool-case .text-button { align-self: flex-start; margin-top: auto; padding-top: 14px; text-decoration: none; }
.tool-case .text-button:hover { text-decoration: underline; }
.tool-faq { border: 1px solid var(--line); border-radius: 15px; }
.tool-faq details + details { border-top: 1px solid var(--line); }
.tool-faq summary { padding: 15px 17px; cursor: pointer; font-size: 14px; font-weight: 600; line-height: 1.5; }
.tool-faq p { margin: 0; padding: 0 17px 16px; font-size: 14px; line-height: 1.75; color: var(--secondary); }
.tool-related { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-related a { display: flex; gap: 8px; align-items: center; min-height: 42px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 11px; color: #635438; font-size: 14px; }
.tool-related a:hover { background: var(--tool-tint); }
.tool-footer { margin-top: 23px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--secondary); font-size: 12px; line-height: 1.7; }

@media (max-width: 1010px) and (min-width: 761px) {
  .tool-side { width: 190px; }
  .tool-main { margin-left: 190px; padding-inline: 24px; }
  .tool-workbench { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .tool-side { display: none; }
  .tool-mobile-head { display: flex; justify-content: space-between; align-items: center; height: 55px; padding-inline: 16px; border-bottom: 1px solid var(--line); color: var(--secondary); font-size: 13px; }
  .tool-mobile-head .tool-brand { font-size: 20px; }
  .tool-main { margin-left: 0; padding: 18px 16px 78px; }
  .tool-heading { margin-bottom: 17px; }
  .tool-workbench { grid-template-columns: 1fr; }
  .tool-mobile-nav { position: fixed; z-index: 1; display: grid; grid-template-columns: repeat(6, 1fr); inset: auto 0 0; background: #fdfdfc; border-top: 1px solid var(--line); padding: 4px 0 calc(4px + env(safe-area-inset-bottom)); }
  .tool-mobile-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 44px; padding: 3px 0; font-size: 11px; white-space: nowrap; }
  .tool-mobile-nav a span { font-size: 16px; }
  .tool-mobile-nav a.tool-nav-active { color: #725e35; background: var(--tool-tint); }
}
@media (max-width: 480px) {
  .tool-main { padding-top: 13px; }
  .tool-input-panel, .tool-example-hero { padding: 17px; }
  .tool-input-panel fieldset { padding-block: 9px 12px; }
  .tool-input-panel .inputs { gap: 8px; }
}
