/* --- 内页通用样式 --- */

/* --- 页面头部 --- */
.page-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
    text-align: center;
    color: #fff;
}

.page-header h1 {
    font-size: 42px;
    color: #fff;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    color: var(--secondary-orange);
}

/* --- 企业介绍页 --- */
.about-page-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-page-content img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    background: var(--light-gray);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    border-left: 4px solid var(--primary-orange);
}

.stat-item h3 {
    font-size: 42px;
    color: var(--primary-blue);
}

.stat-item p {
    font-weight: 600;
    color: var(--dark-gray);
}

.timeline {
    position: relative;
    margin: 60px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--medium-gray);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    background: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    border-right: 4px solid var(--primary-blue);
}

.timeline-item:nth-child(even) .timeline-content {
    border-left: 4px solid var(--primary-orange);
}

.timeline-year {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-orange);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px var(--primary-orange);
}

.timeline-item:nth-child(odd) .timeline-year {
    right: -25px;
}

.timeline-item:nth-child(even) .timeline-year {
    left: -25px;
}

/* --- 新闻中心 --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.13);
}

.news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    color: var(--text-color);
    font-size: 14px;
    margin-bottom: 10px;
}

.news-meta span {
    margin-right: 15px;
}

.news-meta .icon {
    color: var(--primary-orange);
    margin-right: 5px;
}

.news-content h3 {
    font-size: 18px;
    margin-bottom: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 16px;
}

.read-more {
    display: inline-block;
    margin-top: auto;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-blue);
    transition: gap 0.2s, color 0.2s;
}

.read-more:hover {
    color: var(--primary-orange);
    text-decoration: underline;
}

.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 50px;
}

.pagination a {
    padding: 10px 18px;
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    color: var(--dark-gray);
    font-weight: 600;
    transition: background .2s, color .2s, border-color .2s;
    white-space: nowrap;
}

.pagination a.active,
.pagination a:hover {
    background: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
}

/* --- 产品/设计/品质/服务 通用 --- */
.service-item,
.process-step,
.quality-item,
.advantage-item {
    background: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-item:hover,
.process-step:hover,
.quality-item:hover,
.advantage-item:hover {
    transform: translateY(-10px);
}

.item-icon {
    font-size: 48px;
    color: var(--primary-orange);
    margin-bottom: 20px;
}

.service-item h3,
.process-step h3,
.quality-item h3,
.advantage-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.grid-3,
.grid-4 {
    display: grid;
    gap: 30px;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* --- 联系页面 --- */
.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.map-container {
    width: 100%;
    height: 500px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--medium-gray);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- 响应式 --- */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .about-page-content {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 25px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 0;
        box-sizing: border-box;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-content {
        border-right: none;
        border-left: 4px solid var(--primary-blue);
    }

    .timeline-year {
        left: 0;
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .news-card img {
        height: 180px;
    }

    .news-content {
        padding: 18px;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .pagination {
        margin-top: 32px;
        gap: 4px;
    }

    .pagination a {
        padding: 8px 12px;
        font-size: 13px;
    }

    /* 小屏隐藏数字页码，只保留首/上/下/尾 */
    .pagination .page-num,
    .pagination .page-num-current {
        display: none;
    }

    .contact-page-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}