:root {
  --bg: #f3f6fa;
  --bg-alt: #e9eef5;
  --ink: #0a1220;
  --muted: #5a6a80;
  --line: #d5deea;
  --accent: #0284c7;
  --accent-hover: #0369a1;
  --accent-deep: #0b3d5c;
  --warn: #f59e0b;
  --ok: #10b981;
  --white: #ffffff;
  --max: 1120px;
  --header: 68px;
  --font: "Outfit", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Noto Sans SC", "PingFang SC", sans-serif;
  --display: "Syne", "Outfit", "Noto Sans SC", sans-serif;
  --shadow-sm: 0 8px 24px rgba(10, 18, 32, 0.05);
  --shadow-md: 0 18px 48px rgba(10, 18, 32, 0.08);
  --radius: 20px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

::selection {
  background: rgba(2, 132, 199, 0.22);
  color: #0a1220;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  background:
    radial-gradient(ellipse 70% 42% at 8% -5%, rgba(14, 165, 233, 0.09), transparent 52%),
    radial-gradient(ellipse 55% 36% at 96% 12%, rgba(2, 132, 199, 0.06), transparent 48%),
    linear-gradient(180deg, #f7fafc 0%, var(--bg) 40%, #eef3f8 100%);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 精致滚动条 */
body::-webkit-scrollbar { width: 10px; }
body::-webkit-scrollbar-track { background: #e8eef5; }
body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #94a3b8, #64748b);
  border-radius: 999px;
  border: 2px solid #e8eef5;
}

.page {
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(20px, calc((100% - var(--max)) / 2));
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(215, 224, 234, 0.45);
  backdrop-filter: blur(18px) saturate(1.35);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(215, 224, 234, 0.85);
  box-shadow: 0 12px 40px rgba(10, 18, 32, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: 0.1em;
  transition: color 0.2s ease, transform 0.2s ease;
}

.brand::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7dd3fc, #0284c7);
  box-shadow:
    0 0 0 4px rgba(2, 132, 199, 0.12),
    0 0 18px rgba(56, 189, 248, 0.45);
}

.brand:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(241, 245, 249, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.nav a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: #64748b;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav a:not(.nav-cta):hover {
  color: #0f172a;
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.nav-cta {
  margin-left: 2px;
  padding: 8px 16px !important;
  border: 0 !important;
  color: #fff !important;
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.28);
  font-weight: 600 !important;
}

.nav-cta:hover {
  color: #fff !important;
  background: linear-gradient(135deg, #0369a1, #0284c7);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(2, 132, 199, 0.35);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
}

/* Hero：品牌主导，一张完整画面 */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header));
  min-height: calc(100svh - var(--header));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 0 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: #060b14;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  transform: scale(1.04);
  animation: hero-kenburns 22s ease-in-out infinite alternate;
  filter: saturate(1.05) contrast(1.05);
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(6, 11, 20, 0.82) 0%, rgba(6, 11, 20, 0.55) 42%, rgba(6, 11, 20, 0.28) 68%, rgba(8, 47, 73, 0.35) 100%),
    radial-gradient(ellipse 70% 55% at 78% 18%, rgba(56, 189, 248, 0.18), transparent 58%),
    linear-gradient(180deg, rgba(6, 11, 20, 0.35) 0%, transparent 35%, transparent 70%, rgba(6, 11, 20, 0.55) 100%);
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.35;
  mask-image: linear-gradient(180deg, #000 20%, transparent 88%);
  animation: grid-drift 22s linear infinite;
  pointer-events: none;
}

@keyframes hero-kenburns {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 50% 120%, rgba(0, 0, 0, 0.28), transparent 55%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.16) 0%, transparent 30%, transparent 78%, rgba(0, 0, 0, 0.18) 100%);
  opacity: 0.9;
}

.hero-orb {
  position: absolute;
  z-index: 2;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.hero-orb-a {
  width: 220px;
  height: 220px;
  right: 12%;
  top: 18%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35), transparent 68%);
  animation: orb-float 9s ease-in-out infinite;
}

.hero-orb-b {
  width: 160px;
  height: 160px;
  left: 8%;
  bottom: 22%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.28), transparent 70%);
  animation: orb-float 11s ease-in-out infinite reverse;
}

.hero-orb-c {
  width: 90px;
  height: 90px;
  left: 42%;
  top: 28%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
  animation: orb-float 7s ease-in-out infinite 1s;
}

.hero-beam {
  position: absolute;
  z-index: 2;
  top: -20%;
  right: 18%;
  width: 2px;
  height: 70%;
  background: linear-gradient(180deg, transparent, rgba(56, 189, 248, 0.55), transparent);
  transform: rotate(18deg);
  animation: beam-sweep 6s ease-in-out infinite;
  opacity: 0.55;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  max-width: 760px;
  padding: 0 0 72px;
  color: #e2e8f0;
}

.hero-brand {
  margin: 0 0 22px;
  font-family: var(--display);
  font-size: clamp(3rem, 8.5vw, 5.2rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.02;
  text-shadow: 0 0 48px rgba(56, 189, 248, 0.28);
  background: linear-gradient(115deg, #fff 18%, #bae6fd 48%, #38bdf8 62%, #fff 88%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brand-shine 6s linear infinite;
}

@keyframes brand-shine {
  to { background-position: 220% center; }
}

.hero h1 {
  margin: 0 0 16px;
  max-width: 16em;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.9vw, 1.95rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  color: #f8fafc;
}

.hero-lead {
  margin: 0 0 32px;
  color: rgba(226, 232, 240, 0.78);
  max-width: 34em;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.85;
}

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

.hero-content .reveal-item {
  opacity: 0;
  transform: translateY(18px);
  animation: rise-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 1;
  width: 22px;
  height: 34px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  opacity: 0.7;
}

.hero-scroll span {
  display: block;
  width: 3px;
  height: 8px;
  margin: 7px auto 0;
  border-radius: 999px;
  background: #fff;
  animation: scroll-dot 1.6s ease-in-out infinite;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #0369a1 0%, #0ea5e9 55%, #38bdf8 100%);
  color: #fff;
  box-shadow:
    0 12px 32px rgba(2, 132, 199, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #075985 0%, #0284c7 55%, #0ea5e9 100%);
  transform: translateY(-2px);
  box-shadow:
    0 16px 36px rgba(2, 132, 199, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(186, 230, 253, 0.55);
  transform: translateY(-2px);
}

@keyframes hero-shift {
  from { filter: saturate(1); }
  to { filter: saturate(1.15) brightness(1.05); }
}

@keyframes hero-glow {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.8; }
  to { transform: translate3d(-3%, 2%, 0) scale(1.08); opacity: 1; }
}

@keyframes grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 48px, 48px 0; }
}

@keyframes orb-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(12px, -18px, 0); }
}

