/* ===== 联通飞雀卡宣传站样式 ===== */
/* 字体：仅使用操作系统自带的免费字体，无任何版权风险 */
:root {
  --brand: #e60012;
  --brand-dark: #b8000e;
  --brand-deep: #7a0009;
  --ink: #262626;
  --ink-2: #595959;
  --bg-gray: #f7f8fa;
  --line: #ececec;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  overflow-x: hidden;
}

/* ===== 顶部导航 ===== */
.nav-main {
  background: rgba(122, 0, 9, .92);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .15);
}
.nav-main .nav-link {
  color: rgba(255, 255, 255, .88);
  padding-left: 1rem;
  padding-right: 1rem;
}
.nav-main .nav-link:hover { color: #fff; }

.btn-cta {
  background: linear-gradient(135deg, #ff7a18, #e60012);
  border: none;
  color: #fff;
  font-weight: 700;
  border-radius: 50px;
  padding: .5rem 1.6rem;
  box-shadow: 0 4px 14px rgba(230, 0, 18, .35);
  transition: transform .2s, box-shadow .2s;
}
.btn-cta:hover, .btn-cta:focus {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 0, 18, .45);
}

/* ===== 首屏 ===== */
.hero {
  background:
    radial-gradient(1000px 500px at 85% 10%, rgba(255, 122, 24, .28), transparent 60%),
    linear-gradient(135deg, var(--brand-deep) 0%, var(--brand-dark) 55%, var(--brand) 100%);
  color: #fff;
  padding: 150px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
}
.hero-tag {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50px;
  padding: .3rem 1rem;
  font-size: .85rem;
  letter-spacing: .12em;
  margin-bottom: 1.2rem;
}
.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: .06em;
  margin-bottom: .8rem;
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, .92);
}
.hero-sub strong { color: #ffd66e; font-size: 1.35em; }
.hero-price { margin-top: 1.2rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: .6rem; }
.hero-price .yen { font-size: 1.6rem; font-weight: 700; color: #ffd66e; }
.hero-price .num { font-size: 4rem; font-weight: 800; color: #ffd66e; line-height: 1; }
.hero-price .unit { font-size: 1.1rem; color: rgba(255, 255, 255, .85); }
.hero-origin {
  width: 100%;
  font-size: .85rem;
  color: rgba(255, 255, 255, .6);
  text-decoration: line-through;
}
.hero-points {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.hero-points li { font-size: .95rem; color: rgba(255, 255, 255, .9); }
.hero-points i { color: #ffd66e; margin-right: .3rem; }

/* 首屏右侧展示图 */
.hero-img {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}

/* ===== 通用区块 ===== */
.sec { padding: 80px 0; }
.sec-gray { background: var(--bg-gray); }
.sec-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: .8rem;
  position: relative;
  padding-bottom: 1rem;
}
.sec-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ff7a18, var(--brand));
}
.sec-desc { text-align: center; color: var(--ink-2); max-width: 860px; margin: 0 auto 3rem; line-height: 1.9; }

/* 简介数据卡 */
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
  padding: 1.8rem 1rem;
  height: 100%;
  transition: transform .2s, box-shadow .2s;
}
.sec-gray .stat-card { background: #fff; }
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0, 0, 0, .08); }
.stat-card i { font-size: 1.8rem; color: var(--brand); }
.stat-num { font-size: 2rem; font-weight: 800; margin: .5rem 0 .2rem; }
.stat-sm { font-size: 1rem; font-weight: 600; }
.stat-txt { color: var(--ink-2); font-size: .9rem; }

/* 优势卡 */
.adv-card {
  background: #fff;
  border-radius: 14px;
  padding: 2rem 1.6rem;
  height: 100%;
  border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s;
}
.adv-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(230, 0, 18, .1); }
.adv-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff7a18, var(--brand));
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.adv-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .5rem; }
.adv-card p { color: var(--ink-2); font-size: .92rem; line-height: 1.8; margin: 0; }

