/* ==========================================================================
   Super Recorder — 双平台商店徽标 / 下载区 / 悬浮双码 / 指南页补充
   依赖 style.css 的 token；只在新增组件上做样式，不改原有版式。
   ========================================================================== */

/* ---------- 1. 商店徽标（iOS + Android 通用） ---------- */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .62rem 1.25rem;
  background: #14171C;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: 0 10px 24px rgba(10, 16, 28, .22);
  min-height: 56px;
}
.store-badge:hover { color: #fff; background: #1D2129; transform: translateY(-2px); box-shadow: 0 16px 32px rgba(10, 16, 28, .28); }
.store-badge__logo { width: 26px; height: 26px; flex: none; fill: currentColor; display: block; }
.store-badge__text { display: grid; line-height: 1.12; text-align: left; }
.store-badge__small { font-size: .66rem; letter-spacing: .01em; opacity: .8; text-transform: none; }
.store-badge__big { font-size: 1.08rem; font-weight: 700; letter-spacing: -.01em; }
.store-badge[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.store-badge[aria-disabled="true"]:hover { transform: none; }

/* ---------- 2. 首屏按钮行 ---------- */
.hero__stores { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.hero__stores + .hw-text-link { margin-top: .35rem; }
.hero__download { display: flex; flex-direction: column; gap: 1.1rem; }

/* ---------- 3. 下载区：双栏 ---------- */
.store-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(2rem, 5vw, 4.5rem);
  margin-top: clamp(1.6rem, 3vw, 2.2rem);
  max-width: none;
  margin-inline: auto;
}
.store-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.store-panel__os {
  order: 3;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-transform: none;
  color: rgba(255, 255, 255, .58);
}
.store-panel .store-badge { background: #0B0E13; }
.store-panel .qr-card { box-shadow: 0 12px 30px rgba(0, 0, 0, .22); }
.store-panel .qr-card img { width: 118px; height: 118px; }

.qr-card--pending {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 10px;
  background: repeating-linear-gradient(45deg, #E7EEF9, #E7EEF9 6px, #F4F8FE 6px, #F4F8FE 12px);
  color: #6B7B95;
  font-size: .75rem;
  font-weight: 700;
  text-align: center;
  padding: .5rem;
}
.qr-card--pending span { display: block; }

/* ---------- 4. 悬浮二维码：可切换平台 ---------- */
.floating-qr__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  width: 100%;
  padding: 3px;
  margin-bottom: .45rem;
  border-radius: 9px;
  background: #E9EEF6;
}
.floating-qr__tabs button {
  padding: .34rem 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #5A6577;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.floating-qr__tabs button[aria-selected="true"] {
  background: #0A0C12;
  color: #fff;
}
.floating-qr__tabs button:focus-visible { outline: 2px solid #0072E0; outline-offset: 1px; }

.floating-qr__panel { display: grid; justify-items: center; }
.floating-qr__panel[hidden] { display: none; }
.floating-qr__pending {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 10px;
  border: 1px dashed #B9C4D4;
  color: #6B7B95;
  font-size: .6875rem;
  font-weight: 700;
  text-align: center;
  padding: .25rem;
}
.floating-qr { min-width: 122px; width: auto; }

/* ---------- 5. 指南页：平台说明 ---------- */
.guide__note {
  margin-top: 1rem;
  padding: .8rem 1rem;
  border-left: 3px solid var(--brand);
  background: var(--brand-tint);
  border-radius: 0 10px 10px 0;
  font-size: .9375rem;
  color: var(--ink-2);
}

/* ---------- 6. 小卡底部：三词标签 ---------- */
.hw-mini__chips { gap: 6px; }
.hw-mini__chips span {
  border-radius: 999px;
  padding: 6px 10px;
  color: #0072E0;
  background: #E7F3FF;
  font-weight: 700;
}
.hw-mini__chips span:nth-child(2) { background: #EAF7F2; color: #0E8B6C; }
.hw-mini__chips span:nth-child(3) { background: #F4EEFF; color: #6D5BD0; }

/* ---------- 7. 响应式 ---------- */
@media (max-width: 767px) {
  .store-grid { grid-template-columns: 1fr; }
  .store-panel { padding: 1.25rem 1rem; }
  .hero__stores { width: 100%; }
  .store-badge { flex: 1 1 0; justify-content: center; min-width: 0; padding: .55rem .9rem; }
  .store-badge__big { font-size: 1rem; }
  .store-badge__small { font-size: .6rem; }
}

/* 窄屏：两个徽标竖排，避免挤成一条 */
@media (max-width: 520px) {
  .hero__stores { flex-direction: column; align-items: stretch; gap: .55rem; }
  .store-badge { width: 100%; }
}

/* 防横向溢出：绝对定位的演示卡在窄屏会探出边界 */
html, body { overflow-x: clip; }

@media (prefers-reduced-motion: reduce) {
  .store-badge { transition: none; }
}

/* ---------- 8. 三块功能卡（专业录音 / 离线转写 / 创作编辑） ---------- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(28px, 3.4vw, 46px);
}

.feat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 30px 30px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.feat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(21, 169, 255, .5), transparent);
  opacity: .65;
}
.feat-card:hover { border-color: rgba(21, 169, 255, .32); transform: translateY(-3px); }

.feat-card--accent {
  border-color: rgba(21, 169, 255, .26);
  background: linear-gradient(180deg, rgba(21, 169, 255, .07), var(--surface) 46%);
}

.feat-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.feat-card__num { font-size: 13px; font-weight: 800; letter-spacing: .14em; color: #5EB8FF; }
.feat-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: rgba(21, 169, 255, .12);
  color: #5EB8FF;
}

.feat-card h3 {
  margin-top: 20px;
  font-size: clamp(21px, 1.65vw, 25px);
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--ink);
}
.feat-card__lede {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--muted);
}

.feat-card__list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.feat-card__list li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
.feat-card__list li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: rgba(21, 169, 255, .7);
  transform: rotate(45deg);
}

@media (max-width: 1023px) {
  .feat-grid { grid-template-columns: 1fr; gap: 14px; }
  .feat-card { padding: 26px 24px 24px; }
  .feat-card__list li { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .feat-card { transition: none; }
  .feat-card:hover { transform: none; }
}

/* 首屏事实胶囊：宽屏两列，避免 3+1 的掉行 */
@media (min-width: 768px) {
  .home-v2 .hw-hero .hero__stats {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    justify-content: start;
    gap: 10px 28px;
  }
}