/* ===== 号卡分销聚合网站 前台样式（电脑+手机自适应） ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  background: #f5f7fa;
}
a { color: #1677ff; text-decoration: none; }
a:hover { color: #0958d9; }
img { max-width: 100%; vertical-align: middle; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ===== 顶部导航 ===== */
.site-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo a { display: flex; align-items: center; }
.logo img { height: 36px; max-height: 36px; width: auto; }
.logo-text { font-size: 20px; font-weight: 700; color: #1677ff; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  background: transparent;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: #333; border-radius: 2px; transition: all 0.25s; }
.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); }
.site-nav ul { display: flex; list-style: none; gap: 6px; }
.site-nav li a {
  display: block;
  padding: 8px 14px;
  border-radius: 6px;
  color: #333;
  font-size: 15px;
}
.site-nav li a:hover { background: #f0f5ff; color: #1677ff; }
.site-nav li.active a { background: #1677ff; color: #fff; }

/* ===== 主体 ===== */
.main { padding: 20px 0 40px; }
.section { margin-bottom: 28px; }
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 19px;
  font-weight: 700;
  color: #222;
}
.section-title::before {
  content: "";
  width: 4px;
  height: 18px;
  background: #1677ff;
  border-radius: 2px;
  margin-right: 10px;
}
.section-title .more { font-size: 13px; font-weight: 400; color: #999; }

/* ===== 轮播 ===== */
.banner {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #e6ebf2;
  margin-bottom: 28px;
}
.banner-track { display: flex; transition: transform 0.5s ease; }
.banner-slide { flex: 0 0 100%; position: relative; }
.banner-slide img { width: 100%; height: 320px; object-fit: cover; display: block; }
.banner-caption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border-radius: 6px;
  font-size: 15px;
}
.banner-dots {
  position: absolute;
  right: 16px;
  bottom: 14px;
  display: flex;
  gap: 8px;
}
.banner-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}
.banner-dots button.active { background: #fff; }

/* ===== 卡片网格（号卡/WiFi 平台） ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(22, 119, 255, 0.06);
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover {
  box-shadow: 0 10px 24px rgba(22, 119, 255, 0.12);
  transform: translateY(-3px);
}
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.card-logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: cover;
  background: #f0f5ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #1677ff;
  font-weight: 700;
}
.card-name { font-size: 16px; font-weight: 700; color: #222; }
.card-intro {
  flex: 1;
  font-size: 13px;
  color: #888;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* 推荐码（醒目展示） */
.card-recommend {
  margin-bottom: 12px;
  padding: 7px 10px;
  border: 1px dashed #b7d3ff;
  border-radius: 8px;
  background: #f0f7ff;
  color: #1677ff;
  font-size: 13px;
  text-align: center;
}
.card-recommend b { font-size: 15px; letter-spacing: 0.5px; }
/* 四按钮组：注册/登录/APP下载/店铺 */
.card-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.card-actions:empty { display: none; margin-bottom: 0; }
.card-action-btn {
  display: block;
  padding: 7px 6px;
  border: 1px solid #cfe2ff;
  border-radius: 8px;
  background: #fff;
  color: #1677ff;
  font-size: 13px;
  text-align: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.card-action-btn:hover {
  background: #1677ff;
  border-color: #1677ff;
  color: #fff;
}
.btn {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}
.btn-primary { background: #1677ff; color: #fff; }
.btn-primary:hover { background: #0958d9; color: #fff; }
.btn-block { display: block; width: 100%; }

/* ===== 资讯推荐 ===== */
.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: block;
  transition: box-shadow 0.2s;
}
.news-item:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1); }
.news-cover { width: 100%; height: 150px; object-fit: cover; background: #eef1f5; display: block; }
.news-body { padding: 12px 14px; }
.news-title {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
}
.news-time { font-size: 12px; color: #999; }

/* ===== 页脚（柔和深蓝灰渐变 + 圆形联系图标） ===== */
.site-footer {
  background: linear-gradient(135deg, #2b3a52 0%, #3a4d68 55%, #42566f 100%);
  color: #c3ccd9;
  padding: 32px 0 24px;
  margin-top: 28px;
  font-size: 13px;
}
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand { min-width: 200px; }
.footer-logo {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.footer-slogan { color: #9fb0c6; line-height: 1.7; }
.footer-contact { text-align: right; }
.footer-contact-title {
  display: block;
  font-size: 13px;
  color: #9fb0c6;
  margin-bottom: 10px;
}
.footer-contact-icons { display: flex; gap: 12px; justify-content: flex-end; }
.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}
.contact-icon:hover {
  background: #1677ff;
  border-color: #1677ff;
  color: #fff;
  transform: translateY(-2px);
}
.footer-contact-tip { color: #7f91aa; font-size: 11px; margin-top: 8px; }
.footer-links { margin-bottom: 12px; }
.footer-links-title { color: #9fb0c6; margin-right: 6px; }
.footer-links a { color: #c3ccd9; margin: 0 8px 6px 0; display: inline-block; }
.footer-links a:hover { color: #fff; }
.footer-disclaimer { color: #9fb0c6; margin-bottom: 10px; line-height: 1.8; }
.footer-copyright { color: #9fb0c6; }
.footer-copyright a { color: #9fb0c6; }
.footer-copyright a:hover { color: #fff; }

@media (max-width: 768px) {
  .footer-top { flex-direction: column; }
  .footer-contact { text-align: left; }
  .footer-contact-icons { justify-content: flex-start; }
}

/* ===== 响应式：平板 ===== */
@media (max-width: 992px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .news-list { grid-template-columns: repeat(2, 1fr); }
  .banner-slide img { height: 240px; }
}

/* ===== 内页页头 ===== */
.page-head { margin: 8px 0 20px; }
.page-title { font-size: 24px; font-weight: 700; color: #222; margin-bottom: 6px; }
.page-desc { font-size: 13px; color: #999; }
.empty-tip {
  padding: 40px 20px;
  text-align: center;
  color: #999;
  background: #fff;
  border-radius: 10px;
  font-size: 14px;
}

/* ===== 资讯中心：左右布局 ===== */
.news-layout { display: flex; gap: 20px; align-items: flex-start; }
.news-side { flex: 0 0 220px; }
.side-box {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  padding: 16px;
  position: sticky;
  top: 76px;
}
.side-title {
  font-size: 15px;
  font-weight: 700;
  color: #222;
  padding-bottom: 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid #f0f0f0;
}
.cat-list { list-style: none; }
.cat-list li a {
  display: block;
  padding: 9px 10px;
  border-radius: 6px;
  color: #555;
  font-size: 14px;
}
.cat-list li a:hover { background: #f0f5ff; color: #1677ff; }
.cat-list li.active a { background: #1677ff; color: #fff; }
.news-main { flex: 1; min-width: 0; }

/* ===== 文章列表行 ===== */
.article-list { list-style: none; }
.article-row {
  display: flex;
  gap: 14px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  padding: 14px;
  margin-bottom: 12px;
  align-items: center;
}
.article-thumb {
  flex: 0 0 150px;
  height: 92px;
  border-radius: 8px;
  overflow: hidden;
  background: #eef1f5;
  display: block;
}
.article-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-info { flex: 1; min-width: 0; }
.article-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.article-title:hover { color: #1677ff; }
.article-meta { display: flex; align-items: center; gap: 10px; }
.article-meta .tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  background: #f0f5ff;
  color: #1677ff;
  font-size: 12px;
}
.article-meta .time { font-size: 12px; color: #999; }

/* ===== 分页 ===== */
.pagination { display: flex; justify-content: center; gap: 8px; list-style: none; margin: 20px 0 10px; }
.pagination li a,
.pagination li span {
  display: block;
  min-width: 34px;
  padding: 6px 10px;
  text-align: center;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  color: #555;
  font-size: 13px;
}
.pagination li.active span { background: #1677ff; border-color: #1677ff; color: #fff; }
.pagination li a:hover { border-color: #1677ff; color: #1677ff; }

/* ===== 响应式：平板 ===== */
@media (max-width: 992px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .news-list { grid-template-columns: repeat(2, 1fr); }
  .banner-slide img { height: 240px; }
  .article-thumb { flex: 0 0 120px; height: 80px; }
}

/* ===== 响应式：手机 ===== */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    display: none;
    border-top: 1px solid #f0f0f0;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
  .site-nav li a { padding: 12px 20px; border-radius: 0; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .news-list { grid-template-columns: 1fr; }
  .banner-slide img { height: 180px; }
  .container { padding: 0 12px; }
  .news-layout { flex-direction: column; }
  .news-side { flex: 1 1 auto; width: 100%; }
  .side-box { position: static; }
  .cat-list { display: flex; flex-wrap: wrap; gap: 6px; }
  .cat-list li a { padding: 6px 12px; }
  .article-row { flex-direction: column; align-items: flex-start; }
  .article-thumb { flex: 1 1 auto; width: 100%; height: 150px; }
  .article-title { white-space: normal; -webkit-line-clamp: 2; -webkit-box-orient: vertical; display: -webkit-box; }
}

/* ===== 文章详情页 ===== */
.detail-wrap { max-width: 860px; margin: 0 auto; }
.detail-box {
  background: #fff;
  border-radius: 10px;
  padding: 28px 32px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.detail-title { font-size: 24px; font-weight: 700; color: #222; line-height: 1.4; }
.detail-meta { display: flex; align-items: center; gap: 12px; margin: 14px 0 20px; color: #999; font-size: 13px; flex-wrap: wrap; }
.detail-meta .tag {
  background: #f0f5ff; color: #1677ff; padding: 2px 10px; border-radius: 10px; font-size: 13px;
}
.detail-body { border-top: 1px solid #f0f0f0; padding-top: 18px; font-size: 15px; line-height: 1.9; color: #333; }
.detail-body p { margin-bottom: 14px; }
.detail-body h2.detail-h { font-size: 18px; margin: 22px 0 12px; color: #222; }
.detail-body h2.detail-h::before { content: ""; display: inline-block; width: 4px; height: 18px; background: #1677ff; border-radius: 2px; margin-right: 8px; vertical-align: -2px; }
.detail-nav { display: flex; gap: 12px; margin-top: 16px; }
.detail-nav .pn-item {
  flex: 1;
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  min-width: 0;
}
.pn-label { display: block; font-size: 12px; color: #999; margin-bottom: 4px; }
.pn-link { font-size: 14px; color: #1677ff; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn-empty { font-size: 14px; color: #bbb; }

/* ===== APP下载页 ===== */
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.app-card {
  background: #fff;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.app-head { display: flex; gap: 12px; align-items: flex-start; }
.app-icon { width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0; object-fit: cover; background: #f0f5ff; }
.app-icon-fallback { display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; color: #1677ff; }
.app-info { min-width: 0; }
.app-name { font-size: 16px; font-weight: 600; color: #222; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-intro { font-size: 13px; color: #888; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.app-download {
  display: block;
  text-align: center;
  margin-top: 14px;
  padding: 8px 0;
  background: #1677ff;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
}
.app-download:hover { background: #0958d9; color: #fff; }

/* ===== FAQ常见问题页 ===== */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}
.faq-item[open] { border: 1px solid #e6f0ff; }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
  color: #222;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q-icon { position: relative; width: 12px; height: 12px; flex-shrink: 0; transition: transform 0.2s; }
.faq-q-icon::before,
.faq-q-icon::after { content: ""; position: absolute; background: #1677ff; border-radius: 1px; }
.faq-q-icon::before { left: 0; top: 5px; width: 12px; height: 2px; }
.faq-q-icon::after { left: 5px; top: 0; width: 2px; height: 12px; }
.faq-item[open] .faq-q-icon { transform: rotate(45deg); }
.faq-a { margin: 0 18px; padding: 14px 0 16px; color: #555; font-size: 14px; line-height: 1.9; border-top: 1px dashed #f0f0f0; }

@media (max-width: 768px) {
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-box { padding: 20px 16px 16px; }
  .detail-nav { flex-direction: column; }
}
@media (max-width: 480px) {
  .app-grid { grid-template-columns: 1fr; }
}

/* ===== 平台对比页 ===== */
.compare-wrap { max-width: 960px; margin: 0 auto; }
.compare-tabs { display: flex; gap: 10px; margin-bottom: 14px; }
.tab-btn {
  padding: 8px 22px;
  border: 1px solid #d9d9d9;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: #555;
}
.tab-btn.active { background: #1677ff; border-color: #1677ff; color: #fff; }
.compare-panel { display: none; }
.compare-panel.active { display: block; }
.table-wrap {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow-x: auto;
}
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.compare-table th, .compare-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #f0f0f0; vertical-align: top; }
.compare-table thead th { background: #f7f9fc; color: #333; font-weight: 600; white-space: nowrap; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover { background: #fafcff; }
.compare-table .c-name { font-weight: 600; color: #1677ff; white-space: nowrap; }

/* ===== 登录/注册表单 ===== */
.auth-wrap { display: flex; justify-content: center; padding: 20px 0; }
.auth-box {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 10px;
  padding: 28px 30px 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.auth-title { font-size: 22px; font-weight: 700; color: #222; text-align: center; }
.auth-desc { text-align: center; color: #999; font-size: 13px; margin: 6px 0 18px; }
.form-item { margin-bottom: 16px; }
.form-label { display: block; margin-bottom: 6px; font-size: 14px; color: #333; }
.form-label em { color: #e33; font-style: normal; }
.form-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus { border-color: #1677ff; }
.form-hint { margin-top: 4px; font-size: 12px; color: #999; }
.error-tip {
  background: #fff1f0;
  border: 1px solid #ffccc7;
  color: #cf1322;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  margin-bottom: 14px;
}
.btn {
  display: inline-block;
  padding: 9px 22px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
}
.btn-primary { background: #1677ff; color: #fff; }
.btn-primary:hover { background: #0958d9; color: #fff; }
.btn-danger { background: #ff4d4f; color: #fff; }
.btn-danger:hover { background: #cf1322; color: #fff; }
.btn-block { display: block; width: 100%; }
.auth-links { margin-top: 16px; text-align: center; font-size: 13px; color: #999; }

/* ===== 会员中心 ===== */
.uc-wrap { display: flex; justify-content: center; padding: 20px 0; }
.uc-card {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 10px;
  padding: 26px 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.uc-title { font-size: 22px; font-weight: 700; color: #222; margin-bottom: 18px; }
.uc-info { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid #f0f0f0; }
.uc-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f0f5ff;
  color: #1677ff;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.uc-nickname { font-size: 18px; font-weight: 600; color: #222; }
.uc-username { font-size: 13px; color: #999; }
.uc-list { list-style: none; padding: 14px 0; }
.uc-list li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed #f0f0f0; font-size: 14px; }
.uc-list li span { color: #999; }
.uc-list li b { color: #333; font-weight: 500; text-align: right; word-break: break-all; }
.uc-logout { margin-top: 14px; text-align: right; }
