/* ============================================================
   JunjunCard — 折扣卡系统与旅游卡券业务展示站
   ============================================================ */

:root {
  --ink: #0f172a;
  --muted: #5b6478;
  --line: #e8eaf3;
  --bg-alt: #f6f7fb;
  --brand: #6366f1;
  --brand-deep: #4f46e5;
  --brand-2: #8b5cf6;
  --grad-brand: linear-gradient(135deg, #6366f1, #8b5cf6);
  --radius-lg: 24px;
  --container: 1120px;
  --nav-h: 66px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
svg { display: block; }

::selection { background: rgba(99, 102, 241, .25); }
:focus-visible { outline: 2px solid #818cf8; outline-offset: 3px; border-radius: 6px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4.5vw, 32px);
}

section[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

/* ---------- 导航 ---------- */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  background: rgba(9, 13, 28, .62);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: background .3s ease, box-shadow .3s ease;
}

.site-nav.scrolled {
  background: rgba(9, 13, 28, .9);
  box-shadow: 0 12px 32px -18px rgba(2, 6, 23, .8);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .4px;
  white-space: nowrap;
}

.brand-mark { width: 30px; height: 30px; flex: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links > a {
  padding: 8px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .82);
  font-size: 14.5px;
  white-space: nowrap;
  transition: color .2s ease, background-color .2s ease;
}

.nav-links > a:hover { color: #fff; background: rgba(255, 255, 255, .1); }

.nav-links > .nav-cta {
  margin-left: 8px;
  padding: 9px 20px;
  color: #fff;
  font-weight: 600;
  background: var(--grad-brand);
  box-shadow: 0 10px 22px -12px rgba(99, 102, 241, .9);
}

.nav-links > .nav-cta:hover { background: linear-gradient(135deg, #6d70f5, #9468f8); }

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 13px;
  background: rgba(255, 255, 255, .07);
  cursor: pointer;
  transition: background-color .2s ease;
}

.nav-toggle:hover { background: rgba(255, 255, 255, .14); }

.nav-toggle span {
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform .25s ease, opacity .2s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(122px, 15vw, 158px) 0 clamp(72px, 9vw, 104px);
  color: #fff;
  background:
    radial-gradient(58% 72% at 76% 8%, rgba(99, 102, 241, .38), transparent 62%),
    radial-gradient(48% 58% at 12% 96%, rgba(14, 165, 233, .2), transparent 60%),
    linear-gradient(180deg, #0a0f22, #0d1430 60%, #0e1533);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .055) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .85), transparent 72%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .85), transparent 72%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

.hero-copy > * { animation: rise .75s cubic-bezier(.22, .61, .36, 1) both; }
.hero-copy > *:nth-child(1) { animation-delay: .05s; }
.hero-copy > *:nth-child(2) { animation-delay: .13s; }
.hero-copy > *:nth-child(3) { animation-delay: .21s; }
.hero-copy > *:nth-child(4) { animation-delay: .29s; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 13.5px;
  letter-spacing: .04em;
  color: #c7d2fe;
  background: rgba(99, 102, 241, .14);
  border: 1px solid rgba(129, 140, 248, .36);
}

.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #818cf8;
  box-shadow: 0 0 10px rgba(129, 140, 248, .9);
}

.hero h1 {
  margin-bottom: 20px;
  font-size: clamp(2.05rem, 5.2vw, 3.35rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .02em;
}

.grad-text {
  background: linear-gradient(115deg, #a5b4fc 5%, #c4b5fd 55%, #7dd3fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 560px;
  margin-bottom: 34px;
  font-size: clamp(15px, 1.6vw, 16.5px);
  line-height: 1.9;
  color: rgba(219, 228, 245, .78);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero 卡券视觉 */
.hero-cards {
  position: relative;
  min-height: 380px;
  animation: rise .9s cubic-bezier(.22, .61, .36, 1) .25s both;
}

.hc {
  position: absolute;
  width: min(76%, 306px);
  aspect-ratio: 1.58 / 1;
  padding: 18px 20px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  box-shadow: 0 36px 64px -30px rgba(2, 6, 23, .85);
  transform: rotate(var(--rot, 0deg));
  animation: float 9s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  will-change: transform;
}

.hc-1 {
  left: 0;
  top: 58px;
  z-index: 3;
  --rot: -8deg;
  --delay: 0s;
  background: linear-gradient(135deg, #6d28d9, #7c3aed 50%, #a78bfa);
}

.hc-2 {
  right: 0;
  top: 0;
  z-index: 2;
  --rot: 7deg;
  --delay: -3s;
  background: linear-gradient(135deg, #0369a1, #0284c7 55%, #38bdf8);
}

.hc-3 {
  right: 12%;
  bottom: 0;
  z-index: 1;
  --rot: -2deg;
  --delay: -6s;
  background: linear-gradient(135deg, #b45309, #d97706 55%, #fbbf24);
}

.hc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hc-chip {
  width: 34px;
  height: 24px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4);
}

.hc-tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .1em;
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .3);
}

.hc-num {
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 600;
  letter-spacing: .16em;
  white-space: nowrap;
  color: rgba(255, 255, 255, .95);
}

.hc-foot {
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .82);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-12px) rotate(var(--rot, 0deg)); }
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}

.btn-primary {
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 14px 28px -12px rgba(99, 102, 241, .75);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -12px rgba(99, 102, 241, .85);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .32);
}

.btn-ghost:hover { background: rgba(255, 255, 255, .15); }

.btn-light {
  color: #1e1b4b;
  background: #fff;
  box-shadow: 0 18px 36px -16px rgba(2, 6, 23, .6);
}

.btn-light:hover { transform: translateY(-2px); }

/* ---------- 通用 Section ---------- */
.section { padding: clamp(70px, 9vw, 112px) 0; }
.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 680px;
  margin: 0 auto clamp(40px, 6vw, 60px);
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--brand-deep);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
  opacity: .75;
}

.section-head h2 {
  margin-bottom: 14px;
  font-size: clamp(1.55rem, 3.4vw, 2.2rem);
  letter-spacing: .02em;
}

.section-sub {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.85;
}

/* ---------- 核心业务 ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.6vw, 28px);
}

.service-card {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 3.6vw, 42px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, .14), transparent 68%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: #dcdfef;
  box-shadow: 0 32px 64px -34px rgba(15, 23, 42, .3);
}

.service-card:hover::before { opacity: 1; }

.service-card h3 { margin-bottom: 12px; font-size: 20px; }

.service-card > p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: 16px;
  color: var(--brand-deep);
  background: linear-gradient(135deg, rgba(99, 102, 241, .1), rgba(139, 92, 246, .16));
}

.icon-box svg { width: 25px; height: 25px; }

.icon-box--travel {
  color: #0284c7;
  background: linear-gradient(135deg, rgba(14, 165, 233, .1), rgba(56, 189, 248, .18));
}

.icon-box--sm {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 13px;
}

.icon-box--sm svg { width: 21px; height: 21px; }

.icon-box--cyan {
  color: #0e7490;
  background: linear-gradient(135deg, rgba(6, 182, 212, .1), rgba(34, 211, 238, .18));
}

.icon-box--amber {
  color: #b45309;
  background: linear-gradient(135deg, rgba(245, 158, 11, .12), rgba(251, 191, 36, .2));
}

.icon-box--green {
  color: #047857;
  background: linear-gradient(135deg, rgba(16, 185, 129, .1), rgba(52, 211, 153, .18));
}

.service-list { display: grid; gap: 11px; }

.service-list li {
  position: relative;
  padding-left: 27px;
  color: #374151;
  font-size: 14.5px;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 6px;
  height: 11px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  border-radius: 1px;
  transform: rotate(42deg);
}

/* ---------- 卡券产品 ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.2vw, 24px);
}

.v-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 1.42 / 1;
  padding: clamp(18px, 2vw, 24px);
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  box-shadow: 0 26px 52px -28px rgba(15, 23, 42, .5);
  transition: transform .35s ease, box-shadow .35s ease;
}

.v-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, .16) 46%, transparent 60%);
  pointer-events: none;
}

.v-card > * { position: relative; z-index: 2; }

.v-card:hover { transform: translateY(-6px); }

.v-card--discount { background: linear-gradient(135deg, #6d28d9, #8b5cf6 55%, #a78bfa); }
.v-card--discount:hover { box-shadow: 0 32px 60px -28px rgba(109, 40, 217, .55); }

.v-card--travel { background: linear-gradient(135deg, #0e7490, #0ea5e9 60%, #38bdf8); }
.v-card--travel:hover { box-shadow: 0 32px 60px -28px rgba(14, 116, 144, .55); }

.v-card--gift { background: linear-gradient(135deg, #b45309, #f59e0b 60%, #fbbf24); }
.v-card--gift:hover { box-shadow: 0 32px 60px -28px rgba(180, 83, 9, .5); }

.v-card--member { background: linear-gradient(135deg, #065f46, #059669 60%, #34d399); }
.v-card--member:hover { box-shadow: 0 32px 60px -28px rgba(6, 95, 70, .5); }

.v-label {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: .06em;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .3);
}

.v-body h3 { margin-bottom: 7px; font-size: clamp(16px, 1.4vw, 18.5px); }

.v-body p {
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .85);
}

/* ---------- 服务优势 ---------- */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.2vw, 24px);
}

