/* ========================================
   文章页面现代化美化样式
   v2.0 - 2026年升级版
   ======================================== */

:root {
    --primary-color: #10b981;
    --primary-dark: #059669;
    --primary-light: #34d399;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-gray: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   文章列表页美化
   ======================================== */

/* 文章列表区域 */
.articles-list-section {
    padding: 0 0 4rem 0;
    background: var(--bg-light);
}

/* 筛选区域美化 - 使用美食页面样式 */
.filter-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 3rem 0;
    margin-bottom: 0;
}

.filter-container {
    background: #ffffff;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e7eb;
}

.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.filter-title-group {
    flex: 1;
}

.filter-main-title {
    font-size: 2rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.filter-subtitle {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
}

.filter-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
}

.filter-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: #10b981;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 600;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #e2e8f0, transparent);
}

.filter-tabs-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-tab-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.filter-tab-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.1), transparent);
    transition: left 0.5s ease;
}

.filter-tab-modern:hover::before {
    left: 100%;
}

.filter-tab-modern:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.08) 100%);
    border-color: rgba(16, 185, 129, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.filter-tab-modern.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
    transform: translateY(-2px);
}

.tab-icon {
    font-size: 1.25rem;
    color: #64748b;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-tab-modern.active .tab-icon {
    color: #ffffff;
}

.filter-tab-modern:hover .tab-icon {
    color: #10b981;
    transform: scale(1.1);
}

.filter-tab-modern.active:hover .tab-icon {
    color: #ffffff;
}

.tab-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.tab-title {
    font-size: 0.938rem;
    font-weight: 700;
    color: #1e293b;
    transition: color 0.3s ease;
    line-height: 1.2;
}

.filter-tab-modern.active .tab-title {
    color: #ffffff;
}

.tab-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    transition: color 0.3s ease;
}

.filter-tab-modern.active .tab-count {
    color: rgba(255, 255, 255, 0.85);
}

.filter-tab-modern:hover .tab-title {
    color: #10b981;
}

.filter-tab-modern.active:hover .tab-title {
    color: #ffffff;
}

/* 旧的筛选样式（保留作为备用） */
.articles-filter {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 0;
    border: 1px solid var(--border-color);
}

.filter-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.filter-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-tab {
    padding: 0.875rem 2rem;
    background: var(--bg-light);
    color: var(--text-gray);
    border: 2px solid transparent;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.filter-tab:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    color: var(--primary-dark);
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.filter-tab.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #ffffff !important;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
    transform: translateY(-3px);
}

.filter-tab.active * {
    color: #ffffff !important;
}

/* 文章卡片网格布局 - 四列布局，不满行自动居中 */
.articles-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0;
    margin-bottom: 3rem;
}

.articles-grid > .article-detail-card,
.articles-grid > .article-card {
    flex: 0 0 calc(25% - 1.125rem);
    min-width: 220px;
    max-width: calc(25% - 1.125rem);
}

/* 文章卡片优化 */
.article-detail-card {
    position: relative;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(16, 185, 129, 0.08);
}

.article-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.article-detail-card:hover::before {
    opacity: 1;
}

.article-detail-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-12px);
    border-color: rgba(16, 185, 129, 0.2);
}

/* 文章图片区域 */
.article-detail-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-gray);
}

.article-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-detail-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 0, 0, 0.05) 50%,
        rgba(0, 0, 0, 0.2) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.article-detail-card:hover .article-detail-image img {
    transform: scale(1.08);
}

.article-detail-card:hover .article-detail-image::after {
    opacity: 1;
}

/* 分类标签（悬浮在图片上） */
.article-category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 18px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(5, 150, 105, 0.95) 100%);
    color: var(--bg-white);
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    z-index: 2;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.article-detail-card:hover .article-category-badge {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* 文章内容区域 */
.article-detail-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: linear-gradient(to bottom, rgba(249, 250, 251, 0.5) 0%, var(--bg-white) 100%);
}

/* 文章元信息 */
.article-detail-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(16, 185, 129, 0.08);
}

