/**
 * 商家助手CMS样式文件
 * 完全仿照商家助手网站设计
 * 支持日间/夜间模式切换
 */

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 移除所有元素的默认outline */
*,
*:focus,
*:active,
*:hover {
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

/* 禁用UI元素的文本选择 */
.navbar,
.nav-menu,
.nav-link,
.mobile-menu-toggle,
.theme-toggle,
.search-btn,
.btn,
button,
.sidebar,
.footer,
.brand-link,
.dropdown-menu {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* 确保内容区域可以选择文本 */
.main-content,
.post-content,
.article-content,
.latest-article-content,
.post-title,
.post-excerpt,
.post-body,
.post-meta,
.post-description,
.article-title,
.article-excerpt,
p,
h1, h2, h3, h4, h5, h6,
.content,
.text-content,
input,
textarea,
.selectable {
    -webkit-user-select: text !important;
    -khtml-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: all 0.3s ease;
}

.bancontainer {
    max-width: 1280px;
    margin: 0px auto;
    padding: 0 20px;
}

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

/* 顶部导航 */
.site-header {
    background: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    padding: 15px 0;
}

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

.nav-brand .brand-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    margin: 0 15px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 0;
    transition: all 0.3s ease;
    position: relative;
}

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

/* 激活状态的导航链接 - 统一全站样式 */
.nav-item.active .nav-link {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
}

.nav-item.active .nav-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

/* 下拉菜单 */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-color);
    box-shadow: var(--shadow);
    border-radius: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 200;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: var(--bg-secondary);
    color: var(--primary-color);
}

/* 下拉菜单中的激活项 */
.dropdown-menu li.active a {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
}

.dropdown-menu li.active a:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* 导航工具 */
.nav-tools {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
}

.search-form {
    position: relative;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border-radius: 25px;
    padding: 0;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    overflow: hidden;
}

.search-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(54, 101, 249, 0.1);
}

.search-input {
    border: none;
    background: transparent;
    color: var(--text-color);
    font-size: 14px;
    width: 200px;
    outline: none;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    cursor: pointer;
    padding: 10px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
}

.search-btn:hover {
    background: var(--secondary-color);
    transform: translateX(-2px);
}

/* 主题切换按钮 */
.theme-toggle {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-color);
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 50%;
    transform: scale(0.8);
}

