/**
 * JustNews Theme Style - 1:1 复刻版
 * 主色调: #2563eb (蓝色)
 * 辅助色: #f97316 (橙色)
 */

/* ==================== 基础重置 ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #2563eb;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

ul, ol {
    list-style: none;
}

/* ==================== 容器 ==================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 主内容区 */
.main-section {
    padding-top: 20px;
}

.main-wrapper {
    display: flex;
    gap: 20px;
    padding: 20px 0;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* ==================== 顶部导航 ==================== */
.header {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    height: 60px;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 36px;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: #2563eb;
    margin-left: 8px;
}

/* 主导航 - JustNews 1:1 复刻 */
.main-nav {
    display: flex;
    align-items: center;
    flex: 1;
    height: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav > li {
    position: relative;
    height: 60px;
    display: flex;
    align-items: center;
}

.main-nav > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 18px;
    height: 60px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    transition: color 0.2s ease;
    position: relative;
}

/* 下拉箭头图标 */
.main-nav > li > a .arr {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #999;
    margin-left: 3px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.main-nav > li:hover > a .arr {
    border-top-color: #2563eb;
    transform: rotate(180deg);
}

/* 导航hover和active效果 */
.main-nav > li > a:hover,
.main-nav > li.active > a,
.main-nav > li.current > a {
    color: #2563eb;
}

/* 导航底部指示线 */
.main-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 3px;
    background: #2563eb;
    border-radius: 3px 3px 0 0;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.main-nav > li:hover > a::after,
.main-nav > li.active > a::after,
.main-nav > li.current > a::after {
    transform: scaleX(1);
}

/* 下拉菜单 - JustNews 风格 */
.main-nav > li > .sub {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    z-index: 1001;
}

.main-nav > li:hover > .sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav > li > .sub a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: #555;
    transition: all 0.15s ease;
    position: relative;
}

.main-nav > li > .sub a:hover {
    background: linear-gradient(90deg, rgba(37,99,235,0.08), transparent);
    color: #2563eb;
    padding-left: 25px;
}

/* 子菜单项左侧hover指示条 */
.main-nav > li > .sub a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: #2563eb;
    border-radius: 0 2px 2px 0;
    transition: height 0.15s ease;
}

.main-nav > li > .sub a:hover::before {
    height: 20px;
}

/* 首页链接样式 */
.main-nav > li.home > a {
    font-weight: 600;
}

/* 头部右侧 */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-search {
    position: relative;
    flex-shrink: 0;
}

.header-search input {
    width: 200px;
    height: 36px;
    padding: 0 36px 0 14px;
    border: 1px solid #e5e5e5;
    border-radius: 18px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.header-search input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.header-search button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #999;
    cursor: pointer;
}

.header-search button:hover {
    color: #2563eb;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
}

.btn-primary:hover {
    background: #1d4ed8;
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1px solid #e5e5e5;
    color: #666;
}

.btn-outline:hover {
    border-color: #2563eb;
    color: #2563eb;
}

/* ==================== 首页轮播/幻灯片 ==================== */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 0;
    margin-bottom: 20px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.hero-main {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 360px;
}

.hero-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-main .hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
}

