/* ===== 全局样式 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.clearfix::after { content: ""; display: table; clear: both; }

/* ===== 顶部导航 ===== */
.header {
    background: #2c3e50;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 22px;
    font-weight: bold;
}

.logo img {
    height: 40px;
    margin-right: 12px;
}

.nav { display: flex; }

.nav li { margin-left: 40px; }

.nav a {
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 5px;
}

.nav a:hover,
.nav a.active {
    color: #fff;
}

.nav a.active::after,
.nav a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #c0392b;
}

.mobile-menu-btn {
    display: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* ===== Banner轮播 ===== */
.banner-section {
    margin-top: 70px;
    position: relative;
    height: 500px;
    overflow: hidden;
}

.banner-section .swiper-slide {
    position: relative;
    height: 500px;
    background-size: cover;
    background-position: center;
}

.banner-section .swiper-slide .banner-content {
    position: absolute;
    top: 50%; right: 10%;
    transform: translateY(-50%);
    text-align: right;
    color: #fff;
}

.banner-section .swiper-slide .banner-content h2 {
    font-size: 42px;
    font-weight: 400;
    letter-spacing: 8px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.banner-section .swiper-pagination-bullet {
    background: rgba(255,255,255,0.6);
    opacity: 1;
}
.banner-section .swiper-pagination-bullet-active {
    background: #c0392b;
}

/* ===== 页面标题区 ===== */
.page-banner {
    margin-top: 70px;
    height: 280px;
    background: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('https://images.unsplash.com/photo-1492691527719-9d1e07e534b4?w=1920') center/cover;
    opacity: 0.3;
}

.page-banner .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-banner h1 {
    font-size: 36px;
    font-weight: 400;
    letter-spacing: 6px;
}

.page-banner p {
    margin-top: 10px;
    font-size: 16px;
    opacity: 0.8;
}

/* ===== 区块标题 ===== */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 400;
    color: #2c3e50;
    margin-bottom: 10px;
}

.section-title .line {
    width: 50px;
    height: 3px;
    background: #c0392b;
    margin: 0 auto;
}

.section-title p {
    margin-top: 15px;
    color: #888;
    font-size: 14px;
}

/* ===== 首页服务板块 ===== */
.services-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.service-card .card-img {
    height: 200px;
    overflow: hidden;
}

.service-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover .card-img img {
    transform: scale(1.05);
}

.service-card .card-body {
    padding: 25px;
}

.service-card .card-body h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.service-card .card-body p {
    color: #888;
    font-size: 13px;
    line-height: 1.8;
}

/* ===== 首页新闻板块 ===== */
.news-section {
    padding: 80px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.news-item {
    background: #fff;
    border: 1px solid #eee;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.news-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.news-item .news-img {
    height: 160px;
    overflow: hidden;
}

.news-item .news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item .news-body {
    padding: 15px;
}

.news-item h4 {
    font-size: 15px;
    color: #333;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-item .news-date {
    color: #999;
    font-size: 12px;
}

/* ===== 关于我们页面 ===== */
.about-section {
    padding: 60px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

.about-content .about-text h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.about-content .about-text p {
    color: #666;
    line-height: 2;
    margin-bottom: 15px;
}

.about-content .about-img img {
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* 发展历程时间线 */
.timeline {
    padding: 60px 0;
    background: #f8f9fa;
}

.timeline-list {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-list::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ddd;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
}

.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; }

.timeline-item .year {
    font-size: 28px;
    color: #c0392b;
    font-weight: bold;
}

.timeline-item .event {
    margin-top: 8px;
    color: #666;
    line-height: 1.8;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 25px;
    width: 12px;
    height: 12px;
    background: #c0392b;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #c0392b;
}

.timeline-item:nth-child(odd)::after { right: -8px; }
.timeline-item:nth-child(even)::after { left: -8px; }

/* 资质展示 */
.qualifications {
    padding: 60px 0;
}

.qual-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.qual-item {
    text-align: center;
}

.qual-item img {
    width: 100%;
    border: 1px solid #eee;
    border-radius: 4px;
}

.qual-item p {
    margin-top: 10px;
    color: #666;
}

/* ===== 服务项目页面 ===== */
.services-page {
    padding: 60px 0;
}

.service-detail-page {
    padding: 60px 0;
}

.service-detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.service-detail-content h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.service-detail-content .cover-img {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 30px;
}

.service-detail-content .content-body {
    color: #555;
    line-height: 2;
    font-size: 15px;
}

.service-detail-content .content-body p {
    margin-bottom: 15px;
}

.service-detail-content .content-body img {
    max-width: 100%;
    border-radius: 4px;
    margin: 15px 0;
}

.sidebar .sidebar-title {
    font-size: 18px;
    color: #2c3e50;
    padding-bottom: 15px;
    border-bottom: 2px solid #c0392b;
    margin-bottom: 20px;
}

.sidebar .other-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.sidebar .other-list a {
    color: #666;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.sidebar .other-list a:hover {
    color: #c0392b;
}

.sidebar .other-list a .thumb {
    width: 60px;
    height: 45px;
    overflow: hidden;
    border-radius: 4px;
    margin-right: 12px;
    flex-shrink: 0;
}

.sidebar .other-list a .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== 新闻页面 ===== */
.news-page {
    padding: 60px 0;
}

.news-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.news-card {
    background: #fff;
    border: 1px solid #eee;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.news-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.news-card .news-img {
    height: 200px;
    overflow: hidden;
}

.news-card .news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover .news-img img {
    transform: scale(1.05);
}

.news-card .news-body {
    padding: 20px;
}

.news-card h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-card .news-meta {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 12px;
}

/* 新闻详情 */
.news-detail-page {
    padding: 60px 0;
}

.news-detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.news-detail h1 {
    font-size: 26px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.news-detail .news-meta {
    display: flex;
    gap: 20px;
    color: #999;
    font-size: 13px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.news-detail .article-content {
    color: #555;
    line-height: 2;
    font-size: 15px;
}

.news-detail .article-content p {
    margin-bottom: 15px;
}

.news-detail .article-content img {
    max-width: 100%;
    border-radius: 4px;
    margin: 15px 0;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 20px 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 4px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 8px;
}

.pagination a,
.pagination span {
    padding: 8px 16px;
    border: 1px solid #ddd;
    color: #666;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination span.current {
    background: #c0392b;
    color: #fff;
    border-color: #c0392b;
}

/* ===== 工程记录页面 ===== */
.project-page {
    padding: 60px 0;
}

/* 工程记录介绍 */
.project-intro-section {
    margin-bottom: 60px;
}

.project-intro-title {
    margin-bottom: 30px;
}

.project-intro-title h2 {
    font-size: 24px;
    color: #333;
    display: inline-block;
    margin-right: 15px;
}

.project-intro-title span {
    font-size: 14px;
    color: #999;
    font-family: Georgia, serif;
    font-style: italic;
}

.project-intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.project-intro-img {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.project-intro-img img {
    width: 100%;
    height: auto;
    display: block;
}

.project-intro-text {
    padding-top: 10px;
}

.intro-item {
    margin-bottom: 25px;
}

.intro-item:last-child {
    margin-bottom: 0;
}

.intro-item h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.intro-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

/* 其它项目 */
.project-other-section {
    margin-bottom: 60px;
}

.other-project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.other-project-card {
    display: block;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s;
}

.other-project-card:hover {
    transform: translateY(-5px);
}

.other-project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 12px;
}

.other-project-card span {
    font-size: 14px;
    color: #333;
}

/* 工程业绩 */
.project-achievement-section {
    margin-bottom: 60px;
}

.project-achievement-content {
    background: #fff;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

.project-achievement-content .project-section {
    margin-bottom: 40px;
}

.project-achievement-content .project-section:last-child {
    margin-bottom: 0;
}

.project-achievement-content h3 {
    font-size: 20px;
    color: #c0392b;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.project-achievement-content .project-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-achievement-content .project-list li {
    padding: 8px 0;
    color: #555;
    font-size: 15px;
    border-bottom: 1px dashed #eee;
}

.project-achievement-content .project-list li:before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #c0392b;
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
}

/* 工程影像文章 */
.project-articles-section {
    margin-bottom: 40px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    height: 280px;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-card .project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
}

.project-card .project-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.project-card .project-info p {
    font-size: 13px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .project-intro-content {
        grid-template-columns: 1fr;
    }
    .other-project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .project-achievement-content .project-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .other-project-grid {
        grid-template-columns: 1fr;
    }
    .project-achievement-content .project-list {
        grid-template-columns: 1fr;
    }
    .project-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 联系我们页面 ===== */
.contact-page {
    padding: 60px 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-item .icon {
    width: 40px;
    height: 40px;
    background: #c0392b;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    font-size: 16px;
}

.contact-item .info h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.contact-item .info p {
    color: #888;
    font-size: 14px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #c0392b;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form button {
    background: #c0392b;
    color: #fff;
    border: none;
    padding: 14px 40px;
    font-size: 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form button:hover {
    background: #a93226;
}

.map-section {
    margin-top: 30px;
}

.map-section iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 4px;
}

/* ===== 底部 ===== */
.footer {
    background: #1a252f;
    color: rgba(255,255,255,0.6);
    padding: 50px 0 20px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-brand .footer-logo {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.footer-brand p {
    line-height: 1.8;
    font-size: 13px;
}

.footer-links h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-qr img {
    width: 120px;
    border-radius: 4px;
}

.footer-qr p {
    margin-top: 10px;
    font-size: 12px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

/* ===== 面包屑 ===== */
.breadcrumb {
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb .container {
    color: #888;
    font-size: 13px;
}

.breadcrumb a {
    color: #666;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #c0392b;
}

.breadcrumb span {
    margin: 0 8px;
    color: #ccc;
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .service-grid,
    .news-grid,
    .news-list-grid,
    .qual-grid,
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content,
    .contact-layout,
    .service-detail-layout,
    .news-detail-layout {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .timeline-list::before { left: 20px; }
    .timeline-item { width: 100%; left: 0 !important; padding-left: 50px !important; text-align: left !important; }
    .timeline-item:nth-child(odd)::after { left: 14px !important; right: auto !important; }
    .timeline-item:nth-child(even)::after { left: 14px !important; }
}

@media (max-width: 768px) {
    .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: #2c3e50; flex-direction: column; padding: 20px; }
    .nav.active { display: flex; }
    .nav li { margin: 10px 0; }
    .mobile-menu-btn { display: block; }
    .service-grid, .news-grid, .news-list-grid, .qual-grid, .project-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .banner-section { height: 300px; }
    .banner-section .swiper-slide { height: 300px; }
    .banner-section .swiper-slide .banner-content h2 { font-size: 24px; }
    .page-banner h1 { font-size: 26px; }
    .section-title h2 { font-size: 24px; }
}