/* 套餐卡 */
.plan-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .08);
}
.plan-head {
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: #fff;
  text-align: center;
  padding: 2.2rem 1.5rem 1.8rem;
}
.plan-name { font-size: 1.3rem; font-weight: 700; letter-spacing: .15em; }
.plan-price { font-size: 4rem; font-weight: 800; line-height: 1.1; }
.plan-price .yen { font-size: 1.6rem; vertical-align: super; }
.plan-price .unit { font-size: 1.1rem; font-weight: 400; }
.plan-origin { font-size: .85rem; color: rgba(255, 255, 255, .65); text-decoration: line-through; }
.plan-stock {
  display: inline-block;
  margin-top: .6rem;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50px;
  padding: .25rem .9rem;
  font-size: .8rem;
  color: #fff;
  background: rgba(255, 255, 255, .14);
}
.plan-stock i { color: #ffd66e; margin-right: .25rem; }

/* 套餐硬编码产品信息 */
.plan-meta {
  list-style: none;
  padding: 1rem 1.2rem;
  margin: 0 0 .5rem;
  background: #fff6f6;
  border: 1px solid #ffdfdf;
  border-radius: 12px;
}
.plan-meta li {
  display: flex;
  gap: .8rem;
  font-size: .9rem;
  line-height: 2;
  color: var(--ink);
}
.plan-meta li + li { border-top: 1px dashed #ffd9d9; }
.plan-meta span {
  flex: 0 0 5.5em;
  color: var(--ink-2);
}
.plan-grid { border-bottom: 1px solid var(--line); }
.plan-cell { padding: 1.4rem .8rem; }
.plan-cell + .plan-cell { border-left: 1px solid var(--line); }
.plan-cell-num { font-size: 2rem; font-weight: 800; color: var(--brand); }
.plan-cell-num small { font-size: .9rem; }
.plan-cell-txt { color: var(--ink-2); font-size: .88rem; }
.plan-out { line-height: 1.8; padding-top: .2rem; }
.plan-body { padding: 2rem 2.2rem 2.4rem; }
.plan-sub-title { font-size: 1.05rem; font-weight: 700; margin: 1.4rem 0 .8rem; }
.plan-sub-title:first-child { margin-top: 0; }
.plan-sub-title i { color: var(--brand); }
.plan-list { color: var(--ink-2); line-height: 2; padding-left: 1.3rem; margin: 0; }
.plan-list-red { color: var(--brand-dark); font-weight: 600; list-style: none; padding-left: 0; }
.plan-list-red li::before { content: "·"; color: var(--brand); font-weight: 800; margin-right: .5rem; }

/* 温馨提示 */
.tips-card {
  background: #fff8f0;
  border: 1px solid #ffe1c2;
  border-radius: 14px;
  padding: 1.8rem 2rem;
}
.tips-title { font-size: 1.1rem; font-weight: 700; color: #c35a00; }
.tips-list { color: #8a5a2a; line-height: 2; padding-left: 1.2rem; margin: 0; font-size: .92rem; }

/* FAQ */
.faq-acc .accordion-item { border: 1px solid var(--line); margin-bottom: .8rem; border-radius: 12px !important; overflow: hidden; }
.faq-acc .accordion-button { font-weight: 600; background: #fff; color: var(--ink); }
.faq-acc .accordion-button:not(.collapsed) { background: #fff0f0; color: var(--brand-dark); box-shadow: none; }
.faq-acc .accordion-button:focus { box-shadow: none; border-color: var(--line); }
.faq-acc .accordion-body { color: var(--ink-2); line-height: 1.9; }

/* 办卡流程 */
.step-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem 1.6rem 1.6rem;
  height: 100%;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0, 0, 0, .08); }
.step-num {
  position: absolute;
  top: -18px;
  left: 1.6rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7a18, var(--brand));
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(230, 0, 18, .3);
}
.step-card h3 { font-size: 1.1rem; font-weight: 700; margin: .6rem 0 .5rem; }
.step-card p { color: var(--ink-2); font-size: .9rem; line-height: 1.8; margin: 0; }

/* 运营商优势（深色区） */
.sec-dark { background: linear-gradient(150deg, #2b0508, #5a0009); color: #fff; }
.sec-dark .sec-title { color: #fff; }
.sec-dark .sec-desc { color: rgba(255, 255, 255, .7); }
.op-card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  height: 100%;
  text-align: center;
  transition: transform .2s, background .2s;
}
.op-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .12); }
.op-card i { font-size: 2rem; color: #ffd66e; }
.op-card h3 { font-size: 1.1rem; font-weight: 700; margin: .9rem 0 .5rem; }
.op-card p { color: rgba(255, 255, 255, .72); font-size: .88rem; line-height: 1.8; margin: 0; }

/* 用户评价：一行显示、左右滑动 */
.rev-wrap { position: relative; }
.rev-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: .5rem .25rem 1.25rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.rev-track::-webkit-scrollbar { display: none; }
.rev-track:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 12px; }
.rev-track > .rev-card {
  flex: 0 0 calc((100% - 3rem) / 3); /* 桌面一行 3 张 */
  scroll-snap-align: start;
  height: auto;
}
.rev-track > .rev-card:hover {
  transform: none;
  box-shadow: 0 12px 28px rgba(230, 0, 18, .14);
  border-color: #f3c6c6;
}
.rev-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
  z-index: 3;
  transition: background .2s, color .2s;
}
.rev-nav:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.rev-nav[disabled] { opacity: .3; pointer-events: none; }
.rev-prev { left: -22px; }
.rev-next { right: -22px; }

/* 用户评价 */
.rev-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.6rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.rev-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0, 0, 0, .08); }
.rev-stars { color: #ffb400; margin-bottom: .8rem; }
.rev-txt { color: var(--ink-2); line-height: 1.9; font-size: .92rem; flex: 1; }
.rev-user { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; }
.rev-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7a18, var(--brand));
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rev-name { font-weight: 700; font-size: .95rem; }
.rev-role { color: var(--ink-2); font-size: .8rem; }

