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

/* 默认头像样式 */
.author-avatar {
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007AFF;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    border: 1px solid #e5e5e7;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    background: #ffffff;
    padding: 2px;
}

/* Admin头像特殊样式 */
.admin-avatar {
    background-size: 60% !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* 禁用admin头像的默认伪元素 */
.admin-avatar::before,
.admin-avatar::after {
    display: none !important;
}

.author-avatar img:not([src]), 
.author-avatar img[src=""], 
.author-avatar img[src*="avatar.jpg"] {
    display: none;
}

/* Admin和KNXHome头像使用logo-avatar.svg */
.author-avatar img[src*="logo-avatar.svg"] {
    object-fit: contain;
    padding: 2px;
    width: 85%;
    height: 85%;
    margin: auto;
}

.author-avatar::before {
    display: none;
}

.author-avatar::after {
    display: none;
}

.author-avatar-large {
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007AFF;
    font-weight: 600;
    font-size: 18px;
    position: relative;
    overflow: hidden;
    border: 1px solid #e5e5e7;
}

.author-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    background: #ffffff;
    padding: 4px;
}

/* Admin大尺寸头像特殊样式 */
.author-avatar-large.admin-avatar {
    background-size: 70% !important;
}

/* 禁用admin大头像的默认伪元素 */
.author-avatar-large.admin-avatar::before,
.author-avatar-large.admin-avatar::after {
    display: none !important;
}

.author-avatar-large img:not([src]), 
.author-avatar-large img[src=""], 
.author-avatar-large img[src*="avatar.jpg"] {
    display: none;
}

/* Admin和KNXHome大头像使用logo-avatar.svg */
.author-avatar-large img[src*="logo-avatar.svg"] {
    object-fit: contain;
    padding: 3px;
    width: 90%;
    height: 90%;
    margin: auto;
}

.author-avatar-large::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: rgba(0, 122, 255, 0.1);
    border-radius: 50%;
}

.author-avatar-large::after {
    content: '👤';
    position: relative;
    z-index: 1;
    font-size: 24px;
    color: #007AFF;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background-color: #fbfbfd;
}

/* 导航条样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    z-index: 1000;
    transition: all 0.5s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    gap: 30px;
}

/* Logo样式 */
.nav-logo a {
    text-decoration: none;
    color: #1d1d1f;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 18px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
    /* 保持logo为黑色，适合白色背景 */
    filter: none;
    transition: filter 0.3s ease;
}

/* Logo悬停效果 */
.nav-logo:hover .logo-img {
    /* 悬停时稍微变暗 */
    filter: brightness(0.8);
}

/* 可选的其他颜色方案 - 取消注释来使用 */
/* 蓝色logo */
/*
.logo-img {
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%);
}
*/

/* 红色logo */
/*
.logo-img {
    filter: brightness(0) saturate(100%) invert(13%) sepia(94%) saturate(7151%) hue-rotate(3deg) brightness(98%) contrast(118%);
}
*/

/* 绿色logo */
/*
.logo-img {
    filter: brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(2476%) hue-rotate(86deg) brightness(118%) contrast(119%);
}
*/

.logo-text {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* 主导航菜单 */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

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

.nav-link {
    color: #1d1d1f;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: block;
}

.nav-link:hover {
    color: #1d1d1f;
}

/* 全屏下拉菜单样式 */
.dropdown-menu {
    position: fixed;
    top: 44px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    padding: 20px 0;
    opacity: 0;
    visibility: hidden;
    transform: scaleY(0);
    transform-origin: top;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 999;
    height: auto;
    min-height: 150px;
    pointer-events: auto !important;
    /* 硬件加速优化 */
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.nav-item:hover .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: scaleY(1) !important;
}

/* 导航项样式 */
.nav-item {
    position: relative;
}



.dropdown-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #1d1d1f;
    text-decoration: none;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-align: center;
    border-radius: 8px;
    min-width: 140px;
}

.dropdown-item i {
    font-size: 16px;
    width: 18px;
    text-align: center;
}

.dropdown-item:hover {
    color: #1d1d1f;
}

/* 右侧功能区 */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}



.search-btn {
    background: none;
    border: none;
    color: #1d1d1f;
    font-size: 14px;
    padding: 6px 8px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.search-dropdown {
    position: fixed;
    top: 44px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    padding: 20px 0;
    opacity: 0;
    visibility: hidden;
    display: none;
    transform: translateY(-100%);
    transition: all 0.5s ease;
    z-index: 9999;
    height: auto;
    min-height: 200px;
    max-height: calc(100vh - 44px);
    overflow-y: auto;
}

.search-dropdown.active {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    transform: translateY(0) !important;
}

.search-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.search-input-container {
    position: relative;
    margin-bottom: 25px;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(0, 0, 0, 0.5);
    font-size: 16px;
}

.search-input {
    width: 100%;
    max-width: 500px;
    padding: 8px 50px 8px 50px;
    font-size: 18px;
    border: none;
    border-radius: 0;
    background-color: transparent;
    color: #1d1d1f;
    outline: none;
    box-sizing: border-box;
    height: auto;
}

.search-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.search-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(0, 0, 0, 0.5);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
}

/* 搜索高亮样式 */
.highlight {
    background-color: #ffeb3b;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
}

.search-suggestions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    padding-right: 8px;
}

.search-suggestions::-webkit-scrollbar {
    width: 6px;
}

.search-suggestions::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.search-suggestions::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.search-suggestions::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.search-title {
    font-size: 12px;
    font-weight: 600;
    color: #86868b;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-suggestion {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1d1d1f;
    text-decoration: none;
    padding: 6px 0;
    font-size: 14px;
    transition: all 0.2s ease;
    justify-content: flex-start;
    border-radius: 4px;
    margin: 2px 0;
}



.search-suggestion:hover {
    padding-left: 8px; /* 保留文字缩进效果 */
}

.search-suggestion i {
    font-size: 14px;
    width: 16px;
    color: #1d1d1f;
}

.search-suggestion img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* 搜索结果样式 - 完全匹配首页文章卡片 */
.search-result {
    background-color: #ffffff !important;
    border-radius: 16px !important;
    padding: 20px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: visible !important;
    text-decoration: none !important;
    color: #1d1d1f !important;
    width: 100% !important;
    margin-bottom: 12px !important;
    display: block !important;
    min-height: 160px !important;
}

.search-result:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

/* 确保搜索结果内的文章内容样式正确 */
.search-result .article-content {
    display: flex !important;
    gap: 20px !important;
    align-items: flex-start !important;
}

