/* ==================== 基础重置 ==================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Microsoft YaHei', 'PingFang SC', 'Noto Sans SC', sans-serif; font-size: 15px; line-height: 1.7; color: #333; background: #f8f9fa; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ==================== 顶部信息栏 ==================== */
.top-bar { background: #0a1628; color: #aab; font-size: 13px; padding: 8px 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar span { margin-right: 25px; }
.top-bar i { color: #ff6f00; margin-right: 5px; }

/* ==================== 导航栏 ==================== */
.main-header { background: #fff; box-shadow: 0 2px 15px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 1000; }
.main-header .container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo img { height: 55px; width: auto; }
.main-nav ul { display: flex; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 0 22px; line-height: 80px; font-size: 15px; font-weight: 500; color: #2c3e50; }
.main-nav a:hover, .main-nav a.active { color: #ff6f00; }
.main-nav li::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 3px; background: #ff6f00; transition: all 0.3s ease; transform: translateX(-50%); }
.main-nav li:hover::after { width: 60%; }
.sub-nav { position: absolute; top: 100%; left: 0; background: #fff; min-width: 200px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease; border-top: 3px solid #ff6f00; }
.main-nav li:hover .sub-nav { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-nav a { line-height: 45px; padding: 0 20px; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.sub-nav a:hover { background: #f8f9fa; padding-left: 25px; }
.mobile-menu-toggle { display: none; font-size: 24px; color: #0d47a1; cursor: pointer; }
.mobile-menu { display: none; position: fixed; top: 0; left: -280px; width: 280px; height: 100%; background: #0d47a1; z-index: 2000; padding-top: 60px; transition: left 0.3s ease; }
.mobile-menu.active { left: 0; }
.mobile-menu a { display: block; padding: 15px 25px; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobile-menu a:hover { background: rgba(255,255,255,0.1); }

/* ==================== Banner区域 ==================== */
.banner { position: relative; height: 550px; overflow: hidden; }
.banner-slide { position: relative; height: 100%; display: flex; align-items: center; background-size: cover; background-position: center; }
.banner-slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,71,161,0.85) 0%, rgba(13,71,161,0.4) 100%); }
.banner-content { position: relative; z-index: 2; color: #fff; max-width: 600px; }
.banner-content h1 { font-size: 42px; font-weight: 700; margin-bottom: 20px; line-height: 1.3; }
.banner-content p { font-size: 18px; margin-bottom: 30px; opacity: 0.9; }
.banner-btn { display: inline-block; padding: 12px 35px; background: #ff6f00; color: #fff; border-radius: 4px; font-weight: 500; }
.banner-btn:hover { background: #e65100; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255,111,0,0.3); }
.banner-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; 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: #ff6f00; width: 30px; border-radius: 6px; }

/* ==================== 通用板块标题 ==================== */
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 32px; color: #0d47a1; font-weight: 700; margin-bottom: 10px; }
.section-header p { color: #888; font-size: 15px; }
.section-header .line { width: 60px; height: 3px; background: #ff6f00; margin: 15px auto 0; }

/* ==================== 首页-关于我们 ==================== */
.about-section { padding: 80px 0; background: #fff; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img { position: relative; }
.about-img img { border-radius: 8px; box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.about-img::before { content: ''; position: absolute; top: -20px; left: -20px; width: 100%; height: 100%; border: 3px solid #ff6f00; border-radius: 8px; z-index: -1; }
.about-content h2 { font-size: 32px; color: #0d47a1; margin-bottom: 20px; }
.about-content p { color: #666; margin-bottom: 15px; text-align: justify; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.stat-item { text-align: center; padding: 20px; background: #f8f9fa; border-radius: 8px; }
.stat-item .num { font-size: 36px; font-weight: 700; color: #ff6f00; }
.stat-item .label { color: #666; font-size: 14px; margin-top: 5px; }

/* ==================== 首页-产品展示 ==================== */
.products-section { padding: 80px 0; background: #f0f4f8; }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.product-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 3px 15px rgba(0,0,0,0.06); transition: all 0.3s ease; }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,0,0,0.12); }
.product-card .img-wrap { height: 200px; overflow: hidden; }
.product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover img { transform: scale(1.1); }
.product-card .info { padding: 20px; }
.product-card h3 { font-size: 17px; color: #2c3e50; margin-bottom: 8px; }
.product-card p { font-size: 13px; color: #888; line-height: 1.6; }
.product-card .more { display: inline-block; margin-top: 12px; color: #ff6f00; font-size: 14px; font-weight: 500; }
.product-card .more i { margin-left: 5px; transition: transform 0.3s; }
.product-card:hover .more i { transform: translateX(5px); }

/* ==================== 首页-服务优势 ==================== */
.features-section { padding: 80px 0; background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%); color: #fff; }
.features-section .section-header h2, .features-section .section-header p { color: #fff; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.feature-item { text-align: center; padding: 40px 25px; background: rgba(255,255,255,0.08); border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); transition: all 0.3s; }
.feature-item:hover { background: rgba(255,255,255,0.15); transform: translateY(-5px); }
.feature-item i { font-size: 42px; color: #ff6f00; margin-bottom: 20px; }
.feature-item h3 { font-size: 18px; margin-bottom: 10px; }
.feature-item p { font-size: 14px; opacity: 0.8; line-height: 1.6; }

/* ==================== 首页-成功案例 ==================== */
.cases-section { padding: 80px 0; background: #fff; }
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.case-card { position: relative; border-radius: 8px; overflow: hidden; height: 280px; }
.case-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.case-card:hover img { transform: scale(1.1); }
.case-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,71,161,0.9) 0%, transparent 60%); display: flex; flex-direction: column; justify-content: flex-end; padding: 25px; color: #fff; }
.case-overlay h3 { font-size: 18px; margin-bottom: 8px; }
.case-overlay p { font-size: 13px; opacity: 0.8; }
.case-overlay .more { display: inline-block; margin-top: 12px; color: #ff6f00; font-size: 13px; }

/* ==================== 首页-新闻资讯 ==================== */
.news-section { padding: 80px 0; background: #f0f4f8; }
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.news-item { display: flex; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 3px 15px rgba(0,0,0,0.06); transition: all 0.3s; }
.news-item:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.news-item .news-img { width: 200px; flex-shrink: 0; }
.news-item .news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-item .news-body { padding: 20px; flex: 1; }
.news-item .date { color: #ff6f00; font-size: 13px; margin-bottom: 8px; }
.news-item h3 { font-size: 16px; color: #2c3e50; margin-bottom: 10px; line-height: 1.4; }
.news-item p { font-size: 13px; color: #888; line-height: 1.6; }

/* ==================== 页面包屑 ==================== */
.page-banner { background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%); padding: 80px 0 60px; text-align: center; color: #fff; }
.page-banner h1 { font-size: 36px; margin-bottom: 15px; }
.breadcrumb { display: flex; justify-content: center; gap: 10px; font-size: 14px; }
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: #ff6f00; }
.breadcrumb span { color: rgba(255,255,255,0.5); }

/* ==================== 列表页 ==================== */
.list-page { padding: 60px 0; }
.list-layout { display: grid; grid-template-columns: 280px 1fr; gap: 30px; }
.sidebar { background: #fff; border-radius: 8px; padding: 25px; box-shadow: 0 3px 15px rgba(0,0,0,0.06); height: fit-content; }
.sidebar h3 { font-size: 18px; color: #0d47a1; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #ff6f00; }
.sidebar ul li a { display: block; padding: 12px 0; color: #555; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.sidebar ul li a:hover, .sidebar ul li a.active { color: #ff6f00; padding-left: 10px; }
.main-content { background: #fff; border-radius: 8px; padding: 30px; box-shadow: 0 3px 15px rgba(0,0,0,0.06); }
.content-list .item { display: flex; gap: 20px; padding: 25px 0; border-bottom: 1px solid #f0f0f0; }
.content-list .item:last-child { border-bottom: none; }
.content-list .item-img { width: 220px; height: 150px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.content-list .item-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.content-list .item:hover .item-img img { transform: scale(1.05); }
.content-list .item-body { flex: 1; }
.content-list .item-body h3 { font-size: 18px; color: #2c3e50; margin-bottom: 10px; }
.content-list .item-body p { font-size: 14px; color: #888; line-height: 1.7; margin-bottom: 10px; }
.content-list .item-meta { font-size: 13px; color: #aaa; }
.content-list .item-meta span { margin-right: 20px; }
.content-list .item-meta i { margin-right: 4px; color: #ff6f00; }

/* ==================== 分页 ==================== */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 15px; border-radius: 4px; background: #f0f4f8; color: #555; font-size: 14px; }
.pagination a:hover, .pagination span.current { background: #0d47a1; color: #fff; }

/* ==================== 内容详情页 ==================== */
.content-detail h1 { font-size: 28px; color: #2c3e50; margin-bottom: 15px; }
.content-meta { font-size: 14px; color: #888; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid #f0f0f0; }
.content-meta span { margin-right: 20px; }
.content-meta i { margin-right: 4px; color: #ff6f00; }
.content-body { font-size: 16px; line-height: 1.9; color: #444; }
.content-body p { margin-bottom: 15px; }
.content-body img { max-width: 100%; border-radius: 6px; margin: 15px 0; }
.content-body h2, .content-body h3 { color: #0d47a1; margin: 25px 0 15px; }
.content-nav { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 20px; border-top: 1px solid #f0f0f0; }
.content-nav a { color: #555; font-size: 14px; }
.content-nav a:hover { color: #ff6f00; }

/* ==================== 单页模板 ==================== */
.about-detail .content-body { padding: 20px 0; }

/* ==================== 底部 ==================== */
.main-footer { background: #0a1628; color: #aab; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-grid h3 { color: #fff; font-size: 18px; margin-bottom: 20px; }
.footer-grid p { font-size: 14px; line-height: 1.8; margin-bottom: 10px; }
.footer-grid ul li a { display: block; padding: 6px 0; font-size: 14px; color: #aab; }
.footer-grid ul li a:hover { color: #ff6f00; padding-left: 5px; }
.footer-social { display: flex; gap: 15px; margin-top: 20px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: #fff; }
.footer-social a:hover { background: #ff6f00; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding: 20px 0; text-align: center; font-size: 13px; }
.footer-bottom a { color: #ff6f00; }

/* ==================== 返回顶部 & 悬浮按钮 ==================== */
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 45px; height: 45px; background: #0d47a1; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 999; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: #ff6f00; }
.mobile-float-btn { display: none; position: fixed; bottom: 30px; right: 30px; width: 55px; height: 55px; background: #ff6f00; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 999; box-shadow: 0 5px 20px rgba(255,111,0,0.4); }
.mobile-float-btn a { color: #fff; font-size: 24px; }

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .cases-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    .main-nav { display: none; }
    .mobile-menu-toggle { display: block; }
    .mobile-menu { display: block; }
    .mobile-float-btn { display: flex; }
    .banner { height: 400px; }
    .banner-content h1 { font-size: 26px; }
    .banner-content p { font-size: 15px; }
    .products-grid, .features-grid, .cases-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .news-item { flex-direction: column; }
    .news-item .news-img { width: 100%; height: 180px; }
    .list-layout { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .content-list .item { flex-direction: column; }
    .content-list .item-img { width: 100%; height: 180px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .about-stats { grid-template-columns: 1fr; }
    .section-header h2 { font-size: 24px; }
    .page-banner h1 { font-size: 28px; }
}
