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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px 0;
}

/* 头部样式 */
header {
    background-image: url('../images/微信图片_20260311143200_46_3.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 200px 0;
}

/* 轮播图样式 */
.carousel-header {
    position: relative;
    padding: 0;
    height: 500px;
    overflow: hidden;
}

/* Logo容器样式 */
.logo-container {
    position: absolute;
    top: -55px;
    left: 20px;
    z-index: 10;
}

.header-logo {
    width: 280px;
    height: auto;
}

.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

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

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2em;
}

/* 视频头部样式 */
.video-header {
    position: relative;
    padding: 0;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.header-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #fff;
    text-align: center;
}

.header-content h1 {
    font-size: 3em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.header-content p {
    font-size: 1.5em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* 图片头部样式 */
.image-header {
    position: relative;
    padding: 0;
    height: 500px;
    overflow: hidden;
}

.image-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* 导航样式 */
nav {
    background-color: #444;
    color: #fff;
    padding: 0;
    height: 100px;
    box-sizing: border-box;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo {
    display: block;
    margin-right: 40px;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 150px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 15px 0;
    display: block;
    transition: color 0.3s;
}

.product-item a {
    text-decoration: none;
    color: #333;
    display: block;
    height: 100%;
}

nav ul li a:hover {
    color: #ffd700;
}

/* 内容区域样式 */
section {
    padding: 40px 0;
}

/* 关于我们页面样式 */
.about {
    background-color: #fff;
}

.about-content {
    margin-bottom: 40px;
}

.company-culture {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.company-culture h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5em;
}

.company-culture p {
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.8;
}

.culture-video {
    margin-top: 20px;
}

.culture-video video {
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 企业环境样式 */
.company-environment {
    margin-top: 40px;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.company-environment h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5em;
}

.environment-carousel {
    position: relative;
    margin-top: 20px;
}

.environment-carousel .carousel-container {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.environment-carousel .carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.environment-carousel .carousel-slide.active {
    opacity: 1;
}

.environment-carousel .carousel-prev,
.environment-carousel .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.environment-carousel .carousel-prev:hover,
.environment-carousel .carousel-next:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.environment-carousel .carousel-prev {
    left: 20px;
}

.environment-carousel .carousel-next {
    right: 20px;
}

/* 企业资质样式 */
.company-certificates {
    margin-top: 40px;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.company-certificates h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5em;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.certificate-item {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificate-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.certificate-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 4px;
}

.intro {
    background-color: #fff;
}
.intro-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 联系我们页面样式 */
.contact {
    background-color: #fff;
}

.contact-form {
    margin-top: 40px;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-form h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5em;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

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

.submit-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #ffd700;
    color: #333;
}

.form-response {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
}

.form-response.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-response.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* AI智能助手样式 */
.ai-assistant {
    margin-top: 40px;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ai-assistant h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5em;
}

.ai-chat-container {
    display: flex;
    flex-direction: column;
    height: 400px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
}

.ai-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ai-message,
.user-message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    word-wrap: break-word;
}

.ai-message {
    background-color: #e3f2fd;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.user-message {
    background-color: #ffd700;
    color: #333;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.ai-chat-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
    background-color: #f9f9f9;
}

.ai-input-field {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s ease;
}

.ai-input-field:focus {
    border-color: #ffd700;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

.ai-send-btn {
    margin-left: 10px;
    padding: 0 20px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ai-send-btn:hover {
    background-color: #ffd700;
    color: #333;
}

/* 百度地图样式 */
.baidu-map {
    margin-top: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.baidu-map h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.3em;
}

.map-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-link {
    display: block;
    position: relative;
    text-decoration: none;
}

.map-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.map-link:hover .map-overlay {
    opacity: 1;
}

.map-overlay p {
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    margin: 0;
}

.map-info {
    text-align: center;
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.map-info p {
    margin: 5px 0;
    color: #555;
}

/* 联系方式二维码样式 */
.contact-qr-container {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: nowrap;
}

.qr-item {
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 200px;
    height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.qr-item p {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
}

.qr-image {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 8px;
}

/* 产品列表样式 */

.intro-video {
    flex: 1;
    margin-right: 30px;
}

.intro-video video {
    height: 300px;
    object-fit: cover;
}

.intro-text {
    flex: 1;
}

.intro-text p {
    text-align: left;
    font-size: 1.1em;
    line-height: 1.8;
}

.products {
    background-color: #f9f9f9;
}

/* 动画演示样式 */
.animation {
    background-color: #f9f9f9;
    padding: 60px 0;
}

.animation h2 {
    text-align: center;
    color: #333;
    margin-bottom: 40px;
    font-size: 2em;
}

.animation-video {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.animation-video video {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.strength {
    background-color: #fff;
}

.strength-video {
    margin: 30px 0;
}

.strength-video video {
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact {
    background-color: #f9f9f9;
}

section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 2em;
}

section p {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.8;
}

/* 产品列表样式 */
.product-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.product-item {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 30px;
    margin: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 250px;
    text-align: center;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.product-item:hover {
    transform: translateY(-8px) translateZ(0);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.pipe-styles-section {
    margin-top: 40px;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.pipe-styles-section h3 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

.pipe-styles-image {
    text-align: center;
}

.pipe-styles-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 5px;
}

.product-item h3 {
    color: #333;
    margin-bottom: 15px;
}

.product-vertical {
    background-image: url('../images/product-vertical-new.png');
    background-size: contain;
    background-position: center bottom;
    background-repeat: no-repeat;
    padding: 20px 0 200px 0;
    position: relative;
    min-height: 300px;
}

.product-vertical h3 {
    color: #333;
    font-size: 1.5em;
    padding: 10px;
    margin-bottom: 20px;
}

.product-horizontal {
    background-image: url('../images/product-horizontal.png');
    background-size: contain;
    background-position: center bottom;
    background-repeat: no-repeat;
    padding: 20px 0 200px 0;
    position: relative;
    min-height: 300px;
}

.product-horizontal h3 {
    color: #333;
    font-size: 1.5em;
    padding: 10px;
    margin-bottom: 20px;
}

.product-double {
    background-image: url('../images/product-double.png');
    background-size: contain;
    background-position: center bottom;
    background-repeat: no-repeat;
    padding: 20px 0 200px 0;
    position: relative;
    min-height: 300px;
}

.product-double h3 {
    color: #333;
    font-size: 1.5em;
    padding: 10px;
    margin-bottom: 20px;
}

.product-automatic {
    background-image: url('../images/product-automatic.png');
    background-size: contain;
    background-position: center bottom;
    background-repeat: no-repeat;
    padding: 20px 0 200px 0;
    position: relative;
    min-height: 300px;
}

.product-automatic h3 {
    color: #333;
    font-size: 1.5em;
    padding: 10px;
    margin-bottom: 20px;
}

/* 产品详情页面样式 */
.product-detail {
    background-color: #fff;
    padding: 40px 0;
}

.product-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.product-image {
    flex: 1;
    margin-right: 30px;
}

.product-info {
    flex: 1;
}

.product-info h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.product-info ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.product-info li {
    margin-bottom: 8px;
}

/* 分类页面样式 */
.category {
    background-color: #fff;
    padding: 40px 0;
}

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

.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    display: block;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.product-card .product-image {
    height: 200px;
    overflow: hidden;
}

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

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

.product-card h3 {
    padding: 15px;
    margin: 0;
    font-size: 1.1em;
    border-bottom: 1px solid #ddd;
}

.product-card p {
    padding: 15px;
    margin: 0;
    color: #666;
}

/* 新闻页面样式 */
.news {
    background-color: #fff;
    padding: 40px 0;
}

.news-detail {
    background-color: #fff;
    padding: 40px 0;
}

.news-detail h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 2.2em;
}

.news-meta {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 0.95em;
}

.news-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    color: #444;
}

.news-content h2 {
    color: #333;
    margin-top: 30px;
    margin-bottom: 20px;
    font-size: 1.6em;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.news-content h3 {
    color: #555;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.news-content h4 {
    color: #666;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.news-content p {
    margin-bottom: 15px;
    text-indent: 2em;
}

.news-back {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.news-back a {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-back a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.news-list {
      max-width: 800px;
      margin: 0 auto;
  }

.news-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.news-item h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.news-date {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.news-summary {
    text-align: left;
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
}

.news-link {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.news-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.news-item p {
    text-align: left;
    margin-bottom: 10px;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

footer p {
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        width: 90%;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 5px 0;
    }
    
    .product-list {
        flex-direction: column;
        align-items: center;
    }
    
    .product-item {
        width: 100%;
        max-width: 300px;
    }
}