/* 新闻页专属样式 */
:root {
    --bg-body: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent-blue: #0071e3;
    --accent-orange: #f56300;
    --nav-bg: rgba(255, 255, 255, 0.85);
    --font-stack: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

body { background: var(--bg-body); color: var(--text-primary); }

/* 页面标题 */
.page-header { padding: 160px 20px 80px; max-width: 1100px; margin: 0 auto; text-align: center; }
.page-header h1 { font-size: 56px; font-weight: 700; letter-spacing: -2px; margin-bottom: 15px; }
.page-header p { font-size: 24px; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* 布局容器 */
.news-container { max-width: 1100px; margin: 0 auto; padding: 0 20px 120px; }

/* 标签 */
.tag { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.tag-blue { background: rgba(0, 113, 227, 0.1); color: #0071e3; }
.tag-orange { background: rgba(245, 99, 0, 0.1); color: #f56300; }
.tag-gray { background: #f5f5f7; color: #666; }

/* 封面大卡片 */
.featured-card { display: block; position: relative; height: 500px; border-radius: 24px; overflow: hidden; margin-bottom: 60px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.featured-bg { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); }
.featured-card:hover .featured-bg { transform: scale(1.05); }
.featured-content { position: absolute; bottom: 0; left: 0; width: 100%; padding: 60px; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); color: #fff; }
.featured-title { font-size: 36px; font-weight: 700; margin-bottom: 10px; line-height: 1.2; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.featured-meta { font-size: 15px; opacity: 0.8; margin-top: 10px; font-weight: 500; }

/* 次级网格 */
.sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 80px; }

.news-card { display: block; border-radius: 20px; overflow: hidden; background: #fff; transition: transform 0.4s ease, box-shadow 0.4s ease; border: 1px solid rgba(0,0,0,0.05); }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }

.card-thumb-box { height: 240px; overflow: hidden; position: relative; }
.card-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.news-card:hover .card-thumb { transform: scale(1.05); }

.card-text { padding: 30px; }
.card-title { font-size: 22px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; color: var(--text-primary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-desc { font-size: 16px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.read-more { font-size: 14px; color: var(--accent-blue); font-weight: 600; display: flex; align-items: center; }
.read-more::after { content: "→"; margin-left: 5px; transition: margin-left 0.3s; }
.news-card:hover .read-more::after { margin-left: 10px; }

/* 列表区域 */
.list-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.list-section-title { font-size: 32px; font-weight: 700; text-align: left; line-height: 1.2; }
.news-list { display: flex; flex-direction: column; gap: 30px; }

.list-item { display: flex; background: #fff; border-radius: 20px; overflow: hidden; border: 1px solid rgba(0,0,0,0.06); min-height: 200px; transition: all 0.4s ease; }
.list-item:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0,0,0,0.06); border-color: transparent; }
.list-thumb-box { width: 300px; flex-shrink: 0; overflow: hidden; position: relative; background: #f5f5f7; }
.list-thumb-box img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.5s ease; opacity: 0; }
.list-thumb-box img.loaded { opacity: 1; }
.list-info { flex: 1; padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.list-meta-top { display: flex; align-items: center; gap: 15px; margin-bottom: 10px; }
.list-date { font-size: 13px; color: #86868b; font-weight: 500; }
.list-title { font-size: 20px; font-weight: 700; color: #1d1d1f; margin-bottom: 10px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.list-summary { font-size: 15px; color: #666; line-height: 1.6; margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.list-link-text { font-size: 14px; color: var(--accent-blue); font-weight: 600; }

/* 骨架屏 */
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: skeleton-loading 1.5s infinite; border-radius: 8px; }
@keyframes skeleton-loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-item { height: 200px; background: #fff; border-radius: 20px; padding: 20px; display: flex; gap: 20px; border: 1px solid #eee; }
.skeleton-img { width: 300px; height: 100%; border-radius: 12px; }
.skeleton-text { flex: 1; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.skeleton-line { height: 20px; width: 100%; }
.skeleton-line.short { width: 60%; }

/* 封面骨架屏 */
.featured-skeleton { display: block; height: 500px; border-radius: 24px; position: relative; overflow: hidden; background: #e0e0e0; animation: skeleton-loading 1.5s infinite; background-size: 200% 100%; margin-bottom: 60px; }
.featured-skeleton::after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 40%; background: linear-gradient(to top, rgba(0,0,0,0.2), transparent); }

/* 次级卡片骨架屏 */
.sub-grid-skeleton { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 80px; }
.card-skeleton { height: 400px; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid rgba(0,0,0,0.05); }
.card-skeleton .skeleton-img-box { height: 240px; background: #e0e0e0; animation: skeleton-loading 1.5s infinite; background-size: 200% 100%; }
.card-skeleton .skeleton-text-box { padding: 30px; }
.card-skeleton .skeleton-text-box .skeleton-line { margin-bottom: 10px; }
.card-skeleton .skeleton-text-box .skeleton-line:first-child { width: 40%; height: 14px; }
.card-skeleton .skeleton-text-box .skeleton-line:nth-child(2) { width: 90%; height: 24px; }
.card-skeleton .skeleton-text-box .skeleton-line:nth-child(3) { width: 75%; height: 16px; }

/* 搜索栏 */
.search-panel {
    margin: 70px 0 38px; padding: 18px;
    display: flex; align-items: center; gap: 18px;
    background: rgba(245, 245, 247, 0.78);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 24px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.78);
}
.search-field {
    flex: 1; min-width: 0; min-height: 58px;
    display: flex; align-items: center;
    background: #fff; border: 1px solid rgba(0,0,0,0.08);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.search-field:focus-within {
    border-color: rgba(0,113,227,0.42);
    box-shadow: 0 12px 34px rgba(0,113,227,0.12);
    transform: translateY(-1px);
}
.search-field svg {
    flex-shrink: 0; width: 19px; height: 19px; margin-left: 20px;
    color: #86868b; transition: color 0.25s;
}
.search-field:focus-within svg { color: var(--accent-blue); }
.search-field input {
    flex: 1; min-width: 0; padding: 0 14px; font-size: 17px;
    border: none; background: transparent; outline: none;
    font-family: inherit; color: #1d1d1f;
}
.search-field input::-webkit-search-decoration,
.search-field input::-webkit-search-cancel-button,
.search-field input::-webkit-search-results-button,
.search-field input::-webkit-search-results-decoration { display: none; }
.search-field input::placeholder { color: #9a9aa0; }
.clear-btn {
    flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
    border: none; background: #f5f5f7; color: #86868b;
    cursor: pointer; display: none; align-items: center; justify-content: center;
    margin-right: 12px; transition: color 0.2s, background 0.2s, transform 0.2s;
}
.clear-btn:hover { color: #1d1d1f; background: #e8e8ed; transform: scale(1.04); }
.clear-btn.visible { display: flex; }
.clear-btn svg { width: 14px; height: 14px; margin: 0; color: currentColor; }
.search-status {
    min-width: 126px; padding: 0 10px;
    color: var(--text-secondary); font-size: 14px; line-height: 1.4; text-align: right;
}
.search-count { display: block; color: #1d1d1f; font-size: 22px; font-weight: 700; line-height: 1.1; }
.search-count-label { display: block; margin-top: 4px; }

/* 搜索无结果 */
.no-result {
    min-height: 260px; padding: 70px 20px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; color: #86868b; background: #fff;
    border: 1px solid rgba(0,0,0,0.06); border-radius: 24px;
}
.no-result-icon {
    width: 54px; height: 54px; margin-bottom: 18px;
    display: grid; place-items: center; border-radius: 50%;
    background: #f5f5f7; color: var(--accent-blue);
}
.no-result-icon svg { width: 25px; height: 25px; }
.no-result h3 { color: #1d1d1f; font-size: 22px; margin-bottom: 8px; }
.no-result p { font-size: 15px; line-height: 1.6; }

/* 移动端 */
@media (max-width: 768px) {
    .page-header h1 { font-size: 40px; }
    .featured-card { height: 400px; }
    .featured-title { font-size: 26px; }
    .sub-grid { grid-template-columns: 1fr; }
    .list-item { flex-direction: column; height: auto; }
    .list-thumb-box { width: 100%; height: 200px; }
    .list-info { padding: 25px; }
    .list-heading { display: block; margin-bottom: 28px; }
    .search-panel { margin: 48px 0 30px; padding: 12px; flex-direction: column; align-items: stretch; border-radius: 20px; }
    .search-field { min-height: 54px; border-radius: 16px; }
    .search-field input { font-size: 16px; }
    .search-status { min-width: 0; padding: 2px 8px 4px; text-align: left; }
    .search-count { display: inline; font-size: 16px; margin-right: 4px; }
    .search-count-label { display: inline; }
    .skeleton-item { flex-direction: column; height: auto; }
    .skeleton-img { width: 100%; height: 200px; }
}
