/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: center;
}

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

.logo-img {
    height: 40px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.5rem;
    color: #2c3e50;
}

/* 轮播图区域 */
.banner {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    padding: 20px 0;
}

.banner-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.banner-content {
    flex: 1;
    min-width: 300px;
    margin-bottom: 30px;
}

.banner h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.banner p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

/* 轮播图价格区域 - 3行布局（核心修改） */
.price-box {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px; /* 行间距 */
}

.original-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
    display: block; /* 强制单行 */
}

.discount-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #f39c12;
    display: block; /* 强制单行 */
}

/* 第三行：立省标签+按钮 左右分布 */
.price-action-row {
    display: flex;
    justify-content: space-between; /* 左右两端对齐 */
    align-items: center;
    width: 100%;
}

.discount-tag {
    display: inline-block;
    background-color: #e74c3c;
    color: #fff;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

/* 按钮恢复原有样式，仅适配布局 */
.btn-order {
    display: inline-block;
    background-color: #f39c12;
    color: #fff;
    padding: 12px 30px; /* 恢复原有按钮尺寸 */
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-order:hover {
    background-color: #e67e22;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
/* 移动端适配 */
@media (max-width: 576px) {
    .price-action-row {
        flex-direction: column; /* 移动端改为垂直排列 */
        align-items: flex-start;
        gap: 10px;
    }
    
    .btn-order {
        width: 100%; /* 移动端按钮全屏宽 */
        text-align: center;
        padding: 10px 0;
    }
    
    .discount-price {
        font-size: 1.5rem;
    }
}

.banner-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.banner-image img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
/* 新增：产品简介区域样式 */
.product-intro {
    padding: 60px 0;
    background-color: #fff;
}

.intro-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
}

.intro-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.intro-image img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.intro-content {
    flex: 2;
    min-width: 300px;
}

.intro-content p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* 通用section样式 */
.section-title {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 40px;
    padding-bottom: 15px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #3498db;
}

/* 核心优势区域紧凑化优化 + 图标标题同行（核心修改） */
.advantages {
    padding: 50px 0; /* 减少上下内边距 */
    background-color: #f8f9fa;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 缩小最小宽度 */
    gap: 20px; /* 减少网格间距 */
}

.advantage-item {
    background-color: #fff;
    padding: 20px 15px; /* 减少内边距 */
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

/* 新增：图标+标题同行容器 */
.advantage-header {
    display: flex;
    align-items: center;
    gap: 10px; /* 图标与标题间距 */
    margin-bottom: 10px; /* 与描述文字间距 */
}

.advantage-icon {
    width: 50px; /* 缩小图标容器 */
    height: 50px;
    background-color: #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 移除原有margin-bottom，移到header容器 */
    margin-bottom: 0;
}

.advantage-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.advantage-item h4 {
    font-size: 1.1rem; /* 缩小标题字体 */
    color: #2c3e50;
    /* 移除原有margin-bottom，移到header容器 */
    margin-bottom: 0;
}

.advantage-item p {
    font-size: 0.95rem; /* 缩小描述字体 */
    color: #666;
    line-height: 1.6;
}

.parameters, .instructions, .safety, .order {
    padding: 80px 0;
    background-color: #fff;
}

.safety {
    background-color: #f8f9fa;
}

/* 技术参数 */
.params-table {
    background-color: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.param-item {
    display: flex;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.param-item:last-child {
    border-bottom: none;
}

.param-name {
    width: 30%;
    font-weight: bold;
    color: #2c3e50;
}

.param-value {
    width: 70%;
    color: #666;
}

/* 使用说明 */
.instructions-content {
    text-align: center;
    margin-bottom: 40px;
}

.instructions-content p {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: left;
}

.instructions-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.instructions-images img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 安全注意事项 */
.safety-content {
    max-width: 800px;
    margin: 0 auto;
        padding: 10px;
    line-height: 200%;
}

.safety-content p {
    font-size: 1.1rem;
    color: #666;
    padding: 5px 0 5px 0;
}

.safety-alert {
    background-color: #ffebee;
    border-left: 4px solid #e74c3c;
    padding: 5px;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

.safety-alert i {
    color: #e74c3c;
    font-size: 1.5rem;
    margin-right: 15px;
}

/* 采购咨询 */
.order-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.order-form-container {
    flex: 1;
    min-width: 300px;
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #2c3e50;
}

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

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.btn-submit {
    width: 100%;
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.contact-info {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    background-color: #2c3e50;
    color: #fff;
    border-radius: 10px;
}

.contact-info h4 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.contact-info p i {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* 底部固定咨询栏 - 强制单行并排 */
.fixed-contact-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.contact-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
    color: #fff;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-phone {
    background-color: #e74c3c;
}

.contact-wechat {
    background-color: #2ecc71;
}

.contact-btn i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.contact-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* 微信二维码弹窗 */
.wechat-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.wechat-modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 350px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    position: relative;
    padding: 20px;
    text-align: center;
}

.close-wechat {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #666;
    cursor: pointer;
}

.wechat-qrcode img {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-bottom: 15px;
}

.wechat-qrcode p {
    font-size: 1rem;
    color: #333;
}

/* 页脚 */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 60px 0 30px;
    margin-top: 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 15px;
}

.footer-logo p {
    font-size: 1.2rem;
    font-weight: bold;
}

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

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

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

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* 响应式设计 - 完善PC端自适应 */
@media (min-width: 1200px) {
    .advantages-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .instructions-images {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .banner-wrapper {
        flex-wrap: nowrap;
    }
    
    .banner-content {
        margin-bottom: 0;
    }
}

@media (max-width: 992px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .order-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .banner h2 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .advantages {
        padding: 40px 0;
    }
    
    .advantages-grid {
        gap: 15px;
    }
    
    .advantage-item {
        padding: 15px 10px;
    }
    
    .parameters, .instructions, .safety, .order {
        padding: 60px 0;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    /* 产品简介移动端适配 */
    .intro-wrapper {
        flex-direction: column;
    }
    
    .intro-content p {
        font-size: 1rem;
    }
    
    /* 价格区域移动端适配（核心修改） */
    .price-info {
        gap: 10px;
    }
    
    .original-price {
        font-size: 0.9rem;
    }
    
    .discount-price {
        font-size: 1.5rem;
    }
    
    .btn-order {
        padding: 6px 15px;
        font-size: 0.9rem;
        margin-top: 10px; /* 移动端换行后增加上边距 */
    }
    
    /* 移动端按钮适配（保留单行，仅缩小字体） */
    .contact-btn {
        font-size: 0.9rem;
        padding: 12px 0;
    }
    
    .contact-btn i {
        font-size: 1rem;
        margin-right: 5px;
    }
}

@media (max-width: 576px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .banner h2 {
        font-size: 1.8rem;
    }
    
    .banner p {
        font-size: 1rem;
    }
    
    /* 价格区域移动端适配（核心修改） */
    .price-box {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn-order {
        width: 100%; /* 移动端按钮全屏宽 */
        text-align: center;
        padding: 10px 0;
        margin-top: 15px;
    }
    
    .advantage-item {
        padding: 20px;
    }
    
    .order-form-container, .contact-info {
        padding: 25px;
    }
    
    .advantage-icon {
        width: 40px;
        height: 40px;
    }
    
    .advantage-item h4 {
        font-size: 1rem;
    }
    
    .advantage-item p {
        font-size: 0.9rem;
    }
    
    /* 关键修复：删除了移动端强制列布局的代码 */
    /* 保留图标和文字，仅调整间距 */
    .contact-btn i {
        margin-right: 4px;
        font-size: 1.1rem;
    }
    
    .contact-btn span {
        font-size: 0.85rem;
    }
}