/* ===== 全局样式重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: #333; background: #fff; line-height: 1.6;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== 通用容器 ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== 导航栏 ===== */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: #fff; box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}
.site-header.scrolled { background: rgba(255,255,255,0.98); }
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 40px; width: auto; }
.logo-text { font-size: 20px; font-weight: 700; color: #1a1a1a; letter-spacing: 1px; }
.main-nav ul { display: flex; gap: 40px; align-items: center; }
.main-nav a {
    font-size: 15px; color: #666; transition: color 0.3s; position: relative;
}
.main-nav a:hover, .main-nav a.active { color: #c9000e; }
.main-nav a.active::after {
    content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
    height: 2px; background: #c9000e; border-radius: 2px;
}
.mobile-menu-btn {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
}
.mobile-menu-btn span {
    display: block; width: 24px; height: 2px;
    background: #333; border-radius: 2px; transition: all 0.3s;
}
.mobile-menu { display: none; position: fixed; top: 72px; left: 0; right: 0; background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,0.1); z-index: 999; }
.mobile-menu ul { padding: 16px 0; }
.mobile-menu li a { display: block; padding: 14px 24px; font-size: 16px; color: #333; border-bottom: 1px solid #f0f0f0; }
.mobile-menu.open { display: block; }

/* ===== Hero轮播 ===== */
.hero { padding-top: 72px; height: 100vh; min-height: 600px; }
.hero-swiper { width: 100%; height: 100%; }
.hero-swiper .swiper-slide {
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: #fff;
}
.slide-1 { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); }
.slide-2 { background: linear-gradient(135deg, #0f3460 0%, #16213e 50%, #1a1a2e 100%); }
.slide-3 { background: linear-gradient(135deg, #16213e 0%, #0f3460 50%, #1a1a2e 100%); }
.slide-content { padding: 24px; }
.slide-content h2 { font-size: 56px; font-weight: 700; margin-bottom: 16px; letter-spacing: 2px; }
.slide-content p { font-size: 22px; opacity: 0.85; }
.hero-swiper .swiper-pagination-bullet { width: 8px; height: 8px; background: rgba(255,255,255,0.5); }
.hero-swiper .swiper-pagination-bullet-active { background: #c9000e; }

/* ===== 服务板块 ===== */
.service-section { padding: 100px 0; }
.service-inner { display: flex; align-items: center; gap: 80px; }
.service-section.reverse .service-inner { flex-direction: row-reverse; }
.service-img { flex: 1; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.1); }
.service-img img { width: 100%; height: 400px; object-fit: cover; }
.service-text { flex: 1; }
.section-tag { font-size: 13px; font-weight: 600; color: #c9000e; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; display: block; }
.service-text h3 { font-size: 36px; font-weight: 700; margin-bottom: 20px; color: #1a1a1a; }
.service-text > p { font-size: 16px; color: #666; margin-bottom: 28px; line-height: 1.8; }
.service-list li {
    font-size: 15px; color: #555; padding: 10px 0;
    border-bottom: 1px solid #f0f0f0; position: relative; padding-left: 20px;
}
.service-list li::before {
    content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 6px; height: 6px; background: #c9000e; border-radius: 50%;
}

/* ===== 为什么选择我们 ===== */
.why-section { padding: 100px 0; background: #f8f9fa; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h3 { font-size: 36px; font-weight: 700; color: #1a1a1a; }
.more-link { display: inline-block; margin-top: 16px; font-size: 14px; color: #c9000e; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.why-card {
    background: #fff; padding: 40px 30px; border-radius: 12px;
    text-align: center; transition: all 0.3s ease; box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.why-card:hover { transform: translateY(-8px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.why-icon { font-size: 40px; font-weight: 800; color: #c9000e; margin-bottom: 20px; }
.why-card h4 { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.why-card p { font-size: 14px; color: #888; }

/* ===== 新闻列表 ===== */
.news-section { padding: 100px 0; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.news-card { border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.06); transition: all 0.3s; }
.news-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.news-thumb { height: 200px; overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.news-card:hover .news-thumb img { transform: scale(1.08); }
.news-body { padding: 24px; }
.news-date { font-size: 12px; color: #999; margin-bottom: 8px; }
.news-title { font-size: 17px; font-weight: 600; color: #1a1a1a; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-excerpt { font-size: 14px; color: #777; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-more {
    display: inline-block; margin-top: 14px; font-size: 13px;
    color: #c9000e; transition: opacity 0.3s;
}

/* ===== 底部 ===== */
.site-footer { background: #1a1a1a; color: #ccc; padding: 60px 0 0; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand h4 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; color: #999; }
.footer-contact h4, .footer-links h4 { font-size: 16px; color: #fff; margin-bottom: 16px; }
.footer-contact p { font-size: 14px; margin-bottom: 8px; }
.footer-contact span { color: #999; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; color: #999; transition: color 0.3s; }
.footer-links a:hover { color: #c9000e; }
.footer-bottom { padding: 24px 0; text-align: center; font-size: 13px; color: #666; }
.footer-bottom a { color: #666; }
.footer-bottom a:hover { color: #c9000e; }

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .main-nav { display: none; }
    .mobile-menu-btn { display: flex; }
    .hero { min-height: 500px; }
    .slide-content h2 { font-size: 36px; }
    .slide-content p { font-size: 18px; }
    .service-inner { flex-direction: column !important; gap: 40px; }
    .service-img img { height: 280px; }
    .service-text h3 { font-size: 28px; }
    .news-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
}


/* ===== 内页通用Hero ===== */
.page-hero { position: relative; height: 320px; overflow: hidden; display: flex; align-items: center; justify-content: center; margin-top: 72px; }
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero-bg::after { content: ""; position: absolute; inset: 0; background: rgba(10,20,40,0.55); }
.about-bg { background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%); }
.services-bg { background: linear-gradient(135deg, #0f3460 0%, #1a4a3a 100%); }
.cases-bg { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); }
.news-bg { background: linear-gradient(135deg, #0f3460 0%, #16213e 100%); }
.contact-bg { background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%); }
.page-hero-content { position: relative; z-index: 2; text-align: center; color: #fff; }
.page-hero-content h1 { font-size: 42px; font-weight: 700; letter-spacing: 4px; margin-bottom: 12px; }
.page-hero-content p { font-size: 16px; letter-spacing: 3px; opacity: 0.7; text-transform: uppercase; }

/* ===== 服务详情 ===== */
.services-detail { padding: 80px 0; }
.service-detail-card { display: flex; align-items: center; gap: 60px; margin-bottom: 80px; }
.service-detail-card.reverse { flex-direction: row-reverse; }
.service-detail-img { flex: 1; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.12); }
.service-detail-img img { width: 100%; height: 360px; object-fit: cover; }
.service-detail-text { flex: 1; }
.service-detail-text h3 { font-size: 32px; font-weight: 700; color: #1a1a1a; margin: 12px 0 20px; }
.service-detail-text > p { font-size: 15px; color: #666; line-height: 1.9; margin-bottom: 24px; }

/* ===== 案例展示 ===== */
.cases-section { padding: 80px 0; }
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.case-card { border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.07); transition: all 0.3s; background: #fff; }
.case-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.14); }
.case-img { position: relative; height: 220px; overflow: hidden; }
.case-img img { width: 100%; height: 100%; object-fit: cover; }
.case-overlay { position: absolute; inset: 0; background: rgba(201,0,14,0.75); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
.case-card:hover .case-overlay { opacity: 1; }
.case-overlay h4 { color: #fff; font-size: 18px; font-weight: 600; letter-spacing: 2px; }
.case-info { padding: 24px; }
.case-info h4 { font-size: 16px; font-weight: 600; color: #1a1a1a; margin-bottom: 8px; }
.case-info p { font-size: 13px; color: #888; line-height: 1.7; margin-bottom: 12px; }
.case-tag { display: inline-block; font-size: 12px; color: #c9000e; background: #fff0f0; padding: 3px 10px; border-radius: 20px; }

/* ===== 新闻列表页 ===== */
.news-page-section { padding: 80px 0; }
.news-list-grid { display: flex; flex-direction: column; gap: 24px; }
.news-list-item { display: flex; gap: 28px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,0.06); transition: all 0.3s; padding: 20px; }
.news-list-item:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.12); }
.news-list-img { width: 260px; height: 180px; flex-shrink: 0; border-radius: 10px; overflow: hidden; }
.news-list-img img { width: 100%; height: 100%; object-fit: cover; }
.news-list-body { flex: 1; }
.news-list-tag { display: inline-block; font-size: 12px; color: #c9000e; background: #fff0f0; padding: 2px 10px; border-radius: 20px; margin-bottom: 10px; }
.news-list-body h4 { font-size: 18px; font-weight: 600; color: #1a1a1a; margin-bottom: 10px; }
.news-list-body h4 a:hover { color: #c9000e; }
.news-list-body p { font-size: 14px; color: #777; line-height: 1.7; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-list-meta { display: flex; gap: 20px; font-size: 13px; color: #aaa; }
.news-list-loading { text-align: center; padding: 60px; color: #999; }

/* ===== 新闻分类筛选 ===== */
.news-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.news-filter-btn { padding: 8px 20px; border: 1px solid #ddd; border-radius: 20px; background: #fff; font-size: 14px; color: #666; cursor: pointer; transition: all 0.2s; }
.news-filter-btn:hover { border-color: #FF2442; color: #FF2442; }
.news-filter-btn.active { background: #FF2442; border-color: #FF2442; color: #fff; }

/* ===== 新闻详情页 ===== */
.news-detail-section { padding: 80px 0; }
.news-detail-wrap { max-width: 800px; margin: 0 auto; }
.news-article { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
.news-article-header { padding: 40px 40px 20px; }
.news-article-header h1 { font-size: 28px; font-weight: 700; color: #1a1a1a; margin: 12px 0; line-height: 1.4; }
.news-article-cover { height: 400px; overflow: hidden; }
.news-article-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-article-body { padding: 32px 40px 40px; }
.news-article-body p { font-size: 16px; color: #555; line-height: 2; margin-bottom: 16px; }
.news-detail-back { text-align: center; margin-top: 32px; }
.news-detail-back a { font-size: 15px; color: #c9000e; }

/* ===== 联系页面 ===== */
.contact-section { padding: 80px 0; }
.contact-inner { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; }
.contact-info h3 { font-size: 28px; font-weight: 700; color: #1a1a1a; margin-bottom: 16px; }
.contact-info > p { font-size: 15px; color: #777; margin-bottom: 32px; line-height: 1.8; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.contact-icon { font-size: 24px; flex-shrink: 0; width: 40px; text-align: center; }
.contact-item h4 { font-size: 15px; font-weight: 600; color: #1a1a1a; margin-bottom: 4px; }
.contact-item p { font-size: 14px; color: #666; }
.contact-form-wrap h3 { font-size: 28px; font-weight: 700; color: #1a1a1a; margin-bottom: 28px; }
.contact-form { background: #f9f9f9; padding: 36px; border-radius: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; color: #555; margin-bottom: 8px; font-weight: 500; }
.form-group input, .form-group textarea { width: 100%; padding: 12px 16px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 14px; font-family: inherit; color: #333; transition: border-color 0.3s; outline: none; }
.form-group input:focus, .form-group textarea:focus { border-color: #c9000e; }
.form-group textarea { resize: vertical; }
.btn-submit { display: block; width: 100%; padding: 14px; background: #c9000e; color: #fff; border: none; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; transition: background 0.3s; }
.btn-submit:hover { background: #a8000b; }
.form-success { text-align: center; padding: 40px; font-size: 16px; color: #27ae60; }

/* ===== 关于页面 ===== */
.about-section { padding: 80px 0; }
.about-intro { padding: 80px 0; }
.about-intro-inner { display: flex; align-items: center; gap: 60px; }
.about-img { flex: 0 0 400px; }
.about-img img { width: 100%; height: 300px; object-fit: cover; border-radius: 16px; }
.about-text { flex: 1; text-align: left; }
.about-text .section-tag { font-size: 13px; font-weight: 600; color: #c9000e; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; display: block; }
.about-text h2 { font-size: 32px; font-weight: 700; color: #1a1a1a; margin-bottom: 20px; }
.about-text p { font-size: 15px; color: #666; line-height: 1.8; margin-bottom: 12px; }
.about-stats { display: flex; gap: 40px; margin-top: 30px; }
.stat-item { text-align: center; }
.stat-num { font-size: 36px; font-weight: 800; color: #c9000e; margin-bottom: 4px; }
.stat-label { font-size: 13px; color: #888; }
.about-values { padding: 80px 0; background: #fafafa; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.value-card { background: #fff; border-radius: 16px; padding: 40px 24px; text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,0.06); transition: transform 0.3s, box-shadow 0.3s; }
.value-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.value-icon { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, #c9000e, #e63950); color: #fff; font-size: 24px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.value-card h4 { font-size: 18px; font-weight: 600; color: #1a1a1a; margin-bottom: 12px; }
.value-card p { font-size: 14px; color: #888; line-height: 1.6; }
.about-img-full { width: 100%; height: 400px; object-fit: cover; border-radius: 16px; margin-bottom: 80px; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-bottom: 80px; }
.stat-card { text-align: center; padding: 40px 20px; background: #fff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.stat-number { display: block; font-size: 42px; font-weight: 800; color: #c9000e; margin-bottom: 8px; }
.stat-label { font-size: 14px; color: #888; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; }
.team-card { text-align: center; background: #fff; border-radius: 12px; padding: 32px; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.team-avatar { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 16px; object-fit: cover; }
.team-name { font-size: 17px; font-weight: 600; color: #1a1a1a; margin-bottom: 4px; }
.team-role { font-size: 13px; color: #c9000e; }
.team-desc { font-size: 13px; color: #888; margin-top: 10px; line-height: 1.6; }

/* ===== 动画 ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { opacity: 0; }
.fade-up.visible { animation: fadeUp 0.7s ease forwards; }

/* ===== 响应式补充 ===== */
@media (max-width: 992px) {
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .service-detail-card { flex-direction: column !important; gap: 32px; }
  .about-intro-inner { flex-direction: column; gap: 32px; }
  .about-img { flex: none !important; width: 100%; }
  .about-text { text-align: center !important; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .about-stats { justify-content: center; }
}
@media (max-width: 768px) {
  .page-hero { height: 240px; }
  .page-hero-content h1 { font-size: 28px; }
  .cases-grid { grid-template-columns: 1fr; }
  .news-list-item { flex-direction: column; }
  .news-list-img { width: 100%; height: 200px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .news-article-header { padding: 24px; }
  .news-article-cover { height: 240px; }
  .news-article-body { padding: 20px; }
  .news-article-header h1 { font-size: 22px; }
  .service-detail-img img { height: 240px; }
  .service-detail-text h3 { font-size: 24px; }
  .about-img-full { height: 240px; }
  .values-grid { grid-template-columns: 1fr; }
  .about-stats { flex-direction: column; gap: 20px; }
  .stat-item { text-align: center; }
}
