/* 页面通用样式 */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 70px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 关于我们页面样式 */
.company-intro {
    padding: 100px 0;
    background: white;
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-text h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.intro-subtitle {
    font-size: 1.2rem;
    color: #3498db;
    margin-bottom: 30px;
    font-weight: 600;
}

.intro-text p {
    font-size: 1.1rem;
    color: #7f8c8d;
    line-height: 1.8;
    margin-bottom: 20px;
}

.intro-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* 发展历程 */
.company-timeline {
    padding: 100px 0;
    background: #f8f9fa;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #3498db;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-year {
    background: #3498db;
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

.timeline-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 0 30px;
    flex: 1;
    max-width: 300px;
}

.timeline-content h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.timeline-content p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* 企业文化 */
.company-culture {
    padding: 100px 0;
    background: white;
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.culture-item {
    text-align: center;
    padding: 40px 20px;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.culture-item:hover {
    transform: translateY(-10px);
}

.culture-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.culture-icon i {
    font-size: 2rem;
    color: white;
}

.culture-item h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.culture-item p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* 团队介绍 */
.team-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.team-member {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
}

.member-photo {
    height: 250px;
    overflow: hidden;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    padding: 30px;
}

.member-info h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.member-title {
    color: #3498db;
    font-weight: 600;
    margin-bottom: 15px;
}

.member-desc {
    color: #7f8c8d;
    line-height: 1.6;
}

/* 产品服务页面样式 */
.services-overview {
    padding: 100px 0;
    background: white;
}

.service-features {
    list-style: none;
    margin: 20px 0;
    padding: 0;
}

.service-features li {
    padding: 8px 0;
    color: #7f8c8d;
    position: relative;
    padding-left: 20px;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

/* 产品信息左对齐样式 */
.service-features li {
    text-align: left;
}

.service-features li:not(:has(.prod-code)):not(:has(.prod-spec))::before {
    content: '✓';
}

.service-features li:has(.prod-code)::before,
.service-features li:has(.prod-spec)::before {
    content: '';
}

.service-btn {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

/* 产品图片样式 */
.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    margin-bottom: 20px;
    position: relative;
}

.prod-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .prod-img {
    transform: scale(1.05);
}

/* 当图片加载失败时的占位样式 */
.prod-img:not([src]), 
.prod-img[src=""], 
.prod-img[src*="placeholder"] {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 14px;
}

.prod-img:not([src])::after, 
.prod-img[src=""]::after, 
.prod-img[src*="placeholder"]::after {
    content: "产品图片占位";
}

/* 技术栈 */
.tech-stack {
    padding: 100px 0;
    background: #f8f9fa;
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.tech-category {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tech-category h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-item {
    background: #3498db;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 服务流程 */
.service-process {
    padding: 100px 0;
    background: white;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-content h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.step-content p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* 成功案例 */
.success-cases {
    padding: 100px 0;
    background: #f8f9fa;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.case-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.case-item:hover {
    transform: translateY(-10px);
}

.case-image {
    height: 200px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-content {
    padding: 30px;
}

.case-content h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.case-content p {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.case-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.case-tech span {
    background: #ecf0f1;
    color: #2c3e50;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 联系我们页面样式 */
.contact-info {
    padding: 100px 0;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.contact-item {
    text-align: center;
    padding: 40px 20px;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-10px);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.contact-icon i {
    font-size: 2rem;
    color: white;
}

.contact-item h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.contact-item p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* 联系表单 */
.contact-form-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.privacy-link,
.terms-link {
    color: #3498db;
    text-decoration: none;
}

.privacy-link:hover,
.terms-link:hover {
    text-decoration: underline;
}

/* 地图 */
.map-section {
    padding: 100px 0;
    background: white;
}

.map-container {
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-placeholder {
    height: 100%;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
}

.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #3498db;
}

/* 常见问题 */
.faq-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin: 0;
}

.faq-question i {
    color: #3498db;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 30px 25px;
    max-height: 200px;
}

.faq-answer p {
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
}

/* 新闻页面样式 */
.news-section {
    padding: 100px 0;
    background: white;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.news-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-10px);
}

.news-item.featured {
    grid-column: span 2;
}

.news-image {
    position: relative;
    overflow: hidden;
    display: flex;  /* 使用flex布局 */
    align-items: center;  /* 垂直居中 */
    justify-content: center;  /* 水平居中 */
    background: #f8f9fa;  /* 背景色 */
}

.news-item.featured .news-image {
    /* 特色新闻保持相同样式 */
}

.news-image img {
    width: 100%;
    height: auto;  /* 自适应高度，保持宽高比 */
    max-height: 400px;  /* 最大高度限制 */
    object-fit: contain;  /* 完整显示图片，不裁剪（如果图片超过max-height） */
    display: block;  /* 移除底部间隙 */
    transition: transform 0.3s ease;
}

.news-item.featured .news-image img {
    max-height: 500px;  /* 特色新闻图片最大高度 */
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #3498db;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.news-content {
    padding: 25px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.news-date {
    color: #3498db;
}

.news-content h2,
.news-content h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-content h2 {
    font-size: 1.5rem;
}

.news-content h3 {
    font-size: 1.3rem;
}

.news-content p {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #2980b9;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(3px);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e9ecef;
    background: white;
    color: #7f8c8d;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover {
    border-color: #3498db;
    color: #3498db;
}

.page-btn.active {
    background: #3498db;
    border-color: #3498db;
    color: white;
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-btn.disabled:hover {
    border-color: #e9ecef;
    color: #7f8c8d;
}

/* 新闻分类 */
.news-categories {
    padding: 100px 0;
    background: #f8f9fa;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.category-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.category-item:hover {
    transform: translateY(-10px);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.category-icon i {
    font-size: 1.5rem;
    color: white;
}

.category-item h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.category-item p {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.category-count {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ecf0f1;
    color: #2c3e50;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .intro-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: 60px;
    }
    
    .timeline-year {
        position: absolute;
        left: 0;
        transform: translateX(-50%);
    }
    
    .timeline-content {
        margin: 0;
        max-width: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .news-item.featured {
        grid-column: span 1;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 100px 0 60px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .intro-text h2 {
        font-size: 2rem;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-year {
        font-size: 1rem;
        padding: 10px 20px;
    }
}
