/* 全局样式 */
/* 移动端兼容设置 */
@charset "UTF-8";
:root {
    --primary-color: #e60012; /* 主色调：红色 */
    --secondary-color: #ff3c4a; /* 次要色调：亮红色 */
    --dark-color: #b30000; /* 深红色 */
    --light-color: #fff; /* 白色 */
    --gray-color: #f4f4f4; /* 浅灰色 */
    --dark-gray: #333; /* 深灰色 */
    --transition: all 0.3s ease; /* 过渡效果 */
}

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

img{ max-width:100%;}
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%; /* 防止iPhone在横屏时自动调整字体大小 */
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--light-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation; /* 优化触摸体验 */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    overflow-x: hidden; /* 防止水平滚动 */
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
}

.underline {
    height: 4px;
    width: 70px;
    background-color: var(--primary-color);
    margin: 0 auto;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
}

.btn:hover {
    background-color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* 消除图片底部间隙 */
}

/* 顶部导航 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
    -webkit-backdrop-filter: blur(10px); /* iOS Safari支持 */
    backdrop-filter: blur(10px);
}

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

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

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    padding: 10px 0;
    position: relative;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
    padding: 10px;
    border: none;
    background: transparent;
    -webkit-tap-highlight-color: transparent; /* 移除移动端点击高亮 */
}

/* Banner部分 */
.banner {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-top: 70px;
}

.slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide .content {
    position: absolute;
    text-align: center;
    max-width: 800px;
    padding: 20px;
    color: var(--light-color);
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.slide .content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--light-color);
}

.slide .content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 10;
}

.prev, .next {
    width: 50px;
    height: 50px;
    background-color: rgba(230, 0, 18, 0.7);
    color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    margin: 0 20px;
}

.prev:hover, .next:hover {
    background-color: var(--primary-color);
}

.indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 10;
}

