:root {
  --cream: #fffaf5;
  --paper: #ffffff;
  --paper-soft: #fff5ef;
  --ink: #241811;
  --cocoa: #493127;
  --muted: #76594c;
  --quiet: #9a7767;
  --line: #edd9ce;
  --coral: #ff654f;
  --coral-deep: #d94f3d;
  --peach: #ffb39e;
  --green: #20a766;
  --shadow: 0 18px 54px rgba(88, 45, 25, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 156, 126, .18), transparent 31rem),
    radial-gradient(circle at 92% 13%, rgba(255, 218, 186, .36), transparent 27rem),
    var(--cream);
  color: var(--ink);
  font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; }
::selection { background: #ffb7a9; color: var(--ink); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(237, 217, 206, .88);
  background: rgba(255, 250, 245, .88);
  backdrop-filter: blur(18px);
}
.header-inner {
  width: min(1180px, calc(100% - 36px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 48px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(88, 45, 25, .07);
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-copy strong { display: block; font-size: .92rem; letter-spacing: -.02em; }
.brand-copy span { display: block; margin-top: 2px; color: var(--quiet); font-size: .68rem; font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  transition: .2s ease;
}
.header-link:hover { background: #fff; color: var(--ink); }
.language-switcher {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(88, 45, 25, .06);
}
.language-switcher button {
  min-width: 40px;
  padding: 9px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: .69rem;
  font-weight: 900;
  transition: .18s ease;
}
.language-switcher button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.hero {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 74px 0 42px;
  text-align: center;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(2.25rem, 6vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: -.055em;
  font-weight: 950;
}
.accent {
  display: block;
  margin-top: 6px;
  background: linear-gradient(90deg, #ff5947, #ff7650 55%, #ff9f5a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p:not(.eyebrow) {
  max-width: 660px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}
.hero-actions { display: flex; justify-content: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

.container { width: min(1120px, calc(100% - 36px)); margin: 0 auto; padding-bottom: 78px; }
.section { padding: 28px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.55rem); line-height: 1.12; letter-spacing: -.04em; }
.section-heading p { max-width: 530px; margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.grid { display: grid; gap: 18px; }
.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.four-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 14px 40px rgba(88, 45, 25, .055);
}
.product-card { display: flex; min-height: 340px; flex-direction: column; padding: 18px; }
.product-visual {
  position: relative;
  display: grid;
  min-height: 150px;
  place-items: center;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, #ff735d, #ffb27e);
  color: #fff;
}
.product-card:nth-child(2) .product-visual { background: linear-gradient(135deg, #7a57d9, #b68bf5); }
.product-card:nth-child(3) .product-visual { background: linear-gradient(135deg, #2d78d4, #71b8ff); }
.product-icon { font-size: 3.45rem; filter: drop-shadow(0 10px 18px rgba(58, 28, 16, .18)); }
.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: var(--cocoa);
  font-size: .64rem;
  font-weight: 900;
  backdrop-filter: blur(8px);
}
.card-body { display: flex; flex: 1; flex-direction: column; padding: 22px 7px 5px; }
.card-body h2, .card-body h3 { margin: 0; font-size: 1.35rem; line-height: 1.2; letter-spacing: -.025em; }
.card-body p { margin: 12px 0 0; color: var(--muted); font-size: .89rem; line-height: 1.65; }
.card-body .button { align-self: flex-start; margin-top: auto; transform: translateY(16px); }

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: .82rem;
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); background: #f45643; box-shadow: 0 10px 24px rgba(255, 101, 79, .25); }
.button.dark { background: var(--ink); }
.button.dark:hover { background: #3a2921; }
.button.soft { border: 1px solid var(--line); background: #fff; color: var(--cocoa); }
.button.soft:hover { background: var(--paper-soft); box-shadow: none; }
.button.green { background: var(--green); }
.button.green:hover { background: #188b55; }

.contact-panel {
  margin-top: 30px;
  padding: 30px;
  border-radius: 32px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}
.contact-panel h2 { margin: 0; font-size: 1.8rem; letter-spacing: -.035em; }
.contact-panel > p { margin: 10px 0 0; color: #d2b9ac; font-size: .9rem; line-height: 1.65; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 22px; }
.contact-actions .button.soft { border-color: #4a352b; background: #2f211b; color: #fff; }

.tutorial-group { margin-bottom: 20px; padding: 25px; }
.tutorial-group:last-child { margin-bottom: 0; }
.group-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.group-top h2 { margin: 0; font-size: 1.55rem; letter-spacing: -.03em; }
.group-top p { max-width: 570px; margin: 8px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.65; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.guide-tile {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper-soft);
}
.guide-thumb {
  position: relative;
  display: grid;
  height: 148px;
  place-items: center;
  overflow: hidden;
  background: #fff;
}
.guide-thumb img { width: 100%; height: 100%; object-fit: contain; }
.guide-thumb.video { background: linear-gradient(135deg, #2c1d17, #704536); color: #fff; }
.play {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  font-size: 1.35rem;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.guide-info { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 14px; padding: 16px; }
.guide-info strong { display: block; font-size: .93rem; line-height: 1.35; }
.guide-info span { display: block; margin-top: 4px; color: var(--quiet); font-size: .7rem; font-weight: 750; }
.guide-info .button { min-height: 38px; flex: 0 0 auto; padding: 9px 13px; font-size: .72rem; }

.split-band {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: #fff;
  box-shadow: var(--shadow);
}
.split-band .intro { padding: 34px; background: var(--coral); color: #fff; }
.split-band .intro h2 { margin: 0; font-size: 2rem; line-height: 1.12; letter-spacing: -.04em; }
.split-band .intro p { margin: 13px 0 0; color: #fff0eb; font-size: .88rem; line-height: 1.65; }
.split-band .content { padding: 28px; }
.resource-list { display: grid; gap: 12px; }
.resource-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--cream);
}
.resource-row strong { display: block; font-size: .88rem; }
.resource-row small { display: block; margin-top: 4px; color: var(--quiet); }
.resource-row .button { min-height: 38px; padding: 9px 14px; font-size: .72rem; }

.site-footer { border-top: 1px solid #3a2921; background: #1d1410; color: #fff; }
.footer-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-inner p { margin: 0; color: #b99b8d; font-size: .75rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; color: #d4bbae; font-size: .75rem; font-weight: 700; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(30, 19, 14, .78);
  backdrop-filter: blur(8px);
}
.modal.is-open { display: flex; }
.modal-box {
  width: min(1120px, calc(100vw - 44px));
  max-height: calc(100vh - 44px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0,0,0,.34);
}
.modal-box.compact { width: min(620px, calc(100vw - 44px)); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px 14px 21px; border-bottom: 1px solid var(--line); }
.modal-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 900; }
.modal-actions { display: flex; align-items: center; gap: 8px; }
.modal-open-link { padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--cocoa); font-size: .72rem; font-weight: 850; white-space: nowrap; }
.modal-close { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--cream); color: var(--ink); font-size: 1.55rem; line-height: 1; }
.modal-stage { flex: 1; min-height: 0; overflow: auto; padding: 14px; background: #f8f5f2; }
.modal-stage img { display: none; width: 100%; height: auto; margin: 0 auto; border-radius: 16px; background: #fff; object-fit: contain; }
.modal-stage iframe { display: none; width: 100%; min-height: min(74vh, 760px); border: 0; border-radius: 16px; background: #000; }
.modal-stage img.is-visible, .modal-stage iframe.is-visible { display: block; }
.modal-box.compact .modal-stage img { max-height: 72vh; width: auto; }

@media (max-width: 900px) {
  .product-grid, .four-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-band { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .header-inner { width: min(100% - 24px, 1180px); min-height: 68px; }
  .brand-mark { width: 50px; height: 42px; border-radius: 13px; }
  .brand-copy span, .header-link { display: none; }
  .brand-copy strong { font-size: .8rem; }
  .language-switcher button { min-width: 37px; padding: 8px 8px; }
  .hero { width: min(100% - 28px, 1120px); padding: 50px 0 28px; }
  .hero h1 { font-size: clamp(2.08rem, 12vw, 3rem); }
  .hero p:not(.eyebrow) { margin-top: 16px; font-size: .91rem; }
  .container { width: min(100% - 28px, 1120px); padding-bottom: 52px; }
  .section { padding: 22px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .product-grid, .two-grid, .four-grid, .guide-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 0; }
  .product-visual { min-height: 135px; }
  .card-body .button { width: 100%; align-self: stretch; }
  .tutorial-group { padding: 20px; border-radius: 24px; }
  .group-top { flex-direction: column; }
  .guide-tile { min-height: 210px; }
  .contact-panel { padding: 24px; border-radius: 26px; }
  .contact-actions .button { width: 100%; }
  .split-band .intro, .split-band .content { padding: 24px; }
  .resource-row { align-items: flex-start; flex-direction: column; }
  .resource-row .button { width: 100%; }
  .footer-inner { width: min(100% - 28px, 1120px); align-items: flex-start; flex-direction: column; }
  .modal { padding: 0; align-items: stretch; }
  .modal-box, .modal-box.compact { width: 100vw; max-height: 100dvh; height: 100dvh; border: 0; border-radius: 0; }
  .modal-head { padding-top: max(12px, env(safe-area-inset-top)); background: rgba(36,24,17,.96); color: #fff; border-color: rgba(255,255,255,.12); }
  .modal-open-link { border-color: rgba(255,255,255,.22); color: #fff; }
  .modal-close { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.12); color: #fff; }
  .modal-stage { padding: 8px; }
  .modal-stage iframe { min-height: 100%; border-radius: 10px; }
  .modal-box.compact .modal-stage img { max-height: none; width: 100%; }
}
