:root {
  color-scheme: light;
  --ink: #102033;
  --muted: #607086;
  --line: #dbe7f5;
  --paper: #f7fbff;
  --mint: #d7e9ff;
  --green: #2f80ed;
  --green-dark: #1559c7;
  --coral: #2f80ed;
  --yellow: #d9ebff;
  --sky: #b8ddff;
  --shadow: 0 24px 70px rgba(21, 89, 199, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 56px);
  background: rgba(247, 251, 255, 0.9);
  border-bottom: 1px solid rgba(219, 231, 245, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 8px 20px rgba(21, 89, 199, 0.12);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: #43556b;
  font-size: 14px;
}

.nav a,
.site-footer a {
  transition: color 0.2s ease;
}

.nav a:hover,
.site-footer a:hover {
  color: var(--green-dark);
}

.header-action,
.primary-button,
.secondary-button,
.featured-download a,
.download-card a,
.founder-card a,
.founder-contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 700;
}

.header-action {
  border: 0;
  padding: 0 18px;
  background: var(--ink);
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(44px, 8vw, 92px) clamp(20px, 6vw, 82px) 42px;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(44px, 8vw, 92px) clamp(20px, 6vw, 82px);
  background:
    linear-gradient(135deg, rgba(215, 233, 255, 0.78), rgba(184, 221, 255, 0.3)),
    var(--paper);
}

.product-hero-image {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.product-hero-image img {
  display: block;
  width: 100%;
  height: clamp(300px, 38vw, 480px);
  object-fit: contain;
  padding: 26px;
  mix-blend-mode: multiply;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.25;
}

.hero-lead {
  max-width: 660px;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 22px;
}

.primary-button {
  padding: 0 24px;
  background: var(--green-dark);
  color: white;
  box-shadow: 0 12px 30px rgba(21, 89, 199, 0.22);
}

.secondary-button {
  padding: 0 22px;
  border: 1px solid var(--line);
  background: white;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #43556b;
}

.trust-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  background: white;
  font-size: 14px;
}

.download-console {
  overflow: hidden;
  border: 1px solid #cfe0f4;
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.console-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.console-top strong {
  color: var(--green-dark);
}

.featured-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
}

.featured-download p {
  margin-bottom: 4px;
  color: var(--muted);
  font-weight: 700;
}

.featured-download h2 {
  margin-bottom: 6px;
  font-size: clamp(26px, 4vw, 42px);
}

.featured-download span {
  color: var(--muted);
}

.featured-download a {
  flex: 0 0 auto;
  padding: 0 18px;
  background: var(--coral);
  color: white;
}

.tutorial-console {
  align-self: center;
  width: 100%;
}

.hero-tutorial-head {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 22px 22px 18px;
}

.hero-tutorial-head img {
  display: block;
  width: 100%;
  height: 150px;
  aspect-ratio: 1;
  align-self: center;
  justify-self: start;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.hero-tutorial-head h2 {
  margin-bottom: 8px;
  font-size: 28px;
}

.hero-tutorial-head p {
  color: var(--muted);
}

.hero-tutorial-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 22px 22px;
}

.hero-tutorial-list a {
  display: flex;
  min-height: 138px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  text-align: center;
}

.hero-tutorial-list a:hover {
  border-color: rgba(47, 128, 237, 0.48);
  background: #f1f7ff;
}

.hero-tutorial-list img {
  width: 100%;
  height: 76px;
  object-fit: contain;
}

.hero-tutorial-list strong {
  font-size: 15px;
  line-height: 1.25;
}

.machine-visual {
  display: grid;
  gap: 16px;
  margin: 0 24px 24px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(215, 233, 255, 0.7), rgba(184, 221, 255, 0.34)),
    white;
}

.machine-visual img {
  display: block;
  width: 100%;
  height: clamp(260px, 34vw, 420px);
  object-fit: contain;
  padding: 24px;
  mix-blend-mode: multiply;
}

