/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* 导航栏样式 */
nav {
    background-color: #000;
    color: #fff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00ff00;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #00ff00;
}

/* Banner样式 */
.banner {
    height: 50vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('docs/banner-index.jpg') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    margin-top: 60px;
}

.banner-content {
    max-width: 800px;
    padding: 2rem;
}

.banner h1 {
    font-size: 3.0rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #00ff00;
    color: #000;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #00cc00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* 章节样式 */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

/* 首页关于我们 */
.about {
    background-color: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* 关于我们视频容器样式 */
.about-video-container {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.video-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.about-video {
    width: 120%;
    height: 120%;
    position: absolute;
    top: -10%;
    left: -10%;
    object-fit: cover;
    z-index: 1;
}

/* 首页产品展示 */
.products-preview {
    background-color: #f9f9f9;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-content {
    padding: 1.5rem;
}

/* 产品图片组样式 */
.product-images {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.product-image {
    flex: 1;
    min-width: 250px;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.product-image:hover {
    transform: scale(1.05);
}

/* 图片放大模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

/* 模态框内容容器 */
.modal-content-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.modal-content {
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 90vh;
    object-fit: contain;
    margin: 0 auto;
}

.modal-content, #caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 2100;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .product-images {
        flex-direction: column;
    }
    
    .product-image {
        min-width: auto;
        width: 100%;
    }
    
    .modal-content {
        width: 95%;
    }
}

.product-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.product-description {
    color: #666;
    margin-bottom: 1rem;
}

/* 公司产品页面 */
#products-page {
    background-color: #fff;
}

.products-full {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* 公共参数区域样式 */
.product-params {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-params h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.5rem;
}

.product-params table {
    width: 100%;
    border-collapse: collapse;
}

.product-params th,
.product-params td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.product-params th {
    background-color: #00ff00;
    color: #000;
    font-weight: bold;
    text-align: center;
}

.product-params tr:nth-child(even) {
    background-color: #f2f2f2;
}

.product-params tr:hover {
    background-color: #e8f5e8;
}

/* 工程案例页面 */
#cases-page {
    background-color: #f5f5f5;
    padding: 2rem 0;
}

/* 装饰元素 */
.decorative-element {
    height: 20px;
    margin: 2rem 0;
    background: linear-gradient(90deg, transparent 0%, #00ff00 50%, transparent 100%);
    opacity: 0.3;
    border-radius: 10px;
}

.decorative-middle {
    background: linear-gradient(90deg, transparent 0%, #000 50%, transparent 100%);
    opacity: 0.2;
}

/* 副标题样式 */
.section-subtitle {
    text-align: center;
    font-size: 1.8rem;
    margin: 2rem 0;
    color: #333;
    position: relative;
}

.section-subtitle::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #00ff00;
    margin: 0.5rem auto 0;
}

/* 工程案例图片区域 */
.cases-images-section {
    background-color: #fff;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.cases-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.case-item {
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.case-item:hover {
    transform: translateY(-5px);
}

.case-image-container {
    position: relative;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.case-image-container:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.case-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.case-image-container:hover .case-image {
    transform: scale(1.05);
}

.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 2rem 1.5rem 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
}

.case-image-container:hover .case-overlay {
    opacity: 1;
}

.case-overlay h4 {
    font-size: 1.5rem;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.case-info {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.case-info h3 {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.3rem;
}

.case-info p {
    color: #666;
    line-height: 1.6;
}

/* 现场视频区域 */
.cases-videos-section {
    background-color: #fff;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.cases-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.video-item {
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 宽高比 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.video-container:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* 视频包装器 */
.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    background-color: #000;
}

/* 视频样式 */
.case-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* 播放按钮 */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.play-button:hover {
    background-color: rgba(0, 255, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

.play-icon {
    font-size: 30px;
    color: white;
    margin-left: 5px;
}

/* 视频漂浮图表 */
.video-float-chart {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 100px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.2), rgba(0, 0, 0, 0.1));
    border-radius: 8px;
    animation: float 3s ease-in-out infinite;
    z-index: 5;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* 现场图展示区域 */
.cases现场图-section {
    background-color: #fff;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-top: 2rem;
}

.cases-现场图-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.case-现场图-item {
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.case-现场图-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* 现场图样式 */
.case-现场图-item .case-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.case-现场图-item:hover .case-image {
    transform: scale(1.05);
}

.case-现场图-info {
    padding: 1rem;
    background-color: white;
}

.case-现场图-info h4 {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.1rem;
}

.case-现场图-info p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.video-info {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.video-info h3 {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.3rem;
}

.video-info p {
    color: #666;
    line-height: 1.6;
}



/* 联系我们页面 */
#contact-page {
    
    background-color: #fff;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-info {
    background-color: #f5f5f5;
    padding: 2rem;
    border-radius: 8px;
}

.contact-info h3 {
    margin-bottom: 1rem;
    color: #333;
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: #666;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* 悬浮客服 */
.floating-service {
    position: fixed;
    right: 20px;
    bottom: 50px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: #00ff00;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-size: 24px;
    color: #000;
}

.service-icon:hover {
    transform: scale(1.1);
    background-color: #00cc00;
}

.service-panel {
    position: absolute;
    right: 70px;
    bottom: 0;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 15px;
    width: 250px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    opacity: 0;
}

.floating-service:hover .service-panel {
    transform: scaleX(1);
    opacity: 1;
}

.service-panel h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

.service-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.service-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.service-item i {
    margin-right: 10px;
    color: #00ff00;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.service-item p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.service-item strong {
    color: #333;
    font-weight: bold;
}

/* 页脚样式 */
footer {
    background-color: #000;
    color: #fff;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        padding: 1rem;
    }

    .nav-links {
        margin-top: 1rem;
    }

    .nav-links li {
        margin: 0 1rem;
    }

    .banner h1 {
        font-size: 2.5rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .products-grid,
    .products-full,
    .cases-grid {
        grid-template-columns: 1fr;
    }
}