/* ===== 全局重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: #333;
  background: #f5f6fa;
  line-height: 1.7;
}
a { color: #c0392b; text-decoration: none; transition: color .2s; }
a:hover { color: #e74c3c; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== 顶部条 ===== */
.top-bar {
  background: #1a1a1a;
  color: #bbb;
  font-size: 12px;
  border-bottom: 2px solid #c0392b;
}
.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a { color: #ddd; margin-left: 15px; }
.top-bar a:hover { color: #e74c3c; }

/* ===== 头部 ===== */
.header {
  background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
  padding: 25px 0 0;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.logo-icon {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: bold; color: #fff;
  box-shadow: 0 4px 12px rgba(231,76,60,.4);
}
.logo-text h1 { font-size: 22px; font-weight: 700; color: #fff; letter-spacing: 1px; }
.logo-text p { font-size: 12px; color: #999; margin-top: 2px; }

.header-search {
  display: flex;
  margin-top: 15px;
}
.header-search input {
  width: 220px;
  padding: 9px 12px;
  border: none;
  border-radius: 4px 0 0 4px;
  outline: none;
  font-size: 13px;
}
.header-search button {
  padding: 9px 18px;
  background: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 13px;
}
.header-search button:hover { background: #c0392b; }

/* ===== 导航 ===== */
.nav {
  background: #c0392b;
  margin-top: 20px;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
}
.nav a {
  color: #fff;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 500;
  position: relative;
}
.nav a:hover, .nav a.active {
  background: #a93226;
  color: #fff;
}
.nav a.active::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #f5f6fa;
}

/* ===== 主体布局 ===== */
.main {
  max-width: 1200px;
  margin: 25px auto;
  padding: 0 15px;
  display: flex;
  gap: 25px;
}
.content { flex: 1; min-width: 0; }
.sidebar { width: 280px; flex-shrink: 0; }

/* ===== 公告条 ===== */
.notice {
  background: #fff9e6;
  border-left: 4px solid #f39c12;
  padding: 12px 18px;
  margin-bottom: 20px;
  border-radius: 0 4px 4px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.notice-label {
  background: #f39c12;
  color: #fff;
  padding: 2px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

/* ===== 板块标题 ===== */
.section-title {
  background: #fff;
  border-left: 4px solid #e74c3c;
  padding: 12px 18px;
  font-size: 16px;
  font-weight: 700;
  color: #222;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  border-radius: 0 4px 4px 0;
}
.section-title .more {
  font-size: 12px;
  color: #999;
  font-weight: normal;
}
.section-title .more:hover { color: #e74c3c; }

/* ===== Hero横幅（首页） ===== */
.hero {
  background: linear-gradient(135deg, #c0392b 0%, #922b21 100%);
  border-radius: 6px;
  padding: 40px 35px;
  color: #fff;
  margin-bottom: 25px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -50%; right: -20%;
  width: 500px; height: 500px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
}
.hero h2 { font-size: 28px; margin-bottom: 12px; font-weight: 700; }
.hero p { font-size: 14px; opacity: .9; margin-bottom: 18px; max-width: 650px; }
.hero-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.hero-tags span {
  background: rgba(255,255,255,.2);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
}

/* ===== 产品卡片网格 ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.product-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  border: 1px solid #eee;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
  border-color: #e74c3c;
}
.product-img {
  height: 140px;
  background: linear-gradient(135deg, #2c3e50, #4ca1af);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 40px; font-weight: bold;
  letter-spacing: 2px;
}
.product-card:nth-child(2n) .product-img { background: linear-gradient(135deg, #c0392b, #e74c3c); }
.product-card:nth-child(3n) .product-img { background: linear-gradient(135deg, #27ae60, #2ecc71); }
.product-card:nth-child(4n) .product-img { background: linear-gradient(135deg, #8e44ad, #9b59b6); }

.product-info { padding: 16px; }
.product-info h3 {
  font-size: 16px;
  color: #222;
  margin-bottom: 8px;
  font-weight: 700;
}
.product-info h3 a { color: #222; }
.product-info h3 a:hover { color: #e74c3c; }
.product-info .desc {
  font-size: 12px;
  color: #888;
  margin-bottom: 10px;
  line-height: 1.6;
  min-height: 40px;
}
.product-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: #666;
  padding-top: 10px; border-top: 1px dashed #eee;
}
.product-price { color: #e74c3c; font-weight: 700; font-size: 15px; }
.product-btns {
  display: flex; gap: 6px; margin-top: 12px;
}
.product-btns a {
  flex: 1;
  text-align: center;
  padding: 7px 0;
  font-size: 12px;
  border-radius: 3px;
}
.btn-detail { background: #f8f8f8; color: #666; }
.btn-detail:hover { background: #eee; color: #333; }
.btn-download { background: #e74c3c; color: #fff; }
.btn-download:hover { background: #c0392b; color: #fff; }

/* ===== 列表样式 ===== */
.news-list, .faq-list { background: #fff; border-radius: 6px; padding: 10px 0; }
.news-list li, .faq-list li {
  padding: 14px 20px;
  border-bottom: 1px dashed #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.news-list li:last-child, .faq-list li:last-child { border-bottom: none; }
.news-list a, .faq-list a { color: #333; font-size: 14px; flex: 1; }
.news-list a:hover, .faq-list a:hover { color: #e74c3c; }
.news-list .date { color: #aaa; font-size: 12px; flex-shrink: 0; }

/* ===== 侧边栏 ===== */
.widget {
  background: #fff;
  border-radius: 6px;
  margin-bottom: 20px;
  overflow: hidden;
}
.widget-title {
  background: #2c2c2c;
  color: #fff;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.widget-title::before {
  content: "";
  width: 3px; height: 14px;
  background: #e74c3c;
  border-radius: 2px;
}
.widget-body { padding: 16px; }

/* 客服卡 */
.service-card { text-align: center; }
.service-card .qq-group {
  display: flex; flex-direction: column; gap: 10px; margin-bottom: 15px;
}
.qq-item {
  background: #f8f8f8;
  border: 1px solid #eee;
  border-radius: 5px;
  padding: 10px;
  display: flex; align-items: center; gap: 10px;
}
.qq-item .qq-icon {
  width: 36px; height: 36px;
  background: #12b7f5;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: bold; flex-shrink: 0;
}
.qq-item .qq-info { text-align: left; flex: 1; }
.qq-item .qq-name { font-size: 12px; color: #999; }
.qq-item .qq-num { font-size: 14px; color: #222; font-weight: 600; }

/* 快速标签 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  background: #f8f8f8;
  color: #666;
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 12px;
}
.tag-cloud a:hover { background: #e74c3c; color: #fff; }

/* ===== 详情页 ===== */
.detail-wrap { background: #fff; border-radius: 6px; padding: 30px; }
.detail-header {
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
  margin-bottom: 25px;
}
.detail-header h1 {
  font-size: 22px;
  color: #222;
  margin-bottom: 10px;
  font-weight: 700;
}
.detail-meta { color: #999; font-size: 12px; }
.detail-meta span { margin-right: 15px; }
.detail-body { font-size: 14px; line-height: 2; color: #444; }
.detail-body h2 {
  font-size: 17px;
  color: #c0392b;
  margin: 25px 0 12px;
  padding-left: 12px;
  border-left: 4px solid #e74c3c;
}
.detail-body p { margin-bottom: 12px; }
.detail-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 15px 0;
}
.feature-item {
  background: #fafafa;
  border: 1px solid #eee;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 13px;
  color: #555;
}
.feature-item::before {
  content: "✓";
  color: #27ae60;
  font-weight: bold;
  margin-right: 6px;
}

.download-box {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  color: #fff;
  padding: 25px;
  border-radius: 6px;
  text-align: center;
  margin-top: 25px;
}
.download-box h3 { font-size: 18px; margin-bottom: 12px; }
.download-box p { font-size: 13px; opacity: .9; margin-bottom: 15px; }
.download-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.download-btns a {
  background: #fff;
  color: #c0392b;
  padding: 10px 25px;
  border-radius: 4px;
  font-weight: 600;
}
.download-btns a:hover { background: #f8f8f8; }

/* ===== 面包屑 ===== */
.breadcrumb {
  background: #fff;
  padding: 12px 20px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 12px;
  color: #888;
}
.breadcrumb a { color: #888; }
.breadcrumb a:hover { color: #e74c3c; }

/* ===== FAQ / 帮助 ===== */
.faq-item {
  background: #fff;
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid #eee;
}
.faq-q {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 14px;
  color: #222;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  background: #fafafa;
}
.faq-q::after { content: "+"; color: #c0392b; font-size: 18px; font-weight: bold; }
.faq-item.open .faq-q::after { content: "-"; }
.faq-a {
  padding: 15px 20px;
  color: #666;
  font-size: 13px;
  line-height: 1.9;
  display: none;
  border-top: 1px solid #eee;
}
.faq-item.open .faq-a { display: block; }

/* ===== 分页 ===== */
.pagination {
  display: flex; justify-content: center; gap: 6px;
  margin-top: 25px;
}
.pagination a, .pagination span {
  padding: 7px 13px;
  border: 1px solid #eee;
  border-radius: 3px;
  font-size: 13px;
  color: #666;
}
.pagination a:hover { border-color: #e74c3c; color: #e74c3c; }
.pagination .current { background: #e74c3c; color: #fff; border-color: #e74c3c; }

/* ===== 特色优势 ===== */
.features-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}
.features-row .feat {
  background: #fff;
  padding: 25px 20px;
  border-radius: 6px;
  text-align: center;
  border: 1px solid #eee;
}
.features-row .feat-icon {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: bold;
  margin: 0 auto 12px;
}
.features-row h4 { font-size: 15px; margin-bottom: 8px; color: #222; }
.features-row p { font-size: 12px; color: #888; line-height: 1.6; }

/* ===== 代理页 ===== */
.agent-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 20px 0;
}
.step-card {
  background: #fff;
  padding: 25px 20px;
  border-radius: 6px;
  text-align: center;
  border: 2px solid transparent;
  transition: all .25s;
}
.step-card:hover {
  border-color: #e74c3c;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
}
.step-num {
  width: 45px; height: 45px;
  background: #e74c3c;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: bold;
  margin: 0 auto 12px;
}
.step-card h4 { font-size: 15px; margin-bottom: 6px; }
.step-card p { font-size: 12px; color: #888; }

.cta-box {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  color: #fff;
  padding: 35px;
  border-radius: 6px;
  text-align: center;
  margin: 25px 0;
}
.cta-box h3 { font-size: 22px; margin-bottom: 10px; }
.cta-box p { opacity: .9; margin-bottom: 18px; font-size: 13px; }
.cta-box a {
  display: inline-block;
  background: #fff;
  color: #c0392b;
  padding: 10px 30px;
  border-radius: 25px;
  font-weight: bold;
}
.cta-box a:hover { background: #f8f8f8; }

/* ===== 步骤流程（购卡帮助） ===== */
.flow-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0;
  flex-wrap: wrap;
  gap: 10px;
}
.flow-step {
  flex: 1;
  min-width: 130px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 18px 12px;
  text-align: center;
  position: relative;
}
.flow-step .num {
  width: 36px; height: 36px;
  background: #e74c3c;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: bold;
  margin: 0 auto 8px;
}
.flow-step h5 { font-size: 14px; margin-bottom: 5px; color: #222; }
.flow-step p { font-size: 12px; color: #888; }

/* ===== 页脚 ===== */
.footer {
  background: #1a1a1a;
  color: #888;
  padding: 40px 0 20px;
  margin-top: 40px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}
.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 15px;
  font-weight: 600;
}
.footer-col ul li { margin-bottom: 8px; font-size: 13px; }
.footer-col a { color: #aaa; }
.footer-col a:hover { color: #e74c3c; }
.footer-col p { font-size: 13px; line-height: 1.8; color: #888; }
.footer-bottom {
  max-width: 1200px;
  margin: 30px auto 0;
  padding: 20px 15px 0;
  border-top: 1px solid #333;
  text-align: center;
  font-size: 12px;
  color: #666;
}
.footer-bottom a { color: #666; }
.footer-bottom a:hover { color: #e74c3c; }

/* ===== 返回顶部 ===== */
.back-top {
  position: fixed;
  right: 20px;
  bottom: 60px;
  width: 42px; height: 42px;
  background: #c0392b;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,.2);
  opacity: 0;
  transition: opacity .3s;
  font-size: 18px;
  z-index: 99;
}
.back-top.show { opacity: 1; }

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .main { flex-direction: column; }
  .sidebar { width: 100%; }
  .hero h2 { font-size: 22px; }
  .nav-inner { flex-wrap: wrap; }
  .nav a { flex: 1; text-align: center; padding: 12px 10px; font-size: 13px; }
}
@media (max-width: 600px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .header-search { width: 100%; }
  .header-search input { flex: 1; width: auto; }
  .product-grid { grid-template-columns: 1fr; }
  .flow-steps { flex-direction: column; }
}
