/* ===== 流量卡推荐网 - 全局样式 ===== */
/* 小清新淡蓝色调 */

:root {
  --primary: #3a9bd5;
  --primary-light: #6db8e8;
  --primary-dark: #1e7ab8;
  --accent: #00c9a7;
  --accent-light: #4dd9c0;
  --bg-main: #f0f7fd;
  --bg-card: #ffffff;
  --bg-section: #e8f4fc;
  --text-main: #2c3e50;
  --text-sub: #5a7a8a;
  --text-light: #8faab8;
  --border: #c8e0f0;
  --shadow: 0 4px 18px rgba(58,155,213,0.10);
  --shadow-hover: 0 8px 32px rgba(58,155,213,0.18);
  --radius: 14px;
  --radius-sm: 8px;
  --cta-bg: #ff6b35;
  --cta-hover: #e85a25;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.7;
}

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

img { max-width: 100%; height: auto; display: block; }

/* ===== 布局 ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 60px 0; }
.section-alt { background: var(--bg-section); }

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--text-sub);
  font-size: 1.05rem;
  margin-bottom: 40px;
}

/* ===== 导航 ===== */
.navbar {
  background: #fff;
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(58,155,213,0.08);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.nav-cta {
  background: var(--cta-bg);
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: 24px !important;
  border-bottom: none !important;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--cta-hover) !important; color: #fff !important; }

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

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

/* ===== CTA 按钮 ===== */
.btn-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--cta-bg), #ff8c42);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 16px 40px;
  border-radius: 50px;
  box-shadow: 0 6px 24px rgba(255,107,53,0.35);
  transition: all 0.25s;
  text-align: center;
  letter-spacing: 1px;
  cursor: pointer;
  border: none;
}