/* 添加正确的搜索结果样式，匹配JavaScript生成的HTML结构 */
.search-result-content {
    display: flex !important;
    gap: 20px !important;
}

.search-result-thumbnail {
    flex-shrink: 0 !important;
    width: 120px !important;
    height: 80px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background-color: #f0f0f0 !important;
}

.search-result-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.search-result-content > div:last-child {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.search-result-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #1d1d1f !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.4 !important;
}

.search-result-title a {
    color: #1d1d1f !important;
    text-decoration: none !important;
}

.search-result-title a:hover {
    color: #007aff !important;
}

.search-result-excerpt {
    font-size: 14px !important;
    color: #86868b !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.5 !important;
}

.search-result-meta {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.search-result-tags {
    display: flex !important;
    gap: 4px !important;
    flex-wrap: wrap !important;
    margin-bottom: 8px !important;
}

.tag-number {
    background-color: #ffeb3b !important;
    color: #1d1d1f !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    min-width: 16px !important;
    text-align: center !important;
}

.search-result-categories {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    margin-bottom: 8px !important;
}

.search-result-categories .tag {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
}

.search-result-categories .tag-primary {
    background-color: #007aff !important;
}

.search-result-categories .tag-secondary {
    background-color: #34c759 !important;
}

.search-result-categories .tag-tertiary {
    background-color: #ff9500 !important;
}

.search-result-categories .tag i {
    font-size: 10px !important;
}

.search-result-stats {
    display: flex !important;
    gap: 16px !important;
}

.search-result-stats .stat-item {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    color: #86868b !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

.search-result-stats .stat-item i {
    font-size: 12px !important;
}

.highlight {
    background-color: #ffeb3b !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
    font-weight: bold !important;
}

.search-result .article-image {
    flex-shrink: 0 !important;
    width: 120px !important;
    height: 120px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background-color: #f5f5f7 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    cursor: pointer !important;
}

.search-result .article-image:hover {
    transform: scale(1.02) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.search-result .article-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    background-color: #f5f5f7 !important;
    transition: transform 0.2s ease !important;
}

.search-result .article-image:hover img {
    transform: scale(1.05) !important;
}

.search-result .article-info {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.search-result .article-title {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

.search-result .article-title a {
    color: #1d1d1f !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.search-result .article-title a:hover {
    color: #007aff !important;
}

.search-result .article-excerpt {
    color: #86868b !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.search-result .article-meta {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: auto !important;
}

.search-result .article-tags {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.search-result .tag {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
}

.search-result .tag-primary {
    background-color: #007aff !important;
}

.search-result .tag-secondary {
    background-color: #34c759 !important;
}

.search-result .tag-tertiary {
    background-color: #ff9500 !important;
}

.search-result .author-avatar {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    background-color: #ffffff !important;
    border: 1px solid #e5e5e7 !important;
    object-fit: cover !important;
}

.search-result .logo-avatar {
    background-image: url('logo-avatar.svg') !important;
    background-size: 70% !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.search-result .tag i {
    font-size: 10px !important;
}

.search-result-categories {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    margin-bottom: 8px !important;
}

.search-result-categories .tag {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
}

.search-result-categories .tag-primary {
    background-color: #007aff !important;
}

.search-result-categories .tag-secondary {
    background-color: #34c759 !important;
}

.search-result-categories .tag-tertiary {
    background-color: #ff9500 !important;
}

.search-result-categories .tag i {
    font-size: 10px !important;
}

.search-result .article-stats,
.search-result-stats {
    display: flex !important;
    gap: 16px !important;
}

.search-result .stat-item {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    color: #86868b !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

.search-result .stat-item i {
    font-size: 12px !important;
}

.search-more {
    justify-content: center !important;
    color: #007aff !important;
    font-weight: 500 !important;
    padding: 16px !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
}

.search-more:hover {
    background-color: #f0f8ff !important;
    transform: translateY(-1px) !important;
}

.search-no-results {
    padding: 32px 20px;
    text-align: center;
    color: #6c757d;
}

.search-no-results i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.search-no-results p {
    margin: 8px 0;
    font-size: 14px;
}

.search-no-results p:last-child {
    font-size: 12px;
    opacity: 0.7;
}

/* 搜索关键词高亮 */
mark {
    background: linear-gradient(120deg, #ffd54f 0%, #ffb300 100%);
    color: #1d1d1f;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(255, 193, 7, 0.3);
}

/* 搜索结果标题样式 */
.search-title {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}



/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    width: 24px;
    height: 24px;
    z-index: 1000;
    position: relative;
}

.hamburger .bar {
    width: 20px;
    height: 2px;
    background-color: #000;
    position: absolute;
    transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
    transform-origin: center;
}

.hamburger .bar:nth-child(1) {
    top: 6px;
}

.hamburger .bar:nth-child(2) {
    bottom: 6px;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    transform: translateY(-6px) rotate(-45deg);
}



/* 主要内容区域 */
.main-content {
    margin-top: 44px;
    padding: 20px;
    transition: filter 0.5s ease;
    background-color: #f5f5f7;
    min-height: calc(100vh - 44px);
}

/* 有面包屑导航的页面（仅文章详情页），不需要额外的上边距 */
.breadcrumb-nav + .main-content {
    margin-top: 0;
}

/* 当有下拉菜单显示时，主要内容变模糊 */
.main-content.blurred {
    filter: blur(5px);
    pointer-events: none;
}

/* 当有下拉菜单显示时，页脚也变模糊 */
.footer.blurred {
    filter: blur(5px);
    pointer-events: none;
}

/* 当搜索下拉框显示时，页脚应该被隐藏或降低层级 */
.search-dropdown.active ~ .footer,
.search-dropdown.active + * .footer {
    z-index: 1;
    position: relative;
}

/* 确保页脚在搜索时不会显示在搜索下拉框之上 */
.footer {
    z-index: 1;
    position: relative;
}

/* 当搜索下拉框激活时，页脚应该被完全隐藏 */
.search-dropdown.active ~ .footer {
    display: none !important;
}

/* 当搜索展开时，轮播图也变模糊 */
.carousel-section.blurred {
    filter: blur(5px);
    pointer-events: none;
}

/* 确保导航栏在模糊状态下仍然可以交互 */
.navbar {
    pointer-events: auto !important;
}

.nav-item {
    pointer-events: auto !important;
}

.dropdown-menu {
    pointer-events: auto !important;
}

/* 文章排序导航 */
.article-sort-nav {
    background-color: transparent;
    border-radius: 0;
    padding: 16px 0;
    margin-bottom: 20px;
    box-shadow: none;
}

.sort-container {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
}

.sort-item {
    color: #86868b;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 4px 0;
    border-radius: 0;
    transition: all 0.2s ease;
}

.sort-item:hover {
    color: #1d1d1f;
    background-color: transparent;
}

.sort-item.active {
    color: #1d1d1f;
    background-color: transparent;
    font-weight: 600;
}

.sort-label {
    color: #1d1d1f;
    font-size: 15px;
    font-weight: 500;
}

.sort-separator {
    color: #d2d2d7;
    font-weight: 300;
}

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

/* 文章卡片 */
.article-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.article-card.featured {
    border: 2px solid #ff3b30;
}

/* 置顶徽章 */
.article-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: #ff3b30;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

/* 置顶文章样式 */
.pinned-article {
    position: relative;
}

.pinned-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #ff3b30;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 59, 48, 0.3);
}

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

/* 付费文章标识样式 */
.paid-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #ff3b30;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 59, 48, 0.3);
}

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

/* 付费文章预览样式 */
.paid-article-preview {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.paid-article-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.paid-badge-large {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
}

.paid-badge-large i {
    font-size: 20px;
}

.article-price-large {
    text-align: right;
}

.price-label {
    display: block;
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.price-value {
    font-size: 24px;
    font-weight: 700;
}

.paid-article-content {
    margin-bottom: 40px;
    text-align: left;
}

.paid-article-content h3 {
    font-size: 20px;
    color: #1d1d1f;
    margin-bottom: 20px;
    text-align: center;
}

.preview-content {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid #007aff;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.paid-article-actions {
    text-align: center;
}

.btn-pay {
    background: linear-gradient(135deg, #ff3b30 0%, #ff6b6b 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 59, 48, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 59, 48, 0.4);
}

.btn-pay i {
    font-size: 20px;
}

.payment-methods {
    margin-top: 20px;
    color: #86868b;
    font-size: 14px;
}

.payment-methods i {
    margin: 0 5px;
    font-size: 16px;
}

.payment-methods .fab.fa-weixin {
    color: #07c160;
}

.payment-methods .fab.fa-alipay {
    color: #1677ff;
}

.pinned-article:hover {
}

/* 文章内容布局 */
.article-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.article-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f5f5f7;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.article-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #f5f5f7;
    transition: transform 0.2s ease;
}

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

.article-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 文章标题 */
.article-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.article-title a {
    color: #1d1d1f;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-title a:hover {
    color: #007aff;
}

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

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

.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
}

.tag-primary {
    background-color: #007aff;
}

.tag-secondary {
    background-color: #34c759;
}

.tag-tertiary {
    background-color: #ff9500;
}

.tag i {
    font-size: 10px;
    color: #ffffff;
}

/* 文章元信息 */
.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid #e5e5e7;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-name {
    color: #86868b;
    font-size: 12px;
    font-weight: 500;
}

.article-stats {
    display: flex;
    gap: 16px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #86868b;
    font-size: 13px;
    font-weight: 500;
}

.stat-item i {
    font-size: 12px;
}

/* 确保文章卡片的点赞图标没有特殊样式 */
.stat-item i.fa-thumbs-up {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    color: #86868b !important;
    box-shadow: none !important;
    outline: none !important;
}

/* 确保文章卡片的点赞数字没有特殊样式 */
.stat-item:has(.fa-thumbs-up) {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}



.hero-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 0;
}

.hero-section h1 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1d1d1f;
}

.hero-section p {
    font-size: 24px;
    color: #86868b;
    font-weight: 400;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        justify-content: space-between;
        gap: 0;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: #ffffff;
        width: 100%;
        height: 100vh;
        text-align: left;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 44px 0 0 0;
        overflow-y: auto;
        z-index: 999;
    }

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

    /* 移动端汉堡图标 */
    .hamburger {
        display: flex !important;
        opacity: 1;
        visibility: visible;
        transition: opacity 0.3s ease, visibility 0s ease;
    }

    /* 当导航菜单展开时，延迟隐藏汉堡图标，让动画完成 */
    .nav-menu.active ~ .nav-right .hamburger {
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease 0.2s, visibility 0s ease 0.5s;
    }



    /* 移动端关闭按钮 */
    .mobile-close-btn {
        position: absolute;
        top: 14px;
        right: 20px;
        display: none;
        cursor: pointer;
        width: 20px;
        height: 20px;
        background-color: transparent;
        transition: all 0.3s ease;
        z-index: 1001;
    }

    .mobile-close-btn .close-bar {
        position: absolute;
        width: 20px;
        height: 2px;
        background-color: #1d1d1f;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
    }

    .mobile-close-btn .close-bar:first-child {
        transform: translateY(-50%) rotate(45deg);
    }

    .mobile-close-btn .close-bar:last-child {
        transform: translateY(-50%) rotate(-45deg);
    }

    .nav-menu.active .mobile-close-btn {
        display: flex;
        opacity: 0;
        animation: fadeInClose 0.5s ease 0.3s forwards;
    }

    @keyframes fadeInClose {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }




    .nav-item {
        margin: 0;
        border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
        position: relative;
    }

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

    .nav-link {
        padding: 16px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 17px;
        font-weight: 400;
        color: #1d1d1f;
        text-decoration: none;
        transition: all 0.3s ease;
        line-height: 1.2;
        min-height: 44px;
    }

    .nav-link::after {
        content: '';
        width: 8px;
        height: 8px;
        border-right: 1px solid #1d1d1f;
        border-top: 1px solid #1d1d1f;
        transform: rotate(45deg);
        transition: transform 0.3s ease;
    }

    .nav-item.active .nav-link::after {
        transform: rotate(135deg);
    }

    .nav-link:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }

    .dropdown-menu:not(.search-dropdown) {
        display: none;
        position: static;
        background-color: transparent;
        backdrop-filter: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
        border: none;
        overflow: hidden;
    }

    .dropdown-menu:not(.search-dropdown).active {
        display: block;
        animation: slideDown 0.5s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .dropdown-content {
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding: 0;
        margin: 0;
    }

    .dropdown-menu:not(.search-dropdown).active .dropdown-content {
        padding: 0;
    }

    .dropdown-item {
        padding: 12px 40px;
        font-size: 15px;
        font-weight: 400;
        color: #1d1d1f;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 12px;
        transition: all 0.2s ease;
        line-height: 1.3;
        min-height: 44px;
        border-bottom: 0.5px solid rgba(0, 0, 0, 0.05);
    }

    .dropdown-item:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }

    .dropdown-item i {
        font-size: 18px;
        width: 20px;
        text-align: center;
        color: #86868b;
    }





    .logo-img {
        height: 24px;
        max-width: 120px;
    }

    .search-btn {
        font-size: 16px;
        padding: 8px;
    }

    /* 移动端搜索下拉菜单 */
    .search-dropdown {
        position: fixed !important;
        top: 44px !important;
        left: 0 !important;
        right: 0 !important;
        background-color: #ffffff !important;
        padding: 20px !important;
        z-index: 9999 !important;
        max-height: calc(100vh - 44px) !important;
        overflow-y: auto !important;
        transition: all 0.5s ease !important;
    }

    .search-content {
        padding: 0 !important;
    }

    .search-input {
        font-size: 16px !important;
        padding: 12px 50px !important;
    }

    .main-content {
        padding: 16px;
    }

    .article-content {
        flex-direction: column;
        gap: 16px;
    }

    .article-image {
        width: 100%;
        height: 200px;
        border-radius: 12px;
        overflow: hidden;
        background-color: #f5f5f7;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        cursor: pointer;
    }
    
    .article-image:hover {
        transform: scale(1.01);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .article-image img {
        object-fit: cover;
        width: 100%;
        height: 100%;
        background-color: #f5f5f7;
        transition: transform 0.2s ease;
    }
    
    .article-image:hover img {
        transform: scale(1.03);
    }
    
    /* 移动端搜索结果缩略图样式 */
    .search-result .article-image {
        width: 100% !important;
        height: 200px !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        background-color: #f5f5f7 !important;
        transition: transform 0.2s ease, box-shadow 0.2s ease !important;
        cursor: pointer !important;
    }
    
    .search-result .article-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        background-color: #f5f5f7 !important;
        transition: transform 0.2s ease !important;
    }
    
    /* 移动端搜索结果卡片布局调整 */
    .search-result {
        flex-direction: column !important;
        gap: 16px !important;
        min-height: auto !important;
    }
    
    .search-result .article-content {
        flex-direction: column !important;
        gap: 16px !important;
    }
    
    .search-result .article-info {
        width: 100% !important;
    }

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

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .article-stats {
        gap: 12px;
    }
}

/* 文章详情页专用样式 */
.article-detail-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.article-detail-content {
    background: white;
    border-radius: 12px;
    overflow: visible;
}

/* 文章详情页面包屑导航 */
.article-detail-content .breadcrumb-nav {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
}

.article-detail-content .breadcrumb-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
}

