/* ============================================================
   文件：assets/css/site.css
   项目：攒喜官网（单页）
   职责：站点自定义样式。Bootstrap 负责栅格与基础组件，本文件只做
         品牌化视觉（配色、字体、圆角、阴影、手机样机、动效）。
   说明：
     1. 全部颜色通过 CSS 变量定义，业务样式不出现硬编码色值。
     2. 版式按适老化处理：正文 17px、按钮高度 48px 以上、行高 1.75。
     3. 断点沿用 Bootstrap：≥992px 桌面，<992px 平板，<768px 手机。
   ============================================================ */

/* ---------- 1. 设计变量 ---------- */
:root {
  /* 品牌主色：暖橙，取「夕阳与煮蛋」的意象 */
  --brand: #f2681c;
  --brand-600: #dc570e;
  --brand-700: #b84608;
  --brand-100: #ffe6d5;
  --brand-50: #fff6ee;

  /* 辅助色：青绿，用于「录音 / 问卷」等次级标签 */
  --teal: #2f9e8f;
  --teal-50: #e8f6f3;
  --blue: #3f7fd6;
  --blue-50: #ecf2fc;

  /* 中性色 */
  --ink: #2a2018;
  --ink-soft: #6f6154;
  --ink-faint: #9a8b7c;
  --line: #efe2d3;
  --cream: #fdf8f2;
  --white: #ffffff;

  /* 圆角 */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;

  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(70, 45, 20, 0.06);
  --shadow-md: 0 12px 32px rgba(70, 45, 20, 0.09);
  --shadow-lg: 0 28px 64px rgba(70, 45, 20, 0.16);

  /* 字体 */
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* 覆盖 Bootstrap 主色，保证按钮 / 链接 / 手风琴等组件与品牌一致 */
  --bs-primary: #f2681c;
  --bs-primary-rgb: 242, 104, 28;
  --bs-body-color: #2a2018;
  --bs-body-font-family: var(--font-sans);
  --bs-border-color: #efe2d3;
}

/* ---------- 2. 基础排版 ---------- */
* {
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  /* 锚点跳转时为固定导航留出空间 */
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

a {
  color: var(--brand-600);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-700);
}

::selection {
  background: var(--brand-100);
  color: var(--brand-700);
}

.text-brand {
  color: var(--brand);
}

.text-ink {
  color: var(--ink);
}

/* 通用按钮：胶囊形，最小高度 48px 便于点击 */
.btn {
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background-color 0.18s ease, color 0.18s ease;
}

.btn-lg {
  padding: 0.8rem 1.6rem;
  font-size: 1.05rem;
}

.btn-brand {
  background: var(--brand);
  border: 1px solid var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(242, 104, 28, 0.28);
}

.btn-brand:hover,
.btn-brand:focus {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(242, 104, 28, 0.34);
}

.btn-outline-ink {
  border: 1.5px solid #d9c9b8;
  color: var(--ink);
  background: transparent;
}

.btn-outline-ink:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- 3. 顶部导航 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease,
    background-color 0.25s ease;
}

/* 滚动后加深背景与阴影，与内容区分离 */
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(70, 45, 20, 0.06);
}

.site-header .navbar {
  min-height: 76px;
}

.brand-logo {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(242, 104, 28, 0.22);
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.brand-text small {
  font-size: 0.7rem;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
}

.site-header .nav-link {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: color 0.2s ease;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: var(--brand);
}

/* 当前区块高亮：文字下方短横线 */
.site-header .nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: var(--brand);
  transform: translateX(-50%);
}

/* ---------- 4. 首屏 ---------- */
.hero {
  position: relative;
  padding: 136px 0 72px;
  background: linear-gradient(180deg, #fff4e8 0%, #fffaf5 55%, #ffffff 100%);
  overflow: hidden;
}

/* 背景光斑：两团模糊圆，增加层次 */
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  pointer-events: none;
}

