/* ===== 清爽白色主题 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #3b82f6;
    --primary-light: #60a5fa;
    --primary-soft: #eff6ff;
    --text-main: #1e293b;
    --text-light: #64748b;
    --border: #eef2f6;
    --bg-white: #ffffff;
    --bg-gray: #f8fafc;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
}

html {
    font-size: 62.5%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--text-main);
    background: var(--bg-gray);
}

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

/* ===== 布局 ===== */
.layout {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
}

/* ===== 左侧边栏 ===== */
.sidebar {
    position: sticky;
    top: 0;
    width: 260px;
    height: 100vh;
    background: var(--bg-white);
    border-right: 1px solid var(--border);
    padding: 30px 20px;
    overflow-y: auto;
    flex-shrink: 0;
}

/* PC端翻译按钮区域 */
.pc-language-icon {
    position: relative;
    margin-bottom: 18px;
    display: flex;
    justify-content: flex-end;
}

.language-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 1px solid var(--border);
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.language-icon-btn:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary);
}

/* PC弹窗 - 靠右紧贴按钮 */
.pc-language-popup {
    position: absolute;
    top: 42px;
    right: 0;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    padding: 8px;
    z-index: 1000;
    display: none;
    min-width: 130px;
    border: 1px solid var(--border);
}

.pc-language-popup.active {
    display: block;
    animation: fadeIn 0.15s ease;
}

.language-switcher {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.language-switcher button {
    background: transparent;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 1.3rem;
    cursor: pointer;
    text-align: left;
    color: var(--text-main);
    transition: all 0.15s;
}

.language-switcher button.active {
    background: var(--primary);
    color: white;
}

.language-switcher button:hover:not(.active) {
    background: var(--bg-gray);
}

.more-languages-btn {
    background: var(--primary-soft) !important;
    color: var(--primary) !important;
    text-align: center !important;
    margin-top: 4px;
}

/* ===== 关键修复：fanyi.js 生成的完整语言弹窗样式 ===== */
.full-language-popup {
    background: white;
    border-radius: 16px;
    padding: 20px;
    max-width: 560px;
    width: 100%;
    max-height: 70vh;
    overflow-y: auto;
}

.full-language-popup h4 {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-main);
}

.full-language-popup .language-group {
    margin-bottom: 20px;
}

.full-language-popup .group-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 3px solid var(--primary);
}

.full-language-popup .language-list {
    max-height: none;
}

.full-language-popup .language-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.full-language-popup .language-item {
    padding: 8px 6px;
    margin-top: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-align: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.15s;
    background: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.full-language-popup .language-item:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
}

.full-language-popup .language-item.active {
    background: var(--primary);
    color: white;
}

/* 修复layer弹窗位置 */
.layui-layer {
    border-radius: 16px !important;
    overflow: hidden !important;
}

.layui-layer-page .layui-layer-content {
    overflow-y: auto !important;
    padding: 0 !important;
}

.layui-layer-iframe {
    overflow: hidden !important;
}