/* ===== 底部 ===== */
.footer { background: #1c1c1e; color: rgba(255, 255, 255, .6); padding: 3rem 0 2rem; }
.footer-brand { color: #fff; font-size: 1.2rem; font-weight: 700; letter-spacing: .1em; }
.footer-txt { font-size: .85rem; margin: .6rem 0; }
.footer-copy { font-size: .85rem; margin: 0; }
.footer-beian { color: rgba(255, 255, 255, .6); text-decoration: none; }
.footer-beian:hover { color: #fff; }

/* ===== 客服弹层 ===== */
.wx-modal { border-radius: 18px; border: none; position: relative; }
.wx-close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.wx-title { font-size: 1.3rem; font-weight: 800; margin-top: 1rem; }
.wx-tip-top { color: var(--ink-2); font-size: .9rem; }
.wx-qr {
  width: 200px;
  height: 200px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  background: #fff;
}
.wx-id-label { margin-top: 1rem; color: var(--ink-2); }
.wx-id {
  border: none;
  background: none;
  color: var(--brand);
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
  text-decoration: underline dotted;
  padding: 0;
}
.wx-id:hover { color: var(--brand-dark); }
.wx-copied {
  color: #1a9b4b;
  font-weight: 600;
  font-size: .9rem;
  min-height: 1.4em;
  opacity: 0;
  transition: opacity .25s;
  margin-bottom: .6rem;
}
.wx-copied.show { opacity: 1; }

/* ===== 电脑端右侧悬浮条 ===== */
.side-bar {
  position: fixed;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1030;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.side-item {
  width: 74px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .7rem 0 .5rem;
  text-align: center;
  color: var(--ink);
  text-decoration: none;
  font-size: .75rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
  transition: color .2s, transform .2s;
  position: relative;
}
.side-item:hover { color: var(--brand); transform: translateX(-3px); }
.side-item i { display: block; font-size: 1.4rem; color: var(--brand); margin-bottom: .25rem; }
.side-top { display: none; }
.side-top.show { display: block; }

.side-wx-pop {
  position: absolute;
  right: 84px;
  top: 50%;
  transform: translateY(-50%) scale(.9);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  width: 190px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .16);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, transform .2s, visibility .2s;
}
.side-wx:hover .side-wx-pop {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
}
.side-wx-pop img { width: 160px; height: 160px; border-radius: 8px; }
.side-wx-label { margin: .6rem 0 0; font-size: .8rem; color: var(--ink-2); }
.side-wx-pop .wx-id { font-size: .95rem; }
.side-wx-pop .wx-copied { margin: 0; font-size: .8rem; }

/* ===== 手机端底部栏 ===== */
.m-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
  padding-bottom: env(safe-area-inset-bottom);
}
.m-item {
  flex: 1;
  border: none;
  background: none;
  padding: .55rem 0 .45rem;
  text-align: center;
  color: var(--ink);
  text-decoration: none;
  font-size: .72rem;
}
.m-item i { display: block; font-size: 1.3rem; color: var(--brand); margin-bottom: .1rem; }
.m-item-cta { background: linear-gradient(135deg, #ff7a18, var(--brand)); color: #fff; font-weight: 700; }
.m-item-cta i { color: #fff; }

/* ===== 响应式微调 ===== */
@media (max-width: 991.98px) {
  body { padding-bottom: 58px; } /* 给手机底部栏留位 */
  .hero { padding: 120px 0 70px; }
  .hero-title { font-size: 2.3rem; }
  .hero-price .num { font-size: 3rem; }
  .sec { padding: 56px 0; }
  .sec-title { font-size: 1.6rem; }
  .plan-body { padding: 1.6rem 1.2rem 2rem; }
  .rev-track > .rev-card { flex-basis: calc((100% - 1.5rem) / 2); } /* 平板一行 2 张 */
}
@media (max-width: 575.98px) {
  .rev-track { gap: 1rem; }
  .rev-track > .rev-card { flex-basis: 100%; } /* 手机一行 1 张，手指直接左右滑 */
  .rev-nav { display: none; }
}