.hero__glow--a {
  width: 520px;
  height: 520px;
  top: -160px;
  right: -80px;
  background: radial-gradient(circle, #ffd0a8 0%, rgba(255, 208, 168, 0) 70%);
}

.hero__glow--b {
  width: 420px;
  height: 420px;
  bottom: -180px;
  left: -120px;
  background: radial-gradient(circle, #ffe6c9 0%, rgba(255, 230, 201, 0) 70%);
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-700);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero__title {
  font-size: clamp(2.7rem, 5.6vw, 4.3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0.35rem 0 1.1rem;
}

.hero__lead {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: 0;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.hero__trust i {
  color: var(--brand);
  margin-right: 0.35rem;
}

/* ---------- 5. 手机样机 ---------- */
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

.phone {
  position: relative;
  width: 322px;
  height: 636px;
  padding: 11px;
  border-radius: 46px;
  background: linear-gradient(160deg, #3b3129 0%, #171310 60%, #2c241d 100%);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

/* 侧边按键 */
.phone::before,
.phone::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 3px;
  background: #3b3129;
}

.phone::before {
  left: -3px;
  top: 150px;
  height: 58px;
}

.phone::after {
  right: -3px;
  top: 176px;
  height: 88px;
}

.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 38px;
  background: #fffaf5;
  overflow: hidden;
}

/* 灵动岛 */
.phone__island {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  border-radius: 999px;
  background: #14100d;
  z-index: 5;
}

/* --- 样机内部 UI --- */
.ui {
  position: relative;
  padding: 12px 14px 0;
  font-size: 11px;
  color: var(--ink);
  height: 100%;
}

.ui__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 4px 10px;
}

.ui__status-icons {
  display: flex;
  gap: 4px;
  font-size: 11px;
}

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

.ui__hello {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.ui__loc {
  font-size: 10px;
  color: var(--ink-faint);
  margin-top: 2px;
}

.ui__bell {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  font-size: 15px;
}

.ui__dot {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #e34b2f;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 1.5px solid #fffaf5;
}

/* 积分卡 */
.ui__pointcard {
  border-radius: 18px;
  padding: 12px 14px 10px;
  color: #fff;
  background: linear-gradient(135deg, #ff9349 0%, #f2681c 52%, #e0550c 100%);
  box-shadow: 0 10px 22px rgba(226, 92, 16, 0.3);
}

.ui__pointcard-label {
  font-size: 10px;
  opacity: 0.9;
}

.ui__pointcard-num {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.ui__pointcard-sub {
  font-size: 8.5px;
  opacity: 0.92;
  margin-top: 1px;
}

.ui__pointcard-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.26);
  font-size: 8.5px;
  opacity: 0.95;
  white-space: nowrap;
}

.ui__pointcard-foot strong {
  font-size: 11.5px;
  font-weight: 800;
  margin-right: 1px;
}

/* 宫格 */
.ui__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px 4px;
  margin: 10px 0 6px;
}

.ui__grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  color: var(--ink-soft);
}

.ui__grid-item i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  color: var(--brand);
  font-size: 16px;
  box-shadow: var(--shadow-sm);
}

/* 玩法状态条 */
.ui__playbar {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.ui__playbar-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 9px;
  background: #fff;
  font-size: 9.5px;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}

.ui__playbar-item i {
  color: #3aa981;
}

.ui__playbar-item--hot {
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 700;
}

.ui__playbar-item--hot i {
  color: var(--brand);
}

.ui__section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  font-weight: 800;
  margin-bottom: 6px;
}

.ui__more {
  font-size: 9.5px;
  font-weight: 500;
  color: var(--ink-faint);
}

/* 任务条目 */
.ui__task {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 14px;
  background: #fff;
  margin-bottom: 6px;
  box-shadow: var(--shadow-sm);
}

.ui__task-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--brand-50);
  color: var(--brand);
  font-size: 15px;
}

.ui__task-icon--blue {
  background: var(--blue-50);
  color: var(--blue);
}

.ui__task-main {
  flex: 1;
  min-width: 0;
}

.ui__task-title {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ui__task-meta {
  font-size: 8.5px;
  color: var(--ink-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ui__task-reward {
  font-size: 13px;
  font-weight: 800;
  color: var(--brand);
}

/* 底部标签栏 */
.ui__tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 8px 6px 14px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #f6ece1;
  backdrop-filter: blur(8px);
}

.ui__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 8.5px;
  color: var(--ink-faint);
}

.ui__tab i {
  font-size: 16px;
}

.ui__tab--active {
  color: var(--brand);
  font-weight: 700;
}

/* 浮动信息卡 */
.phone-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-md);
  animation: floaty 5s ease-in-out infinite;
}

