/* ===== 基础重置 ===== */
* { 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.08);
}
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: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon { width: 36px; height: 36px; object-fit: contain; }
.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: 1200px; margin: 0 auto; padding: 40px 20px; }
.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  position: relative;
  padding-left: 16px;
}
.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: 28px;
  margin-bottom: 24px;
}

/* ===== 文章内容 ===== */
.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: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ===== 产品卡片 ===== */
.product-card {
  background: var(--white);
  border-radius: 10px;
  padding: 28px 22px;
  text-align: center;
  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: 36px; color: var(--red); margin-bottom: 14px; display: block; }
.product-card h3 { font-size: 17px; margin-bottom: 8px; }
.product-card p { font-size: 13px; color: var(--text-light); line-height: 1.7; }

/* ===== 新闻列表 ===== */
.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;
}
.news-item .news-thumb { width: 160px; height: 110px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.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: 1200px;
  margin: 0 auto;
  padding: 50px 20px 30px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.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: 768px) {
  body { padding-bottom: 70px; }

  .header-inner { height: 60px; padding: 0 14px; }
  .logo-text { font-size: 17px; }
  .logo-icon { width: 30px; height: 30px; }

  .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-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 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; }

  /* 移动端底部固定栏 */
  .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; }
}