.theme-icon {
    font-size: 18px;
    color: var(--text-color);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

/* 首页横幅广告区域样式 - 完全仿照参考网站 */
.hero-section {
    background: linear-gradient(115deg, #f8f9fa 50%, #e9ecef 50%);
    padding: 40px 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.hero-container {
    display: flex;
    align-items: stretch;
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-ad-area {
    padding: 40px;
    background: transparent;
    border-radius: 8px;
    color: #333;
    position: relative;
}

.ad-label-container {
    margin-bottom: 20px;
}

.ad-label {
    background:#e0e0e0;
    color: #999;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    display: inline-block;
}

.hero-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.hero-title span {
    color: #3665f9;
}

.hero-subtitle {
    font-size: 20px;
    color: #3665f9;
    margin: 0 0 15px 0;
    font-weight: 500;
}

.hero-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.hero-buttons {
    margin-top: 20px;
}

.hero-section .btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.hero-section .btn-primary {
    background: #3665f9;
    color: white;
}

.hero-section .btn-primary:hover {
    background: #2451f5;
    color: white;
    text-decoration: none;
}

.btn-icon {
    margin-left: 5px;
    font-size: 12px;
}

.hero-slider {
    flex: 0 0 50%;
    position: relative;
    display: flex;
    align-items: center;
}

.carousel-container {
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    max-width: 600px;
    height: 280px;
    position: relative;
    background-color: #000;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
}

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

.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    color: white;
    padding: 20px;
}

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

.carousel-meta {
    font-size: 12px;
    opacity: 0.8;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-dot.active {
    background: white;
}

.theme-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(54, 101, 249, 0.25);
    border-color: var(--primary-color);
}

.theme-toggle:hover::before {
    opacity: 1;
    transform: scale(1);
}

.theme-toggle:hover .theme-icon {
    color: white;
    transform: rotate(15deg);
}

.theme-icon {
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    color: var(--text-color);
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    justify-content: space-between;
}

.mobile-menu-toggle span {
    height: 2px;
    background: var(--text-color);
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* 广告区域 */
.ad-container {
    margin: 20px 0;
    text-align: center;
}

.featured-ad {
    background: linear-gradient(135deg, #007cba, #005a8a);
    color: white;
    padding: 40px 0;
    margin: 20px 0;
    border-radius: 12px;
}

.ad-box {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.ad-title {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: bold;
}

.ad-description {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.ad-details {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.highlight {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.ad-button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

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

/* 主要内容区域 */
.main-content {
    margin: 0px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-top: 20px;
    padding: 0 20px;
}

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

/* 分节标题 */
.section-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    position: relative;
}

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

/* 文章网格 */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 文章项目 */
.post-item {
    background: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.post-item.featured {
    border: 2px solid var(--primary-color);
}

.post-item.highlight {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

[data-theme="dark"] .post-item.highlight {
    background: linear-gradient(135deg, #2a2a2a, #3a3a3a);
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
    height: 180px;
}

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

.post-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.post-content {
    padding: 20px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
}

.post-category {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.post-category:hover {
    background: var(--secondary-color);
}

.post-date {
    color: var(--text-light);
}

.post-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.4;
}

.post-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.post-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
}

.post-views {
    color: var(--text-light);
}

.reading-time {
    color: var(--text-light);
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--secondary-color);
}

/* 加载更多 */
.load-more {
    text-align: center;
    margin: 40px 0;
}

.load-more-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* 侧边栏 */
.sidebar {
    min-width: 300px;
}

.widget {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.widget:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.widget-title {
    font-size: 18px !important;
    font-weight: bold !important;
    color: #333 !important;
    margin: 0 0 15px 0 !important;
    padding: 0 0 8px !important;
    border-bottom: 2px solid #4285f4 !important;
    position: relative !important;
    background: none !important;
}

/* 热门文章小部件 */
.popular-list {
    list-style: none;
}

.popular-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.popular-item:last-child {
    border-bottom: none;
}

.popular-rank {
    background: var(--primary-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.popular-content {
    flex: 1;
}

.popular-title {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    display: block;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.popular-title:hover {
    color: var(--primary-color);
}

.popular-meta {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    gap: 10px;
}

/* 分类小部件 */
.category-list {
    list-style: none;
}

.category-item {
    border-bottom: 1px solid var(--border-color);
}

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

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-link:hover {
    color: var(--primary-color);
}

.category-count {
    background: var(--bg-secondary);
    color: var(--text-light);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

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

.tag {
    display: inline-block;
    padding: 6px 12px;
    background: var(--bg-secondary);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 15px;
    font-size: 13px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* 友情链接 */
.link-list {
    list-style: none;
}

.link-list li {
    border-bottom: 1px solid var(--border-color);
}

.link-list li:last-child {
    border-bottom: none;
}

.link-list a {
    display: block;
    padding: 10px 0;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* 广告位招商 */
.ad-contact {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
    text-align: center;
}

.contact-box p {
    margin: 0;
    font-weight: bold;
}

/* 分页导航 */
.pagination-nav {
    margin: 40px 0;
    text-align: center;
}

.pagination {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.page-numbers {
    display: inline-block;
    padding: 10px 15px;
    color: var(--text-color);
    text-decoration: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 页脚 */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
    padding: 30px 0 20px;
}

/* 友情链接部分 */
.footer-links-section {
    text-align: center;
    margin-bottom: 20px;
}

.footer-links-section h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 15px;
}

.footer-links-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    line-height: 1.5;
}

.footer-links-grid a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    padding: 0 8px;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.footer-links-grid a:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: -1px;
    top: 0;
    color: var(--text-lighter);
    font-size: 14px;
}

.footer-links-grid a:hover {
    color: var(--primary-color);
}

/* 版权信息 */
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    text-align: center;
}

.copyright p {
    color: var(--text-light);
    font-size: 14px;
    margin: 0 0 8px 0;
}

.icp-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.icp-info span {
    color: var(--text-lighter);
    font-size: 12px;
    position: relative;
    padding: 0 8px;
    white-space: nowrap;
}

.icp-info span:not(:last-child)::after {
    content: "•";
    position: absolute;
    right: -1px;
    top: 0;
    color: var(--text-lighter);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(54, 101, 249, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.back-to-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 30px rgba(54, 101, 249, 0.4);
}

.back-to-top:hover::before {
    opacity: 1;
}

.back-to-top:active {
    transform: translateY(-3px) scale(0.98);
}

/* 夜间模式下的返回顶部按钮 */
[data-theme="dark"] .back-to-top {
    background: linear-gradient(135deg, #6c8cff 0%, #3665f9 100%);
    box-shadow: 0 4px 20px rgba(108, 140, 255, 0.3);
}

[data-theme="dark"] .back-to-top::before {
    background: linear-gradient(135deg, #3665f9 0%, #6c8cff 100%);
}

[data-theme="dark"] .back-to-top:hover {
    box-shadow: 0 8px 30px rgba(108, 140, 255, 0.4);
}

/* 首页夜间模式样式 */
[data-theme="dark"] body {
    background: #1a1a1a;
    color: #e0e0e0;
}

[data-theme="dark"] .site-header,
[data-theme="dark"] .navbar {
    background: #2a2a2a;
    border-bottom-color: #333;
}

[data-theme="dark"] .nav-brand .brand-text {
    color: #e0e0e0;
}

[data-theme="dark"] .nav-link {
    color: #b0b0b0;
}

[data-theme="dark"] .nav-link:hover {
    color: #6c8cff;
}

[data-theme="dark"] .nav-item.active .nav-link {
    color: #6c8cff;
}

[data-theme="dark"] .nav-item.active .nav-link::after {
    background: #6c8cff;
}

[data-theme="dark"] .dropdown-menu {
    background: #2a2a2a;
    border-color: #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .dropdown-menu a {
    color: #b0b0b0;
}

[data-theme="dark"] .dropdown-menu a:hover {
    background: #333;
    color: #6c8cff;
}

[data-theme="dark"] .dropdown-menu li.active > a {
    background: #6c8cff;
    color: white;
}

[data-theme="dark"] .search-input-wrapper {
    background: #333;
    border-color: #444;
}

[data-theme="dark"] .search-input {
    background: transparent;
    color: #e0e0e0;
    border-color: #444;
}

[data-theme="dark"] .search-input::placeholder {
    color: #888;
}

[data-theme="dark"] .search-btn {
    background: #6c8cff;
    color: white;
    border-color: #6c8cff;
}

[data-theme="dark"] .search-btn:hover {
    background: #5a7aff;
}

[data-theme="dark"] .hero-section {
    background: #1a1a1a;
}

[data-theme="dark"] .hero-ad-area {

    border-color: #444;
}

[data-theme="dark"] .hero-title {
    color: #e0e0e0;
}

[data-theme="dark"] .hero-subtitle {
    color: #b0b0b0;
}

[data-theme="dark"] .hero-description {
    color: #888;
}

[data-theme="dark"] .carousel-overlay {
    background: linear-gradient(to top, rgba(26, 26, 26, 0.8), transparent);
}

[data-theme="dark"] .carousel-title {
    color: #e0e0e0;
}

[data-theme="dark"] .carousel-meta {
    color: #b0b0b0;
}

[data-theme="dark"] .main-content {
    background: #1a1a1a;
}

[data-theme="dark"] .section-title {
    color: #e0e0e0;
}

[data-theme="dark"] .post-item {
    background: #2a2a2a;
    border-color: #333;
}

[data-theme="dark"] .post-item:hover {
    background: #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .post-category {
    background: #6c8cff;
    color: white;
}

[data-theme="dark"] .post-category:hover {
    background: #5a7aff;
}

[data-theme="dark"] .post-date {
    color: #888;
}

[data-theme="dark"] .post-title a {
    color: #e0e0e0;
}

[data-theme="dark"] .post-title a:hover {
    color: #6c8cff;
}

[data-theme="dark"] .post-excerpt {
    color: #b0b0b0;
}

[data-theme="dark"] .post-footer {
    border-top-color: #333;
}

[data-theme="dark"] .post-views,
[data-theme="dark"] .reading-time {
    color: #888;
}

[data-theme="dark"] .read-more {
    color: #6c8cff;
}

[data-theme="dark"] .read-more:hover {
    color: #5a7aff;
}

[data-theme="dark"] .load-more-btn {
    background: #6c8cff;
    color: white;
}

[data-theme="dark"] .load-more-btn:hover {
    background: #5a7aff;
}

[data-theme="dark"] .widget {
    background: #2a2a2a;
    border-color: #333;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .widget:hover {
    background: #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .widget-title {
    color: #e0e0e0 !important;
    border-bottom-color: #6c8cff !important;
}

[data-theme="dark"] .popular-rank {
    background: #6c8cff;
    color: white;
}

[data-theme="dark"] .popular-title {
    color: #e0e0e0;
}

[data-theme="dark"] .popular-title:hover {
    color: #6c8cff;
}

[data-theme="dark"] .popular-meta {
    color: #888;
}

[data-theme="dark"] .category-item {
    border-bottom-color: #333;
}

[data-theme="dark"] .category-link {
    color: #b0b0b0;
}

[data-theme="dark"] .category-link:hover {
    color: #6c8cff;
}

[data-theme="dark"] .category-count {
    background: #333;
    color: #b0b0b0;
}

[data-theme="dark"] .tag {
    background: #333;
    color: #b0b0b0;
    border-color: #444;
}

[data-theme="dark"] .tag:hover {
    background: #6c8cff;
    color: white;
    border-color: #6c8cff;
}

[data-theme="dark"] .link-list a {
    color: #b0b0b0;
}

[data-theme="dark"] .link-list a:hover {
    color: #6c8cff;
}

[data-theme="dark"] .ad-contact {
    background: #2a2a2a;
    border-color: #333;
}

[data-theme="dark"] .contact-box p {
    color: #b0b0b0;
}

[data-theme="dark"] .page-numbers {
    background: #2a2a2a;
    color: #b0b0b0;
    border-color: #333;
}

[data-theme="dark"] .page-numbers:hover,
[data-theme="dark"] .page-numbers.current {
    background: #6c8cff;
    color: white;
    border-color: #6c8cff;
}

[data-theme="dark"] .site-footer {
    background: #1a1a1a;
    border-top-color: #333;
}

[data-theme="dark"] .footer-links-section h3 {
    color: #e0e0e0;
}

[data-theme="dark"] .footer-links-grid a {
    color: #b0b0b0;
}

[data-theme="dark"] .footer-links-grid a:hover {
    color: #6c8cff;
}

[data-theme="dark"] .copyright p {
    color: #888;
}

[data-theme="dark"] .icp-info span {
    color: #888;
}

[data-theme="dark"] .hot-article-item {
    background: #2a2a2a;
    border-color: #333;
}

[data-theme="dark"] .hot-article-item:hover {
    background: #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .article-category {
    background: #6c8cff;
    color: white;
}

[data-theme="dark"] .article-title a {
    color: #e0e0e0;
}

[data-theme="dark"] .article-title a:hover {
    color: #6c8cff;
}

[data-theme="dark"] .article-excerpt {
    color: #b0b0b0;
}

[data-theme="dark"] .article-date {
    color: #888;
}

[data-theme="dark"] .read-more-btn a {
    color: #6c8cff;
}

[data-theme="dark"] .read-more-btn a:hover {
    color: #5a7aff;
}

[data-theme="dark"] .latest-posts .post-item {
    background: #2a2a2a;
    border-color: #333;
}

[data-theme="dark"] .latest-posts .post-item:hover {
    background: #333;
}

[data-theme="dark"] .latest-posts .post-category {
    background: #6c8cff;
    color: white;
}

[data-theme="dark"] .latest-posts .post-title a {
    color: #e0e0e0;
}

[data-theme="dark"] .latest-posts .post-title a:hover {
    color: #6c8cff;
}

[data-theme="dark"] .latest-posts .post-excerpt {
    color: #b0b0b0;
}

[data-theme="dark"] .latest-posts .post-date {
    color: #888;
}

[data-theme="dark"] .latest-posts .read-more {
    color: #6c8cff;
}

[data-theme="dark"] .latest-posts .read-more:hover {
    color: #5a7aff;
}

[data-theme="dark"] .latest-article-item {
    background: #2a2a2a;
    border-color: #333;
}

[data-theme="dark"] .latest-article-item:hover {
    background: #333;
}

[data-theme="dark"] .latest-article-category {
    background: #6c8cff;
    color: white;
}

[data-theme="dark"] .latest-article-title a {
    color: #f5f5f5 !important;
}

[data-theme="dark"] .latest-article-title a:hover {
    color: #6c8cff !important;
}

[data-theme="dark"] .latest-article-excerpt {
    color: #c0c0c0 !important;
}

/* 增强阅读更多按钮的夜间模式 */
[data-theme="dark"] .latest-article-readmore {
    color: #6c8cff !important;
}

[data-theme="dark"] .latest-article-readmore:hover {
    color: #5a7aff !important;
}

[data-theme="dark"] .latest-article-date {
    color: #888;
}



[data-theme="dark"] .content-ad-rich {
    background: #2a2a2a;
    border-color: #333;
}

[data-theme="dark"] .content-ad-rich:hover {
    background: #333;
}

[data-theme="dark"] .content-ad-title {
    color: #e0e0e0;
}

[data-theme="dark"] .content-ad-description {
    color: #b0b0b0;
}

[data-theme="dark"] .content-ad-link {
    background: #6c8cff;
    color: white;
}

[data-theme="dark"] .content-ad-link:hover {
    background: #5a7aff;
}

[data-theme="dark"] .graphic-ad .ad-content {
    background: #2a2a2a;
    border-color: #333;
}

[data-theme="dark"] .graphic-ad .ad-title {
    color: #e0e0e0;
}

[data-theme="dark"] .graphic-ad .ad-description {
    color: #b0b0b0;
}

[data-theme="dark"] .graphic-ad .ad-button {
    background: #6c8cff;
    color: white;
}

[data-theme="dark"] .graphic-ad .ad-button:hover {
    background: #5a7aff;
}

[data-theme="dark"] .simple-ad-widget {
    background: #2a2a2a;
    border-color: #333;
}

[data-theme="dark"] .simple-hot-item {
    border-bottom-color: #333;
}

[data-theme="dark"] .simple-hot-item:hover {
    background: #333;
}

[data-theme="dark"] .hot-title a {
    color: #e0e0e0;
}

[data-theme="dark"] .hot-title a:hover {
    color: #6c8cff;
}

[data-theme="dark"] .hot-meta span {
    color: #888;
}

[data-theme="dark"] .simple-tag {
    background: #333;
    color: #b0b0b0;
}

[data-theme="dark"] .simple-tag:hover {
    background: #6c8cff;
    color: white;
}

[data-theme="dark"] .ad-placeholder {
    background: #2a2a2a;
    border-color: #333;
}

[data-theme="dark"] .ad-placeholder:hover {
    background: #333;
}

[data-theme="dark"] .ad-placeholder-content h3 {
    color: #e0e0e0;
}

[data-theme="dark"] .ad-placeholder-content p {
    color: #b0b0b0;
}

[data-theme="dark"] .view-more {
    color: #6c8cff;
}

[data-theme="dark"] .view-more:hover {
    color: #5a7aff;
}

[data-theme="dark"] .latest-articles-more {
    color: #6c8cff;
}

[data-theme="dark"] .latest-articles-more:hover {
    color: #5a7aff;
}

[data-theme="dark"] .latest-articles-title {
    color: #e0e0e0;
}

[data-theme="dark"] .mobile-menu-toggle span {
    background: #e0e0e0;
}

[data-theme="dark"] .pagination-info {
    color: #888;
}

[data-theme="dark"] .latest-articles-pagination .page-numbers {
    background: #2a2a2a;
    color: #b0b0b0;
    border-color: #333;
}

[data-theme="dark"] .latest-articles-pagination .page-numbers:hover,
[data-theme="dark"] .latest-articles-pagination .page-numbers.current {
    background: #6c8cff;
    color: white;
    border-color: #6c8cff;
}

[data-theme="dark"] .latest-articles-pagination .page-numbers.dots {
    background: transparent;
    color: #888;
    border: none;
}

/* 轮播图夜间模式 */
[data-theme="dark"] .carousel-container {
    background-color: #1a1a1a !important;
}

[data-theme="dark"] .slider-dot {
    background-color: rgba(255,255,255,0.3) !important;
}

[data-theme="dark"] .slider-dot[style*="background-color: white"] {
    background-color: #6c8cff !important;
}

/* 轮播控制按钮夜间模式 - 通过属性选择器覆盖内联样式 */
[data-theme="dark"] button[style*="background-color: rgba(0,0,0,0.5)"] {
    background-color: rgba(255,255,255,0.2) !important;
    color: #e0e0e0 !important;
}

[data-theme="dark"] button[style*="background-color: rgba(0,0,0,0.5)"]:hover {
    background-color: rgba(255,255,255,0.3) !important;
}

/* 轮播图文字覆盖层夜间模式 */
[data-theme="dark"] .hero-slide div[style*="background: linear-gradient"] {
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent) !important;
}

[data-theme="dark"] .hero-slide h2[style*="color: white"] {
    color: #e0e0e0 !important;
}

[data-theme="dark"] .hero-slide h2 a[style*="color: white"] {
    color: #e0e0e0 !important;
}

[data-theme="dark"] .hero-slide p[style*="color: rgba(255,255,255,0.8)"] {
    color: rgba(224,224,224,0.8) !important;
}

/* 热门文章区域夜间模式 */
[data-theme="dark"] .hot-articles {
    background: #1a1a1a !important;
}

[data-theme="dark"] .section-header {
    border-bottom-color: #333;
}

[data-theme="dark"] .section-header .section-title {
    color: #e0e0e0;
}

[data-theme="dark"] .title-bar {
    background: #6c8cff;
}

/* 首页广告区域夜间模式增强 */
[data-theme="dark"] .ad-label {
    background: #333 !important;
    color: #b0b0b0 !important;
}

[data-theme="dark"] .hero-section .btn-primary {
    background: #6c8cff !important;
    color: white !important;
}

[data-theme="dark"] .hero-section .btn-primary:hover {
    background: #5a7aff !important;
    color: white !important;
}

/* 深色主题下的新增广告位标签样式 */
[data-theme="dark"] .image-ad-item .ad-label,
[data-theme="dark"] .simple-ad-widget .ad-label,
[data-theme="dark"] .article-ad-top .ad-label,
[data-theme="dark"] .article-ad-bottom .ad-label {
    background: rgba(255, 255, 255, 0.9);
    color: #333333;
    backdrop-filter: blur(10px);
}

/* 懒加载图片 */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.lazy.loaded {
    opacity: 1;
}

/* 响应式导航控制 - 基于屏幕尺寸 */
@media (min-width: 1025px) {
    .mobile-menu-toggle {
        display: none;
    }
    .nav-menu {
        display: flex;
    }
}

@media (max-width: 1024px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-color);
        z-index: 1000;
        padding: 20px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 10px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* 触摸设备优化 */
    .nav-link,
    .btn,
    .search-btn,
    .theme-toggle {
        min-height: 40px;
        padding: 10px 16px;
    }
}

@media (max-width: 768px) {
    /* 移动设备优化 */
    .nav-link,
    .btn,
    .search-btn,
    .theme-toggle {
        min-height: 44px;
        min-width: 44px;
        padding: 12px;
    }
}

/* 响应式设计 - 基础（屏幕尺寸）*/
@media (max-width: 768px) {
    .container {
        padding: 0 5px;
    }
    
    .nav-menu {
        display: none;
    }
    
    /* 移动端导航激活状态保持 */
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .search-input {
        width: 120px;
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .search-btn {
        padding: 8px 10px;
        min-width: 38px;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-links-grid {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-links-grid a {
        padding: 0 6px;
        font-size: 13px;
    }
    
    .icp-info {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .icp-info span {
        padding: 0 6px;
        font-size: 11px;
    }
    
    .ad-title {
        font-size: 22px;
    }
    
    /* 首页横幅响应式 */
    .hero-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-content,
    .hero-slider {
        flex: none;
        width: 100%;
    }
    
    .hero-ad-area {
        padding: 30px 20px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .carousel-container {
        height: 250px;
        max-width: 100%;
    }
    
    .hero-section {
        padding: 20px 0;
    }
}

@media (max-width: 480px) {
    .nav-tools {
        gap: 10px;
    }
    
    .search-input-wrapper {
        border: 1px solid var(--border-color);
    }
    
    .search-input {
        width: 100px;
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .search-btn {
        padding: 6px 8px;
        min-width: 32px;
        font-size: 12px;
    }
    
    .theme-toggle {
        width: 35px;
        height: 35px;
    }
    
    .post-content {
        padding: 15px;
    }
    
    .widget {
        padding: 20px;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 16px;
    }
    
    /* 移动端hero-section样式 */
    .hero-section {
        padding: 15px 0;
    }
    
    .hero-ad-area {
        padding: 25px 15px;
    }
    
    .hero-title {
        font-size: 20px;
    }
    
    .carousel-container {
        height: 180px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.post-item {
    animation: fadeInUp 0.6s ease-out;
}

.widget {
    animation: slideInRight 0.6s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* 选中文本样式 */
::selection {
    background: var(--primary-color);
    color: white;
}

/* 链接聚焦样式 */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(54, 101, 249, 0.3);
}

/* 移除所有元素的默认outline */
*:focus {
    outline: none;
}

/* 为键盘导航用户保留可访问性 */
.keyboard-navigation a:focus,
.keyboard-navigation button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 123, 186, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

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

/* 轮播样式 - 仿照参考网站 */
.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-wrapper {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s ease;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    border: none;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-dot.active {
    background-color: white;
}

/* 轮播控制按钮样式 */
.carousel-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
}

.carousel-nav-dots {
    display: flex;
    margin: 0 10px;
}

.carousel-nav-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 2px;
    transition: background-color 0.3s ease;
}

.carousel-nav-btn:hover {
    background-color: rgba(0,0,0,0.7);
}

/* 轮播文字覆盖层 */
.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

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

.slide-title a {
    color: white;
    text-decoration: none;
}

.slide-meta {
    color: rgba(255,255,255,0.8);
    margin: 0;
    font-size: 13px;
}

@media (max-width: 768px) {
    .slide-title {
        font-size: 16px;
        -webkit-line-clamp: 1;
    }
    
    .slide-meta {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .slide-title {
        font-size: 14px;
    }
    
    .slide-meta {
        font-size: 11px;
    }
}

/* 首页图片广告样式 */
.home-image-ad {
    margin: 0px 0;
}

.image-ad-item {
    display: block;
    height: 80px; /* 固定高度，与招商广告一致 */
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fa;
    position: relative;
}

.image-ad-item a {
    display: block;
    text-decoration: none;
    width: 100%;
    height: 100%;
}

.image-ad-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持图片比例，裁剪多余部分 */
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.image-ad-item:hover img {
    transform: scale(1.02);
}

/* 热门文章区域样式 - 完全仿照截图 */
.hot-articles {

    background: #fff;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.section-header .section-title {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0;
    border: none;
    padding: 0;
}

.section-header .section-title::after {
    display: none;
}

.title-bar {
    width: 4px;
    height: 24px;
    background: #3665f9;
    margin-right: 12px;
    border-radius: 2px;
}

.view-more {
    color: #3665f9;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.view-more:hover {
    color: #2451f5;
}

.hot-articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.hot-article-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.hot-article-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.article-image {
    position: relative;
    overflow: hidden;
    height: 180px;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 8px 8px 0 0;
}

.hot-article-item:hover .article-image img {
    transform: scale(1.05);
}

.article-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #3665f9;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.article-content {
    padding: 20px;
}

.article-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.4;
    color: #333;
    min-height: 44px;
    display: -webkit-box; /* 必需：设置为webkit弹性盒子 */
    -webkit-line-clamp: 2; /* 限制显示2行文本 */
    -webkit-box-orient: vertical; /* 必需：设置垂直方向 */
    overflow: hidden; /* 隐藏超出部分 */
}

.article-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: #3665f9;
}

.article-excerpt {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    min-height: 42px;
    display: -webkit-box; /* 必需：设置为webkit弹性盒子 */
    -webkit-line-clamp: 1; /* 限制显示1行文本 */
    -webkit-box-orient: vertical; /* 必需：设置垂直方向 */
    overflow: hidden; /* 隐藏超出部分 */
}

.article-meta {
    margin-bottom: 16px;
    font-size: 12px;
}

.article-date {
    color: #999;
    font-size: 12px;
    display: flex;
    align-items: center;
}

.article-date i {
    margin-right: 6px;
    font-size: 12px;
}

.read-more-btn {
    margin-top: auto;
    text-align: center;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.read-more-btn a {
    color: #3665f9;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.read-more-btn a::after {
    content: ' →';
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.read-more-btn a:hover {
    color: #2451f5;
}

.read-more-btn a:hover::after {
    transform: translateX(2px);
}

/* 首页广告招商区域 */
.home-ad-contact {
    padding: 30px 0;
    background: #f0f2f5;
    text-align: center;
}

.ad-contact-text {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

/* 广告位占位符 */
.ad-placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%) !important;
    border: 1px solid #eee !important;
    border-radius: 8px !important;
    padding: 15px 20px !important;
    text-align: center !important;
    margin: 20px 0 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    height: 80px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.ad-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.2) 1px, transparent 1px);
    background-size: 20px 20px;
    transition: left 2s ease;
}

.ad-placeholder:hover {
    border-color: #9ca3af !important;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.ad-placeholder:hover::before {
    left: 100%;
}

.ad-placeholder-content h3 {
    color: #9ca3af !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    margin-bottom: 5px !important;
    position: relative;
    z-index: 2;
}

.ad-placeholder-content p {
    color: #9ca3af !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    margin: 0 !important;
    position: relative;
    z-index: 2;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .hot-articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .hot-articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .hot-articles {
        padding: 20px 0 30px;
    }

    .hot-article-item {
        margin-bottom: 0;
    }

    .article-image {
        height: 120px;
        aspect-ratio: unset;
    }

    .article-content {
        padding: 12px 8px;
    }

    .article-title {
        font-size: 14px;
        min-height: 36px;
        margin-bottom: 8px;
        -webkit-line-clamp: 2;
    }

    .article-excerpt {
        font-size: 12px;
        margin-bottom: 8px;
        min-height: 24px;
        -webkit-line-clamp: 1;
    }

    .article-category {
        font-size: 11px;
        padding: 3px 6px;
    }

    .read-more-btn {
        padding-top: 0.5rem;
    }

    .read-more-btn a {
        font-size: 12px;
    }

    .article-date-overlay {
        font-size: 10px;
        padding: 3px 6px;
    }
}

@media (max-width: 480px) {
    .hot-articles-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .article-content {
        padding: 12px;
    }
    
    .section-header .section-title {
        font-size: 20px;
    }

    .article-image {
        height: 140px;
        aspect-ratio: unset;
    }

    .article-title {
        font-size: 15px;
        min-height: 40px;
    }

    .article-excerpt {
        font-size: 13px;
        -webkit-line-clamp: 2;
        min-height: 36px;
    }

    .article-category {
        font-size: 12px;
        padding: 4px 8px;
    }

    .read-more-btn a {
        font-size: 13px;
    }
}

/* 文章日期覆盖层 */
.article-date-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-date-overlay i {
    font-size: 11px;
}

/* 重新设计文章列表样式 - 按照图2完全1:1还原 */
.latest-posts {
    padding: 0;
    margin: 40px 0;
}

.latest-posts .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3665f9;
}

.latest-posts .section-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.latest-posts .view-more {
    color: #3665f9;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.latest-posts .view-more:hover {
    color: #2550d4;
}

/* 文章列表项 - 上下布局（图片在上，文字在下） */
.latest-posts .post-item {
    display: block;
    margin-bottom: 40px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    transition: none;
    position: relative;
}

.latest-posts .post-item:hover {
    box-shadow: none;
}

.latest-posts .post-item:last-child {
    margin-bottom: 0;
}

/* 文章缩略图 - 大图片，占据全宽 */
.latest-posts .post-thumbnail {
    width: 100%;
    height: 240px;
    margin-right: 0;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
    position: relative;
}

.latest-posts .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.latest-posts .post-thumbnail:hover img {
    transform: scale(1.02);
}

/* 文章内容区域 */
.latest-posts .post-content {
    flex: 1;
    display: block;
    position: relative;
    padding-right: 140px; /* 为右侧按钮留出空间 */
}

/* 文章分类标签 */
.latest-posts .post-category {
    background: #3665f9;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.3s ease;
    display: inline-block;
    margin-bottom: 15px;
    font-weight: 500;
}

.latest-posts .post-category:hover {
    background: #2550d4;
}

/* 文章标题 - 更大更粗 */
.latest-posts .post-title {
    margin: 0 0 15px 0;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
    color: #333;
    display: -webkit-box; /* 必需：设置为webkit弹性盒子 */
    -webkit-line-clamp: 2; /* 限制显示2行文本 */
    -webkit-box-orient: vertical; /* 必需：设置垂直方向 */
    overflow: hidden; /* 隐藏超出部分 */
}

.latest-posts .post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.latest-posts .post-title a:hover {
    color: #3665f9;
}

/* 文章摘要 */
.latest-posts .post-excerpt {
    color: #666;
    line-height: 1.6;
    margin: 0 0 20px 0;
    font-size: 16px;
    display: -webkit-box; /* 必需：设置为webkit弹性盒子 */
    -webkit-line-clamp: 3; /* 限制显示3行文本 */
    -webkit-box-orient: vertical; /* 必需：设置垂直方向 */
    overflow: hidden; /* 隐藏超出部分 */
}

/* 文章元信息 */
.latest-posts .post-meta {
    margin: 0;
    font-size: 14px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 15px;
}

.latest-posts .post-date {
    color: #999;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.latest-posts .post-date i {
    font-size: 14px;
}

/* 阅读更多按钮 - 圆角蓝色按钮，右下角定位 */
.latest-posts .read-more {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #4285f4;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

.latest-posts .read-more:hover {
    background: #3367d6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
}

.latest-posts .read-more::after {
    content: '→';
    font-size: 16px;
    transition: transform 0.3s ease;
}

.latest-posts .read-more:hover::after {
    transform: translateX(2px);
}

/* 隐藏原来的post-footer */
.latest-posts .post-footer {
    display: none;
}

/* 文章列表广告样式 - 绿色卡片，按照图2样式 */
.article-list-ad {
    position: relative;
    margin: 40px 0;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.25);
    transition: all 0.3s ease;
}

.article-list-ad:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.35);
}

.article-list-ad .ad-label {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 20px;
    z-index: 2;
    font-weight: 500;
}

.graphic-ad .ad-content {
    display: flex;
    align-items: center;
    padding: 30px;
    color: white;
    position: relative;
    min-height: 120px;
}

.graphic-ad .ad-icon {
    width: 80px;
    height: 80px;
    margin-right: 30px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.graphic-ad .ad-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.graphic-ad .ad-icon::before {
    content: '💰';
    font-size: 40px;
    display: block;
}

.graphic-ad .ad-info {
    flex: 1;
}

.graphic-ad .ad-title {
    font-size: 22px;
    font-weight: bold;
    margin: 0 0 12px 0;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.graphic-ad .ad-description {
    font-size: 16px;
    margin: 0 0 18px 0;
    opacity: 0.95;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.graphic-ad .ad-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.9);
    color: #4CAF50;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.graphic-ad .ad-button:hover {
    background: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 最新文章区域样式 - 根据参考代码1:1还原 */
.latest-articles-section {
    padding: 0;
    margin: 0px 0;
}

.latest-articles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3665f9;
}

.latest-articles-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.latest-articles-more {
    color: #3665f9;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.latest-articles-more:hover {
    color: #2550d4;
}

/* 文章列表容器 */
.latest-articles-list {
    display: block;
}

/* 单个文章项 - 左右布局 */
.latest-article-item {
    display: flex;
    margin-bottom: 17px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    position: relative;
    align-items: flex-start;
    gap: 15px;
}

.latest-article-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.latest-article-item:last-child {
    margin-bottom: 0;
}

/* 文章缩略图容器 */
.latest-article-thumbnail {
    width: 180px;
    height: 135px;
    margin-bottom: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
    flex-shrink: 0;
}

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

.latest-article-thumbnail:hover .latest-article-thumbnail-img {
    transform: scale(1.02) !important;
}

/* 分类标签 - 在图片上方 */
.latest-article-category {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    background: #3665f9 !important;
    color: white !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    z-index: 2 !important;
    text-decoration: none !important;
    transition: background 0.3s ease !important;
}

.latest-article-category:hover {
    background: #2550d4 !important;
}

/* 文章内容区域 */
.latest-article-content {
    flex: 1;
    position: relative;
    padding-right: 100px; /* 为右侧按钮留出空间 */
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 垂直居中对齐 */
    min-height: 135px; /* 与图片高度保持一致 */
}

/* 文章标题 */
.latest-article-title {
    margin: 0 0 10px 0 !important;
    font-size: 18px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
    color: #333 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.latest-article-title a {
    color: #333 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.latest-article-title a:hover {
    color: #3665f9 !important;
}

/* 文章摘要 */
.latest-article-excerpt {
    color: #666 !important;
    line-height: 1.5 !important;
    margin: 0 0 12px 0 !important;
    font-size: 14px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* 文章底部区域 */
.latest-article-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-end !important;
}

.latest-article-footer-meta {
    flex: 1 !important;
}

/* 文章日期 */
.latest-article-date {
    color: #999 !important;
    font-size: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.latest-article-date i {
    font-size: 12px !important;
}

/* 阅读更多按钮 - 圆角蓝色按钮，右下角定位 */
.latest-article-readmore {
    position: absolute !important;
    bottom: 0 !important;
    right: 0 !important;
    background: #4285f4 !important;
    color: white !important;
    text-decoration: none !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3) !important;
}

.latest-article-readmore:hover {
    background: #3367d6 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4) !important;
    color: white !important;
}

.latest-article-readmore i {
    font-size: 12px !important;
    transition: transform 0.3s ease !important;
}

.latest-article-readmore:hover i {
    transform: translateX(2px) !important;
}

/* 广告样式 - 与参考代码保持一致 */
.content-ad {
    margin: 17px 0;
    position: relative;
}

.content-ad-rich {
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 10px !important;
    color: #333333 !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #e8e8e8 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.content-ad-rich:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.content-ad-rich::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 1px, transparent 1px),
                radial-gradient(circle at 75% 75%, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.content-ad-label {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #f0f0f0;
    color: #666666;
    padding: 4px 8px;
    font-size: 10px;
    border-radius: 12px;
    z-index: 2;
    font-weight: 500;
}

.content-ad-logo {
    width: 118px !important;
    height: 118px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background: #f0f9f0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid #52c41a !important;
    flex-shrink: 0 !important;
    z-index: 1 !important;
    position: relative !important;
    margin-right: 1rem;
}

.content-ad-logo img {
    width: 118px !important;
    height: 118px !important;
    object-fit: contain !important;
}

.content-ad-content {
    flex: 1;
    z-index: 1;
    position: relative;
}

.content-ad-title {
    font-size: 18px !important;
    font-weight: bold !important;
    margin: 0 0 8px 0 !important;
    color: #333333 !important;
}

.content-ad-description {
    font-size: 14px !important;
    margin: 0 0 12px 0 !important;
    color: #666666 !important;
    line-height: 1.4 !important;
}

.content-ad-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    background: #4285f4 !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

.content-ad-link:hover {
    background: #3367d6 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3) !important;
    color: white !important;
}

.content-ad-image {
    background: #f5f5f5 !important;
    border-radius: 12px !important;
    padding: 30px 20px !important;
    color: #999 !important;
    text-align: center !important;
    position: relative !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #e8e8e8 !important;
    transition: all 0.3s ease !important;
    height: 120px !important; /* 固定高度 */
    overflow: hidden !important;
}

.content-ad-image:hover {
    background: #f0f0f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
}

/* 有图片的广告样式 */
.content-ad-image a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    text-decoration: none !important;
    position: relative !important;
}

.content-ad-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    transition: transform 0.3s ease !important;
}

.content-ad-image:hover img {
    transform: scale(1.02) !important;
}

/* 文字招商的广告样式 */
.content-ad-image .ad-text {
    font-size: 18px !important;
    font-weight: 500 !important;
    color: #999 !important;
    margin: 0 !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 100% !important;
}

.content-ad-image .content-ad-label {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    background: rgba(0,0,0,0.7) !important;
    color: white !important;
    padding: 4px 8px !important;
    font-size: 10px !important;
    border-radius: 12px !important;
    z-index: 2 !important;
    font-weight: 500 !important;
}

/* 最新文章翻页样式 */
.latest-articles-pagination {
    margin: 40px 0 20px;
    padding: 0;
}

.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.latest-articles-pagination .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.latest-articles-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.latest-articles-pagination .page-numbers:hover {
    background: #f8f9fa;
    border-color: #4285f4;
    color: #4285f4;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.15);
}

.latest-articles-pagination .page-numbers.current {
    background: #4285f4;
    border-color: #4285f4;
    color: white;
    cursor: default;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.25);
}

.latest-articles-pagination .page-numbers.current:hover {
    transform: none;
}

.latest-articles-pagination .page-numbers.dots {
    background: transparent;
    border: none;
    color: #999;
    cursor: default;
    font-weight: normal;
}

.latest-articles-pagination .page-numbers.dots:hover {
    background: transparent;
    border: none;
    transform: none;
    box-shadow: none;
}

.latest-articles-pagination .page-numbers.prev,
.latest-articles-pagination .page-numbers.next {
    padding: 0 16px;
    gap: 6px;
}

.latest-articles-pagination .page-numbers i {
    font-size: 12px;
}

.pagination-info {
    color: #999;
    font-size: 14px;
    white-space: nowrap;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pagination-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .latest-articles-pagination .pagination {
        justify-content: center;
    }
    
    .latest-articles-pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
    
    .latest-articles-pagination .page-numbers.prev,
    .latest-articles-pagination .page-numbers.next {
        padding: 0 12px;
    }
    
    .pagination-info {
        font-size: 13px;
    }
}

/* 文章筛选页面样式 */
.articles-page {
    background: #f8f9fa;
    min-height: 100vh;
}

.articles-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
}

.articles-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.header-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.page-title i {
    font-size: 2.2rem;
    opacity: 0.9;
}

.page-subtitle {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
}

.articles-filters {
    background: white;
    border-bottom: 1px solid #e1e5e9;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filters-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    gap: 20px;
}

.filter-tabs {
    display: flex;
    gap: 8px;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-tab:hover {
    background: #e3f2fd;
    border-color: #4285f4;
    color: #4285f4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.15);
}

.filter-tab.active {
    background: #4285f4;
    border-color: #4285f4;
    color: white;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.25);
}

.filter-tab.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(66, 133, 244, 0.3);
}

.filter-tab i {
    font-size: 14px;
}

.filter-stats {
    color: #666;
    font-size: 14px;
}

.articles-content {
    padding: 40px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.article-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.article-image {
    position: relative;
    overflow: hidden;
}

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

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

.hot-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.hot-badge i {
    font-size: 11px;
}

.article-content {
    padding: 24px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
}

.article-category {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.article-category:hover {
    background: #1976d2;
    color: white;
}

.article-date {
    color: #999;
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-date i {
    font-size: 12px;
}

.article-title {
    margin: 0 0 15px;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
}

.article-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: #4285f4;
}

.article-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.article-stats {
    display: flex;
    gap: 15px;
    color: #999;
    font-size: 13px;
}

.views {
    display: flex;
    align-items: center;
    gap: 6px;
}

.views i {
    font-size: 12px;
}

.read-more {
    color: #4285f4;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #1976d2;
    transform: translateX(3px);
}

.read-more i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(3px);
}

.load-more-section {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    background: linear-gradient(135deg, #4285f4, #1976d2);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.4);
}

.load-more-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.load-more-btn.loading i {
    animation: spin 1s linear infinite;
}

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

.no-articles {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.no-articles-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-articles-content i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.no-articles-content h3 {
    color: #666;
    margin-bottom: 10px;
}

.no-articles-content p {
    color: #999;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .filters-wrapper {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .filter-tabs {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .filter-tab {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .article-content {
        padding: 20px;
    }
}

/* 简洁侧边栏样式 */
.sidebar {
    width: 100%;
}

/* 简洁广告位样式 */
.simple-ad-widget {
    background: #f5f5f5;
    font-size: 14px;
    color: #666;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    padding: 0;
    background-color: #f5f5f5;
    position: relative;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.simple-ad-content {
    color: #666;
}

/* 优化的热门文章样式 */
.simple-hot-posts {
    border: 0;
    background: none;
    padding: 0;
}

.simple-hot-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
}

.simple-hot-item:last-child {
    border-bottom: none;
}

.simple-hot-item:hover {
    background-color: #f8f9fa;
    padding-left: 5px;
    padding-right: 5px;
    margin-left: -5px;
    margin-right: -5px;
    border-radius: 8px;
}

.hot-image {
    width: 90px;
    height: 68px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: #f5f5f5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    /* 调试样式 */
    border: 1px solid #ddd;
}

.hot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
    border: none;
    outline: none;
}

.simple-hot-item:hover .hot-image img {
    transform: scale(1.05);
}

.hot-image .no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e9ecef, #f8f9fa);
    color: #adb5bd;
    text-decoration: none;
    font-size: 18px;
}

.hot-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hot-title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hot-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hot-title a:hover {
    color: #4285f4;
}

.hot-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #888;
    margin-top: auto;
}

.hot-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.hot-meta i {
    font-size: 11px;
    opacity: 0.8;
}

.hot-date {
    color: #888;
}

.hot-views {
    color: #4285f4;
    font-weight: 500;
}

/* 简洁标签云样式 */
.simple-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.simple-tag {
    padding: 3px 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 3px;
    color: #495057;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
}

.simple-tag:hover {
    background: #4285f4;
    color: white;
    border-color: #4285f4;
}

/* 旧样式已移除 */

/* 简洁侧边栏响应式设计 */
@media (max-width: 768px) {
    .simple-ad-widget {
        padding: 12px;
        font-size: 13px;
    }
    
    .hot-image {
        width: 60px;
        height: 45px;
    }
    
    .hot-title {
        font-size: 13px;
    }
    
    .hot-meta {
        font-size: 11px;
    }
    
    .simple-tag {
        font-size: 11px;
        padding: 2px 6px;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .latest-posts .post-item {
        margin-bottom: 30px;
    }
    
    .latest-posts .post-thumbnail {
        height: 200px;
        margin-bottom: 15px;
    }
    
    .latest-posts .post-content {
        padding-right: 0;
        padding-bottom: 60px;
    }
    
    .latest-posts .post-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .latest-posts .post-excerpt {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .latest-posts .read-more {
        position: static;
        margin-top: 15px;
        align-self: flex-start;
    }
    
    /* 最新文章列表 - 保持左右布局，等比例缩小 */
    .latest-article-item {
        padding: 10px;
        margin-bottom: 15px;
        gap: 12px;
    }
    
    .latest-article-thumbnail {
        width: 140px;
        height: 105px;
        margin-bottom: 0;
    }
    
    .latest-article-content {
        padding-right: 80px;
        min-height: 105px;
        padding-bottom: 0;
    }
    
    .latest-article-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .latest-article-excerpt {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .latest-article-readmore {
        font-size: 11px;
        padding: 6px 12px;
        border-radius: 16px;
    }
    
    .latest-article-category {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .latest-article-date {
        font-size: 11px;
    }
    
    .graphic-ad .ad-content {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }
    
    .graphic-ad .ad-icon {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    /* 图文广告 - 保持左右布局，等比例缩小 */
    .content-ad-rich {
        padding: 15px 12px !important;
        gap: 12px !important;
    }
    
    .content-ad-logo {
        width: 80px !important;
        height: 80px !important;
        margin-right: 0.8rem !important;
    }
    
    .content-ad-logo img {
        width: 80px !important;
        height: 80px !important;
    }
    
    .content-ad-title {
        font-size: 15px !important;
        margin-bottom: 6px !important;
    }
    
    .content-ad-description {
        font-size: 12px !important;
        margin-bottom: 8px !important;
    }
    
    .content-ad-link {
        font-size: 11px !important;
        padding: 6px 12px !important;
    }
    
    .content-ad-label {
        font-size: 9px !important;
        padding: 3px 6px !important;
    }
}

@media (max-width: 480px) {
    .latest-posts .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .latest-posts .section-title {
        font-size: 24px;
    }
    
    .latest-posts .post-thumbnail {
        height: 180px;
    }
    
    .latest-posts .post-title {
        font-size: 18px;
    }
    
    .graphic-ad .ad-content {
        padding: 20px 15px;
    }
    
    .graphic-ad .ad-title {
        font-size: 20px;
    }
    
    .latest-articles-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .latest-articles-title {
        font-size: 24px;
    }
    
    .latest-article-item {
        padding: 8px;
        gap: 10px;
    }
    
    .latest-article-thumbnail {
        width: 120px;
        height: 90px;
    }
    
    .latest-article-content {
        padding-right: 70px;
        min-height: 90px;
    }
    
    .latest-article-title {
        font-size: 15px;
        margin-bottom: 6px;
    }
    
    .latest-article-excerpt {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .latest-article-readmore {
        font-size: 10px;
        padding: 5px 10px;
    }
    
    .latest-article-category {
        font-size: 10px;
        padding: 2px 5px;
    }
    
    .latest-article-date {
        font-size: 10px;
    }
    
    .content-ad-rich {
        padding: 12px 10px !important;
        gap: 10px !important;
    }
    
    .content-ad-logo {
        width: 70px !important;
        height: 70px !important;
        margin-right: 0.6rem !important;
    }
    
    .content-ad-logo img {
        width: 70px !important;
        height: 70px !important;
    }
    
    .content-ad-title {
        font-size: 14px !important;
        margin-bottom: 5px !important;
    }
    
    .content-ad-description {
        font-size: 11px !important;
        margin-bottom: 6px !important;
    }
    
    .content-ad-link {
        font-size: 10px !important;
        padding: 5px 10px !important;
    }
    
    .content-ad-label {
        font-size: 8px !important;
        padding: 2px 5px !important;
    }
}

/* ================================
   文章页面新增功能样式
   ================================ */

/* 文章页面广告位样式 */
.article-ad-top,
.article-ad-bottom {
    position: relative;
}

.article-ad-top .simple-ad-widget,
.article-ad-bottom .simple-ad-widget {
    margin: 0;
    min-height: 80px;
}

.article-ad-top img,
.article-ad-bottom img {
    height: 80px !important;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.article-ad-top .ad-text,
.article-ad-bottom .ad-text {
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-light);
    text-align: center;
}

/* 图片广告标签样式（不影响首页横幅广告） */
.image-ad-item,
.simple-ad-widget,
.article-ad-top,
.article-ad-bottom {
    position: relative;
}

/* 新增广告位的标签样式 */
.image-ad-item .ad-label,
.simple-ad-widget .ad-label,
.article-ad-top .ad-label,
.article-ad-bottom .ad-label {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    z-index: 10;
    font-weight: 500;
    line-height: 1;
    pointer-events: none;
    backdrop-filter: blur(5px);
}

/* 首页图片广告标签特殊尺寸 */
.image-ad-item .ad-label {
    top: 12px;
    right: 12px;
    font-size: 12px;
    padding: 3px 8px;
}

/* 智能悬浮侧边栏样式 */
.sticky-sidebar {
    /* 默认为正常流布局 */
    position: relative;
    margin-top: 20px;
    width: 100%;
    z-index: 100;
    padding: 0;
    transition: all 0.3s ease;
}

/* 当需要固定时的样式 */
.sticky-sidebar.fixed {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 280px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.sticky-widget {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.sticky-widget-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
}

/* 文章导航样式 */
.navigation-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

.sticky-sidebar .nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sticky-sidebar .nav-link:hover {
    color: var(--primary-color);
    background: rgba(54, 101, 249, 0.1);
}

.sticky-sidebar .nav-link.disabled {
    color: var(--text-light);
    cursor: not-allowed;
    opacity: 0.6;
}

/* 关注我们样式 */
.follow-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.follow-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 12px 8px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
}

.follow-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(54, 101, 249, 0.3);
}

.follow-btn i {
    font-size: 18px;
}

/* 推荐阅读样式 */
.recommend-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recommend-item {
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.recommend-item:hover {
    background: rgba(54, 101, 249, 0.1);
}

.recommend-item a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
    display: block;
    margin-bottom: 5px;
}

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

.recommend-views {
    font-size: 11px;
    color: var(--text-light);
}

/* 二维码弹窗样式 */
.qr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.qr-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-modal-content {
    background: var(--bg-color);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    position: relative;
    max-width: 300px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.qr-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.qr-modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-color);
}

.qr-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
}

.qr-code {
    margin-bottom: 20px;
}

.qr-tip {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

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

/* 智能悬浮的平滑过渡效果 */
.sticky-sidebar.fixed .sticky-widget {
    animation: slideInFromRight 0.3s ease-out;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 关注我们组件样式 */
.follow-us-widget {
    margin-bottom: 1rem;
}

.follow-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.follow-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.follow-icon {
    margin-right: 12px;
}

.wechat-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #09bb07, #07a905);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

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

.follow-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

.follow-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.2;
}

.follow-qr {
    margin-left: 8px;
}

.qr-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.qr-placeholder i {
    font-size: 16px;
    color: #999;
    margin-bottom: 2px;
}

.qr-placeholder span {
    font-size: 10px;
    color: #999;
    font-weight: 500;
}

/* 关注我们弹窗样式 */
.follow-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.follow-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 360px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

.follow-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.follow-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.follow-modal-body {
    text-align: center;
}

.follow-modal-body h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.follow-modal-body p {
    margin: 16px 0 0 0;
    font-size: 14px;
    color: #666;
}

.follow-modal-qr {
    text-align: center;
    margin-bottom: 20px;
}

.follow-modal-qr img {
    max-width: 180px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

/* 夜间模式适配 */
[data-theme="dark"] .follow-item {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

[data-theme="dark"] .follow-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .follow-info h4 {
    color: #f7fafc;
}

[data-theme="dark"] .follow-info p {
    color: #a0aec0;
}

[data-theme="dark"] .qr-placeholder {
    background: #4a5568;
    border-color: #718096;
}

[data-theme="dark"] .qr-placeholder i,
[data-theme="dark"] .qr-placeholder span {
    color: #a0aec0;
}

[data-theme="dark"] .follow-modal-content {
    background: #2d3748;
    color: #e2e8f0;
}

[data-theme="dark"] .follow-modal-close {
    color: #a0aec0;
}

[data-theme="dark"] .follow-modal-close:hover {
    background: #4a5568;
    color: #f7fafc;
}

[data-theme="dark"] .follow-modal-body h3 {
    color: #f7fafc;
}

[data-theme="dark"] .follow-modal-body p {
    color: #a0aec0;
}

[data-theme="dark"] .follow-modal-qr img {
    border-color: #4a5568;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 响应式适配 */
@media (max-width: 768px) {
    .follow-modal-content {
        padding: 24px;
        margin: 20px;
    }
    
    .follow-modal-qr img {
        max-width: 160px;
    }
}

/* 智能侧边栏滚动固定功能 */
.sidebar {
    position: relative;
}

/* 固定热门文章组件 */
.sidebar-sticky {
    position: sticky;
    top: 20px;
    width: 100%;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-sticky.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.sidebar-sticky .widget {
    background: var(--bg-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

/* 夜间模式适配 */
[data-theme="dark"] .sidebar-sticky .widget {
    background: rgba(42, 42, 42, 0.95);
    border-color: #4a5568;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .sidebar-sticky {
        width: 280px;
        right: 10px;
    }
}

@media (max-width: 768px) {
    .sidebar-sticky {
        display: none;
    }
}

/* 性能优化：硬件加速 */
.post-item,
.widget,
.nav-link,
.btn {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* 兼容性改进：更好的滚动行为 */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 打印样式优化 */
@media print {
    .navbar,
    .sidebar,
    .back-to-top,
    .ad-placeholder,
    .content-ad,
    .home-image-ad {
        display: none !important;
    }
    
    .main-content {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .post-content,
    .article-content {
        color: #000 !important;
        background: #fff !important;
    }
}
