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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: #c8161d;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    font-size: 16px;
    font-weight: 500;
    color: #000;
    padding: 10px 0;
    position: relative;
}

.nav-menu a:hover {
    color: #c8161d;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #c8161d;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a.active {
    color: #c8161d;
}

.header-phone {
    font-size: 18px;
    font-weight: bold;
    color: #c8161d;
    padding: 10px 20px;
    border: 2px solid #c8161d;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.header-phone:hover {
    background: #c8161d;
    color: #fff;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

/* 轮播图区域 */
.banner-section {
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.banner-container {
    position: relative;
    width: 100%;
    height: 600px;
}

.banner-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 10;
}

.banner-prev,
.banner-next {
    background: rgba(255, 255, 255, 0.5);
    border: none;
    color: #333;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.banner-prev:hover,
.banner-next:hover {
    background: rgba(200, 22, 29, 0.8);
    color: #fff;
}

.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: #c8161d;
    transform: scale(1.2);
}

/* ========================================
   四个快速方框
   ======================================== */
.quick-entry {
    padding: 0;
    background: #fff;
    margin-top: 15px;
}

.quick-entry__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding-left: 10px;
    padding-right: 10px;
}

.quick-entry__card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 386 / 231;
    border-radius: 8px;
}

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

.quick-entry__card:hover img {
    transform: scale(1.05);
}

.quick-entry__card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 60%);
}

/* 通用区块样式 */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 30px;
}

.section-header {
    text-align: left;
    margin-bottom: 40px;
    position: relative;
}

.section-header h2 {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 14px;
    color: #999;
    letter-spacing: 3px;
}

.section-more {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #c8161d;
}

/* 关于我们 */
.about-section {
    background: #f8f8f8;
}

.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-image {
    flex: 1;
    max-width: 500px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 16px;
    line-height: 2;
    color: #666;
    margin-bottom: 20px;
    text-align: justify;
}

.about-link {
    display: inline-block;
    padding: 12px 30px;
    background: #c8161d;
    color: #fff;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.about-link:hover {
    background: #a01218;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(200, 22, 29, 0.3);
}

/* 项目展示 */
.projects-section {
    background: #fff;
}

.project-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 12px 40px;
    background: #f0f0f0;
    border: none;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.tab-btn:hover,
.tab-btn.active {
    background: #c8161d;
    color: #fff;
}

.project-panel {
    display: none;
}

.project-panel.active {
    display: block;
}

.project-card {
    display: flex;
    gap: 40px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-top: 40px;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.project-image {
    flex: 1;
    max-width: 500px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    flex: 1;
    padding: 0px 30px 30px 30px;
}

.project-info h3 {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.project-subtitle {
    /* font-size: 14px;
    color: #999;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 20px; */

    font-size: 13px;
    color: #333;
    background: #f0f0f0;
    padding: 5px 15px;
    border-radius: 3px;
}

.project-info p {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    margin-top: 20px;
    margin-bottom: 15px;
    text-align: justify;
}

.project-link {
    display: inline-block;
    padding: 10px 25px;
    background: #c8161d;
    color: #fff;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: #a01218;
    color: #fff;
}

/* 新闻动态 */
.news-section {
    background: #f8f8f8;
}

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

.news-list.news-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.news-item {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.news-grid .news-item {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
    margin:10px;
    overflow: hidden;
    position: relative;
}

.news-image {
    width: 100%;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-grid .news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-grid .news-content {
    padding: 15px;
}

.news-grid .news-date {
    position: absolute;
    top: 10px;
    left: 10px;
    min-width: 60px;
    text-align: center;
    padding: 8px 10px;
    background: rgba(200, 22, 29, 0.9);
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
}

.news-grid .news-date .news-day {
    font-size: 20px;
    font-weight: bold;
    display: block;
}

.news-grid .news-date .news-month {
    font-size: 10px;
    display: block;
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.news-date {
    min-width: 80px;
    text-align: center;
    padding: 15px;
    background: #c8161d;
    color: #fff;
    border-radius: 5px;
}

.news-day {
    font-size: 28px;
    font-weight: bold;
    display: block;
}

.news-month {
    font-size: 12px;
    display: block;
    margin-top: 5px;
}

.news-content {
    flex: 1;
}

.news-content h3 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-content h3 a:hover {
    color: #c8161d;
}

.news-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.news-tag {
    font-size: 12px;
    color: #999;
    background: #f0f0f0;
    padding: 5px 15px;
    border-radius: 3px;
}

/* 底部 */
.footer {
    background: #333;
    color: #fff;
    padding: 50px 30px 30px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.footer-logo img {
    height: 50px;
    /* filter: brightness(0) invert(1); */
}

.footer-contact p {
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    font-size: 14px;
    color: #fff;
    transition: color 0.3s ease;
}

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

.footer-copyright {
    width: 100%;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright p {
    font-size: 12px;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .nav-menu ul {
        gap: 25px;
    }

    .section-container {
        padding: 50px 20px;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .header-phone {
        font-size: 14px;
        padding: 8px 15px;
    }

    .banner-container {
        height: 400px;
    }

    .about-content {
        flex-direction: column;
    }

    .about-image {
        max-width: 100%;
    }

    .project-card {
        flex-direction: column;
    }

    .project-image {
        max-width: 100%;
        height: 300px;
    }

    .news-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 10px 15px;
    }

    .logo img {
        height: 40px;
    }

    .banner-section {
        margin-top: 60px;
    }

    .banner-container {
        height: 300px;
    }

    .banner-controls {
        padding: 0 10px;
    }

    .banner-prev,
    .banner-next {
        padding: 10px 15px;
        font-size: 18px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .section-more {
        position: static;
        display: block;
        margin-top: 10px;
        transform: none;
    }

    .project-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        padding: 10px 25px;
        font-size: 14px;
    }

    .project-info h3 {
        font-size: 22px;
    }

    .news-item {
        flex-direction: column;
        padding: 20px;
    }

    .news-date {
        min-width: auto;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 15px;
    }

    .news-day {
        font-size: 20px;
    }

    .news-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-image {
        height: 150px;
    }

    .news-grid .news-item {
        padding: 8px;
        margin: 5px;
    }

    .news-content h3 {
        font-size: 14px;
    }

    .news-tag {
        font-size: 11px;
        padding: 3px 8px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .banner-container {
        height: 200px;
    }

    .banner-dots {
        bottom: 15px;
        gap: 8px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .about-text p {
        font-size: 14px;
    }

    .project-info {
        padding: 20px;
    }

    .project-info h3 {
        font-size: 18px;
    }

    .news-content h3 {
        font-size: 16px;
    }
}

/* 移动端菜单展开状态 */
.mobile-menu-open .nav-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu-open .nav-menu ul {
    flex-direction: column;
    gap: 0;
    padding: 20px;
}

.mobile-menu-open .nav-menu a {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-open .mobile-menu-btn span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-open .mobile-menu-btn span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .mobile-menu-btn span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}