﻿/* === 鹏城建设 - szjgjt风格设计 === */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Microsoft YaHei','PingFang SC','Helvetica Neue',Arial,sans-serif; line-height: 1.8; color: #333; background: #fff; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== 顶部工具条 ===== */
.toolbar { background: #0a2a4a; color: #a0b8d0; padding: 8px 0; font-size: 13px; }
.toolbar .container { display: flex; justify-content: space-between; align-items: center; }
.toolbar a { color: #a0b8d0; text-decoration: none; margin: 0 10px; font-size: 12px; transition: color 0.3s; }
.toolbar a:hover { color: #d4b87a; }
.toolbar .search-box { display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,0.15); border-radius: 3px; padding: 2px 8px; }
.toolbar .search-box input { background: none; border: none; color: #fff; font-size: 12px; outline: none; width: 120px; }
.toolbar .search-box input::placeholder { color: #6a8aaa; }
.toolbar .search-box i { color: #6a8aaa; cursor: pointer; }

/* ===== 导航 ===== */
.navbar { background: #fff; border-bottom: 1px solid #eee; }
.navbar .container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-img { width: 50px; height: 50px; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; }
.logo-text .cn { font-size: 22px; font-weight: 700; color: #0a2a4a; letter-spacing: 2px; }
.logo-text .en { font-size: 10px; color: #8a9ab0; letter-spacing: 1px; margin-top: 2px; }
.nav-links { display: flex; list-style: none; gap: 2px; }
.nav-links > li > a {
    display: block; padding: 0 20px; line-height: 80px; height: 80px;
    color: #333; text-decoration: none; font-size: 15px; font-weight: 500;
    transition: all 0.3s; position: relative;
}
.nav-links > li > a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 3px;
    background: #d4b87a; transition: width 0.3s;
}
.nav-links > li > a:hover { color: #0a2a4a; background: #f8f9fb; }
.nav-links > li > a:hover::after,
.nav-links > li > a.active::after { width: 100%; }
.nav-links > li > a.active { color: #0a2a4a; font-weight: 600; }

.menu-toggle { display: none; flex-direction: column; cursor: pointer; padding: 10px; }
.menu-toggle span { width: 26px; height: 2px; background: #333; margin: 4px 0; transition: 0.3s; }

/* ===== Banner ===== */
.banner { position: relative; height: 520px; overflow: hidden; }
.slider { height: 100%; } .slide { position: absolute; width: 100%; height: 100%; opacity: 0; transition: opacity 0.6s; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide .overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10,42,74,0.8) 0%, rgba(10,42,74,0.2) 60%, transparent 100%); }
.slide .text { position: absolute; bottom: 80px; left: 8%; max-width: 600px; color: #fff; }
.slide .text .label { display: inline-block; background: #d4b87a; color: #0a2a4a; padding: 4px 16px; font-size: 12px; font-weight: 600; margin-bottom: 15px; }
.slide .text h2 { font-size: 42px; font-weight: 700; margin-bottom: 12px; text-shadow: 0 2px 8px rgba(0,0,0,0.3); letter-spacing: 2px; }
.slide .text p { font-size: 16px; opacity: 0.9; max-width: 500px; }
.slider-ctrl { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: 0.3s; }
.dot.active { background: #d4b87a; width: 28px; border-radius: 5px; }
.slider-ctrl .arr { width: 36px; height: 36px; border: 2px solid rgba(255,255,255,0.4); background: transparent; color: #fff; border-radius: 50%; cursor: pointer; font-size: 14px; transition: 0.3s; line-height: 32px; text-align: center; }
.slider-ctrl .arr:hover { background: #fff; color: #0a2a4a; border-color: #fff; }

/* ===== 通用 ===== */
.section { padding: 70px 0; }
.section-gray { background: #f5f7fa; }
.section-dark { background: #0a2a4a; color: #fff; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title .tag { display: inline-block; color: #d4b87a; font-size: 13px; font-weight: 600; letter-spacing: 3px; margin-bottom: 8px; }
.section-title h2 { font-size: 30px; font-weight: 700; color: #0a2a4a; margin-bottom: 10px; }
.section-title .line { width: 40px; height: 3px; background: #d4b87a; margin: 12px auto; }
.section-title p { color: #777; font-size: 14px; }
.section-title.white h2 { color: #fff; }
.section-title.white p { color: #8ab0d0; }

/* ===== 公司概况 ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #0a2a4a; }
.stat-item { text-align: center; padding: 40px 20px; border-right: 1px solid rgba(255,255,255,0.08); }
.stat-item:last-child { border-right: none; }
.stat-item .num { font-size: 40px; font-weight: 700; color: #d4b87a; }
.stat-item .num span { font-size: 20px; }
.stat-item .label { margin-top: 8px; font-size: 13px; color: #8ab0d0; letter-spacing: 1px; }

/* ===== 关于我们 ===== */
.about-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-img { height: 380px; border-radius: 8px; overflow: hidden; box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-text h3 { font-size: 24px; color: #0a2a4a; margin-bottom: 15px; }
.about-text h3 .hl { color: #d4b87a; }
.about-text p { color: #555; line-height: 1.9; margin-bottom: 12px; font-size: 14px; }
.about-text .btn { display: inline-block; padding: 10px 28px; background: #0a2a4a; color: #fff; text-decoration: none; font-size: 14px; transition: background 0.3s; margin-top: 8px; }
.about-text .btn:hover { background: #1a3a5a; }

/* ===== 业务领域 ===== */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card { background: #fff; padding: 30px 20px; text-align: center; border: 1px solid #eee; transition: 0.3s; }
.service-card:hover { border-color: #d4b87a; transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.06); }
.service-card .icon { width: 60px; height: 60px; line-height: 60px; background: #f0f4f8; color: #0a2a4a; font-size: 24px; margin: 0 auto 15px; border-radius: 50%; transition: 0.3s; }
.service-card:hover .icon { background: #0a2a4a; color: #d4b87a; }
.service-card h3 { font-size: 17px; color: #0a2a4a; margin-bottom: 8px; }
.service-card p { font-size: 13px; color: #777; line-height: 1.6; }

/* ===== 工程案例 ===== */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.case-item { position: relative; height: 260px; overflow: hidden; }
.case-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.case-item:hover img { transform: scale(1.08); }
.case-item .info { position: absolute; bottom: 0; left: 0; right: 0; padding: 15px; background: linear-gradient(transparent,rgba(10,42,74,0.85)); color: #fff; }
.case-item .info .tag { display: inline-block; background: #d4b87a; color: #0a2a4a; font-size: 11px; padding: 2px 8px; margin-bottom: 6px; }
.case-item .info h3 { font-size: 15px; } .case-item .info h3 a { color: #fff; text-decoration: none; }
.case-item .info p { font-size: 12px; opacity: 0.8; }

/* ===== 新闻 ===== */
.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { background: #fff; border: 1px solid #eee; transition: 0.3s; }
.news-card:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.06); border-color: #ddd; }
.news-card img { width: 100%; height: 180px; object-fit: cover; }
.news-card .body { padding: 18px; }
.news-card .date { font-size: 12px; color: #999; margin-bottom: 6px; }
.news-card h3 { font-size: 15px; } .news-card h3 a { color: #333; text-decoration: none; transition: color 0.3s; }
.news-card h3 a:hover { color: #0a2a4a; }
.news-card p { font-size: 13px; color: #777; line-height: 1.6; }

/* ===== 荣誉 ===== */
.honors { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; }
.honor-item { background: #fff; padding: 25px 15px; text-align: center; border: 1px solid #eee; transition: 0.3s; }
.honor-item:hover { border-color: #d4b87a; }
.honor-item i { font-size: 32px; color: #d4b87a; margin-bottom: 10px; }
.honor-item span { font-size: 13px; color: #555; }

/* ===== 合作伙伴/友情链接 ===== */
.partners { padding: 30px 0; border-top: 1px solid #eee; }
.partners .p-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; }
.partners .p-list span { color: #999; font-size: 14px; padding: 8px 20px; background: #f5f7fa; border-radius: 4px; }

/* ===== 底部 ===== */
.footer { background: #0a2a4a; padding: 50px 0 0; }
.footer-wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 35px; }
.footer h3 { color: #fff; font-size: 16px; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer h3::after { content: ''; position: absolute; bottom: 0; left: 0; width: 25px; height: 2px; background: #d4b87a; }
.footer p, .footer li { font-size: 13px; color: #8ab0d0; line-height: 1.8; }
.footer p i { color: #d4b87a; margin-right: 6px; width: 14px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 6px; }
.footer ul li a { color: #8ab0d0; text-decoration: none; transition: color 0.3s; font-size: 13px; }
.footer ul li a:hover { color: #d4b87a; }
.footer .social a { display: inline-block; width: 32px; height: 32px; line-height: 32px; text-align: center; background: rgba(255,255,255,0.06); color: #8ab0d0; border-radius: 50%; margin-right: 8px; font-size: 14px; transition: 0.3s; }
.footer .social a:hover { background: #d4b87a; color: #0a2a4a; }
.footer-btm { margin-top: 35px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,0.06); text-align: center; font-size: 12px; color: #5a7a9a; }
.footer-btm a { color: #5a7a9a; text-decoration: none; }


/* Dropdown menu */
.nav-item { position: relative; }
.dropdown-menu {
    position: absolute; top: 100%; left: 0; min-width: 160px;
    background: #fff; box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-radius: 0 0 6px 6px; padding: 5px 0;
    display: none; z-index: 1000;
    list-style: none; margin: 0;
}
.nav-item:hover .dropdown-menu { display: block; }
.dropdown-menu li { margin: 0; }
.dropdown-menu li a {
    display: block; padding: 10px 20px; color: #333;
    text-decoration: none; font-size: 14px; transition: all 0.2s;
    white-space: nowrap;
}
.dropdown-menu li a:hover { background: #f5f7fa; color: #0a2a4a; }
.dropdown-menu li a.active { color: #0a2a4a; font-weight: 600; }

@media (max-width: 768px) {
    .dropdown-menu { position: static; box-shadow: none; padding-left: 20px; display: none; }
    .nav-item:hover .dropdown-menu { display: block; }
    .nav-item.open .dropdown-menu { display: block; }
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .cases { grid-template-columns: repeat(2, 1fr); }
    .toolbar .container { flex-direction: column; gap: 5px; }
    .nav-links { display: none; position: absolute; top: 80px; left: 0; right: 0; background: #fff; flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,0.1); z-index: 999; }
    .nav-links.active { display: flex; }
    .nav-links > li > a { line-height: 45px; height: auto; padding: 0 20px; border-bottom: 1px solid #f0f0f0; }
    .nav-links > li > a::after { display: none; }
    .menu-toggle { display: flex; }
    .banner { height: 280px; }
    .slide .text { bottom: 50px; left: 5%; max-width: 90%; }
    .slide .text h2 { font-size: 26px; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .about-wrap { grid-template-columns: 1fr; }
    .about-img { height: 250px; }
    .services { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .cases { grid-template-columns: repeat(2, 1fr); }
    .news-list { grid-template-columns: 1fr; }
    .honors { grid-template-columns: repeat(2, 1fr); }
    .footer-wrap { grid-template-columns: 1fr; text-align: center; }
    .footer h3::after { left: 50%; transform: translateX(-50%); }
}
/* ===== 新闻列表 - 水平卡片 ===== */
.news-list-horizontal {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.news-card-h {
    display: flex;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}
.news-card-h:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border-color: #d4b87a;
}
.news-card-h-img {
    width: 280px;
    min-height: 200px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f0f4f8;
}
.news-card-h-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.news-card-h:hover .news-card-h-img img {
    transform: scale(1.06);
}
.news-card-h-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #c0d0e0;
}
.news-card-h-info {
    padding: 24px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.news-card-h-date {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}
.news-card-h-date i {
    margin-right: 5px;
    color: #d4b87a;
}
.news-card-h-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0a2a4a;
    margin-bottom: 10px;
    line-height: 1.5;
}
.news-card-h-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 12px;
}
.news-card-h-more {
    font-size: 13px;
    color: #d4b87a;
    font-weight: 500;
    transition: all 0.3s;
}
.news-card-h:hover .news-card-h-more {
    color: #0a2a4a;
}
.news-card-h-more i {
    margin-left: 4px;
    font-size: 12px;
}

@media (max-width: 768px) {
    .news-card-h {
        flex-direction: column;
    }
    .news-card-h-img {
        width: 100%;
        height: 200px;
    }
    .news-card-h-info {
        padding: 18px;
    }
    .news-card-h-info h3 {
        font-size: 16px;
    }
    .news-tabs .container a {
        padding: 12px 15px;
        font-size: 14px;
    }
}