.btn-cta:hover {
  background: linear-gradient(135deg, var(--cta-hover), #e87030);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(255,107,53,0.45);
}

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

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

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== Hero 区域 ===== */
.hero {
  background: linear-gradient(135deg, #1e7ab8 0%, #3a9bd5 50%, #6db8e8 100%);
  color: #fff;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 320px; height: 320px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 260px; height: 260px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.hero-text { flex: 1; }

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  font-size: 0.85rem;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 18px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.hero-desc {
  font-size: 1.1rem;
  opacity: 0.92;
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-img {
  flex: 0 0 420px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}

.hero-img img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

/* ===== 图片占位 ===== */
.img-placeholder {
  background: linear-gradient(135deg, #c8e0f0, #a8d0e8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sub);
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}

.img-placeholder::after {
  content: '📷 图片占位';
  position: absolute;
  font-size: 0.8rem;
  color: #7aaac0;
}

/* ===== 卡片 ===== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  transition: box-shadow 0.25s, transform 0.25s;
  border: 1px solid var(--border);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

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

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

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

/* ===== 网格 ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

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

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

.plan-card.featured {
  border-color: var(--primary);
  background: linear-gradient(160deg, #f0f7fd, #e0f0fa);
}

.plan-badge {
  position: absolute;
  top: 14px; right: -22px;
  background: var(--cta-bg);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 32px;
  transform: rotate(45deg);
  letter-spacing: 1px;
}

.plan-operator {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: 1px;
}

.plan-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
}

.plan-flow {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}

.plan-flow span { font-size: 1.2rem; font-weight: 600; }

.plan-price {
  font-size: 1rem;
  color: var(--text-sub);
  margin-bottom: 20px;
}

.plan-price strong {
  font-size: 1.5rem;
  color: var(--cta-bg);
  font-weight: 800;
}

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

.plan-features li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-sub);
  border-bottom: 1px dashed var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

/* ===== 大CTA横幅 ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

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

.cta-banner p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 32px;
}

.cta-banner .btn-cta {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}

.cta-banner .btn-cta:hover {
  background: #f0f7fd;
  color: var(--primary-dark);
}

/* ===== 步骤流程 ===== */
.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(--accent));
  z-index: 0;
}

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

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

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

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

/* ===== 对比表格 ===== */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.compare-table th {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 16px 20px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}

.compare-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-main);
}

.compare-table tr:nth-child(even) td { background: var(--bg-section); }
.compare-table tr:last-child td { border-bottom: none; }

.compare-table .td-label {
  text-align: left;
  font-weight: 600;
  color: var(--text-main);
}

.compare-table .td-good { color: var(--accent); font-weight: 700; }
.compare-table .td-bad { color: #e74c3c; }

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

.faq-q {
  padding: 18px 24px;
  font-weight: 600;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-q:hover { background: var(--bg-section); }

.faq-q::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 300;
  transition: transform 0.3s;
}

.faq-item.open .faq-q::after { transform: rotate(45deg); }

.faq-a {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s;
  color: var(--text-sub);
  font-size: 0.95rem;
  line-height: 1.8;
}

.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 24px 18px;
}

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

.tag-orange { background: #fff3ee; color: var(--cta-bg); border-color: #ffd0b8; }
.tag-green { background: #e8faf6; color: var(--accent); border-color: #b0e8d8; }

/* ===== 统计数字 ===== */
.stat-row {
  display: flex;
  gap: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 32px 20px;
  border-right: 1px solid var(--border);
}

.stat-item:last-child { border-right: none; }

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

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

/* ===== 运营商 logo 行 ===== */
.operator-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.operator-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 40px;
  padding: 10px 24px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  box-shadow: var(--shadow);
}

/* ===== 提示框 ===== */
.notice {
  background: #e8f4fc;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  color: var(--text-sub);
  font-size: 0.95rem;
  margin: 20px 0;
}

.notice-warn {
  background: #fff8e8;
  border-left-color: #f0a500;
}

/* ===== 页脚 ===== */
.footer {
  background: #1a2e3d;
  color: #8faab8;
  padding: 48px 0 24px;
}

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

.footer-brand .logo { color: #fff; margin-bottom: 12px; }

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #6a8a9a;
}

.footer-col h4 {
  color: #c8e0f0;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
}

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

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

.footer-col ul li a {
  color: #6a8a9a;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid #2a3e4d;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #4a6a7a;
}

.footer-bottom a {
  color: #4a6a7a;
  transition: color 0.2s;
}

.footer-bottom a:hover { color: var(--primary-light); }

/* ===== 面包屑 ===== */
.breadcrumb {
  padding: 14px 0;
  font-size: 0.88rem;
  color: var(--text-light);
}

.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* ===== 页面 Hero (内页) ===== */
.page-hero {
  background: linear-gradient(135deg, #1e7ab8, #3a9bd5);
  color: #fff;
  padding: 48px 0;
  text-align: center;
}

.page-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.page-hero p {
  font-size: 1.05rem;
  opacity: 0.9;
}

/* ===== 悬浮CTA ===== */
.float-cta {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.float-cta a {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--cta-bg), #ff8c42);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 22px;
  border-radius: 50px;
  box-shadow: 0 6px 24px rgba(255,107,53,0.4);
  transition: all 0.25s;
  white-space: nowrap;
}

.float-cta a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(255,107,53,0.5);
  color: #fff;
}

.float-cta .pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(255,107,53,0.4); }
  50% { box-shadow: 0 6px 36px rgba(255,107,53,0.7); }
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .hero-inner { flex-direction: column; gap: 32px; }
  .hero-img { flex: none; width: 100%; }
  .hero h1 { font-size: 2rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .steps { flex-wrap: wrap; }
  .step { flex: 0 0 50%; margin-bottom: 24px; }
}

@media (max-width: 640px) {
  .section { padding: 40px 0; }
  .section-title { font-size: 1.5rem; }
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 1.7rem; }
  .hero-btns { flex-direction: column; }
  .btn-cta { padding: 14px 28px; font-size: 1rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-row { flex-wrap: wrap; }
  .stat-item { flex: 0 0 50%; border-bottom: 1px solid var(--border); }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #fff; padding: 16px 20px; border-bottom: 2px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,0.08); gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links a { display: block; padding: 12px 0; }
  .hamburger { display: flex; }
  .float-cta { bottom: 16px; right: 16px; }
  .float-cta a { padding: 12px 18px; font-size: 0.9rem; }
  .plan-card { padding: 20px 16px; }
  .compare-table th, .compare-table td { padding: 10px 12px; font-size: 0.85rem; }
  .step { flex: 0 0 100%; }
  .cta-banner h2 { font-size: 1.5rem; }
  .page-hero h1 { font-size: 1.5rem; }
}
