/* assets/css/style.css — DBG盾博外汇平台黑色主题 */

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

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: #0a0a0a;
  color: #e8e8e8;
  line-height: 1.75;
  font-size: 15px;
}

a { color: #4da6ff; text-decoration: none; }
a:hover { color: #7bc0ff; }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }


/* =========================================================
   顶部导航（白色背景）
   ========================================================= */
.site-header {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
  position: relative;
}

.logo { flex-shrink: 0; }
.logo img { height: 40px; display: block; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav > ul {
  display: flex;
  list-style: none;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block;
  padding: 10px 16px;
  color: #222;
  font-size: 15px;
  font-weight: 500;
  border-radius: 4px;
  transition: all .2s;
  white-space: nowrap;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active {
  color: #0a0a0a;
  background: #f0f0f0;
}

/* 子菜单：竖直排列 */
.sub-menu {
  display: block;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 190px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  border-radius: 0 0 6px 6px;
  list-style: none;
  padding: 8px 0;
  margin: 0;
  z-index: 100;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.sub-menu li { display: block; width: 100%; margin: 0; padding: 0; list-style: none; }
.sub-menu li a {
  display: block;
  width: 100%;
  padding: 9px 20px;
  color: #333;
  font-size: 14px;
  white-space: nowrap;
  border-radius: 0;
  transition: background .15s;
}
.sub-menu li a:hover { background: #f5f5f5; color: #0a0a0a; }

.has-sub::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 100%;
  height: 8px;
  background: transparent;
  pointer-events: auto;
}

.has-sub:hover .sub-menu,
.has-sub.show .sub-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.header-actions { display: flex; gap: 10px; flex-shrink: 0; align-items: center; }

.btn {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: all .2s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-primary { background: #1a73e8; color: #fff; }
.btn-primary:hover { background: #1557b0; color: #fff; }
.btn-outline { border: 1px solid #ccc; color: #333; background: transparent; }
.btn-outline:hover { border-color: #999; background: #f5f5f5; }

.header-qq {
  background: #fafafa;
  border-top: 1px solid #eee;
  font-size: 13px;
  color: #666;
  padding: 4px 0;
}
.header-qq a { color: #1a73e8; }

.mobile-toggle {
  display: none;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 20px;
  line-height: 1;
  color: #222;
  cursor: pointer;
  padding: 8px 12px;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.mobile-toggle:active { background: #e8e8e8; }


/* =========================================================
   主体
   ========================================================= */
.site-main { min-height: 60vh; padding: 30px 0; }

.page-title {
  font-size: 26px;
  color: #ffffff;
  border-left: 4px solid #1a73e8;
  padding-left: 14px;
  margin-bottom: 24px;
}

/* 区块标题（居中样式） */
.section-title {
  text-align: center;
  font-size: 28px;
  color: #ffffff;
  font-weight: 700;
  margin: 50px 0 8px;
  letter-spacing: 1px;
}
.section-subtitle {
  text-align: center;
  color: #b0b0b0;
  font-size: 14px;
  margin-bottom: 32px;
}

.card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
  transition: border-color .2s;
}
.card:hover { border-color: #1a73e8; }
.card h3 { color: #fff; margin-bottom: 10px; font-size: 18px; }
.card p { color: #b8b8b8; font-size: 14px; }

/* 首页 Hero */
.hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1a1a1a 100%);
  border-bottom: 1px solid #2a2a2a;
  padding: 70px 0;
  text-align: center;
  margin-bottom: 40px;
}
.hero-section h1 { font-size: 36px; color: #fff; margin-bottom: 16px; }
.hero-section p {
  font-size: 16px; color: #b8b8b8; margin-bottom: 30px;
  max-width: 720px; margin-left: auto; margin-right: auto;
}
.hero-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hero-btns .btn { padding: 12px 32px; font-size: 15px; }

/* 产品网格 */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.product-card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 28px 22px;
  text-align: center;
  transition: all .3s;
}
.product-card:hover {
  border-color: #1a73e8;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26, 115, 232, 0.15);
}
.product-icon { font-size: 40px; margin-bottom: 14px; display: block; }
.product-card h3 { color: #fff; font-size: 17px; margin-bottom: 8px; }
.product-card p { color: #b0b0b0; font-size: 13px; line-height: 1.7; }
.product-card .btn { margin-top: 14px; font-size: 13px; padding: 6px 18px; }

/* 新闻列表 */
.news-list { list-style: none; }
.news-list li {
  border-bottom: 1px solid #222;
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.news-list li a { color: #d0d0d0; font-size: 15px; }
.news-list li a:hover { color: #4da6ff; }
.news-list li time { color: #888; font-size: 13px; white-space: nowrap; margin-left: 16px; }

/* 文章内容 */
.article-content {
  color: #d8d8d8;
  font-size: 15px;
  line-height: 1.9;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.article-content img { max-width: 100%; height: auto; border-radius: 6px; margin: 16px 0; }
.article-content p { margin-bottom: 14px; }
.article-content h2, .article-content h3 { color: #fff; margin: 24px 0 12px; }

/* 分页 */
.pagination { text-align: center; margin: 30px 0; }
.page-link {
  display: inline-block;
  padding: 7px 14px;
  margin: 0 4px;
  border: 1px solid #333;
  border-radius: 4px;
  color: #ccc;
  font-size: 14px;
}
.page-link.active, .page-link:hover {
  background: #1a73e8;
  border-color: #1a73e8;
  color: #fff;
}


/* =========================================================
   【新增】平台介绍（图文 + 数据卡）
   ========================================================= */
.intro-block {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 20px;
}
.intro-text h3 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 16px;
  line-height: 1.4;
}
.intro-text p {
  color: #c0c0c0;
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 14px;
}
.intro-text .intro-highlight {
  color: #4da6ff;
  font-weight: 600;
}
.intro-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat-box {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 24px 18px;
  text-align: center;
  transition: border-color .2s;
}
.stat-box:hover { border-color: #1a73e8; }
.stat-num {
  font-size: 32px;
  color: #4da6ff;
  font-weight: 700;
  line-height: 1.1;
}
.stat-label {
  color: #b0b0b0;
  font-size: 13px;
  margin-top: 8px;
}


/* =========================================================
   【新增】软件介绍与对比表
   ========================================================= */
.compare-wrap {
  overflow-x: auto;
  margin-bottom: 20px;
  border-radius: 10px;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  min-width: 640px;
}
.compare-table th {
  background: #232323;
  color: #ffffff;
  padding: 15px 18px;
  font-size: 14px;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid #333;
}
.compare-table th:first-child { color: #4da6ff; }
.compare-table td {
  padding: 14px 18px;
  border-top: 1px solid #2a2a2a;
  font-size: 14px;
  color: #c8c8c8;
  line-height: 1.6;
}
.compare-table td:first-child { color: #ffffff; font-weight: 500; }
.compare-table tr:hover td { background: #1f1f1f; }
.compare-table .tag-yes { color: #4ade80; font-weight: 600; }
.compare-table .tag-no  { color: #888; }

/* 软件卡片（3 列介绍） */
.software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.software-card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 26px 22px;
  transition: all .3s;
}
.software-card:hover { border-color: #1a73e8; transform: translateY(-3px); }
.software-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.software-head span { font-size: 28px; }
.software-head h3 { color: #fff; font-size: 17px; margin: 0; }
.software-card p { color: #b0b0b0; font-size: 13px; line-height: 1.8; }
.software-card ul {
  list-style: none;
  margin-top: 12px;
  padding: 0;
}
.software-card ul li {
  color: #a8a8a8;
  font-size: 13px;
  line-height: 1.9;
  padding-left: 16px;
  position: relative;
}
.software-card ul li::before {
  content: "✓";
  color: #4da6ff;
  position: absolute;
  left: 0;
}


/* =========================================================
   【新增】全球办公室
   ========================================================= */
.office-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}
.office-card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 26px 22px;
  transition: all .3s;
}
.office-card:hover {
  border-color: #1a73e8;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(26, 115, 232, 0.1);
}
.office-flag { font-size: 34px; margin-bottom: 12px; line-height: 1; }
.office-card h3 { color: #fff; font-size: 16px; margin-bottom: 10px; }
.office-card p {
  color: #a8a8a8;
  font-size: 13px;
  line-height: 1.8;
  word-break: break-word;
}
.office-card .office-tag {
  display: inline-block;
  background: rgba(26, 115, 232, 0.15);
  color: #4da6ff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}


/* =========================================================
   【新增】平台历程 时间线
   ========================================================= */
.timeline {
  position: relative;
  padding-left: 32px;
  margin: 10px 0 20px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: #2a2a2a;
}
.timeline-item {
  position: relative;
  padding-bottom: 28px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1a73e8;
  border: 3px solid #0a0a0a;
  box-shadow: 0 0 0 2px #1a73e8;
}
.timeline-year {
  color: #4da6ff;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
}
.timeline-content {
  color: #c0c0c0;
  font-size: 14px;
  line-height: 1.8;
}


/* =========================================================
   【新增】开户流程 步骤卡
   ========================================================= */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}
.step-card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 26px 20px;
  position: relative;
  transition: border-color .2s;
}
.step-card:hover { border-color: #1a73e8; }
.step-num {
  display: inline-block;
  width: 34px;
  height: 34px;
  line-height: 34px;
  text-align: center;
  background: #1a73e8;
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
}
.step-card h3 { color: #fff; font-size: 15px; margin-bottom: 8px; }
.step-card p { color: #a8a8a8; font-size: 13px; line-height: 1.8; }


/* =========================================================
   【新增】FAQ 手风琴
   ========================================================= */
.faq-list { margin: 10px 0 10px; }
.faq-item {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color .2s, background .2s;
}
.faq-item:hover { border-color: #333; }
.faq-item.open { border-color: #1a73e8; background: #1d1d1d; }
.faq-q {
  padding: 16px 22px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.faq-q::after {
  content: "+";
  color: #4da6ff;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-item.open .faq-q::after { content: "−"; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 22px;
  color: #b8b8b8;
  font-size: 14px;
  line-height: 1.9;
}
.faq-item.open .faq-a {
  max-height: 600px;
  padding: 0 22px 18px;
}


/* =========================================================
   【新增】热门产品表格
   ========================================================= */
.hot-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  margin-bottom: 20px;
}
.hot-table {
  width: 100%;
  border-collapse: collapse;
  background: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  min-width: 560px;
}
.hot-table th {
  background: #232323;
  color: #fff;
  padding: 14px 16px;
  font-size: 13px;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid #333;
}
.hot-table td {
  padding: 13px 16px;
  border-top: 1px solid #2a2a2a;
  font-size: 14px;
  color: #c8c8c8;
}
.hot-table td:first-child { color: #fff; font-weight: 500; }
.hot-table tr:hover td { background: #1f1f1f; }
.hot-table .spread { color: #4ade80; font-weight: 600; }


/* =========================================================
   【新增】客服团队
   ========================================================= */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.service-card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 28px 22px;
  text-align: center;
  transition: all .3s;
}
.service-card:hover { border-color: #1a73e8; transform: translateY(-3px); }
.service-avatar {
  font-size: 42px;
  margin-bottom: 12px;
  line-height: 1;
}
.service-card h3 { color: #fff; font-size: 16px; margin-bottom: 6px; }
.service-card .service-tag {
  display: inline-block;
  color: #4da6ff;
  font-size: 12px;
  background: rgba(26, 115, 232, 0.12);
  padding: 2px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.service-card p { color: #a8a8a8; font-size: 13px; line-height: 1.8; }


/* =========================================================
   底部（白色背景）
   ========================================================= */
.site-footer { background: #ffffff; color: #333; margin-top: 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 40px;
  padding: 50px 20px 30px;
}
.footer-col h4 { color: #111; font-size: 16px; margin-bottom: 14px; }
.footer-col p { color: #666; font-size: 13px; line-height: 1.8; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; font-size: 13px; color: #666; }
.footer-col ul li a { color: #666; font-size: 13px; }
.footer-col ul li a:hover { color: #1a73e8; }

.footer-bottom {
  border-top: 1px solid #e5e5e5;
  padding: 16px 0;
  text-align: center;
  font-size: 12px;
  color: #999;
}
.footer-bottom a { color: #999; }
.footer-bottom a:hover { color: #1a73e8; }


/* =========================================================
   移动端底部固定按钮
   ========================================================= */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
  z-index: 2000;
  padding: 8px 12px;
  gap: 10px;
}
.mobile-btn {
  flex: 1;
  text-align: center;
  padding: 11px 0;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
}
.mobile-btn-primary { background: #1a73e8; color: #fff; }
.mobile-btn-primary:hover { color: #fff; }
.mobile-btn-outline { background: #f0f0f0; color: #333; border: 1px solid #ddd; }


/* =========================================================
   响应式：≤768px
   ========================================================= */
@media screen and (max-width: 768px) {

  .header-inner { height: 56px; }
  .logo img { height: 34px; }
  .header-actions { display: none !important; }
  .mobile-toggle { display: inline-block !important; }

  .main-nav {
    display: none !important;
    position: absolute;
    top: 100%; left: 0; right: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    padding: 6px 0;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    z-index: 999;
    justify-content: flex-start;
  }
  body.nav-open .main-nav { display: block !important; }

  .main-nav > ul { flex-direction: column; gap: 0; width: 100%; }
  .main-nav > ul > li { position: static; width: 100%; }
  .main-nav > ul > li > a {
    padding: 13px 20px;
    border-radius: 0;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
  }
  .main-nav > ul > li > a:hover,
  .main-nav > ul > li > a.active { background: #f5f5f5; color: #0a0a0a; }

  .sub-menu {
    position: static !important;
    box-shadow: none;
    background: #f9f9f9;
    border-radius: 0;
    min-width: 0;
    visibility: hidden;
    opacity: 0;
    transform: none;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    pointer-events: none;
    transition: max-height .25s ease, opacity .2s ease, padding .2s ease;
  }
  .has-sub:hover .sub-menu { visibility: hidden; opacity: 0; pointer-events: none; }
  .has-sub.show .sub-menu {
    visibility: visible;
    opacity: 1;
    max-height: 600px;
    padding: 6px 0;
    pointer-events: auto;
  }
  .has-sub::after { display: none; }

  .sub-menu li a {
    padding: 11px 32px;
    font-size: 14px;
    border-bottom: 1px solid #eee;
  }
  .sub-menu li:last-child a { border-bottom: none; }

  body { padding-bottom: 64px; }
  .mobile-bottom-bar { display: flex; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; padding: 30px 20px 20px; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-card { padding: 18px 14px; }
  .product-icon { font-size: 30px; }
  .page-title { font-size: 22px; }
  .hero-section { padding: 50px 0; }
  .hero-section h1 { font-size: 26px; }
  .hero-section p { font-size: 14px; }

  /* 新增模块移动端适配 */
  .section-title { font-size: 22px; margin: 36px 0 6px; }
  .intro-block { grid-template-columns: 1fr; gap: 24px; }
  .intro-text h3 { font-size: 18px; }
  .intro-stats { gap: 12px; }
  .stat-box { padding: 18px 12px; }
  .stat-num { font-size: 24px; }
  .software-grid { grid-template-columns: 1fr; }
  .office-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .office-card { padding: 20px 16px; }
  .steps-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .service-card { padding: 20px 14px; }
  .service-avatar { font-size: 34px; }
  .faq-q { padding: 14px 18px; font-size: 14px; }
  .faq-a { padding: 0 18px; font-size: 13px; }
  .faq-item.open .faq-a { padding: 0 18px 16px; }
  .timeline { padding-left: 26px; }
  .timeline-item::before { left: -26px; }
}

@media screen and (max-width: 400px) {
  .products-grid { grid-template-columns: 1fr; }
  .office-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
}
/* =========================================================
   新闻中心 — 卡片列表 + 侧边栏热门板块
   ========================================================= */

/* 两栏布局：主列表 + 侧边栏 */
.news-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  align-items: start;
}

/* ---------- 文章卡片（横向卡片，每行一篇） ---------- */
.news-main { min-width: 0; }

.news-card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 22px 24px;
  margin-bottom: 16px;
  transition: all .25s;
  display: block;
  text-decoration: none;
  color: inherit;
}
.news-card:hover {
  border-color: #1a73e8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 115, 232, 0.12);
}

.news-card-title {
  font-size: 18px;
  color: #ffffff;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card:hover .news-card-title { color: #4da6ff; }

.news-card-summary {
  color: #a8a8a8;
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;      /* 2 行详情 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  color: #888;
  border-top: 1px solid #2a2a2a;
  padding-top: 12px;
}
.news-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ---------- 分页（保留原有样式，覆盖行高） ---------- */
.news-main .pagination { margin: 26px 0 10px; }

/* ---------- 侧边栏热门板块 ---------- */
.news-sidebar { position: sticky; top: 90px; }

.hot-news-box {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
}
.hot-news-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid #2a2a2a;
  background: #202020;
}
.hot-news-header h3 {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}
.hot-news-header .fire { font-size: 18px; }

.hot-news-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
.hot-news-list li {
  padding: 0;
  border-bottom: 1px solid #232323;
  transition: background .15s;
}
.hot-news-list li:last-child { border-bottom: none; }
.hot-news-list li:hover { background: #1f1f1f; }

.hot-news-list li a {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  text-decoration: none;
  color: inherit;
  align-items: flex-start;
}

.hot-rank {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #888;
  background: #2a2a2a;
  border-radius: 4px;
  margin-top: 2px;
}
/* 前三名高亮 */
.hot-news-list li:nth-child(1) .hot-rank { background: #dc3545; color: #fff; }
.hot-news-list li:nth-child(2) .hot-rank { background: #ff8c00; color: #fff; }
.hot-news-list li:nth-child(3) .hot-rank { background: #d4af37; color: #fff; }

.hot-news-body { flex: 1; min-width: 0; }
.hot-news-title {
  color: #e0e0e0;
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}
.hot-news-list li:hover .hot-news-title { color: #4da6ff; }

.hot-news-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #777;
}
.hot-news-meta .views { color: #4da6ff; }

/* ---------- 空状态 ---------- */
.news-empty {
  text-align: center;
  padding: 60px 20px;
  color: #888;
  background: #1a1a1a;
  border: 1px dashed #2a2a2a;
  border-radius: 10px;
  font-size: 14px;
}

/* ---------- 移动端适配 ---------- */
@media screen and (max-width: 900px) {
  .news-layout { grid-template-columns: 1fr; gap: 20px; }
  .news-sidebar { position: static; }
}
@media screen and (max-width: 768px) {
  .news-card { padding: 16px 18px; }
  .news-card-title { font-size: 16px; }
  .news-card-summary { font-size: 13px; margin-bottom: 12px; }
  .news-card-meta { font-size: 12px; gap: 16px; padding-top: 10px; }
  .hot-news-header { padding: 14px 16px; }
  .hot-news-header h3 { font-size: 15px; }
  .hot-news-list li a { padding: 12px 16px; }
  .hot-news-title { font-size: 13px; }
}
/* =========================================================
   联系条：QQ + 微信
   ========================================================= */
.header-contact-bar {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.header-contact-bar .contact-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #666;
}
.header-contact-bar .contact-item a {
  color: #1a73e8;
  text-decoration: none;
  transition: color .15s;
}
.header-contact-bar .contact-item a:hover {
  color: #1557b0;
  text-decoration: underline;
}
/* 微信复制链接的绿色标识 */
.header-contact-bar a.js-copy-wechat {
  color: #07c160;
}
.header-contact-bar a.js-copy-wechat:hover {
  color: #06a34f;
}

/* 复制小图标 */
.copy-hint {
  font-size: 11px;
  opacity: .7;
  margin-left: 2px;
  transition: opacity .15s;
}
.js-copy-wechat:hover .copy-hint {
  opacity: 1;
}

/* =========================================================
   微信二维码扫码板块（联系我们页）
   ========================================================= */
.wechat-qr-section {
  margin: 10px 0 30px;
}
.wechat-qr-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, #1a2a1f 0%, #1a1a1a 100%);
  border: 1px solid #2a3a2f;
  border-radius: 14px;
  padding: 32px;
  transition: border-color .25s;
}
.wechat-qr-card:hover {
  border-color: #07c160;
}

.wechat-qr-img {
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 6px 20px rgba(7, 193, 96, 0.15);
  text-align: center;
}
.wechat-qr-img img {
  display: block;
  width: 196px;
  height: 196px;
  object-fit: contain;
  border-radius: 4px;
}

.wechat-qr-info { min-width: 0; }
.wechat-qr-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.wechat-qr-title .wechat-logo {
  font-size: 24px;
}
.wechat-qr-desc {
  color: #c0c0c0;
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 16px;
}

.wechat-qr-id {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(7, 193, 96, 0.08);
  border: 1px solid rgba(7, 193, 96, 0.3);
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 16px;
  font-size: 14px;
}
.wechat-qr-id .label { color: #888; }
.wechat-qr-id .value {
  color: #07c160;
  font-weight: 700;
  font-family: "Courier New", monospace;
  letter-spacing: .5px;
}
.wechat-copy-btn {
  background: #07c160;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 5px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s;
  margin-left: 4px;
}
.wechat-copy-btn:hover { background: #06a34f; }
.wechat-copy-btn:active { transform: scale(.97); }

.wechat-qr-tips {
  list-style: none;
  padding: 0;
  margin: 0;
}
.wechat-qr-tips li {
  color: #a8a8a8;
  font-size: 13px;
  line-height: 1.95;
}

.wechat-qr-empty {
  display: block;
  text-align: center;
  padding: 40px 20px;
  color: #888;
  font-size: 14px;
}

/* =========================================================
   复制 Toast 提示
   ========================================================= */
.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translate(-50%, 20px);
  background: rgba(7, 193, 96, 0.95);
  color: #fff;
  padding: 11px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 9999;
  white-space: nowrap;
}
.copy-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* =========================================================
   微信板块移动端适配
   ========================================================= */
@media screen and (max-width: 768px) {
  .header-contact-bar {
    gap: 12px;
    font-size: 12px;
  }
  .header-contact-bar .contact-item {
    font-size: 12px;
  }

  .wechat-qr-card {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 24px 20px;
    text-align: center;
  }
  .wechat-qr-img {
    margin: 0 auto;
    max-width: 220px;
  }
  .wechat-qr-img img {
    width: 100%;
    height: auto;
    max-width: 196px;
    margin: 0 auto;
  }
  .wechat-qr-title {
    justify-content: center;
    font-size: 17px;
  }
  .wechat-qr-desc { font-size: 13px; }
  .wechat-qr-id {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 13px;
    margin: 0 auto 16px;
    max-width: 320px;
  }
  .wechat-qr-tips li { font-size: 12px; text-align: left; }

  .copy-toast {
    bottom: 80px;
    font-size: 13px;
    padding: 10px 18px;
    max-width: 90vw;
    white-space: normal;
    text-align: center;
  }
}