/* ===== 变量 ===== */
:root {
  --primary: #C8102E;
  --primary-dark: #8B0000;
  --primary-light: #FF6B6B;
  --primary-bg: #FFF5F5;
  --text-dark: #1a1a1a;
  --text-gray: #666;
  --border: #e0e0e0;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(200,16,46,0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "微软雅黑", sans-serif; color: var(--text-dark); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== 导航 ===== */
.navbar { position: fixed; top: 0; width: 100%; background: white; z-index: 1000; transition: box-shadow 0.3s; }
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.1); }
.navbar .container { display: flex; align-items: center; height: 70px; gap: 15px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon { font-size: 32px; }
.logo-name { font-size: 18px; font-weight: bold; color: var(--primary); }
.logo-sub { font-size: 11px; color: var(--text-gray); }
.nav-menu { display: flex; gap: 2px; flex: 1; justify-content: center; }
.nav-menu a { padding: 8px 12px; border-radius: 4px; font-size: 14px; transition: all 0.3s; white-space: nowrap; }
.nav-menu a:hover, .nav-menu a.active { color: var(--primary); background: var(--primary-bg); }
.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-phone { font-size: 13px; color: var(--primary); font-weight: bold; }
.btn-consult { background: var(--primary); color: white; padding: 8px 18px; border-radius: 4px; font-size: 13px; transition: background 0.3s; white-space: nowrap; }
.btn-consult:hover { background: var(--primary-dark); }
.hamburger { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

/* ===== 按钮 ===== */
.btn-primary { display: inline-block; background: var(--primary); color: white; padding: 12px 30px; border-radius: 4px; font-size: 15px; transition: all 0.3s; border: none; cursor: pointer; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline { display: inline-block; border: 2px solid var(--primary); color: var(--primary); padding: 10px 28px; border-radius: 4px; font-size: 15px; transition: all 0.3s; }
.btn-outline:hover { background: var(--primary); color: white; }

/* ===== 页面标题区 ===== */
.page-hero { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: white; padding: 130px 0 60px; text-align: center; }
.page-hero h1 { font-size: 36px; margin-bottom: 15px; }
.page-hero p { font-size: 16px; opacity: 0.9; }

/* ===== 区块标题 ===== */
.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 32px; color: var(--text-dark); margin-bottom: 15px; }
.section-title h2 span { color: var(--primary); }
.section-title p { color: var(--text-gray); font-size: 16px; }
.divider { width: 60px; height: 3px; background: var(--primary); margin: 15px auto; }

/* ===== 卡片 ===== */
.card { background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 15px rgba(0,0,0,0.08); transition: all 0.3s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

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

/* ===== 首页轮播 ===== */
.hero-slider { position: relative; height: 100vh; min-height: 600px; overflow: hidden; margin-top: 70px; }
.slide { position: absolute; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; color: white; opacity: 0; transition: opacity 0.8s; }
.slide.active { opacity: 1; z-index: 1; }
.slide-1 { background: linear-gradient(135deg, #8B0000, #C8102E); }
.slide-2 { background: linear-gradient(135deg, #C8102E, #FF6B6B); }
.slide-3 { background: linear-gradient(135deg, #4a0000, #8B0000); }
.slide-content h1 { font-size: 48px; margin-bottom: 20px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.slide-content p { font-size: 20px; margin-bottom: 35px; opacity: 0.9; }
.slider-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 2; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: background 0.3s; }
.dot.active { background: white; }
.slider-arrows { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; display: flex; justify-content: space-between; padding: 0 20px; z-index: 2; pointer-events: none; }
.slider-arrows .arrow { pointer-events: all; }

/* ===== 数字统计 ===== */
.stats { background: var(--primary); color: white; padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat-item { padding: 20px; border-right: 1px solid rgba(255,255,255,0.2); }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 48px; font-weight: bold; display: block; }
.stat-label { font-size: 14px; opacity: 0.9; margin-top: 5px; }

/* ===== 产品卡片 ===== */
.product-card { background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 15px rgba(0,0,0,0.08); transition: all 0.3s; cursor: pointer; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-card .product-img { height: 180px; background: linear-gradient(135deg, var(--primary-bg), #fff); display: flex; align-items: center; justify-content: center; font-size: 60px; }
.product-card .product-info { padding: 20px; }
.product-card .product-name { font-size: 16px; font-weight: bold; margin-bottom: 8px; }
.product-card .product-desc { font-size: 13px; color: var(--text-gray); margin-bottom: 12px; line-height: 1.6; }
.product-card .product-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.product-tag { display: inline-block; background: var(--primary-bg); color: var(--primary); padding: 3px 10px; border-radius: 20px; font-size: 11px; }

/* ===== 服务/优势卡片 ===== */
.service-card { background: white; border-radius: 8px; padding: 30px; text-align: center; box-shadow: 0 2px 15px rgba(0,0,0,0.08); transition: all 0.3s; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service-card .icon { width: 70px; height: 70px; background: var(--primary-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 32px; }
.service-card h3 { font-size: 18px; margin-bottom: 12px; }
.service-card p { font-size: 14px; color: var(--text-gray); line-height: 1.7; }

/* ===== 新闻列表 ===== */
.news-item { display: flex; gap: 25px; padding: 25px 0; border-bottom: 1px solid var(--border); }
.news-item:last-child { border-bottom: none; }
.news-img { width: 220px; height: 140px; flex-shrink: 0; background: linear-gradient(135deg, var(--primary-bg), #ffe); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 50px; }
.news-content { flex: 1; }
.news-tag { display: inline-block; background: var(--primary); color: white; padding: 2px 10px; border-radius: 3px; font-size: 12px; margin-bottom: 8px; }
.news-title { font-size: 18px; font-weight: bold; margin-bottom: 10px; }
.news-title a:hover { color: var(--primary); }
.news-excerpt { color: var(--text-gray); font-size: 14px; line-height: 1.7; margin-bottom: 10px; }
.news-meta { font-size: 12px; color: #999; }

/* ===== 团队/案例卡片 ===== */
.team-card { background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 15px rgba(0,0,0,0.08); text-align: center; transition: all 0.3s; }
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.team-card .avatar { width: 120px; height: 120px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 50%; margin: 30px auto 15px; display: flex; align-items: center; justify-content: center; font-size: 50px; }
.team-card h3 { font-size: 18px; margin-bottom: 5px; }
.team-card .position { color: var(--primary); font-size: 13px; margin-bottom: 10px; }
.team-card p { font-size: 13px; color: var(--text-gray); padding: 0 20px 20px; line-height: 1.7; }

/* ===== 流程步骤 ===== */
.process-steps { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; }
.process-step { display: flex; align-items: center; gap: 10px; }
.step-num { width: 40px; height: 40px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 16px; }
.step-text { font-size: 15px; font-weight: 500; }
.step-arrow { font-size: 20px; color: var(--primary); }

/* ===== 时间轴 ===== */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--primary); }
.timeline-item { position: relative; margin-bottom: 30px; padding-left: 30px; }
.timeline-item::before { content: ''; position: absolute; left: -26px; top: 5px; width: 14px; height: 14px; background: var(--primary); border-radius: 50%; border: 3px solid white; }
.timeline-year { color: var(--primary); font-weight: bold; font-size: 16px; margin-bottom: 5px; }
.timeline-text { font-size: 14px; color: var(--text-gray); }

/* ===== 表单 ===== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--text-dark); font-weight: 500; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 15px; border: 1px solid var(--border); border-radius: 4px; font-size: 14px; transition: border-color 0.3s; font-family: inherit; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group textarea { height: 120px; resize: vertical; }

/* ===== 面包屑 ===== */
.breadcrumb { padding: 15px 0; font-size: 13px; color: var(--text-gray); margin-top: 70px; }
.breadcrumb a { color: var(--text-gray); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 8px; }

/* ===== 分页 ===== */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.page-btn { min-width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 4px; cursor: pointer; transition: all 0.3s; font-size: 14px; }
.page-btn:hover, .page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ===== Tab切换 ===== */
.tab-group { display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.tab-btn { padding: 10px 25px; border: 2px solid var(--border); border-radius: 30px; background: white; cursor: pointer; font-size: 14px; transition: all 0.3s; }
.tab-btn:hover { border-color: var(--primary); color: var(--primary); }
.tab-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== 筛选标签 ===== */
.filter-group { display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn { padding: 8px 20px; border: 1px solid var(--border); border-radius: 4px; background: white; cursor: pointer; font-size: 14px; transition: all 0.3s; }
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ===== 悬浮客服 ===== */
.float-service { position: fixed; right: 20px; bottom: 100px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.float-btn { width: 50px; height: 50px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; cursor: pointer; box-shadow: 0 3px 15px rgba(200,16,46,0.4); transition: transform 0.3s; }
.float-btn:hover { transform: scale(1.1); }

/* ===== 返回顶部 ===== */
.back-top { position: fixed; right: 20px; bottom: 30px; width: 50px; height: 50px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; cursor: pointer; box-shadow: 0 3px 15px rgba(200,16,46,0.4); opacity: 0; transition: all 0.3s; z-index: 999; pointer-events: none; }
.back-top.show { opacity: 1; pointer-events: all; }

/* ===== 底部 ===== */
.footer { background: #1a1a1a; color: #ccc; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h3 { color: white; font-size: 16px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); display: inline-block; }
.footer p { font-size: 14px; line-height: 2; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { font-size: 14px; color: #ccc; transition: color 0.3s; }
.footer ul a:hover { color: var(--primary); }
.qr-placeholder { width: 100px; height: 100px; background: #333; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #666; margin-top: 10px; }
.footer-bottom { border-top: 1px solid #333; padding: 20px 0; text-align: center; font-size: 13px; }
.footer-bottom a { color: #ccc; margin: 0 8px; }
.footer-bottom a:hover { color: var(--primary); }

/* ===== 产品详情页 ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding: 40px 0; }
.product-gallery .main-img { width: 100%; height: 400px; background: linear-gradient(135deg, var(--primary-bg), #fff); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 100px; margin-bottom: 15px; }
.product-info .product-title { font-size: 28px; margin-bottom: 10px; }
.product-info .product-tags { display: flex; gap: 8px; margin-bottom: 20px; }
.product-info .product-price { font-size: 24px; color: var(--primary); font-weight: bold; margin-bottom: 20px; }
.product-info .product-desc { font-size: 15px; color: var(--text-gray); line-height: 1.8; margin-bottom: 25px; }
.product-info .product-specs { background: var(--primary-bg); padding: 20px; border-radius: 8px; margin-bottom: 25px; }
.product-specs h4 { font-size: 15px; margin-bottom: 10px; }
.product-specs ul { font-size: 14px; color: var(--text-gray); }
.product-specs li { margin-bottom: 5px; padding-left: 15px; position: relative; }
.product-specs li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); }

/* ===== 联系页 ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding: 40px 0; }
.contact-info { background: var(--primary-bg); padding: 30px; border-radius: 8px; }
.contact-info h3 { font-size: 20px; margin-bottom: 20px; }
.contact-info p { font-size: 14px; margin-bottom: 15px; display: flex; align-items: flex-start; gap: 10px; }
.contact-info .icon { font-size: 18px; }
.map-placeholder { width: 100%; height: 250px; background: linear-gradient(135deg, #eee, #ddd); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 50px; margin-top: 30px; }

/* ===== 加盟页 ===== */
.franchise-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 50px; }
.franchise-card { background: white; border-radius: 8px; padding: 30px; text-align: center; box-shadow: 0 2px 15px rgba(0,0,0,0.08); border-top: 4px solid var(--primary); transition: all 0.3s; }
.franchise-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.franchise-card .icon { width: 60px; height: 60px; background: var(--primary-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 15px; font-size: 28px; }
.franchise-card h3 { font-size: 18px; margin-bottom: 10px; }
.franchise-card p { font-size: 13px; color: var(--text-gray); line-height: 1.7; }

/* ===== 资质卡片 ===== */
.cert-card { background: white; border-radius: 8px; padding: 25px; text-align: center; box-shadow: 0 2px 15px rgba(0,0,0,0.08); transition: all 0.3s; }
.cert-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.cert-card .icon { width: 80px; height: 80px; background: var(--primary-bg); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin: 0 auto 15px; font-size: 36px; }
.cert-card h4 { font-size: 14px; }

/* ===== 文章页 ===== */
.article-header { text-align: center; padding: 40px 0 30px; }
.article-header h1 { font-size: 28px; margin-bottom: 15px; }
.article-meta { font-size: 13px; color: var(--text-gray); margin-bottom: 20px; }
.article-body { font-size: 15px; line-height: 1.9; color: var(--text-dark); }
.article-body p { margin-bottom: 20px; }
.article-body img { max-width: 100%; border-radius: 8px; margin: 20px 0; }
.prev-next { display: flex; justify-content: space-between; padding: 30px 0; border-top: 1px solid var(--border); margin-top: 30px; }
.prev-next a { font-size: 14px; color: var(--primary); }
.sidebar-news h3 { font-size: 18px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); display: inline-block; }
.sidebar-news li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.sidebar-news a { font-size: 14px; color: var(--text-dark); line-height: 1.5; }
.sidebar-news a:hover { color: var(--primary); }
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; }

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .franchise-types { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-menu, .nav-actions { display: none; }
  .hamburger { display: block; }
  .nav-menu.open { display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; width: 100%; background: white; padding: 20px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); }
  .footer-grid { grid-template-columns: 1fr; }
  .slide-content h1 { font-size: 28px; }
  .slide-content p { font-size: 15px; }
  .news-item { flex-direction: column; }
  .news-img { width: 100%; }
  .section { padding: 50px 0; }
  .section-title h2 { font-size: 24px; }
  .franchise-types { grid-template-columns: 1fr; }
  .process-steps { flex-direction: column; gap: 15px; }
  .step-arrow { transform: rotate(90deg); }
  .tab-group { gap: 5px; }
  .tab-btn { padding: 8px 15px; font-size: 13px; }
  .contact-form { padding: 20px; }
}

@media (max-width: 480px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-num { font-size: 36px; }
  .logo-sub { display: none; }
  .nav-phone { display: none; }
}