.indicator div {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.indicator div.active {
    background-color: var(--primary-color);
}

/* 关于我们 */
.about {
    background-color: var(--gray-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* 为什么选择我们 */
.why-choose-us {
    background-color: var(--light-color);
}

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

.feature-item {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-item .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: rgba(230, 0, 18, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--primary-color);
    transition: var(--transition);
}

.feature-item:hover .icon {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

/* 产品展示 */
.products {
    background-color: var(--gray-color);
}

/* 产品详情页 */
.product-detail {
    display: flex;
    padding: 40px 0;
}

.product-detail .container {
    display: flex;
    gap: 30px;
}

.product-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.product-main {
    flex: 1;
}

.product-categories, .quick-contact {
    background: var(--light-color);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.product-categories h3, 
.quick-contact h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.product-categories ul {
    list-style: none;
}

.product-categories li {
    margin-bottom: 10px;
}

.product-categories a {
    color: var(--dark-gray);
    text-decoration: none;
    transition: var(--transition);
}

.product-categories a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

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

.quick-contact i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.product-gallery {
    margin-bottom: 30px;
}

.main-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
}

.thumbnails {
    display: flex;
    gap: 10px;
}

.thumbnails img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 3px;
    cursor: pointer;
    transition: var(--transition);
}

.thumbnails img:hover {
    opacity: 0.8;
}

.specs ul {
    list-style: none;
    margin: 15px 0;
}

.specs li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.specs strong {
    color: var(--primary-color);
    margin-right: 10px;
}

.product-description {
    margin: 20px 0;
}

@media (max-width: 768px) {
    .product-detail .container {
        flex-direction: column;
    }
    
    .product-sidebar {
        width: 100%;
    }
}

/* 补充缺失的样式 */
.about-page .about-content,
.contact-page .contact-content {
    background: var(--light-color);
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.products-list .product-categories {
    margin-bottom: 40px;
}

.products-list .product-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.products-list .product-item {
    background: var(--light-color);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.products-list .product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.products-list .product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.products-list .product-info {
    padding: 15px;
}

.contact-page .contact-form {
    background: var(--light-color);
    padding: 30px;
    border-radius: 5px;
}

.contact-page .map-container {
    height: 400px;
    margin-top: 30px;
    border-radius: 5px;
    overflow: hidden;
}

/* 响应式调整 */
@media (max-width: 576px) {
    .products-list .product-items {
        grid-template-columns: 1fr;
    }
    
    .about-page .about-content,
    .contact-page .contact-content {
        padding: 20px;
    }
    
    .product-categories, 
    .quick-contact {
        padding: 15px;
    }
}

/* 添加小屏幕设备的额外优化 */
@media (max-width: 480px) {
    .logo h1 {
        font-size: 22px;
    }
    
    .banner {
        height: 60vh;
    }
    
    .slide .content h2 {
        font-size: 1.5rem;
    }
    
    .slide .content p {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .about-text h3,
    .product-info h2 {
        font-size: 1.4rem;
    }
    
    .feature-item .icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .feature-item h3 {
        font-size: 1.3rem;
    }
    
    .thumbnails img {
        width: 60px;
        height: 45px;
    }
}

/* 添加触摸设备优化 */
@media (hover: none) {
    .btn:hover {
        transform: none;
        box-shadow: none;
    }
    
    .feature-item:hover {
        transform: none;
    }
    
    .product-item:hover {
        transform: none;
    }
    
    /* 为触摸设备显示产品覆盖层 */
    .overlay {
        opacity: 0.7;
        background-color: rgba(230, 0, 18, 0.5);
    }
}

/* 添加横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .banner {
        height: 100vh;
    }
    
    nav {
        height: 100vh;
        top: 0;
    }
    
    nav ul {
        padding: 10px;
    }
    
    nav ul li {
        margin: 8px 0;
    }
}

/* 添加打印样式 */
@media print {
    header, 
    footer, 
    .banner,
    .mobile-menu,
    .btn {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    .container {
        width: 100%;
        max-width: none;
        padding: 0;
        margin: 0;
    }
    
    a {
        text-decoration: none;
        color: #000;
    }
    
    .product-detail,
    .about-content,
    .contact-content {
        display: block;
    }
}

/* 产品详情页增强样式 */
.product-detail {
    background-color: var(--gray-color);
    padding: 40px 0;
}

.product-main {
    background: var(--light-color);
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.product-info h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2rem;
}

.specs h3, .product-description h3 {
    color: var(--dark-color);
    margin: 20px 0 15px;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
}

.product-description p {
    line-height: 1.8;
    color: var(--dark-gray);
}

.btn.inquire-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    font-size: 1.1rem;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.btn.inquire-btn:hover {
    background-color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 产品详情页响应式调整 */
@media (max-width: 992px) {
    .product-detail .container {
        flex-direction: column;
    }
    
    .product-sidebar {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .product-main {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .product-info h2 {
        font-size: 1.8rem;
    }
    
    .product-gallery {
        margin-bottom: 20px;
    }
    
    .thumbnails {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .product-main {
        padding: 20px;
    }
    
    .product-info h2 {
        font-size: 1.6rem;
    }
    
    .specs h3, .product-description h3 {
        font-size: 1.3rem;
    }
}

.product-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    margin: 5px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
}

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

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

.product-item {
    background-color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-img {
    position: relative;
    overflow: hidden;
 /*   height: 250px;*/
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-item:hover .product-img img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(230, 0, 18, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-item:hover .overlay {
    opacity: 1;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* 联系我们 */
.contact {
    background-color: var(--light-color);
}

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

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-item i {
    font-size: 24px;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
   /* background-color: rgba(230, 0, 18, 0.1);*/
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center; background-color:#FCE5E7;
}

.info-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--dark-gray);
}

.contact-form form {
    display: grid;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-group textarea {
    height: 150px;
    resize: none;
}

/* 底部导航及版权信息 */
footer {
    background-color: #222;
    color: #fff;
    padding-top: 70px;
}

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

.footer-about h3,
.footer-links h3,
.footer-newsletter h3 {
    color: var(--light-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-about h3::after,
.footer-links h3::after,
.footer-newsletter h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-about p {
    margin-bottom: 20px;
    color: #aaa;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact-info {
    color: #aaa;
    margin-top: 15px;
}

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

.footer-contact-info i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

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

.footer-bottom p {
    color: #aaa;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-image, .about-text {
        width: 100%;
    }
    
    .slide .content h2 {
        font-size: 2.5rem;
    }
    
    section {
        padding: 60px 0; /* 减少垂直间距 */
    }
    
    .section-title {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    header .container {
        padding: 10px 15px;
    }
    
    nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background-color: var(--light-color);
        transition: var(--transition);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
        overflow-y: auto; /* 允许滚动 */
        -webkit-overflow-scrolling: touch; /* iOS平滑滚动 */
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 20px;
    }
    
    nav ul li {
        margin: 15px 0;
    }
    
    nav ul li a {
        display: block;
        padding: 10px 0;
        font-size: 18px; /* 增大触摸区域 */
    }
    
    .mobile-menu {
        display: block;
    }
    
    .banner {
        height: 70vh; /* 减小移动端banner高度 */
        margin-top: 60px;
    }
    
    .slide .content {
        width: 90%;
        padding: 15px;
    }
    
    .slide .content h2 {
        font-size: 2rem;
    }
    
    .slide .content p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .feature-item {
        padding: 20px;
    }
    
    .contact-content {
        gap: 30px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 16px; /* 移动端输入框最佳字体大小 */
    }
    
    .btn {
        padding: 12px 20px;
        min-height: 44px; /* 确保触摸区域足够大 */
    }
}

@media (max-width: 576px) {
    .slide .content {
        width: 90%;
    }
    
    .slide .content h2 {
        font-size: 1.8rem;
    }
    
    .controls {
        display: none;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 40px 0; /* 进一步减少垂直间距 */
    }
    
    .about-content {
        gap: 30px;
    }
    
    .product-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 80%;
        margin: 5px 0;
    }
    
    .product-items {
        grid-template-columns: 1fr;
    }
    
    .product-img {
        height: 200px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-about h3::after,
    .footer-links h3::after,
    .footer-newsletter h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-about,
    .footer-links,
    .footer-newsletter {
        text-align: center;
    }
}

.flash img{ max-width:100%;}
.flash{ position:relative; overflow:hidden; margin-top:70px;
--swiper-theme-color:#e60012;}



/*内页*/





.pagination{ clear:both; text-align:center; padding-top:20px;}
.pagination li{
	display:inline-block;
	border: 1px solid #dddddd;
	padding-left:12px;
	padding-right:10px;
	margin: 0px; overflow:hidden;
}

.pagination li+li{
	border-left-style: none;
}
.pagination li:first-child+li{border: 1px solid #dddddd;border-radius:3px 0 0 3px;}
.pagination li:last-child,.pagination li:first-child{border: 1px solid #dddddd;border-radius:3px;}
.pagination li:nth-last-child(2){border-radius:0 3px 3px 0;}
.pagination li.disabled{}
.pagination li.active{ background-color:#1648B7; color:#FFFFFF}

.pagination li a{ color:#333333}


.thumbnails img{
	border: 1px solid #eee;padding:10px;box-sizing:border-box;
}
.postion{
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: #ddd; font-size:14px; padding-bottom:20px; margin-bottom:10px;
}
.product-filter a{text-decoration: none; line-height:25px;}
.postion a{
	color:#333;
	text-decoration: none;
}
.postion a:hover{color:var(--primary-color);
	text-decoration: underline;
}