.adv {
  padding: clamp(22px, 2.6vw, 30px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.adv:hover {
  transform: translateY(-4px);
  border-color: #dcdfef;
  box-shadow: 0 26px 52px -30px rgba(15, 23, 42, .28);
}

.adv h3 { margin-bottom: 9px; font-size: 16.5px; }

.adv p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

/* ---------- 合作流程 ---------- */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.4vw, 26px);
}

.flow-grid li {
  position: relative;
  padding: clamp(22px, 2.6vw, 30px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.flow-grid li::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -14px;
  width: 7px;
  height: 7px;
  border-top: 2px solid #c3c8dd;
  border-right: 2px solid #c3c8dd;
  transform: translateY(-50%) rotate(45deg);
}

.flow-grid li:last-child::after { display: none; }

.flow-num {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .05em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.flow-grid h3 { margin-bottom: 8px; font-size: 16.5px; }

.flow-grid p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ---------- 联系我们 ---------- */
.contact-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(46px, 7vw, 84px) clamp(24px, 5vw, 64px);
  border-radius: 30px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #101636, #1e1b4b 52%, #2e1065);
}

.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(46% 62% at 84% 10%, rgba(139, 92, 246, .45), transparent 62%),
    radial-gradient(42% 58% at 8% 95%, rgba(56, 189, 248, .22), transparent 62%);
  pointer-events: none;
}

