/* ==========================================================================
   XPaco / 小趴菜 临时品牌官网样式
   色彩 Token 来自 XPaco_Color_Tokens.css（品牌资产 v1.0，APPROVED_FROZEN）
   ========================================================================== */

:root {
  --xpaco-growth-green: #7ED957;
  --xpaco-support-green: #22C55E;
  --xpaco-mist-green: #E8F9E9;
  --xpaco-ink: #1F2937;
  --xpaco-support-gray: #9CA3AF;
  --xpaco-white: #FFFFFF;

  --bg: var(--xpaco-white);
  --text: var(--xpaco-ink);
  --text-soft: #4B5563;
  --border-soft: #E5E7EB;
  --radius-card: 28px;
  --radius-btn: 999px;
  --container: 1200px;
  --section-pad: 112px;
  --header-h: 72px;
}

/* ---------- 基础 ---------- */

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC",
    "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 56px;
}

.section { padding: var(--section-pad) 0; }
.section-mist { background: var(--xpaco-mist-green); }

h1, h2, h3 { line-height: 1.3; margin: 0 0 16px; }
h1 { font-size: 44px; font-weight: 700; letter-spacing: 0.01em; }
h2 { font-size: 34px; font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; }

p { margin: 0 0 12px; }

a { color: var(--xpaco-support-green); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--xpaco-support-green);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--xpaco-white);
  color: var(--text);
  padding: 10px 18px;
  z-index: 200;
  border-radius: 0 0 12px 0;
  box-shadow: 0 4px 16px rgba(31, 41, 55, 0.12);
}
.skip-link:focus { left: 0; }

/* ---------- 顶部导航 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(31, 41, 55, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: 118px; }
.brand:hover { text-decoration: none; }

.site-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  white-space: nowrap;
}
.site-nav a {
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 500;
  padding: 6px 2px;
}
.site-nav a:hover { color: var(--xpaco-support-green); text-decoration: none; }

.status-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--xpaco-mist-green);
  color: #15803D;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: var(--radius-btn);
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--xpaco-growth-green);
}

/* ---------- Hero ---------- */

.hero {
  overflow: hidden;
  background:
    radial-gradient(720px 420px at 88% 12%, rgba(232, 249, 233, 0.9), transparent 70%),
    radial-gradient(560px 380px at 4% 90%, rgba(232, 249, 233, 0.75), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 48px;
  padding-top: 88px;
  padding-bottom: 96px;
}

.eyebrow-tag {
  display: inline-block;
  background: var(--xpaco-mist-green);
  color: #15803D;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-btn);
  margin-bottom: 22px;
}

.hero-copy h1 { margin-bottom: 22px; }

.hero-desc {
  font-size: 17px;
  color: var(--text-soft);
  max-width: 34em;
  margin-bottom: 32px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 36px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  padding: 13px 32px;
  border-radius: var(--radius-btn);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--xpaco-support-green);
  color: var(--xpaco-white);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.28);
}
.btn-primary:hover { background: #16A34A; box-shadow: 0 10px 24px rgba(34, 197, 94, 0.34); }

.btn-secondary {
  background: var(--xpaco-white);
  color: var(--text);
  border: 1.5px solid var(--border-soft);
}
.btn-secondary:hover { border-color: var(--xpaco-growth-green); color: #15803D; }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hero-tags li {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  background: var(--xpaco-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-btn);
  padding: 5px 14px;
}

.hero-visual { display: flex; justify-content: center; }
.hero-visual img { width: min(100%, 480px); }

/* ---------- 章节通用 ---------- */

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }

.section-eyebrow {
  color: var(--xpaco-support-green);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.section-desc { font-size: 16.5px; color: var(--text-soft); }

.preview-note {
  display: inline-block;
  margin-top: 20px;
  font-size: 13.5px;
  color: #15803D;
  background: var(--xpaco-mist-green);
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: var(--radius-btn);
  padding: 7px 18px;
}

/* ---------- 品牌理念 ---------- */

.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.keyword-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}
.keyword-tags li {
  background: var(--xpaco-white);
  color: #15803D;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--radius-btn);
  border: 1px solid rgba(34, 197, 94, 0.28);
}

.mockup-figure { margin: 0; }
.mockup-figure img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 24px 56px rgba(31, 41, 55, 0.14);
}
.mockup-figure figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--xpaco-support-gray);
}

/* ---------- 产品能力 ---------- */

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

.feature-card {
  background: var(--xpaco-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(31, 41, 55, 0.09);
  border-color: rgba(34, 197, 94, 0.35);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--xpaco-mist-green);
  border-radius: 16px;
  color: var(--xpaco-support-green);
  margin-bottom: 20px;
}
.feature-icon svg { width: 30px; height: 30px; }

.feature-sub { color: var(--xpaco-support-green); font-size: 14px; font-weight: 600; margin: -8px 0 10px; }
.feature-card p:last-child { color: var(--text-soft); font-size: 15px; margin: 0; }