.detail-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.875rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.detail-meta-item i {
    color: var(--primary-color);
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.detail-meta-item:hover {
    color: var(--primary-dark);
}

.detail-meta-item:hover i {
    transform: scale(1.15);
}

/* 文章标题 */
.article-detail-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.article-detail-card:hover .article-detail-title {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 文章摘要 */
.article-detail-excerpt {
    font-size: 0.938rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* 文章底部 */
.article-detail-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.25rem;
    margin-top: auto;
    border-top: 2px solid rgba(16, 185, 129, 0.08);
    gap: 1rem;
    flex-wrap: wrap;
}

/* 标签样式 */
.article-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 1;
    align-items: center;
    min-width: 0;
}

.detail-tag {
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.08) 100%);
    color: var(--primary-dark);
    font-size: 0.813rem;
    font-weight: 700;
    border-radius: 50px;
    border: 1.5px solid rgba(16, 185, 129, 0.15);
    transition: var(--transition);
    white-space: nowrap;
}

.detail-tag:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    border-color: transparent;
}

/* 阅读更多按钮 */
.article-detail-readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9375rem;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    min-width: 140px;
    justify-content: center;
}

.article-detail-readmore::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.article-detail-readmore:hover::before {
    left: 100%;
}

.article-detail-readmore:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    color: var(--bg-white);
}

.article-detail-readmore i {
    transition: transform 0.3s ease;
    font-size: 1.125rem;
}

.article-detail-readmore:hover i {
    transform: translateX(6px);
}

/* ========================================
   文章详情页美化
   ======================================== */

/* 详情页头部 */
.detail-hero {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 7rem 0 3.5rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e5e7eb;
    margin-top: 0;
}

.detail-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -8%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.detail-hero::after {
    content: '';
    position: absolute;
    bottom: -25%;
    left: -5%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.detail-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.header-label {
    display: inline-block;
    padding: 6px 20px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.12) 100%);
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 1.2rem;
    border: 1.5px solid rgba(16, 185, 129, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-hero-title {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 1.2rem;
    letter-spacing: -0.5px;
}

.detail-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.detail-hero-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 600;
}

.detail-hero-meta i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* 详情内容卡片 */
.detail-content-section {
    padding: 3.5rem 0;
    background: var(--bg-light);
}

.detail-content-card {
    background: var(--bg-white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
    border: 1px solid var(--border-color);
}

.detail-cover {
    width: 100%;
    height: 420px;
    overflow: hidden;
    position: relative;
}

.detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.02) 60%,
        rgba(0, 0, 0, 0.06) 100%
    );
}

/* 详情正文 */
.detail-body {
    padding: 2.8rem;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
    padding-bottom: 1.8rem;
    border-bottom: 2px solid rgba(16, 185, 129, 0.1);
}

#detailContent {
    color: var(--text-dark);
    line-height: 1.9;
    font-size: 1.02rem;
    font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
}

.detail-paragraph {
    margin-bottom: 1.5rem;
    text-indent: 2em;
}

#detailContent h2,
#detailContent h3 {
    color: var(--text-dark);
    font-weight: 800;
    margin-top: 2.2rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-left: 1rem;
}

#detailContent h2::before,
#detailContent h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 65%;
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
}

#detailContent ul,
#detailContent ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

#detailContent li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

#detailContent a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

#detailContent a:hover {
    border-bottom-color: var(--primary-color);
}

#detailContent blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
    border-left: 5px solid var(--primary-color);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-gray);
}

#detailContent code {
    padding: 2px 8px;
    background: var(--bg-gray);
    color: var(--primary-dark);
    border-radius: 6px;
    font-size: 0.938rem;
    font-family: 'Courier New', monospace;
}

#detailContent pre {
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 1.5rem 0;
}

#detailContent img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
}

/* 详情操作按钮 */
.detail-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(16, 185, 129, 0.1);
    flex-wrap: wrap;
    gap: 1.2rem;
}

.detail-back {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.8rem;
    background: var(--bg-gray);
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 50px;
    transition: var(--transition);
    border: 1.5px solid var(--border-color);
}

.detail-back:hover {
    background: var(--text-dark);
    color: var(--bg-white);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    border-color: var(--text-dark);
}

.detail-back i {
    transition: transform 0.3s ease;
}

