:root {
  color-scheme: light;
  --ink: #141d1a;
  --muted: #4e6058;
  --line: #d9e5dc;
  --paper: #fff;
  --surface: #f2f7f1;
  --accent: #d1fb6a;
  --green: #24593f;
  --dark: #142821;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
body, h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-underline-offset: .19em; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #63873d; outline-offset: 4px; }
.frame { width: min(1220px, calc(100% - 88px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 5; top: 10px; left: 10px; transform: translateY(-200%); padding: 8px 14px; background: #fff; }
.skip-link:focus { transform: translateY(0); }

.site-header { background: var(--dark); color: #f5faf6; border-bottom: 1px solid #ffffff21; }
.site-nav, .footer-inner { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 1.08rem; font-weight: 760; letter-spacing: -.025em; text-decoration: none; }
.brand-mark { width: 31px; height: 31px; display: flex; flex: none; align-items: end; justify-content: center; gap: 2px; padding-bottom: 7px; border-radius: 8px; background: var(--accent); }
.brand-mark i { width: 4px; height: 7px; border-radius: 1px; background: var(--dark); }
.brand-mark i:nth-child(2) { height: 11px; }
.brand-mark i:nth-child(3) { height: 16px; }
.site-nav nav, .footer-inner nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(16px, 3vw, 36px); font-size: .88rem; }
.site-nav nav a, .footer-inner nav a { text-decoration: none; }
.site-nav nav a:hover, .footer-inner nav a:hover { text-decoration: underline; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 18px; border: 1px solid transparent; border-radius: 8px; font-size: .93rem; font-weight: 740; text-decoration: none; white-space: nowrap; }
.button-primary { background: var(--accent); color: #182511; }
.button-primary:hover { background: #e0ff97; }
.button-outline { border-color: #749086; color: inherit; background: transparent; }
.button-outline:hover { background: #ffffff15; }
.button-small { min-height: 40px; padding: 7px 14px; font-size: .83rem; }

.hero { position: relative; isolation: isolate; color: #f6fbf6; background: var(--dark); }
.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse at 78% 58%, #365844 0%, transparent 62%);
  content: "";
}
.hero-grid { display: grid; grid-template-columns: .96fr 1.04fr; align-items: center; gap: clamp(24px, 4vw, 66px); padding-block: clamp(62px, 7.8vw, 112px) clamp(58px, 7.1vw, 102px); }
.product-type { display: inline-flex; align-items: center; gap: 9px; color: #e3eedf; font-size: .84rem; font-weight: 640; }
.product-type span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 { margin-block: 18px; font-size: clamp(2.75rem, 5.25vw, 5.2rem); font-weight: 820; line-height: 1.08; letter-spacing: -.078em; }
.hero h1 span { margin-left: .1em; color: var(--accent); }
.hero-description { max-width: 34ch; color: #d5e5d8; font-size: clamp(.96rem, 1.28vw, 1.14rem); line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.requirements { margin-top: 12px; color: #b9ccc0; font-size: .79rem; }
.requirements span { padding-inline: 4px; }
.product-figure { min-width: 0; }
.product-figure figcaption { margin-top: 11px; color: #c4d6c9; text-align: right; font-size: .74rem; }
.workbench { overflow: hidden; border: 1px solid #ceddd0; border-radius: 15px; background: #edf4ec; color: var(--ink); box-shadow: 0 24px 60px #0b1b154d; }
.workbench-bar { display: flex; align-items: center; gap: 13px; justify-content: space-between; padding: 11px 16px; border-bottom: 1px solid var(--line); background: #fff; font-size: .77rem; }
.workbench-name { margin-right: auto; font-weight: 760; }
.workbench-setting { color: var(--green); font-size: .71rem; font-weight: 670; }
.window-dots { display: inline-flex; align-items: center; gap: 4px; }
.window-dots i { width: 6px; height: 6px; border-radius: 50%; background: #a9baae; }
.workbench-body { padding: clamp(13px, 2vw, 25px); }
.workbench-heading { display: flex; flex-wrap: wrap; gap: 8px; align-items: start; justify-content: space-between; }
.workbench-heading strong { display: block; font-size: clamp(1rem, 1.55vw, 1.35rem); letter-spacing: -.035em; line-height: 1.2; }
.workbench-heading p { margin-top: 6px; color: var(--muted); font-size: .73rem; }
.mock-permission { color: var(--green); font-size: .7rem; font-weight: 680; }
.mock-control { width: max-content; padding: 3px 6px; border: 1px solid #b7cabc; border-radius: 5px; background: #fff; color: var(--green); font-size: .66rem; font-weight: 700; }
.mock-toolbar { display: flex; flex-wrap: wrap; gap: 7px 12px; align-items: center; padding: 8px; margin-top: 15px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.mock-toolbar div { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.mock-choice { display: inline-flex; align-items: center; gap: 4px; font-size: .73rem; font-weight: 650; }
.mock-choice i { display: inline-grid; width: 14px; height: 14px; place-content: center; border-radius: 3px; background: var(--green); color: #fff; font-style: normal; font-size: .64rem; }
.mock-start { margin-left: auto; padding: 4px 9px; border-radius: 5px; background: var(--dark); color: #fff; font-size: .72rem; font-weight: 730; }
.mock-workflows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 10px; }
.mock-workflow { min-width: 0; padding: clamp(8px, 1.3vw, 15px); border: 1px solid var(--line); border-radius: 9px; }
.price-workflow { background: #f4f8f2; }
.rank-workflow { background: #f1f6fb; border-color: #cfdeeb; }
.mock-workflow-title { display: flex; align-items: center; gap: 7px; padding-bottom: 10px; font-size: .9rem; line-height: 1.2; }
.workflow-icon { width: 32px; height: 32px; display: inline-grid; place-content: center; flex: none; border-radius: 8px; font-weight: 790; }
.price-icon { color: #276039; background: #e8f5df; }
.rank-icon { color: #284e78; background: #e8f0f9; }
.mock-row { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 2px 5px; padding-block: 6px; border-top: 1px solid #e9efe9; color: #384c40; font-size: .70rem; }
.mock-row span { color: #50695a; font-size: .65rem; }
.mock-file { display: flex; align-items: center; gap: 5px; margin-top: 5px; padding: 5px 6px; border-radius: 5px; background: var(--surface); color: #27613c; font-size: .67rem; font-weight: 690; }
.rank-workflow .mock-file { background: #e1ecf6; color: #284e78; }
.sheet-icon { color: #287146; font-size: 1em; line-height: 1; }

.export-section, .guide-section, .help-section { padding-block: clamp(47px, 6.2vw, 86px); }
.section-heading { margin-bottom: 26px; }
.section-heading h2 { margin-bottom: 8px; font-size: clamp(1.9rem, 3.5vw, 3rem); font-weight: 790; line-height: 1.2; letter-spacing: -.059em; }
.section-heading p { max-width: 65ch; color: var(--muted); font-size: .95rem; }
.export-viewer { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fcfefc; }
.export-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px clamp(10px, 2vw, 23px); border-bottom: 1px solid var(--line); background: var(--surface); }
.export-tabs { display: flex; gap: 5px; }
.export-tabs a { min-height: 40px; display: inline-flex; align-items: center; gap: 6px; padding: 6px clamp(7px, 1.3vw, 15px); border: 1px solid transparent; border-radius: 6px; color: #354d3d; font-size: .86rem; font-weight: 690; text-decoration: none; }
.export-tabs a:hover { background: #e7f1e5; }
.export-tabs a[aria-selected="true"] { border-color: #b2ccb5; background: #fff; color: #1b5434; }
.example-tag { flex: none; color: var(--muted); font-size: .73rem; }
.sheet-panel { padding: 0 clamp(10px, 2vw, 23px); }
.sheet-panel + .sheet-panel { border-top: 1px solid var(--line); }
.sheet-panel[role="tabpanel"] { border-top: 0; }
.sheet-title { display: flex; align-items: center; gap: 8px; padding-block: 14px; }
.sheet-title h3 { overflow-wrap: anywhere; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .78rem; font-weight: 600; }
.sheet-scroll { overflow: auto; border: 1px solid var(--line); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .79rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
th, td { border-bottom: 1px solid #e3ece4; padding: 9px clamp(9px, 1vw, 15px); }
th { background: #e7f1e5; color: #254c36; font-weight: 740; }
td + td, th + th { border-left: 1px solid #e3ece4; }
tbody tr:nth-child(even) td { background: #f7faf7; }
tbody tr:last-child td { border-bottom: 0; }
.result-cell { color: #1c623c; font-weight: 760; }
.sheet-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px 14px; padding-block: 13px; color: var(--muted); font-size: .79rem; }
.sheet-note strong, .sheet-note a, .text-link { color: var(--green); font-weight: 700; }
.sheet-note a { flex: none; }

.guide-section { background: #f1f6f0; border-block: 1px solid var(--line); }
.guide-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin: 0; padding: 0; list-style: none; }
.guide-steps li, .guide-path { padding: clamp(15px, 2vw, 25px); border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.step-number { display: block; margin-bottom: 12px; color: #2c6844; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .83rem; font-weight: 700; }
.guide-steps h3, .guide-path h3 { margin-bottom: 7px; font-size: 1.07rem; font-weight: 760; line-height: 1.35; }
.guide-steps p, .guide-path li { color: var(--muted); font-size: .88rem; line-height: 1.8; }
.guide-steps a { color: var(--green); font-weight: 700; }
code { overflow-wrap: anywhere; color: #28523a; font-size: .86em; }
.guide-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 11px; }
.guide-path .workflow-icon { margin-bottom: 10px; }
.guide-path ul { display: grid; gap: 7px; margin: 0; padding-left: 1.2em; }
.guide-path li::marker { color: #367b53; }
.help-section { display: grid; grid-template-columns: 1fr 1.65fr; gap: clamp(20px, 4vw, 65px); }
.help-section .section-heading { margin: 0; }
.help-section .text-link { display: inline-block; margin-top: 12px; font-size: .86rem; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; list-style: none; font-size: .92rem; font-weight: 720; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { width: 24px; height: 24px; display: grid; place-content: center; flex: none; border-radius: 50%; background: var(--surface); color: var(--green); content: "+"; font-size: 1rem; }
.faq details[open] summary::after { content: "−"; }
.faq p { padding: 0 28px 15px 0; color: var(--muted); font-size: .87rem; line-height: 1.8; }
.site-footer { border-top: 1px solid var(--line); background: #f7faf6; }
.footer-inner { min-height: 88px; }

.auth-body { min-height: 100dvh; background: radial-gradient(ellipse at 72% 27%, #f0e5ff, transparent 61%), #fbfaff; }
.auth-body .site-header { background: #fff; color: #1d1735; border-color: #eee9f6; }
.auth-body .header-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-body .text-link { color: #594398; white-space: nowrap; font-size: .88rem; }
.auth-body .brand-mark { background: linear-gradient(145deg, #795deb, #4f37c4); }
.auth-body .brand-mark i { background: #fff; }
.auth-layout { display: grid; place-items: start center; padding: clamp(33px, 7vw, 85px) 15px 50px; }
.auth-panel { width: min(440px, 100%); padding: clamp(17px, 3vw, 29px); border: 1px solid #e9e2f4; border-radius: 15px; background: #fff; box-shadow: 0 20px 55px #4e2e8e19; }
.auth-panel h1 { font-size: 26px; font-weight: 790; letter-spacing: -.055em; }
.back-home { display: inline-flex; gap: 5px; align-items: center; margin-bottom: 15px; }
.auth-note { margin: 4px 0 17px; color: #625b77; font-size: 13px; }
.auth-panel label { display: grid; gap: 4px; margin-bottom: 10px; color: #41365a; font-size: 12px; font-weight: 690; }
.auth-panel input { width: 100%; min-height: 40px; padding: 0 8px; border: 1px solid #e4def0; border-radius: 7px; color: #1d1735; background: #fcfbff; font-size: 13px; font-weight: 500; }
.auth-panel input::placeholder { color: #786e8b; }
.auth-panel .button { width: 100%; min-height: 41px; margin-top: 4px; background: #563dcb; color: #fff; }
.auth-panel .button:hover { background: #4229ab; }
.auth-switch { display: block; margin-top: 12px; text-align: center; }
.back-home, .auth-switch { color: #594398; font-size: 12px; font-weight: 650; text-decoration: none; }
.back-home:hover, .auth-switch:hover { text-decoration: underline; }
.form-error { margin-top: 6px; color: #941f43; font-size: 12px; }

.feedback-page { background: #f7faf8; }
.feedback-page main { max-width: 640px; padding-block: 42px; }
.feedback-page h1 { margin: 20px 0 14px; font-size: clamp(2rem, 5vw, 3rem); }
.feedback-page form { display: grid; gap: 16px; padding: 24px; border: 1px solid #cbd8d0; border-radius: 16px; background: #fff; }
.feedback-page label { display: grid; gap: 6px; font-weight: 650; }
.feedback-page input, .feedback-page select, .feedback-page textarea { width: 100%; padding: 9px 11px; border: 1px solid #a9c2b5; border-radius: 7px; }
.feedback-page button { justify-self: start; }
.feedback-page textarea { resize: vertical; }
.feedback-page [role="status"]:empty { display: none; }

@media (max-width: 940px) {
  .frame { width: calc(100% - 56px); }
  .guide-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 45px 36px; }
  .hero h1 { font-size: clamp(2.6rem, 9vw, 4.8rem); }
  .hero-description { max-width: 43ch; }
  .product-figure { width: min(100%, 560px); }
  .help-section { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { flex-wrap: wrap; padding-block: 15px; }
}

@media (max-width: 560px) {
  .frame { width: calc(100% - 34px); }
  .site-nav { display: grid; grid-template-columns: 1fr auto; gap: 12px 8px; padding-block: 13px; }
  .site-nav nav { grid-column: 1 / -1; grid-row: 2; }
  .brand { font-size: 1rem; }
  .hero h1 { margin-block: 12px; }
  .hero-actions .button { min-height: 44px; padding-inline: 12px; gap: 6px; font-size: .82rem; }
  .export-tabs a { font-size: .77rem; }
  .guide-paths { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { gap: 15px; }
  .footer-inner nav { width: 100%; order: 1; }
}

@media (max-width: 360px) {
  .frame { width: calc(100% - 26px); }
  .workbench-body { padding: 9px; }
  .mock-toolbar { gap: 5px; }
  .guide-steps { grid-template-columns: minmax(0, 1fr); }
}
