/* ===========================================================
   阿拉提 · 站点统一样式
   暖米底 + 柔和橙色 + 磨砂玻璃 + 滚动揭露动效
   纯 CSS（仅 reveal 用一段约 15 行的内联 JS）
   =========================================================== */

:root {
  --bg: #fff8ef;
  --bg-soft: #faf1e4;
  --ink: #2d221b;
  --ink-soft: #5a463a;
  --muted: #7f6658;
  --soft: #f4e4d4;
  --accent: #c7643f;
  --accent-dark: #8f3f24;
  --accent-soft: #e9b793;
  --line: rgba(137, 91, 64, 0.16);
  --line-strong: rgba(137, 91, 64, 0.28);
  --card: rgba(255, 255, 255, 0.72);
  --card-solid: #ffffff;
  --shadow-sm: 0 4px 16px rgba(107, 70, 45, 0.06);
  --shadow-md: 0 16px 48px rgba(107, 70, 45, 0.08);
  --shadow-lg: 0 24px 70px rgba(107, 70, 45, 0.12);
  --shadow-phone: 0 60px 120px -30px rgba(107, 70, 45, 0.4),
                  0 30px 60px -20px rgba(199, 100, 63, 0.18);
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 210, 178, 0.55), transparent 32%),
    radial-gradient(circle at 88% 4%, rgba(245, 178, 140, 0.32), transparent 34%),
    radial-gradient(circle at 50% 92%, rgba(231, 192, 167, 0.28), transparent 42%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Noto Serif SC", "Songti SC", "Microsoft YaHei", "PingFang SC", serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--accent); }

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

/* ===================== 顶部导航 ===================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 239, 0.75);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, box-shadow 0.3s;
}
.topbar.scrolled {
  background: rgba(255, 248, 239, 0.92);
  box-shadow: 0 4px 24px rgba(107, 70, 45, 0.06);
}

.topbar-inner {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(199, 100, 63, 0.22);
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.topnav a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.topnav a:hover,
.topnav a.active {
  color: var(--accent-dark);
  background: rgba(199, 100, 63, 0.08);
}

@media (max-width: 720px) {
  .topbar-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 0 12px;
    gap: 8px;
  }
  .brand { padding: 0 4px; }
  .brand-logo { width: 34px; height: 34px; border-radius: 10px; }
  .topnav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }
  .topnav a {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 13px;
  }
  .topnav::-webkit-scrollbar { display: none; }
}

/* ===================== 通用排版 ===================== */
.page {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 64px;
}

.section-inner {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

h1 {
  margin: 12px 0 16px;
  font-size: clamp(34px, 6.5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 900;
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 800;
}

p { margin: 0 0 12px; }

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.75;
}

.muted { color: var(--muted); }

/* ===================== 按钮 ===================== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 800;
  background: var(--soft);
  color: var(--accent-dark);
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 10px 28px rgba(199, 100, 63, 0.28);
}
.button.primary:hover {
  color: #fff;
  box-shadow: 0 14px 32px rgba(199, 100, 63, 0.35);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--line-strong);
  color: var(--ink);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.button.ghost:hover {
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
}

.button.disabled,
.button[aria-disabled="true"] {
  opacity: 0.78;
  cursor: default;
  pointer-events: none;
  filter: saturate(0.85);
}

/* ===================== 滚动揭露动效 ===================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===================== 法律页卡片 ===================== */
.hero,
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero {
  padding: 48px 44px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -80px;
  top: -100px;
  background: radial-gradient(circle, rgba(199, 100, 63, 0.18) 0%, transparent 65%);
  pointer-events: none;
  filter: blur(8px);
}

.card { padding: 30px; }

.section { margin-top: 18px; }

.list { padding-left: 1.2em; margin: 10px 0 0; }
.list li { margin: 7px 0; }

.notice {
  border-left: 4px solid var(--accent);
  background: rgba(255, 247, 239, 0.9);
  padding: 14px 16px;
  border-radius: 14px;
  color: #6f4e3d;
}

.meta { color: var(--muted); font-size: 14px; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.nav a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--soft);
  padding: 8px 14px;
  font-size: 14px;
  color: var(--accent-dark);
}
.nav a:hover { background: var(--accent-soft); color: var(--accent-dark); }

/* ===================== 表格 ===================== */
.table-wrap {
  overflow-x: auto;
  margin-top: 12px;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 14px;
}
th, td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  vertical-align: top;
  text-align: left;
}
th {
  background: #f7eadc;
  color: var(--ink);
  font-weight: 800;
}

