:root {
  --ink: #151b28;
  --muted: #707580;
  --orange: #ff6a35;
  --red: #ff3e32;
  --line: #eceef2;
  --page: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.dialog-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(calc(100% - 48px), var(--page)); margin: 0 auto; }

.site-header {
  position: relative;
  z-index: 20;
  height: 90px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(239, 240, 243, .75);
}

.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; min-width: 0; }

.app-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 23%;
  background: linear-gradient(145deg, #ff9713, #ff174f);
  box-shadow: 0 7px 18px rgba(255, 74, 37, .18);
}

.app-icon img {
  position: absolute;
  z-index: 1;
  width: 1004%;
  max-width: none;
  height: auto;
  left: -108%;
  top: -174.5%;
}

.app-icon--header { width: 52px; height: 52px; }
.brand-name { margin-left: 15px; font-size: 27px; font-weight: 800; letter-spacing: -.8px; }
.brand-slogan { margin-left: 24px; padding-left: 24px; border-left: 1px solid #bcc0c8; color: #737780; font-size: 16px; letter-spacing: 2px; }

.main-nav { display: flex; align-self: stretch; gap: 54px; }
.main-nav a { position: relative; display: flex; align-items: center; color: #202633; font-size: 16px; transition: color .2s ease; }
.main-nav a::after { content: ""; position: absolute; left: 50%; bottom: 20px; width: 0; height: 2px; background: linear-gradient(90deg, var(--orange), var(--red)); transform: translateX(-50%); transition: width .2s ease; }
.main-nav a:hover, .main-nav a.active { color: #ff5436; }
.main-nav a.active::after, .main-nav a:hover::after { width: 28px; }

.menu-toggle { display: none; width: 42px; height: 42px; padding: 10px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; border-radius: 2px; background: var(--ink); transition: .2s ease; }

.hero { position: relative; min-height: 700px; overflow: hidden; background: radial-gradient(circle at 31% 75%, rgba(255, 191, 163, .12), transparent 23%); }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 42% 58%; min-height: 700px; align-items: center; }
.hero-copy { position: relative; z-index: 5; padding: 54px 0 50px; }
.hero-brand { display: flex; align-items: center; }
.app-icon--hero { width: 100px; height: 100px; }
.hero-brand h1 { margin: 0 0 0 24px; font-size: clamp(54px, 5.5vw, 76px); line-height: 1; letter-spacing: -4px; }
.hero-slogan { margin: 24px 0 0; color: #6c7079; font-size: 31px; letter-spacing: 7px; }
.hero-intro { margin: 34px 0 0; color: #60656d; font-size: 19px; line-height: 1.7; }
.download-panel { display: flex; align-items: flex-start; gap: 26px; margin-top: 32px; }
.download-buttons { display: grid; gap: 13px; }

.download-button {
  width: 260px;
  min-height: 68px;
  padding: 10px 24px;
  border: 1px solid #dddfe4;
  border-radius: 11px;
  display: flex;
  align-items: center;
  text-align: left;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.download-button svg { width: 37px; height: 37px; margin-right: 19px; fill: currentColor; }
.download-button span { display: grid; }
.download-button strong { font-size: 21px; line-height: 1.15; font-weight: 600; }
.download-button small { margin-top: 4px; font-size: 13px; color: inherit; opacity: .75; }
.ios-button { color: #fff; border-color: #1f1f20; background: linear-gradient(135deg, #202122, #080808); opacity: 1; cursor: not-allowed; }
.android-button:hover { transform: translateY(-2px); border-color: #ff9071; box-shadow: 0 13px 28px rgba(255, 81, 49, .12); }

.qr-wrap { padding-top: 1px; text-align: center; }
.qr-card { position: relative; width: 142px; height: 142px; padding: 7px; border: 1px solid #eee; border-radius: 13px; background: #fff; box-shadow: 0 12px 35px rgba(25, 31, 42, .08); }
#qrcode { width: 126px; height: 126px; overflow: hidden; }
#qrcode img, #qrcode canvas { display: block; width: 126px !important; height: 126px !important; }
.qr-logo { position: absolute; z-index: 3; left: 50%; top: 50%; width: 34px; height: 34px; border: 3px solid #fff; transform: translate(-50%, -50%); }
.qr-wrap p { margin: 10px 0 4px; color: #454b58; font-size: 14px; }
.qr-wrap small { color: #8c9098; font-size: 12px; }

.hero-glow { position: absolute; border-radius: 50%; filter: blur(1px); }
.hero-glow--one { top: 30px; right: 1%; width: 530px; height: 530px; background: linear-gradient(135deg, rgba(255, 219, 208, .58), rgba(255, 137, 104, .17)); }
.hero-glow--two { right: 18%; bottom: -120px; width: 430px; height: 430px; background: rgba(255, 155, 116, .08); }
.hero-visual { position: relative; height: 660px; align-self: end; }
.warm-orb { position: absolute; right: 1%; top: 7%; width: 84%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 52% 45%, rgba(255, 255, 255, .2), rgba(255, 120, 84, .12) 59%, rgba(255, 202, 186, .22)); }

.phone {
  position: absolute;
  z-index: 3;
  width: 318px;
  height: 623px;
  padding: 10px;
  border-radius: 53px;
  background: linear-gradient(105deg, #111 0%, #767676 5%, #111 9%, #050505 86%, #8c8c8c 96%, #1b1b1b);
  box-shadow: 0 35px 60px rgba(27, 24, 22, .25), inset 0 0 0 2px rgba(255, 255, 255, .25);
}

.phone::before { content: ""; position: absolute; z-index: 4; left: 50%; top: 18px; width: 92px; height: 27px; border-radius: 18px; background: #080808; transform: translateX(-50%); }
.phone-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 44px; background: linear-gradient(155deg, #fff 0%, #fff9f5 62%, #ffe3d9 100%); }
.phone--front { left: 18%; bottom: -38px; transform: rotate(-5deg); }
.phone--back { z-index: 1; right: -4%; bottom: 22px; width: 255px; height: 506px; opacity: .52; filter: blur(2px); transform: rotate(8deg); }
.phone--back::before { width: 72px; height: 22px; }
.phone--back .phone-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.phone--back strong { margin-top: 15px; font-size: 30px; }
.status-bar { position: relative; z-index: 3; display: flex; justify-content: space-between; padding: 20px 29px 0; font-size: 11px; }
.phone-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; padding-top: 120px; }
.phone-logo { width: 82px; height: 82px; }
.phone-content strong { margin-top: 16px; font-size: 32px; letter-spacing: -2px; }
.phone-content em { margin-top: 44px; color: #525762; font-family: KaiTi, STKaiti, serif; font-size: 19px; font-style: normal; letter-spacing: 3px; transform: rotate(-5deg); }
.phone-content em::after { content: ""; display: block; width: 140px; height: 1px; margin: 11px auto 0; background: #ff6849; transform: rotate(-7deg); }
.phone-art { position: absolute; left: 21px; right: -45px; bottom: -130px; height: 340px; border-radius: 50% 45% 0 0; background: rgba(255, 123, 78, .13); transform: rotate(5deg); }
.phone-art i { position: absolute; left: 50%; bottom: 7px; border-radius: 50% 50% 0 0; transform: translateX(-50%); }
.phone-art i:nth-child(1) { width: 290px; height: 260px; background: #ffd7c8; }
.phone-art i:nth-child(2) { width: 235px; height: 210px; background: #ffb89d; }
.phone-art i:nth-child(3) { width: 178px; height: 160px; background: #ff8f68; }
.phone-art i:nth-child(4) { width: 116px; height: 106px; background: #ff603f; }

.features { position: relative; z-index: 6; padding: 54px 0 60px; background: rgba(255, 255, 255, .95); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.feature-item { position: relative; text-align: center; }
.feature-item:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 18px; width: 1px; height: 110px; background: #eceef1; }
.feature-icon { width: 82px; height: 82px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; }
.feature-icon svg { width: 39px; height: 39px; fill: currentColor; }
.feature-icon--red { color: #ff655e; background: #fff0ee; }
.feature-icon--orange { color: #ff8a3c; background: #fff4e6; }
.feature-icon--blue { color: #4387f1; background: #eaf4ff; }
.feature-icon--green { color: #2fba66; background: #e9faef; }
.feature-item h2 { margin: 0; font-size: 20px; }
.feature-item p { margin: 9px 0 0; color: #858992; font-size: 15px; }

.site-footer { padding: 38px 0 28px; background: linear-gradient(100deg, #fff9f7, #fff); border-top: 1px solid #fff4f0; }
.footer-main { display: flex; align-items: center; }
.footer-brand { display: flex; align-items: center; padding-right: 32px; border-right: 2px solid #ff5a42; }
.app-icon--footer { width: 49px; height: 49px; }
.footer-brand strong { margin-left: 13px; font-size: 23px; white-space: nowrap; }
.company-info { padding-left: 32px; min-width: 0; }
.company-info p { margin: 0; }
.company-name { font-size: 17px; }
.company-address { display: flex; align-items: center; margin-top: 9px !important; color: #8b8e95; font-size: 13px; }
.company-address svg { flex: 0 0 auto; width: 18px; height: 18px; margin-right: 7px; fill: #ff593c; }
.footer-bottom { display: flex; align-items: center; justify-content: flex-end; gap: 62px; margin-top: 26px; color: #777b84; font-size: 13px; }
.footer-bottom > a { position: relative; }
.footer-bottom > a::before, .footer-bottom > a::after { content: ""; position: absolute; top: 50%; width: 95px; height: 1px; background: #dfe1e5; }
.footer-bottom > a::before { right: calc(100% + 20px); }
.footer-bottom > a::after { left: calc(100% + 20px); }
.footer-links { display: flex; gap: 13px; }
.footer-links button { padding: 0; color: inherit; border: 0; background: none; cursor: pointer; }
.footer-links a:hover, .footer-links button:hover, .footer-bottom > a:hover { color: #ff573c; }
.footer-slogan { margin: 28px 0 0; text-align: center; color: #8c8f96; font-family: KaiTi, STKaiti, serif; letter-spacing: 5px; }

.dialog { position: fixed; z-index: 100; inset: 0; display: none; align-items: center; justify-content: center; padding: 24px; }
.dialog.show { display: flex; }
.dialog-mask { position: absolute; inset: 0; background: rgba(14, 17, 23, .48); backdrop-filter: blur(4px); }
.dialog-card { position: relative; z-index: 1; width: min(560px, 100%); max-height: min(620px, 80vh); overflow: auto; padding: 34px; border-radius: 18px; background: #fff; box-shadow: 0 25px 70px rgba(0, 0, 0, .2); }
.dialog-card h2 { margin: 0 0 20px; }
.dialog-content { color: #5f646e; font-size: 14px; line-height: 1.9; }
.dialog-content p { margin: 0 0 12px; }
.dialog-close { position: absolute; right: 18px; top: 12px; padding: 4px 8px; border: 0; color: #777; background: transparent; font-size: 30px; cursor: pointer; }

@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 46% 54%; }
  .download-panel { display: block; }
  .qr-wrap { position: absolute; left: 280px; bottom: 51px; }
  .phone--front { left: 8%; }
  .phone--back { right: -18%; }
  .brand-slogan { display: none; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 36px), var(--page)); }
  .site-header { height: 72px; }
  .app-icon--header { width: 42px; height: 42px; }
  .brand-name { margin-left: 10px; font-size: 22px; }
  .menu-toggle { display: block; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav { position: absolute; top: 72px; left: 0; right: 0; display: none; height: auto; padding: 12px 18px 18px; gap: 0; border-top: 1px solid #eee; background: rgba(255,255,255,.98); box-shadow: 0 15px 25px rgba(26,29,35,.08); }
  .main-nav.open { display: grid; }
  .main-nav a { justify-content: center; padding: 13px; }
  .main-nav a::after { bottom: 6px; }

  .hero { min-height: auto; }
  .hero-inner { display: flex; flex-direction: column; min-height: 0; }
  .hero-copy { width: 100%; padding: 48px 0 12px; text-align: center; }
  .hero-brand { justify-content: center; }
  .app-icon--hero { width: 76px; height: 76px; }
  .hero-brand h1 { margin-left: 18px; font-size: 51px; letter-spacing: -3px; }
  .hero-slogan { margin-top: 18px; font-size: 23px; letter-spacing: 5px; }
  .hero-intro { margin-top: 22px; font-size: 16px; }
  .download-panel { margin-top: 24px; }
  .download-buttons { width: min(100%, 340px); margin: 0 auto; }
  .download-button { width: 100%; }
  .qr-wrap { display: none; }
  .hero-visual { width: 100%; height: 500px; margin-top: 4px; }
  .warm-orb { left: 50%; right: auto; top: 2%; width: 490px; max-width: 112vw; transform: translateX(-50%); }
  .phone--front { left: 50%; bottom: -103px; width: 270px; height: 529px; border-radius: 46px; transform: translateX(-52%) rotate(-5deg); }
  .phone-screen { border-radius: 38px; }
  .phone--back { right: -75px; bottom: -40px; width: 205px; height: 407px; }
  .status-bar { padding: 18px 25px 0; }
  .phone-content { padding-top: 86px; }
  .phone-logo { width: 72px; height: 72px; }
  .phone-content strong { font-size: 28px; }
  .phone-content em { margin-top: 33px; font-size: 17px; }

  .features { padding: 45px 0; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 42px 0; }
  .feature-item:nth-child(2)::after { display: none; }
  .feature-item::after { top: 10px !important; height: 98px !important; }
  .feature-icon { width: 70px; height: 70px; }
  .feature-item h2 { font-size: 18px; }
  .feature-item p { font-size: 13px; }

  .site-footer { padding: 34px 0 24px; }
  .footer-main { align-items: flex-start; }
  .footer-brand { padding-right: 18px; }
  .app-icon--footer { width: 42px; height: 42px; }
  .footer-brand strong { display: none; }
  .company-info { padding-left: 18px; }
  .company-name { font-size: 15px; line-height: 1.5; }
  .company-address { align-items: flex-start; line-height: 1.6; }
  .company-address svg { margin-top: 2px; }
  .footer-bottom { flex-direction: column; gap: 16px; margin-top: 24px; }
  .footer-bottom > a::before, .footer-bottom > a::after { width: 45px; }
  .footer-links { justify-content: center; }
  .footer-slogan { margin-top: 22px; font-size: 13px; }
}

@media (max-width: 390px) {
  .container { width: calc(100% - 28px); }
  .hero-brand h1 { font-size: 45px; }
  .hero-slogan { font-size: 20px; letter-spacing: 4px; }
  .hero-visual { height: 465px; }
  .footer-main { display: block; text-align: center; }
  .footer-brand { justify-content: center; padding: 0 0 16px; border-right: 0; }
  .footer-brand strong { display: inline; }
  .company-info { padding: 0; }
  .company-address { justify-content: center; text-align: left; }
}

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