/* ===========================
   公司动态 / 新闻列表页样式
   =========================== */

/* 页面标题区 */
.page-header {
    padding: 120px 0 60px;
    background: var(--gradient);
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 分类筛选栏 */
.news-filter {
    background: var(--white);
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 70px;
    z-index: 100;
}

.news-filter .container {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.news-filter .container::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    padding: 16px 24px;
    border: none;
    background: transparent;
    color: var(--gray);
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.filter-btn:hover {
    color: var(--primary);
}

.filter-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

/* 新闻主体区 */
.news-main {
    padding: 60px 0 80px;
    background: var(--light);
    min-height: 600px;
}

/* 文章列表 */
.news-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.news-card-cover {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: linear-gradient(135deg, #e0e7ff 0%, #bae6fd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.news-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.tag-industry { background: #eff6ff; color: #2563eb; }
.tag-case     { background: #f0fdf4; color: #16a34a; }
.tag-company  { background: #fdf4ff; color: #9333ea; }
.tag-news     { background: #fff7ed; color: #ea580c; }

.news-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-summary {
    font-size: 0.875rem;
    color: var(--gray);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid #f1f5f9;
    font-size: 0.8rem;
    color: var(--gray-light);
}

.news-card-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-card-read {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.8rem;
}

/* 空状态 */
.news-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray);
    grid-column: 1 / -1;
}

.news-empty i {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--gray-light);
}

/* ===========================
   文章详情页样式
   =========================== */

.article-header {
    padding: 120px 0 50px;
    background: var(--gradient);
    color: var(--white);
}

.article-header .breadcrumb {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 20px;
}

.article-header .breadcrumb a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
}

.article-header .breadcrumb a:hover { opacity: 1; }
.article-header .breadcrumb span { margin: 0 8px; }

.article-header .article-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255,255,255,0.2);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.article-header h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 16px;
    max-width: 800px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.875rem;
    opacity: 0.85;
}

.article-meta i { margin-right: 4px; }

/* 文章内容区 */
.article-body {
    padding: 60px 0 80px;
    background: var(--white);
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.article-content {
    font-size: 1rem;
    line-height: 1.9;
    color: #334155;
}

.article-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin: 40px 0 16px;
    padding-left: 14px;
    border-left: 4px solid var(--primary);
}

.article-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 28px 0 12px;
}

.article-content p {
    margin-bottom: 18px;
}

.article-content ul, .article-content ol {
    padding-left: 24px;
    margin-bottom: 18px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content blockquote {
    border-left: 4px solid var(--primary);
    background: #eff6ff;
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
    color: var(--primary-dark);
    font-style: italic;
}

.article-content strong {
    color: var(--dark);
    font-weight: 600;
}

.article-content img {
    width: 100%;
    border-radius: 8px;
    margin: 24px 0;
}

/* 侧边栏 */
.article-sidebar {
    position: sticky;
    top: 90px;
}

.sidebar-card {
    background: var(--light);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.related-list {
    list-style: none;
    padding: 0;
}

.related-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.related-list li:last-child { border-bottom: none; }

.related-list a {
    font-size: 0.875rem;
    color: var(--dark);
    text-decoration: none;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.related-list a:hover { color: var(--primary); }

.sidebar-cta {
    background: var(--gradient);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    color: var(--white);
}

.sidebar-cta h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.sidebar-cta p {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 16px;
}

.sidebar-cta .btn-white {
    display: inline-block;
    padding: 10px 24px;
    background: var(--white);
    color: var(--primary);
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.sidebar-cta .btn-white:hover { opacity: 0.9; }

/* 文章底部标签 */
.article-tags {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.article-tags span {
    font-size: 0.875rem;
    color: var(--gray);
    margin-right: 4px;
}

.article-tags a {
    padding: 4px 12px;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background 0.2s;
}

.article-tags a:hover { background: #dbeafe; }

/* 上下篇导航 */
.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 40px;
}

.article-nav-item {
    padding: 16px 20px;
    background: var(--light);
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s;
}

.article-nav-item:hover { background: #e2e8f0; }

.article-nav-item .nav-label {
    font-size: 0.75rem;
    color: var(--gray-light);
    margin-bottom: 6px;
}

.article-nav-item .nav-title {
    font-size: 0.875rem;
    color: var(--dark);
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-nav-item.next { text-align: right; }

/* 响应式 */
@media (max-width: 900px) {
    .news-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
    }

    .article-header h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    .news-list {
        grid-template-columns: 1fr;
    }

    .article-nav {
        grid-template-columns: 1fr;
    }

    .article-nav-item.next { text-align: left; }

    .page-header h1, .article-header h1 {
        font-size: 1.4rem;
    }
}