.machine-visual div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-top: 1px solid rgba(219, 231, 245, 0.9);
  background: rgba(255, 255, 255, 0.82);
}

.machine-visual span {
  color: var(--muted);
}

.quick-paths {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  padding: 0 clamp(20px, 6vw, 82px) 70px;
}

.quick-paths a,
.download-card,
.steps article,
.qr-card,
.product-card,
.article-list a,
.social-grid a,
.founder-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.quick-paths a {
  padding: 18px;
}

.quick-paths strong,
.quick-paths span {
  display: block;
}

.quick-paths span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 78px clamp(20px, 6vw, 82px);
}

.soft-band {
  background: #eef6ff;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.download-card {
  position: relative;
  padding: 24px;
}

.download-card.is-recommended {
  border-color: rgba(47, 128, 237, 0.42);
  background: #f3f8ff;
}

.badge {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--yellow);
  color: #17447d;
  font-size: 12px;
  font-weight: 800;
}

.download-card p {
  color: var(--muted);
}

.download-card dl {
  display: grid;
  gap: 8px;
  margin: 20px 0;
}

.download-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #edf4fb;
  padding-bottom: 8px;
}

.download-card dt {
  color: var(--muted);
}

.download-card dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

.download-card a {
  width: 100%;
  background: var(--ink);
  color: white;
}

.steps,
.starter-grid,
.product-grid,
.article-list,
.social-grid {
  display: grid;
  gap: 18px;
}

.steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.steps article {
  padding: 22px;
}

.steps span,
.starter-grid span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--green-dark);
  font-weight: 900;
}

.steps p,
.starter-grid p,
.mini-copy p,
.mini-copy li,
.product-card p,
.article-list p,
.founder-section p,
.founder-card p,
.social-grid span {
  color: var(--muted);
}

.starter-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(241, 247, 255, 0.9)),
    var(--paper);
}

.starter-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.starter-grid article {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: white;
}

.starter-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: auto;
  border-radius: 8px;
  background: #eaf3ff;
  color: var(--green-dark);
  font-weight: 800;
}

.tutorial-framework-section {
  background:
    radial-gradient(circle at 88% 12%, rgba(184, 221, 255, 0.55), transparent 28%),
    #f8fbff;
}

.tutorial-framework-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.tutorial-framework-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  margin-bottom: 34px;
  border: 1px solid rgba(47, 128, 237, 0.24);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
}

.tutorial-framework-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(47, 128, 237, 0.12);
}

.tutorial-framework-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tutorial-framework-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(22px, 3vw, 30px);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 44px rgba(21, 89, 199, 0.07);
}

.tutorial-framework-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.tutorial-framework-card-head span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #eaf3ff;
  color: var(--green-dark);
  font-weight: 900;
}

.tutorial-framework-card-head small {
  color: #7a8ba1;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.tutorial-framework-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.tutorial-framework-card > p {
  min-height: 52px;
  margin: 0 0 22px;
  color: var(--muted);
}

.tutorial-module-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tutorial-module-list li {
  border-top: 1px solid #e8f0fa;
  padding-top: 10px;
}

.tutorial-module-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 8px;
  padding: 7px 8px;
  transition: background 160ms ease, color 160ms ease;
}

.tutorial-module-list li a:hover,
.tutorial-module-list li a:focus-visible {
  background: #eef6ff;
  color: var(--green-dark);
  outline: none;
}

.tutorial-module-list li a > span {
  font-size: 15px;
  font-weight: 700;
}

.tutorial-module-list em {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 3px 8px;
  background: #f0f3f7;
  color: #718096;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.tutorial-module-list em.is-ready {
  background: #e8f3ff;
  color: var(--green-dark);
}

.mini-program {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 28px;
  align-items: center;
  padding: 78px clamp(20px, 6vw, 82px);
  background: white;
}

.mini-copy {
  max-width: 760px;
}

.mini-copy ul {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding-left: 20px;
}

