:root {
  color-scheme: light;
  --ink: #171a26;
  --muted: #6b7184;
  --blue: #315de8;
  --lavender: #7774f5;
  --line: #e8eaf3;
  --soft: #f6f7ff;
  --content: 1280px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; color: var(--ink); background: #fff; font-size: 16px; line-height: 1.7; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #6d7ff0; outline-offset: 4px; border-radius: 6px; }

.site-header, .site-footer { display: flex; align-items: center; justify-content: space-between; width: min(calc(100% - 64px), var(--content)); margin-inline: auto; }
.site-header { min-height: 76px; border-bottom: 1px solid rgba(219, 223, 241, .76); }
.wordmark { display: inline-flex; align-items: baseline; gap: 14px; white-space: nowrap; }
.wordmark-cn { font-size: 24px; font-weight: 760; letter-spacing: .08em; }
.wordmark-en { color: #33394a; font-size: 13px; font-weight: 560; letter-spacing: .16em; }
.site-header nav, .site-footer nav { display: flex; align-items: center; gap: 34px; }
.site-header nav { font-size: 14px; }
.site-header nav > a:not(.header-action), .site-footer a { transition: color .18s ease; }
.site-header nav > a:hover, .site-footer a:hover { color: var(--blue); }
.header-action { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 24px; color: #fff; background: #2e75ed; border-radius: 24px; font-weight: 600; box-shadow: 0 7px 20px rgba(47, 112, 236, .16); }

.home-hero, .frame-hero { position: relative; display: grid; grid-template-columns: minmax(0, .94fr) minmax(420px, 1.06fr); align-items: center; width: min(calc(100% - 64px), var(--content)); margin: 0 auto; }
.home-hero { min-height: 510px; padding-block: 56px 30px; }
.hero-copy, .frame-hero-copy { position: relative; z-index: 1; padding-block: 20px; }
.hero-kicker { margin: 0 0 14px; color: var(--blue); font-size: 13px; letter-spacing: .14em; }
h1, h2, h3, p, figure { margin-top: 0; }
.hero-copy h1, .frame-hero h1 { margin: 0; font-size: clamp(40px, 3.6vw, 54px); font-weight: 760; line-height: 1.25; letter-spacing: .005em; }
.hero-description { max-width: 570px; margin: 18px 0 17px; color: var(--muted); font-size: 17px; line-height: 1.85; }
.text-link, .product-link, .about-points a, .back-link { display: inline-flex; align-items: center; gap: 9px; color: var(--blue); font-weight: 650; }
.text-link { margin-top: 6px; font-size: 15px; }
.hero-art { position: relative; align-self: stretch; min-height: 395px; overflow: hidden; }
.hero-art::before { position: absolute; inset: 3% -8% 5% 12%; content: ""; background: radial-gradient(ellipse at 56% 48%, rgba(157, 161, 255, .32), rgba(219, 224, 255, .21) 40%, rgba(255, 255, 255, 0) 72%); }
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hero-signature { position: absolute; right: 5%; bottom: 6%; margin: 0; color: #6e7593; font-size: 12px; letter-spacing: .48em; }

.product-section { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; width: min(calc(100% - 64px), var(--content)); margin: -20px auto 74px; position: relative; z-index: 2; }
.product-entry { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid #e8eaf3; border-radius: 16px; background: linear-gradient(137deg, #fff, #fafaff 65%, #f3f4ff); box-shadow: 0 14px 38px rgba(44, 58, 112, .055); }
.product-image { position: relative; display: grid; height: 190px; place-items: center; overflow: hidden; background: linear-gradient(145deg, #f3f5ff, #fff 57%, #eef1ff); }
.product-image::after { position: absolute; inset: auto 0 0; height: 35%; content: ""; background: linear-gradient(0deg, rgba(231, 233, 255, .34), transparent); pointer-events: none; }
.product-image-app img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.product-image-frame img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 78% 48%; }
.product-image-writing { align-content: center; gap: 8px; background: radial-gradient(ellipse at 65% 30%, #fff, transparent 58%), linear-gradient(135deg, #f3f4ff, #e9edff); }
.writing-wordmark { font-size: 52px; font-weight: 760; letter-spacing: .1em; color: #28345b; }
.writing-wordmark span { padding-left: 8px; color: var(--lavender); font-size: 21px; letter-spacing: .08em; }
.writing-caption { color: #697498; font-size: 12px; letter-spacing: .28em; }
.product-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 20px 25px 22px; }
.product-type { margin: 0 0 4px; color: var(--blue); font-size: 12px; letter-spacing: .1em; }
.product-copy h2 { margin: 0; font-size: 22px; line-height: 1.45; }
.product-copy > p:not(.product-type) { min-height: 52px; margin: 8px 0 15px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.product-link { margin-top: auto; font-size: 14px; }

.about-section { display: grid; grid-template-columns: minmax(230px, .86fr) minmax(0, 2fr); gap: 52px; padding: 52px max(32px, calc((100% - var(--content)) / 2)) 56px; background: linear-gradient(105deg, #f6f8ff, #fff 74%); border-top: 1px solid #eff0f8; border-bottom: 1px solid #e9ebf7; }
.about-heading .hero-kicker { font-size: 11px; }
.about-heading h2 { max-width: 360px; margin: 0 0 10px; font-size: 29px; line-height: 1.35; }
.about-heading > p:last-child { margin: 0; color: var(--muted); font-size: 14px; }
.about-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.about-points > div { padding: 1px 25px; border-left: 1px solid #e2e5f2; }
.about-points > div:first-child { border-left: 0; }
.about-points h3 { margin: 0 0 7px; font-size: 18px; }
.about-points p { min-height: 50px; margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.about-points a { font-size: 13px; }
.site-footer { min-height: 66px; color: #777d93; font-size: 12px; }
.site-footer nav { gap: 25px; }
.mobile-break { display: none; }

.frame-hero { min-height: 620px; grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr); padding-block: 42px 36px; }
.frame-hero-copy { max-width: 610px; }
.frame-hero h1 { font-size: clamp(40px, 4.4vw, 61px); }
.frame-hero-copy > .hero-description { max-width: 535px; margin-block: 20px 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.primary-button, .secondary-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 10px; padding: 0 23px; border-radius: 26px; font-size: 15px; font-weight: 650; transition: transform .18s ease, box-shadow .18s ease; }
.primary-button { color: #fff; background: linear-gradient(100deg, #2879f0, #315de8); box-shadow: 0 10px 24px rgba(47, 103, 230, .19); }
.secondary-button { border: 1px solid #416ae8; color: #315de8; background: #fff; }
.primary-button:hover, .secondary-button:hover, .header-action:hover { transform: translateY(-1px); }
.primary-button:hover { box-shadow: 0 13px 27px rgba(47, 103, 230, .25); }
.back-link { margin-top: 18px; color: var(--muted); font-size: 13px; font-weight: 550; }
.frame-hero-image { position: relative; align-self: stretch; display: grid; place-items: center; min-height: 510px; margin: 0; }
.frame-hero-image::before { position: absolute; inset: 7% 0 0; content: ""; background: radial-gradient(ellipse at 56% 48%, rgba(176, 181, 255, .31), rgba(230, 233, 255, .18) 51%, transparent 74%); }
.frame-hero-image img { position: relative; height: min(535px, 47vw); width: auto; border-radius: 28px; object-fit: contain; filter: drop-shadow(0 22px 34px rgba(64, 72, 143, .12)); }
.frame-features { padding: 58px max(32px, calc((100% - var(--content)) / 2)) 66px; background: linear-gradient(105deg, #f7f8ff, #fff 54%, #f7f8ff); }
.frame-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .84fr); align-items: center; gap: clamp(42px, 8vw, 110px); min-height: 370px; }
.frame-feature + .frame-feature { margin-top: 46px; }
.frame-feature-reverse figure { order: 2; }
.frame-feature-reverse > div { order: 1; }
.frame-feature figure { display: grid; place-items: center; height: 340px; margin: 0; overflow: hidden; border: 1px solid #e9eaf4; border-radius: 15px; background: linear-gradient(140deg, #fff, #f0f2ff); }
.frame-feature img { width: auto; height: 132%; object-fit: contain; }
.frame-feature h2, .frame-local h2 { margin: 0 0 12px; font-size: clamp(27px, 3vw, 37px); line-height: 1.4; }
.frame-feature p, .frame-local p { max-width: 470px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.9; }
.frame-local { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 48px max(32px, calc((100% - var(--content)) / 2)); border-bottom: 1px solid var(--line); }
.frame-local .primary-button { flex-shrink: 0; }

@media (max-width: 900px) {
  .home-hero, .frame-hero { grid-template-columns: minmax(0, 1fr) minmax(290px, .8fr); }
  .product-section { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-entry:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(220px, .75fr) 1fr; }
  .product-entry:last-child .product-image { height: auto; min-height: 245px; }
  .about-section { grid-template-columns: 1fr; gap: 30px; }
  .about-heading h2 { max-width: none; }
  .frame-hero { min-height: 550px; }
  .frame-feature { gap: 45px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  html { scroll-padding-top: 68px; }
  .site-header, .site-footer { width: min(calc(100% - 36px), var(--content)); }
  .site-header { min-height: 64px; }
  .wordmark { gap: 8px; }
  .wordmark-cn { font-size: 21px; }
  .wordmark-en { font-size: 10px; }
  .site-header nav { gap: 17px; font-size: 12px; }
  .site-header nav a:nth-child(2) { display: none; }
  .header-action { min-height: 38px; padding-inline: 14px; }
  .home-hero, .frame-hero { width: min(calc(100% - 40px), var(--content)); grid-template-columns: 1fr; }
  .home-hero { padding-block: 37px 4px; }
  .hero-copy { padding: 0; }
  .hero-kicker { margin-bottom: 12px; font-size: 11px; letter-spacing: .1em; }
  .hero-copy h1, .frame-hero h1 { font-size: clamp(32px, 8.5vw, 41px); line-height: 1.34; }
  .mobile-break { display: initial; }
  .hero-description { margin-block: 13px 8px; font-size: 14px; line-height: 1.8; }
  .desktop-break { display: none; }
  .text-link { margin-top: 10px; font-size: 14px; }
  .hero-art { min-height: 218px; margin: 0 -18px; }
  .hero-signature { right: 8%; bottom: 4%; font-size: 9px; letter-spacing: .24em; }
  .product-section { width: min(calc(100% - 36px), var(--content)); grid-template-columns: 1fr; gap: 14px; margin: -5px auto 42px; }
  .product-entry, .product-entry:last-child { display: grid; grid-column: auto; grid-template-columns: 118px minmax(0, 1fr); min-height: 170px; }
  .product-image, .product-entry:last-child .product-image { height: 100%; min-height: 170px; }
  .product-image-app img { object-position: 48% center; }
  .product-image-frame img { width: 100%; height: 100%; transform: none; object-position: 76% center; }
  .product-copy { justify-content: center; padding: 15px 15px 16px; }
  .product-type { font-size: 10px; }
  .product-copy h2 { font-size: 18px; }
  .product-copy > p:not(.product-type) { min-height: 0; margin: 5px 0 9px; font-size: 12px; line-height: 1.6; }
  .product-link { gap: 5px; font-size: 12px; }
  .writing-wordmark { font-size: 34px; }
  .writing-wordmark span { padding-left: 3px; font-size: 13px; }
  .writing-caption { font-size: 8px; letter-spacing: .13em; }
  .about-section { gap: 21px; padding: 34px 20px 37px; }
  .about-heading .hero-kicker { font-size: 9px; }
  .about-heading h2 { font-size: 24px; }
  .about-heading > p:last-child { font-size: 12px; }
  .about-points { grid-template-columns: 1fr; }
  .about-points > div, .about-points > div:first-child { padding: 15px 0; border: 0; border-top: 1px solid #e2e5f2; }
  .about-points h3 { font-size: 16px; }
  .about-points p { min-height: 0; margin-bottom: 5px; font-size: 12px; }
  .about-points a { font-size: 12px; }
  .site-footer { min-height: 60px; gap: 10px; font-size: 9px; }
  .site-footer nav { gap: 13px; }
  .frame-hero { padding-block: 35px 15px; }
  .frame-hero-copy { padding: 0; }
  .frame-hero-copy > .hero-description { margin-block: 14px 18px; font-size: 14px; }
  .hero-actions { gap: 8px; }
  .primary-button, .secondary-button { min-height: 44px; padding-inline: 15px; font-size: 12px; }
  .back-link { margin-top: 13px; font-size: 12px; }
  .frame-hero-image { min-height: 375px; margin: -4px -16px 0; }
  .frame-hero-image img { height: 370px; max-width: 100%; border-radius: 20px; }
  .frame-features { padding: 32px 20px 38px; }
  .frame-feature, .frame-feature-reverse { grid-template-columns: 1fr; gap: 17px; min-height: 0; }
  .frame-feature + .frame-feature { margin-top: 31px; }
  .frame-feature-reverse figure, .frame-feature-reverse > div { order: initial; }
  .frame-feature figure { height: 290px; }
  .frame-feature img { height: 125%; }
  .frame-feature h2, .frame-local h2 { margin-bottom: 6px; font-size: 23px; }
  .frame-feature p, .frame-local p { font-size: 13px; line-height: 1.8; }
  .frame-local { align-items: flex-start; flex-direction: column; gap: 18px; padding: 30px 20px 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
