/* 内页通用样式 */

/* 页面内容区域 */
.news-page,
.products-page,
.about-page,
.contact-page {
    padding: 60px 0;
    background: var(--bg-light);
}

/* 新闻页面布局 */
.news-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

/* 新闻分类标签 */
.news-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 25px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

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

/* 新闻列表 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

a.news-item {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 25px;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}

a.news-item:hover {
    box-shadow: var(--shadow-lg);
}

.news-item {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 25px;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.news-image .image-placeholder {
    height: 100%;
    min-height: 200px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-image .image-placeholder i {
    font-size: 48px;
    color: var(--primary-color);
}

.news-body {
    padding: 25px;
}

.news-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.news-category {
    background: var(--secondary-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
}

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

.news-date i {
    margin-right: 5px;
}

.news-body h2 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

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

/* 侧边栏 */
.sidebar-widget {
    background: var(--white);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.sidebar-widget h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

/* 搜索框 */
.search-box {
    display: flex;
}

.search-box input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.search-box button {
    padding: 12px 20px;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 6px 15px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-dark);
    transition: all 0.3s;
}

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

/* 热门文章 */
.hot-news {
    list-style: none;
}

.hot-news li {
    margin-bottom: 15px;
}

.hot-news a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hot-num {
    width: 24px;
    height: 24px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.hot-news li:nth-child(1) .hot-num { background: #e53e3e; }
.hot-news li:nth-child(2) .hot-num { background: #dd6b20; }
.hot-news li:nth-child(3) .hot-num { background: #d69e2e; }

.hot-title {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.5;
}

.hot-news a:hover .hot-title {
    color: var(--secondary-color);
}

/* 联系小部件 */
.contact-widget p {
    margin-bottom: 10px;
    color: var(--text-light);
}

.contact-widget i {
    margin-right: 8px;
    color: var(--secondary-color);
}

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

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-dark);
    transition: all 0.3s;
}

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

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-ellipsis {
    display: flex;
    align-items: center;
    color: var(--text-light);
}

/* 面包屑导航 */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    font-size: 14px;
}

.breadcrumb-nav a {
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s;
}

.breadcrumb-nav a:hover {
    color: var(--secondary-color);
}

.breadcrumb-nav a i {
    font-size: 12px;
}

.breadcrumb-separator {
    color: var(--border-color);
    font-size: 12px;
}

.breadcrumb-current {
    color: var(--primary-color);
    font-weight: 500;
}

/* 产品页面 */
.products-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
}

/* 产品分类 */
.product-categories {
    background: var(--white);
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.product-categories h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.category-list {
    list-style: none;
}

.category-list li {
    border-bottom: 1px solid var(--border-color);
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    color: var(--text-dark);
    transition: all 0.3s;
}

.category-list a:hover,
.category-list a.active {
    color: var(--secondary-color);
}

.category-list .count {
    background: var(--bg-light);
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
}

/* 产品网格 */
.products-grid-large {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

a.product-card-large {
    display: block;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}

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

.product-card-large {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.product-card-large .product-image {
    height: 220px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-large .product-image i {
    font-size: 60px;
    color: var(--primary-color);
}

.product-card-large .product-info {
    padding: 25px;
}

.product-card-large h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-card-large p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.product-specs {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--text-light);
}

.product-specs span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-specs i {
    color: var(--secondary-color);
}

/* 关于我们页面 */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.about-intro-content h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-intro-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-image-large .image-placeholder {
    height: 400px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.about-image-large .image-placeholder i {
    font-size: 80px;
    margin-bottom: 20px;
}

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

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

.culture-item {
    text-align: center;
    padding: 40px 20px;
}

.culture-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.culture-icon i {
    font-size: 32px;
    color: var(--white);
}

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

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

/* 发展历程 */
.history-section {
    margin-bottom: 80px;
}

.timeline {
    position: relative;
    padding-left: 40px;
}

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

.timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 5px;
    width: 16px;
    height: 16px;
    background: var(--secondary-color);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--secondary-color);
}

.timeline-year {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

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

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

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

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

.honor-item {
    text-align: center;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 8px;
    transition: all 0.3s;
}

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

.honor-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.honor-icon i {
    font-size: 40px;
    color: var(--white);
}

.honor-item h3 {
    font-size: 16px;
    color: var(--primary-color);
}

/* 联系页面 */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

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

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 24px;
    color: var(--white);
}

.contact-text h3 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

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

/* 联系表单 */
.contact-form-section {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-form-section h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

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

/* 地图区域 */
.map-section {
    margin-top: 60px;
}

.map-container {
    height: 400px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.map-container i {
    font-size: 60px;
    margin-bottom: 20px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .news-layout,
    .products-layout {
        grid-template-columns: 1fr;
    }
    
    .news-sidebar {
        order: -1;
    }
    
    .products-grid-large {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-intro,
    .contact-layout {
        grid-template-columns: 1fr;
    }
    
    .culture-grid,
    .honors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-item {
        grid-template-columns: 1fr;
    }
    
    .news-image .image-placeholder {
        min-height: 180px;
    }
    
    .products-grid-large {
        grid-template-columns: 1fr;
    }
    
    .culture-grid,
    .honors-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}