.hero-main .hero-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.hero-main .hero-meta {
    font-size: 13px;
    opacity: 0.8;
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-side-item {
    flex: 1;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.hero-side-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-side-item .hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
}

.hero-side-item .hero-title {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

/* ==================== 快讯条 ==================== */
.news-ticker {
    background: #fff;
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.news-ticker-label {
    background: #f97316;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    margin-right: 15px;
    white-space: nowrap;
}

.news-ticker-content {
    flex: 1;
    overflow: hidden;
}

.news-ticker-list {
    display: flex;
    gap: 30px;
    animation: ticker 20s linear infinite;
}

.news-ticker-item {
    white-space: nowrap;
    font-size: 14px;
}

.news-ticker-item a:hover {
    color: #2563eb;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==================== 分类标签页 ==================== */
.category-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
}

.category-tabs a {
    padding: 8px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    border-radius: 20px;
    transition: all 0.2s;
}

.category-tabs a:hover,
.category-tabs a.active {
    background: #2563eb;
    color: #fff;
}

/* ==================== 文章卡片 ==================== */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.article-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* 横向布局卡片 - 固定高度 */
.article-card.horizontal {
    display: flex;
    height: 180px;
}

.article-card.horizontal .article-thumb {
    width: 280px;
    height: 180px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-card.horizontal .article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card.horizontal .article-thumb img[src*="nopic.svg"] {
    object-fit: contain;
}

.article-card.horizontal .article-info {
    flex: 1;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 网格布局卡片 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.article-card.vertical .article-thumb {
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-card.vertical .article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card.vertical .article-thumb img[src*="nopic.svg"] {
    object-fit: contain;
}

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

.article-card.vertical .article-info {
    padding: 16px;
}

/* 文章信息 */
.article-category {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 500;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 4px;
    margin-bottom: 10px;
}

.article-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

h2.article-title {
    font-size: 18px;
}

h3.article-title {
    font-size: 16px;
}

.article-card.vertical .article-title {
    font-size: 15px;
}

.article-title a:hover {
    color: #2563eb;
}

.article-category-tag {
    margin-bottom: 8px;
}

.article-category-tag .category-link {
    display: inline-block;
    font-size: 12px;
    color: #2563eb;
    background: #eff6ff;
    padding: 2px 8px;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.2s;
}

.article-category-tag .category-link:hover {
    background: #2563eb;
    color: #fff;
}

.article-category-tag .tag-link {
    display: inline-block;
    font-size: 12px;
    color: #666;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 3px;
    text-decoration: none;
    margin-left: 5px;
    transition: all 0.2s;
}

.article-category-tag .tag-link:hover {
    background: #6b7280;
    color: #fff;
}

.article-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #999;
    margin-top: auto;
}

.article-meta .author {
    color: #666;
}

.article-meta .date {
    color: #999;
}

.article-meta .views {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.article-meta .views svg {
    opacity: 0.6;
}

/* 置顶标签 */
.article-card.sticky {
    border: 2px solid #2563eb;
}

.article-card.sticky .sticky-tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, #3ca5f6, #a86af9);
    border-radius: 3px;
    margin-right: 8px;
}

/* ==================== 侧边栏 ==================== */
.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}

.widget-header {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.widget-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: #2563eb;
    border-radius: 2px;
}

.widget-tabs {
    display: flex;
    gap: 4px;
}

.widget-tabs a {
    padding: 4px 12px;
    font-size: 13px;
    color: #666;
    border-radius: 4px;
}

.widget-tabs a:hover,
.widget-tabs a.active {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
}

.widget-body {
    padding: 15px 20px;
}

/* 热门文章列表 - 单行固定高度 */
.hot-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hot-item {
    display: flex;
    gap: 10px;
    align-items: center;
    height: 22px;
}

.hot-item .rank {
    width: 20px;
    height: 20px;
    background: #e5e5e5;
    color: #666;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hot-item:nth-child(1) .rank { background: #f97316; color: #fff; }
.hot-item:nth-child(2) .rank { background: #fb923c; color: #fff; }
.hot-item:nth-child(3) .rank { background: #fdba74; color: #fff; }

.hot-item a {
    flex: 1;
    font-size: 14px;
    line-height: 22px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hot-item a:hover {
    color: #2563eb;
}

/* 带缩略图的列表 */
.thumb-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.thumb-item {
    display: flex;
    gap: 12px;
}

.thumb-item .thumb {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.thumb-item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-item .info {
    flex: 1;
    min-width: 0;
}

.thumb-item .title {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.thumb-item .title:hover {
    color: #2563eb;
}

.thumb-item .meta {
    font-size: 12px;
    color: #999;
}

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

.tag-cloud a {
    padding: 6px 14px;
    font-size: 13px;
    color: #666;
    background: #f5f5f5;
    border-radius: 4px;
    transition: all 0.2s;
}

.tag-cloud a:hover {
    background: #2563eb;
    color: #fff;
}

/* ==================== 分页 ==================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 30px 0;
}

.pagination a,
.pagination span {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
    background: #fff;
    border-radius: 6px;
    transition: all 0.2s;
}

.pagination a:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
}

.pagination .current {
    background: #2563eb;
    color: #fff;
}

.pagination .disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* ==================== 面包屑导航 ==================== */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.breadcrumb-nav a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    transition: color 0.2s;
}

.breadcrumb-nav a:hover {
    color: #2563eb;
}

.breadcrumb-nav .sep {
    color: #ccc;
    display: flex;
    align-items: center;
}

.breadcrumb-nav .current {
    color: #333;
    font-weight: 500;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 旧版面包屑兼容 */
.breadcrumb {
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #2563eb;
}

.breadcrumb span {
    color: #999;
    margin: 0 8px;
}

.breadcrumb .current {
    color: #333;
}

/* ==================== 文章详情页 ==================== */
.article-detail {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
}

.article-header {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.article-header .title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.article-header .meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.article-header .meta .author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-header .meta .author img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.article-header .meta .author-info {
    display: flex;
    flex-direction: column;
}

.article-header .meta .author-name {
    font-weight: 500;
    color: #333;
}

.article-header .meta .publish-time {
    font-size: 13px;
    color: #999;
}

.article-header .meta .stats {
    display: flex;
    gap: 15px;
    margin-left: auto;
}

.article-header .meta .stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 文章内容 */
.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

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

.article-content h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 2em 0 1em;
    padding-left: 15px;
    border-left: 4px solid #2563eb;
}

.article-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 1.5em 0 0.8em;
}

.article-content img {
    border-radius: 8px;
    margin: 1.5em 0;
}

.article-content blockquote {
    padding: 20px 25px;
    margin: 1.5em 0;
    background: #f8f9fa;
    border-left: 4px solid #2563eb;
    border-radius: 0 8px 8px 0;
    color: #555;
}

.article-content pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5em 0;
}

.article-content code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
}

.article-content pre code {
    background: transparent;
    padding: 0;
}

.article-content a {
    color: #2563eb;
}

.article-content a:hover {
    text-decoration: underline;
}

/* 文章标签 */
.article-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.article-tags .label {
    font-size: 14px;
    color: #666;
}

.article-tags a {
    padding: 5px 12px;
    font-size: 13px;
    color: #666;
    background: #f5f5f5;
    border-radius: 4px;
}

.article-tags a:hover {
    background: #2563eb;
    color: #fff;
}

/* 相关文章 */
.related-articles {
    margin-top: 40px;
}

.related-articles .section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-articles .section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #2563eb;
    border-radius: 2px;
}

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

.related-item {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.related-item .thumb {
    height: 120px;
    overflow: hidden;
}

.related-item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-item:hover .thumb img {
    transform: scale(1.05);
}

.related-item .info {
    padding: 12px;
}

.related-item .title {
    font-size: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-item .title:hover {
    color: #2563eb;
}

/* ==================== 页脚 ==================== */
.footer {
    background: #1a1a2e;
    color: #fff;
    padding: 50px 0 0;
    margin-top: 40px;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-brand .desc {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.2s;
}

.footer-social a:hover {
    background: #2563eb;
}

.footer-nav h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.footer-nav a:hover {
    color: #fff;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.footer-bottom a {
    color: rgba(255,255,255,0.7);
}

.footer-bottom a:hover {
    color: #fff;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1024px) {
    .sidebar {
        display: none;
    }

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

    .hero-side {
        flex-direction: row;
    }

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

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: 54px;
    }

    .main-nav {
        display: none;
    }

    .header-search {
        display: none;
    }

    .hero-section {
        padding: 20px 0;
    }

    .hero-main {
        height: 240px;
    }

    .hero-side {
        display: none;
    }

    .article-card.horizontal {
        flex-direction: column;
    }

    .article-card.horizontal .article-thumb {
        width: 100%;
        height: 180px;
    }

    .article-detail {
        padding: 20px;
    }

    .article-header .title {
        font-size: 22px;
    }

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

    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ==================== 工具类 ==================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none; }

/* 加载动画 */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.loading::after {
    content: '';
    width: 30px;
    height: 30px;
    border: 3px solid #f0f0f0;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
