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

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

/* 导航栏 */
.navbar {
    background: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-brand h1 {
    font-size: 1.5rem;
    color: #00347b;
    font-weight: 700;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

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

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: all 0.3s;
}

/* 英雄区域 */
.hero {
    position: relative;
    height: 600px;
    /* linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); */
    background: url('https://ybox-1257421454.cos.ap-nanjing.myqcloud.com/image/首页背景.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: white;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M0 50 L50 0 L100 50 L50 100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    /* max-width: 800px; */
    padding: 0 20px;
    padding-left: 100px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* 区域标题 */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* 特色区域 */
.features {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-light);
}

/* 产品预览 */
.products-preview {
    padding: 80px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    width: 100%;
    height: 265px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image .placeholder-img {
    color: white;
    font-size: 2rem;
    font-weight: 600;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.product-info p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.product-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.product-link:hover {
    color: var(--secondary-color);
}

/* 生产环境 */
.production-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.production-section .container {
    max-width: 1400px;
}

.production-intro {
    max-width: 1000px;
    margin: 0 auto 2rem;
    text-align: center;
    color: var(--text-light);
    line-height: 1.8;
}

.production-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.production-photo {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    aspect-ratio: 4 / 3;
}

.production-photo:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.production-photo .placeholder-img {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    object-fit: cover;
}

@media (max-width: 768px) {
    .production-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .production-gallery {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .production-photo {
        aspect-ratio: 4 / 3;
    }
    
    .production-photo .placeholder-img {
        font-size: 1.1rem;
    }
}

/* 公司简介 */
.company-intro {
    padding: 80px 0;
    background: var(--bg-light);
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.intro-text p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.intro-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 1rem;
}

/* 页脚 */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* 产品页面 */
.products-section {
    padding: 80px 0;
}

/* 产品系列网格 */
.product-series-grid {
    display: grid;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.product-series-item {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    align-items: center;
}

.product-series-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-series-item:nth-child(even) {
    grid-template-columns: 1fr 350px;
}

.product-series-item:nth-child(even) .series-image {
    order: 2;
}

.product-series-item:nth-child(even) .series-content {
    order: 1;
}

.series-image {
    width: 100%;
    height: 280px;
    border-radius: 8px;
    overflow: hidden;
}

.series-image .placeholder-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 600;
}

.series-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.series-content p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
}

/* 成品库存 */
.warehouse-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.warehouse-section .container {
    max-width: 1400px;
}

.warehouse-intro {
    max-width: 1000px;
    margin: 0 auto 2rem;
    text-align: center;
    color: var(--text-light);
    line-height: 1.8;
}

.warehouse-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.warehouse-photo {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    aspect-ratio: 4 / 3;
}

.warehouse-photo:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.warehouse-photo .placeholder-img {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    object-fit: cover;
}

.products-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    color: var(--text-color);
}

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

.products-grid-large {
    display: grid;
    gap: 3rem;
}

.product-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image-large {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-large .placeholder-img {
    color: white;
    font-size: 2.5rem;
    font-weight: 600;
}

.product-details h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.product-desc {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.product-specs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 6px;
}

.product-specs span {
    color: var(--text-light);
}

/* 关于我们页面 */
.about-section {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-image {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.about-image .placeholder-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

/* 轮播图样式 */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

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

.carousel-slide .placeholder-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: var(--primary-color);
    font-weight: bold;
    line-height: 1;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.dot.active {
    background: white;
    border-color: white;
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.timeline-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 4px var(--primary-color);
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.timeline-content p {
    color: var(--text-light);
}

.advantages-section {
    padding: 80px 0;
}

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

.advantage-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.advantage-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.advantage-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.advantage-card p {
    color: var(--text-light);
}

.culture-section {
    padding: 80px 0;
    background: var(--bg-light);
}

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

/* 资质展示栅格：更小卡片以便一行放更多 */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
}

.culture-item {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
}

.culture-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.culture-item p {
    color: var(--text-light);
    line-height: 1.8;
}

/* 资质图片包装器 */
.cert-image-wrapper {
    cursor: pointer;
    transition: transform 0.3s;
    margin-bottom: 1rem;
}

.cert-image-wrapper:hover {
    transform: scale(1.02);
}

/* 图片放大模态框 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.modal-title {
    color: white;
    font-size: 1.25rem;
    margin-top: 1rem;
    text-align: center;
    padding: 0 2rem;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10000;
    line-height: 1;
}

.modal-close:hover,
.modal-close:focus {
    color: #fff;
    text-decoration: none;
}

/* 客户案例 */
.cases-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.cases-intro {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

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

.case-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.case-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.case-image {
    width: 100%;
    /* height: 320px; */
    padding: 1rem;
    overflow: hidden;
    background: white;
}

.case-image .placeholder-img {
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

/* 合作公司 */
.partners-section {
    padding: 80px 0;
}

.partners-intro {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.partners-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.partners-filter .filter-btn {
    padding: 10px 24px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    color: var(--text-color);
}

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

.partners-container {
    width: 100%;
    overflow: hidden;
}

.partner-category-section {
    margin-bottom: 4rem;
}

.partner-category-section:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 1.75rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 100%;
}

.partner-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    overflow: hidden;
}

.partner-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.partner-logo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.partner-logo .placeholder-img {
    width: 100%;
    min-height: 80px;
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    text-align: center;
    padding: 0.75rem 0.5rem;
    line-height: 1.5;
    word-break: break-word;
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
    hyphens: auto;
    box-sizing: border-box;
}

/* 联系我们页面 */
.contact-intro-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.contact-intro {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.contact-intro h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.contact-intro p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.1rem;
}

.contact-section {
    padding: 80px 0;
}

.contact-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.contact-form-wrapper h2,
.contact-info-wrapper h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    gap: 1rem;
}

.info-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 8px;
}

.info-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.info-content p {
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: 10px;
    overflow: hidden;
}

.map-container .map {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

/* 服务承诺 */
.service-promise-section {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.promise-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.promise-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.promise-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.promise-item h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.promise-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* 客户服务页面 */
.service-commitment-section {
    padding: 80px 0;
}

.commitment-content {
    margin-top: 3rem;
}

.commitment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.commitment-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.commitment-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.commitment-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.commitment-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.commitment-card ul {
    list-style: none;
    text-align: left;
    padding: 0;
}

.commitment-card ul li {
    color: var(--text-light);
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.commitment-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* 质量承诺 */
.quality-commitment-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.quality-content {
    margin-top: 3rem;
}

.quality-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    align-items: flex-start;
}

.quality-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 80px;
    text-align: center;
    line-height: 1;
}

.quality-text {
    flex: 1;
}

.quality-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.quality-text p {
    color: var(--text-light);
    line-height: 1.8;
}

/* 产品质量保证及售后服务承诺书 */
.warranty-section {
    padding: 80px 0;
}

.warranty-document {
    max-width: 1000px;
    margin: 3rem auto 0;
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

.warranty-intro {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.warranty-intro p {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
}

.warranty-content {
    margin-top: 2rem;
}

.warranty-part {
    margin-bottom: 3rem;
}

.warranty-part h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.warranty-item {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--border-color);
}

.warranty-item h4 {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.warranty-item p {
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

.warranty-contact {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.warranty-contact p {
    color: var(--text-color);
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.warranty-contact p strong {
    color: var(--primary-color);
}

.warranty-signature {
    text-align: right;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.warranty-signature p {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* 占位符图片 */
.placeholder-img {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 1rem 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-logo {
        height: 35px;
    }

    .nav-brand h1 {
        font-size: 1.2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .intro-content,
    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .carousel-dots {
        bottom: 10px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .modal-content {
        max-width: 95%;
        max-height: 95%;
    }

    .modal-content img {
        max-height: 80vh;
    }

    .modal-title {
        font-size: 1rem;
        margin-top: 0.75rem;
        padding: 0 1rem;
    }

    .modal-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .intro-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-item {
        grid-template-columns: 1fr;
    }

    .product-series-item {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .product-series-item:nth-child(even) {
        grid-template-columns: 1fr !important;
    }

    .product-series-item:nth-child(even) .series-image {
        order: 1;
    }

    .product-series-item:nth-child(even) .series-content {
        order: 2;
    }

    .series-image {
        height: 220px;
    }

    .series-content h3 {
        font-size: 1.5rem;
    }

    .warehouse-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .products-filter {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        height: 30px;
    }

    .nav-brand h1 {
        font-size: 1rem;
    }

    .hero {
        height: 500px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .intro-stats {
        grid-template-columns: 1fr;
    }

    .features-grid,
    .products-grid,
    .advantages-grid,
    .culture-grid {
        grid-template-columns: 1fr;
    }

    /* 客户服务页面响应式 */
    .commitment-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quality-item {
        flex-direction: column;
        gap: 1rem;
    }

    .quality-number {
        min-width: auto;
    }

    .warranty-document {
        padding: 1.5rem;
    }

    .commitment-grid {
        grid-template-columns: 1fr;
    }

    .warehouse-gallery {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .warehouse-photo {
        aspect-ratio: 4 / 3;
    }
    
    .warehouse-photo .placeholder-img {
        font-size: 1.1rem;
    }

    .warranty-part h3 {
        font-size: 1.5rem;
    }

    /* 客户案例和合作公司响应式 */
    .cases-grid {
        grid-template-columns: 1fr;
    }

    .partners-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .partner-logo .placeholder-img {
        min-height: 70px;
        font-size: 0.9rem;
        padding: 0.6rem 0.4rem;
        line-height: 1.4;
    }

    .partner-item {
        min-height: 90px;
        padding: 0.75rem;
    }

    .partners-filter {
        gap: 0.5rem;
    }

    .partners-filter .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .category-title {
        font-size: 1.5rem;
    }
}
