/* Hero, floating cards, and feature cards adapted from the supplied DeepSeek site. */

.hero { position: relative; padding: 84px 0 0; overflow: hidden; }

.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.orb {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5;
  will-change: transform;
}
.orb-1 {
  width: 520px; height: 520px; top: -180px; right: -120px;
  background: radial-gradient(circle at 30% 30%, rgba(254,44,85,.42), rgba(254,44,85,0) 68%);
  animation: drift1 18s ease-in-out infinite;
}
.orb-2 {
  width: 460px; height: 460px; top: 120px; left: -160px;
  background: radial-gradient(circle at 60% 40%, rgba(109,94,252,.34), rgba(109,94,252,0) 68%);
  animation: drift2 22s ease-in-out infinite;
}
@keyframes drift1 {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(-40px, 40px, 0) scale(1.08); }
}
@keyframes drift2 {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(50px, -30px, 0) scale(1.06); }
}

.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(14,16,18,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14,16,18,.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 30%, transparent 78%);
}

.hero-inner {
  position: relative; max-width: var(--max); margin: 0 auto; padding: 0 24px 70px;
  display: grid; grid-template-columns: 1.06fr .94fr; gap: 56px; align-items: center;
}

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px 6px 10px; border-radius: 999px;
  background: rgba(255,255,255,.8); border: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-2); font-weight: 520;
  box-shadow: var(--shadow-sm); backdrop-filter: blur(8px);
}
.pill .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 3px rgba(20,160,107,.14);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(20,160,107,.14); }
  50% { box-shadow: 0 0 0 6px rgba(20,160,107,.06); }
}

.hero h1 {
  font-size: clamp(36px, 5.2vw, 62px);
  margin: 22px 0 20px;
  /* 中文大标题最忌讳负字距，这里几乎不收紧，只把行高压低显得紧凑 */
  letter-spacing: -.006em;
  font-weight: 660;
  line-height: 1.14;
}
.grad {
  background: linear-gradient(100deg, var(--brand) 0%, #ff7a3d 48%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  background-size: 200% 100%;
  animation: shift 7s ease-in-out infinite;
}
@keyframes shift {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.lede { font-size: 17px; color: var(--muted); max-width: 30em; margin: 0 0 30px; line-height: 1.7; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }

.hero-points { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; }
.hero-points li {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--muted); font-weight: 500;
}
.hero-points svg { width: 15px; height: 15px; color: var(--ok); flex: none; }

/* ---------- 手机视觉 ---------- */
.hero-visual { position: relative; display: flex; justify-content: center; }

.phone {
  position: relative; width: 272px; height: 556px;
  background: #0e1012; border-radius: 40px; padding: 9px;
  box-shadow: 0 40px 90px rgba(14,16,18,.28), 0 8px 24px rgba(14,16,18,.14);
  transform: perspective(1400px) rotateY(-9deg) rotateX(3.5deg);
  transition: transform .8s var(--ease-out);
  will-change: transform;
}
.hero-visual:hover .phone { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg) translateY(-6px); }

.phone-notch {
  position: absolute; top: 15px; left: 50%; transform: translateX(-50%);
  width: 82px; height: 20px; background: #0e1012; border-radius: 999px; z-index: 4;
}

.phone-screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 32px; overflow: hidden; background: #f3f1ee;
}

.float-card {
  position: absolute; z-index: 5;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 14px; padding: 12px 14px; width: 196px;
  box-shadow: 0 12px 36px rgba(14,16,18,.14);
  will-change: transform;
}
.fc-1 { top: 54px; left: -14px; animation: bob 5.5s ease-in-out infinite; }
.fc-2 { bottom: 84px; right: -22px; animation: bob 6.5s ease-in-out infinite .8s; }
@keyframes bob {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
.fc-title { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 650; margin-bottom: 7px; }
.fc-row { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-2); font-weight: 520; }
.fc-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.fc-dot.ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(20,160,107,.15); }
.fc-dot.run { background: var(--brand); box-shadow: 0 0 0 3px rgba(254,44,85,.15); animation: pulse2 1.4s ease-in-out infinite; }
@keyframes pulse2 { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.fc-bar { margin-top: 9px; height: 4px; background: rgba(14,16,18,.08); border-radius: 999px; overflow: hidden; }
.fc-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--accent)); }