/* ===================== 站点 Footer ===================== */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 248, 239, 0.55);
  margin-top: 80px;
  padding: 36px 0 32px;
}
.footer-inner {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
  font-size: 14px;
}
.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}
.footer-inner a {
  color: var(--muted);
  font-weight: 700;
}
.footer-inner a:hover { color: var(--accent-dark); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 720px) {
  .site-footer { margin-top: 56px; padding: 24px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
}

.footer {
  margin-top: 26px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.footer a { color: var(--muted); font-weight: 700; }
.beian-links { margin-top: 4px; }

/* ===================== 首页 Hero（左右分栏 + 手机壳） ===================== */
.hero-full {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 20px 100px;
}

.hero-orb {
  position: absolute;
  width: clamp(360px, 52vw, 720px);
  height: clamp(360px, 52vw, 720px);
  left: -10%;
  top: 22%;
  background: radial-gradient(circle, rgba(255, 220, 198, 0.7) 0%, rgba(255, 220, 198, 0) 60%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  animation: orbDrift 18s ease-in-out infinite alternate;
}
.hero-orb.secondary {
  width: clamp(220px, 30vw, 420px);
  height: clamp(220px, 30vw, 420px);
  left: auto;
  right: -6%;
  top: 8%;
  background: radial-gradient(circle, rgba(199, 100, 63, 0.32) 0%, rgba(199, 100, 63, 0) 65%);
  animation-duration: 22s;
  animation-direction: alternate-reverse;
}
@keyframes orbDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, -30px) scale(1.08); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 60px;
}

.hero-text { max-width: 580px; }

.hero-title {
  font-size: clamp(40px, 8vw, 80px);
  line-height: 1.06;
  letter-spacing: -0.05em;
  font-weight: 900;
  margin: 18px 0 22px;
}

.hero-title .accent-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  color: var(--ink-soft);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.75;
  margin: 0 0 32px;
}

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

.hero-meta {
  margin-top: 28px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.hero-meta strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-text { margin: 0 auto; }
  .hero-cta { justify-content: center; }
  .hero-meta { justify-content: center; }
  .hero-full { padding: 56px 20px 80px; min-height: auto; }
}

/* ===================== 手机壳（CSS 绘制） ===================== */
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1400px;
}

.phone {
  position: relative;
  width: clamp(240px, 30vw, 320px);
  aspect-ratio: 9 / 19.5;
  background: #1c130c;
  border-radius: 44px;
  padding: 10px;
  box-shadow: var(--shadow-phone);
  transform: rotate(-3deg);
  animation: phoneFloat 6s ease-in-out infinite;
}

.phone::before,
.phone::after {
  content: "";
  position: absolute;
  background: #2a1d12;
  border-radius: 4px;
}
.phone::before { /* 音量键 */
  left: -3px; top: 22%;
  width: 4px; height: 36px;
  border-radius: 2px 0 0 2px;
}
.phone::after { /* 电源键 */
  right: -3px; top: 28%;
  width: 4px; height: 56px;
  border-radius: 0 2px 2px 0;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: var(--bg);
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 22px;
  background: #1c130c;
  border-radius: 14px;
  z-index: 2;
}

@keyframes phoneFloat {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50%      { transform: rotate(-2deg) translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .phone { animation: none; }
  .hero-orb { animation: none; }
}

@media (max-width: 920px) {
  .phone { transform: rotate(0); animation: none; }
}

/* ===================== 大块叙述 Section ===================== */
.section-block {
  position: relative;
  padding: 110px 0;
}

.section-block.alt {
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(250, 241, 228, 0.85) 18%,
    rgba(250, 241, 228, 0.85) 82%,
    transparent 100%);
}

.story-title {
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 14px 0 24px;
  font-weight: 900;
  max-width: 800px;
}

.story-text {
  color: var(--ink-soft);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.85;
  max-width: 720px;
}

.story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.story-tags span {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 700;
}

/* ===================== 功能卡片 ===================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 44px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 8px 22px rgba(199, 100, 63, 0.28);
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
}

@media (max-width: 760px) {
  .feature-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* ===================== Showcase 三屏排列 ===================== */
.showcase {
  position: relative;
  margin-top: 56px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(12px, 3vw, 28px);
  perspective: 1500px;
  padding: 20px 0 40px;
}

.showcase .phone {
  animation: none;
  transform: rotate(0);
  width: clamp(180px, 22vw, 260px);
  flex-shrink: 0;
}

.showcase .phone:nth-child(1) {
  transform: rotate(-6deg) translateY(20px);
}
.showcase .phone:nth-child(2) {
  z-index: 2;
  transform: rotate(0) translateY(-12px) scale(1.06);
}
.showcase .phone:nth-child(3) {
  transform: rotate(6deg) translateY(20px);
}

@media (max-width: 760px) {
  .showcase {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px 8px 32px;
    justify-content: flex-start;
  }
  .showcase::-webkit-scrollbar { display: none; }
  .showcase .phone:nth-child(1),
  .showcase .phone:nth-child(2),
  .showcase .phone:nth-child(3) {
    transform: rotate(0);
  }
  .showcase .phone { width: 200px; }
}

/* ===================== 情绪价值大字 ===================== */
.quote-section {
  padding: 130px 20px;
  text-align: center;
}

.quote {
  font-size: clamp(24px, 4.4vw, 44px);
  line-height: 1.55;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 880px;
  margin: 0 auto;
  font-weight: 800;
}

.quote::before {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  margin: 0 auto 32px;
  opacity: 0.7;
}

.quote-sub {
  margin-top: 24px;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: 0.05em;
}

/* ===================== 链接卡片 ===================== */
.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.link-card {
  display: block;
  background: var(--card-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  color: var(--ink);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.link-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-soft);
  color: var(--ink);
}

.link-card-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.link-card-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}
.link-card-arrow {
  margin-top: 14px;
  font-size: 13px;
  color: var(--accent-dark);
  font-weight: 800;
  letter-spacing: 0.05em;
}

@media (max-width: 720px) {
  .link-grid { grid-template-columns: 1fr; }
}

/* ===================== 通用网格 + 移动端兜底 ===================== */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .page { padding: 22px 0 48px; }
  .hero { padding: 32px 24px; }
  .card { padding: 22px; }
  table { min-width: 520px; }
  .section-block { padding: 64px 0; }
  .quote-section { padding: 72px 20px; }
}