.qr-card {
  display: block;
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.qr-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 78px rgba(21, 89, 199, 0.18);
}

.qr-card img {
  display: block;
  width: min(100%, 220px);
  aspect-ratio: 1;
  height: auto;
  margin: 0 auto 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
}

.qr-card p {
  margin-bottom: 4px;
  color: var(--muted);
}

.qr-card small {
  display: block;
  overflow-wrap: anywhere;
  color: #7d8da3;
}

.activities-section {
  padding: 78px clamp(20px, 6vw, 82px);
  background: white;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.activity-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 48px rgba(21, 89, 199, 0.1);
}

.activity-poster {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  color: white;
}

.activity-image-link {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f8fbff;
}

.activity-image-link img {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 760;
  object-fit: cover;
  transition: transform 0.18s ease;
}

.activity-image-link:hover img {
  transform: scale(1.025);
}

.activity-poster span,
.activity-poster small {
  font-weight: 800;
}

.activity-poster strong {
  max-width: 260px;
  font-size: 40px;
  line-height: 1.08;
}

.activity-cash .activity-poster {
  background:
    radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.3), transparent 24%),
    linear-gradient(135deg, #1559c7, #2f80ed);
}

.activity-gift .activity-poster {
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.32), transparent 24%),
    linear-gradient(135deg, #0f766e, #23a6d5);
}

.activity-xhs .activity-poster {
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.32), transparent 22%),
    linear-gradient(135deg, #df2b2f, #ff6b8a);
}

.activity-card h3,
.activity-card p {
  padding: 0 22px;
}

.activity-card h3 {
  margin-top: 20px;
}

.activity-card p {
  padding-bottom: 24px;
  color: var(--muted);
}

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(21, 89, 199, 0.12);
}

.product-card img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: contain;
  padding: 22px;
  background: #f8fbff;
  mix-blend-mode: multiply;
}

.product-card h3,
.product-card p {
  padding: 0 22px;
}

.product-card p {
  padding-bottom: 22px;
}

.article-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-list a {
  padding: 24px;
}

.article-list span {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
}

.article-list strong {
  display: block;
  margin: 8px 0;
  font-size: 20px;
}

.founder-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  gap: 34px;
  align-items: center;
  padding: 82px clamp(20px, 6vw, 82px);
  background: #102033;
  color: white;
}

.founder-section .eyebrow,
.founder-section p {
  color: #b8ddff;
}

.founder-section h2 {
  max-width: 700px;
}

.founder-card {
  padding: 28px;
  background: white;
  color: var(--ink);
}

.founder-avatar {
  display: block;
  width: 82px;
  height: 82px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  object-position: center 20%;
  box-shadow: 0 16px 40px rgba(21, 89, 199, 0.14);
}

.founder-card span {
  color: var(--green-dark);
  font-weight: 800;
}

.founder-card a {
  margin-top: 12px;
  padding: 0 18px;
  background: var(--green-dark);
  color: white;
}

.founder-contact-button {
  margin-top: 12px;
  border: 0;
  padding: 0 18px;
  background: var(--green-dark);
  color: white;
  cursor: pointer;
  font: inherit;
}

.social-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.social-grid a {
  display: flex;
  min-height: 148px;
  flex-direction: column;
  justify-content: flex-start;
  padding: 24px;
}

.social-grid .social-icon {
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 14px;
  color: white;
}

.social-icon-douyin {
  background: #111318;
}

.douyin-mark {
  position: relative;
  color: white;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  text-shadow:
    -3px 2px 0 #23f4ef,
    3px -2px 0 #ff2a68;
}

.social-icon-xhs {
  background: #df2b2f;
}

.social-icon-xhs span {
  color: white;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.support-panel {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  max-width: 860px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: white;
  box-shadow: var(--shadow);
}

.support-panel img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
}

.support-panel ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.support-panel li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fbff;
  font-weight: 700;
}