@keyframes beam-sweep {
  0%, 100% { opacity: 0.2; transform: rotate(18deg) translateY(0); }
  50% { opacity: 0.75; transform: rotate(18deg) translateY(18px); }
}

@keyframes rise-in {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scroll-dot {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px); }
}

/* 滚动显现 */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg,
  .hero-bg::before,
  .hero-bg::after,
  .hero-photo,
  .hero-orb,
  .hero-beam,
  .hero-scroll span,
  .phone.frame-phone,
  .browser.frame-browser,
  .tech-marquee-track,
  .hero-brand {
    animation: none !important;
  }
  .hero-photo { transform: none; }
  .hero-brand {
    color: #fff;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
  }
  .hero-content .reveal-item,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

.section {
  padding: 108px 0;
  position: relative;
}

.section-kicker {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-kicker.light { color: #7dd3fc; }

.section-head {
  margin-bottom: 48px;
  max-width: 38em;
}

.section-head h2,
.about h2,
.contact h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.section-head p,
.about-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

/* Hero 内底部理念条：与主画面同一屏，不另起色块 */
.tech-marquee {
  position: relative;
  z-index: 1;
  margin-top: auto;
  overflow: hidden;
  padding: 20px 0 22px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.22));
  border-top: 1px solid rgba(125, 211, 252, 0.12);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.tech-marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 0;
  animation: marquee 40s linear infinite;
}

.tech-marquee-track span {
  display: inline-flex;
  align-items: center;
  font-family: var(--display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(226, 232, 240, 0.62);
  white-space: nowrap;
  padding: 0 6px 0 0;
}

.tech-marquee-track span::after {
  content: "";
  width: 3px;
  height: 3px;
  margin-left: 36px;
  margin-right: 28px;
  border-radius: 50%;
  background: #7dd3fc;
  opacity: 0.55;
  box-shadow: 0 0 10px rgba(125, 211, 252, 0.55);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* 业务卡片 */
.section-services {
  background:
    radial-gradient(circle at 0% 0%, rgba(14, 165, 233, 0.07), transparent 42%),
    linear-gradient(180deg, #f8fbff 0%, #f3f6fa 100%);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.service-grid article {
  position: relative;
  padding: 26px 22px 28px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid rgba(215, 224, 234, 0.85);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-grid article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--svc, var(--accent)), transparent);
  opacity: 0.85;
}

.service-grid article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--svc, var(--accent)) 28%, #fff);
}

.svc-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--svc, var(--accent)) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--svc, var(--accent)) 18%, #fff);
  color: var(--svc, var(--accent));
  font-style: normal;
}

.svc-icon::before {
  content: var(--glyph, "◇");
  font-size: 1.05rem;
  line-height: 1;
  font-weight: 700;
}

