/* PianoToSheet 全站样式(11/05,骨架参考 audioenhancer 的暖纸色设计,强调色换成墨蓝):页面禁止内联样式,视觉都在这里。
   工具区(上传、结果、修正按钮、谱面)在 tool.css。字体本站托管(CSP 只许 'self')。 */
@font-face { font-family: "Geist"; src: url("/static/fonts/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  color-scheme: light;
  --paper: #f5f3ee; --paper-2: #ece8df; --card: #fffdf8; --line: #e2ddd1; --line-2: #d2cbbc;
  --ink: #17191c; --ink-2: #4b5058; --ink-3: #5f646c;
  --accent: #27458f; --accent-ink: #1c3470; --accent-soft: #e5eaf5; --accent-line: #bccae6;
  --danger: #a3352b; --danger-soft: #f8e8e4; --warn: #8a5a12; --warn-soft: #f7eedb; --focus: #c4570c;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1120px; --gutter: clamp(16px, 4vw, 40px);
  --shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 2px 6px -2px rgba(73, 58, 34, .12), 0 24px 48px -30px rgba(73, 58, 34, .35);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 3vw + 1rem, 3.6rem); font-weight: 650; letter-spacing: -.04em; margin: 0 0 18px; }
h2 { font-size: clamp(1.55rem, 1.4vw + 1rem, 2.2rem); font-weight: 630; letter-spacing: -.03em; margin: 0 0 14px; }
h3 { font-size: 1.08rem; font-weight: 620; margin: 0 0 8px; }
p { margin: 0 0 14px; text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 30; top: 10px; left: 10px; padding: 10px 14px; background: var(--card); border-radius: 10px; box-shadow: var(--shadow); }

/* 按钮:button 元素与 a.button 共用 */
button, .button { font: inherit; font-weight: 600; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink);
  padding: 10px 16px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; line-height: 1.2; }
button:hover, .button:hover { border-color: var(--ink-3); color: var(--ink); }
button:disabled { opacity: .5; cursor: not-allowed; }
.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.secondary { background: var(--card); }
.big { padding: 14px 22px; font-size: 1.05rem; width: 100%; }
.small { padding: 7px 12px; font-size: .92rem; border-radius: 8px; }
.link { background: none; border: none; color: var(--accent); padding: 6px 8px; text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }

.site-header { position: sticky; top: 0; z-index: 10; background: rgba(245, 243, 238, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { font-weight: 700; letter-spacing: -.02em; color: var(--ink); text-decoration: none; font-size: 1.12rem; display: inline-flex; align-items: center; gap: 8px; }
.brand-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: var(--paper); font-size: 1.05rem; }
.site-header nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-header nav a { color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.site-header nav a:hover { color: var(--ink); text-decoration: underline; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); padding-block: clamp(28px, 5vw, 64px); align-items: start; }
.eyebrow { color: var(--accent-ink); font-weight: 600; font-size: .9rem; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 10px; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: clamp(18px, 2.5vw, 28px); }
.fine { font-size: .9rem; color: var(--ink-3); }
.status { color: var(--ink-2); min-height: 1.4em; margin: 10px 0 0; }
.error { color: var(--danger); background: var(--danger-soft); border-radius: 10px; padding: 10px 12px; margin: 10px 0 0; }
.warn { color: var(--warn); background: var(--warn-soft); border-radius: 10px; padding: 10px 12px; }
.ticks { list-style: none; padding: 0; margin: 0 0 14px; }
.ticks li { padding-left: 26px; position: relative; margin: 6px 0; }
.ticks li::before { content: "✓"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }

.prose { padding-block: clamp(28px, 4vw, 48px); max-width: 820px; }
.prose li { margin: 6px 0; }
.steps { padding-left: 1.2em; }
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.price .amount { font-size: 2rem; font-weight: 700; letter-spacing: -.03em; margin: 0 0 6px; }
details { border-top: 1px solid var(--line); padding: 12px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--ink-2); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { font-weight: 620; background: var(--paper-2); }
.table-wrap { overflow-x: auto; }
.page { padding-block: clamp(28px, 4vw, 56px); }
.updated { color: var(--ink-3); font-size: .9rem; }

.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding-block: 24px; color: var(--ink-3); font-size: .92rem; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--ink-2); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