/* PC端layer弹窗样式修复 */
@media screen and (min-width: 769px) {
    .layui-layer {
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin: 0 auto !important;
        left: 0 !important;
        right: 0 !important;
    }
    .layui-layer-page {
        width: 560px !important;
        max-width: 90vw !important;
    }
    .full-language-popup .language-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 移动端layer弹窗样式修复 */
@media screen and (max-width: 768px) {
    .layui-layer {
        width: 92% !important;
        max-width: 400px !important;
        left: 4% !important;
        right: 4% !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin: 0 !important;
        border-radius: 20px !important;
    }
    .layui-layer-page {
        width: 92% !important;
    }
    .layui-layer-content {
        max-height: 70vh !important;
        overflow-y: auto !important;
    }
    .full-language-popup {
        padding: 16px;
        max-height: none;
    }
    .full-language-popup .language-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .full-language-popup .language-item {
        padding: 10px 6px;
        margin-top: 10px;
        font-size: 1.3rem;
        white-space: normal;
        word-break: keep-all;
    }
    .full-language-popup .group-title {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }
    .full-language-popup h4 {
        font-size: 1.7rem;
        margin-bottom: 12px;
    }
}

.logo-area {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.logo-icon {
    font-size: 44px;
    color: var(--primary);
    margin-bottom: 5px;
}

.site-name {
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.site-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: 5px;
}

/* ===== 导航分类 - 弹性网格布局 ===== */
.category-section {
    margin-top: 10px;
}

.category-section h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 14px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

/* 关键：使用flex网格布局，自动换行，每个项目最小宽度自适应 */
.category-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.category-list li {
    /* 让每个项目根据内容自动伸缩，最小宽度80px，最大宽度自动 */
    flex: 1 0 auto;
    min-width: 80px;
    max-width: 100%;
}

.category-list a {
    display: block;
    padding: 8px 12px;
    color: var(--text-light);
    font-size: 1.3rem;
    border-radius: 24px;
    background: var(--bg-gray);
    text-align: center;
    transition: all 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 当文字太长时，允许换行并调整 */
.category-list a:hover {
    color: var(--primary);
    background: var(--primary-soft);
    transform: translateY(-1px);
}

.category-list a.active,
#wapfl a.active {
    background: #4a90d9 !important;
    color: #fff !important;
    padding-left: 12px;
}

/* 针对长文本：如果宽度不够，允许换行 */
@media screen and (max-width: 768px) {
    .category-list a {
        white-space: normal;
        word-break: keep-all;
        line-height: 1.4;
    }
}

/* 桌面端：控制每行最多2-3个分类 */
@media screen and (min-width: 768px) {
    .category-list li {
        flex: 0 0 auto;
        width: calc(50% - 4px);
    }
    
    /* 让短文本的项宽度自适应，不强制占满 */
    .category-list {
        gap: 8px;
    }
}

/* 更好的弹性布局：根据内容长度自动调整 */
@media screen and (min-width: 1024px) {
    .category-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(110px, auto));
    }
    
    .category-list li {
        width: auto;
        flex: none;
    }
    
    .category-list a {
        text-align: center;
        padding: 8px 14px;
    }
}

/* ===== 右侧内容 ===== */
.main-content {
    flex: 1;
    padding: 30px 35px;
}

/* ===== 文章内页 - 修复左侧对齐 ===== */
.article-page {
    flex: 1;
    padding: 30px 35px;
    background: transparent;
}

/* 文章内容区域统一背景白色，圆角 */
.article-breadcrumb,
.article-title-area,
.article-author,
.article-content,
.article-actions-bar,
.tags-area,
.related-area,
.comment-area {
    background: #fff;
}

/* 面包屑 */
.article-breadcrumb {
    padding: 14px 20px 8px 20px;
    font-size: 12px;
    color: #8b8b8b;
    border-bottom: 1px solid #eee;
    border-radius: 16px 16px 0 0;
}

.article-breadcrumb a {
    color: #666;
    text-decoration: none;
}

.article-breadcrumb a:hover {
    color: #3b82f6;
}

.article-breadcrumb .sep {
    margin: 0 6px;
    color: #ccc;
}

.article-breadcrumb .current {
    color: #333;
}

/* 文章标题区 */
.article-title-area {
    padding: 20px 20px 12px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.article-page .article-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    color: #1a1a1a;
    margin: 0 0 14px 0;
}

.article-info-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #999;
}

.article-cat {
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 20px;
    color: #3b82f6;
}

.article-date i,
.article-views i {
    margin-right: 3px;
}

.font-size-control {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.font-size-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.font-size-btn:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary);
}

/* 文章作者 */
.article-author {
    padding: 8px 20px;
    font-size: 13px;
    color: #666;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
}

.article-author i {
    margin-right: 5px;
    color: #3b82f6;
}

/* 文章正文 - 优化阅读体验 */
.article-content {
    padding: 24px 20px;
    font-size: 16px;
    line-height: 1.85;
    color: #333;
}

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

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.article-content blockquote {
    margin: 20px 0;
    padding: 12px 20px;
    border-left: 4px solid #3b82f6;
    background: #f8f8f8;
    font-style: italic;
    color: #555;
    border-radius: 0 8px 8px 0;
}

.article-content h1, 
.article-content h2, 
.article-content h3 {
    margin: 1.5em 0 0.8em 0;
    font-weight: 600;
}

.article-content h1 { font-size: 1.8em; }
.article-content h2 { font-size: 1.5em; }
.article-content h3 { font-size: 1.3em; }

.article-content ul, 
.article-content ol {
    margin: 1em 0;
    padding-left: 2em;
}

.article-content li {
    margin: 0.5em 0;
}

.article-source {
    margin-top: 24px;
    padding-top: 12px;
    border-top: 1px dashed #eee;
    font-size: 13px;
    color: #888;
    text-align: right;
}