.phone-float i {
  font-size: 22px;
}

.phone-float div {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.phone-float strong {
  font-size: 0.95rem;
  font-weight: 800;
}

.phone-float small {
  font-size: 0.72rem;
  color: var(--ink-faint);
}

.phone-float--point {
  top: 88px;
  left: calc(50% - 300px);
}

.phone-float--point i {
  color: #e8a01d;
}

.phone-float--pass {
  bottom: 140px;
  right: calc(50% - 300px);
  animation-delay: 1.4s;
}

.phone-float--pass i {
  color: #3aa981;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- 6. 通用区块 ---------- */
.section {
  padding: 96px 0;
  position: relative;
}

.section--cream {
  background: var(--cream);
}

.section__head {
  max-width: 720px;
  margin: 0 auto 3.4rem;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--brand);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.section__title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin-bottom: 0.9rem;
}

.section__desc {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink-soft);
}

/* ---------- 7. 核心能力卡片 ---------- */
.feature-card {
  height: 100%;
  padding: 30px 26px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-100);
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #fff1e4, #ffe1cb);
  color: var(--brand);
  font-size: 25px;
  margin-bottom: 18px;
}

.feature-card__title {
  font-size: 1.22rem;
  margin-bottom: 0.55rem;
}

.feature-card__desc {
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- 8. 功能详解（左右交替） ---------- */
.detail-row {
  align-items: center;
  margin-bottom: 5.5rem;
}

.detail-row:last-child {
  margin-bottom: 0;
}

.detail-row__media {
  position: relative;
}

.detail-row__img {
  width: 100%;
  height: auto;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  display: block;
}

/* 图片上的小标签：标出对应菜单 */
.detail-row__chip {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.detail-row__chip i {
  color: var(--brand);
}

.detail-row__tag {
  display: inline-block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-50);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  margin-bottom: 0.9rem;
}

.detail-row__title {
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.detail-row__desc {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 0.8rem;
}

.detail-row__points {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.detail-row__points li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.6rem;
  font-size: 0.98rem;
  color: var(--ink);
}

.detail-row__points i {
  position: absolute;
  left: 0;
  top: 0.18rem;
  color: var(--brand);
  font-size: 1.05rem;
}

.detail-row__link {
  display: inline-flex;
  align-items: center;
  margin-top: 1.4rem;
  font-weight: 700;
  font-size: 0.98rem;
}

/* ---------- 9. 玩法卡片 ---------- */
.play-card {
  height: 100%;
  padding: 22px 20px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.22s ease, box-shadow 0.22s ease,
    border-color 0.22s ease;
  position: relative;
}

.play-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-100);
}

.play-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 21px;
  color: var(--brand);
  background: var(--brand-50);
  margin-bottom: 14px;
}

.play-card__name {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.play-card__badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  letter-spacing: 0.03em;
}

.play-card__desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}

.plays__note {
  margin: 2.2rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-faint);
  text-align: center;
}

/* ---------- 10. 界面一览（迷你手机） ---------- */
.screens {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: start;
}

.screen-card {
  text-align: center;
}

.mini-phone {
  width: 100%;
  max-width: 268px;
  margin: 0 auto 20px;
  padding: 9px;
  border-radius: 34px;
  background: linear-gradient(160deg, #3b3129, #171310);
  box-shadow: var(--shadow-md);
}

.mini-phone__screen {
  border-radius: 26px;
  background: #fffaf5;
  padding: 14px 12px;
  height: 458px;
  overflow: hidden;
  text-align: left;
  font-size: 10px;
}

.mini-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}

.mini-top i {
  font-size: 13px;
  color: var(--ink-soft);
}

.mini-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 12px;
  font-size: 9.5px;
  color: var(--ink-soft);
}