/* ---------- 工作方式 ---------- */

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.workflow-steps li {
  position: relative;
  background: var(--xpaco-white);
  border-radius: 24px;
  padding: 28px 22px;
  border: 1px solid rgba(34, 197, 94, 0.16);
}
.workflow-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -16px;
  width: 12px;
  height: 12px;
  border-top: 3px solid var(--xpaco-growth-green);
  border-right: 3px solid var(--xpaco-growth-green);
  transform: translateY(-50%) rotate(45deg);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--xpaco-support-green);
  color: var(--xpaco-white);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.workflow-steps h3 { font-size: 17px; margin-bottom: 8px; }
.workflow-steps p { font-size: 14px; color: var(--text-soft); margin: 0; }

/* ---------- 四项品牌价值 ---------- */

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

.value-card {
  text-align: center;
  background: var(--xpaco-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 36px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(31, 41, 55, 0.09);
}

.value-card img { width: 56px; height: 56px; margin: 0 auto 16px; }
.value-sub { color: var(--xpaco-support-green); font-size: 14px; font-weight: 600; margin: -6px 0 10px; }
.value-card p:last-child { color: var(--text-soft); font-size: 14.5px; margin: 0; }

/* ---------- 吉祥物介绍 ---------- */

.mascot-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  background: var(--xpaco-mist-green);
  border-radius: 40px;
  padding: 56px 64px;
}

.mascot-visual { display: flex; justify-content: center; }
.mascot-visual img { width: min(100%, 340px); }

.mascot-slogan {
  margin-top: 20px;
  font-size: 19px;
  font-weight: 700;
  color: #15803D;
}

/* ---------- 关于我们 ---------- */

.about-inner { max-width: 760px; text-align: center; }
.about-inner h2 { margin-bottom: 20px; }

.status-list {
  list-style: none;
  margin: 36px auto 0;
  padding: 0;
  max-width: 460px;
  text-align: left;
}
.status-list li {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 22px;
  background: var(--xpaco-white);
  border-radius: 16px;
  border: 1px solid rgba(34, 197, 94, 0.16);
}
.status-list li + li { margin-top: 10px; }
.status-list li span:first-child { font-weight: 600; }
.status-list li span:last-child { color: var(--text-soft); }

/* ---------- 收尾 ---------- */

.ending { text-align: center; padding-top: 96px; }
.ending .btn { margin-top: 12px; }

/* ---------- 页脚 ---------- */

.site-footer {
  background: var(--xpaco-white);
  border-top: 1px solid var(--border-soft);
  padding: 48px 0 40px;
}

.footer-inner { text-align: center; }

.footer-brand img { margin: 0 auto 12px; width: 100px; }
.footer-brand p { margin: 0; font-weight: 600; }
.footer-slogan { color: var(--text-soft) !important; font-weight: 400 !important; font-size: 14px; }

.footer-filing { margin-top: 28px; font-size: 13.5px; color: var(--xpaco-support-gray); }
.footer-filing p { margin: 0 0 6px; }
.icp-line a { color: var(--xpaco-support-gray); }
.icp-line a:hover { color: var(--xpaco-support-green); }

/* ---------- 轻量动效（尊重系统减少动态设置） ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed { opacity: 1; transform: none; }

@keyframes mascot-breathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.mascot-float { animation: mascot-breathe 4.5s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .mascot-float { animation: none; }
  .btn, .feature-card, .value-card { transition: none; }
}

/* 无 JS 时保证内容可见 */
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */

@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow-steps { grid-template-columns: repeat(2, 1fr); }
  .workflow-steps li:nth-child(-n+4)::after { display: none; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 64px; }
  .hero-visual { order: 2; }
  .hero-visual img { width: min(100%, 380px); }
  .vision-grid { grid-template-columns: 1fr; }
  .mascot-panel { grid-template-columns: 1fr; padding: 44px 36px; text-align: center; }
  .keyword-tags, .hero-actions { justify-content: center; }
}

@media (max-width: 720px) {
  :root { --section-pad: 72px; --header-h: 64px; }
  .container { padding: 0 22px; }

  h1 { font-size: 32px; }
  h2 { font-size: 26px; }

  .site-header .container {
    flex-wrap: wrap;
    height: auto;
    padding-top: 12px;
    padding-bottom: 10px;
    gap: 10px;
  }
  .site-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 20px;
    padding-bottom: 2px;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .status-pill { margin-left: auto; font-size: 12px; padding: 6px 12px; }
  .brand img { width: 100px; }

  .feature-grid, .value-grid { grid-template-columns: 1fr; }

  .workflow-steps { grid-template-columns: 1fr; }
  .workflow-steps li { padding: 22px 20px; padding-left: 24px; }
  .workflow-steps li::after { display: none !important; }

  .hero-actions .btn { width: 100%; }
  .ending { padding-top: 72px; }
  .mascot-panel { border-radius: 28px; }
}
