/* ==========================================================================
   首页样式
   ========================================================================== */

/* ---------- 顶部欢迎横幅 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 18px 18px 13px;
  background: linear-gradient(160deg, #3C3C3C 0%, #272727 45%, #1A1A1A 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 82% at 10% -6%, rgba(255, 255, 255, 0.12), transparent 62%);
  pointer-events: none;
}

.hero__title {
  position: relative;
  padding-right: 62px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.28;
  background: linear-gradient(180deg, #F7E5AC 0%, #DCB863 58%, #C79E45 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: #E3C57D;
  -webkit-text-fill-color: transparent;
}

.hero__slogan {
  position: relative;
  margin-top: 9px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.8px;
  color: #D9BC72;
}

.hero__account {
  position: relative;
  margin-top: 7px;
  text-align: right;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #F2F2F2;
}

.hero__seal {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 34% 26%, #CF3D2C, #9C1E11 72%);
  border: 1.5px solid rgba(232, 211, 145, 0.85);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35), inset 0 0 0 3px rgba(232, 211, 145, 0.26);
  color: #ECD99D;
  font-family: "STKaiti", "KaiTi", "Songti SC", serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0;
}

/* 四步流程 */
.hero__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  margin-top: 16px;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 11px 3px 9px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.step:active { background: rgba(255, 255, 255, 0.16); }

.step__badge {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 27px;
  height: 18px;
  padding: 0 5px;
  border-radius: 6px;
  background: linear-gradient(180deg, #F5E0A0, #D6AF52);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  color: #4A3714;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

.step__icon { color: #EDEDED; }
.step__icon svg { width: 19px; height: 19px; }
.step__label { font-size: 12.5px; line-height: 1.15; font-weight: 500; color: #FFFFFF; }

/* ---------- 热门商品 ---------- */
.shop {
  margin-top: 12px;
  padding-bottom: 12px;
  background: var(--panel);
  border-radius: var(--radius);
}

.goods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 0 10px;
}

.goods__item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid var(--line-warm);
  border-radius: 12px;
  transition: transform 0.15s ease;
}

.goods__item:active { transform: scale(0.985); }

.goods__thumb {
  position: relative;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.goods__tag {
  position: absolute;
  left: 7px;
  top: 7px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  border: 0.5px solid rgba(255, 255, 255, 0.45);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.goods__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 10px 10px;
}

.goods__nameline { display: flex; align-items: baseline; gap: 6px; }

.goods__name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.goods__sold { flex: none; font-size: 11px; color: #AFAFAF; }

.goods__desc {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: #7A7A7A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.goods__desc--ok { color: #3C3C3C; font-weight: 600; }

.goods__price {
  display: flex;
  align-items: baseline;
  gap: 1px;
  margin-top: 1px;
  color: var(--gold-deep);
  font-weight: 800;
  white-space: nowrap;
}

.goods__price i { font-style: normal; font-size: 13px; font-weight: 700; }
.goods__price b { font-size: 18px; letter-spacing: -0.3px; }

/* ---------- 商品缩略图（无图资源，用样式还原品牌图） ---------- */
.thumb-brand {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 2px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.thumb-brand i {
  margin-top: 1px;
  font-style: normal;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 1.2px;
  opacity: 0.9;
}

.thumb-amount {
  position: absolute;
  right: 9px;
  bottom: 8px;
  z-index: 2;
  color: #FFFFFF;
  font-size: 12px;
  font-style: italic;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
}

.thumb-amount b { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; }

/* 中国电信 */
.thumb-telecom {
  background: linear-gradient(135deg, #1F5FBF 0%, #2E86E8 100%);
}

.thumb-telecom::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -46px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 10px solid rgba(255, 255, 255, 0.16);
}

/* 京东 e 卡 */
.thumb-jd {
  background: linear-gradient(135deg, #EF3B2E 0%, #C3140C 100%);
}

.thumb-jd::after {
  content: "";
  position: absolute;
  left: -20px;
  bottom: -26px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
}

.thumb-jdbox {
  position: absolute;
  right: 9px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: #FFFFFF;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.thumb-jdbox b { font-size: 19px; font-weight: 800; line-height: 1; letter-spacing: -0.5px; }
.thumb-jdbox i { margin-top: 2px; font-style: normal; font-size: 8px; opacity: 0.95; }

/* 电信充值卡 100 元 */
.thumb-tel100 { background: linear-gradient(135deg, #1F5FBF 0%, #2E86E8 100%); }

.thumb-tel100 .thumb-brand {
  position: absolute;
  top: 9px;
  left: 9px;
  align-items: flex-start;
  font-size: 11px;
  letter-spacing: 1px;
}

.thumb-tel100 .thumb-brand i { font-size: 5.5px; }

/* 中国移动 */
.thumb-cmcc { background: linear-gradient(135deg, #EDF5FB 0%, #C9E0F2 100%); }

.thumb-cmcc::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -20px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 9px solid rgba(30, 120, 190, 0.18);
  border-right-color: rgba(80, 175, 90, 0.35);
  border-bottom-color: rgba(80, 175, 90, 0.35);
}

.thumb-cmcc .thumb-brand {
  color: #1B5FA8;
  font-size: 16px;
  text-shadow: none;
}

.thumb-cmcc .thumb-brand i { color: #2D7CC0; letter-spacing: 0.8px; }

/* 腾讯 Q 币 */
.thumb-qq { background: linear-gradient(135deg, #2C9BF0 0%, #0B69C9 100%); }

.thumb-qq::after {
  content: "";
  position: absolute;
  left: -18px;
  top: -30px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

/* 加盟代理 */
.thumb-agent { background: linear-gradient(135deg, #F3DA9E 0%, #D3AA55 100%); }

.thumb-agent::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -34px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 9px solid rgba(255, 255, 255, 0.34);
}

.thumb-agent .thumb-brand { color: #6B4E14; text-shadow: none; font-size: 17px; }

/* ---------- 店铺公告 ---------- */
.notice { margin-top: 12px; }

.notice__body {
  padding: 2px 14px 14px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.8;
  white-space: pre-line;
}

.notice__body[hidden] { display: none; }

.panel__action .chev { transition: transform 0.25s ease; }
.panel__action.is-open .chev { transform: rotate(180deg); }

/* ---------- 常见问题 ---------- */
.faq { margin-top: 12px; padding-bottom: 14px; }

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 14px;
}

.faq__item {
  overflow: hidden;
  background: #FFFDF8;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.faq__item.is-open {
  background: #FFFFFF;
  border-color: var(--gold-border);
}

.faq__q {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 12px;
  text-align: left;
}

.faq__no {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  color: var(--gold-deep);
  font-size: 11px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.3px;
}

.faq__qtext { flex: 1; font-size: 14.5px; font-weight: 700; }

.faq__chev {
  flex: none;
  width: 16px;
  height: 16px;
  color: #C4C4C4;
  transition: transform 0.25s ease, color 0.2s ease;
}

.faq__item.is-open .faq__chev { transform: rotate(180deg); color: var(--gold); }

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.faq__item.is-open .faq__a { max-height: 400px; }

.faq__a p {
  padding: 0 12px 15px;
  font-size: 13.5px;
  color: #4E4E4E;
  line-height: 1.78;
}
