﻿/* ====== 全局样式重置与基础设置 ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2a6b5e;
    --primary-light: #3a8b7e;
    --secondary-color: #e9a43d;
    --text-dark: #333333;
    --text-light: #666666;
    --text-lighter: #888888;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #eaeaea;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
    --radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.line-clamp-1 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.line-clamp-4 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

/* ====== 固定导航栏 ====== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius);
}

.nav-cta:hover {
    background-color: #d8942a;
    color: white;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ====== 返回顶部按钮 ====== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* ====== 内容区域通用样式 ====== */
main {
    margin-top: 80px;
}

.section {
    padding: 4rem 0;
}

.section-alt {
    background-color: var(--bg-white);
}

/* ====== 首页特有样式 ====== */

/* 头条新闻区 */
.featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.featured-img {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.featured-content h1 {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.featured-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-lighter);
    font-size: 0.9rem;
}

.featured-category {
    background-color: var(--primary-light);
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* 内容卡片 */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.article-card {
    background-color: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-img {
    aspect-ratio: 4 / 3;
    width: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .card-img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
}

.card-category {
    display: inline-block;
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
}

.card-title {
    font-size: 1.3rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-desc {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-lighter);
    font-size: 0.85rem;
}

/* 分类区块 */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-card {
    background-color: var(--bg-white);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.category-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.category-count {
    color: var(--text-lighter);
    font-size: 0.9rem;
}

/* 热门标签 */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.tag {
    background-color: var(--bg-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

/* 特色推荐 */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.featured-item {
    background-color: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.featured-item img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

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

.featured-item-content {
    padding: 1.5rem;
}

/* 搜索功能 */
.search-section {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    box-shadow: var(--shadow);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.search-btn:hover {
    background-color: #d8942a;
}

.popular-searches {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.popular-search {
    color: white;
    opacity: 0.9;
    font-size: 0.9rem;
}

.popular-search:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ====== 列表页和详情页共用样式 ====== */

/* 面包屑导航 */
.breadcrumb {
    background-color: var(--bg-white);
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.breadcrumb-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 0.95rem;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: var(--text-lighter);
}

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

/* 两列布局容器 */
.detail-main,
.list-main {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

/* 侧边栏通用样式 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.sidebar-widget {
    background-color: var(--bg-white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 0.5rem;
}

.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

/* 相关推荐 */
.recommended-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recommended-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.recommended-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recommended-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.recommended-content h4 {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.3rem;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommended-meta {
    color: var(--text-lighter);
    font-size: 0.8rem;
}

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

.tag-cloud a {
    background-color: var(--bg-light);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.tag-cloud a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 分类统计 */
.category-stats {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.category-stat-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-color);
}

.category-stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.category-stat-name {
    color: var(--text-dark);
}

.category-stat-count {
    background-color: var(--primary-light);
    color: white;
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* ====== 列表页特有样式 ====== */

/* 文章列表 */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.list-article-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    background-color: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.list-article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.list-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.list-article-card:hover .list-card-img {
    transform: scale(1.05);
}

.list-card-content {
    padding: 1.5rem 1.5rem 1.5rem 0;
}

.list-card-category {
    display: inline-block;
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
}

.list-card-title {
    font-size: 1.4rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-card-desc {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-card-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-lighter);
    font-size: 0.85rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background-color: var(--bg-white);
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.pagination-item:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.pagination-item.active {
    background-color: var(--primary-color);
    color: white;
}

.pagination-prev,
.pagination-next {
    width: auto;
    padding: 0 1rem;
}

/* ====== 详情页特有样式 ====== */

/* 文章详情 */
.article-detail {
    background-color: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    padding: 2.5rem;
}

.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.article-category {
    display: inline-block;
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.article-title {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.article-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--text-lighter);
    font-size: 0.9rem;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 文章正文 */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.article-content h2 {
    font-size: 1.6rem;
    margin: 2.5rem 0 1rem;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 0.5rem;
}

.article-content h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.article-content h3 {
    font-size: 1.3rem;
    margin: 2rem 0 0.8rem;
    color: var(--text-dark);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-light);
}

.article-image {
    margin: 2rem 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.article-image figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-lighter);
    padding: 0.8rem;
    background-color: var(--bg-light);
}

/* 标签和信息 */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 2.5rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.article-tag {
    background-color: var(--bg-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.article-info {
    display: flex;
    justify-content: space-between;
    color: var(--text-lighter);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* 分享按钮 */
.share-section {
    margin: 2.5rem 0;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: var(--radius);
}

.share-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background-color: var(--bg-white);
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.share-facebook {
    color: #1877F2;
}

.share-twitter {
    color: #1DA1F2;
}

.share-line {
    color: #00B900;
}

/* 评论区域 */
.comments-section {
    margin: 3rem 0;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 0.5rem;
}

.comments-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.comment-form {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

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

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(42, 107, 94, 0.1);
}

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

/* 相关推荐 */
.related-articles {
    margin: 3rem 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.related-card {
    background-color: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.related-img {
    height: 180px;
    width: 100%;
    object-fit: cover;
}

.related-content {
    padding: 1.2rem;
}

.related-title {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-meta {
    color: var(--text-lighter);
    font-size: 0.85rem;
}

/* 作者信息 */
.author-info {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: var(--radius);
    margin-top: 2rem;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-details h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: var(--text-dark);
}

.author-details p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ====== 页脚 ====== */
footer {
    background-color: #2a2a2a;
    color: #ddd;
    padding: 4rem 0 2rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    margin-top: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 0.9rem;
}

.newsletter-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0 1.2rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-btn:hover {
    background-color: #d8942a;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 0.9rem;
}

/*author*/
.author-info {
    display: flex;
    gap: 10px;
    padding: 10px;
    margin: 10px 0;
    background: #dff0f8;
    border-radius: 20px;

}

.author-info img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    overflow: clip;
    margin: 0;
}

.author-name {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

/* ====== 响应式设计 ====== */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 1024px) {
    .featured-article {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .detail-main,
    .list-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .list-article-card {
        grid-template-columns: 240px 1fr;
    }

    .article-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .author-info {
        flex-direction: column;
        align-items: center;
    }

    .author-name {
        text-align: center;
    }

    .navbar {
        position: relative;
        padding: 5px 0;
    }

    main {
        margin-top: 0;

    }

    .nav-menu {
        position: fixed;
        top: 56px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background-color: white;
        padding: 2rem;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .section-title {
        font-size: 1.5rem;
    }

    .featured-content h1 {
        font-size: 1.8rem;
    }

    .section {
        padding: 3rem 0;
    }

    .list-article-card {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .list-card-img {
        height: 200px;
    }

    .list-card-content {
        padding: 1.5rem;
    }

    .article-detail {
        padding: 1.5rem;
    }

    .article-title {
        font-size: 1.7rem;
    }

    .article-subtitle {
        font-size: 1.1rem;
    }

    .article-content {
        font-size: 1rem;
    }

    .article-content h2 {
        font-size: 1.4rem;
    }

    .article-content h3 {
        font-size: 1.2rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .author-info {
        flex-direction: column;
        text-align: center;
    }

    .breadcrumb {
        margin-bottom: 0;
        padding: 10px 0;
    }

    .pagination {
        display: block;
        overflow: hidden;
    }

    .pagination li {
        margin: 5px;
        float: left;
    }

    footer {
        margin-top: 0;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .breadcrumb-item {
        font-size: 0.85rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .categories {
        grid-template-columns: 1fr 1fr;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.8rem;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        justify-content: center;
    }

    .sidebar {
        gap: 2rem;
    }


    .pagination-item {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .pagination-prev,
    .pagination-next {
        width: auto;
        padding: 0 0.8rem;
        font-size: 0.9rem;
    }

}

@media (max-width: 400px) {
    .categories {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 2rem 0;
    }

    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}