:root {
  --theme-color: #c62828;
  --theme-light: #ff6f00;
  --theme-dark: #b71c1c;
  --theme-bg: #fce4ec;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; color: #333; font-size: 14px; line-height: 1.6; background: #f5f5f5; }
a { text-decoration: none; color: #333; transition: color 0.3s; }
a:hover { color: var(--theme-color); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.clearfix::after { content: ''; display: block; clear: both; }

/* 顶部 */
.top-bar { background: #f8f8f8; border-bottom: 1px solid #eee; font-size: 12px; color: #999; padding: 8px 0; }
.top-bar .container { display: flex; justify-content: space-between; }
.top-bar a { color: #999; margin-left: 15px; }

/* 头部 */
.header { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo { font-size: 24px; font-weight: bold; color: var(--theme-color); }
.logo a { color: var(--theme-color); }
.nav { display: flex; }
.nav li { margin: 0 15px; position: relative; }
.nav li a { display: block; padding: 30px 0; font-size: 15px; color: #333; }
.nav li a:hover, .nav li.active a { color: var(--theme-color); }

/* 轮播图 */
.banner { position: relative; overflow: hidden; height: 420px; background: #333; }
.banner-slide { position: absolute; top: 0; left: 0; width: 100%; height: 420px; display: flex; align-items: center; justify-content: flex-start; text-decoration: none; color: #fff; }
.banner-slide { background-size: cover; background-position: center; }

/* 不同主题的轮播背景 - 各种香烟系列 */
.banner-slide-1 {
  background: linear-gradient(135deg, #8B0000 0%, #c62828 40%, #ff6f00 100%);
}
.banner-slide-2 {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}
.banner-slide-3 {
  background: linear-gradient(135deg, #2d5016 0%, #3d6b1e 50%, #6b8e23 100%);
}
.banner-slide-4 {
  background: linear-gradient(135deg, #4a1c4a 0%, #6b2d6b 50%, #9370db 100%);
}
.banner-slide-5 {
  background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #CD853F 100%);
}

.banner-content { padding: 0 80px; max-width: 620px; }
.banner-content h2 { font-size: 34px; font-weight: 700; margin-bottom: 18px; color: #fff; text-shadow: 2px 2px 8px rgba(0,0,0,0.3); line-height: 1.35; letter-spacing: 1px; }
.banner-content p { font-size: 16px; margin-bottom: 28px; color: rgba(255,255,255,0.92); text-shadow: 1px 1px 4px rgba(0,0,0,0.2); line-height: 1.8; }
.banner-btns { display: flex; gap: 15px; }
.banner-btn { display: inline-block; padding: 12px 30px; background: #fff; color: #c62828; font-size: 15px; font-weight: 600; border-radius: 4px; transition: all 0.3s; }
.banner-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.25); background: #f5f5f5; color: #c62828; }
.banner-btn-outline { display: inline-block; padding: 12px 30px; background: transparent; color: #fff; font-size: 15px; font-weight: 600; border-radius: 4px; border: 2px solid #fff; transition: all 0.3s; }
.banner-btn-outline:hover { background: #fff; color: #c62828; transform: translateY(-2px); }

.banner-dots { position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; z-index: 10; }
.banner-dots span { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.3s; }
.banner-dots span.active { background: #fff; transform: scale(1.15); }

/* 通用区块 */
.section { padding: 50px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 28px; color: #222; margin-bottom: 10px; }
.section-title p { color: #999; font-size: 14px; }

/* 文章列表 */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.article-card { background: #fff; border-radius: 8px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; }
.article-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.article-card .cover { height: 180px; overflow: hidden; background: #eee; }
.article-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.article-card:hover .cover img { transform: scale(1.05); }
.article-card .content { padding: 20px; }
.article-card .category { display: inline-block; padding: 2px 10px; background: var(--theme-bg); color: var(--theme-color); font-size: 12px; border-radius: 4px; margin-bottom: 10px; }
.article-card h3 { font-size: 16px; margin-bottom: 10px; line-height: 1.4; height: 44px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.article-card .summary { color: #999; font-size: 13px; height: 38px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 10px; }
.article-card .meta { display: flex; justify-content: space-between; color: #bbb; font-size: 12px; }

/* 产品列表 */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card { background: #fff; border-radius: 8px; overflow: hidden; text-align: center; transition: transform 0.3s, box-shadow 0.3s; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.product-card .cover { height: 220px; overflow: hidden; background: #f9f9f9; padding: 20px; }
.product-card .cover img { width: 100%; height: 100%; object-fit: contain; }
.product-card h3 { padding: 15px; font-size: 15px; }
.product-card .price { color: var(--theme-color); font-size: 16px; font-weight: bold; padding-bottom: 15px; }

/* 产品分类筛选 */
.product-filter { text-align: center; margin-bottom: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.product-filter .btn { margin: 0; white-space: nowrap; }

/* 关于我们 */
.about-section { background: #fff; padding: 60px 0; }
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-text h2 { font-size: 28px; margin-bottom: 20px; color: #333; }
.about-text .about-h1 { font-size: 28px; margin-bottom: 20px; color: #333; font-weight: bold; }
.about-text p { color: #666; line-height: 2; margin-bottom: 15px; }
.about-image { height: 350px; background: linear-gradient(135deg, var(--theme-color), var(--theme-light)); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 24px; }

/* 优势 */
.advantages { background: #fafafa; }
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.adv-item { text-align: center; padding: 30px 20px; background: #fff; border-radius: 8px; transition: all 0.3s; }
.adv-item:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.adv-icon { width: 60px; height: 60px; margin: 0 auto 15px; background: linear-gradient(135deg, var(--theme-color), var(--theme-light)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 24px; }
.adv-item h3 { font-size: 18px; margin-bottom: 10px; }
.adv-item p { color: #999; font-size: 13px; }

/* 底部 */
.footer { background: #222; color: #999; padding: 50px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 30px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 20px; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { color: #999; font-size: 13px; }
.footer ul li a:hover { color: #fff; }
.footer .about p { font-size: 13px; line-height: 2; }
.footer-bottom { border-top: 1px solid #333; padding-top: 20px; text-align: center; font-size: 12px; }

/* 列表页 */
.page-header { background: linear-gradient(135deg, var(--theme-color), var(--theme-light)); color: #fff; padding: 60px 0; text-align: center; }
.page-header h1 { font-size: 32px; margin-bottom: 10px; }
.page-header p { opacity: 0.8; }
.main-content { display: grid; grid-template-columns: 1fr 280px; gap: 30px; padding: 40px 0; }
.sidebar { position: sticky; top: 100px; align-self: start; }
.sidebar-widget { background: #fff; border-radius: 8px; padding: 20px; margin-bottom: 20px; }
.sidebar-widget h3 { font-size: 16px; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid var(--theme-color); display: inline-block; }
.sidebar-widget ul li { padding: 8px 0; border-bottom: 1px dashed #eee; }
.sidebar-widget ul li:last-child { border-bottom: none; }
.sidebar-widget ul li a { font-size: 13px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-list li a { display: flex; justify-content: space-between; }

/* 文章列表项 */
.article-list { background: #fff; border-radius: 8px; padding: 20px; }
.article-item { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid #eee; }
.article-item:last-child { border-bottom: none; }
.article-item .cover { width: 200px; height: 140px; flex-shrink: 0; overflow: hidden; border-radius: 6px; background: #eee; }
.article-item .cover img { width: 100%; height: 100%; object-fit: cover; }
.article-item .info { flex: 1; }
.article-item h3 { font-size: 18px; margin-bottom: 10px; }
.article-item .summary { color: #999; font-size: 13px; margin-bottom: 10px; height: 40px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.article-item .meta { display: flex; gap: 20px; color: #bbb; font-size: 12px; }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.pagination a, .pagination span { display: inline-block; padding: 8px 14px; border: 1px solid #eee; border-radius: 4px; font-size: 13px; }
.pagination .current { background: var(--theme-color); color: #fff; border-color: var(--theme-color); }

/* 文章详情 */
.article-detail { background: #fff; border-radius: 8px; padding: 30px; }
.article-detail h1 { font-size: 24px; margin-bottom: 15px; }
.article-meta { color: #999; font-size: 13px; padding-bottom: 20px; border-bottom: 1px solid #eee; margin-bottom: 20px; }
.article-meta span { margin-right: 20px; }
.article-content { font-size: 15px; line-height: 2; color: #444; }
.article-content img { max-width: 100%; margin: 15px auto; border-radius: 4px; }
.article-content p { margin-bottom: 15px; }
.article-content h2, .article-content h3 { margin: 20px 0 10px; }
.article-nav { display: flex; justify-content: space-between; margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee; }
.article-nav a { color: #666; font-size: 13px; }
.article-nav a:hover { color: var(--theme-color); }

/* 联系表单 */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info h3 { font-size: 20px; margin-bottom: 20px; }
.contact-info p { margin-bottom: 15px; color: #666; line-height: 2; }
.contact-form { background: #fff; padding: 30px; border-radius: 8px; }
.contact-form h3 { font-size: 20px; margin-bottom: 20px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; color: #666; font-size: 13px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; font-family: inherit; }
.form-group textarea { resize: vertical; min-height: 100px; }
.btn { display: inline-block; padding: 10px 30px; background: var(--theme-color); color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 14px; transition: background 0.3s; }
.btn:hover { background: var(--theme-dark); color: #fff; }
.btn-block { width: 100%; }

/* 产品详情 */
.product-detail { background: #fff; border-radius: 8px; padding: 30px; }
.product-top { display: grid; grid-template-columns: 400px 1fr; gap: 40px; margin-bottom: 30px; }
.product-image { background: #f9f9f9; border-radius: 8px; overflow: hidden; }
.product-image img { width: 100%; }
.product-info h1 { font-size: 24px; margin-bottom: 15px; }
.product-info .price { font-size: 28px; color: var(--theme-color); font-weight: bold; margin-bottom: 20px; }
.product-info .desc { color: #666; line-height: 2; margin-bottom: 20px; }
.product-content { padding-top: 20px; border-top: 1px solid #eee; }
.product-content h3 { font-size: 18px; margin-bottom: 15px; }

/* 404 */
.page-404 { text-align: center; padding: 100px 0; }
.page-404 h1 { font-size: 80px; color: var(--theme-color); margin-bottom: 20px; }
.page-404 p { color: #999; margin-bottom: 30px; }

/* 响应式 */
@media (max-width: 768px) {
  .nav { display: none; }
  .article-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-content { grid-template-columns: 1fr; }
  .main-content { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .article-item { flex-direction: column; }
  .article-item .cover { width: 100%; height: 180px; }
  .product-top { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .banner { height: 260px; }
  .banner-slide { height: 260px; }
  .banner-content { padding: 0 20px; max-width: 100%; width: 100%; }
  .banner-content h2 { font-size: 20px; margin-bottom: 8px; letter-spacing: 0; line-height: 1.3; word-break: break-all; }
  .banner-content p { font-size: 13px; margin-bottom: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .banner-btns { gap: 10px; flex-wrap: wrap; }
  .banner-btn, .banner-btn-outline { padding: 7px 16px; font-size: 13px; border-width: 1px; flex-shrink: 0; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }
  .kw-links { columns: 2; }
  .product-filter .btn { padding: 8px 16px; font-size: 13px; }
  .product-card .cover { height: 140px; padding: 15px; }
  .product-card h3 { padding: 12px; font-size: 13px; }
  .product-card .price { font-size: 14px; padding-bottom: 12px; }
  .page-header { padding: 40px 0; }
  .page-header h1 { font-size: 22px; }
  .page-header p { font-size: 13px; }
}

/* 服务内容 */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.service-item { background: #fafafa; padding: 30px; border-radius: 8px; transition: all 0.3s; border: 1px solid #f0f0f0; }
.service-item:hover { background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.08); transform: translateY(-3px); }
.service-icon { font-size: 36px; margin-bottom: 15px; }
.service-item h3 { font-size: 18px; margin-bottom: 10px; color: #222; }
.service-item p { color: #888; font-size: 13px; line-height: 1.8; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.faq-item { background: #fafafa; padding: 25px; border-radius: 8px; border-left: 4px solid var(--theme-color); }
.faq-item h3 { font-size: 16px; margin-bottom: 10px; color: #222; }
.faq-item p { color: #888; font-size: 13px; line-height: 1.8; }

/* CTA */
.cta-section { background: linear-gradient(135deg, var(--theme-color), var(--theme-light)); padding: 60px 0; text-align: center; color: #fff; }
.cta-content h2 { font-size: 28px; margin-bottom: 15px; }
.cta-content p { opacity: 0.9; margin-bottom: 25px; font-size: 15px; }
.cta-buttons { display: flex; gap: 15px; justify-content: center; }
.btn-light { background: #fff; color: var(--theme-color); }
.btn-light:hover { background: #f5f5f5; color: var(--theme-dark); }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--theme-color); }

/* 关键词链接 */
.keywords-section { background: #fafafa; padding: 40px 0; }
.kw-title { font-size: 16px; margin-bottom: 15px; color: #666; padding-bottom: 10px; border-bottom: 1px solid #eee; }
.kw-links { columns: 4; column-gap: 15px; }
.kw-links a { display: block; padding: 6px 0; color: #888; font-size: 13px; border-bottom: 1px dashed #eee; break-inside: avoid; }
.kw-links a:hover { color: var(--theme-color); }

/* 面包屑 */
.breadcrumb { background: #f9f9f9; padding: 12px 0; border-bottom: 1px solid #eee; font-size: 13px; color: #999; }
.breadcrumb a { color: #999; }
.breadcrumb a:hover { color: var(--theme-color); }
.breadcrumb span { margin: 0 8px; }

/* 友情链接 */
.friend-links { border-top: 1px solid #333; padding: 20px 0; margin-bottom: 20px; font-size: 13px; color: #888; }
.friend-links span { margin-right: 10px; }
.friend-links a { color: #888; margin-right: 15px; }
.friend-links a:hover { color: var(--theme-color); }

/* 微信咨询弹窗 */
.wechat-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

.wechat-modal-content {
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 380px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.wechat-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  z-index: 10;
  transition: color 0.2s;
}

.wechat-close:hover {
  color: #333;
}

.wechat-header {
  text-align: center;
  padding: 30px 20px 20px;
  background: linear-gradient(135deg, #07c160, #10b981);
  border-radius: 16px 16px 0 0;
  color: #fff;
}

.wechat-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

.wechat-header h3 {
  font-size: 20px;
  margin-bottom: 5px;
  font-weight: bold;
}

.wechat-header p {
  font-size: 13px;
  opacity: 0.9;
}

.wechat-qrcode {
  padding: 25px 20px 15px;
  text-align: center;
}

.qrcode-img {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  border: 4px solid #f5f5f5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.scan-tip {
  margin-top: 12px;
  font-size: 14px;
  color: #07c160;
  font-weight: 500;
}

.wechat-id {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 20px;
  background: #f9f9f9;
  margin: 0 20px;
  border-radius: 10px;
  font-size: 15px;
}

.wechat-id span {
  color: #666;
}

.wechat-id strong {
  color: #333;
  font-size: 16px;
}

.copy-btn {
  background: var(--theme-color, #c62828);
  color: #fff;
  border: none;
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.copy-btn:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.wechat-tips {
  padding: 20px;
  font-size: 13px;
  color: #888;
  line-height: 2;
}

.wechat-tips p {
  margin: 0;
}

/* 悬浮咨询按钮 */
.float-consult {
  position: fixed;
  right: 20px;
  bottom: 80px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #07c160, #10b981);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(7, 193, 96, 0.4);
  z-index: 1000;
  transition: all 0.3s;
  animation: floatPulse 2s infinite;
}

@keyframes floatPulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(7, 193, 96, 0.4);
  }
  50% {
    box-shadow: 0 4px 25px rgba(7, 193, 96, 0.6);
  }
}

.float-consult:hover {
  transform: scale(1.1);
}

.float-icon {
  font-size: 24px;
  line-height: 1;
}

.float-consult span {
  font-size: 10px;
  margin-top: 2px;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .wechat-modal-content {
    max-width: 320px;
  }
  
  .qrcode-img {
    width: 180px;
    height: 180px;
  }
  
  .wechat-header {
    padding: 25px 15px 15px;
  }
  
  .wechat-header h3 {
    font-size: 18px;
  }
  
  .float-consult {
    width: 55px;
    height: 55px;
    right: 15px;
    bottom: 70px;
  }
  
  .float-icon {
    font-size: 22px;
  }
}