.article-detail-content .breadcrumb-item {
    color: #007AFF;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-detail-content .breadcrumb-item:hover {
    color: #0056b3;
}

.article-detail-content .breadcrumb-separator {
    color: #6c757d;
}

.article-detail-content .breadcrumb-current {
    color: #495057;
    font-weight: 600;
}

/* 文章详情页头部 */
.article-detail-content .article-header {
    padding: 30px 20px 20px;
    border-bottom: 1px solid #e9ecef;
}

.article-detail-content .article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 20px;
    line-height: 1.2;
}

.article-detail-content .article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.article-detail-content .article-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-detail-content .author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: #f8f9fa;
}

.article-detail-content .author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-detail-content .author-name {
    font-weight: 600;
    color: #495057;
}

.article-detail-content .article-stats {
    display: flex;
    align-items: center;
    gap: 15px;
}

.article-detail-content .stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #6c757d;
    font-size: 14px;
}

.article-detail-content .article-time {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #6c757d;
    font-size: 14px;
}

/* 文章详情页特色图片 */
.article-detail-content .article-featured-image {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
}

.article-detail-content .article-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 文章详情页标签 */
.article-detail-content .article-tags {
    padding: 20px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    border-bottom: 1px solid #e9ecef;
}

.article-detail-content .article-tags .tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 文章详情页内容 */
.article-detail-content .article-content {
    padding: 30px 20px;
    line-height: 1.8;
    color: #333;
    font-size: 16px;
}