.mini-tabs span {
  padding: 3px 9px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.mini-tabs .is-active {
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.mini-task {
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}

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

.mini-chip {
  font-size: 8.5px;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 700;
}

.mini-chip--blue {
  background: var(--blue-50);
  color: var(--blue);
}

.mini-chip--green {
  background: var(--teal-50);
  color: var(--teal);
}

.mini-reward {
  font-size: 11px;
  font-weight: 800;
  color: var(--brand);
}

.mini-task__title {
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.4;
}

.mini-task__meta {
  font-size: 8.5px;
  color: var(--ink-faint);
  margin-top: 2px;
}

/* 资产页 */
.mini-space {
  background: linear-gradient(135deg, #fff1e4, #ffe4cf);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.mini-space__label {
  font-size: 9px;
  color: var(--ink-soft);
}

.mini-space__num {
  font-size: 15px;
  font-weight: 800;
  color: var(--brand-700);
}

.mini-space__bar {
  height: 6px;
  border-radius: 3px;
  background: #fff;
  margin: 6px 0 4px;
  overflow: hidden;
}

.mini-space__bar span {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--brand);
}

.mini-space__sub {
  font-size: 8.5px;
  color: var(--ink-soft);
}

.mini-asset {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 6px;
  font-size: 10px;
  box-shadow: var(--shadow-sm);
}

.mini-asset i {
  color: var(--brand);
  font-size: 13px;
}

.mini-asset span {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-asset em {
  font-style: normal;
  font-size: 8px;
  padding: 1px 6px;
  border-radius: 5px;
  background: #f3f0ec;
  color: var(--ink-faint);
}

/* 商城页 */
.mini-points {
  font-size: 9.5px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.mini-points strong {
  font-size: 15px;
  color: var(--brand);
  margin-left: 4px;
}

.mini-goods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.mini-good {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  padding-bottom: 7px;
}

.mini-good__img {
  height: 62px;
  background: #f5efe8;
  position: relative;
}

/* 商品占位图：用渐变与色块模拟，避免依赖外部图片 */
.mini-good__img::after {
  content: "";
  position: absolute;
  inset: 14px 22px;
  border-radius: 6px;
  background: linear-gradient(140deg, #e8dccd, #d9c8b3);
}

.mini-good__img--rice::after {
  background: linear-gradient(140deg, #f6ecd9, #e6d3b1);
  border-radius: 8px 8px 4px 4px;
}

.mini-good__img--oil::after {
  background: linear-gradient(140deg, #f2e2b8, #d8b45f);
  border-radius: 6px 6px 8px 8px;
}

.mini-good__img--cup::after {
  background: linear-gradient(140deg, #cfe3e8, #8fb9c4);
  border-radius: 6px;
}

.mini-good__img--frame::after {
  background: linear-gradient(140deg, #ffd9c0, #f28b5c);
  border-radius: 50%;
}

.mini-good__img--towel::after {
  background: linear-gradient(140deg, #e2edf3, #a9c2cf);
  border-radius: 4px;
}

.mini-good__img--card::after {
  background: linear-gradient(140deg, #e0d3f5, #a98cd8);
  border-radius: 5px;
}

.mini-good__name {
  font-size: 9px;
  line-height: 1.4;
  padding: 5px 7px 2px;
  color: var(--ink);
  height: 30px;
  overflow: hidden;
}

.mini-good__price {
  font-size: 9.5px;
  font-weight: 800;
  color: var(--brand);
  padding: 0 7px;
}

.screen-card__title {
  font-size: 1.12rem;
  margin-bottom: 0.35rem;
}

.screen-card__desc {
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 250px;
  margin: 0 auto;
}

/* ---------- 11. 适用人群 ---------- */
.persona-card {
  height: 100%;
  padding: 32px 28px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.persona-card__icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--brand-50);
  color: var(--brand);
  font-size: 24px;
  margin-bottom: 18px;
}

.persona-card__title {
  font-size: 1.18rem;
  margin-bottom: 0.5rem;
}

.persona-card__desc {
  font-size: 0.96rem;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}

.persona-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.persona-card__tags span {
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f7f2ec;
  color: var(--ink-soft);
}

/* ---------- 12. 用户评价 ---------- */
.voice-card {
  height: 100%;
  padding: 30px 26px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.voice-card__quote {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--ink);
  margin-bottom: 1.6rem;
  flex: 1;
}

.voice-card__footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.voice-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #ffd7ba, #f9a774);
  color: #7a3510;
  font-weight: 800;
  font-size: 1.1rem;
  flex: 0 0 44px;
}

.voice-card__name {
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.3;
}

.voice-card__meta {
  font-size: 0.82rem;
  color: var(--ink-faint);
}

/* ---------- 13. 安全承诺 ---------- */
.security-item {
  height: 100%;
  padding: 24px 22px;
  border-radius: var(--r-md);
  background: var(--cream);
  border: 1px solid var(--line);
}

.security-item i {
  font-size: 22px;
  color: var(--brand);
  margin-bottom: 10px;
  display: block;
}

.security-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.security-item p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- 14. 常见问题 ---------- */
.faq-accordion .accordion-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md) !important;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-accordion .accordion-button {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  padding: 20px 22px;
  box-shadow: none !important;
}

.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--brand-700);
  background: var(--brand-50);
}

.faq-accordion .accordion-button::after {
  background-size: 1rem;
}

.faq-accordion .accordion-body {
  font-size: 0.98rem;
  line-height: 1.9;
  color: var(--ink-soft);
  padding: 4px 22px 22px;
}

.faq-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 1.6rem;
}

.faq-contact__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.faq-contact__item:hover {
  border-color: var(--brand);
  transform: translateX(4px);
  color: var(--ink);
}

.faq-contact__item i {
  font-size: 20px;
  color: var(--brand);
}

.faq-contact__item span {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.faq-contact__item small {
  font-size: 0.78rem;
  color: var(--ink-faint);
}

.faq-contact__item strong {
  font-size: 1.02rem;
  font-weight: 700;
}

/* ---------- 15. 下载区 ---------- */
.download {
  padding-bottom: 110px;
}

.download__card {
  position: relative;
  padding: 64px 56px;
  border-radius: var(--r-xl);
  background: linear-gradient(130deg, #f77f33 0%, #ef5f11 55%, #d94c06 100%);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(214, 76, 6, 0.3);
}

/* 卡片右侧的柔光装饰 */
.download__card::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -140px;
  top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 68%);
  pointer-events: none;
}

.download__title {
  color: #fff;
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  line-height: 1.25;
  margin-bottom: 0.8rem;
}

.download__desc {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  line-height: 1.85;
  max-width: 34em;
  margin: 0;
}

.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 24px;
  border-radius: 14px;
  background: #14100d;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.appstore-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
}

.appstore-btn i {
  font-size: 30px;
}

.appstore-btn span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.appstore-btn small {
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  opacity: 0.8;
}

.appstore-btn strong {
  font-size: 1.22rem;
  font-weight: 700;
}

.download__qr {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
}

.download__qr small {
  font-size: 0.74rem;
  opacity: 0.8;
}

.qr-placeholder {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 34px;
}

.download__tip {
  margin: 1.6rem 0 0;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.88);
}

.download__tip--muted {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.download__icon {
  border-radius: 40px;
  box-shadow: 0 24px 50px rgba(120, 40, 0, 0.35);
  position: relative;
  z-index: 1;
  max-width: 100%;
  height: auto;
}

/* ---------- 16. 页脚 ---------- */
.site-footer {
  background: #241b14;
  color: rgba(255, 255, 255, 0.72);
  padding: 72px 0 36px;
  font-size: 0.92rem;
}

.site-footer .brand-text strong {
  color: #fff;
}

.site-footer .brand-text small {
  color: rgba(255, 255, 255, 0.45);
}

.footer-desc {
  font-size: 0.92rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
  max-width: 26em;
}

.footer-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-badges span {
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.75);
}

.footer-title {
  font-size: 0.98rem;
  color: #fff;
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--brand-100);
}

.footer-contact li {
  display: flex;
  gap: 10px;
  margin-bottom: 0.7rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  line-height: 1.65;
}

.footer-contact i {
  color: var(--brand);
  font-size: 1rem;
  margin-top: 0.15rem;
}

.footer-hr {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2.6rem 0 1.4rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
}

.footer-legal a:hover {
  color: #fff;
}

.footer-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.42);
}

