@layer reset, base, components, responsive;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, p, figure, ul, ol { margin: 0; }
  button, input { font: inherit; }
  button, a, summary, input { -webkit-tap-highlight-color: transparent; }
  button { border: 0; color: inherit; cursor: pointer; }
  a { color: inherit; text-decoration: none; }
  img, svg { display: block; }
  img { max-width: 100%; }
  [hidden] { display: none !important; }
}

@layer base {
  :root { color-scheme: light; --paper: #fcf9f5; --ink: #302821; --muted: #6b5f55; --line: #ded2c6; --accent: #a84630; --accent-hover: #8d3927; --surface: #f2ebe3; --surface-raised: #fffdfa; --accent-soft: #f3e2d8; --muted-soft: #7b6c60; --line-strong: #c8b8aa; --on-accent: #fff; --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
  html { scroll-behavior: smooth; scroll-padding-top: 100px; }
  body { background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.8; text-align: center; -webkit-font-smoothing: antialiased; }
  ::selection { background: #a8463033; }
  :focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
  button, a, summary { touch-action: manipulation; }
  h1, h2, h3 { font-weight: 600; line-height: 1.45; text-wrap: balance; }
  p { text-wrap: pretty; }
  .container { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
  .icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
  .icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
  .section { padding-block: 96px; }
  .button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 54px; padding: 15px 28px; border-radius: 7px; font-size: 15px; font-weight: 600; line-height: 1.5; text-align: center; transition: background 180ms, transform 180ms, box-shadow 180ms; }
  .button:hover { transform: translateY(-2px); }
  .button:active { transform: translateY(0); }
  .button-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 12px #a8463017; }
  .button-primary:hover { background: var(--accent-hover); box-shadow: 0 6px 16px #a8463020; }
  .button-dark { background: var(--ink); color: var(--on-accent); }
  .text-link, .inline-arrow { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; font-weight: 550; }
  .text-link { color: var(--muted); }
  .text-link .icon { width: 16px; height: 16px; }
  .inline-arrow { min-height: 44px; padding: 8px 0; background: transparent; }
  .inline-arrow .icon, .text-link .icon { transition: transform 180ms; }
  .inline-arrow:hover .icon { transform: translateX(3px); }
  .text-link:hover .icon { transform: translateY(3px); }
  .section-heading { width: 100%; max-width: 760px; margin-inline: auto; }
  .section-kicker { display: block; color: var(--accent); font-size: 12px; font-weight: 550; letter-spacing: .12em; line-height: 1.6; }
  .section-heading h2 { margin-top: 16px; font-size: clamp(28px, 2.6vw, 36px); letter-spacing: -.02em; line-height: 1.55; }
  .section-heading > p { max-width: 600px; margin: 20px auto 0; color: var(--muted); font-size: 15px; line-height: 1.95; }
  .section-topline { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 44px; }
  .section-aside { max-width: 560px; margin-inline: auto; color: var(--muted); font-size: 15px; line-height: 1.95; }
  .section-footnote { max-width: 680px; margin: 26px auto 0; color: var(--muted); font-size: 12px; line-height: 1.9; }
  .skip-link { position: fixed; top: -80px; left: 20px; z-index: 100; padding: 12px 20px; border-radius: 6px; background: var(--ink); color: var(--on-accent); }
  .skip-link:focus { top: 12px; }
  .reveal { opacity: 1; transform: none; }
  .motion-ready .reveal:not(.is-visible) { opacity: 0; transform: translateY(12px); }
  .motion-ready .reveal { transition: opacity 450ms ease, transform 450ms cubic-bezier(.2,.65,.3,1); }
}

@layer components {
  .site-header { position: sticky; top: 0; z-index: 40; background: #fcf9f5f2; backdrop-filter: blur(16px); border-bottom: 1px solid #ded2c680; }
  .site-header > .container { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 80px; gap: 32px; }
  .brand { display: inline-flex; align-items: center; justify-content: center; justify-self: start; min-height: 44px; }
  .brand-logo { display: block; width: 124px; height: auto; }
  .desktop-nav { display: flex; align-items: center; justify-content: center; gap: 28px; }
  .desktop-nav a { position: relative; min-height: 44px; padding: 10px 0; color: var(--muted); font-size: 13px; transition: color 180ms; }
  .desktop-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 5px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: center; transition: transform 180ms; }
  .desktop-nav a:hover { color: var(--accent); }
  .desktop-nav a:hover::after { transform: scaleX(1); }
  .header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
  .login-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--accent); font-size: 13px; transition: background 180ms; }
  .login-button:hover { background: var(--accent-soft); }
  .login-button .icon { width: 17px; height: 17px; }
  .menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; }
  .hero { padding-top: 60px; overflow: clip; }
  .hero-copy { position: relative; }
  .hero h1 { margin-top: 24px; font-size: clamp(48px, 4.5vw, 64px); letter-spacing: -.035em; line-height: 1.42; }
  .hero h1 > span { display: block; }
  .title-accent { color: var(--accent); }
  .hero-description { max-width: 540px; margin: 24px auto 0; color: var(--muted); font-size: 16px; line-height: 1.95; }
  .hero-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 28px; }
  .hero-cta { min-width: 200px; min-height: 56px; }
  .hero-actions .text-link { min-height: 36px; font-size: 13px; }
  .hero-note { margin-top: 16px; color: var(--muted); font-size: 12px; }
  .hero-demo-label {
    width: max-content;
    margin: 20px auto 0;
    padding: 4px 12px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--surface);
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
  }
  .visual-container { margin-top: 48px; }
  .hero-visual { position: relative; height: 350px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
  .main-scene { position: absolute; z-index: 2; top: 22px; left: 24%; width: 52%; height: 294px; padding: 7px; background: var(--surface-raised); border-radius: 9px; box-shadow: 0 8px 22px #30282114; overflow: hidden; }
  .main-scene > img { width: 100%; height: 100%; object-fit: cover; object-position: center 52%; border-radius: 4px; }
  .main-scene figcaption { position: absolute; inset: auto 7px 7px; padding: 32px 18px 15px; border-radius: 0 0 4px 4px; background: linear-gradient(transparent, #302821c9); color: var(--on-accent); font-size: 13px; letter-spacing: .03em; }
  .product-card { position: absolute; z-index: 3; top: 63px; width: 20%; padding: 7px; background: var(--surface-raised); box-shadow: 0 7px 20px #30282112; border-radius: 8px; }
  .product-card-left { left: 5%; transform: rotate(-4deg); }
  .product-card-right { right: 5%; transform: rotate(4deg); }
  .product-photo { height: 200px; border-radius: 4px; overflow: hidden; background: var(--surface); }
  .product-photo img { width: 100%; height: 100%; object-fit: cover; }
  .product-card figcaption { padding: 10px 3px 4px; font-size: 12px; color: var(--muted); }
  .hero-bottom { display: flex; align-items: center; justify-content: center; height: 78px; }
  .hero-bottom > a { display: grid; place-items: center; height: 40px; width: 40px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); transition: background 180ms; }
  .hero-bottom > a:hover { background: var(--surface); }
  .hero-bottom > a .icon { height: 16px; width: 16px; }
  .work-section { background: var(--surface-raised); }
  .process-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding: 12px 0 32px; }
  .work-flow-grid .process-step { min-width: 0; padding: 30px 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
  .step-number { display: grid; place-items: center; height: 48px; width: 48px; margin-inline: auto; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--accent); font-family: Arial, sans-serif; font-size: 13px; background: var(--accent-soft); }
  .process-step h3 { margin-top: 22px; font-size: 18px; }
  .process-step > p { max-width: 240px; margin: 12px auto 0; color: var(--muted); font-size: 14px; line-height: 1.95; }
  .process-bottom { max-width: 680px; margin: 0 auto; padding-top: 22px; border-top: 1px solid var(--line); }
  .process-bottom > p { margin-bottom: 10px; color: var(--muted); font-size: 13px; }
  .process-bottom > button { color: var(--accent); }
  .faq-section { background: var(--surface); border-block: 1px solid var(--line); }
  .faq-layout { display: flex; flex-direction: column; align-items: center; gap: 40px; max-width: 840px; }
  .faq-list { width: 100%; border-top: 1px solid var(--line-strong); }
  .faq-item { border-bottom: 1px solid var(--line-strong); }
  .faq-item summary { display: grid; grid-template-columns: 24px minmax(0, 1fr) 24px; align-items: center; gap: 14px; list-style: none; padding: 24px 16px; cursor: pointer; font-size: 16px; color: var(--ink); }
  .faq-item summary::before { content: ""; grid-column: 1; }
  .faq-item summary > span { grid-column: 2; }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item summary .icon { grid-column: 3; justify-self: center; width: 18px; height: 18px; color: var(--accent); transition: transform 180ms; }
  .faq-item[open] summary .icon { transform: rotate(45deg); }
  .faq-answer { max-width: 660px; margin-inline: auto; padding: 0 20px 26px; color: var(--muted); font-size: 15px; line-height: 1.95; }
  .faq-item[open] .faq-answer { animation: answer-in 180ms ease; }
  .mobile-start-bar { display: none; }
  dialog { width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 0; background: var(--surface-raised); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 80px #30282130; }
  dialog::backdrop { background: #30282170; backdrop-filter: blur(4px); }
  dialog[open] { animation: dialog-in 200ms ease both; }
  .dialog-inner { position: relative; padding: 40px; }
  .dialog-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); color: var(--accent); }
  .dialog-close .icon { width: 17px; height: 17px; }
  .dialog-inner h2 { margin-top: 20px; font-size: 27px; line-height: 1.55; }
  .work-dialog { width: min(1040px, calc(100% - 32px)); max-height: calc(100dvh - 40px); margin: auto; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
  .work-dialog-bar { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 16px; min-height: 72px; padding: 12px 28px; border-bottom: 1px solid var(--line); background: var(--surface-raised); }
  .work-dialog-bar > span { grid-column: 2; color: var(--muted); font-size: 13px; font-weight: 550; letter-spacing: .12em; line-height: 1.6; }
  .work-dialog-bar .dialog-close { position: static; grid-column: 3; width: 44px; height: 44px; border: 1px solid var(--line); transition: background 180ms, border-color 180ms; }
  .work-dialog-bar .dialog-close:hover { border-color: var(--line-strong); background: var(--accent-soft); }
  .work-dialog-bar .dialog-close:focus-visible { outline-offset: 3px; }
  .work-dialog-inner { padding: 36px 36px 32px; }
  .work-dialog .section-topline { gap: 14px; margin-bottom: 28px; }
  .work-dialog .section-heading h2 { margin-top: 0; font-size: clamp(24px, 2.5vw, 32px); line-height: 1.5; letter-spacing: -.02em; }
  .work-dialog .section-aside { max-width: 660px; font-size: 14px; line-height: 1.9; }
  .work-dialog .work-flow-grid { gap: 16px; padding: 0 0 28px; }
  .work-dialog .work-flow-grid .process-step { padding: 24px 16px; }
  .work-dialog .process-step h3 { margin-top: 18px; font-size: 17px; }
  .work-dialog .process-step > p { line-height: 1.85; }
  .work-dialog .process-bottom { max-width: none; padding-top: 20px; }
  .navigation-drawer { position: fixed; inset: 0 0 0 auto; display: none; flex-direction: column; width: min(360px, calc(100% - 48px)); max-width: none; height: 100dvh; max-height: none; margin: 0 0 0 auto; padding: 0 max(24px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px)); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; border: 0; border-left: 1px solid var(--line); border-radius: 14px 0 0 14px; background: var(--surface-raised); box-shadow: -12px 0 48px #30282124; text-align: center; }
  .navigation-drawer[open] { display: flex; animation: drawer-in 280ms cubic-bezier(.22, .8, .25, 1) both; }
  .navigation-drawer.is-closing { animation: drawer-out 220ms cubic-bezier(.4, 0, 1, 1) both; }
  .navigation-drawer::backdrop { background: #30282173; backdrop-filter: none; }
  .drawer-header { position: sticky; top: 0; z-index: 1; display: grid; flex: 0 0 auto; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 12px; padding-block: max(20px, env(safe-area-inset-top, 0px)) 24px; border-bottom: 1px solid var(--line); background: var(--surface-raised); }
  .drawer-header h2 { grid-column: 2; margin: 0; font-size: 20px; font-weight: 550; letter-spacing: .04em; line-height: 1.5; }
  .drawer-close { display: grid; grid-column: 3; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--accent); transition: background 180ms, border-color 180ms; }
  .drawer-close:hover { border-color: var(--line-strong); background: var(--accent-soft); }
  .drawer-close .icon { width: 18px; height: 18px; }
  .drawer-nav { display: grid; flex: 0 0 auto; gap: 10px; margin-top: 24px; }
  .drawer-nav a { display: grid; grid-template-columns: 20px minmax(0, 1fr) 20px; align-items: center; gap: 12px; min-height: 60px; padding: 16px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1.6; transition: background 180ms, border-color 180ms, color 180ms; }
  .drawer-nav a > span { grid-column: 2; }
  .drawer-nav a > .icon { grid-column: 3; justify-self: end; width: 16px; height: 16px; color: var(--accent); }
  .drawer-nav a:hover, .drawer-nav a:focus-visible { border-color: var(--line-strong); background: var(--accent-soft); color: var(--accent-hover); }
  .drawer-note { margin-top: auto; padding-top: 32px; color: var(--muted); font-size: 12px; letter-spacing: .08em; line-height: 1.8; }
  .dialog-description, .info-body { margin-top: 16px; color: var(--muted); font-size: 15px; line-height: 1.9; }
  .registration-fields { display: grid; gap: 18px; margin-top: 26px; }
  .registration-field { display: grid; min-width: 0; gap: 8px; color: var(--muted); font-size: 13px; }
  .registration-field input { width: 100%; min-width: 0; min-height: 50px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--ink); font-size: 16px; text-align: center; transition: border-color 180ms; }
  .registration-field input::placeholder { color: var(--muted-soft); font-size: 14px; }
  .registration-field input:hover { border-color: var(--line-strong); }
  .registration-status { margin-top: 20px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--accent-soft); color: var(--accent-hover); font-size: 13px; line-height: 1.9; }
  .dialog-submit { width: 100%; margin-top: 24px; }
  .dialog-note { margin-top: 16px; color: var(--muted); font-size: 12px; }
  .info-body > p + p { margin-top: 14px; }
  .info-dialog .button { margin-top: 26px; min-height: 48px; }
  body.dialog-open { overflow: hidden; }
  .noscript-message { position: fixed; bottom: 0; left: 0; right: 0; padding: 16px; background: var(--accent-soft); text-align: center; z-index: 100; }
  @keyframes dialog-in { from { opacity: 0; transform: translateY(6px) scale(.99); } to { opacity: 1; transform: none; } }
  @keyframes drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
  @keyframes drawer-out { from { transform: translateX(0); } to { transform: translateX(100%); } }
  @keyframes answer-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
  @keyframes hero-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  .motion-ready .hero h1 { animation: hero-in 450ms 40ms ease both; }
  .motion-ready .hero-description { animation: hero-in 450ms 80ms ease both; }
  .motion-ready .hero-actions { animation: hero-in 450ms 120ms ease both; }
}