.article-detail-content .article-content h1,
.article-detail-content .article-content h2,
.article-detail-content .article-content h3,
.article-detail-content .article-content h4,
.article-detail-content .article-content h5,
.article-detail-content .article-content h6 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #1d1d1f;
    font-weight: 600;
}

.article-detail-content .article-content p {
    margin-bottom: 15px;
}

.article-detail-content .article-content img {
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* 支持Quill编辑器的图片对齐样式 - 文章详情页 */
.article-detail-content .article-content .ql-align-center {
    text-align: center;
}

.article-detail-content .article-content .ql-align-center img {
    margin: 20px auto;
}

.article-detail-content .article-content .ql-align-right {
    text-align: right;
}

.article-detail-content .article-content .ql-align-right img {
    margin: 20px 0 20px auto;
}

.article-detail-content .article-content .ql-align-left {
    text-align: left;
}

.article-detail-content .article-content .ql-align-left img {
    margin: 20px auto 20px 0;
}

/* 支持Quill编辑器的文本对齐样式 - 文章详情页 */
.article-detail-content .article-content .ql-align-center {
    text-align: center;
}

.article-detail-content .article-content .ql-align-right {
    text-align: right;
}

.article-detail-content .article-content .ql-align-left {
    text-align: left;
}

.article-detail-content .article-content .ql-align-justify {
    text-align: justify;
}

.article-detail-content .article-content iframe {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    aspect-ratio: 16 / 9;
    min-height: 400px;
}

.article-detail-content .article-content .ql-video {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    aspect-ratio: 16 / 9;
    min-height: 400px;
}

/* 文章详情页（当前模板）正文容器内的嵌入视频全宽 */
.article-detail-content .article-content-text iframe,
.article-detail-content .article-content-text .ql-video {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    aspect-ratio: 16 / 9;
    min-height: 400px;
}

.article-detail-content .article-content blockquote {
    border-left: 4px solid #007AFF;
    padding: 16px 20px;
    margin: 20px 0;
    font-style: italic;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
    position: relative;
}

/* 移除引号装饰 */
/* .article-detail-content .article-content blockquote::before {
    content: '"';
    font-size: 48px;
    color: #007AFF;
    position: absolute;
    top: -10px;
    left: 10px;
    font-family: serif;
} */

.article-detail-content .article-content code {
    background: #2d3748;
    color: #e2e8f0;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 14px;
    border: 1px solid #4a5568;
}

.article-detail-content .article-content pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid #4a5568;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.article-detail-content .article-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    border: none;
    font-size: 14px;
    line-height: 1.6;
}

