/* ===== 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --red: #C8102E;
  --red-dark: #A00D24;
  --red-light: #E8354A;
  --text: #333;
  --text-light: #666;
  --bg: #f9f9f9;
  --white: #fff;
  --border: #e5e5e5;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  font-size: 15px;
  padding-bottom: 0;
}
a { color: var(--red); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red-dark); }
img { max-width: 100%; height: auto; }

/* ===== 顶部导航 ===== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon { height: 44px; width: auto; max-width: 220px; object-fit: contain; display: block; }
.logo-text { font-size: 20px; font-weight: 700; color: var(--red); letter-spacing: 1px; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 20px; }
.main-nav > a, .nav-dropdown > a {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}
.main-nav > a:hover, .main-nav > a.active,
.nav-dropdown > a:hover, .nav-dropdown > a.active {
  background: #FEF0F2;
  color: var(--red);
}
.nav-dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 180px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 100;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
}
.dropdown-menu a:hover { background: #FEF0F2; color: var(--red); }
.dropdown-menu a i { color: var(--red); width: 18px; text-align: center; }

.header-actions { margin-left: auto; display: flex; gap: 10px; flex-shrink: 0; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--red); border: 1.5px solid var(--red); }
.btn-outline:hover { background: #FEF0F2; }

.top-qq {
  text-align: center;
  padding: 6px 20px;
  font-size: 13px;
  color: var(--text-light);
  background: #FFF8F8;
  border-top: 1px solid #F5E0E3;
}
.top-qq i { color: var(--red); margin-right: 4px; }
.top-qq a { color: var(--red); font-weight: 600; }

.mobile-toggle { display: none; font-size: 22px; cursor: pointer; color: var(--red); }

/* ===== 主体内容 ===== */
.container { max-width: 1400px; margin: 0 auto; padding: 40px 30px; }
.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  position: relative;
  padding-left: 16px;
  text-align: left;
}
.page-title::before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 4px; height: 28px;
  background: var(--red);
  border-radius: 2px;
}

/* ===== 卡片 ===== */
.card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 30px;
  margin-bottom: 24px;
  text-align: left; /* 卡片内部文字全部左对齐 */
}

