/* ==========================================================================
   v3 · 扁平 + 椭圆细节层
   在 site.css 之后加载：统一胶囊按钮、胶囊标签、圆形序号、椭圆背景与
   20px 卡片圆角。只覆盖外观，不改信息架构。
   ========================================================================== */

:root {
  --paper: #f7f7f4;
  --paper-2: #f0f0ea;
  --surface-2: #fbfbf8;
  --ink: #0b1118;
  --ink-2: #25303f;
  --muted: #5b6675;
  --line: #e3e3dc;
  --line-strong: #c9ccc2;
  --brand-soft: #e9efff;
  --blue-tint: #edf2ff;
  --mint: #c9f2df;
  --mint-soft: #e6f8f0;
  --mint-text: #0b6b4f;
  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 28px;
}

body {
  background: var(--paper);
}

/* ------------------------------ 导航胶囊 ------------------------------ */

.nav__link {
  padding: 8px 16px;
  border-radius: 999px;
}

.nav__link::after {
  display: none;
}

.nav__link:hover,
.nav__link.is-active {
  background: var(--blue-tint);
  color: var(--brand-deep);
}

.nav__link.is-active {
  font-weight: 600;
}

.nav__login {
  padding: 8px 14px;
  border-radius: 999px;
}

.nav__login:hover {
  background: var(--surface);
}

.mobile-nav {
  background: var(--paper);
}

.mobile-nav__link {
  padding: 12px 14px;
  border-bottom: 0;
  border-radius: 12px;
}

.mobile-nav__link:hover {
  background: var(--surface);
}

/* ------------------------------ 胶囊标签 / 序号 ------------------------------ */

.eyebrow {
  margin-bottom: 22px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.eyebrow__mark {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.kicker {
  margin-bottom: 18px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  gap: 8px;
}

.kicker::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.tag {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface);
}

.rail-no {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 11px;
  color: var(--brand);
}

.rail-label {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* ------------------------------ 按钮胶囊 ------------------------------ */

.btn {
  padding: 0 24px;
  border-radius: 999px;
}

.btn--sm {
  padding: 0 16px;
}

.btn--primary {
  background: var(--brand);
}

.btn--ghost {
  background: var(--surface);
}

.btn--light {
  background: #fff;
}

/* ------------------------------ Hero 椭圆 ------------------------------ */

.hero__visual {
  position: relative;
}

.hero__visual::before,
.hero__visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero__visual::before {
  width: 560px;
  height: 560px;
  top: -54px;
  right: -96px;
  background: var(--blue-tint);
  z-index: 0;
}

.hero__visual::after {
  width: 420px;
  height: 420px;
  top: 8px;
  right: -10px;
  border: 1px solid var(--line);
  z-index: 0;
}

.label-stage {
  position: relative;
  z-index: 1;
}

.label-stage__live {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
}

/* ------------------------------ Hero 圆形数字 ------------------------------ */

.hero__facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 22px;
}

.hero__fact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 0;
  border: 0;
}

.hero__fact:not(:first-child) {
  padding-left: 0;
}

.hero__fact-n {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.hero__fact-l {
  margin-top: 0;
}

/* ------------------------------ 功能模块卡 ------------------------------ */

.tool-card {
  min-height: 216px;
  padding: 24px;
  border-radius: var(--radius-m);
}

.tool-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.tool-card__badge {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
}

.tool-card--featured .tool-card__badge {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
}

/* ------------------------------ 卡片圆角 ------------------------------ */

.overview-card,
.scenario,
.price,
.product-card,
.about-side,
.report-preview,
.enterprise-band,
.product-hero__card {
  border-radius: var(--radius-m);
}

.price--featured {
  border-radius: var(--radius-m);
}

.price--featured::before {
  top: 14px;
  right: 14px;
  padding: 4px 10px;
  border-radius: 999px;
}

/* ------------------------------ 大色块里的椭圆 ------------------------------ */

.product-card--hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-m);
}

.product-card--hero::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -72px;
  bottom: -94px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  pointer-events: none;
}

.final-cta {
  position: relative;
  overflow: hidden;
}

.final-cta::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -140px;
  top: -220px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

/* ------------------------------ 输入 / 小细节 ------------------------------ */

.field input,
.field textarea {
  border-radius: 14px;
}

.app-search input {
  border-radius: 999px;
}

.resource-item {
  border-radius: var(--radius-m);
}

.report-preview__head {
  border-radius: var(--radius-m) var(--radius-m) 0 0;
}