.detail-back:hover i {
    transform: translateX(-4px);
}

/* 推荐文章区域 */
.recommend-section {
    padding: 4rem 0;
    background: var(--bg-white);
}

.recommend-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1.2rem;
}

.recommend-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 2px;
}

.recommend-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.recommend-card {
    position: relative;
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transition: var(--transition);
    text-decoration: none;
    display: block;
    border: 1px solid var(--border-color);
}

.recommend-card:hover {
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    transform: translateY(-8px);
    border-color: rgba(16, 185, 129, 0.25);
}

.recommend-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.recommend-card:hover img {
    transform: scale(1.08);
}

.recommend-card-body {
    padding: 1.5rem;
}

.recommend-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.recommend-card:hover .recommend-card-title {
    color: var(--primary-color);
}

.recommend-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================
   响应式优化
   ======================================== */

@media (max-width: 1200px) {
    .articles-grid > .article-detail-card,
    .articles-grid > .article-card {
        flex: 0 0 calc(33.333% - 1rem);
        max-width: calc(33.333% - 1rem);
    }
    
    .filter-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-stats {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 992px) {
    .articles-grid > .article-detail-card,
    .articles-grid > .article-card {
        flex: 0 0 calc(50% - 0.75rem);
        max-width: calc(50% - 0.75rem);
    }
    
    .filter-section {
        padding: 2.5rem 0;
    }
    
    .filter-container {
        padding: 2rem;
    }
    
    .filter-main-title {
        font-size: 1.75rem;
    }
    
    .detail-hero {
        padding: 6rem 0 2.5rem;
    }
    
    .detail-hero-title {
        font-size: 2rem;
    }
    
    .detail-cover {
        height: 360px;
    }
    
    .detail-body {
        padding: 2.2rem;
    }
    
    .recommend-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
}

@media (max-width: 768px) {
    .articles-list-section {
        padding: 0 0 2.5rem 0;
        background: #ffffff;
    }

    .filter-section {
        padding: 1.25rem 0 1.5rem;
        background: #ffffff;
    }

    .filter-container {
        padding: 1.25rem;
        border-radius: 16px;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    }

    .filter-header {
        gap: 1rem;
    }

    .filter-main-title {
        font-size: 1.35rem;
    }

    .filter-subtitle {
        font-size: 0.88rem;
    }

    .filter-stats {
        gap: 1rem;
    }

    .filter-stat-number {
        font-size: 1.3rem;
    }

    .filter-tabs-modern {
        gap: 0.5rem;
    }

    .filter-tab-modern {
        padding: 0.65rem 1rem;
        gap: 0.5rem;
        border-radius: 14px;
    }

    .tab-icon {
        font-size: 1rem;
    }

    .tab-title {
        font-size: 0.85rem;
    }

    .tab-count {
        font-size: 0.65rem;
    }

    .articles-grid > .article-detail-card,
    .articles-grid > .article-card {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 0;
    }

    .article-detail-card {
        border-radius: 16px;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    }

    .article-detail-image {
        height: 200px;
    }

    .article-detail-content {
        padding: 1.2rem 1.25rem;
    }

    .article-detail-meta {
        gap: 0.75rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
        flex-wrap: wrap;
    }

    .detail-meta-item {
        font-size: 0.78rem;
    }

    .detail-meta-item i {
        font-size: 0.9rem;
    }

    .article-detail-title {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }

    .article-detail-excerpt {
        font-size: 0.88rem;
        margin-bottom: 1rem;
    }

    .article-detail-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding-top: 0.9rem;
    }

    .article-detail-tags {
        width: 100%;
    }

    .detail-tag {
        font-size: 0.72rem;
        padding: 4px 10px;
    }

    .article-detail-readmore {
        width: 100%;
        justify-content: center;
        padding: 0.65rem 1rem;
        font-size: 0.88rem;
        min-width: 0;
    }

    .detail-hero {
        padding: 4.75rem 0 2rem;
    }

    .detail-hero::before,
    .detail-hero::after {
        display: none;
    }

    .detail-hero-content {
        text-align: left;
    }

    .detail-hero-title {
        font-size: 1.5rem;
    }

    .detail-hero-meta {
        justify-content: flex-start;
        gap: 0.75rem 1rem;
    }

    .detail-hero-meta span {
        font-size: 0.82rem;
        background: #f1f5f9;
        padding: 0.3rem 0.6rem;
        border-radius: 999px;
    }

    .detail-content-section {
        padding: 2rem 0;
        background: #ffffff;
    }

    .detail-content-card {
        border-radius: 16px;
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    }

    .detail-cover {
        height: 220px;
    }

    .detail-body {
        padding: 1.3rem;
    }

    .detail-tags {
        margin-bottom: 1.2rem;
        padding-bottom: 1rem;
        gap: 0.4rem;
    }

    #detailContent {
        font-size: 0.95rem;
        line-height: 1.75;
    }

    .detail-paragraph {
        margin-bottom: 1rem;
        text-indent: 1.5em;
    }

    #detailContent h2,
    #detailContent h3 {
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
        font-size: 1.1rem;
        padding-left: 0.75rem;
    }

    #detailContent blockquote {
        padding: 1rem 1.25rem;
        margin: 1.25rem 0;
    }

    .detail-actions {
        margin-top: 1.5rem;
        padding-top: 1.25rem;
        gap: 0.75rem;
        flex-direction: column;
        align-items: stretch;
    }

    .detail-back,
    .article-detail-readmore {
        justify-content: center;
    }

    .recommend-section {
        padding: 2.5rem 0;
        background: #ffffff;
    }

    .recommend-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .recommend-title {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    .recommend-card {
        border-radius: 16px;
    }

    .recommend-card img {
        height: 180px;
    }

    .recommend-card-body {
        padding: 1.1rem;
    }

    .recommend-card-title {
        font-size: 1rem;
    }

    .recommend-card-excerpt {
        font-size: 0.85rem;
    }
}


