/* One product header; each page keeps its own section links. */
:root { --site-header-height: 72px; scroll-padding-top: 96px; }
body[data-site-product] {
  --product-text: #312542;
  --product-muted: #796E89;
  --product-accent: #7451D6;
  --product-border: #E6E0EF;
  --product-panel: #FFF;
  --product-hover: #F7F4FC;
  --product-selected: #F2EDFD;
  --product-shadow: 0 20px 60px #35214C1C, 0 4px 12px #35214C0A;
}
body[data-site-product="dreamcanvas"] {
  --product-text: #F4F1FF;
  --product-muted: #B5ADCD;
  --product-accent: #B9A7FF;
  --product-border: #49405F;
  --product-panel: #272137;
  --product-hover: #332C45;
  --product-selected: #3A3055;
  --product-shadow: 0 20px 60px #0F0B2066, 0 4px 12px #0F0B2033;
  padding-top: 0;
}
.site-product-nav { display: flex; align-items: center; gap: 6px; flex: none; font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; }
.site-product-nav .site-product-link { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 12px; border: 1px solid transparent; border-radius: 10px; color: var(--product-text); font-size: 15px; font-weight: 700; line-height: 1.4; text-decoration: none; white-space: nowrap; transition: background-color .16s, border-color .16s; }
.site-product-nav .site-product-link:hover { color: var(--product-text); background: var(--product-hover); }
.site-product-nav .site-product-link[aria-current="page"] { background: var(--product-selected); border-color: var(--product-border); }
.site-product-link[aria-current="page"]::after { content: ''; position: absolute; right: 12px; bottom: 3px; left: 12px; height: 2px; border-radius: 2px; background: var(--product-accent); }
.site-product-icon { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 8px; }
.site-product-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.site-product-icon-vctool { padding: 4px; background: #FFF; border: 1px solid #E6E0EF; }
.site-product-link:focus-visible, .site-skip:focus-visible { outline: 2px solid var(--product-accent); outline-offset: 3px; }
.site-skip { position: fixed; top: 6px; left: 16px; z-index: 1600; padding: 10px 16px; border-radius: 8px; background: #FFA53A; color: #1E1B2E; transform: translateY(-180%); }
.site-skip:focus { transform: translateY(0); }
body[data-site-product="vctool"] #nav, body[data-site-product="vctool"] #nav.scrolled { top: 0; height: var(--site-header-height); padding: 0; }
body[data-site-product="vctool"] #nav > .container { width: min(1240px, calc(100% - 48px)); max-width: none; height: 100%; padding: 0; }
body[data-site-product="vctool"] .scroll-progress { top: 0; }
body[data-site-product="vctool"] #nav a, body[data-site-product="vctool"] #nav button { min-height: 44px; }
body[data-site-product="vctool"] .nav-links a { display: inline-flex; align-items: center; }
body[data-site-product="vctool"] .nav-mobile-toggle { min-width: 44px; }
body[data-site-product="vctool"] .nav-mobile-menu { max-height: calc(100dvh - 96px); overflow-y: auto; }
body[data-site-product="vctool"] #nav a:focus-visible, body[data-site-product="vctool"] #nav button:focus-visible { outline: 2px solid var(--product-accent); outline-offset: 3px; }
body[data-site-product="vctool"] { --pink-400: #F472B6; padding-top: var(--site-header-height); }
body[data-site-product="vctool"] .hero { min-height: calc(100svh - var(--site-header-height)); }
body[data-site-product="vctool"] .hero .container { width: min(1240px, calc(100% - 48px)); padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
body[data-site-product="vctool"] .hero-content, body[data-site-product="vctool"] .hero-visual { min-width: 0; }
body[data-site-product="vctool"] .hero h1 { font-size: clamp(42px, 4vw, 64px); }
body[data-site-product="vctool"] .hero-subline { white-space: normal; }
body[data-site-product="vctool"] .data-flow-container { width: 100%; gap: 20px; padding: 20px 0; }
body[data-site-product="vctool"] .flow-connector { width: 72px; flex: 0 0 72px; }
body[data-site-product="dreamcanvas"] .bar { top: 0; z-index: 1000; }
body[data-site-product="dreamcanvas"] .bar > .wrap { height: var(--site-header-height); min-height: var(--site-header-height); padding-block: 0; gap: 20px; }
body[data-site-product="dreamcanvas"] .skip-link { z-index: 1600; }
.has-js body[data-site-product="dreamcanvas"] .bar nav { top: 80px; max-height: calc(100dvh - 96px); }
.site-beian { display: inline-flex; align-items: center; gap: 6px; }
.site-beian img { display: inline-block; width: 16px; height: 16px; }
footer .site-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; font-size: 13px; font-weight: 500; line-height: 1.7; color: var(--product-muted); text-align: center; }
footer .site-legal > * { margin: 0; font: inherit; color: inherit; }
footer .site-legal a { display: inline-flex; align-items: center; gap: 6px; color: inherit; font: inherit; text-decoration: none; }
footer .site-legal a:hover { color: var(--product-accent); }
footer .site-legal img { display: block; width: 16px; height: 16px; border-radius: 0; }
@media (max-width: 1200px) {
  .has-js body[data-site-product="dreamcanvas"] .nav-toggle { display: inline-flex; margin-left: auto; }
  .has-js body[data-site-product="dreamcanvas"] #pageNav { display: none; position: absolute; top: 80px; right: 24px; width: min(360px, calc(100% - 48px)); max-height: calc(100dvh - 96px); overflow-y: auto; overscroll-behavior: contain; padding: 16px; border: 1px solid #655D83; border-radius: 14px; background: var(--ink); box-shadow: 0 20px 50px #0004; }
  .has-js body[data-site-product="dreamcanvas"] #pageNav.is-open { display: flex; flex-direction: column; gap: 4px; }
  .has-js body[data-site-product="dreamcanvas"] #pageNav a { padding-inline: 12px; }
}
@media (max-width: 960px) {
  body[data-site-product="vctool"] .hero .container { width: calc(100% - 32px); grid-template-columns: minmax(0, 1fr); }
  body[data-site-product="vctool"] .hero { padding: 48px 0 64px; }
  body[data-site-product="vctool"] .hero h1 { font-size: clamp(28px, 8.5vw, 52px); }
  body[data-site-product="vctool"] .data-flow-container { gap: 26px; }
  body[data-site-product="vctool"] .flow-connector { width: auto; flex: none; }
  html:not(.site-nav-ready) body[data-site-product="vctool"] #nav { height: auto; min-height: var(--site-header-height); }
  html:not(.site-nav-ready) body[data-site-product="vctool"] #nav > .container { flex-wrap: wrap; gap: 8px; padding-block: 12px; }
  html:not(.site-nav-ready) body[data-site-product="vctool"] .nav-links { display: flex; flex-wrap: wrap; }
  html:not(.site-nav-ready) body[data-site-product="vctool"] .nav-mobile-toggle { display: none; }
  html:not(.has-js) body[data-site-product="dreamcanvas"] .bar > .wrap { height: auto; padding-block: 12px; }
}
@media (max-width: 560px) {
  :root { scroll-padding-top: 88px; }
  body[data-site-product="vctool"] #nav > .container { width: calc(100% - 32px); }
  .site-product-nav { gap: 4px; }
  .site-product-nav .site-product-link { min-height: 44px; padding: 8px; font-size: 13px; }
  .site-product-nav .site-product-icon { display: none; }
  body[data-site-product="dreamcanvas"] .bar > .wrap { width: calc(100% - 32px); gap: 8px; }
  body[data-site-product="dreamcanvas"] .nav-toggle { min-width: 44px; justify-content: center; padding-inline: 10px; font-size: 0; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .site-product-link { transition: none; }
  body[data-site-product="vctool"] .reveal { opacity: 1; transform: none; transition: none; }
}