/* 文章底部操作栏 */
.article-actions-bar {
    padding: 12px 20px;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
}

.action-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.action-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f8f8f8;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 13px;
    color: #555;
}

.action-item:hover {
    background: var(--primary-soft);
    transform: translateY(-1px);
}

.action-item i {
    font-size: 14px;
}

/* 点赞数量角标 */
.like-badge {
    position: absolute;
    top: -6px;
    left: 12px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 20px;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
    z-index: 1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.like-badge.hide {
    display: none;
}

.action-item.liked {
    background: #fee2e2;
    color: #ef4444;
}

.action-item.favorited {
    background: #fef3c7;
    color: #f59e0b;
}

/* 标签区域 */
.tags-area {
    padding: 12px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.ttag {
    display: inline-block;
    padding: 5px 14px;
    background: #f0f0f0;
    border-radius: 30px;
    font-size: 12px;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
}

.ttag i {
    margin-right: 4px;
    font-size: 10px;
}

.ttag:hover {
    background: #e0e7ff;
    color: #3b82f6;
    transform: translateY(-1px);
}

/* 版权和下载区域 */
.copyright-area {
    /*padding: 16px 20px;*/
    background: #fafafa;
    margin: 16px 20px;
    border-radius: 12px;
}

.copyright-text {
    font-size: 12px;
    color: #888;
    margin-bottom: 12px;
    line-height: 1.5;
}

.copyright-text i {
    margin-right: 6px;
    width: 16px;
}

.copyright-link {
    font-size: 11px;
    color: #999;
    word-break: break-all;
    margin-bottom: 12px;
}

.copyright-link a {
    color: #3b82f6;
}

.download-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 12px;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
}

.download-btn:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary);
}

/* 相关文章 */
.related-area {
    padding: 20px 20px 24px;
}

.related-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
    padding-left: 10px;
    border-left: 3px solid #3b82f6;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.related-item {
    display: block;
    padding: 14px;
    background: #fafafa;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.related-item:hover {
    background: var(--primary-soft);
    transform: translateX(4px);
}

.related-item h4 {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 6px 0;
}

.related-item p {
    font-size: 12px;
    color: #777;
    line-height: 1.5;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-meta {
    font-size: 11px;
    color: #999;
}

.related-meta i {
    margin-right: 3px;
}

/* 评论区域 */
.comment-area {
    padding: 16px 20px 24px;
}

/* ===== 分享弹窗 ===== */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.share-modal.show {
    display: flex;
}

.share-modal-content {
    background: #fff;
    border-radius: 20px;
    width: 95%;
    max-width: 480px;
    padding: 16px 16px 20px;
    position: relative;
    text-align: center;
}

.share-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 20px;
    cursor: pointer;
    color: #999;
}

.share-modal-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 14px;
    color: #333;
}

.share-platforms {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 4px 0 8px;
}

.share-platform {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 12px;
    flex-shrink: 0;
    min-width: 60px;
    transition: all 0.2s;
}

.share-platform i {
    font-size: 24px;
}

.share-platform span {
    font-size: 10px;
    color: #666;
}

.share-platform:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
}

/* 微信二维码弹窗 */
.wechat-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
}

.wechat-modal.show {
    display: flex;
}

.wechat-modal-content {
    background: #fff;
    border-radius: 20px;
    width: 280px;
    padding: 20px;
    text-align: center;
}

.wechat-qrcode {
    margin: 12px 0;
    text-align: center;
}

.wechat-qrcode img {
    width: 160px;
    height: 160px;
    border: 1px solid #eee;
}

.wechat-modal-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.wechat-modal-desc {
    font-size: 11px;
    color: #888;
    margin-bottom: 12px;
}

.wechat-close {
    margin-top: 12px;
    padding: 6px 18px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 12px;
    cursor: pointer;
}

/* ===== 移动端适配 ===== */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    z-index: 200;
    padding: 10px 16px;
}

.mobile-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-logo i {
    font-size: 1.8rem;
    color: var(--primary);
}

.mobile-logo span {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-main);
}

.mobile-nav-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-language-switcher {
    display: flex;
    gap: 4px;
    background: var(--bg-gray);
    border-radius: 30px;
    padding: 3px 6px;
}

.mobile-language-switcher button {
    background: transparent;
    border: none;
    padding: 5px 10px;
    border-radius: 24px;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.15s;
}

