/* ===== 页面通用样式 ===== */

/* 页面头部 */
.page-header {
    margin-top: 70px;
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    text-align: center;
    color: var(--white);
}

.page-header-content h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.page-header-content p {
    font-size: 20px;
    opacity: 0.95;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 20px 0;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ===== 关于我们页面 ===== */

.company-intro {
    padding: 80px 0;
    background: var(--white);
}

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

.intro-text h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.intro-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

.intro-image .image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 80px;
}
.image-placeholder img{
    vertical-align: middle;
    height: 160px;
    width: 220px;
}
.intro-image .image-placeholder p {
    font-size: 18px;
    margin-top: 15px;
}

/* 企业文化 */
.culture-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.culture-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.culture-card:hover {
    transform: translateY(-5px);
}

.culture-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.culture-card h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

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

/* 荣誉资质 */
.honors-section {
    padding: 80px 0;
    background: var(--white);
}

.honors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.honor-card {
    text-align: center;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 10px;
}

.honor-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.honor-card h4 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.honor-card p {
    font-size: 14px;
    color: var(--text-light);
}

/* 团队介绍 */
.team-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.team-avatar {
    font-size: 80px;
    margin-bottom: 15px;
}

.team-card h4 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.team-role {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 10px;
}

.team-desc {
    font-size: 14px;
    color: var(--text-light);
}

/* ===== 联系我们页面 ===== */

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

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

.contact-info-box,
.contact-form-box {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.contact-info-box h2,
.contact-form-box h2 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 30px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--text-light);
}

.contact-form-box form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.contact-form-box input,
.contact-form-box select,
.contact-form-box textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
}

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

/* 地图区域 */
.map-section {
    padding: 80px 0;
    background: var(--white);
}

.map-placeholder {
    height: 400px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.map-content {
    text-align: center;
}

.map-icon {
    font-size: 80px;
    display: block;
    margin-bottom: 20px;
}

.map-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.map-note {
    margin-top: 15px;
    opacity: 0.8;
    font-size: 14px;
}

/* FAQ */
.faq-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    cursor: pointer;
}

.faq-question span {
    font-size: 24px;
}

.faq-question h4 {
    font-size: 18px;
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 25px 20px 55px;
}

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

/* ===== 产品页面 ===== */

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

.category-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 25px;
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

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

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

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

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

.product-image {
    height: 200px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
}

.product-info {
    padding: 25px;
}

.product-category {
    display: inline-block;
    padding: 5px 12px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 10px;
}

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

.product-features{
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 15px;
    line-height: 1.6;
    white-space: pre-wrap;
    white-space: -moz-pre-wrap;
    white-space: -pre-wrap;
    white-space: -o-pre-wrap;
    word-wrap: break-word;
    min-height: 155px;
}
.btn-detail {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    transition: background 0.3s;
}

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

/* 服务流程 */
.process-section {
    padding: 80px 0;
    background: var(--white);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.process-step .step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 15px;
}

.process-step h4 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.process-step p {
    font-size: 14px;
    color: var(--text-light);
}

/* ===== 产品详情页面 ===== */

.product-detail-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
}

.detail-image .main-image {
    height: 400px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    margin-bottom: 15px;
}

.thumbnail-list {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
}

.detail-info {
    padding: 20px;
}

.product-tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 15px;
}

.detail-info h1 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.detail-desc {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 25px;
}

.detail-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 5px;
}

.spec-label {
    color: var(--text-light);
    font-size: 14px;
}

.spec-value {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 14px;
}

.detail-actions {
    display: flex;
    gap: 15px;
}

.btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    background: var(--bg-light);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: background 0.3s;
}

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

/* 详情内容区 */
.detail-content-section {
    padding: 80px 0;
    background: var(--white);
}

.detail-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--bg-light);
}

.tab-btn {
    padding: 15px 30px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-light);
    transition: all 0.3s;
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    min-height: 400px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.tab-pane p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* 工艺流程 */
.process-flow {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.flow-step {
    padding: 12px 20px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    font-size: 14px;
}

.flow-arrow {
    color: var(--secondary-color);
    font-size: 20px;
}

/* 参数表格 */
.params-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.params-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: center;
}

