: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: 450px; background: #333; }
.banner-slide { width: 100%; height: 450px; object-fit: cover; }
.banner-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.banner-dots span { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; }
.banner-dots span.active { background: #fff; }

/* 通用区块 */
.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; }

/* 关于我们 */
.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: #222; }
.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: 250px; }
  .banner-slide { height: 250px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }
  .kw-links { columns: 2; }
}

/* 服务内容 */
.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); }