.social-grid strong,
.social-grid span {
  display: block;
}

.social-grid strong {
  margin-bottom: 8px;
  font-size: 24px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(20px, 6vw, 82px);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-link-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.footer-cooperation-button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: var(--green-dark);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.ai-chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  font-size: 14px;
}

.ai-chat-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px 0 10px;
  background: var(--green-dark);
  color: white;
  box-shadow: 0 18px 46px rgba(21, 89, 199, 0.26);
  cursor: pointer;
}

.ai-chat-toggle span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 900;
}

.ai-chat-toggle strong {
  font-size: 15px;
}

.ai-chat-panel {
  position: absolute;
  right: 0;
  bottom: 66px;
  display: grid;
  grid-template-rows: auto minmax(180px, 1fr) auto auto;
  width: min(380px, calc(100vw - 32px));
  height: min(620px, calc(100vh - 110px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 30px 96px rgba(21, 89, 199, 0.28);
}

.ai-chat-panel[hidden] {
  display: none;
}

.ai-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: var(--green-dark);
  color: white;
}

.ai-chat-head strong,
.ai-chat-head span {
  display: block;
}

.ai-chat-head span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.ai-chat-close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.ai-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 16px;
  background: #f4f8ff;
}

.ai-message {
  display: flex;
}

.ai-message div {
  max-width: 86%;
  border-radius: 8px;
  padding: 10px 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ai-message a {
  color: #0b66d8;
  text-decoration: underline;
}

.ai-message-user {
  justify-content: flex-end;
}

.ai-message-user div {
  background: var(--green-dark);
  color: white;
}

.ai-message-assistant {
  justify-content: flex-start;
}

.ai-message-assistant div {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.ai-message.is-thinking div {
  color: var(--muted);
}

.ai-chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: white;
}

.ai-chat-quick button {
  border: 1px solid #d6e4f5;
  border-radius: 999px;
  padding: 7px 10px;
  background: #f8fbff;
  color: var(--green-dark);
  cursor: pointer;
  font-size: 12px;
}

.ai-suggestions-message > div {
  max-width: 100%;
}

.ai-suggestions-message strong {
  display: block;
  margin-bottom: 10px;
}

.ai-suggestions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-suggestions-list button {
  border: 1px solid #d6e4f5;
  border-radius: 999px;
  padding: 7px 10px;
  background: #f8fbff;
  color: var(--green-dark);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}

.ai-suggestions-list button:hover {
  border-color: rgba(47, 128, 237, 0.45);
  background: #edf6ff;
}

.ai-chat-form {
  display: grid;
  grid-template-columns: 1fr 72px;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: white;
}

.ai-chat-form input {
  min-width: 0;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  font: inherit;
}

.ai-chat-form button {
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--green-dark);
  color: white;
  cursor: pointer;
  font-weight: 800;
}

.ai-chat-form button:disabled,
.ai-chat-form input:disabled {
  cursor: wait;
  opacity: 0.72;
}

.cooperation-modal,
.human-service-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16, 32, 51, 0.5);
}

.cooperation-modal[hidden],
.human-service-modal[hidden] {
  display: none;
}

.cooperation-card,
.human-service-card {
  position: relative;
  width: min(340px, 100%);
  border-radius: 8px;
  padding: 28px 24px 24px;
  background: white;
  text-align: center;
  box-shadow: 0 30px 90px rgba(16, 32, 51, 0.24);
}

.cooperation-close,
.human-service-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: #eef4fb;
  color: var(--ink);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.cooperation-card img,
.human-service-card img {
  display: block;
  width: min(220px, 78vw);
  aspect-ratio: 1;
  height: auto;
  margin: 8px auto 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
}

.cooperation-card img {
  width: 96px;
  object-fit: cover;
  object-position: center 20%;
}

.cooperation-card h3,
.human-service-card h3 {
  margin-bottom: 8px;
}

.cooperation-card p,
.human-service-card p {
  margin-bottom: 14px;
  color: var(--muted);
}

