html, body {
    min-width: 1200px;
    overflow-x: auto;
    -webkit-text-size-adjust: none;
}

html {
    scroll-padding-top: 28px; /* 调整滚动内边距为28px */
    scroll-behavior: smooth; /* 添加平滑滚动效果 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a4f7c;
    --secondary-color: #f4a460;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --white: #ffffff;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    min-width: 1200px;
    width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.logo h1 {
    font-size: 24px;
    color: var(--primary-color);
}

.company-name {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.company-name-en {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.8;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--secondary-color);
}

/* 主要内容样式 */
main {
    margin-top: 90px;
}

.hero {
    height: 500px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://pan.aizyt.top/file/blog/yjr.png');
    background-size: cover;
    background-position: center;
    filter: brightness(0.5);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    letter-spacing: 8px;
}

.hero-content p {
    font-size: 24px;
    letter-spacing: 5px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-top: 15px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-size: 32px;
}

/* 关于我们部分 */
.about-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.company-intro p {
    margin-bottom: 15px;
    text-align: justify;
    text-indent: 2em;
    line-height: 1.8;
}

/* 业务范围部分 */
.business-section {
    padding: 80px 0;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.business-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.business-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.business-card ul {
    list-style: none;
    text-align: center;
}

.business-card li {
    margin-bottom: 10px;
    padding-left: 0;
    position: relative;
}

.business-card li:before {
    content: "";
}

/* 联系我们部分 */
.contact-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.contact-content {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-info {
    max-width: 500px;
    flex: 1;
    min-width: 300px;
}

.contact-map {
    flex: 1;
    min-width: 300px;
}

.map-container {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
}

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

.contact-item i {
    color: var(--primary-color);
    font-size: 18px;
    margin-right: 15px;
    margin-top: 3px;
}

.contact-item p {
    margin: 0;
    line-height: 1.6;
}

/* 页脚样式 */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-bottom: 30px;
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    margin-bottom: 10px;
}

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

.footer-copyright {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 14px;
}

.footer-copyright p {
    margin: 5px 0;
}

.footer-divider {
    color: rgba(255,255,255,0.5);
    margin: 0 5px;
}

.footer-copyright a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
}

.footer-copyright a:hover {
    color: var(--white);
}

.footer-copyright img {
    height: 14px;
    margin-right: 5px;
    vertical-align: middle;
    max-width: none;
}

.project-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.project-image {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.project-image img {
    max-width: 100%;
    height: auto;
}

.project-description {
    margin-top: 30px;
    text-align: justify;
    font-size: 16px;
    color: var(--text-color);
    text-indent: 2em;
    padding: 0 20px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.project-images-row {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 30px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 20px 0;
}

.project-image-half {
    flex: 1;
    width: 100%;
    max-width: none;
}

.project-image-half img {
    max-width: 100%;
    height: auto;
    margin: 0;
    object-fit: contain;
}

.project-image {
    width: 100%;
    max-width: none;
}

.footer-info p {
    font-size: 14px;
    opacity: 0.9;
}

/* 确保图片不会自适应缩小 */
img {
    max-width: none;
}

.company-intro h3 {
    text-align: center;
    margin-bottom: 20px;
}

.main-project-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.project-main-img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;  /* 保持原始宽高比 */
    object-fit: contain;  /* 确保图片完整显示 */
}

/* 工程案例部分 */
.projects-section {
    padding: 80px 0;
    background: var(--white);
}

/* 项目筛选按钮 */
.projects-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-btn {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

/* 项目卡片容器 */
.projects-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 0 auto;
    position: relative;
}

/* 项目翻页控制 */
.projects-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 15px;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    border: none;
}

.pagination-btn:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

.pagination-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.pagination-indicator {
    display: flex;
    gap: 8px;
}

.page-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #cccccc;
    transition: all 0.3s ease;
}

.page-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* 项目卡片样式 */
.project-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

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

.project-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 79, 124, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card-content {
    padding: 20px;
}

.project-card-content h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 10px;
}

.project-card-content p {
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* 项目详情弹窗 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1100;
    overflow-y: auto;
}

.modal-content {
    background: var(--white);
    margin: 50px auto;
    padding: 30px;
    width: 80%;
    max-width: 1000px;
    border-radius: 8px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 30px;
    color: var(--primary-color);
    cursor: pointer;
}

/* 项目详情内容 */
.project-detail h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 25px;
    text-align: center;
}

.project-detail-images {
    margin-bottom: 30px;
}

.detail-main-img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

.detail-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.detail-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.detail-img:hover {
    transform: scale(1.03);
}

.project-detail-info {
    margin-top: 30px;
}

.project-specs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
    background: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
}

.spec-item {
    font-size: 16px;
}

/* 确保所有图片在卡片中正确显示 */
.project-card img, .project-detail img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .projects-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .detail-image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        width: 90%;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .projects-container {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .detail-image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        width: 95%;
        padding: 15px;
    }
    
    .footer-copyright {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-divider {
        display: none;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .contact-map {
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .detail-image-grid {
        grid-template-columns: 1fr;
    }
    
    .project-specs {
        grid-template-columns: 1fr;
    }
}

/* 页面加载动画 */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(26, 79, 124, 0.2);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
} 