/* ===== 联通流量卡网 - 主样式文件 ===== */
/* 配色：小清新淡红色调 */

:root {
  --primary: #e8637a;
  --primary-light: #f5a0b0;
  --primary-dark: #c94060;
  --primary-bg: #fff5f7;
  --secondary: #ff8fa3;
  --accent: #ffb3c1;
  --text-dark: #2d2d2d;
  --text-mid: #555;
  --text-light: #888;
  --white: #fff;
  --border: #f0d0d8;
  --card-bg: #fffafb;
  --shadow: 0 4px 18px rgba(232,99,122,0.10);
  --shadow-hover: 0 8px 32px rgba(232,99,122,0.18);
  --radius: 14px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--primary-bg);
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 16px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--primary-dark); }

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-sm);
}

/* ===== 顶部导航 ===== */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(232,99,122,0.08);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.logo span {
  color: var(--primary);
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  font-weight: 900;
}

.main-nav {
  display: flex;
  gap: 6px;
  align-items: center;
}

.main-nav a {
  padding: 7px 16px;
  border-radius: 20px;
  color: var(--text-mid);
  font-size: 0.95rem;
  transition: all 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--primary-bg);
  color: var(--primary);
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
  color: white !important;
  font-weight: 600;
  padding: 8px 20px !important;
  border-radius: 22px !important;
}

.nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(232,99,122,0.35);
}

/* 汉堡菜单 */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== 移动端导航 ===== */
.mobile-nav {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 12px 20px 16px;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav a {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-mid);
  font-size: 1rem;
  display: block;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background: var(--primary-bg);
  color: var(--primary);
}

.mobile-nav .nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
  color: white !important;
  text-align: center;
  margin-top: 6px;
}