.cooperation-phone {
  display: block;
  margin: 16px 0 4px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.2;
}

.cooperation-card > span {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 12px;
  background: #eaf3ff;
  color: var(--green-dark);
  font-weight: 800;
}

.human-service-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.human-service-card li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  background: #f8fbff;
  color: var(--ink);
  font-weight: 700;
}

.mobile-page {
  background: #f5f9ff;
}

.mobile-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 251, 255, 0.92);
  backdrop-filter: blur(16px);
}

.mobile-text-link {
  flex: 0 0 auto;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
}

.mobile-hero {
  padding: 34px 18px 26px;
  background:
    linear-gradient(145deg, rgba(215, 233, 255, 0.92), rgba(255, 255, 255, 0.74)),
    var(--paper);
}

.mobile-hero h1 {
  margin-bottom: 16px;
  font-size: 42px;
}

.mobile-hero p:not(.eyebrow),
.mobile-section p {
  color: var(--muted);
}

.ios-copy,
.ios-only,
.is-ios .android-copy,
.is-ios .android-only {
  display: none;
}

.is-ios .ios-copy,
.is-ios .ios-only {
  display: inline-flex;
}

.is-ios .ios-copy {
  display: block;
}

.mobile-actions {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.mobile-actions a {
  width: 100%;
}

.mobile-section {
  padding: 34px 18px;
}

.mobile-section .section-head {
  margin-bottom: 18px;
}

.mobile-section h2 {
  font-size: 28px;
}

.mobile-steps,
.mobile-link-list {
  display: grid;
  gap: 12px;
}

.mobile-steps a,
.mobile-link-list a,
.mobile-model-list a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 14px 36px rgba(21, 89, 199, 0.08);
}

.mobile-steps a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 16px;
}

.mobile-steps span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: #eaf3ff;
  color: var(--green-dark);
  font-weight: 900;
}

.mobile-model-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mobile-model-list a {
  display: flex;
  min-height: 142px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  text-align: center;
}

.mobile-model-list img {
  width: 100%;
  height: 82px;
  object-fit: contain;
}

.mobile-model-list strong {
  font-size: 14px;
  line-height: 1.25;
}

.mobile-downloads {
  background: white;
}

.mobile-link-list a {
  display: block;
  padding: 16px;
}

.mobile-link-list strong,
.mobile-link-list span {
  display: block;
}

.mobile-link-list span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.mobile-service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  gap: 16px;
  align-items: center;
  border-top: 1px solid var(--line);
  background: white;
}

.mobile-service img {
  width: 116px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
}

.mobile-footer {
  padding: 28px 18px 34px;
  color: var(--muted);
}

.mobile-footer p {
  margin-bottom: 0;
}

.admin-page {
  background: #f4f8ff;
}

.admin-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(20px, 6vw, 82px);
  border-bottom: 1px solid var(--line);
  background: white;
}

.admin-header h1 {
  margin-bottom: 10px;
  font-size: 42px;
}

.admin-header p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
}

.admin-help {
  color: var(--muted);
}

.admin-shell {
  padding: 34px clamp(20px, 6vw, 82px) 80px;
}

.admin-form {
  display: grid;
  gap: 18px;
  max-width: 980px;
}

.admin-panel,
.admin-activity {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: white;
}

.admin-panel h2 {
  font-size: 26px;
}

.admin-panel label,
.admin-activity label {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-weight: 800;
}

.admin-panel input,
.admin-panel textarea,
.admin-activity input,
.admin-activity textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  font: inherit;
}

.admin-activities,
.admin-knowledge,
.admin-images {
  display: grid;
  gap: 14px;
}