.params-table tr:first-child td {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 500;
}

.params-table tr:nth-child(even) {
    background: var(--bg-light);
}

/* 产品特点 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.feature-item {
    padding: 25px;
    background: var(--bg-light);
    border-radius: 10px;
    text-align: center;
}

.feature-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 15px;
}

.feature-item h4 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 14px;
    color: var(--text-light);
}

/* 应用案例 */
.cases-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.case-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 10px;
}

.case-image {
    flex-shrink: 0;
}

.image-placeholder-small {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
}

.case-info h4 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.case-info p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
}

/* 相关产品 */
.related-products {
    padding: 80px 0;
    background: var(--bg-light);
}

.products-grid-small {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.product-card-mini {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.mini-image {
    font-size: 60px;
    margin-bottom: 15px;
}

.product-card-mini h4 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.btn-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 14px;
}

.btn-link:hover {
    text-decoration: underline;
}

/* ===== 新闻页面 ===== */

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

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.news-image {
    height: 200px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    position: relative;
}

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 15px;
    font-size: 12px;
}

.news-content {
    padding: 25px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--text-light);
}

.news-content h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-content > p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-read {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.btn-read:hover {
    text-decoration: underline;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination>li {
    list-style:none;
}
.pagination>li>a {
    padding: 10px 18px;
    background: var(--white);
    border: 1px solid #ddd;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    text-decoration: none;
}
.pagination>li>span{
    padding: 10px 18px;
    background: var(--secondary-color);
    border: 1px solid #ddd;
    color: var(--white);
    border-radius: 5px;
    transition: all 0.3s;
    text-decoration: none;
}
.pagination>li>a:hover,
.pagination>li.active>a{
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* ===== 新闻详情页面 ===== */

.news-detail-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.detail-article {
    background: var(--white);
    padding: 50px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.article-header {
    margin-bottom: 30px;
}

.article-header h1 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    gap: 20px;
    color: var(--text-light);
    font-size: 14px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-cover {
    height: 400px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    margin-bottom: 40px;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
}

.article-content .lead {
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.article-content h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin: 30px 0 15px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 5px 5px 0;
}

.article-content blockquote p {
    font-style: italic;
    margin-bottom: 10px;
}

.article-content blockquote cite {
    color: var(--text-light);
    font-size: 14px;
}

.article-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: var(--text-light);
}

.article-tags a {
    display: inline-block;
    padding: 5px 12px;
    background: var(--bg-light);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 15px;
    font-size: 14px;
    margin: 5px 5px 0 0;
    transition: background 0.3s;
}

.article-tags a:hover {
    background: var(--primary-color);
    color: var(--white);
}


/* 上下篇导航 */
.article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.nav-prev,
.nav-next {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.nav-prev span,
.nav-next span {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.nav-prev a,
.nav-next a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 15px;
    line-height: 1.4;
}

.nav-prev a:hover,
.nav-next a:hover {
    text-decoration: underline;
}


/* ===== 响应式设计 ===== */

@media (max-width: 992px) {
    .culture-grid,
    .honors-grid,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .detail-grid,
    .intro-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-header-content h1 {
        font-size: 32px;
    }
    
    .culture-grid,
    .honors-grid,
    .team-grid,
    .products-grid,
    .news-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        flex-direction: column;
        gap: 30px;
    }
    
    .products-grid-small,
    .news-grid-small {
        grid-template-columns: 1fr;
    }
    
    .article-navigation {
        grid-template-columns: 1fr;
    }
    
    .detail-article {
        padding: 30px 20px;
    }
    
    .article-header h1 {
        font-size: 24px;
    }
    
    .article-cover {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .filter-btn {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .detail-specs {
        grid-template-columns: 1fr;
    }
    
    .detail-actions {
        flex-direction: column;
    }
}