.svc-iot { --svc: #0f766e; --glyph: "⬡"; }
.svc-mini { --svc: #0284c7; --glyph: "☁"; }
.svc-app { --svc: #1d4ed8; --glyph: "▣"; }
.svc-web { --svc: #0e7490; --glyph: "◈"; }
.svc-erp { --svc: #c2410c; --glyph: "▦"; }
.svc-ai { --svc: #155e75; --glyph: "✦"; }
.svc-script { --svc: #047857; --glyph: "{ }"; }
.svc-auto { --svc: #b91c1c; --glyph: "↻"; }

.service-grid h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.service-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.section-cases {
  background:
    radial-gradient(circle at 100% 0%, rgba(2, 132, 199, 0.09), transparent 44%),
    linear-gradient(180deg, #eaf2f9, #f3f6fa 60%);
}

.case-box {
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(10, 18, 32, 0.1);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
  backdrop-filter: blur(10px);
}

.case-box:hover {
  box-shadow: 0 28px 70px rgba(2, 132, 199, 0.14);
  transform: translateY(-3px);
}

.case-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(215, 224, 234, 0.85);
  background: linear-gradient(180deg, #f1f5f9, #e8eef5);
}

.case-tabs button {
  border: 1px solid transparent;
  background: transparent;
  padding: 10px 16px;
  color: var(--muted);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.case-tabs button:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
}

.case-tabs button.is-active {
  color: #0369a1;
  background: #fff;
  border-color: rgba(2, 132, 199, 0.35);
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.12);
}

.case-body {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  min-height: 560px;
}

.device-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 36px 20px;
  background:
    radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.1) 0%, transparent 40%),
    linear-gradient(165deg, #eef4fa, #dce7f2 55%, #e8eef5);
  border-right: 1px solid var(--line);
  min-height: 560px;
  overflow: hidden;
}

.device-stage::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18), transparent 70%);
  top: 12%;
  right: 8%;
  animation: orb-float 8s ease-in-out infinite;
  pointer-events: none;
}

/* 仅对当前可见设备做入场，避免隐藏的手机/浏览器被动画拉到 opacity:1 造成闪动 */
.device-stage.is-switching[data-frame="phone"] .frame-phone,
.device-stage.is-switching[data-frame="browser"] .frame-browser {
  animation: case-device-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes case-device-in {
  from { transform: translateY(10px) scale(0.98); }
  to { transform: translateY(0) scale(1); }
}

.frame-phone,
.frame-browser {
  transition: opacity 0.2s ease;
}

.device-stage[data-frame="phone"] .frame-browser,
.device-stage[data-frame="browser"] .frame-phone {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  animation: none !important;
}

.device-stage[data-frame="phone"] .frame-phone,
.device-stage[data-frame="browser"] .frame-browser {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.phone {
  width: min(100%, 270px);
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border-radius: 34px;
  padding: 11px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}

.device-stage:not(.is-switching) .phone,
.device-stage:not(.is-switching) .browser.frame-browser {
  animation: device-float 5.5s ease-in-out infinite;
}

@keyframes device-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.phone-inner {
  position: relative;
  height: 540px;
  background: #f5f6f8;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0);
}

.screen {
  position: absolute;
  inset: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  border-radius: 24px;
}

.screen[hidden],
.case-text article[hidden] { display: none !important; }

/* —— 零售小程序 —— */
.screen-mall {
  padding: 0 0 52px;
  gap: 0;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 0%, rgba(251, 113, 133, 0.12), transparent 40%),
    radial-gradient(circle at 100% 20%, rgba(56, 189, 248, 0.16), transparent 42%),
    linear-gradient(180deg, #fff7f5 0%, #f3f8ff 42%, #f5f6f8 100%);
}

.screen-mall.is-subpage {
  padding-bottom: 0;
  background: #f3f6fb;
}

.screen-mall button,
.screen-mall input {
  font: inherit;
  color: inherit;
}

.screen-mall button { cursor: pointer; }

.mall-pages {
  height: 100%;
  min-height: 0;
  animation: mall-page-in 0.28s ease;
}

@keyframes mall-page-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.mall-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.mall-view[hidden] { display: none !important; }

.mall-view[data-view="home"] .goods {
  padding-bottom: 8px;
  overflow: auto;
}

.mall-empty {
  grid-column: 1 / -1;
  margin: 24px 0;
  text-align: center;
  color: #9ca3af;
  font-size: 0.72rem;
}

.mall-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 12px 0;
  flex-shrink: 0;
}

.mall-section-title span {
  font-size: 0.82rem;
  font-weight: 700;
  color: #111827;
  position: relative;
  padding-left: 10px;
}

.mall-section-title span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f43f5e, #fb923c);
}

.mall-section-title button,
.mall-section-title em {
  border: 0;
  background: transparent;
  font-size: 0.68rem;
  color: #64748b;
  font-style: normal;
}

.mall-back-head {
  display: grid !important;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  background: linear-gradient(180deg, #ffffff, #f8fafc) !important;
}

.mall-back-head strong {
  text-align: center;
  font-size: 0.85rem;
}

.mall-back {
  width: 32px;
  height: 32px;
  border: 0;
  background: #f1f5f9;
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  color: #111827;
  padding: 0;
}

.mall-list-meta {
  padding: 8px 12px 0;
  font-size: 0.68rem;
  color: #94a3b8;
  flex-shrink: 0;
}

.mall-list-goods {
  margin: 8px 10px 12px;
  overflow: auto;
  flex: 1;
  align-content: start;
}

.mall-detail {
  flex: 1;
  overflow: auto;
  min-height: 0;
}

.mall-detail-cover-wrap {
  position: relative;
}

.mall-detail-cover {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: #e5e7eb;
}

.mall-detail-cover-wrap .tag {
  top: 12px;
  left: 12px;
  font-size: 0.65rem;
  padding: 3px 8px;
}

.mall-detail-body {
  margin: -14px 10px 12px;
  position: relative;
  padding: 14px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.mall-detail-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mall-detail-price-row .goods-price b {
  font-size: 1.25rem;
}

.mall-score {
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff7ed;
  color: #ea580c;
  font-size: 0.68rem;
  font-weight: 700;
}

.mall-detail-body h3 {
  margin: 8px 0 6px;
  font-size: 1rem;
  line-height: 1.35;
}

.mall-detail-meta {
  margin: 0 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.65rem;
  color: #64748b;
}

.mall-detail-meta span {
  padding: 2px 7px;
  border-radius: 999px;
  background: #f1f5f9;
}

.mall-detail-desc {
  margin: 0 0 12px;
  font-size: 0.75rem;
  color: #475569;
  line-height: 1.6;
}

.mall-detail-points {
  margin: 0;
  padding: 10px 10px 10px 1.3em;
  font-size: 0.7rem;
  color: #64748b;
  display: grid;
  gap: 5px;
  background: linear-gradient(135deg, #f0f9ff, #fff7ed);
  border-radius: 10px;
}

.mall-detail-bar {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 8px;
  padding: 10px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  flex-shrink: 0;
  border-radius: 0 0 24px 24px;
}

.mall-detail-bar button {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 999px;
  padding: 11px 8px;
  font-size: 0.72rem;
}

.mall-detail-bar .primary {
  border: 0;
  background: linear-gradient(135deg, #f43f5e, #fb7185);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(244, 63, 94, 0.35);
}

.mall-activity-hero {
  position: relative;
  overflow: hidden;
  margin: 10px;
  padding: 16px;
  border-radius: 16px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.28), transparent 35%),
    linear-gradient(135deg, #f97316 0%, #ef4444 55%, #db2777 100%);
  flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.28);
}

.mall-activity-hero em {
  display: inline-block;
  font-style: normal;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
}

.mall-activity-hero strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.mall-activity-hero p {
  margin: 0;
  font-size: 0.7rem;
  opacity: 0.95;
  line-height: 1.45;
}

.mall-activity-tags {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.mall-activity-tags span {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.62rem;
}

.mall-order-list,
.mall-coupon-list,
.mall-addr-list {
  display: grid;
  gap: 10px;
  padding: 10px;
  overflow: auto;
  flex: 1;
  align-content: start;
}

.mall-order-list article,
.mall-addr-list article {
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  border: 1px solid #eef2f7;
}

.mall-order-list article.status-wait { border-left: 3px solid #f59e0b; }
.mall-order-list article.status-ship { border-left: 3px solid #0ea5e9; }
.mall-order-list article.status-done { border-left: 3px solid #22c55e; }

.mall-order-list header,
.mall-addr-list header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  margin-bottom: 6px;
}

.mall-order-list header em {
  margin-left: auto;
  font-style: normal;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.62rem;
}

.status-wait header em { background: #fffbeb; color: #d97706; }
.status-ship header em { background: #e0f2fe; color: #0284c7; }
.status-done header em { background: #dcfce7; color: #16a34a; }

.mall-order-list p,
.mall-addr-list p,
.mall-coupon-list p {
  margin: 0;
  font-size: 0.72rem;
  color: #475569;
  line-height: 1.45;
}

.mall-order-list footer {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
  font-size: 0.68rem;
  color: #94a3b8;
}

.mall-order-list footer b { color: #e11d48; font-size: 0.85rem; }

.mall-coupon-list article {
  display: grid;
  grid-template-columns: 96px 1fr;
  border-radius: 12px;
  overflow: hidden;
  min-height: 78px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.coupon-left {
  display: grid;
  place-items: center;
  padding: 10px;
  color: #fff;
  text-align: center;
}

.coupon-left strong {
  font-size: 0.9rem;
  line-height: 1.25;
}

.coupon-right {
  background: #fff;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  border: 1px dashed transparent;
  border-left: 0;
}

.coupon-right span {
  font-size: 0.62rem;
  color: #94a3b8;
}

.coupon-red .coupon-left { background: linear-gradient(160deg, #f43f5e, #fb7185); }
.coupon-gold .coupon-left { background: linear-gradient(160deg, #f59e0b, #fbbf24); }
.coupon-blue .coupon-left { background: linear-gradient(160deg, #0284c7, #38bdf8); }

.mall-addr-list header em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.62rem;
  color: #fff;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  padding: 2px 8px;
  border-radius: 999px;
}

.mall-chat {
  display: grid;
  gap: 8px;
  padding: 12px;
  overflow: auto;
  flex: 1;
  align-content: start;
  background:
    radial-gradient(circle at 10% 10%, rgba(56, 189, 248, 0.08), transparent 30%),
    #eef6ff;
}

.mall-chat-msg {
  max-width: 85%;
  padding: 9px 11px;
  border-radius: 14px;
  font-size: 0.72rem;
  line-height: 1.45;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.mall-chat-msg.bot {
  background: #fff;
  color: #334155;
  justify-self: start;
  border-bottom-left-radius: 4px;
}

.mall-chat-msg.me {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #fff;
  justify-self: end;
  border-bottom-right-radius: 4px;
}

.mall-result {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(74, 222, 128, 0.18), transparent 45%),
    #f8fafc;
}

.mall-result-ok {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(145deg, #4ade80, #16a34a);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.3);
}

.mall-result strong {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.mall-result p {
  margin: 0 0 4px;
  font-size: 0.75rem;
  color: #475569;
}

.mall-result .muted { color: #94a3b8; font-size: 0.68rem; margin-bottom: 16px; }

.mall-result-btn {
  width: 72%;
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  padding: 11px;
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(2, 132, 199, 0.28);
}

.mall-result-btn.ghost {
  background: #fff;
  color: #0284c7;
  border: 1px solid #bae6fd;
  box-shadow: none;
}

.mall-cart-thumb {
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 8px;
  overflow: hidden;
}

.mall-tab[hidden] { display: none !important; }

.mall-top {
  padding: 10px 10px 0;
  background: linear-gradient(180deg, #ffffff, rgba(255, 255, 255, 0.94));
  flex-shrink: 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  border-radius: 24px 24px 0 0;
}

.screen-mall .bar {
  margin-bottom: 8px;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 600;
  flex-shrink: 0;
}

.bar-title {
  flex: 1;
  text-align: center;
  letter-spacing: 0.06em;
  background: linear-gradient(90deg, #e11d48, #f97316, #0284c7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

.bar-cart {
  position: relative;
  font-size: 0.85rem;
  line-height: 1;
  border: 0;
  background: transparent;
  padding: 0;
}

.bar-cart i {
  position: absolute;
  top: -5px;
  right: -7px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.55rem;
  font-style: normal;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.bar-user,
.live-dot {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--muted);
}

.live-dot {
  color: #ef4444;
  display: flex;
  align-items: center;
  gap: 4px;
}

.live-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  animation: pulse-dot 1.5s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.screen-mall .search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 4px 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #94a3b8;
  font-size: 0.72rem;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.screen-mall .search::before {
  content: "⌕";
  font-size: 0.9rem;
  color: #94a3b8;
}

.screen-mall .search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 0.72rem;
  color: #111827;
}

.screen-mall .search input::placeholder { color: #94a3b8; }

.screen-mall .search button {
  height: 26px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
}

.chips {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  padding-bottom: 8px;
  overflow: auto;
}

.chip {
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  border: 0;
  font-size: 0.65rem;
  color: #64748b;
  white-space: nowrap;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.chip-flash { background: linear-gradient(135deg, #fff1f2, #ffe4e6); color: #e11d48; }
.chip-day { background: linear-gradient(135deg, #ecfeff, #e0f2fe); color: #0284c7; }
.chip-vip { background: linear-gradient(135deg, #fffbeb, #fef3c7); color: #d97706; }

.search,
.banner,
.mini-btn,
.grid2 button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.banner {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border: 0;
  color: #fff;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.banner strong { font-size: 0.85rem; }
.banner span { font-size: 0.68rem; opacity: 0.9; }

.banner-mall {
  position: relative;
  overflow: hidden;
  display: flex;
  width: calc(100% - 20px);
  margin: 8px 10px 0;
  padding: 14px;
  border: 0;
  border-radius: 16px;
  text-align: left;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background:
    radial-gradient(circle at 92% 18%, rgba(255, 255, 255, 0.3) 0%, transparent 36%),
    linear-gradient(125deg, #fb7185 0%, #f97316 42%, #0ea5e9 100%);
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.28);
}

.banner-mall::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -22px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.banner-mall:active { transform: scale(0.985); }

.banner-mall em {
  display: inline-block;
  font-style: normal;
  font-size: 0.58rem;
  margin-bottom: 4px;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.16);
}

.banner-mall strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  margin-bottom: 3px;
}

.banner-copy span {
  font-size: 0.65rem;
  opacity: 0.95;
}

.banner-timer {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  min-width: 72px;
  padding: 7px 8px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.28);
  font-size: 0.78rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  text-align: center;
  backdrop-filter: blur(4px);
}

.banner-timer small {
  display: block;
  font-size: 0.55rem;
  font-weight: 500;
  opacity: 0.85;
  margin-bottom: 2px;
  letter-spacing: 0;
}

.goods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  flex: 1;
  min-height: 0;
  margin: 8px 10px 0;
  align-content: start;
  overflow: hidden;
}

.goods-card {
  position: relative;
  border: 0;
  background: #fff;
  border-radius: 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.07);
  text-align: left;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.goods-card:hover {
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.goods-card:active {
  transform: scale(0.97);
}

.goods-card.is-hit {
  outline: 2px solid #0ea5e9;
  outline-offset: -2px;
}

.goods-pic {
  position: relative;
  height: 90px;
  background: linear-gradient(180deg, #f8fafc, #e2e8f0);
  overflow: hidden;
}

.goods-pic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.tag {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #fff;
  font-size: 0.55rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.3;
  z-index: 1;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}

.tag-hot { background: linear-gradient(135deg, #ef4444, #f97316); }
.tag-sale { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #7c2d12; }

.goods-info {
  padding: 7px 8px 9px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.goods-name {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.goods-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.goods-price b {
  color: #e11d48;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.goods-price s {
  font-size: 0.58rem;
  color: #94a3b8;
  font-weight: 400;
}

.goods-info em {
  font-size: 0.58rem;
  color: #94a3b8;
  font-style: normal;
}

.toast {
  position: absolute;
  left: 50%;
  bottom: 58px;
  transform: translateX(-50%);
  z-index: 5;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(225, 29, 72, 0.88));
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 18px rgba(225, 29, 72, 0.25);
  animation: toast-in 0.35s ease;
  pointer-events: none;
}

.toast[hidden] { display: none !important; }

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.mall-tab {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 52px;
  padding: 6px 0 8px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -8px 20px rgba(15, 23, 42, 0.08);
  border-radius: 0 0 24px 24px;
  overflow: hidden;
}

.mall-tab button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 0;
  background: transparent;
  font-size: 0.58rem;
  color: #94a3b8;
  line-height: 1;
  padding: 0;
}

.mall-tab svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.mall-tab .on {
  color: #e11d48;
  font-weight: 700;
}

.mall-tab .on svg {
  filter: drop-shadow(0 2px 4px rgba(225, 29, 72, 0.35));
}

.mall-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px 10px;
  background: #fff;
  border-bottom: 1px solid #eef0f3;
  flex-shrink: 0;
  border-radius: 24px 24px 0 0;
}

.mall-head-grad {
  background: linear-gradient(135deg, #fff7ed, #eff6ff) !important;
}

.mall-page-head strong {
  font-size: 0.9rem;
}

.mall-page-head span,
.mall-page-head button {
  border: 0;
  background: transparent;
  font-size: 0.7rem;
  color: var(--muted);
}

.mall-page-head button { color: #e11d48; font-weight: 600; }

.mall-cate {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
  overflow: auto;
}

.mall-cate button {
  border: 0;
  border-radius: 14px;
  padding: 14px 12px;
  font-size: 0.78rem;
  text-align: left;
  display: grid;
  gap: 4px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  min-height: 88px;
}

.mall-cate button i {
  font-style: normal;
  font-size: 1.35rem;
  line-height: 1;
}

.mall-cate button span { font-weight: 700; }
.mall-cate button em {
  font-style: normal;
  font-size: 0.62rem;
  opacity: 0.75;
}

.cate-green { background: linear-gradient(145deg, #ecfdf5, #d1fae5); color: #047857; }
.cate-orange { background: linear-gradient(145deg, #fff7ed, #ffedd5); color: #c2410c; }
.cate-blue { background: linear-gradient(145deg, #eff6ff, #dbeafe); color: #1d4ed8; }
.cate-rose { background: linear-gradient(145deg, #fff1f2, #ffe4e6); color: #be123c; }
.cate-gold { background: linear-gradient(145deg, #fffbeb, #fef3c7); color: #b45309; }
.cate-red { background: linear-gradient(145deg, #fef2f2, #fecaca); color: #b91c1c; }

.mall-cart-list {
  list-style: none;
  margin: 0;
  padding: 10px;
  display: grid;
  gap: 8px;
  flex: 1;
  overflow: auto;
  align-content: start;
}

.mall-cart-list:empty::after {
  content: "购物车还是空的，去首页点商品试试";
  display: block;
  padding: 40px 12px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.72rem;
}

.mall-cart-list li {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 8px;
  align-items: center;
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.mall-cart-list img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  background: #f3f4f6;
}

.mall-cart-list strong {
  display: block;
  font-size: 0.74rem;
  margin-bottom: 2px;
}

.mall-cart-list em {
  font-style: normal;
  font-size: 0.68rem;
  color: #e11d48;
  font-weight: 700;
}

.mall-cart-list > li > button {
  border: 0;
  background: #fff1f2;
  color: #e11d48;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1;
}

.mall-cart-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.mall-cart-bar span {
  font-size: 0.72rem;
  color: #64748b;
}

.mall-cart-bar b {
  color: #e11d48;
  font-size: 1.05rem;
}

.mall-cart-bar > button {
  border: 0;
  background: linear-gradient(135deg, #f43f5e, #fb7185);
  color: #fff;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.74rem;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(244, 63, 94, 0.3);
}

.mall-me {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 14px 26px;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.25), transparent 35%),
    linear-gradient(135deg, #f97316 0%, #ef4444 48%, #db2777 100%);
  color: #fff;
}

.mall-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.55);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.mall-me strong { display: block; font-size: 0.95rem; }
.mall-me p { margin: 4px 0 0; font-size: 0.68rem; opacity: 0.92; }

.mall-me-badge {
  margin-left: auto;
  border: 0;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
}

.mall-me-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: -12px 12px 0;
  position: relative;
  z-index: 1;
}

.mall-me-stats button {
  border: 0;
  background: #fff;
  border-radius: 12px;
  padding: 10px 6px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 2px;
  text-align: center;
}

.mall-me-stats b {
  color: #e11d48;
  font-size: 0.95rem;
}

.mall-me-stats span {
  font-size: 0.62rem;
  color: #64748b;
}

.mall-me-list {
  display: grid;
  gap: 8px;
  margin: 12px;
}

.mall-me-list button {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: #fff;
  padding: 12px 14px;
  text-align: left;
  font-size: 0.78rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.mall-me-list i {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: inline-block;
  flex-shrink: 0;
}

.mi-order { background: linear-gradient(135deg, #38bdf8, #0284c7); }
.mi-coupon { background: linear-gradient(135deg, #fb7185, #e11d48); }
.mi-addr { background: linear-gradient(135deg, #4ade80, #16a34a); }
.mi-svc { background: linear-gradient(135deg, #fbbf24, #f59e0b); }

.mall-me-list em {
  margin-left: auto;
  font-style: normal;
  color: #94a3b8;
  font-size: 0.68rem;
}

.kpi3, .kpi2, .desk-kpi {
  display: grid;
  gap: 6px;
  flex-shrink: 0;
}

.kpi3 { grid-template-columns: repeat(3, 1fr); }
.kpi2 { grid-template-columns: 1fr 1fr; }

.kpi3 div,
.kpi2 div,
.desk-kpi div,
.kpi-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  font-size: 0.72rem;
}

.kpi3 b, .kpi2 b, .desk-kpi b {
  display: block;
  font-size: 1rem;
  margin-top: 2px;
}

.kpi3 small, .kpi2 small, .kpi-card small {
  display: block;
  font-size: 0.62rem;
  color: var(--muted);
  margin-top: 2px;
}

.kpi-up small { color: var(--ok); }
.kpi-warn b { color: #f59e0b; }
.kpi-warn small { color: #f59e0b; }

.kpi-green { border-color: #bbf7d0; background: #f0fdf4; }
.kpi-orange { border-color: #fed7aa; background: #fff7ed; }

.sensor-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  flex-shrink: 0;
}

.sensor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.sensor-head strong { font-size: 0.78rem; }

.sensor-val {
  display: flex;
  gap: 16px;
  margin-bottom: 6px;
}

.sensor-val span {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}

.sensor-val em {
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
}

.sparkline {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
  margin-bottom: 4px;
}

.sparkline i {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, #38bdf8, #0284c7);
  border-radius: 2px 2px 0 0;
  opacity: 0.85;
}

.sensor-card small {
  font-size: 0.62rem;
  color: var(--muted);
}

.pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 600;
}

.pill-ok { background: #dcfce7; color: #15803d; }
.pill-warn { background: #fef3c7; color: #b45309; }
.pill-run { background: #dbeafe; color: #1d4ed8; animation: pulse-dot 2s ease infinite; }

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  font-size: 0.74rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.list li.is-alert {
  background: #fffbeb;
  border-color: #fde68a;
}

.list .ok,
.list .warn {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  flex-shrink: 0;
}

.list .warn { background: #f59e0b; }
.list .pulse { animation: pulse-dot 1.5s ease infinite; }

.list em { margin-left: auto; font-style: normal; font-size: 0.68rem; }
.list .stock-low { color: #dc2626; }
.list .stock-ok { margin-left: auto; color: var(--ok); font-size: 0.68rem; }

.screen-label {
  margin: 0;
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 600;
  flex-shrink: 0;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  flex-shrink: 0;
}

.grid-actions .act-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.recent-order {
  flex-shrink: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: 0.68rem;
  color: #1d4ed8;
}

.mini-btn {
  margin-top: auto;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border: 0;
  color: #fff;
  font-weight: 600;
  flex-shrink: 0;
}

.browser {
  width: min(100%, 540px);
  border: 1px solid #334155;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.browser-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--line);
}

.browser-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #22c55e; }

.browser-top em {
  margin-left: 8px;
  font-style: normal;
  font-size: 0.75rem;
  color: var(--muted);
  background: #fff;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  flex: 1;
}

.browser-body {
  position: relative;
  height: 360px;
}

.browser-body .screen { padding: 0; }

.desk {
  display: grid;
  grid-template-columns: 118px 1fr;
  height: 100%;
}

.desk aside {
  background: #0f172a;
  color: #e2e8f0;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.72rem;
}

.desk aside strong {
  margin-bottom: 8px;
  font-size: 0.78rem;
}

.desk aside a {
  padding: 6px 8px;
  border-radius: 6px;
  color: rgba(226, 232, 240, 0.65);
}

.desk aside a.on {
  background: rgba(56, 189, 248, 0.2);
  color: #fff;
}

.desk-main {
  padding: 12px;
  overflow: auto;
}

.desk-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.desk h4 {
  margin: 0;
  font-size: 0.95rem;
}

.desk-time {
  font-size: 0.65rem;
  color: var(--muted);
}

.desk-kpi {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 10px;
}

.dk-green { border-color: #bbf7d0; background: #f0fdf4; }
.dk-blue { border-color: #bfdbfe; background: #eff6ff; }
.dk-purple { border-color: #ddd6fe; background: #f5f3ff; }

.desk-kpi small {
  display: block;
  font-size: 0.62rem;
  color: var(--ok);
  margin-top: 2px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 56px;
  margin-bottom: 10px;
  padding: 0 4px;
}

.chart-bars div {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}

.chart-bars i {
  display: block;
  width: 100%;
  height: var(--h);
  background: #cbd5e1;
  border-radius: 4px 4px 0 0;
  transition: height 0.3s ease;
}

.chart-bars .is-today i {
  background: linear-gradient(180deg, #38bdf8, #0284c7);
}

.chart-bars span {
  font-size: 0.58rem;
  color: var(--muted);
}

.desk table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.desk th,
.desk td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 6px 4px;
}

.task-meta {
  margin: 0 0 10px;
  font-size: 0.72rem;
  color: var(--muted);
}

.progress-wrap {
  margin-bottom: 10px;
}

.progress-wrap span {
  display: block;
  margin-top: 4px;
  font-size: 0.68rem;
  color: var(--accent);
}

.progress-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.progress-bar::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--pct);
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  border-radius: 999px;
  animation: progress-shine 2s ease infinite;
}

@keyframes progress-shine {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

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

.steps li {
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.78rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.steps li small {
  margin-left: auto;
  font-size: 0.65rem;
  color: var(--muted);
}

.steps .done { background: #ecfdf5; border-color: #bbf7d0; }
.steps .run {
  background: var(--accent-deep);
  color: #fff;
  border-color: var(--accent-deep);
}

.blink { animation: blink 1s step-end infinite; }

@keyframes blink {
  50% { opacity: 0; }
}

.log {
  border: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 10px 12px;
  font-size: 0.72rem;
  color: var(--muted);
  border-radius: 8px;
}

.log-terminal {
  background: #0f172a;
  border-color: #334155;
  font-family: ui-monospace, "Cascadia Code", monospace;
  color: #94a3b8;
}

.log-terminal p {
  margin: 0 0 4px;
  display: flex;
  gap: 8px;
}

.log-time { color: #64748b; }
.log-ok { color: #4ade80; font-weight: 600; }
.log-warn { color: #fbbf24; font-weight: 600; }

.log-cursor {
  color: #38bdf8;
  animation: blink 1s step-end infinite;
}

.log p { margin: 0 0 4px; }
.log p:last-child { margin: 0; }

.case-text {
  padding: 36px 32px;
  display: flex;
  align-items: center;
}

.case-scene {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case-text h3 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.35;
}

.case-text p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.case-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-tags li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink);
}

@keyframes case-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-process {
  background:
    linear-gradient(180deg, transparent, rgba(14, 165, 233, 0.04)),
    var(--bg);
}

.process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
  position: relative;
}

.process::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.75), rgba(14, 165, 233, 0.9), rgba(125, 211, 252, 0.75), transparent);
  opacity: 0.7;
  pointer-events: none;
}

.process li {
  counter-increment: step;
  position: relative;
  padding: 24px 20px 22px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #fbfdff);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process li:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.process li::before {
  content: counter(step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 0 18px;
  border-radius: 50%;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(145deg, #0369a1, #38bdf8);
  box-shadow:
    0 10px 22px rgba(2, 132, 199, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  position: relative;
  z-index: 1;
}

.process strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 1.08rem;
  letter-spacing: 0.03em;
}

.process p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.section-about {
  background:
    radial-gradient(circle at 18% 18%, rgba(56, 189, 248, 0.2), transparent 42%),
    radial-gradient(circle at 90% 80%, rgba(14, 165, 233, 0.12), transparent 40%),
    linear-gradient(150deg, #060b14 0%, #0f172a 42%, #0b3d5c 100%);
  color: #e2e8f0;
  overflow: hidden;
}

.section-about::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.5;
  mask-image: linear-gradient(180deg, #000, transparent 90%);
  pointer-events: none;
}

.about {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.about-copy h2 { color: #fff; }

.about-copy p {
  color: rgba(226, 232, 240, 0.82);
}

.about p + p { margin-top: 14px; }

.about-panel {
  margin: 0;
  display: grid;
  gap: 10px;
  padding: 10px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.about-panel > div {
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(6, 11, 20, 0.35);
  border: 1px solid rgba(125, 211, 252, 0.14);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.about-panel > div:hover {
  transform: translateX(4px);
  background: rgba(14, 165, 233, 0.14);
  border-color: rgba(125, 211, 252, 0.28);
}

.about dt {
  font-family: var(--display);
  font-size: 0.72rem;
  color: #7dd3fc;
  margin-bottom: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about dd {
  margin: 0;
  font-weight: 600;
  color: #fff;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}

.section-contact {
  background:
    radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.1), transparent 42%),
    linear-gradient(180deg, #f8fbff, #eaf1f8);
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  border-radius: 26px;
  background:
    linear-gradient(145deg, #060b14 0%, #0f172a 45%, #0b3d5c 100%);
  box-shadow: 0 28px 64px rgba(10, 18, 32, 0.22);
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.12);
}

.contact-side {
  padding: 36px 32px;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: 100%;
}

.contact-side h2 { color: #fff; margin: 0 0 10px; }
.contact-side > div > p { color: rgba(226, 232, 240, 0.78); margin: 0; }

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

.contact li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact li span { color: #7dd3fc; font-size: 0.85rem; }
.contact li a { color: #fff; font-weight: 600; word-break: break-all; }

.contact-promises {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.contact-promises div {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(125, 211, 252, 0.2);
}

.contact-promises b {
  display: block;
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.contact-promises span {
  font-size: 0.78rem;
  color: rgba(226, 232, 240, 0.72);
}

.contact form {
  display: grid;
  gap: 12px;
  padding: 28px;
  border: 0;
  background: #fff;
  border-radius: 0;
  margin: 0;
  transition: box-shadow 0.3s ease;
  align-content: start;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
}

.contact input:not([type="radio"]),
.contact textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #f8fafc;
  padding: 12px 14px;
  outline: none;
  border-radius: 12px;
  font-weight: 400;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact input:not([type="radio"]):focus,
.contact textarea:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.contact form:focus-within {
  box-shadow: inset 0 0 0 1px rgba(2, 132, 199, 0.12);
}

.type-picker {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
  display: grid;
  gap: 10px;
}

.type-picker legend {
  padding: 0 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
}

.type-picker legend em {
  margin-left: 8px;
  font-style: normal;
  font-weight: 400;
  font-size: 0.72rem;
  color: #94a3b8;
}

.type-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.type-option {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
  font-weight: 400;
}

.type-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.type-option span {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.type-option b {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
}

.type-option small {
  font-size: 0.68rem;
  color: #94a3b8;
  line-height: 1.3;
}

.type-option:hover span {
  border-color: #7dd3fc;
  background: #f0f9ff;
}

.type-option input:checked + span {
  border-color: #0284c7;
  background: #eff6ff;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.12);
}

.type-option input:checked + span b { color: #0369a1; }
.type-option input:checked + span small { color: #0284c7; }

.type-option input:checked + span::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0284c7;
}

.contact .btn-primary {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #fff;
  border: 0;
  width: 100%;
  margin-top: 4px;
}

.contact .btn-primary:hover { background: var(--accent-hover); }

.form-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid rgba(125, 211, 252, 0.1);
  padding: 32px 0 44px;
  color: #94a3b8;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #0a1220, #060b14);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.site-footer strong {
  color: #fff;
  font-family: var(--display);
  letter-spacing: 0.1em;
}

.site-footer p { margin: 0; }

/* —— 通用示意：IoT / ERP / Web / Auto —— */
.screen-iot,
.screen-erp {
  padding: 0 0 50px;
  gap: 0;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #f0fdfa, #f8fafc 40%, #f1f5f9);
}

.screen-erp {
  background: linear-gradient(180deg, #fff7ed, #f8fafc 42%, #f1f5f9);
}

.screen-iot.is-subpage,
.screen-erp.is-subpage { padding-bottom: 0; }

.screen-web,
.screen-auto {
  padding: 0;
  gap: 0;
  height: 100%;
  background: #f8fafc;
}

.demo-pages {
  height: 100%;
  min-height: 0;
  animation: mall-page-in 0.25s ease;
}

.demo-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 10px;
  gap: 8px;
}

.demo-view.is-sub { padding: 0; gap: 0; }

.demo-bar,
.demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
}

.demo-bar strong,
.demo-head strong {
  font-size: 0.85rem;
}

.demo-head {
  padding: 12px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 6px;
}

.demo-head.solid {
  display: flex;
  border-radius: 0;
}

.demo-back {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.demo-tab {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 50px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  border-radius: 0 0 24px 24px;
  overflow: hidden;
}

.demo-tab[hidden] { display: none !important; }

.demo-tab button {
  border: 0;
  background: transparent;
  font-size: 0.62rem;
  color: #94a3b8;
  cursor: pointer;
  font-weight: 600;
}

.iot-tab .on { color: #0f766e; }
.erp-tab .on { color: #c2410c; }

.demo-toast { z-index: 6; }

.demo-primary-btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 14px;
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(13, 148, 136, 0.28);
}

.demo-primary-btn.slim {
  width: auto;
  padding: 8px 14px;
  font-size: 0.72rem;
}

.screen-iot .kpi-warn,
.screen-erp .kpi-card {
  border: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.iot-hero-card {
  width: 100%;
  text-align: left;
  cursor: pointer;
  border: 1px solid #ccfbf1;
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.1);
  font: inherit;
  color: inherit;
  background: #fff;
}

.list-iot li button .ok,
.list-iot li button .warn {
  flex-shrink: 0;
}

.list-stock li button .stock-low,
.list-stock li button .stock-ok,
.erp-stock li button .stock-low,
.erp-stock li button .stock-ok {
  margin-left: auto;
}

.list-iot li,
.list-stock li {
  padding: 0;
  overflow: hidden;
}

.list-iot li button,
.list-stock li button,
.erp-stock li button {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.iot-alert-list,
.iot-site-list,
.erp-out-list,
.auto-flow-list,
.auto-script-list {
  display: grid;
  gap: 8px;
  overflow: auto;
  flex: 1;
  align-content: start;
  padding: 10px;
}

.iot-alert {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px;
  align-items: center;
  border: 0;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.iot-alert em {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 700;
  text-align: center;
  padding: 4px 0;
  border-radius: 8px;
}

.level-high em { background: #fee2e2; color: #b91c1c; }
.level-mid em { background: #ffedd5; color: #c2410c; }
.level-low em { background: #e2e8f0; color: #475569; }

.iot-alert strong { display: block; font-size: 0.75rem; margin-bottom: 2px; }
.iot-alert span { font-size: 0.65rem; color: #94a3b8; }

.iot-inspect { padding: 12px; display: grid; gap: 10px; overflow: auto; }

.iot-inspect-card {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.iot-inspect-card b { font-size: 0.8rem; }
.iot-inspect-card p { margin: 6px 0 0; font-size: 0.72rem; color: #64748b; }

.iot-inspect-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.iot-inspect-steps li {
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.72rem;
}

.iot-inspect-steps .run { background: #042f2e; color: #fff; }
.iot-inspect-steps .done { background: #ccfbf1; color: #0f766e; }

.iot-site-list article {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.iot-site-list strong { font-size: 0.85rem; }
.iot-site-list p { margin: 4px 0 8px; font-size: 0.7rem; color: #64748b; }
.iot-site-list button {
  border: 0;
  background: #ccfbf1;
  color: #0f766e;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
}

.iot-device { padding: 10px; display: grid; gap: 10px; overflow: auto; flex: 1; }

.iot-actions {
  display: grid;
  gap: 8px;
}

.iot-actions button {
  border: 0;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0f766e;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  cursor: pointer;
}

.erp-sale {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.erp-goods-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  overflow: auto;
  flex: 1;
  align-content: start;
}

.erp-goods-pick button {
  border: 0;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  text-align: left;
  display: grid;
  gap: 3px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.erp-goods-pick strong { font-size: 0.75rem; }
.erp-goods-pick span { font-size: 0.62rem; color: #94a3b8; }
.erp-goods-pick em { font-style: normal; font-size: 0.65rem; color: #c2410c; font-weight: 700; }

.erp-sale-cart {
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
  flex-shrink: 0;
}

.erp-sale-cart h4 { margin: 0 0 6px; font-size: 0.78rem; }
.erp-sale-cart ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 90px; overflow: auto; }
.erp-sale-cart li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  padding: 4px 0;
}
.erp-sale-cart li.empty { color: #94a3b8; }
.erp-sale-cart li button {
  border: 0;
  background: #fff7ed;
  color: #c2410c;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  cursor: pointer;
}

.erp-sale-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #fed7aa;
}

.erp-sale-bar b { color: #c2410c; font-size: 0.95rem; }
.erp-sale-bar button {
  border: 0;
  background: linear-gradient(135deg, #ea580c, #f97316);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.erp-mine {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px 14px;
  margin: -10px -10px 0;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  color: #fff;
  border-radius: 0;
}

.erp-mine .mall-avatar { border-color: rgba(255,255,255,.5); }
.erp-mine strong { display: block; }
.erp-mine p { margin: 4px 0 0; font-size: 0.68rem; opacity: 0.92; }

.erp-mine-list {
  display: grid;
  gap: 8px;
  padding: 12px 0;
}

.erp-mine-list button {
  display: flex;
  justify-content: space-between;
  border: 0;
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.78rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.erp-mine-list em { font-style: normal; color: #ea580c; font-weight: 700; }

.erp-out-list article {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.erp-out-list article.urgent { border-left: 3px solid #ea580c; }
.erp-out-list header { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 0.75rem; }
.erp-out-list header em { font-style: normal; color: #ea580c; font-weight: 700; }
.erp-out-list p { margin: 0 0 8px; font-size: 0.72rem; color: #64748b; }
.erp-out-list button {
  border: 0;
  background: #ffedd5;
  color: #c2410c;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.erp-sku, .erp-report, .erp-check {
  padding: 12px;
  display: grid;
  gap: 10px;
  overflow: auto;
  flex: 1;
}

.erp-check label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.75rem;
}

.erp-check input {
  width: 72px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 8px;
}

.recent-order {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.demo-desk {
  height: 100%;
}

.demo-desk .desk-main {
  overflow: auto;
}

.desk-kpi button {
  border: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
  font: inherit;
  border-radius: 8px;
  padding: 10px;
}

.demo-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.demo-table th, .demo-table td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 8px 4px;
}

.demo-table tr.clickable { cursor: pointer; }
.demo-table tr.clickable:hover { background: #f1f5f9; }

.desk-link {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 0.72rem;
  cursor: pointer;
}

.web-detail {
  display: grid;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}

.web-detail p {
  margin: 0;
  font-size: 0.8rem;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 8px;
}

.web-detail b { color: #64748b; font-weight: 500; }

.screen-web .demo-toast,
.screen-auto .demo-toast {
  bottom: 16px;
}

.auto-flow-card,
.auto-script-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.auto-flow-card strong,
.auto-script-list strong {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 3px;
}

.auto-flow-card span,
.auto-script-list span {
  font-size: 0.7rem;
  color: #64748b;
}

.auto-flow-card em,
.auto-script-list em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.auto-flow-card em.running { background: #dbeafe; color: #1d4ed8; }
.auto-flow-card em.idle { background: #ecfdf5; color: #047857; }
.auto-script-list em { background: #e0f2fe; color: #0369a1; }

.auto-task-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.auto-task-actions button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.72rem;
  cursor: pointer;
}

.auto-task-actions button:first-child {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  border: 0;
  color: #fff;
  font-weight: 700;
}

.auto-log { max-height: 220px; overflow: auto; }

.browser-body .screen {
  border-radius: 0;
}

@media (max-width: 900px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
  .case-body,
  .about,
  .contact,
  .process {
    grid-template-columns: 1fr;
  }
  .process::before { display: none; }
  .contact { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-promises { margin-top: 0; }
  .device-stage { border-right: 0; border-bottom: 1px solid var(--line); }
  .desk { grid-template-columns: 1fr; }
  .desk aside { display: none; }
}

@media (max-width: 640px) {
  .service-grid { grid-template-columns: 1fr; }
  .type-options { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: calc(var(--header) + 8px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 12px 14px;
    border-radius: 12px;
    text-align: left;
  }
  .nav-cta {
    text-align: center !important;
    margin-left: 0;
  }
  .case-tabs button {
    flex: 1 1 auto;
    text-align: center;
    border-bottom: 0;
  }
  .site-footer .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}