.footer-copy a {
  color: rgba(255, 255, 255, 0.42);
}

.footer-copy a:hover {
  color: #fff;
}

.footer-note {
  margin: 1.6rem 0 0;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.7;
}

/* ---------- 17. 回到顶部 ---------- */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--brand);
  color: #fff;
  font-size: 20px;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(242, 104, 28, 0.36);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 1020;
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  background: var(--brand-600);
}

/* ---------- 18. 弹层（法务文本） ---------- */
.modal-content {
  border: none;
  border-radius: var(--r-lg);
  overflow: hidden;
}

.modal-header {
  padding: 22px 26px;
  border-bottom-color: var(--line);
}

.modal-body {
  padding: 8px 26px 26px;
  font-size: 0.96rem;
  line-height: 1.9;
  color: var(--ink-soft);
}

.modal-body h3 {
  font-size: 1.05rem;
  margin: 1.4rem 0 0.6rem;
  color: var(--ink);
}

.modal-body h3:first-child {
  margin-top: 0.6rem;
}

.modal-body ul {
  padding-left: 1.2rem;
}

.modal-body li {
  margin-bottom: 0.35rem;
}

.modal-footer {
  border-top-color: var(--line);
  padding: 16px 26px;
}

/* ---------- 19. 滚动入场动画 ----------
   渐进增强：默认状态下内容完全可见（无 JS、爬虫抓取、动画异常时都不会空白）；
   仅当 <html> 带 js-anim 类（脚本正常执行）时才把未入场元素设为隐藏。 */