/* 文章详情页底部操作 */
.article-detail-content .article-actions {
    padding: 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.article-detail-content .action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #e9ecef;
    background: white;
    border-radius: 20px;
    color: #6c757d;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.article-detail-content .action-btn:hover {
    background: #f8f9fa;
    border-color: #6c757d;
    color: #495057;
}

.article-detail-content .action-btn.like-btn.liked {
    /* 保持与评论、分享按钮完全一致的默认样式 */
    background: white;
    color: #6c757d;
    border-color: #e9ecef;
}

/* 点赞后只改变图标颜色为蓝色 */
.article-detail-content .action-btn.like-btn.liked i {
    color: #007aff;
}

/* 点赞按钮点击动画 */
.action-btn.like-btn.clicking {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

.action-btn.like-btn.clicking i {
    animation: likeBounce 0.3s ease;
}

@keyframes likeBounce {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

/* 评论点赞按钮点击动画 */
.comment-action.clicking {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

.comment-action.clicking i {
    animation: likeBounce 0.3s ease;
}

/* 已点赞状态样式 */
.comment-action.liked {
    color: #007aff;
}

.comment-action.liked i {
    color: #007aff;
}

.comment-action.liked:hover {
    color: #0056b3;
}

.comment-action.liked:hover i {
    color: #0056b3;
}

/* 隐藏点赞按钮上的数量显示，但保留文章标题附近的点赞数量 */
.article-detail-content .action-btn.like-btn .action-count {
    display: none;
}

/* 文章详情页响应式设计 */
@media (max-width: 768px) {
    .article-detail-container {
        padding: 10px;
    }
    
    .article-detail-content .article-title {
        font-size: 2rem;
    }
    
    /* 移动端文章内容媒体样式 */
    .article-content-text img,
    .article-content-text video {
        margin: 15px 0;
        border-radius: 6px;
    }
    
    /* 移动端Quill编辑器图片对齐样式 */
    .article-content-text .ql-align-center {
        text-align: center;
    }
    
    .article-content-text .ql-align-center img {
        margin: 15px auto;
    }
    
    .article-content-text .ql-align-right {
        text-align: right;
    }
    
    .article-content-text .ql-align-right img {
        margin: 15px 0 15px auto;
    }
    
    .article-content-text .ql-align-left {
        text-align: left;
    }
    
    .article-content-text .ql-align-left img {
        margin: 15px auto 15px 0;
    }
    
    /* 移动端Quill编辑器文本对齐样式 */
    .article-content-text .ql-align-center {
        text-align: center;
    }
    
    .article-content-text .ql-align-right {
        text-align: right;
    }
    
    .article-content-text .ql-align-left {
        text-align: left;
    }
    
    .article-content-text .ql-align-justify {
        text-align: justify;
    }
    
    /* 移动端列表样式 */
    .article-content-text ul {
        margin: 15px 0;
        padding-left: 18px;
    }
    
    .article-content-text ol {
        margin: 15px 0;
        padding-left: 22px;
    }
    
    .article-content-text li {
        margin: 6px 0;
        font-size: 15px;
        line-height: 1.6;
    }
    
    .article-content-text table {
        font-size: 14px;
        margin: 15px 0;
    }
    
    .article-content-text table th,
    .article-content-text table td {
        padding: 8px;
    }
    
    /* 移动端文章内容代码块样式 */
    .article-content-text code {
        background: #2d3748;
        color: #e2e8f0;
        padding: 2px 6px;
        border-radius: 4px;
        font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
        font-size: 13px;
        border: 1px solid #4a5568;
    }
    
    .article-content-text pre {
        background: #2d3748;
        color: #e2e8f0;
        padding: 15px;
        border-radius: 6px;
        overflow-x: auto;
        margin: 15px 0;
        border: 1px solid #4a5568;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        position: relative;
    }
    
    /* 移动端代码块复制按钮样式 */
    .article-content-text pre .copy-button {
        position: absolute;
        top: 6px;
        right: 6px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #e2e8f0;
        padding: 4px 8px;
        border-radius: 3px;
        font-size: 11px;
        cursor: pointer;
        transition: all 0.2s ease;
        backdrop-filter: blur(4px);
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }
    
    .article-content-text pre .copy-button:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.3);
    }
    
    .article-content-text pre .copy-button.copied {
        background: #10b981;
        border-color: #10b981;
        color: white;
    }
    
    .article-content-text pre code {
        background: none;
        color: inherit;
        padding: 0;
        border: none;
        font-size: 13px;
        line-height: 1.5;
    }
    
    /* 移动端文章内容引用块样式 */
    .article-content-text blockquote {
        border-left: 3px solid #007AFF;
        padding: 12px 15px;
        margin: 15px 0;
        font-style: italic;
        color: #6c757d;
        background: #f8f9fa;
        border-radius: 0 6px 6px 0;
        position: relative;
    }
    
    /* 移除移动端引号装饰 */
    /* .article-content-text blockquote::before {
        content: '"';
        font-size: 36px;
        color: #007AFF;
        position: absolute;
        top: -8px;
        left: 8px;
        font-family: serif;
    } */
    
    .article-detail-content .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .article-detail-content .article-header {
        padding: 20px 15px 15px;
    }
    
    .article-detail-content .article-content {
        padding: 20px 15px;
        font-size: 15px;
    }
    
        .article-detail-content .article-content iframe {
        width: 100%;
        max-width: 100%;
        margin: 15px 0;
        min-height: 250px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        aspect-ratio: 16 / 9;
    }

    .article-detail-content .article-content .ql-video {
        width: 100%;
        max-width: 100%;
        margin: 15px 0;
        min-height: 250px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        aspect-ratio: 16 / 9;
    }

    .article-detail-content .article-content-text iframe,
    .article-detail-content .article-content-text .ql-video {
        width: 100%;
        max-width: 100%;
        margin: 15px 0;
        min-height: 250px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        aspect-ratio: 16 / 9;
    }
    
    .article-detail-content .article-actions {
        padding: 15px;
        justify-content: center;
    }
}

/* 页脚样式 */
.footer {
    background-color: #ffffff;
    border-top: 1px solid #e5e5e7;
    padding: 40px 0 20px 0;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-left {
    flex: 1;
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d1d1f;
    font-size: 20px;
    font-weight: bold;
    overflow: hidden;
    border: 1px solid #e5e5e7;
}

.footer-logo-circle img {
    width: 35%;
    height: 35%;
    object-fit: contain;
    filter: brightness(0);
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-brand-name {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 4px;
}

.footer-brand-url {
    font-size: 12px;
    color: #86868b;
}

.footer-description {
    font-size: 14px;
    line-height: 1.6;
    color: #1d1d1f;
    margin-top: 16px;
}

.footer-right {
    flex: 1;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-links {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    justify-content: flex-start;
}

.footer-link {
    color: #1d1d1f;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease, font-weight 0.3s ease;
}

.footer-link:hover {
    color: #000000;
    font-weight: 700;
}

.footer-copyright {
    font-size: 12px;
    color: #86868b;
    margin-bottom: 16px;
    line-height: 1.4;
    text-align: left;
}

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

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f5f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d1d1f;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #1d1d1f;
    color: white;
    transform: translateY(-2px);
}

.social-icon i {
    font-size: 16px;
}

/* 微信公众号二维码悬停效果 */
.wechat-icon {
    position: relative;
}

/* 视频号二维码悬停效果 */
.video-icon {
    position: relative;
    z-index: 1001; /* 比微信公众号稍高，避免重叠 */
}

.qr-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    border: 1px solid #e5e5e7;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-bottom: 8px;
    min-width: 200px;
    text-align: center;
}

.qr-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #ffffff;
}

.qr-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 9px solid transparent;
    border-top-color: #e5e5e7;
    margin-top: -1px;
}