@media (max-width: 1100px) {
  .hero__visual::before,
  .hero__visual::after {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero__facts {
    gap: 10px;
  }

  .hero__fact-n {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
}

/* ------------------------------ 登录胶囊分段 ------------------------------ */

.login-tabs {
  display: flex;
  gap: 4px;
  margin: 32px 0 24px;
  padding: 4px;
  border: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.login-tab {
  margin: 0;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
}

.login-tab.is-active {
  border: 0;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
}

.wechat-login,
.demo-note {
  border-radius: 14px;
}

/* ------------------------------ 深色区胶囊反色 ------------------------------ */

.product-section .kicker,
.login-visual .kicker {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
  color: #c8d2e2;
}

.product-section .kicker::before,
.login-visual .kicker::before {
  background: #8fb0ff;
}

.rail-no {
  font-size: 12px;
}

.rail-label {
  font-size: 12px;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 12px;
  color: var(--on-dark);
}

.footer-cta:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* 胶囊按钮内的圆形箭头 chip */
.btn__arrow {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin: 0 -6px 0 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
  line-height: 1;
  transition: transform 0.28s var(--ease), background 0.28s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(2px);
}

.btn--ghost .btn__arrow,
.btn--light .btn__arrow {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.btn--dark-ghost .btn__arrow {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn--light .btn__arrow {
  background: var(--brand-soft);
}

.btn--primary .btn__arrow {
  background: var(--brand-deep);
  color: #fff;
}

/* 首页首屏收紧：让标签示意更短，企业叙事先落在第二屏 */
.hero__grid {
  gap: clamp(28px, 4vw, 48px);
  padding-top: clamp(32px, 3.6vw, 52px);
  padding-bottom: clamp(32px, 4vw, 56px);
}

.hero__title {
  font-size: clamp(34px, 3.8vw, 52px);
}

.hero__sub {
  margin-top: 20px;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.75;
}

.hero__actions {
  margin-top: 26px;
}

.hero__note {
  margin-top: 20px;
}

.hero__facts {
  padding-top: 18px;
}

.label-stage {
  padding: 12px;
}

.label-stage__top {
  padding: 2px 2px 10px;
}

.label-canvas {
  padding: clamp(14px, 1.8vw, 22px);
}

.label-sheet {
  width: min(100%, 340px);
  padding: 18px 18px 14px;
}

.label-sheet__brand {
  font-size: 12px;
}

.label-sheet__name {
  margin: 6px 0 2px;
  font-size: 28px;
}

.label-sheet__variant {
  font-size: 12px;
}

.label-sheet__rule {
  height: 1.5px;
  margin: 10px 0;
}

.label-sheet__block {
  margin-bottom: 8px;
  padding: 6px;
}

.label-sheet__nutrition {
  margin-bottom: 8px;
  padding: 6px;
}

.label-sheet__nutrition th,
.label-sheet__nutrition td {
  padding: 2px 4px;
}

.label-sheet__foot {
  margin-top: 2px;
  font-size: 12px;
}

.label-sheet__barcode {
  height: 22px;
  margin-top: 8px;
  padding-top: 6px;
  background-size: 70% 16px;
}

@media (max-width: 820px) {
  .hero__grid {
    padding-top: 28px;
    padding-bottom: 32px;
  }
}

/* 首屏标签再收紧：去掉图例与页脚，保留 5 处标注 */
.label-stage {
  padding: 10px;
}

.label-stage__top {
  padding: 2px 2px 8px;
}

.label-canvas {
  padding: 14px;
}

.label-sheet {
  padding: 16px 16px 12px;
}

.label-sheet__brand {
  font-size: 12px;
}

.label-sheet__name {
  margin: 4px 0 2px;
  font-size: 24px;
}

.label-sheet__variant {
  font-size: 12px;
}

.label-sheet__rule {
  margin: 8px 0;
}

.label-sheet__block {
  margin-bottom: 6px;
  padding: 5px 6px;
}

.label-sheet__nutrition {
  margin-bottom: 6px;
  padding: 5px 6px;
}

.label-sheet__block p {
  font-size: 12px;
  line-height: 1.55;
}

@media (min-width: 1024px) {
  .hero {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 72px);
    min-height: calc(100svh - 72px);
  }

  .hero > .container {
    width: 100%;
  }
}

.label-sheet__meta {
  margin: 8px 0 2px;
  padding: 0 6px;
  font-size: 12px;
  line-height: 1.55;
  color: #3b382f;
}

/* 知食云第二屏收紧，让「按任务调用」在第三屏就能看到卡片 */
.product-section {
  padding: clamp(48px, 5.5vw, 64px) 0;
}

.product-grid {
  margin-top: 28px;
}

.product-card:not(.product-card--hero) {
  padding: 20px;
}

.product-card:not(.product-card--hero) .product-card__title {
  margin: 10px 0 6px;
  font-size: clamp(20px, 1.9vw, 26px);
}

.product-card:not(.product-card--hero) .product-card__desc {
  line-height: 1.7;
}

.product-card__foot {
  margin-top: 20px;
  padding-top: 14px;
}

/* 标签按红框范围截到营养成分表，不再向下延伸 */
.label-sheet {
  padding: 18px 18px 16px;
}

.label-sheet__name {
  font-size: 26px;
}

.label-sheet__block {
  margin-bottom: 8px;
  padding: 6px;
}

.label-sheet__nutrition {
  margin-bottom: 8px;
  padding: 6px;
}

.label-sheet__nutrition th,
.label-sheet__nutrition td {
  padding: 3px 4px;
}