@media (max-width: 576px) {
    .article-category-badge {
        font-size: 0.72rem;
        padding: 5px 12px;
    }

    .article-detail-image {
        height: 185px;
    }

    .article-detail-content {
        padding: 1rem 1.1rem;
    }

    .article-detail-title {
        font-size: 1.02rem;
    }

    .article-detail-excerpt {
        font-size: 0.82rem;
        -webkit-line-clamp: 2;
    }

    .detail-hero {
        padding: 4.25rem 0 1.75rem;
    }

    .detail-hero-meta span {
        font-size: 0.78rem;
    }

    .detail-cover {
        height: 190px;
    }

    .detail-body {
        padding: 1.1rem;
    }

    #detailContent {
        font-size: 0.92rem;
    }

    .detail-paragraph {
        text-indent: 1.25em;
    }

    .recommend-card img {
        height: 170px;
    }

    .article-detail-readmore {
        padding: 0.6rem 1rem;
        font-size: 0.82rem;
    }
}


/* ========================================
   动画效果
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-detail-card {
    animation: fadeInUp 0.6s ease-out;
}

.article-detail-card:nth-child(1) { animation-delay: 0.1s; }
.article-detail-card:nth-child(2) { animation-delay: 0.2s; }
.article-detail-card:nth-child(3) { animation-delay: 0.3s; }
.article-detail-card:nth-child(4) { animation-delay: 0.4s; }
.article-detail-card:nth-child(5) { animation-delay: 0.5s; }
.article-detail-card:nth-child(6) { animation-delay: 0.6s; }

/* ========================================
   空状态样式
   ======================================== */

.empty-state {
    padding: 4rem 2rem;
    text-align: center;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin: 2rem auto;
    max-width: 500px;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.empty-state h4 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.empty-state p {
    font-size: 1rem;
    color: var(--text-gray);
}

/* ========================================
   加载状态
   ======================================== */

.loading-skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-gray) 0%,
        #e0e0e0 50%,
        var(--bg-gray) 100%
    );
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========================================
   打印样式优化
   ======================================== */

@media print {
    .detail-hero,
    .detail-actions,
    .recommend-section {
        display: none;
    }
    
    .detail-content-card {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
    
    .detail-cover {
        height: auto;
        max-height: 400px;
    }
}