.admin-image-preview {
  width: 118px;
  height: 88px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.admin-file-input {
  padding: 10px;
  background: #f8fbff;
}

.admin-activity {
  margin: 0;
}

.admin-activity legend {
  padding: 0 8px;
  color: var(--green-dark);
  font-weight: 900;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-actions button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.admin-status {
  margin: 0;
  color: var(--green-dark);
  font-weight: 800;
}

.admin-status.is-error {
  color: #d12f3f;
}

.article-page {
  padding: 40px clamp(20px, 7vw, 96px) 80px;
}

.knowledge-article {
  max-width: 860px;
  margin: 30px auto 0;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.knowledge-article h1 {
  max-width: 780px;
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
}

.knowledge-article h2 {
  margin: 30px 0 10px;
  font-size: 26px;
}

.knowledge-article p {
  max-width: 760px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.knowledge-article .primary-button {
  margin-top: 14px;
}

.activity-contact {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-top: 34px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.activity-contact img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.activity-contact h2 {
  margin-top: 0;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero,
  .product-hero,
  .founder-section {
    grid-template-columns: 1fr;
  }

  .quick-paths,
  .steps,
  .starter-grid,
  .download-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mini-program {
    grid-template-columns: 1fr;
  }

  .support-panel {
    grid-template-columns: 1fr;
  }

  .tutorial-framework-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }

  .tutorial-framework-status {
    margin: -12px 0 28px;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
  }

  .header-action {
    width: 100%;
  }

  .hero {
    padding-top: 38px;
  }

  h1 {
    font-size: 42px;
  }

  .featured-download {
    align-items: stretch;
    flex-direction: column;
  }

  .featured-download a {
    width: 100%;
  }

  .hero-tutorial-head,
  .hero-tutorial-list {
    grid-template-columns: 1fr;
  }

  .hero-tutorial-head img {
    max-width: 180px;
  }

  .quick-paths,
  .steps,
  .starter-grid,
  .download-grid,
  .product-grid,
  .article-list,
  .activity-grid,
  .social-grid {
    grid-template-columns: 1fr;
  }

  .activity-contact {
    grid-template-columns: 1fr;
  }

  .tutorial-framework-grid {
    grid-template-columns: 1fr;
  }

  .tutorial-framework-card > p {
    min-height: auto;
  }

  .tutorial-module-list li a {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .machine-visual {
    min-height: 240px;
    margin: 0 14px 14px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .ai-chat {
    right: 14px;
    bottom: 14px;
  }

  .ai-chat-toggle {
    min-height: 48px;
    padding-right: 14px;
  }

  .ai-chat-panel {
    right: -2px;
    bottom: 60px;
    width: calc(100vw - 24px);
    height: min(590px, calc(100vh - 92px));
  }
}

.article-hub-preview {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.article-hub-preview .section-head {
  margin-bottom: 0;
  max-width: 760px;
}

.article-hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  color: var(--muted);
  font-size: 14px;
  margin: 12px 0 24px;
}

.article-source-note {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
}

.article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 860px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
}

.article-breadcrumb a {
  color: var(--green-dark);
  font-weight: 800;
}

.article-summary {
  margin: 24px 0 30px;
  padding: 20px 22px;
  border-left: 4px solid var(--green);
  border-radius: 0 12px 12px 0;
  background: var(--soft);
}

.article-summary > strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green-dark);
}

.article-summary p {
  margin: 0;
  color: var(--ink);
}

.article-body h3 {
  margin: 24px 0 8px;
  font-size: 21px;
}

.article-body ul,
.article-body ol {
  margin: 10px 0 22px;
  padding-left: 28px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.article-body .article-link {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(35, 134, 90, 0.28);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.article-body .article-link:hover {
  color: var(--green);
  text-decoration-color: var(--green);
}

.article-body li > .article-link:only-child {
  min-width: min(100%, 320px);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 3px 0;
  padding: 12px 16px;
  color: var(--green-dark);
  border: 1px solid rgba(35, 134, 90, 0.18);
  border-radius: 10px;
  background: #f5faf7;
  text-decoration: none;
}

.article-body li > .article-link:only-child::after {
  content: "下载 →";
  color: var(--green);
  font-size: 13px;
  white-space: nowrap;
}

.article-body li > .article-link:only-child:hover {
  border-color: rgba(35, 134, 90, 0.42);
  background: #edf7f1;
}

.article-body blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--green);
  background: #f7faf8;
  color: var(--muted);
}

.article-cover {
  margin: 20px 0 28px;
}

.article-cover img {
  display: block;
  width: 100%;
  max-height: 520px;
  border-radius: 14px;
  object-fit: cover;
}

.article-published-list time {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.article-empty {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: #f8fbf9;
}

.article-empty p {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .article-hub-preview {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Mobile experience layer: compact navigation, readable content and safe-area actions. */
html {
  scroll-padding-top: 82px;
}

body {
  overflow-x: hidden;
}

:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid rgba(47, 128, 237, 0.34);
  outline-offset: 3px;
}

.mobile-nav-toggle,
.mobile-nav-action,
.mobile-product-actions,
.qr-save-link {
  display: none;
}

@media (max-width: 980px) {
  html {
    scroll-padding-top: 70px;
  }

  .site-header.has-mobile-menu {
    position: sticky;
    top: 0;
    z-index: 65;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
  }

  .site-header.has-mobile-menu .brand {
    min-width: 0;
    overflow: hidden;
  }

  .site-header.has-mobile-menu .brand > span:last-child {
    min-width: 0;
  }

  .site-header.has-mobile-menu .brand strong,
  .site-header.has-mobile-menu .brand small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-header.has-mobile-menu .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .mobile-nav-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    place-content: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
    color: var(--ink);
    cursor: pointer;
  }

  .mobile-nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .mobile-nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .mobile-nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-header.has-mobile-menu .nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 12px;
    left: 12px;
    display: none;
    max-height: calc(100dvh - 88px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 60px rgba(16, 32, 51, 0.18);
    backdrop-filter: blur(18px);
  }

  .site-header.has-mobile-menu .nav.is-open {
    display: flex;
  }

  .site-header.has-mobile-menu .nav > a,
  .site-header.has-mobile-menu .nav > button {
    display: flex;
    min-height: 46px;
    align-items: center;
    border: 0;
    border-radius: 9px;
    padding: 0 14px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
  }

  .site-header.has-mobile-menu .nav > a:hover,
  .site-header.has-mobile-menu .nav > button:hover {
    background: #eef6ff;
    color: var(--green-dark);
  }

  .site-header.has-mobile-menu .header-action {
    display: none;
  }

  .site-header.has-mobile-menu .mobile-nav-action {
    display: flex;
    justify-content: center;
    margin-top: 4px;
    background: var(--ink);
    color: white;
  }

  body.mobile-nav-open {
    overflow: hidden;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: clamp(32px, 10vw, 38px);
    line-height: 1.08;
  }

  h2 {
    font-size: clamp(27px, 8vw, 32px);
  }

  .hero,
  .product-hero {
    gap: 28px;
    padding: 34px 16px 42px;
  }

  .hero-lead {
    font-size: 17px;
    line-height: 1.75;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .hero-actions > a,
  .hero-actions > button {
    width: 100%;
  }

  .product-hero-image img {
    height: min(82vw, 340px);
    padding: 16px;
  }

  .section,
  .activities-section,
  .founder-section,
  .mini-program {
    padding: 52px 16px;
  }

  .section-head {
    margin-bottom: 24px;
  }

  .section-head p:not(.eyebrow) {
    font-size: 16px;
  }

  .hero-tutorial-head {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 16px 14px;
  }

  .hero-tutorial-head img {
    max-width: none;
    height: 90px;
  }

  .hero-tutorial-head h2 {
    font-size: 24px;
  }

  .hero-tutorial-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0 16px 16px;
  }

  .hero-tutorial-list a {
    min-height: 112px;
    gap: 7px;
    padding: 12px 8px;
  }

  .hero-tutorial-list a:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .hero-tutorial-list img {
    height: 54px;
  }

  .hero-tutorial-list strong {
    font-size: 14px;
  }

  .tutorial-framework-card {
    padding: 22px 16px;
  }

  .tutorial-framework-card-head {
    margin-bottom: 16px;
  }

  .tutorial-framework-card > p {
    margin-bottom: 16px;
  }

  .tutorial-module-list li a {
    min-height: 46px;
    align-items: center;
    flex-direction: row;
    gap: 10px;
  }

  .tutorial-module-list li a > span {
    font-size: 14px;
  }

  .support-panel {
    gap: 18px;
    padding: 18px;
  }

  .support-panel img {
    width: min(100%, 280px);
    margin: 0 auto;
  }

  .article-page {
    padding: 20px 12px 80px;
  }

  .article-index-page > .section {
    padding-right: 0;
    padding-left: 0;
  }

  .article-breadcrumb {
    padding: 0 4px;
    font-size: 13px;
  }

  .knowledge-article {
    margin: 16px auto 0;
    padding: 26px 18px;
    border-radius: 12px;
    box-shadow: 0 16px 44px rgba(21, 89, 199, 0.1);
  }

  .knowledge-article h1 {
    font-size: clamp(30px, 9vw, 36px);
    line-height: 1.12;
  }

  .knowledge-article h2,
  .article-body h2 {
    margin-top: 28px;
    font-size: 23px;
  }

  .article-body h3 {
    font-size: 19px;
  }

  .knowledge-article p,
  .article-body ul,
  .article-body ol {
    font-size: 16px;
    line-height: 1.78;
  }

  .article-body ul,
  .article-body ol {
    padding-left: 22px;
  }

  .article-summary {
    margin: 20px 0 26px;
    padding: 16px;
  }

  .article-body pre,
  .article-body table,
  .knowledge-article pre,
  .knowledge-article table {
    max-width: 100%;
    overflow-x: auto;
  }

  .article-cover img {
    max-height: 360px;
  }

  .qr-save-link {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #f8fbff;
    color: var(--green-dark);
    font-size: 14px;
    font-weight: 800;
  }

  .mobile-service .qr-save-link,
  .support-panel .qr-save-link,
  .activity-contact .qr-save-link {
    grid-column: 1 / -1;
  }

  .ai-chat {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
  }

  .ai-chat-toggle {
    width: 52px;
    min-height: 52px;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
  }

  .ai-chat-toggle strong {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .ai-chat-panel {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    max-width: none;
    max-height: none;
    border: 0;
    border-radius: 0;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .ai-chat-head {
    padding: 14px 16px;
  }

  .ai-chat-messages {
    overscroll-behavior: contain;
    padding: 14px;
  }

  .ai-chat-form {
    padding: 10px 12px;
  }

  .ai-chat-form input {
    font-size: 16px;
  }

  body.ai-chat-open {
    overflow: hidden;
  }

  body.ai-chat-open .ai-chat-toggle,
  body.ai-chat-open .mobile-product-actions {
    visibility: hidden;
  }

  .mobile-product-actions {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -12px 34px rgba(16, 32, 51, 0.12);
    backdrop-filter: blur(18px);
  }

  .mobile-product-actions a {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: white;
    color: var(--ink);
    font-weight: 800;
  }

  .mobile-product-actions .mobile-product-download {
    border-color: var(--green-dark);
    background: var(--green-dark);
    color: white;
  }

  body.has-mobile-product-actions {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  body.has-mobile-product-actions .ai-chat {
    bottom: calc(84px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 380px) {
  h1,
  .knowledge-article h1 {
    font-size: 30px;
  }

  .site-header.has-mobile-menu {
    padding-right: 12px;
    padding-left: 12px;
  }

  .hero-tutorial-head {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .hero-tutorial-head img {
    height: 74px;
  }

  .hero-tutorial-list a {
    min-height: 104px;
  }
}
