:root { color-scheme: light; --page: #fff; --panel: #fff; --line: #e3e5eb; --text: #202532; --muted: #606979; --accent: #6844c3; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--page); color: var(--text); font: 17px/1.85 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; }
button, textarea { font: inherit; }
button, summary { cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #4d2a9b; text-decoration: underline; }
button, a, summary, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.guide-shell { width: min(1000px, 100% - 64px); margin: auto; }
.guide-header { display: flex; justify-content: space-between; align-items: center; padding: 27px 0; border-bottom: 1px solid var(--line); }
.guide-brand { color: var(--text); font-weight: 700; letter-spacing: -.4px; }
.guide-brand span, .quiet-link { color: var(--muted); font-size: 15px; font-weight: 400; }
.guide-intro { padding: 42px 0 28px; }
.eyebrow { color: var(--accent); font-size: 14px; letter-spacing: 2px; margin: 0 0 9px; }
h1 { font-size: clamp(32px, 4vw, 40px); line-height: 1.3; font-weight: 650; letter-spacing: -1px; margin: 0; }
.guide-intro > p:last-child { color: var(--muted); margin: 12px 0 0; font-size: 18px; }
h2 { font-size: 23px; line-height: 1.5; font-weight: 650; margin: 0; }
.analyzer-panel { background: var(--panel); border: 1px solid #ded5ef; border-radius: 18px; padding: 30px; box-shadow: 0 5px 24px #35205c06; }
.panel-heading { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.panel-heading p { margin: 8px 0 0; color: var(--muted); font-size: 16px; }
.panel-tag { flex-shrink: 0; color: var(--accent); background: #f2edfc; border-radius: 6px; font-size: 13px; padding: 4px 10px; margin-top: 3px; }
.analyzer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.analyzer-input { min-width: 0; }
.analyzer-input label { display: block; font-size: 15px; color: var(--muted); margin-bottom: 8px; }
textarea { width: 100%; min-height: 172px; resize: vertical; display: block; border: 1px solid #cfd3dc; border-radius: 10px; background: #fff; color: var(--text); padding: 15px; font-size: 16px; line-height: 1.75; }
textarea::placeholder { color: #707887; }
textarea:focus { border-color: var(--accent); outline: 1px solid var(--accent); outline-offset: 0; }
.analyzer-actions { display: flex; align-items: center; gap: 15px; margin-top: 16px; }
.primary-button { border: 0; background: var(--accent); color: #fff; padding: 10px 22px; border-radius: 8px; font-size: 16px; font-weight: 600; min-height: 46px; }
.primary-button:hover { background: #5432a5; }
.text-button { border: 0; padding: 9px 10px; background: transparent; color: var(--muted); font-size: 16px; min-height: 46px; }
.sample-details { margin-top: 14px; font-size: 15px; color: var(--muted); }
summary { width: fit-content; padding: 4px 0; }
summary:hover { color: var(--text); }
.sample-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sample-btn { color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 7px 11px; background: #fff; font-size: 15px; min-height: 44px; }
.sample-btn:hover { color: var(--accent); border-color: #b9a7dd; }
.analyzer-result { min-width: 0; background: #f8f9fc; border: 1px solid var(--line); border-radius: 10px; padding: 22px; align-self: start; min-height: 262px; }
.result-empty { min-height: 216px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: var(--muted); font-size: 16px; gap: 10px; }
.result-empty > span { font-size: 28px; color: #9477c8; }
.result-empty p { max-width: 240px; margin: 0; }
.result-heading { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.result-heading h3 { margin: 0; font-size: 17px; font-weight: 600; color: var(--accent); }
.result-serial { color: var(--muted); font-size: 14px; }
.result-field { margin: 14px 0; min-width: 0; }
.result-field > span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 5px; }
.result-field code { display: block; font: 16px/1.75 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; color: var(--text); }
.result-url code { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.result-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.result-primary, .result-secondary { display: inline-block; border: 1px solid #d5d8e1; border-radius: 7px; padding: 9px 13px; font-size: 15px; line-height: 1.7; min-height: 44px; text-align: center; background: #fff; color: #384153; }
.result-primary { background: var(--accent); color: #fff; border-color: transparent; width: 100%; font-weight: 600; }
.result-primary:hover { background: #5432a5; color: #fff; text-decoration: none; }
.result-secondary:hover { background: #f1edfa; color: var(--accent); text-decoration: none; }
.result-hint, .result-message { font-size: 15px; line-height: 1.85; color: var(--muted); margin: 15px 0 0; }
.notices-section, .steps-section { margin-top: 40px; }
.section-heading { margin-bottom: 18px; }
.notice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.notice-card { background: #fafbfc; border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.notice-card h3 { margin: 0 0 9px; font-size: 18px; font-weight: 600; }
.notice-card p { margin: 0; color: #465063; font-size: 16px; line-height: 1.85; }
.notice-card .notice-extra { margin-top: 10px; font-size: 15px; color: var(--muted); }
.notice-link { display: inline-block; margin-top: 10px; font-size: 15px; }
.steps-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.guide-steps { list-style: none; margin: 0; padding: 0; }
.guide-step { display: flex; gap: 22px; padding: 27px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.step-number { font: 16px/2.1 ui-monospace, Consolas, monospace; color: var(--accent); padding-top: 1px; }
.step-body { flex: 1; min-width: 0; }
.step-body h3 { font-size: 20px; font-weight: 600; margin: 0; }
.step-body > p { margin: 9px 0 0; color: #465063; font-size: 17px; }
.step-body > .step-note { font-size: 15px; color: var(--muted); }
.step-title { display: flex; gap: 10px; align-items: center; }
.optional-tag { color: var(--muted); font-size: 13px; border: 1px solid var(--line); border-radius: 5px; padding: 0 7px; }
.step-detail { color: var(--muted); font-size: 16px; margin-top: 12px; }
.step-detail[open] { background: #fafbfc; border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; }
.step-detail p { margin: 10px 0 0; overflow-wrap: anywhere; }
.rebind-steps { list-style: decimal; margin: 12px 0; padding-left: 22px; }
.rebind-steps li { padding: 5px 0; overflow-wrap: anywhere; }
.detail-link { display: inline-block; margin-top: 5px; }
.guide-footer { display: flex; justify-content: space-between; gap: 16px; padding: 26px 0 40px; color: var(--muted); font-size: 15px; }
.guide-footer a { white-space: nowrap; color: var(--muted); }
.guide-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 10; background: #fff; color: var(--text); padding: 12px 20px; border: 1px solid #d4c9e8; border-radius: 10px; max-width: calc(100% - 32px); overflow-wrap: anywhere; font-size: 16px; box-shadow: 0 8px 30px #34204a1a; }
.hidden { display: none; }
@media (max-width: 680px) {
  .guide-shell { width: calc(100% - 36px); }
  .guide-header { padding: 21px 0; }
  .guide-intro { padding: 30px 0 25px; }
  .guide-intro > p:last-child { font-size: 17px; }
  .analyzer-panel { padding: 20px; border-radius: 14px; }
  .panel-heading { gap: 8px; }
  .panel-tag { display: none; }
  .analyzer-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 22px; }
  .analyzer-result { min-height: 128px; padding: 18px; }
  .result-empty { min-height: 90px; flex-direction: row; text-align: left; gap: 16px; }
  .result-empty p { max-width: none; }
  .notices-section, .steps-section { margin-top: 32px; }
  .notice-grid { grid-template-columns: 1fr; gap: 12px; }
  .notice-card { padding: 20px; }
  .guide-step { gap: 14px; padding: 24px 0; }
  .step-body h3 { font-size: 19px; }
  .step-detail[open] { padding: 12px 14px; }
  .guide-footer { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
