/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* 尽量使用系统自带无衬线中文字体 */
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    color: #666;
    /* 偏灰的字体颜色 */
    line-height: 2;
    background-color: #fff;
    font-size: 14px;
}

a {
    text-decoration: none;
    color: #666;
}

.container {
    width: 1200px;
    margin: 0 auto;
}

/* =========================================
   Section 1: Header / Logo / Navigation
========================================= */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
}

/* Logo 框：直接使用图片 */
.logo-wrapper {
    display: flex;
    align-items: center;
    height: 70px;
}

.logo-wrapper img {
    max-height: 100%;
    object-fit: contain;
}

/* 导航栏 */
.main-nav {
    display: flex;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 45px;
}

.nav-list li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #666;
    font-size: 16px;
    position: relative;
    padding: 5px 0;
}

.nav-list li a:hover {
    color: #ff4a4a;
}

/* "首页" 红字及底部的短红线 */
.nav-list li a.active {
    color: #ff4a4a;
}

.nav-list li a.active::after {
    content: '';
    display: block;
    width: 25px;
    /* 短横线 */
    height: 2px;
    background-color: #ff4a4a;
    margin-top: 5px;
}


/* =========================================
   Section 2: Banner Slider
========================================= */

.banner {
    width: 1200px;
    height: 318px;
    position: relative;
    margin: 0 auto 50px auto;
    overflow: hidden;
}

.slides-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.slide.slide-active {
    opacity: 1;
    z-index: 2;
}

/* 轮播指示点 */
.banner-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #555;
    margin: 0 6px;
    cursor: pointer;
}

.dot.active {
    background-color: transparent;
    /* 空心 */
}

.dot:not(.active) {
    background-color: #333;
    /* 截图里第二个是实心黑 */
    border-color: #333;
}


/* =========================================
   Section 3: Company Intro
========================================= */

.company-intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 70px;
}

.intro-img {
    width: 32%;
    /* 截图上占比较小 */
}

.intro-img img {
    width: 100%;
    height: auto;
    display: block;
}

.intro-text {
    width: 65%;
    font-size: 14px;
    color: #666;
    line-height: 2.2;
}

.intro-text p {
    margin-bottom: 40px;
    text-indent: 2em;
    /* 首行缩进 */
}

.intro-text strong {
    font-weight: bold;
    color: #444;
}

.intro-contact {
    display: flex;
    justify-content: space-between;
    color: #777;
    font-size: 14px;
}

/* =========================================
   Section 4: Services
========================================= */

.services-section {
    margin-bottom: 120px;
    padding-top: 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 80px;
    column-gap: 40px;
    text-align: center;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-icon {
    width: 60px;
    height: 60px;
    color: #ff4a4a;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-family: "Microsoft YaHei", Arial, sans-serif;
}

.circle-icon {
    border-radius: 50%;
    border: 1px solid #ff4a4a;
}

.rect-icon {
    border-radius: 6px;
    border: 1px solid #ff4a4a;
    font-size: 22px;
    /* bit smaller for AD box */
}

.no-border {
    border: none;
}

.service-item h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    font-weight: normal;
}

.service-item p {
    font-size: 13px;
    color: #888;
    line-height: 2;
    padding: 0 10px;
}

/* =========================================
   Section 5: Project Showcase
========================================= */

.projects-section-wide {
    width: 100%;
    background-color: #ff4a4a;
    /* 原版的全宽红色背景 */
    padding: 60px 0;
    margin-bottom: 0;
}

.projects-wrapper {
    background-color: #fff;
    /* 形成最外圈的白边 */
    padding: 8px;
    /* 外圈白边粗细 */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    /* 稍微加点阴影提升质感 */
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    /* 图片之间白色的分割线间距 */
    background-color: #fff;
}

.project-box {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    /* 图片框的比例 */
    overflow: hidden;
    position: relative;
    background-color: #f8f8f8;
}

.project-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.project-box:hover img {
    transform: scale(1.08);
    /* 鼠标放上去有轻微的放大交互 */
}

/* =========================================
   Section 6: News
========================================= */

.news-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 80px;
    margin-bottom: 80px;
}

.news-left-img {
    width: 44%;
}

.news-left-img img {
    width: 100%;
    height: auto;
    display: block;
}

.news-right-list {
    width: 53%;
}

/* 带有横线贯穿背景的特殊 Header */
.news-header {
    position: relative;
    display: flex;
    justify-content: center;
    /* 截图中文字和按钮居中 */
    align-items: center;
    margin-bottom: 5px;
}

.news-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    border-top: 1px solid #ccc;
    z-index: 1;
}

.news-header h2 {
    background-color: #fff;
    padding: 0 10px 0 20px;
    font-size: 20px;
    font-weight: normal;
    color: #333;
    z-index: 2;
}

.more-btn {
    background-color: #000;
    color: #fff;
    font-size: 13px;
    padding: 2px 8px;
    z-index: 2;
    margin-left: 5px;
    margin-right: 20px;
    /* 让右边线透出来 */
}

.more-btn:hover {
    background-color: #ff3333;
    color: #fff;
}

/* 新闻条目列表 */
.news-items {
    display: flex;
    flex-direction: column;
}

.news-item {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px dashed #ddd;
    /* 经典虚线分隔符 */
    transition: all 0.3s;
}

.news-item:hover h3 {
    color: #ff3333;
}

.news-thumb {
    width: 130px;
    height: 90px;
    flex-shrink: 0;
    margin-right: 20px;
    overflow: hidden;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-item:hover .news-thumb img {
    transform: scale(1.05);
}

.news-content {
    display: flex;
    flex-direction: column;
}

.news-content h3 {
    font-size: 15px;
    color: #444;
    font-weight: normal;
    margin-bottom: 8px;
    line-height: 1.4;
    transition: color 0.3s;
}

.news-content p {
    font-size: 13px;
    color: #999;
    line-height: 1.8;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    /* 限制摘要最多显示 2 行 */
    -webkit-box-orient: vertical;
}

/* =========================================
   Section 7: Extended Footer
========================================= */

.footer-module {
    width: 100%;
    margin-top: 50px;
    background-color: #fff;
}

/* 联系方式横排 */
.footer-contact-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 70px;
    padding: 50px 0;
}

.contact-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: #ff4a4a;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    color: #fff;
    transition: transform 0.3s ease;
}

.contact-icon:hover {
    transform: translateY(-5px);
    /* Small bounce effect on hover */
}

.contact-title {
    color: #888;
    font-size: 14px;
    margin-bottom: 5px;
}

.contact-value {
    color: #ff4a4a;
    font-size: 13px;
}

.contact-qr {
    text-align: center;
    margin: 0 40px;
}

.contact-qr img {
    width: 140px;
    height: 140px;
    border: 1px solid #ddd;
    padding: 5px;
    display: block;
    margin: 0 auto 10px auto;
}

.contact-qr p {
    color: #999;
    font-size: 12px;
}

/* 友情链接 */
.friend-links {
    border: 1px solid #eee;
    margin-bottom: 60px;
}

.links-header {
    background-color: #ffebeb;
    color: #ff4a4a;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
}

.links-content {
    background-color: #fff;
    padding: 20px 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    min-height: 80px;
}

.links-content a {
    color: #666;
    font-size: 12px;
}

.links-content a:hover {
    color: #ff4a4a;
}

/* 黑底版权信息区 */
.footer-dark {
    background-color: #333333;
    padding: 30px 0;
    text-align: center;
}

.footer-nav {
    margin-bottom: 10px;
    color: #999;
    font-size: 13px;
}

.footer-nav a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-icp {
    color: #888;
    font-size: 12px;
}