.contact-panel > * { position: relative; z-index: 1; }

.contact-panel h2 {
  margin-bottom: 16px;
  font-size: clamp(1.6rem, 3.8vw, 2.25rem);
}

.contact-panel > p:not(.contact-note) {
  max-width: 560px;
  margin: 0 auto 32px;
  color: rgba(226, 232, 240, .82);
  font-size: 15.5px;
  line-height: 1.85;
}

.contact-panel > .contact-note {
  margin: 20px auto 0;
  font-size: 13px;
  color: rgba(226, 232, 240, .55);
}

/* ---------- 页脚 ---------- */
.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.footer-brand {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .3px;
}

.footer-meta { text-align: right; }

.footer-inner p {
  color: #8b93a7;
  font-size: 13.5px;
}

.footer-beian { margin-top: 4px; }

/* ---------- 滚动入场 ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding-top: clamp(108px, 18vw, 140px); }
  .hero-cards { min-height: 350px; max-width: 440px; margin: 0 auto; }
  .card-grid, .adv-grid, .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-grid li::after { display: none; }
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(12, 16, 34, .97);
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 24px 48px -20px rgba(2, 6, 23, .9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links > a { padding: 12px 16px; text-align: center; }
  .nav-links > .nav-cta { margin: 6px 0 0; }
}

@media (max-width: 700px) {
  .service-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
  .v-card { aspect-ratio: 1.5 / 1; }
  .adv-grid { grid-template-columns: 1fr; }
  .flow-grid { grid-template-columns: 1fr; }
  .hero-cards { min-height: 318px; }
  .hc { width: min(78%, 250px); }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-meta { text-align: center; }
}

/* ---------- 降低动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .js .reveal { opacity: 1; transform: none; }
  .hc { animation: none; transform: rotate(var(--rot, 0deg)); }
}
