/* =====================================================
 * PANDA EXCHANGE 全局样式 · 精致版
 * ===================================================== */

/* ---------- 变量 ---------- */
:root {
  --c1: #5b54f0;            /* 主紫蓝 */
  --c2: #8f6bff;            /* 渐变尾 */
  --c3: #ff5a7e;            /* 券红 */
  --price: #ff4d00;         /* 价格橙红 */
  --gold: #ffb800;
  --text: #23263b;
  --sub: #6b7089;
  --light: #9aa0b5;
  --line: #eef0f6;
  --bg: #f6f7fb;
  --shadow-sm: 0 4px 14px rgba(91,84,240,.10);
  --shadow-md: 0 10px 30px rgba(35,38,59,.10);
  --shadow-lg: 0 20px 50px rgba(35,38,59,.16);
  --r: 14px;
  --grad: linear-gradient(120deg, var(--c1), var(--c2));
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font: 14px/1.7 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text); background: #fff;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: .25s; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; border: 0; outline: 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- 通用动画 ---------- */
@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }
@keyframes marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
@keyframes pulse { 0%,100%{transform:scale(1);opacity:.7} 50%{transform:scale(1.25);opacity:.35} }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =====================================================
 * ① 公告栏 + 顶栏 + 主导航
 * ===================================================== */
