﻿/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 14px; scroll-behavior: smooth; }
body { font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif; color: #333; background: #fff; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; transition: color 0.25s; }
a:hover { color: #0081CA; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container.flush { padding: 0; max-width: 1180px; }

/* ===== Scroll Animation ===== */
.anim-up { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.anim-up.visible { opacity: 1; transform: translateY(0); }
.anim-fade { opacity: 0; transform: translateY(10px); transition: opacity 0.6s ease, transform 0.6s ease; }
.anim-fade.visible { opacity: 1; transform: translateY(0); }

/* ===== Top Bar ===== */
.top-bar { background: #f5f5f5; border-bottom: 1px solid #e8e8e8; font-size: 13px; color: #777; }
.top-bar-inner { display: flex; justify-content: flex-end; align-items: center; height: 44px; max-width: 1440px; margin: 0 auto; padding: 0 30px; }
.top-links { display: flex; align-items: center; gap: 10px; margin-right: auto; margin-left: 10px; }
.top-links .home-icon { width: 16px; height: 16px; }
.top-badge { width: 106px; margin-left: 30px; }
.top-right { display: flex; align-items: center; gap: 16px; }
.lang-switch { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.lang-switch .active { color: #0081CA; font-weight: 600; }
.search-box { display: flex; align-items: center; border: 1px solid #ddd; border-radius: 3px; background: #fff; overflow: hidden; transition: border-color 0.3s; }
.search-box:focus-within { border-color: #0081CA; }
.search-box input { border: none; outline: none; padding: 5px 10px; width: 180px; font-size: 12px; transition: width 0.3s; }
.search-box:focus-within input { width: 220px; }
.search-btn { padding: 5px 8px; display: flex; align-items: center; transition: opacity 0.2s; }
.search-btn:hover { opacity: 0.7; }

/* ===== Main Header ===== */
.main-header { background: #fff; transition: box-shadow 0.3s, position 0.3s; z-index: 100; }
.main-header.sticky { position: sticky; top: 0; box-shadow: 0 2px 16px rgba(0,0,0,0.1); }
.header-inner { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 3px solid #0081cc; max-width: 1440px; margin: 0 auto; padding: 0 30px; }
.logo a { display: block; padding: 12px 0; position: relative; top: -6px; }
.logo-img { width: 350px; height: auto; }

/* ===== Navigation ===== */
.main-nav { position: relative; }
.nav-list { display: flex; align-items: stretch; }
.nav-item { position: relative; }
.nav-item > a { display: block; padding: 22px 28px; font-size: 16px; color: #333; font-weight: 500; transition: color 0.25s; white-space: nowrap; position: relative; }
.nav-item:first-child > a { padding-left: 0; }
.nav-item > a::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 3px; background: #0081CA; transition: width 0.3s, left 0.3s; }
.nav-item:hover > a::after { width: 100%; left: 0; }
.nav-item:hover > a { color: #0081CA; }
.nav-item.active > a { color: #0081CA; }
.nav-item.active > a::after { width: 100%; left: 0; }

/* Dropdown */
.dropdown { display: block; position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px); z-index: 1000; min-width: 200px; opacity: 0; visibility: hidden; transition: opacity 0.3s, transform 0.3s, visibility 0.3s; pointer-events: none; }
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.dropdown-content { background: #fff; border-top: 2px solid #0281CC; box-shadow: 0 6px 24px rgba(0,0,0,0.12); padding: 20px; display: flex; gap: 0; }
.dropdown-content.narrow { min-width: 220px; }
.dropdown-img { flex-shrink: 0; width: 300px; height: 250px; overflow: hidden; border-radius: 0; margin: 0 16px 0 0; }
.dropdown-img img { width: 300px; height: 250px; object-fit: cover; transition: transform 0.5s; }
.nav-item:hover .dropdown-img img { transform: scale(1.03); }
.dropdown-links { display: flex; flex-wrap: wrap; gap: 0; align-content: flex-start; width: 320px; padding: 0 20px; margin-top: 20px; }
.dropdown-links a { display: block; width: 48%; padding: 0; font-size: 14px; color: #333; white-space: nowrap; line-height: 30px; border-bottom: 1px dashed #999; margin: 10px 0 0; transition: color 0.2s, padding-left 0.2s; }
.dropdown-links a:hover { color: #0081CA; padding-left: 4px; }
.dropdown-links.single-col { width: auto; }
.dropdown-links.single-col a { width: 100%; }

/* Mobile */
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; padding: 10px; z-index: 200; }
.mobile-menu-btn span { display: block; width: 24px; height: 2px; background: #333; transition: 0.3s; border-radius: 2px; }

/* ===== Banner Slider ===== */
.banner-slider { position: relative; width: 100%; overflow: hidden; background: #000; }
.slider-wrapper { display: flex; transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.slide { min-width: 100%; height: 520px; position: relative; overflow: hidden; }
.slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease-out; }
.slide.active-slide img { transform: scale(1.06); }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,61,122,0.45) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.3) 100%); display: flex; align-items: center; justify-content: center; }
.slide-content { text-align: center; color: #fff; padding: 0 60px; max-width: 800px; }
.slide-content h2 { font-size: 44px; font-weight: 700; margin-bottom: 18px; letter-spacing: 4px; text-shadow: 0 2px 12px rgba(0,0,0,0.4); }
.slide-content p { font-size: 18px; opacity: 0.92; letter-spacing: 1px; text-shadow: 0 1px 6px rgba(0,0,0,0.3); line-height: 1.8; }
.slider-controls { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; z-index: 10; }
.slider-prev, .slider-next { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.15); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; transition: background 0.3s, transform 0.3s; }
.slider-prev:hover, .slider-next:hover { background: rgba(255,255,255,0.35); transform: scale(1.1); }
.slider-dots { display: flex; gap: 10px; }
.slider-dot { width: 36px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.4); cursor: pointer; transition: 0.4s; position: relative; overflow: hidden; }
.slider-dot::after { content: ''; position: absolute; top: 0; left: 0; width: 0; height: 100%; background: #fff; transition: width 0s; }
.slider-dot.active { background: rgba(255,255,255,0.4); }
.slider-dot.active::after { width: 100%; transition: width 4s linear; }
.slider-dot.passed::after { width: 100%; transition: none; }

/* ===== Stats Bar ===== */
.stats-bar { background: linear-gradient(135deg, #003d7a, #0081cc); padding: 30px 0; }
.stats-inner { display: flex; justify-content: space-around; align-items: center; }
.stat-item { text-align: center; color: #fff; }
.stat-num { font-size: 48px; font-weight: 700; line-height: 1; display: inline; }
.stat-plus { font-size: 32px; font-weight: 700; }
.stat-label { display: block; font-size: 14px; opacity: 0.85; margin-top: 8px; letter-spacing: 1px; }

/* ===== Main Content ===== */
/* Original layout: Row 1 = 430 + 430 + 288 = 1148 + 2*16gap = 1180 */
.main-content { padding: 30px 0 40px; background: #fafafa; }
.content-grid { display: flex; flex-wrap: nowrap; gap: 0; align-items: flex-start; }
.news-slider-card { width: 430px; flex-shrink: 0; margin-right: 16px; position: relative; border: 1px solid #f0f0f0; overflow: hidden; background: #000; }
.news-slider { position: relative; height: 250px; }
.news-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s ease; }
.news-slide.active { opacity: 1; z-index: 1; }
.news-slide-link { display: block; width: 100%; height: 100%; position: relative; }
.news-slide-link img { width: 430px; height: 250px; object-fit: cover; transition: transform 0.6s; }
.news-slide-link:hover img { transform: scale(1.05); }
.news-slide-title { position: absolute; bottom: 0; left: 0; width: 100%; padding: 10px 14px; background: rgba(0,0,0,0.6); color: #fff; font-size: 14px; font-weight: 400; }
.news-slide-title span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-slider-nav { position: absolute; bottom: 8px; right: 10px; display: flex; gap: 4px; z-index: 2; }
.news-dot { width: 22px; height: 22px; border-radius: 2px; background: rgba(255,255,255,0.35); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.3s; border: 1px solid rgba(255,255,255,0.5); }
.news-dot.active { background: #FF8800; border-color: #FF8800; }
.news-dot:hover { border-color: #FF8800; }

/* News List */
.news-list-card { width: 430px; flex-shrink: 0; margin-right: 16px; border: 1px solid #f0f0f0; background: #fff; }
.news-list-header { display: flex; justify-content: space-between; align-items: center; padding: 0 10px; height: 54px; border-bottom: 1px solid #f0f0f0; }
.news-list-header h2 { font-size: 21px; font-weight: 700; color: #333; }
.more-link { font-size: 14px; color: #999; transition: color 0.2s; }
.more-link:hover { color: #0081CA; }
.news-tabs { display: flex; gap: 0; padding: 0 10px; border-bottom: 1px solid #f0f0f0; }
.news-tab { padding: 10px 18px; font-size: 14px; color: #999; border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s; background: none; cursor: pointer; }
.news-tab.active { color: #0081CA; border-bottom-color: #0081CA; }
.news-tab:hover { color: #0081CA; }
.news-list { display: none; padding: 0 10px; animation: fadeIn 0.3s ease; }
.news-list.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.news-list li { display: flex; justify-content: space-between; align-items: center; height: 38px; border-bottom: 1px solid #f8f8f8; transition: background 0.2s; }
.news-list li:last-child { border-bottom: none; }
.news-list li:hover { background: #f8fbfd; }
.news-list li a { font-size: 14px; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 290px; transition: color 0.2s, padding-left 0.2s; }
.news-list li:hover a { color: #0081CA; padding-left: 4px; }
.news-date { font-size: 12px; color: #545454; flex-shrink: 0; width: 77px; text-align: right; }

/* Video - exactly 288px to match original */
.video-card { width: 288px; flex-shrink: 0; background: #000; overflow: hidden; }
.video-wrapper { position: relative; width: 100%; height: 250px; cursor: pointer; overflow: hidden; background: #222; }
.video-wrapper video { width: 100%; height: 100%; object-fit: cover; }
.video-play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; border-radius: 50%; background: rgba(0,129,202,0.85); display: flex; align-items: center; justify-content: center; transition: transform 0.3s, background 0.3s; z-index: 2; backdrop-filter: blur(4px); }
.video-play-btn:hover { transform: translate(-50%, -50%) scale(1.1); background: rgba(0,129,202,1); }
.video-play-btn.hidden { opacity: 0; pointer-events: none; }
.video-wrapper::before { content: ''; position: absolute; inset: 0; background: rgba(0,40,80,0.4); z-index: 1; transition: opacity 0.3s; }
.video-wrapper.playing::before { opacity: 0; }

/* ===== Business Section ===== */
/* Original layout: 
   Left side: 4x 430px blocks (2 columns, 2 rows) with 15px gap between
   Right side: 3x 288px blocks (1 column, 3 rows) with 15px gap
   Total: 430+16+430+16+288 = 1180 */
.business-section { padding: 0 0 50px; background: #fff; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 28px; font-weight: 700; color: #333; display: inline-block; }
.section-line { width: 50px; height: 3px; background: #0081cc; margin: 12px auto 0; border-radius: 2px; }

.business-grid { display: flex; gap: 16px; align-items: flex-start; }
.business-left { display: flex; flex-wrap: wrap; gap: 15px; flex: 1; }
.business-right { width: 288px; flex-shrink: 0; display: flex; flex-direction: column; gap: 15px; }

.business-item { position: relative; display: block; overflow: hidden; border-radius: 2px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: transform 0.4s, box-shadow 0.4s; }
.business-item:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
/* 2 per row in left: (1140-15) / 2 = 562.5 => use calc */
.business-item.large { width: calc((100% - 15px) / 2); height: 250px; }
.business-item.small { width: 288px; height: 162px; }
.business-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.business-item:hover img { transform: scale(1.08); }
.business-overlay { position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,0.6)); display: flex; justify-content: space-between; align-items: flex-end; padding: 0 25px 20px; transition: background 0.3s; }
.business-item:hover .business-overlay { background: linear-gradient(transparent 20%, rgba(0,80,140,0.7)); }
.business-label { font-size: 24px; color: #fff; font-weight: 700; text-shadow: 0 2px 8px rgba(0,0,0,0.4); font-family: "Microsoft YaHei", sans-serif; transition: transform 0.3s; }
.business-item:hover .business-label { transform: translateX(4px); }
.business-arrow { color: #fff; font-size: 22px; opacity: 0; transform: translateX(-10px); transition: opacity 0.3s, transform 0.3s; align-self: center; }
.business-item:hover .business-arrow { opacity: 1; transform: translateX(0); }

/* ===== Footer ===== */
.site-footer { background: #f0f0f0; border-top: 3px solid #0081CA; }
.footer-grid { display: flex; justify-content: space-between; padding: 37px 0 20px; flex-wrap: wrap; }
.footer-col { width: 14%; min-width: 100px; margin-bottom: 16px; }
.footer-heading { display: inline-block; font-size: 18px; color: #000; font-weight: 700; margin-bottom: 18px; line-height: 25px; }
.footer-col ul li { padding-bottom: 10px; font-size: 14px; line-height: 22px; }
.footer-col ul li a { color: #666; transition: color 0.2s, padding-left 0.2s; }
.footer-col ul li a:hover { color: #0081CA; padding-left: 3px; }
.wechat-item { position: relative; display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 6px 0; background: url(images/social.jpg) no-repeat 0 -38px; padding-left: 41px; min-height: 26px; }
.social-icon { display: none; }
.wechat-link { color: #777; font-size: 14px; }
.qrcode-popup { display: none; position: absolute; top: 28px; left: 0; width: 170px; height: 170px; background: #fff; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.12); padding: 10px; text-align: center; z-index: 10; }
.qrcode-popup img { width: 100%; height: auto; border-radius: 4px; }
.qrcode-popup span { display: none; }
.wechat-item:hover .qrcode-popup { display: block; animation: fadeIn 0.2s ease; }
.contact-col { width: 22%; }
.contact-info p { font-size: 13px; color: #666; line-height: 32px; }
.footer-badge { float: right; margin-top: -10px; margin-bottom: 20px; }
.footer-badge img { width: 124px; }
.footer-bottom { border-top: 1px solid #ccc; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; }
.copyright p { color: #666; font-size: 13px; line-height: 26px; }
.copyright a { color: #666; transition: color 0.2s; }
.copyright a:hover { color: #0081CA; }
.police-link { margin-left: 12px; }
.contact-link { color: #666; font-size: 13px; transition: color 0.2s; }
.contact-link:hover { color: #0081CA; }

/* ===== Back To Top ===== */
.back-to-top { position: fixed; bottom: 40px; right: 30px; width: 44px; height: 44px; border-radius: 50%; background: #0081CA; display: flex; align-items: center; justify-content: center; z-index: 999; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.3s, transform 0.3s, visibility 0.3s, background 0.3s; box-shadow: 0 4px 12px rgba(0,129,202,0.3); }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: #006ba6; transform: translateY(-2px); }

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .business-item.large { width: calc((100% - 15px) / 2); height: 220px; }
    .business-item.small { width: 230px; height: 130px; }
    .business-right { width: 230px; }
    .logo-img { width: 280px; }
    .nav-item > a { padding: 20px 16px; font-size: 15px; }
}
@media (max-width: 992px) {
    .slide { height: 380px; }
    .slide-content h2 { font-size: 30px; letter-spacing: 2px; }
    .slide-content p { font-size: 15px; }
    .content-grid { flex-wrap: wrap; justify-content: center; }
    .news-slider-card { width: 430px; margin-right: 0; margin-bottom: 16px; }
    .news-list-card { width: 430px; margin-right: 0; margin-bottom: 16px; }
    .video-card { width: 288px; }
    .video-wrapper { height: 250px; }
    .business-grid { flex-direction: column; align-items: center; }
    .business-left { justify-content: center; max-width: 100%; }
    .business-item.large { width: 430px; height: 250px; }
    .business-right { width: 100%; max-width: 880px; flex-direction: row; gap: 15px; justify-content: center; }
    .business-item.small { flex: 1; min-width: 200px; height: 150px; }
    .footer-grid { justify-content: flex-start; }
    .footer-col { width: 25%; }
    .contact-col { width: 50%; }
    .stats-inner { flex-wrap: wrap; gap: 20px; }
    .stat-item { width: 40%; }
}
@media (max-width: 768px) {
    .top-bar-inner { flex-direction: column; height: auto; padding: 8px 0; gap: 6px; justify-content: center; }
    .top-badge { display: none; }
    .nav-list { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,0.1); z-index: 999; max-height: 70vh; overflow-y: auto; }
    .nav-list.open { display: flex; animation: slideDown 0.3s ease; }
    @keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
    .nav-item > a { padding: 14px 20px; border-bottom: 1px solid #f0f0f0; }
    .nav-item > a::after { display: none; }
    .mobile-menu-btn { display: flex; }
    .main-nav { width: 100%; }
    .logo-img { width: 200px; }
    .slide { height: 260px; }
    .slide-content h2 { font-size: 22px; letter-spacing: 1px; }
    .slide-content p { font-size: 13px; }
    .slider-prev, .slider-next { width: 36px; height: 36px; }
    .dropdown { position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto; box-shadow: none; }
    .dropdown-content { box-shadow: none; flex-direction: column; padding: 8px 20px; border-top: none; }
    .dropdown-img { display: none; }
    .dropdown-links { width: auto; padding: 0; margin: 0; }
    .dropdown-links a { width: 100%; }
    .stat-num { font-size: 36px; }
    .news-slider-card { width: 100%; margin-right: 0; }
    .news-slider-card .news-slide-link img { width: 100%; height: auto; }
    .news-list-card { width: 100%; margin-right: 0; }
    .video-card { width: 100%; }
    .video-wrapper { height: 280px; }
    .business-item.large { width: 100%; height: 200px; }
    .business-right { flex-direction: column; }
    .business-item.small { width: 100%; height: 162px; }
    .footer-col { width: 50%; }
    .contact-col { width: 100%; }
    .footer-bottom-inner { flex-direction: column; gap: 10px; text-align: center; }
    .footer-badge { float: none; text-align: center; }
}
@media (max-width: 480px) {
    .slide { height: 200px; }
    .slide-content h2 { font-size: 18px; }
    .business-label { font-size: 18px; }
    .footer-col { width: 100%; }
    .search-box input { width: 120px; }
    .search-box:focus-within input { width: 160px; }
}