.reveal {
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

html.js-anim .reveal {
  opacity: 0;
  transform: translateY(26px);
}

html.js-anim .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* 尊重系统的「减少动态效果」设置 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  html.js-anim .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .phone-float {
    animation: none;
  }
}

/* ---------- 20. 响应式 ---------- */

/* 修正：Bootstrap 的 g-5（48px 槽宽）在小屏会超出 container 的 12px 内边距，
   造成约 12px 的横向溢出。小屏下把槽宽降一档即可。 */
@media (max-width: 575.98px) {
  .g-5,
  .gx-5 {
    --bs-gutter-x: 1.5rem;
  }
  .g-5,
  .gy-5 {
    --bs-gutter-y: 1.5rem;
  }
}

@media (max-width: 1199.98px) {
  .phone-float--point {
    left: calc(50% - 236px);
  }
  .phone-float--pass {
    right: calc(50% - 240px);
  }
}

@media (max-width: 991.98px) {
  .hero {
    padding: 124px 0 64px;
    text-align: center;
  }

  .hero__lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__trust {
    justify-content: center;
  }

  .phone-stage {
    margin-top: 2.5rem;
  }

  .section {
    padding: 72px 0;
  }

  .detail-row {
    margin-bottom: 4rem;
  }

  /* 移动端图文统一改为「图在上、文在下」，避免左右挤压 */
  .detail-row .detail-row__media {
    order: -1;
  }

  .screens {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 340px;
    margin: 0 auto;
  }

  .download__card {
    padding: 44px 30px;
    text-align: center;
  }

  .download__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .download__card .d-flex {
    justify-content: center;
  }

  .download__tip {
    text-align: center;
  }

  .site-header .navbar-collapse {
    border-top: 1px solid var(--line);
    margin-top: 8px;
    padding-top: 8px;
  }

  .site-header .nav-link.active::after {
    display: none;
  }
}

@media (max-width: 575.98px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding-top: 108px;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .phone {
    width: 290px;
    height: 600px;
    border-radius: 42px;
  }

  .phone__screen {
    border-radius: 33px;
  }

  .phone-float--point,
  .phone-float--pass {
    /* 手机屏幕较窄时浮动卡会压住样机内容，直接隐藏 */
    display: none;
  }

  .hero__trust {
    gap: 0.9rem;
    font-size: 0.84rem;
  }

  .download__icon {
    width: 140px;
    height: 140px;
  }

  .back-top {
    right: 16px;
    bottom: 18px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
