/* ==========================================================================
   GPT108 · Layout
   布局原语:.shell .section .section-head 等容器与排版基础,
   外加全局存在的几个层:背景渐变、顶部公告、桌面端顶栏。
   ========================================================================== */

/* ---------- 3. Background gradient ---------- */
.bg-deco {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Atelier 背景 — 暖纸底 + 松绿/真金多层极光,克制而有纵深 */
.bg-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70vw 52vh at 6% -8%,   rgba(15,107,86,0.14)  0%, transparent 60%),
    radial-gradient(58vw 46vh at 100% 4%,  rgba(201,138,43,0.12) 0%, transparent 58%),
    radial-gradient(64vw 56vh at 88% 104%, rgba(15,107,86,0.10)  0%, transparent 62%),
    radial-gradient(50vw 44vh at 20% 112%, rgba(201,138,43,0.07) 0%, transparent 60%),
    var(--bg-base);
}

/* 极淡基线网格,顶部清晰、向下淡出,印刷/制图质感 */
.bg-mesh::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20,28,24,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,28,24,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120vw 96vh at 50% -4%, #000 0%, transparent 72%);
          mask-image: radial-gradient(120vw 96vh at 50% -4%, #000 0%, transparent 72%);
  pointer-events: none;
}

/* 胶片颗粒 — 让暖纸有微妙的纸张质地 */
.bg-deco::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* ---------- 4. Layout primitives ---------- */
.shell {
  width: min(var(--shell), calc(100% - 48px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

main { position: relative; z-index: 1; }

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

.section-head {
  max-width: 720px;
  margin: 0 0 56px;
}

/* 黑色圆角小方块装数字 — 加上微妙渐变和侧边连接线 */
.section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--ink-1) 0%, #26302B 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  box-shadow:
    0 8px 20px -4px rgba(20, 28, 24, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  position: relative;
}

/* editorial 排版：数字方块旁边的英文小标签 + 一条短连接线 */
.section-num::after {
  content: attr(data-label);
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--ink-2);
  white-space: nowrap;
  text-transform: uppercase;
  padding-left: 24px;
  border-left: 1px solid var(--line-3);
}

.section-num::before {
  content: "";
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  width: 16px;
  height: 1px;
  background: var(--line-3);
  z-index: 1;
}

/* 各板块对应的英文小标签（不改 HTML 文案，用属性选择器注入） */
#plans   .section-num::after { content: "PRICING"; }
#reviews .section-num::after { content: "SOCIAL PROOF"; }
#flow    .section-num::after { content: "PROCESS"; }
#trust   .section-num::after { content: "TRUST & SAFETY"; }
#faq     .section-num::after { content: "FAQ"; }
#contact .section-num::after { content: "GET IN TOUCH"; }

/* 移动端把英文小标签隐掉，避免折行 */
@media (max-width: 480px) {
  .section-num::after,
  .section-num::before { display: none; }
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink-1);
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1rem;
  color: var(--ink-3);
  line-height: 1.65;
  max-width: 560px;
}

/* ---------- 5. Top note ---------- */
.topnote {
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid var(--line-1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.topnote-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  font-size: 0.85rem;
}

.topnote-dot {
  flex-shrink: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.topnote-label {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #10B981;
  padding: 2px 8px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.06);
}

.topnote p {
  color: var(--ink-2);
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 0;
}

/* ---------- 6. Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition:
    background 320ms ease,
    border-color 320ms ease,
    box-shadow 320ms ease,
    backdrop-filter 320ms ease;
}

/* 滚动到 hero 之外时，topbar 变得更"实"，加一点蓝色微光 */
.topbar.is-scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: rgba(20, 28, 24, 0.06);
  box-shadow:
    0 8px 28px -10px rgba(20, 28, 24, 0.10),
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 0 0 1px rgba(255, 255, 255, 0.4) inset;
}

.topbar.is-scrolled .topbar-inner {
  height: 60px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  transition: height 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: opacity 200ms ease;
}

.brand:hover { opacity: 0.7; }

.brand-mark {
  width: 38px; height: 38px;
  display: inline-flex;
  color: var(--blue-600);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--ink-1);
}

.brand-name em {
  font-style: normal;
  background: linear-gradient(90deg, #138A75 0%, #C2730E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 900;
  padding: 0 1px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  position: relative;
}

/* 当前激活项的"滑动指示器"小药丸 */
.nav-indicator {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(15, 107, 86, 0.10), rgba(201, 138, 43, 0.10));
  border: 1px solid rgba(15, 107, 86, 0.18);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 380ms cubic-bezier(0.22, 1, 0.36, 1),
    width 380ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 240ms ease;
  z-index: 0;
}

.nav-indicator.is-visible { opacity: 1; }

.nav > a {
  position: relative;
  z-index: 1;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-3);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 220ms ease, background 220ms ease, transform 220ms ease;
}

.nav > a:hover { color: var(--ink-1); transform: translateY(-1px); }
.nav > a.is-active { color: var(--blue-700); font-weight: 600; }

/* 顶部滚动进度条 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  z-index: 100;
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg,
    var(--blue-500) 0%,
    #C2730E 50%,
    #DE8A1B 100%);
  box-shadow: 0 1px 6px rgba(15, 107, 86, 0.5);
  transition: width 80ms linear;
  border-top-right-radius: 2px;
  border-bottom-right-radius: 2px;
}

/* 联系客服按钮 — 黑底白字，跟整体黑药丸体系一致 */
.nav-cta {
  margin-left: 10px !important;
  font-weight: 700 !important;
  padding: 8px 18px !important;
  background: linear-gradient(135deg, var(--ink-1) 0%, #26302B 100%) !important;
  color: #fff !important;
  box-shadow:
    0 6px 16px -3px rgba(20, 28, 24, 0.30),
    0 0 0 1.5px rgba(255, 255, 255, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #26302B 0%, #38433D 100%) !important;
  box-shadow:
    0 10px 22px -4px rgba(20, 28, 24, 0.40),
    0 0 0 1.5px rgba(255, 255, 255, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.nav-cta svg {
  width: 14px;
  height: 14px;
}

