/* ============================================================
   Lshell 官网 —— 组件层
   ============================================================ */

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  font-size: 15.5px;
  font-weight: 400;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-primary {
  background: var(--accent);
  color: var(--fg-on-accent);
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px var(--accent-glow);
}

.btn-ghost {
  background: var(--surface);
  color: var(--fg-strong);
  border: 1.5px solid var(--line-strong);
  box-shadow: var(--shadow-xs);
}

.btn-ghost:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-ink);
  transform: translateY(-2px);
}

.btn-peach {
  background: var(--peach);
  color: #fff;
  box-shadow: 0 8px 22px -10px rgba(239, 144, 120, 0.5);
}

.btn-peach:hover {
  background: #e58168;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 14px;
}

.btn .btn-meta {
  font-weight: 500;
  font-size: 13.5px;
  opacity: 0.75;
}

.btn-block {
  width: 100%;
}

/* ---------- 胶囊 / 标签 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 400;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--fg-muted);
}

.chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  flex: none;
}

.chip-accent { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-ink); }
.chip-peach { background: var(--peach-soft); border-color: #f8d5c8; color: var(--peach-ink); }
.chip-mint { background: var(--mint-soft); border-color: #c4ead9; color: var(--mint-ink); }
.chip-sun { background: var(--sun-soft); border-color: #f5e3ae; color: #a5761a; }
.chip-rose { background: var(--rose-soft); border-color: #f6cdd9; color: #b8446a; }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: 13px;
  background: var(--sunken);
  color: var(--fg-muted);
  border: 1px solid var(--line-faint);
}

/* ---------- 能力卡片 ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out);
  overflow: hidden;
}

/* 悬停时右上角的柔光 */
.card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--accent-soft);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-line);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  position: relative;
  z-index: 1;
}

.card-icon.peach { background: var(--peach-soft); color: var(--peach-ink); }
.card-icon.mint { background: var(--mint-soft); color: var(--mint-ink); }
.card-icon.sun { background: var(--sun-soft); color: #a5761a; }
.card-icon.rose { background: var(--rose-soft); color: #b8446a; }

.card h3 {
  font-size: 19px;
  font-family: var(--font-display);
  letter-spacing: -0.035em;
  margin-bottom: 9px;
  position: relative;
  z-index: 1;
}

.card p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
  position: relative;
  z-index: 1;
}

/* ---------- 价值点 ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.value {
  text-align: center;
  padding: 26px 18px;
  border-radius: var(--r-md);
  background: var(--surface-soft);
  border: 1px solid var(--line-faint);
  transition: transform var(--dur) var(--ease-out), background var(--dur) var(--ease);
}

.value:hover {
  transform: translateY(-4px);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.value-num {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}

.value h4 {
  font-size: 16.5px;
  font-family: var(--font-display);
  letter-spacing: -0.035em;
  margin-bottom: 7px;
}

.value p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 253, 249, 0.78);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background var(--dur) var(--ease);
}

.nav.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-xs);
  background: rgba(255, 253, 249, 0.92);
}

.nav-inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.nav-brand svg,
.nav-brand img {
  height: 22px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 15px;
  color: var(--fg-muted);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.nav-links a:hover {
  color: var(--accent-ink);
  background: var(--accent-soft);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--r-xs);
  place-items: center;
  color: var(--fg);
  border: 1px solid var(--line);
  background: var(--surface);
}

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 52px 0 34px;
  background: var(--bg-tint);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 36px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-brand svg,
.footer-brand img {
  height: 24px;
  width: auto;
}

.footer-about {
  font-size: 14.5px;
  color: var(--fg-muted);
  line-height: 1.8;
  max-width: 330px;
}

.footer h5 {
  font-size: 14px;
  font-family: var(--font-serif);
  color: var(--fg-strong);
  margin-bottom: 14px;
  letter-spacing: -0.03em;
}

.footer-links li {
  margin-bottom: 9px;
}

.footer-links a {
  font-size: 14.5px;
  color: var(--fg-muted);
  transition: color var(--dur-fast) var(--ease);
}

.footer-links a:hover {
  color: var(--accent-ink);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--fg-faint);
}

/* 页脚计数 */
.stats-badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--fg-muted);
}

.stats-badge .stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stats-badge .stat b {
  color: var(--accent-ink);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.stats-badge .sep {
  width: 1px;
  height: 14px;
  background: var(--line-strong);
}

/* ---------- 计数数字滚动 ---------- */
.count {
  font-variant-numeric: tabular-nums;
  font-weight: 400;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.faq-item.open {
  border-color: var(--accent-line);
  box-shadow: var(--shadow-md);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  font-size: 16px;
  font-weight: 400;
  font-family: var(--font-display);
  color: var(--fg-strong);
}

.faq-q:hover {
  color: var(--accent-ink);
}

.faq-sign {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 17px;
  line-height: 1;
  transition: transform var(--dur) var(--ease-out), background var(--dur) var(--ease);
}

.faq-item.open .faq-sign {
  transform: rotate(45deg);
  background: var(--accent);
  color: #fff;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur) var(--ease-out);
}

.faq-a-inner {
  padding: 0 24px 22px;
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.8;
}

/* ---------- 参数表 ---------- */
.spec-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  font-size: 15px;
}

.spec-table th,
.spec-table td {
  padding: 15px 22px;
  text-align: left;
  border-bottom: 1px solid var(--line-faint);
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table th {
  width: 34%;
  font-weight: 400;
  color: var(--fg-strong);
  background: var(--surface-soft);
  font-family: var(--font-serif);
}

.spec-table td {
  color: var(--fg-muted);
}

.spec-table code {
  font-family: var(--font-mono);
  font-size: 13.5px;
  background: var(--sunken);
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--accent-ink);
}

/* ---------- 场景胶囊组 ---------- */
.scene-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