/* ===== 文章内容 ===== */
.article-content {
  line-height: 2;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.article-content p { margin-bottom: 16px; }
.article-content img { border-radius: 8px; margin: 16px 0; }

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

/* ===== 产品卡片（左对齐横向布局） ===== */
.product-card {
  background: var(--white);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  border-top: 3px solid transparent;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 6px 20px rgba(200,16,46,0.12); border-top-color: var(--red); }
.product-card i { font-size: 32px; color: var(--red); flex-shrink: 0; margin-top: 2px; }
.product-card .product-info { flex: 1; }
.product-card .product-info h3 { font-size: 17px; margin-bottom: 6px; color: var(--text); }
.product-card .product-info p { font-size: 13px; color: var(--text-light); line-height: 1.7; }

/* ===== 数据统计 ===== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: left; margin: 30px 0; }
.stat-item { background: #fff; padding: 24px 20px; border-radius: 10px; box-shadow: var(--shadow); border-left: 4px solid var(--red); }
.stat-item .num { font-size: 28px; font-weight: 800; color: var(--red); line-height: 1.2; }
.stat-item .label { font-size: 13px; color: var(--text-light); margin-top: 6px; }

/* ===== 交易步骤 ===== */
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 30px 0; }
.step-item { background: #fff; padding: 24px; border-radius: 10px; box-shadow: var(--shadow); text-align: left; }
.step-item .step-num { width: 44px; height: 44px; line-height: 44px; border-radius: 8px; background: var(--red); color: #fff; font-size: 20px; font-weight: 700; text-align: center; margin-bottom: 15px; }
.step-item h4 { font-size: 16px; margin-bottom: 8px; }
.step-item p { font-size: 13px; color: var(--text-light); }

/* ===== 数据表格 ===== */
.table-responsive { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; margin: 20px 0; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
table.data-table th { background: var(--red); color: #fff; padding: 14px 16px; text-align: left; font-size: 14px; font-weight: 600; }
table.data-table td { padding: 12px 16px; border-bottom: 1px solid #f0f0f0; font-size: 14px; color: var(--text); }
table.data-table tr:hover td { background: #FFF8F8; }

/* ===== FAQ 手风琴 ===== */
.faq-item { background: #fff; border-radius: 8px; margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden; }
.faq-question { padding: 16px 20px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 15px; text-align: left; }
.faq-question i { color: var(--red); transition: transform .3s; }
.faq-answer { padding: 0 20px 16px; font-size: 14px; color: var(--text-light); line-height: 1.8; display: none; text-align: left; }
.faq-item.active .faq-answer { display: block; }
.faq-item.active .faq-question i { transform: rotate(180deg); }

/* ===== 侧边栏布局 ===== */
.layout-sidebar { display: grid; grid-template-columns: 2.5fr 1fr; gap: 30px; }
.sidebar-widget { background: #fff; border-radius: 10px; padding: 20px; box-shadow: var(--shadow); margin-bottom: 20px; text-align: left; }
.sidebar-widget h3 { font-size: 16px; border-left: 4px solid var(--red); padding-left: 10px; margin-bottom: 15px; }
.sidebar-widget a { display: block; padding: 8px 0; font-size: 14px; color: var(--text); border-bottom: 1px dashed #eee; }
.sidebar-widget a:hover { color: var(--red); padding-left: 5px; }
.sidebar-widget a:last-child { border-bottom: none; }

/* ===== 时间线 ===== */
.timeline { position: relative; padding-left: 30px; border-left: 2px solid var(--red); margin: 20px 0; }
.timeline-item { position: relative; margin-bottom: 30px; text-align: left; }
.timeline-item::before { content: ''; position: absolute; left: -36px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--red); border: 2px solid #fff; }
.timeline-item h4 { font-size: 16px; margin-bottom: 6px; }
.timeline-item p { font-size: 14px; color: var(--text-light); }

/* ===== 联系表单 ===== */
.form-control { width: 100%; padding: 12px 14px; border: 1.5px solid #e5e5e5; border-radius: 8px; font-size: 14px; margin-bottom: 15px; outline: none; }
.form-control:focus { border-color: var(--red); }
textarea.form-control { min-height: 120px; resize: vertical; }

/* ===== 新闻列表 ===== */
.news-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  align-items: flex-start;
  text-align: left;
}
.news-item .news-thumb { width: 180px; height: 120px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.news-item .news-info { flex: 1; }
.news-item .news-info h3 { font-size: 17px; margin-bottom: 8px; }
.news-item .news-info h3 a { color: var(--text); }
.news-item .news-info h3 a:hover { color: var(--red); }
.news-item .news-info p { font-size: 13px; color: var(--text-light); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-item .news-date { font-size: 12px; color: #999; margin-top: 8px; }

/* ===== 底部 ===== */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  margin-top: 60px;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 50px 30px 30px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  text-align: left;
}
.footer-col h4 { font-size: 16px; margin-bottom: 16px; color: var(--text); }
.footer-col p, .footer-col a { font-size: 14px; color: var(--text-light); display: block; margin-bottom: 8px; }
.footer-col a:hover { color: var(--red); }
.footer-col i { color: var(--red); width: 20px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 18px 20px;
  font-size: 13px;
  color: #999;
}
.footer-bottom a { color: #999; }
.footer-bottom a:hover { color: var(--red); }

/* ===== 移动端底部固定栏 ===== */
.mobile-bottom-bar { display: none; }

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .header-inner { padding: 0 20px; }
  .footer-inner { padding: 40px 20px 20px; }
  .container { padding: 30px 20px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  body { padding-bottom: 70px; }
  .header-inner { height: 60px; padding: 0 14px; }
  .logo-icon { height: 36px; }
  .logo-text { font-size: 17px; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 10px;
    box-shadow: var(--shadow);
    margin-left: 0;
  }
  .main-nav.show { display: flex; }
  .main-nav > a, .nav-dropdown > a { width: 100%; padding: 12px 16px; }
  .dropdown-menu {
    position: static;
    display: block;
    box-shadow: none;
    padding-left: 20px;
    background: #fafafa;
  }
  .nav-dropdown:hover .dropdown-menu { display: block; }
  .header-actions { display: none; }
  .mobile-toggle { display: block; margin-left: auto; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; padding: 30px 20px 20px; }
  .news-item { flex-direction: column; }
  .news-item .news-thumb { width: 100%; height: 180px; }
  .product-card { flex-direction: column; align-items: flex-start; }
  .mobile-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 8px 14px calc(8px + env(safe-area-inset-bottom));
    gap: 10px;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
  }
  .mobile-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 0; border-radius: 8px; font-size: 15px; font-weight: 600; }
  .container { padding: 24px 16px; }
  .page-title { font-size: 22px; }
  .page-title::before { height: 22px; top: 4px; }
}