.wechat-icon:hover .qr-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

.video-icon:hover .qr-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
    z-index: 1002; /* 确保视频号二维码在最上层 */
}

.qr-code {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    margin-bottom: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.qr-tooltip p {
    margin: 0;
    font-size: 12px;
    color: #86868b;
    font-weight: 500;
}

/* 关于我们页面的微信按钮样式 */
.wechat-btn {
    position: relative;
}

.wechat-btn .qr-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    border: 1px solid #e5e5e7;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-bottom: 8px;
    min-width: 200px;
    text-align: center;
}

.wechat-btn .qr-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #ffffff;
}

.wechat-btn .qr-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 9px solid transparent;
    border-top-color: #e5e5e7;
    margin-top: -1px;
}

.wechat-btn:hover .qr-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

.video-btn:hover .qr-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
    z-index: 1002; /* 确保视频号二维码在最上层 */
}

/* 电脑端点击后的二维码显示状态 */
.wechat-icon .qr-tooltip.desktop-clicked,
.wechat-btn .qr-tooltip.desktop-clicked,
.video-icon .qr-tooltip.desktop-clicked,
.video-btn .qr-tooltip.desktop-clicked {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(-4px) !important;
}

/* 手机端点击显示二维码 */
@media (max-width: 768px) {
    /* 手机端完全禁用悬停效果，只使用点击效果 */
    .wechat-icon:hover .qr-tooltip,
    .wechat-btn:hover .qr-tooltip,
    .video-icon:hover .qr-tooltip,
    .video-btn:hover .qr-tooltip {
        opacity: 0 !important;
        visibility: hidden !important;
        transform: none !important;
    }
    
    /* 手机端默认隐藏所有二维码提示框 */
    .wechat-icon .qr-tooltip,
    .wechat-btn .qr-tooltip,
    .video-icon .qr-tooltip,
    .video-btn .qr-tooltip {
        opacity: 0 !important;
        visibility: hidden !important;
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 10001 !important;
        margin: 0 !important;
        padding: 0 !important;
        max-width: 90vw !important;
        max-height: 90vh !important;
        bottom: auto !important;
        right: auto !important;
        width: auto !important;
        height: auto !important;
        /* 完全脱离父元素约束 */
        display: block !important;
        float: none !important;
        clear: both !important;
    }
    
    /* 二维码遮罩层 */
    .qr-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    /* 显示遮罩层 */
    .qr-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* 只有通过JavaScript添加mobile-visible类才显示 */
    .wechat-icon .qr-tooltip.mobile-visible,
    .wechat-btn .qr-tooltip.mobile-visible {
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 10001 !important;
    }
    
    .video-icon .qr-tooltip.mobile-visible,
    .video-btn .qr-tooltip.mobile-visible {
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 10001 !important; /* 比微信公众号更高 */
    }
    
    /* 手机端隐藏所有二维码的倒三角指示器 */
    .qr-tooltip::after,
    .qr-tooltip::before {
        display: none !important;
    }
    
    .wechat-icon .qr-tooltip::after,
    .wechat-icon .qr-tooltip::before,
    .wechat-btn .qr-tooltip::after,
    .wechat-btn .qr-tooltip::before,
    .video-icon .qr-tooltip::after,
    .video-icon .qr-tooltip::before,
    .video-btn .qr-tooltip::after,
    .video-btn .qr-tooltip::before {
        display: none !important;
    }
    
}

