/* Styles for the independent Bonbon product site. */
:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #222724;
  --muted: #69726d;
  --green: #246c51;
  --mint: #a8e8cb;
  --mint-pale: #e8f5ef;
  --line: #e6eae7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; }
body { min-width: 320px; margin: 0; color: var(--ink); background: var(--paper); }
[hidden] { display: none !important; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; }
.section-wrap { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; left: 20px; top: 8px; padding: 12px; background: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { width: min(1320px, calc(100% - 80px)); min-height: 76px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; font-size: 18px; font-weight: 650; }
.brand img { width: 30px; height: 30px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 30px; font-size: 13px; }
.site-nav a { padding-block: 18px; color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); }
.site-nav a[aria-current] { font-weight: 600; }
.nav-workbench { padding: 11px 0 11px 26px; border-left: 1px solid var(--line); background: none; color: var(--ink); font-size: 13px; }
.nav-workbench span { margin-left: 8px; }
.nav-workbench:hover { color: var(--green); }
.hero { padding-top: 64px; }
.hero-heading { text-align: center; margin-bottom: 44px; }
.hero h1 { font-size: clamp(40px, 4.1vw, 58px); font-weight: 620; line-height: 1.3; letter-spacing: -1.6px; }
.hero-description { margin-top: 22px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 26px; margin-top: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; font-weight: 550; transition: background .15s; }
.button > span:last-child { margin-left: 8px; }
.button-primary { background: var(--mint); color: #163d2b; }
.button-primary:hover { background: #95dfbe; }
.button-secondary { background: #f1f4f2; border-color: var(--line); color: var(--ink); }
.button-secondary:hover { background: #e7eee9; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #9ba99f; }
.text-link:hover { color: var(--green); }
.download-note { margin-top: 12px; color: #78817b; font-size: 11px; }
.image-preview { display: block; width: 100%; padding: 0; background: transparent; border-radius: 10px; cursor: zoom-in; }
.image-preview img { width: 100%; height: auto; border-radius: inherit; }
.overview-image { padding: 18px; border-radius: 20px; background: var(--mint-pale); }
.overview-image img { border: 1px solid #dbe3de; border-radius: 9px; }
figure figcaption { margin-top: 13px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.overview-figure figcaption { display: flex; justify-content: space-between; gap: 20px; padding-inline: 4px; }
.caption-hint { white-space: nowrap; color: #7a837c; }
.section-heading h2 { font-size: 34px; font-weight: 600; line-height: 1.35; letter-spacing: -.7px; }
.section-heading > p { margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.web-section { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.5fr); align-items: center; gap: 80px; padding-block: 108px; }
.web-features { margin-top: 32px; }
.web-features article + article { margin-top: 24px; }
.web-features h3, .sidebar-features h3 { font-size: 17px; line-height: 1.5; font-weight: 600; }
.web-features p, .sidebar-features p { margin-top: 7px; color: #657069; font-size: 14px; line-height: 1.85; }
.availability-note { margin-top: 28px; color: #7a837c; font-size: 12px; }
.web-image-mat { padding: 24px; border-radius: 16px; background: #f1f4f2; }
.web-image-mat .image-preview { border: 1px solid #e0e6e2; border-radius: 8px; }
.web-figure figcaption { padding-left: 3px; }
.sidebar-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 112px; padding-top: 84px; padding-bottom: 104px; border-top: 1px solid var(--line); align-items: center; }
.sidebar-copy { grid-column: 2; grid-row: 1; }
.sidebar-figure { grid-column: 1; grid-row: 1; }
.sidebar-features { margin-top: 30px; }
.sidebar-features article + article { margin-top: 24px; }
.sidebar-features h3 { display: flex; align-items: center; gap: 10px; }
.sidebar-features h3 img { width: 22px; height: 22px; object-fit: contain; }
.sidebar-features p { margin-left: 32px; }
.sidebar-image-mat { display: grid; place-items: center; padding: 40px; border-radius: 18px; background: #e8f3ec; }
.sidebar-image-mat .image-preview { width: min(100%, 286px); border: 1px solid #d0dbd3; border-radius: 8px; }
.sidebar-figure figcaption { text-align: center; }
.site-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; padding-block: 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.site-footer .brand { gap: 0; color: var(--ink); font-size: 15px; }
.site-footer > nav { display: flex; gap: 22px; margin-left: auto; }
.site-footer a:hover { color: var(--green); }
.site-footer > small { font-size: 11px; }
.eyebrow { font-size: 12px; color: var(--muted); }
.toast { position: fixed; z-index: 25; left: 50%; bottom: 26px; max-width: calc(100% - 32px); width: max-content; padding: 14px 20px; border: 1px solid #467d64; border-radius: 8px; background: #193a30; color: #fff; font-size: 12px; opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 8px); transition: opacity .2s, transform .2s, visibility .2s; }
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
dialog { color: var(--ink); border: 1px solid #d5dfd0; border-radius: 16px; box-shadow: 0 24px 100px #05140d4d; background: var(--paper); }
dialog::backdrop { background: #10291f80; backdrop-filter: blur(5px); }
.password-modal { width: min(440px, calc(100% - 32px)); padding: 38px 32px 28px; max-height: calc(100dvh - 32px); }
.modal-close { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border-radius: 7px; background: #e8eee4; color: #5b745b; font-size: 24px; font-weight: 300; }
.password-modal > .modal-close { position: absolute; top: 12px; right: 12px; }
.modal-close:hover { background: #d4e1d1; }.password-modal h2 { margin-top: 18px; font-size: 24px; font-weight: 560; letter-spacing: 0; }
.modal-description { margin-top: 12px; font-size: 12px; color: var(--muted); line-height: 1.8; }
.password-modal form { margin-top: 26px; }.password-modal label { display: block; margin-bottom: 9px; font-size: 12px; }
.password-modal input { width: 100%; height: 47px; padding: 0 13px; border: 1px solid #c9d4c4; border-radius: 7px; background: #fff; font-size: 14px; color: var(--ink); }
.password-modal input[aria-invalid="true"] { border-color: #b9694c; }
.form-error { min-height: 23px; margin-top: 7px; font-size: 11px; color: #a3492c; }
.password-modal .button { width: 100%; }
.image-modal { width: min(1500px, calc(100% - 40px)); max-width: none; padding: 0; max-height: calc(100dvh - 40px); overflow: hidden; }
.image-modal-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 13px 18px; font-size: 12px; border-bottom: 1px solid var(--line); }
.image-modal-toolbar .modal-close { flex-shrink: 0; }
.image-modal-scroll { overflow: auto; max-height: calc(100dvh - 104px); text-align: center; padding: 12px; background: #e7ece4; }
.image-modal-scroll img { max-width: 100%; max-height: calc(100dvh - 140px); width: auto; margin-inline: auto; object-fit: contain; }

.placeholder-main { min-height: calc(100dvh - 168px); padding-block: 88px; }
.placeholder-main h1 { font-size: 42px; font-weight: 600; line-height: 1.4; }
.placeholder-copy > p { max-width: 460px; margin-top: 20px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.placeholder-copy .button { margin-top: 28px; }
@media (max-width: 1050px) {
  .section-wrap { width: calc(100% - 64px); }
  .header-inner { width: calc(100% - 48px); }
  .hero { padding-top: 52px; }
  .web-section { gap: 40px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); padding-block: 80px; }
  .web-image-mat { padding: 16px; }
  .sidebar-section { gap: 64px; padding-block: 72px; }
  .sidebar-image-mat { padding: 30px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 126px; }
  .section-wrap, .header-inner { width: calc(100% - 40px); }
  .header-inner { min-height: 66px; gap: 16px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand img { width: 28px; height: 28px; }
  .site-nav { gap: 18px; font-size: 12px; }
  .nav-workbench { font-size: 12px; padding-left: 16px; }
  .hero { padding-top: 42px; }
  .hero-heading { margin-bottom: 30px; }
  .hero h1 { font-size: clamp(28px, 5.7vw, 40px); letter-spacing: -.9px; line-height: 1.4; }
  .hero-description { max-width: 420px; margin: 18px auto 0; font-size: 14px; }
  .hero-actions { margin-top: 22px; gap: 22px; }
  .overview-image { padding: 8px; border-radius: 13px; }
  .overview-image img { border-radius: 6px; }
  figure figcaption { font-size: 11px; }
  .caption-hint { display: none; }
  .section-heading h2 { font-size: 28px; }
  .section-heading > p { margin-top: 8px; font-size: 14px; }
  .web-section { display: flex; flex-direction: column; align-items: stretch; gap: 28px; padding-block: 56px; }
  .web-features { margin-top: 26px; }
  .web-features article + article { margin-top: 22px; }
  .availability-note { margin-top: 22px; }
  .web-image-mat { padding: 14px; border-radius: 12px; }
  .sidebar-section { display: flex; flex-direction: column; align-items: stretch; gap: 32px; padding-block: 48px; }
  .sidebar-features { margin-top: 26px; }
  .sidebar-image-mat { padding: 28px; border-radius: 13px; }
  .sidebar-image-mat .image-preview { width: min(100%, 254px); }
  .site-footer { gap: 20px 16px; padding-block: 26px; font-size: 11px; }
  .site-footer > nav { gap: 16px; }
  .site-footer > small { flex-basis: 100%; font-size: 10px; }
  .placeholder-main { padding-block: 52px; }
  .placeholder-main h1 { font-size: 32px; }
  .placeholder-copy > p { font-size: 14px; }
  .image-modal { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  .image-modal-scroll { max-height: calc(100dvh - 94px); }
  .image-modal-scroll img { max-width: none; max-height: none; min-width: 100%; width: 950px; }
  .image-modal[data-portrait] .image-modal-scroll img { width: 100%; max-width: 100%; }
  .image-modal-toolbar { font-size: 10px; padding: 10px 12px; }
}

/* Reference direction: centered hero, very light dot field, screenshot-led layout. */
body[data-style="reference"] { background: #fbfdfc; }
body[data-style="reference"] .site-header { background: rgba(255,255,255,.92); border-bottom-color: #edf2ef; }
body[data-style="reference"] .hero { padding-top: 56px; padding-bottom: 72px; background-image: radial-gradient(#d9eee5 .85px, transparent .85px); background-size: 18px 18px; }
body[data-style="reference"] .hero-heading { margin-bottom: 42px; }
body[data-style="reference"] .hero-heading::before { content: "Bonbon 工具箱"; display: inline-block; padding: 7px 13px; border-radius: 9px; background: #dff6ec; color: #057252; font-size: 17px; font-weight: 600; }
body[data-style="reference"] .hero h1 { margin-top: 24px; font-size: clamp(42px, 5.5vw, 76px); font-weight: 650; line-height: 1.18; letter-spacing: -2px; }
body[data-style="reference"] .hero-description { margin-top: 22px; }
body[data-style="reference"] .hero-actions { margin-top: 28px; }
body[data-style="reference"] .button { border-radius: 7px; }
body[data-style="reference"] .button-primary { background: #13ae7d; color: #fff; }
body[data-style="reference"] .button-primary:hover { background: #0e966b; }
body[data-style="reference"] .overview-image { padding: 0; border: 1px solid #a9b9b2; border-radius: 18px; background: #fff; box-shadow: 0 12px 38px rgb(35 78 59 / 8%); overflow: hidden; }
body[data-style="reference"] .overview-image img { border: 0; border-radius: 0; }
body[data-style="reference"] .overview-figure figcaption { max-width: 1024px; margin-inline: auto; }
body[data-style="reference"] .web-section, body[data-style="reference"] .sidebar-section { background: #fff; }
body[data-style="reference"] .web-section { margin-top: 0; }
body[data-style="reference"] .web-image-mat, body[data-style="reference"] .sidebar-image-mat { background: #f4f8f6; border: 1px solid #e0e9e4; }
body[data-style="reference"] .sidebar-section { border-top-color: #e5ede8; }
body[data-style="reference"] .sidebar-section .section-heading > p { color: var(--muted); }
body[data-style="reference"] .sidebar-features h3 img { filter: none; }
@media (max-width: 760px) {
  body[data-style="reference"] .hero { padding-top: 40px; padding-bottom: 48px; }
  body[data-style="reference"] .hero-heading::before { font-size: 14px; }
  body[data-style="reference"] .hero h1 { margin-top: 18px; font-size: clamp(32px, 8vw, 44px); letter-spacing: -1px; }
}
@media (max-width: 540px) {
  .header-inner { flex-wrap: wrap; gap: 0; padding-top: 12px; }
  .site-nav { width: 100%; margin-top: 4px; justify-content: space-between; gap: 20px; min-height: 46px; }
  .site-nav .nav-workbench { margin-left: auto; border-left: 0; padding-left: 0; }
  .hero-description br { display: none; }
  .hero-description { max-width: 320px; }
  .hero-actions { gap: 18px; }
  .hero-actions .button { padding-inline: 16px; font-size: 13px; }
  .hero-actions .text-link { font-size: 12px; }
  .password-modal { padding: 38px 24px 24px; }
  .password-modal h2 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Alternate visual directions for review. Content and interactions stay the same. */
body[data-style="editorial"] {
  --paper: #f7f4ee;
  --ink: #171717;
  --muted: #706e68;
  --green: #b44732;
  --mint: #e9b39d;
  --mint-pale: #f1e4da;
  --line: #ded8cf;
  background: var(--paper);
}
body[data-style="editorial"] .site-header { background: var(--paper); border-bottom-color: #d9d0c5; }
body[data-style="editorial"] .hero { padding-top: 78px; }
body[data-style="editorial"] .hero h1 { font-family: Georgia, "Songti SC", serif; font-size: clamp(44px, 5vw, 76px); font-weight: 500; letter-spacing: -2px; }
body[data-style="editorial"] .hero-description { font-family: Georgia, "Songti SC", serif; font-size: 16px; }
body[data-style="editorial"] .button-primary { background: #171717; color: #fff; }
body[data-style="editorial"] .button-primary:hover { background: #37312d; }
body[data-style="editorial"] .text-link { text-decoration: none; border-bottom: 1px solid currentColor; }
body[data-style="editorial"] .overview-image { padding: 0; border-radius: 0; background: transparent; }
body[data-style="editorial"] .overview-image img { border: 0; border-radius: 0; }
body[data-style="editorial"] .web-section { border-top: 1px solid var(--line); }
body[data-style="editorial"] .web-image-mat, body[data-style="editorial"] .sidebar-image-mat { padding: 0; border-radius: 0; background: transparent; }
body[data-style="editorial"] .web-image-mat .image-preview, body[data-style="editorial"] .sidebar-image-mat .image-preview { border: 0; border-radius: 0; }
body[data-style="editorial"] .sidebar-section { background: #171717; color: #f7f4ee; border-top: 0; }
body[data-style="editorial"] .sidebar-section .section-heading > p, body[data-style="editorial"] .sidebar-features p { color: #bcb6ad; }
body[data-style="editorial"] .sidebar-features h3 img { filter: grayscale(1) brightness(0) invert(1); }
body[data-style="editorial"] .site-footer { background: var(--paper); }

body[data-style="workbench"] {
  --paper: #111916;
  --ink: #edf5ef;
  --muted: #a1b1a8;
  --green: #8be3bb;
  --mint: #8be3bb;
  --mint-pale: #1d3028;
  --line: #2b3c34;
  background: var(--paper);
}
body[data-style="workbench"] .site-header { background: #111916; border-bottom-color: var(--line); }
body[data-style="workbench"] .site-nav a { color: #a1b1a8; }
body[data-style="workbench"] .nav-workbench { color: var(--ink); border-left-color: var(--line); }
body[data-style="workbench"] .hero { padding-top: 58px; }
body[data-style="workbench"] .hero-heading { display: grid; grid-template-columns: 1fr .8fr; text-align: left; align-items: end; gap: 48px; }
body[data-style="workbench"] .hero h1 { font-size: clamp(42px, 5vw, 72px); letter-spacing: -2px; }
body[data-style="workbench"] .hero-description { margin-left: 0; }
body[data-style="workbench"] .hero-actions { justify-content: flex-start; }
body[data-style="workbench"] .button-primary { color: #11241c; }
body[data-style="workbench"] .overview-image { padding: 12px; border: 1px solid #3c5a4b; background: #1c2d25; }
body[data-style="workbench"] .overview-image img { border-color: #3c5a4b; }
body[data-style="workbench"] .web-section { border-top-color: var(--line); }
body[data-style="workbench"] .web-image-mat, body[data-style="workbench"] .sidebar-image-mat { background: #1c2d25; }
body[data-style="workbench"] .web-image-mat .image-preview, body[data-style="workbench"] .sidebar-image-mat .image-preview { border-color: #3c5a4b; }
body[data-style="workbench"] .web-features p, body[data-style="workbench"] .sidebar-features p { color: #b4c3ba; }
body[data-style="workbench"] .sidebar-section { background: #182920; border-top: 1px solid var(--line); }
body[data-style="workbench"] .sidebar-image-mat { border: 1px solid #416c56; }
body[data-style="workbench"] .site-footer { border-top-color: var(--line); }
@media (max-width: 760px) {
  body[data-style="workbench"] .hero-heading { display: block; text-align: left; }
  body[data-style="workbench"] .hero-actions { justify-content: flex-start; }
}