/* ---------- 跑马灯 ---------- */
.marquee {
  position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-soft); overflow: hidden; padding: 13px 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; gap: 26px; width: max-content;
  animation: scrollX 34s linear infinite;
  font-size: 12.5px; color: var(--muted); font-weight: 550; letter-spacing: .01em;
}
.marquee-track span:nth-child(even) { color: var(--brand); opacity: .55; }
@keyframes scrollX {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}

.card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px 28px;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s;
  will-change: transform; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(340px circle at var(--mx,50%) var(--my,0%), rgba(254,44,85,.07), transparent 62%);
  opacity: 0; transition: opacity .4s; pointer-events: none;
}
.card:hover { border-color: #d8dde0; box-shadow: var(--shadow-lg); }
.card:hover::before { opacity: 1; }

.card-icon {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(150deg, #fff, var(--bg-soft));
  border: 1px solid var(--line); color: var(--ink);
  transition: transform .4s var(--ease-out), color .3s, border-color .3s;
}
.card-icon svg { width: 20px; height: 20px; }
.card:hover .card-icon { transform: translateY(-2px) rotate(-4deg); color: var(--brand); border-color: rgba(254,44,85,.24); }

.card h3 { font-size: 16.5px; margin-bottom: 9px; font-weight: 650; }
.card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.68; }

.ps-slide.s1 { background: linear-gradient(165deg, #f9e7d2 0%, #edc49a 34%, #cf9059 68%, #96562a 100%); }
.ps-slide.s2 { background: linear-gradient(165deg, #e9f1fa 0%, #bcd2e8 34%, #7d9dc6 68%, #405f86 100%); }
.ps-slide.s3 { background: linear-gradient(165deg, #f4e4fa 0%, #d9b4ea 34%, #a273c9 68%, #6b4090 100%); }

/* 慢速推拉的 transform 已合并到上面的 .ps-slide，这里只保留配色 */

/* 主体光斑 + 右下阴影（压在商品之上，让它"融进"场景） */
.ps-slide::before {
  content: "";
  position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(ellipse 42% 28% at 50% 40%, rgba(255,255,255,.66), transparent 64%),
    radial-gradient(ellipse 58% 38% at 76% 92%, rgba(0,0,0,.26), transparent 66%);
}
/* 上下压暗，让状态栏与文案区更干净 */
.ps-slide::after {
  content: "";
  position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(180deg, rgba(0,0,0,.14) 0%, transparent 20%, transparent 60%, rgba(0,0,0,.34) 100%);
}

/* 抽象"商品"：不同比例代表不同品类，让画面有主体 */
.ps-obj {
  position: absolute;
  left: 50%; top: 44%;
  translate: -50% -50%;
  z-index: 1;
  filter: drop-shadow(0 16px 26px rgba(0,0,0,.30)) drop-shadow(0 2px 4px rgba(0,0,0,.18));
}
.s1 .ps-obj {
  width: 92px; height: 148px;
  border-radius: 44px 44px 26px 26px / 54px 54px 26px 26px;
  background: linear-gradient(148deg, #fffdf9 0%, #f0e2d2 42%, #cdb49a 100%);
}
.s2 .ps-obj {
  width: 118px; height: 118px;
  border-radius: 16px;
  background: linear-gradient(148deg, #ffffff 0%, #e3ecf6 44%, #b6c8dc 100%);
}
.s3 .ps-obj {
  width: 84px; height: 156px;
  border-radius: 42px 42px 22px 22px;
  background: linear-gradient(148deg, #fffafd 0%, #f1e1f8 44%, #cfaedf 100%);
}
/* 商品高光：一条斜向亮带 */
.ps-obj::after {
  content: "";
  position: absolute; inset: 8% 14% 30% 12%;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255,255,255,.85), transparent 58%);
  opacity: .55;
}

/* 整块屏幕的镜面反光，缓慢扫过 */
.ps-sheen {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(105deg, transparent 34%, rgba(255,255,255,.20) 46%, rgba(255,255,255,.05) 54%, transparent 62%);
  background-size: 240% 100%;
  animation: sheen 7s ease-in-out infinite;
}
@keyframes sheen {
  0%, 100% { background-position: 130% 0; }
  50% { background-position: -30% 0; }
}


.ps-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6;
  padding: 46px 18px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,.76));
  color: #fff;
}
.ps-caption b { display: block; font-size: 13px; margin-bottom: 3px; }
.ps-caption span { font-size: 11.5px; opacity: .9; line-height: 1.5; }


.landing { --ease: cubic-bezier(.22,.61,.36,1); --ease-out: cubic-bezier(.16,1,.3,1); --max: 1140px; }
.landing .wrap { width: min(1092px, calc(100% - 48px)); }
.landing .site-header { height: 67px; }
.landing .header-inner { justify-content: flex-start; gap: 29px; }
.landing .header-actions { margin-left: auto; gap: 14px; }
.landing .site-nav { gap: 25px; }
.landing .site-nav a { position: relative; padding-block: 4px; }
.landing .site-nav a::after {
  content: ""; position: absolute; inset: auto 0 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .22s var(--ease-out);
}
.landing .site-nav a:hover::after, .landing .site-nav a:focus-visible::after { transform: scaleX(1); }
.hero { padding-top: clamp(54px, 6.5vw, 84px); }
.hero-inner { grid-template-columns: minmax(0,1.06fr) minmax(0,.94fr); gap: clamp(28px, 5vw, 56px); }
.hero-copy, .hero-visual { min-width: 0; }
.hero h1 { font-size: clamp(42px, 5.05vw, 65px); font-weight: 760; word-break: keep-all; }
:lang(en) .hero h1 { font-size: clamp(40px, 4.6vw, 61px); letter-spacing: -.06em; }
.hero-copy > * { animation: hero-entry .65s var(--ease-out) both; }
.hero-copy > :nth-child(2) { animation-delay: .045s; }
.hero-copy > :nth-child(3) { animation-delay: .09s; }
.hero-copy > :nth-child(4) { animation-delay: .135s; }
.hero-copy > :nth-child(5) { animation-delay: .18s; }
.hero-visual { animation: hero-entry .75s var(--ease-out) both; }
@keyframes hero-entry { from { opacity: .45; translate: 0 13px; } }
.hero-actions .button { min-height: 48px; padding-inline: 22px; }
.hero-points { gap: 8px 17px; }
.phone { flex: none; outline: 1px solid #16161630; }
.phone-notch::after {
  content: ""; position: absolute; top: 8px; left: 23px; width: 13px; height: 4px;
  background: #e9edf1; border-radius: 6px; box-shadow: 0 0 4px #fff8;
}
.phone-notch::before {
  content: ""; position: absolute; top: 8px; right: 22px; width: 4px; height: 4px;
  background: #a1a6aa80; border-radius: 50%; box-shadow: 8px 0 #a1a6aa80;
}
.float-card { width: clamp(155px, 16vw, 206px); pointer-events: none; }
.fc-title { letter-spacing: .045em; }
.fc-1 .fc-bar i { width: 100%; }
.fc-2 .fc-bar i { width: 76%; }
.ps-track, .ps-slide { position: absolute; inset: 0; }
.ps-slide {
  opacity: 0; transform: scale(1.035); animation: scene-cycle 15s linear infinite;
}
.ps-slide.s1 { animation-delay: -1s; }
.ps-slide.s2 { animation-delay: 4s; }
.ps-slide.s3 { animation-delay: 9s; }
@keyframes scene-cycle {
  0% { opacity: 0; transform: scale(1.05); }
  6% { opacity: 1; }
  40% { opacity: 1; transform: scale(1); }
  46%, 100% { opacity: 0; transform: scale(1); }
}
.hero[data-motion-paused] :is(.ps-slide,.ps-sheen,.orb,.float-card,.marquee-track,.grad,.dot,.fc-dot) { animation-play-state: paused; }
.marquee-track { gap: 0; animation-duration: 32s; }
.marquee-track > div { display: flex; flex: none; min-width: 100vw; justify-content: space-around; align-items: center; gap: 22px; padding-right: 22px; }
.marquee-track > div > span { display: inline-flex; align-items: center; gap: 22px; white-space: nowrap; }
.marquee-track > div > span::after { content: "·"; color: var(--brand); font-weight: 850; }
.marquee-track span:nth-child(even) { color: var(--muted); opacity: 1; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.features-section .section-intro { margin-bottom: 28px; }
.features-section .card { min-width: 0; }
.features-section .card:hover, .features-section .card:focus-within { translate: 0 -3px; }
.gallery-section { background: linear-gradient(#fff9f9, #fff 72%); border-top: 1px solid #f0e8ea; }
.motion-ready [data-reveal] {
  opacity: 0; transform: translateY(19px);
  transition: opacity .6s var(--ease-out), transform .65s var(--ease-out);
}
.motion-ready [data-reveal].is-visible, .motion-ready [data-reveal]:focus-within { opacity: 1; transform: none; }
.cards > [data-reveal]:nth-child(2) { transition-delay: .065s; }
.cards > [data-reveal]:nth-child(3) { transition-delay: .13s; }
@media (max-width:1080px) {
  .landing .header-inner { gap: 17px; }
  .landing .header-actions { gap: 9px; }
  .landing .site-nav { gap: 15px; }
  .fc-1 { left: -3px; }
  .fc-2 { right: -5px; }
}
@media (min-width:821px) and (max-width:960px) {
  .landing .site-nav { display: none; }
  .landing .mobile-menu { display: block; }
}
@media (max-width:820px) {
  .hero { padding-top: 45px; }
  .hero-inner { grid-template-columns: minmax(0,1fr); justify-items: start; padding-bottom: 37px; gap: 36px; }
  .hero-visual { width: min(100%, 465px); justify-self: center; }
  .phone { width: 246px; height: 500px; transform: perspective(1400px) rotateY(-5deg) rotateX(2deg); }
  .hero-visual:hover .phone { transform: perspective(1400px) rotateY(-5deg) rotateX(2deg); }
  .hero h1, :lang(en) .hero h1 { font-size: clamp(42px, 7.8vw, 58px); }
  .lede { max-width: 34em; font-size: 16px; margin-bottom: 24px; }
  .cards { gap: 12px; }
  .card { padding: 22px 17px; }
}
@media (max-width:490px) {
  .landing .site-header { height: 63px; }
  .landing .wrap { width: calc(100% - 36px); }
  .landing .header-inner { gap: 7px; }
  .landing .header-actions { gap: 4px; }
  .hero-inner { padding-inline: 18px; gap: 30px; }
  .hero h1, :lang(en) .hero h1 { font-size: clamp(35px, 9.9vw, 46px); margin-block: 17px; }
  .hero-actions { gap: 8px; margin-bottom: 18px; }
  .hero-actions .button { padding-inline: 14px; font-size: .88rem; min-height: 44px; }
  .hero-points li { font-size: 12px; }
  .phone { width: 221px; height: 455px; border-radius: 32px; padding: 7px; }
  .phone-screen { border-radius: 26px; }
  .phone-notch { top: 12px; }
  .fc-1, .fc-2 { width: min(149px, 48%); padding: 9px 10px; }
  .fc-1 { left: -1px; top: 37px; }
  .fc-2 { right: -1px; bottom: 74px; }
  .fc-row { font-size: 11px; }
  .fc-title { margin-bottom: 4px; }
  .cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hero :is(.ps-slide,.ps-sheen,.grad,.float-card,.orb,.marquee-track,.hero-copy > *,.hero-visual) { animation: none !important; }
  .ps-slide.s1 { opacity: 1; transform: none; }
  .motion-ready [data-reveal] { opacity: 1; transform: none; }
}
@media (forced-colors: active) {
  .hero h1 .grad { background: none; -webkit-text-fill-color: CanvasText; color: CanvasText; }
}