@media (max-width: 768px) {
    .footer {
        text-align: center;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    
    .footer-left,
    .footer-right {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-brand {
        align-items: center;
    }
    
    .footer-description {
        text-align: center;
    }
    
    .footer-links {
        justify-content: center !important;
        flex-wrap: wrap;
        gap: 15px;
        width: 100%;
        display: flex;
    }
    
    .footer-copyright {
        text-align: center !important;
        width: 100%;
        display: block;
    }
    
    .footer-social {
        justify-content: center !important;
        width: 100%;
        display: flex;
    }
}

@media (max-width: 768px) {
    .action-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .comparison-table {
        font-size: 12px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 8px 12px;
    }
}

/* 排序动画 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card {
    animation: slideIn 0.3s ease both;
}

/* 轮播模块样式 */
.carousel-section {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-top: 44px; /* 紧贴导航条 */
    z-index: 10; /* 确保轮播图在搜索下拉菜单之下 */
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.carousel-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.carousel-slide .carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-slide .geometric-shape {
    transition: all 0.3s ease;
}

/* 临时渐变背景（当没有图片时使用） */
.carousel-slide:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.carousel-slide:nth-child(2) {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
}

.carousel-slide:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.carousel-slide:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.carousel-slide:nth-child(5) {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.carousel-slide:nth-child(6) {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.carousel-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 600px;
    padding: 0 20px;
}

.carousel-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.carousel-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #1d1d1f;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: white;
    border-color: white;
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

/* 轮播控制按钮 */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
    backdrop-filter: blur(10px);
}

.carousel-control:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: 30px;
}

.carousel-control.next {
    right: 30px;
}

/* 移动端轮播样式 */
@media (max-width: 768px) {
    .carousel-section {
        height: 250px;
        z-index: 10; /* 确保在移动端轮播图层级正确 */
    }

    .carousel-content h2 {
        font-size: 1.8rem;
    }

    .carousel-content p {
        font-size: 0.9rem;
    }

    .carousel-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-control.prev {
        left: 15px;
    }

    .carousel-control.next {
        right: 15px;
    }

    .carousel-indicators {
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 16px;
    }

    .nav-right {
        gap: 8px;
    }

    .search-btn {
        padding: 6px;
    }

    .login-btn {
        padding: 6px 8px;
    }

    .logo-img {
        height: 16px;
        max-width: 70px;
    }

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

    .hero-section h1 {
        font-size: 28px;
    }

    .hero-section p {
        font-size: 16px;
    }
}

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

.dropdown-menu {
    animation: fadeIn 0.5s ease;
}

/* 滚动效果 */
.navbar.scrolled {
    background-color: #ffffff;
}

/* 页脚样式 */
.footer {
    background-color: #ffffff;
    border-top: 1px solid #e5e5e7;
    padding: 40px 0 20px 0;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-left {
    flex: 1;
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}





/* 评论系统样式 */
.comments-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e5e7;
}

.comments-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}



.comments-title {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
}

.comments-count {
    background-color: #007aff;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.comment-form {
    background-color: #f5f5f7;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.comment-form-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007aff, #5856d6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.comment-user-info {
    flex: 1;
}

.comment-username {
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 2px;
}

.comment-user-status {
    font-size: 12px;
    color: #86868b;
}

.comment-input-container {
    position: relative;
}

.comment-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px 16px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    background-color: white;
    transition: border-color 0.3s ease;
}

.comment-textarea:focus {
    outline: none;
    border-color: #007aff;
}

.comment-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.comment-char-count {
    font-size: 12px;
    color: #86868b;
}

.comment-submit-btn {
    background-color: #007aff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.comment-submit-btn:hover {
    background-color: #0056cc;
}