.notice-bar {
  background: linear-gradient(90deg, #23263b, #3a3f66);
  color: #dfe3ff; font-size: 12px; overflow: hidden;
}
.notice-inner { display: flex; align-items: center; height: 36px; gap: 10px; }
.notice-icon { flex-shrink: 0; }
.notice-track { flex: 1; overflow: hidden; }
.notice-track p {
  white-space: nowrap; display: inline-block;
  padding-left: 100%; animation: marquee 22s linear infinite;
}
.notice-more { color: var(--gold); flex-shrink: 0; }

.topbar { background: var(--bg); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--sub); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar-inner b { color: var(--c1); }
.topbar-links { display: flex; align-items: center; gap: 10px; }
.topbar-links i { color: #d5d8e6; font-style: normal; }
.topbar-links a:hover { color: var(--c1); }
.merchant-link { background: var(--text); color: #fff !important; padding: 2px 10px; border-radius: 20px; }
.merchant-link:hover { background: var(--c1) !important; }

.mainnav { background: rgba(255,255,255,.92); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 0 var(--line); }
.nav-inner { display: flex; align-items: center; height: 72px; gap: 22px; }

.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
/* Logo 徽章（固定尺寸，杜绝图片撑爆） */
.logo-mark {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: 0 3px 10px rgba(91,84,240,.3);
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Logo 图片适配：页脚 */
.f-logo img {
  width: 26px;
  height: 26px;
  object-fit: cover;
  border-radius: 6px;
  vertical-align: -7px;  /* 与文字基线对齐 */
  margin-right: 8px;
}

.logo-txt { font-size: 18px; font-weight: 800; letter-spacing: .5px; }
.logo-txt b { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.nav-menu { display: flex; gap: 26px; font-size: 15px; }
.nav-menu a { position: relative; padding: 6px 2px; font-weight: 500; }
.nav-menu a:hover { color: var(--c1); }
.nav-menu a.active { color: var(--c1); }
.nav-menu a.active::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  width: 22px; height: 4px; border-radius: 4px; background: var(--grad);
}

.search-box {
  display: flex; flex: 1; max-width: 300px; margin-left: auto;
  background: #fff; border: 2px solid var(--c1); border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.search-box input { flex: 1; padding: 9px 16px; font-size: 13px; }
.search-box button { padding: 0 20px; background: var(--grad); color: #fff; cursor: pointer; font-weight: 600; }
.search-box button:hover { opacity: .88; }

.hotline { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.hotline-icon {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font-size: 19px; background: rgba(91,84,240,.1); color: var(--c1);
  animation: pulse 3s infinite;
}
.hotline-info { line-height: 1.35; }
.hotline-info em { display: block; font-style: normal; font-size: 11px; color: var(--light); }
.hotline-info strong { font-size: 16px; color: var(--c1); letter-spacing: .5px; }

.nav-toggle { display: none; font-size: 22px; background: none; cursor: pointer; margin-left: auto; }

/* =====================================================
 * ② Hero 主视觉
 * ===================================================== */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(130deg, #3730c8 0%, #5b54f0 45%, #8f6bff 100%);
  color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .5;
}
.blob { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.blob-1 { width: 220px; height: 220px; top: -60px; left: -60px; background: rgba(255,255,255,.08); animation: floaty 7s infinite; }
.blob-2 { width: 90px;  height: 90px;  top: 18%;  right: 12%; background: rgba(255,184,0,.5); animation: floaty 5s infinite .5s; }
.blob-3 { width: 46px;  height: 46px;  bottom: 22%; left: 8%;  background: rgba(255,90,126,.55); animation: floaty 6s infinite 1s; }
.blob-4 { width: 130px; height: 130px; bottom: -30px; right: 30%; background: rgba(255,255,255,.06); animation: floaty 8s infinite; }

.hero-inner { position: relative; display: flex; align-items: center; gap: 40px; padding: 84px 16px 110px; }
.hero-text { flex: 1.2; }
.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 30px; font-size: 13px;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(4px);
  margin-bottom: 22px;
}
.hero-title { font-size: 52px; line-height: 1.22; letter-spacing: 2px; margin-bottom: 18px; text-shadow: 0 6px 24px rgba(0,0,0,.18); }
.grad-text {
  background: linear-gradient(90deg, #ffd76e, #ff9db0);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: 17px; opacity: .92; margin-bottom: 34px; letter-spacing: 1px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-stats { display: flex; gap: 0; list-style: none; }
.hero-stats li { padding: 0 34px; text-align: center; border-right: 1px solid rgba(255,255,255,.25); }
.hero-stats li:first-child { padding-left: 0; }
.hero-stats li:last-child { border: 0; }
.hero-stats strong { display: block; font-size: 26px; font-weight: 800; }
.hero-stats span { font-size: 12px; opacity: .8; }

/* 右侧漂浮迷你券卡 */
.hero-art { position: relative; flex: 1; min-height: 360px; }
.mini-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: #fff; color: var(--text); border-radius: 16px;
  padding: 13px 18px; box-shadow: var(--shadow-lg); font-size: 13px;
  animation: floaty 6s ease-in-out infinite;
}
.mini-card b { font-weight: 700; }
.mini-card span { color: var(--price); font-weight: 800; }
.mini-card i {
  font-style: normal; font-size: 11px; color: #fff; background: var(--c3);
  padding: 2px 8px; border-radius: 20px;
}
.mini-1 { top: 8%;  left: 10%; font-size: 22px; animation-delay: 0s; }
.mini-2 { top: 36%; left: 38%; font-size: 22px; animation-delay: .8s; }
.mini-3 { top: 64%; left: 6%;  font-size: 22px; animation-delay: 1.6s; }
.mini-4 { top: 84%; left: 34%; font-size: 22px; animation-delay: 2.4s; }

.hero-wave { display: block; width: 100%; height: 60px; margin-bottom: -1px; }

/* =====================================================
 * ③ 金刚区
 * ===================================================== */
.quicknav {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px;
  margin-top: -34px; position: relative; z-index: 5;
  background: #fff; border-radius: 20px; box-shadow: var(--shadow-md);
  padding: 24px 20px;
}
.qn-item { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.qn-item:hover { color: var(--c1); transform: translateY(-4px); }
.qn-icon {
  width: 58px; height: 58px; border-radius: 20px; display: grid; place-items: center;
  font-size: 26px; transition: .3s;
}
.qn-item:hover .qn-icon { transform: scale(1.12) rotate(-6deg); }
.g1 { background:#fff0f0 } .g2 { background:#fff4e5 } .g3 { background:#eef4ff }
.g4 { background:#fdeeda } .g5 { background:#f3e8ff } .g6 { background:#e8f7ef }
.g7 { background:#e8f0ff } .g8 { background:#fff9e6 }

/* =====================================================
 * ④ 区块通用 / 券卡
 * ===================================================== */
.section { padding: 56px 0 10px; }
.section-head { display: flex; align-items: flex-end; gap: 18px; margin-bottom: 26px; }
.section-head h2 { font-size: 26px; letter-spacing: 1px; }
.section-sub { color: var(--light); font-size: 13px; margin-top: 4px; }
.more-link { margin-left: auto; color: var(--sub); font-size: 14px; }
.more-link:hover { color: var(--c1); }

.countdown {
  display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--sub);
  background: #fff0f3; padding: 6px 12px; border-radius: 20px; margin-left: 6px;
}
.countdown b {
  min-width: 26px; text-align: center; background: var(--c3); color: #fff;
  border-radius: 6px; padding: 2px 4px; font-size: 13px; font-variant-numeric: tabular-nums;
}

.coupon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.coupon-card {
  background: #fff; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line); transition: .3s; cursor: pointer;
}
.coupon-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.coupon-cover {
  height: 168px; display: grid; place-items: center; font-size: 56px;
  background: linear-gradient(135deg, var(--g1), var(--g2)); position: relative;
}
.cover-tag {
  position: absolute; top: 12px; left: 12px; font-size: 11px; color: #fff;
  background: var(--c3); padding: 3px 10px; border-radius: 20px; letter-spacing: 1px;
  box-shadow: 0 3px 8px rgba(255,90,126,.4);
}
.coupon-body { padding: 16px 18px 18px; }
.coupon-body h3 {
  font-size: 15.5px; font-weight: 700; line-height: 1.45; height: 44px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.coupon-merchant { color: var(--light); font-size: 12px; margin: 7px 0 12px; }
.coupon-price { display: flex; align-items: center; justify-content: space-between; }
.price { display: flex; align-items: baseline; gap: 2px; color: var(--price); }
.price em { font-style: normal; font-size: 13px; font-weight: 700; }
.price b { font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.price del { color: var(--light); font-size: 12px; margin-left: 6px; font-weight: 400; }
.coupon-btn {
  font-size: 12px; color: #fff; background: linear-gradient(90deg, var(--c3), #ff7d94);
  padding: 6px 12px; border-radius: 8px 8px 8px 2px; font-weight: 600;
  box-shadow: 0 4px 10px rgba(255,90,126,.35);
}
.coupon-card:hover .coupon-btn { filter: brightness(1.06); }

/* 小卡（楼层用） */
.coupon-card.sm .coupon-cover { height: 130px; font-size: 44px; }
.coupon-card.sm .coupon-body { padding: 12px 14px 14px; }
.coupon-card.sm h3 { font-size: 14px; height: 40px; }
.coupon-card.sm .price b { font-size: 20px; }

/* =====================================================
 * ⑤ 数据横幅
 * ===================================================== */
.stats-band {
  margin-top: 56px; background: var(--grad); color: #fff; position: relative; overflow: hidden;
}
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); padding: 34px 16px; gap: 10px; }
.stat { text-align: center; position: relative; }
.stat:not(:last-child)::after {
  content: ""; position: absolute; right: 0; top: 15%; height: 70%;
  width: 1px; background: rgba(255,255,255,.3);
}
.stat b { font-size: 30px; font-weight: 800; display: block; }
.stat span { font-size: 13px; opacity: .85; }

/* =====================================================
 * ⑥ 分类楼层
 * ===================================================== */
.floor { display: grid; grid-template-columns: 260px 1fr; gap: 22px; }
.floor-rev { grid-template-columns: 1fr 260px; }
.floor-rev .floor-banner { order: 2; }

.floor-banner {
  border-radius: var(--r); padding: 28px 24px; color: #fff; position: relative; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow-md);
}
.fb-cake { background: linear-gradient(150deg, #ff7eb3, #ff65a3 55%, #a55eea); }
.fb-tea  { background: linear-gradient(150deg, #43cea2, #185a9d); }
.floor-banner b { font-size: 26px; letter-spacing: 2px; }
.floor-banner span { font-size: 17px; font-weight: 700; margin-top: 4px; color: #ffe98a; }
.floor-banner p { font-size: 13px; opacity: .9; margin: 14px 0 20px; }
.floor-banner a {
  margin-top: auto; align-self: flex-start; background: rgba(255,255,255,.92); color: var(--text);
  font-weight: 700; padding: 8px 22px; border-radius: 22px; font-size: 14px;
}
.floor-banner a:hover { background: #fff; transform: translateX(4px); }
.floor-banner::after {
  content: "🎉"; position: absolute; right: -12px; bottom: -16px; font-size: 96px; opacity: .18;
}

.floor-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* =====================================================
 * ⑦ 招商 CTA
 * ===================================================== */
.cta {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  background: linear-gradient(120deg, #23263b, #413a8f 60%, #6a5bff);
  border-radius: 22px; padding: 58px 30px; margin-top: 56px; box-shadow: var(--shadow-lg);
}
.cta h2 { font-size: 30px; letter-spacing: 3px; margin-bottom: 12px; }
.cta p { opacity: .85; margin-bottom: 26px; font-size: 15px; letter-spacing: 1px; }
.blob-c1 { width: 180px; height: 180px; top: -50px; left: -40px; background: rgba(255,255,255,.07); animation: floaty 6s infinite; }
.blob-c2 { width: 120px; height: 120px; bottom: -40px; right: 8%; background: rgba(255,184,0,.25); animation: floaty 7s infinite 1s; }

/* =====================================================
 * ⑧ 手机领取
 * ===================================================== */
.app-sec { display: flex; align-items: center; gap: 60px; padding-bottom: 70px; }
.app-mock { flex: 1; display: flex; justify-content: center; }

.phone {
  width: 264px; height: 540px; background: #1c1e2e; border-radius: 42px;
  padding: 12px; box-shadow: var(--shadow-lg); position: relative;
  transform: rotate(-4deg); transition: .4s;
}
.phone:hover { transform: rotate(0) scale(1.02); }
.phone-notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 22px; background: #1c1e2e; border-radius: 0 0 14px 14px; z-index: 3;
}
.phone-screen {
  height: 100%; border-radius: 32px; overflow: hidden; background: #f6f7fb;
  display: flex; flex-direction: column; gap: 10px; padding: 34px 12px 12px;
}
.ps-head { text-align: center; font-weight: 800; font-size: 15px; color: var(--text); }
.ps-banner {
  background: var(--grad); color: #fff; border-radius: 14px; padding: 18px 14px;
  font-weight: 800; font-size: 17px; line-height: 1.5; letter-spacing: 1px;
}
.ps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ps-grid span {
  background: #fff; border-radius: 10px; text-align: center; font-size: 11px;
  padding: 10px 0; box-shadow: 0 2px 6px rgba(0,0,0,.05);
}
.ps-card {
  background: #fff; border-radius: 12px; padding: 10px 12px;
  display: flex; justify-content: space-between; align-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.05); font-size: 12.5px;
}
.ps-card i { font-style: normal; color: var(--price); font-weight: 800; }

.app-text { flex: 1.2; }
.app-text h2 { font-size: 30px; margin-bottom: 16px; }
.app-desc { color: var(--sub); font-size: 15px; margin-bottom: 30px; }
.app-qr { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.qr-box {
  background: #fff; border-radius: 16px; padding: 14px; text-align: center;
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
}
.qr-box span { display: block; font-size: 12px; color: var(--sub); margin-top: 8px; }

/* =====================================================
 * ⑨ 页脚（无二维码 · 法律信息并入右栏）
 * ===================================================== */
.site-footer { background: #1c1e2e; color: #8f94ab; font-size: 13px; }
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1.4fr 1.4fr;
  gap: 40px; padding: 54px 16px 46px;
}
.f-logo { display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.f-logo img { width: 40px; height: 40px; object-fit: cover; border-radius: 10px; }
.f-logo b { color: #a99bff; }
.f-slogan { color: #c9cdf0; letter-spacing: 2px; margin-bottom: 12px; }
.f-desc { line-height: 1.9; }
.f-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; letter-spacing: 1px; }
.f-col a { display: block; padding: 5px 0; color: #8f94ab; }
.f-col a:hover { color: #fff; transform: translateX(4px); }
.f-addr, .f-time { padding: 5px 0; line-height: 1.8; }

/* 第四栏：法律信息（横排链接，权重高于 .f-col a 的 block 规则） */
.f-col .f-legal a,
.f-col .f-legal .fb-icp a { display: inline; padding: 0; transform: none; }
.f-links { display: flex; flex-wrap: wrap; align-items: center; row-gap: 6px; }
.f-links a:hover { color: #fff; }
.f-links i { font-style: normal; color: #3a3e5c; margin: 0 8px; }
.fb-company { color: #6a6f8c; margin-top: 10px; line-height: 1.8; }
.fb-icp { color: #6a6f8c; margin-top: 4px; line-height: 1.8; }
.fb-icp a:hover { color: #fff; }


/* ---------- 返回顶部 ---------- */
.backtop {
  position: fixed; right: 26px; bottom: 40px; width: 46px; height: 46px;
  border-radius: 50%; background: var(--grad); color: #fff; font-size: 20px;
  display: grid; place-items: center; cursor: pointer; opacity: 0; visibility: hidden;
  transform: translateY(14px); transition: .3s; box-shadow: var(--shadow-md); z-index: 99;
}
.backtop.show { opacity: 1; visibility: visible; transform: none; }

/* =====================================================
 * 响应式
 * ===================================================== */
@media (max-width: 1080px) {
  .hotline-info, .search-box { display: none; }
  .coupon-grid { grid-template-columns: repeat(2, 1fr); }
  .floor, .floor-rev { grid-template-columns: 1fr; }
  .floor-rev .floor-banner { order: 0; }
  .floor-products { grid-template-columns: repeat(2, 1fr); }
  .quicknav { grid-template-columns: repeat(4, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .hero-inner { flex-direction: column; padding: 56px 16px 90px; text-align: center; }
  .hero-title { font-size: 34px; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-art { display: none; }
  .nav-toggle { display: block; }
  .nav-menu {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0; padding: 8px 0;
    box-shadow: var(--shadow-md);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 12px 24px; }
  .nav-menu a.active::after { display: none; }
  .coupon-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .stat:nth-child(2)::after { display: none; }
  .quicknav { grid-template-columns: repeat(4, 1fr); margin-top: -20px; }
  .qn-icon { width: 46px; height: 46px; font-size: 21px; border-radius: 16px; }
  .app-sec { flex-direction: column; gap: 36px; }
  .phone { transform: none; width: 240px; height: 500px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .section-head { flex-wrap: wrap; }
}
.px-pay-tip{font-size:13px;line-height:1.6;color:#b45309;background:#fff7e6;
  border:1px solid #fde68a;border-radius:10px;padding:8px 14px;margin:10px auto}
.px-pay-tip b{color:#d97706}