/* ===== 英雄区 ===== */
.hero {
  background: linear-gradient(135deg, #fff0f3 0%, #ffe4ea 50%, #ffd6e0 100%);
  padding: 70px 20px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(232,99,122,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,143,163,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(232,99,122,0.12);
  color: var(--primary-dark);
  border: 1px solid var(--primary-light);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.25;
  margin-bottom: 18px;
}

.hero h1 em {
  font-style: normal;
  color: var(--primary);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.8;
}

.hero-img-wrap {
  margin: 0 auto 36px;
  max-width: 780px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.hero-img-wrap img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ===== CTA 按钮 ===== */
.btn-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 16px 48px;
  border-radius: 50px;
  box-shadow: 0 6px 24px rgba(232,99,122,0.38);
  transition: all 0.25s;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(232,99,122,0.48);
  color: white;
}

.btn-cta:active {
  transform: translateY(0);
}

.btn-cta-outline {
  display: inline-block;
  background: transparent;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 36px;
  border-radius: 50px;
  border: 2px solid var(--primary);
  transition: all 0.25s;
  text-decoration: none;
}

.btn-cta-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-sm {
  padding: 10px 28px;
  font-size: 0.95rem;
}

/* ===== 浮动申请按钮 ===== */
.float-cta {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 999;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 22px;
  border-radius: 50px;
  box-shadow: 0 6px 24px rgba(232,99,122,0.45);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s;
  animation: pulse 2.5s infinite;
}

.float-cta:hover {
  transform: translateY(-3px) scale(1.04);
  color: white;
  box-shadow: 0 10px 32px rgba(232,99,122,0.55);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(232,99,122,0.45); }
  50% { box-shadow: 0 6px 32px rgba(232,99,122,0.65); }
}

/* ===== 通用区块 ===== */
.section {
  padding: 64px 20px;
}

.section-alt {
  background: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.section-title p {
  color: var(--text-mid);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.section-title .title-line {
  width: 50px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  margin: 12px auto 0;
}

/* ===== 卡片网格 ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.25s;
  box-shadow: var(--shadow);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary-bg), var(--accent));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.card p {
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== 套餐卡片 ===== */
.plan-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.plan-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.plan-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.plan-card.featured {
  border-color: var(--primary);
  background: linear-gradient(160deg, #fff5f7 0%, #fff 100%);
}

.plan-badge {
  position: absolute;
  top: 16px;
  right: -10px;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 18px 4px 12px;
  border-radius: 4px 0 0 4px;
}

.plan-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.plan-price {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin: 12px 0 4px;
}

.plan-price sup {
  font-size: 1.2rem;
  vertical-align: super;
}

.plan-price sub {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 400;
}

.plan-original {
  font-size: 0.85rem;
  color: var(--text-light);
  text-decoration: line-through;
  margin-bottom: 16px;
}

.plan-features {
  list-style: none;
  margin: 16px 0 24px;
  text-align: left;
}

.plan-features li {
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-features li:last-child { border-bottom: none; }

.plan-features li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== 信息横幅 ===== */
.info-banner {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 48px 20px;
  text-align: center;
}

.info-banner h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.info-banner p {
  font-size: 1.05rem;
  opacity: 0.92;
  max-width: 600px;
  margin: 0 auto 28px;
}

/* ===== 警示卡片 ===== */
.notice-card {
  background: #fff8f9;
  border: 1.5px solid var(--primary-light);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 24px 0;
}

.notice-card h4 {
  color: var(--primary-dark);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.notice-card p {
  color: var(--text-mid);
  font-size: 0.93rem;
  line-height: 1.7;
}

/* ===== FAQ ===== */
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-q {
  padding: 18px 22px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.98rem;
}

.faq-q::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 300;
  flex-shrink: 0;
}

.faq-a {
  padding: 0 22px 18px;
  color: var(--text-mid);
  font-size: 0.93rem;
  line-height: 1.8;
  border-top: 1px solid var(--border);
}

/* ===== 步骤流程 ===== */
.steps {
  display: flex;
  gap: 0;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-light), var(--secondary));
  z-index: 0;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 12px;
}

.step-num {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 auto 16px;
  box-shadow: 0 4px 14px rgba(232,99,122,0.3);
}

.step h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.step p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ===== 统计数字 ===== */
.stats-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 40px 0;
}

.stat-item {
  text-align: center;
  padding: 24px 32px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  min-width: 160px;
  box-shadow: var(--shadow);
}

.stat-num {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-light);
}

/* ===== 图片占位 ===== */
.img-placeholder {
  background: linear-gradient(135deg, #fce4ec, #f8bbd0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-align: center;
  padding: 10px;
}

/* ===== 面包屑 ===== */
.breadcrumb {
  padding: 14px 20px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb a:hover { color: var(--primary); }

.breadcrumb span { margin: 0 6px; }

/* ===== 页脚 ===== */
.site-footer {
  background: #2d1a1f;
  color: #ccc;
  padding: 48px 20px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.8;
  color: #aaa;
}

.footer-col h4 {
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #aaa;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--primary-light); }

.footer-bottom {
  border-top: 1px solid #3d2a2f;
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
  color: #777;
}

.footer-bottom a {
  color: #999;
}

/* ===== 内页 Hero ===== */
.page-hero {
  background: linear-gradient(135deg, #fff0f3 0%, #ffe4ea 100%);
  padding: 48px 20px;
  text-align: center;
}

.page-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--text-mid);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ===== 文章内容 ===== */
.article-content {
  max-width: 860px;
  margin: 0 auto;
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 36px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--primary);
}

.article-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 24px 0 10px;
}

.article-content p {
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 14px;
  font-size: 0.97rem;
}

.article-content ul, .article-content ol {
  padding-left: 22px;
  margin-bottom: 14px;
}

.article-content li {
  color: var(--text-mid);
  line-height: 1.8;
  font-size: 0.97rem;
  margin-bottom: 4px;
}

/* ===== 表格 ===== */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  margin: 20px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.93rem;
}

thead {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

thead th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 700;
}

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

tbody tr:hover { background: var(--primary-bg); }

tbody td {
  padding: 13px 18px;
  color: var(--text-mid);
}

tbody td:first-child {
  font-weight: 600;
  color: var(--text-dark);
}

/* ===== 标签 ===== */
.tag {
  display: inline-block;
  background: var(--primary-bg);
  color: var(--primary);
  border: 1px solid var(--primary-light);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 3px;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }

  .hero h1 { font-size: 1.8rem; }
  .hero-img-wrap img { height: 220px; }

  .card-grid-3 { grid-template-columns: 1fr; }
  .card-grid-4 { grid-template-columns: 1fr; }

  .steps {
    flex-direction: column;
    gap: 24px;
  }
  .steps::before { display: none; }

  .stats-row { gap: 14px; }
  .stat-item { min-width: 130px; padding: 18px 20px; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  .section { padding: 44px 16px; }
  .section-title h2 { font-size: 1.6rem; }

  .float-cta {
    bottom: 16px;
    right: 16px;
    padding: 12px 18px;
    font-size: 0.88rem;
  }

  .page-hero h1 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .btn-cta { padding: 14px 32px; font-size: 1rem; }
  .plan-price { font-size: 2.2rem; }
}

/* ===== 移动端菜单激活 ===== */
.mobile-nav.open { display: flex; }