.comment-submit-btn:disabled {
    background-color: #d2d2d7;
    cursor: not-allowed;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.comment-avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007aff, #5856d6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

/* Admin评论头像样式 */
.comment-avatar-small.admin-avatar {
    background: #ffffff !important;
    border: 1px solid #e5e5e7;
    background-size: 55% !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.comment-author {
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
}

.comment-time {
    font-size: 12px;
    color: #86868b;
}

.comment-badge {
    background-color: #007aff;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.comment-text {
    font-size: 14px;
    line-height: 1.6;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.comment-actions {
    display: flex;
    gap: 16px;
}

.comment-action {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #86868b;
    cursor: pointer;
    transition: color 0.3s ease;
}

.comment-action:hover {
    color: #007aff;
}

.comment-action.delete-action:hover {
    color: #ff3b30;
}

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

.comment-replies {
    margin-top: 12px;
    padding-left: 20px;
    border-left: 2px solid #f0f0f0;
}

.comment-reply {
    margin-top: 12px;
    padding: 12px;
    background-color: #f8f8f8;
    border-radius: 8px;
}

.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: #86868b;
}

.no-comments i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-comments-text {
    font-size: 16px;
    margin-bottom: 8px;
}

.no-comments-subtext {
    font-size: 14px;
}

@media (max-width: 768px) {
    .comment-form {
        padding: 16px;
    }
    
    .comment-form-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .comment-submit-btn {
        width: 100%;
    }
    
    .comment-actions {
        gap: 12px;
    }
    
    .comment-replies {
        padding-left: 12px;
    }
}

/* 统计卡片样式 */
.statistics-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0 30px 0;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
    color: white;
    position: relative;
    overflow: hidden;
}

.statistics-card::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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.statistics-content {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.statistics-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.statistics-icon i {
    font-size: 24px;
    color: white;
}

.statistics-info {
    flex: 1;
}

.statistics-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.statistics-count {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 移除可能导致乱码的emoji图标 */
/* .statistics-count::before {
    content: '\f080';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 14px;
    margin-right: 4px;
} */

.statistics-description {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.85;
    max-width: 600px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .statistics-card {
        padding: 20px;
        margin: 15px 0 25px 0;
    }
    
    .statistics-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .statistics-icon {
        width: 50px;
        height: 50px;
    }
    
    .statistics-icon i {
        font-size: 20px;
    }
    
    .statistics-title {
        font-size: 20px;
    }
    
    .statistics-count {
        font-size: 14px;
    }
    
    .statistics-description {
        font-size: 13px;
    }
}

/* 不同分类的渐变色彩 */
.statistics-card.ai-category {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.statistics-card.smart-home-category {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.statistics-card.product-design-category {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.statistics-card.programming-category {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.statistics-card.chat-category {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.statistics-card.knx-category {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
}

/* 恢复的文章详情页样式 */
.article-detail-content {
    background-color: #f5f5f7;
    min-height: calc(100vh - 100px);
    padding: 0 20px 20px 20px;
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 40px;
}

/* 面包屑导航 */
.breadcrumb-nav {
    background-color: #f5f5f7;
    padding: 20px 0 12px 0;
    margin-top: 44px;
    border-bottom: none;
}

.breadcrumb-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-item {
    color: #86868b;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.breadcrumb-item:hover {
    color: #007aff;
}

.breadcrumb-current {
    color: #1d1d1f;
    font-weight: 500;
    font-size: 14px;
}

.breadcrumb-separator {
    color: #d2d2d7;
    margin: 0 8px;
}

/* 文章头部 */
.article-header {
    border-bottom: 1px solid #e5e5e7;
    padding-bottom: 24px;
    margin-bottom: 32px;
}

.article-detail-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    color: #1d1d1f;
    margin: 0 0 24px 0;
}

.article-meta-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #6c757d;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid #e5e5e7;
    background-size: cover;
    background-position: center;
}

.author-name {
    font-weight: 500;
    color: #1d1d1f;
}

.meta-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.meta-separator {
    color: #dee2e6;
    font-weight: 300;
}

.meta-info {
    display: flex;
    align-items: center;
}

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

.meta-item i {
    font-size: 12px;
    color: #86868b;
}

.stats-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-item i {
    font-size: 12px;
    color: #86868b;
}





/* 文章正文 */
.article-body {
    line-height: 1.8;
    color: #1d1d1f;
}

.article-content-text {
    margin-bottom: 24px;
}

.article-content-text h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 32px 0 16px 0;
    color: #1d1d1f;
    border-bottom: 2px solid #007aff;
    padding-bottom: 8px;
}

.article-content-text p {
    margin: 16px 0;
    font-size: 16px;
    line-height: 1.8;
}

.article-content-text ul {
    margin: 16px 0;
    padding-left: 20px;
}

.article-content-text ol {
    margin: 16px 0;
    padding-left: 24px;
}

.article-content-text li {
    margin: 8px 0;
    font-size: 16px;
    line-height: 1.7;
}

/* 文章内容中的图片样式 */
.article-content-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 支持Quill编辑器的图片对齐样式 */
.article-content-text .ql-align-center {
    text-align: center;
}

.article-content-text .ql-align-center img {
    margin: 20px auto;
}

.article-content-text .ql-align-right {
    text-align: right;
}

.article-content-text .ql-align-right img {
    margin: 20px 0 20px auto;
}

.article-content-text .ql-align-left {
    text-align: left;
}

.article-content-text .ql-align-left img {
    margin: 20px auto 20px 0;
}

/* 支持Quill编辑器的文本对齐样式 */
.article-content-text .ql-align-center {
    text-align: center;
}

.article-content-text .ql-align-right {
    text-align: right;
}

.article-content-text .ql-align-left {
    text-align: left;
}

.article-content-text .ql-align-justify {
    text-align: justify;
}

/* 支持Quill编辑器的列表样式 */
.article-content-text .ql-editor ul,
.article-content-text .ql-editor ol {
    margin: 16px 0;
    padding-left: 24px;
}

.article-content-text .ql-editor li {
    margin: 8px 0;
    line-height: 1.7;
}

/* 支持Quill编辑器的引用样式 */
.article-content-text .ql-editor blockquote {
    border-left: 4px solid #007aff;
    padding: 16px 20px;
    margin: 20px 0;
    font-style: italic;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
}

/* 支持Quill编辑器的代码样式 */
.article-content-text .ql-editor code {
    background: #2d3748;
    color: #e2e8f0;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 14px;
    border: 1px solid #4a5568;
}

.article-content-text .ql-editor pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid #4a5568;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.article-content-text .ql-editor pre code {
    background: none;
    color: inherit;
    padding: 0;
    border: none;
    font-size: 14px;
    line-height: 1.6;
}

/* 文章内容中的视频样式 */
.article-content-text video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 文章内容中的表格样式 */
.article-content-text table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-content-text table th,
.article-content-text table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e5e7;
}

.article-content-text table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #1d1d1f;
}

.article-content-text table tr:hover {
    background-color: #f8f9fa;
}

/* 文章内容中的代码块样式 */
.article-content-text code {
    background: #2d3748;
    color: #e2e8f0;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 14px;
    border: 1px solid #4a5568;
}

.article-content-text pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid #4a5568;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* 代码块复制按钮样式 */
.article-content-text pre .copy-button {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.article-content-text pre .copy-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.article-content-text pre .copy-button:active {
    transform: translateY(0);
}

.article-content-text pre .copy-button.copied {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.article-content-text pre code {
    background: none;
    color: inherit;
    padding: 0;
    border: none;
    font-size: 14px;
    line-height: 1.6;
}

/* 文章内容中的引用块样式 */
.article-content-text blockquote {
    border-left: 4px solid #007AFF;
    padding: 16px 20px;
    margin: 20px 0;
    font-style: italic;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
    position: relative;
}

/* 移除引号装饰 */
/* .article-content-text blockquote::before {
    content: '"';
    font-size: 48px;
    color: #007AFF;
    position: absolute;
    top: -10px;
    left: 10px;
    font-family: serif;
} */

/* 文章底部操作栏 */
.article-footer-actions {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e5e5e7;
}

.action-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.action-btn {
    background-color: #f5f5f7;
    border: none;
    padding: 12px 20px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
}

.action-btn:hover {
    background-color: #e5e5e7;
    transform: translateY(-1px);
}

.like-btn:hover {
    /* 保持与评论、分享按钮一致的悬停效果 */
    background-color: #e5e5e7;
    color: #1d1d1f;
}

.action-btn.liked {
    /* 保持与评论、分享按钮完全一致的默认样式 */
    background-color: white;
    color: #6c757d;
}

.action-text {
    margin-right: 4px;
}

.action-count {
    background-color: #f8f9fa;
    color: #6c757d;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

/* 评论系统 */
.comments-section {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e5e5e7;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.comments-title {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0;
}

.comments-count {
    background-color: #f5f5f7;
    color: #86868b;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* 评论表单 */
.comment-form {
    background-color: #f5f5f7;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.comment-form-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #007aff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.comment-user-info {
    flex: 1;
}

.comment-username {
    font-weight: 600;
    color: #1d1d1f;
    font-size: 14px;
}

.comment-user-status {
    color: #86868b;
    font-size: 12px;
}

.comment-input-container {
    margin-bottom: 16px;
}

.comment-textarea {
    width: 100%;
    min-height: 80px;
    border: 1px solid #e5e5e7;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    font-family: inherit;
}

.comment-textarea:focus {
    outline: none;
    border-color: #007aff;
}

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

.comment-char-count {
    color: #86868b;
    font-size: 12px;
}

.comment-submit-btn {
    background-color: #007aff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.comment-submit-btn:hover:not(:disabled) {
    background-color: #0056b3;
}

.comment-submit-btn:disabled {
    background-color: #e5e5e7;
    color: #86868b;
    cursor: not-allowed;
}

/* 评论列表 */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .breadcrumb-container {
        padding: 0 16px;
    }

    .article-container {
        padding: 24px 16px;
    }

    .article-detail-title {
        font-size: 24px;
    }

    .article-meta-line {
        gap: 8px;
        margin-top: 8px;
        margin-bottom: 16px;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .meta-right {
        gap: 6px;
    }

    .meta-separator {
        display: none;
    }

    .author-info {
        gap: 6px;
    }

    .author-avatar-small {
        width: 20px;
        height: 20px;
    }

    .meta-separator {
        display: none;
    }

    .stats-info {
        gap: 8px;
    }

    .action-buttons {
        flex-wrap: wrap;
        gap: 12px;
    }
}