.mobile-language-switcher button.active {
    background: var(--primary);
    color: white;
}

.mobile-language-switcher .more-languages-btn {
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-toggle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary-soft);
    border: none;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-sidebar {
    position: fixed;
    top: 56px;
    left: -260px;
    width: 250px;
    height: calc(100vh - 56px);
    background: var(--bg-white);
    z-index: 199;
    transition: left 0.25s ease;
    overflow-y: auto;
    padding: 20px;
    border-right: 1px solid var(--border);
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.05);
}

.mobile-sidebar.active {
    left: 0;
}

.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 198;
    display: none;
}

.mobile-sidebar-overlay.active {
    display: block;
}

@media screen and (max-width: 768px) {
    .sidebar {
        display: none;
    }
    
    .mobile-header {
        display: block;
    }
    
    .main-content {
        padding: 76px 16px 20px;
    }
    
    .article-page {
        padding: 76px 16px 20px;
    }
    
    /* 移动端文章页内边距调整 */
    .article-breadcrumb,
    .article-title-area,
    .article-author,
    .article-content,
    .article-actions-bar,
    .tags-area,
    .comment-area {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    .copyright-area {
        margin-left: 16px !important;
        margin-right: 16px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    .related-area {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    .article-card {
        flex-direction: column;
        gap: 14px;
    }
    
    .article-img,
    .article-icon {
        width: 100%;
        height: 150px;
    }
    
    /* 移动端导航分类 */
    .category-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .category-list li {
        width: 100%;
    }
    
    .category-list a {
        white-space: normal;
        word-break: keep-all;
        padding: 8px 6px;
        font-size: 1.2rem;
    }
}

/* ===== 桌面端适配 ===== */
@media screen and (min-width: 768px) {
    .article-page .article-title {
        font-size: 28px;
    }
    
    .article-title-area {
        padding: 24px 28px 16px 20px;
    }
    
    .article-breadcrumb {
        padding: 16px 28px 10px 20px;
    }
    
    .article-content {
        padding: 28px 20px;
        font-size: 17px;
    }
    
    .action-icons {
        justify-content: flex-start;
        gap: 20px;
    }
    
    .action-item {
        flex-direction: row;
        padding: 8px 24px;
    }
    
    .action-item i {
        font-size: 16px;
    }
    
    .like-badge {
        top: -8px;
        left: 14px;
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .share-platforms {
        justify-content: center;
        gap: 20px;
    }
    
    .copyright-area {
        margin: 20px 20px;
    }
    
    .related-area {
        padding: 20px 20px 32px;
    }
    
    .related-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 列表页样式 */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-card {
    display: flex;
    gap: 20px;
    background: var(--bg-white);
    border-radius: 16px;
    padding: 18px;
    transition: all 0.2s;
    border: 1px solid var(--border);
}

.article-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-soft);
    transform: translateY(-2px);
}

.article-img {
    /*width: 110px;*/
    height: 110px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-gray);
}

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

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

.article-icon {
    width: 110px;
    height: 110px;
    border-radius: 12px;
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.article-icon i {
    font-size: 44px;
    color: var(--primary);
}

.article-info {
    flex: 1;
}

.article-list .article-title {
    font-size: 1.7rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.article-list .article-title a {
    color: var(--text-main);
}

.article-list .article-title a:hover {
    color: var(--primary);
}

.article-list .article-meta {
    display: flex;
    gap: 18px;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.article-excerpt {
    font-size: 1.3rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more {
    font-size: 1.2rem;
    color: var(--primary);
}

.views {
    font-size: 1.1rem;
    color: var(--text-light);
}

.footer {
    margin-top: 45px;
    padding: 22px 0 15px;
    text-align: center;
    border-top: 1px solid var(--border);
    font-size: 1.1rem;
    color: var(--text-light);
}

.footer p {
    margin: 4px 0;
}

.page-header {
    margin-bottom: 28px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.page-header p {
    font-size: 1.3rem;
    color: var(--text-light);
}

/* 小屏手机 */
@media screen and (max-width: 400px) {
    .action-item {
        padding: 6px 12px;
        min-width: 55px;
    }
    
    .action-item i {
        font-size: 18px;
    }
    
    .action-item span:not(.like-badge) {
        font-size: 10px;
    }
    
    .article-page .article-title {
        font-size: 20px;
    }
    
    .like-badge {
        top: 0px;
        left: 6px;
        font-size: 8px;
        padding: 1px 4px;
    }
}