/* 全局重置 */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
body { color: #333; background: #f4f6f9; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* ====== 头部导航（彻底修复菜单未悬停却显示） ====== */
.header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 999; height: 70px; }
.header-content { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo img { height: 50px; display: block; }
.nav ul { display: flex; height: 100%; align-items: center; }
.nav ul li { position: relative; height: 100%; display: flex; align-items: center; }
.nav ul li > a { display: inline-block; padding: 0 20px; line-height: 70px; height: 70px; color: #222; font-weight: 500; font-size: 15px; transition: color 0.3s; }
.nav ul li > a:hover, .nav ul li > a.active { color: #004ea2; }
.menu-toggle { display: none; font-size: 28px; cursor: pointer; }

/* ---- PC端悬停逻辑 ---- */
@media (min-width: 769px) {
    .dropdown-content {
        display: none !important; /* 强制隐藏，杜绝未悬停显示 */
        position: absolute;
        top: 70px;
        left: 0;
        min-width: 160px;
        background: #004ea2;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        z-index: 999;
        border-radius: 0 0 4px 4px;
    }
    .dropdown-content li { height: auto; display: block; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .dropdown-content li:last-child { border-bottom: none; }
    .dropdown-content li a { color: #fff !important; height: auto; line-height: 1.5; padding: 12px 20px; display: block; font-size: 14px; font-weight: normal; }
    .dropdown-content li a:hover { background: #003a7a; }
    .dropdown:hover .dropdown-content { display: block !important; } /* 鼠标悬停时才展开 */
}

/* ---- 移动端点击逻辑 ---- */
@media (max-width: 768px) {
    .nav { display: none; position: absolute; top: 70px; left: 0; width: 100%; background: #fff; padding: 0; box-shadow: 0 4px 10px rgba(0,0,0,0.1); z-index: 998; }
    .nav.open { display: block; }
    .nav ul { flex-direction: column; align-items: flex-start; width: 100%; }
    .nav ul li { width: 100%; height: auto; border-bottom: 1px solid #eee; padding: 0; }
    .nav ul li > a { display: block; width: 100%; line-height: 40px; height: 40px; padding-left: 20px; }
    .menu-toggle { display: block; }
    .dropdown-content { display: none; background: #f8f9fa; width: 100%; }
    .dropdown-content li a { color: #333 !important; line-height: 35px; padding-left: 40px; }
    .dropdown-content li a:hover { color: #004ea2 !important; background: #eef2f7; }
    .dropdown.open .dropdown-content { display: block; }
}

/* ====== 顶部Banner ====== */
.page-banner { height: 200px; display: flex; justify-content: center; align-items: center; color: #fff; font-size: 28px; font-weight: bold; background-size: cover; background-position: center; }
.page-banner-inner { background: rgba(0, 62, 129, 0.7); padding: 10px 40px; border-radius: 4px; }

/* ====== 通用版面（已缩小上下行距避免留白） ====== */
.section { padding: 30px 0; }
.section-title { text-align: center; margin-bottom: 30px; }
.section-title h3 { font-size: 28px; color: #004ea2; margin-bottom: 5px; }
.section-title p { color: #888; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; }
.btn-more { display: inline-block; background: #004ea2; color: #fff; padding: 8px 25px; border-radius: 4px; font-size: 14px; transition: 0.3s; }
.btn-more:hover { background: #003a7a; }

/* ====== 首页轮播图 ====== */
.banner-container { position: relative; width: 100%; overflow: hidden; }
.banner-wrapper { display: flex; transition: transform 0.5s ease-in-out; }
.banner-slide { min-width: 100%; }
.banner-slide img { width: 100%; height: auto; display: block; max-height: 450px; object-fit: cover; }
.banner-indicators { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.banner-indicators .dot { width: 12px; height: 12px; background: rgba(255,255,255,0.5); border-radius: 50%; cursor: pointer; }
.banner-indicators .dot.active { background: #004ea2; }

/* ====== 新闻资讯 ====== */
.news-area .section-title { margin-bottom: 20px; }
.news-tabs { display: flex; justify-content: center; gap: 20px; margin-bottom: 25px; }
.news-tabs span { padding: 8px 25px; border: 1px solid #ddd; background: #fff; cursor: pointer; border-radius: 20px; font-size: 14px; transition: 0.3s; }
.news-tabs span.active { background: #004ea2; color: #fff; border-color: #004ea2; }
.news-grid { display: flex; gap: 30px; background: #fff; padding: 25px; border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
.news-feature { flex: 1.2; border-right: 1px solid #eee; padding-right: 30px; }
.news-feature-img { position: relative; margin-bottom: 15px; }
.news-feature-img img { width: 100%; height: 220px; object-fit: cover; display: block; border-radius: 4px; }
.news-feature-date { position: absolute; top: 0; left: 0; background: #e60012; color: #fff; padding: 10px 15px; font-size: 18px; font-weight: bold; line-height: 1.1; text-align: center; border-bottom-right-radius: 6px; }
.news-feature-date span { font-size: 12px; font-weight: normal; }
.news-side-list { flex: 1; }
.news-side-list ul li { display: flex; justify-content: space-between; border-bottom: 1px solid #eee; padding: 12px 0; }
.news-side-list ul li span { color: #999; font-size: 13px; }

/* ====== 新增：四大核心图文板块（解决原简介留白多问题） ====== */
.features-area { background: #f9f9fa; padding-bottom: 40px; }
.features-grid { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.feature-item { flex: 1; min-width: 220px; background: #fff; padding: 30px 25px; border-radius: 8px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.03); transition: 0.3s; }
.feature-item:hover { transform: translateY(-5px); box-shadow: 0 6px 15px rgba(0,0,0,0.06); }
.feature-item .icon-wrap { width: 70px; height: 70px; background: #f0f4f8; border-radius: 50%; display: flex; justify-content: center; align-items: center; margin: 0 auto 15px auto; color: #004ea2; font-size: 28px; font-weight: bold; }
.feature-item h4 { font-size: 18px; color: #004ea2; margin-bottom: 10px; }
.feature-item p { font-size: 13px; color: #666; line-height: 1.6; text-align: left; margin-bottom: 15px; }
.feature-item .more { font-size: 13px; color: #333; font-weight: bold; }
.feature-item .more:hover { color: #004ea2; }

/* ====== 首页工程原地切换 ====== */
.project-wrapper { background: #fff; border-radius: 4px; padding: 30px; box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
.project-demo-wrapper { display: flex; width: 100%; }
.project-menu { width: 220px; border-right: 1px solid #eee; flex-shrink: 0; }
.project-menu .menu-item { padding: 18px 20px; border-bottom: 1px solid #f0f0f0; cursor: pointer; transition: 0.3s; font-size: 16px; color: #333; position: relative; padding-left: 35px; }
.project-menu .menu-item::before { content: '◆'; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #004ea2; font-size: 14px; }
.project-menu .menu-item.active { background: #004ea2; color: #fff; }
.project-menu .menu-item.active::before { color: #fff; }
.project-content-area { flex: 1; display: flex; position: relative; padding-left: 20px; }
.project-img-box { flex: 2.5; overflow: hidden; border-radius: 4px; }
.project-img-box img { width: 100%; height: 280px; object-fit: cover; display: block; }
.project-desc-box { flex: 1; padding-left: 30px; display: flex; flex-direction: column; justify-content: center; position: relative; }
.project-desc-box h4 { color: #004ea2; font-size: 24px; margin-bottom: 15px; }
.project-desc-box p { color: #666; font-size: 14px; line-height: 1.8; margin-bottom: 25px; }
.project-arrows { position: absolute; bottom: 0; right: 0; display: flex; gap: 10px; }
.project-arrows span { width: 36px; height: 36px; background: #f1f1f1; color: #333; display: flex; justify-content: center; align-items: center; border-radius: 4px; cursor: pointer; transition: 0.3s; font-size: 18px; }
.project-arrows span:hover { background: #004ea2; color: #fff; }

/* ====== 内部页内容区 ====== */
.content-inner { background: #fff; padding: 30px; border-radius: 6px; }
.content-inner h2 { color: #004ea2; border-bottom: 2px solid #004ea2; padding-bottom: 10px; margin-bottom: 20px; font-size: 24px; }
.content-inner p { color: #555; line-height: 2; margin-bottom: 15px; }

/* ====== 底部页脚 ====== */
.footer { background: #1a1a1a; color: #ccc; padding: 40px 0 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; padding-bottom: 30px; border-bottom: 1px solid #333; }
.footer-contact h4, .footer-qr p { color: #fff; font-size: 16px; margin-bottom: 12px; }
.footer-contact p { font-size: 14px; margin-bottom: 8px; }
.footer-qr { display: flex; flex-direction: column; align-items: center; margin-left: 20px; }
.footer-qr img { height: 80px; width: auto; } /* 二维码调整大小，保持对齐 */
.footer-qr p { font-size: 14px; margin-top: 8px; margin-bottom: 0; }
.footer-bottom { text-align: center; padding: 20px 0; font-size: 13px; color: #888; }
.footer-bottom a { color: #888; text-decoration: underline; transition: 0.3s; }
.footer-bottom a:hover { color: #fff; }

/* ====== 移动端适配 ====== */
@media (max-width: 768px) {
    .features-grid { flex-direction: column; }
    .feature-item { min-width: 100%; }
    .news-grid, .project-demo-wrapper { flex-direction: column; }
    .project-menu { width: 100%; border-right: none; border-bottom: 1px solid #eee; display: flex; flex-wrap: wrap; }
    .project-menu .menu-item { flex: 1; justify-content: center; border-bottom: none; border-right: 1px solid #eee; padding: 12px 10px; padding-left: 25px; text-align: center; }
    .project-content-area { flex-direction: column; padding-left: 0; padding-top: 15px; }
    .project-img-box img { height: 200px; }
    .project-desc-box { padding-left: 0; margin-top: 15px; min-height: 120px; }
    .project-arrows { position: static; margin-top: 15px; justify-content: flex-end; }
    .footer-inner { flex-direction: column; align-items: center; text-align: center; }
    .footer-qr { margin-left: 0; margin-top: 15px; }
    .footer-qr img { height: 100px; } /* 手机端二维码可稍微放大 */
    .banner-slide img { max-height: 200px; }
}