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

/* CSS变量 */
:root {
    --primary-color: #007AFF;
    --secondary-color: #5856D6;
    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F5F7;
    --border-color: #E5E5E7;
    --accent-color: #FF3B30;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* 全局样式 */
html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    line-height: 1.6;
}

/* 屏幕阅读器专用 - 视觉隐藏但可被屏幕阅读器读取 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* 导航栏 */
header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

/* 网站logo样式 */
.logo {
    text-decoration: none; /* 移除下划线 */
    display: flex; /* 使用flexbox布局 */
    align-items: center; /* 垂直居中对齐 */
}

/* logo图片样式 */
.logo-image {
    height: 50px; /* logo图片高度 */
    width: auto; /* 宽度自适应，保持比例 */
    object-fit: contain; /* 图片适应容器，保持完整显示 */
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

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

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 搜索框 */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    flex-wrap: nowrap;
    min-width: fit-content;
}

.search-container:focus-within,
.search-container.search-focused {
    background: var(--bg-primary);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
    transform: scale(1.02);
}

.search-input {
    flex: 0 0 auto;
    border: none;
    background: transparent;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
    width: 185px; /* 搜索框宽度 */
    transition: none;
}

.search-input::placeholder {
    color: var(--text-secondary);
    font-style: italic;
}

.search-btn {
    background: transparent;
    border: none;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 24px 24px 0;
    position: relative;
    overflow: hidden;
}

.search-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(0, 122, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.search-btn:hover {
    color: var(--primary-color);
    background: rgba(0, 122, 255, 0.05);
}

.search-btn:hover::before {
    width: 40px;
    height: 40px;
}

.search-btn:active {
    transform: scale(0.95);
}

/* 搜索下拉菜单 */
.search-select {
    border: none;
    background: transparent;
    padding: 10px 32px 10px 12px;
    font-size: 13px;
    color: var(--text-primary);
    outline: none;
    cursor: pointer;
    border-left: 1px solid var(--border-color);
    margin: 0;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2386868B' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: all 0.3s ease;
    min-width: 80px;
}

.search-select:hover {
    color: var(--primary-color);
    background-color: rgba(0, 122, 255, 0.05);
}

.search-select:focus {
    color: var(--primary-color);
    background-color: rgba(0, 122, 255, 0.05);
}

/* 高级搜索链接 */
.search-advanced-link {
    padding: 10px 12px;
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    border-left: 1px solid var(--border-color);
    margin-left: 0;
    display: inline-flex;
    align-items: center;
}

.search-advanced-link:hover {
    color: var(--primary-color);
    background-color: rgba(0, 122, 255, 0.05);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
}

/* 主内容 */
main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* 幻灯片 */
.slider-container {
    position: relative;
    background: var(--bg-primary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 6 / 3;
    width: 100%;
    max-width: 1400px;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slider-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    flex-shrink: 0;
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slider-slide.active img {
    transform: scale(1.05);
}

.slider-slide:hover img {
    transform: scale(1.08);
}

.slider-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), transparent);
    padding: 40px;
    color: white;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-slide:not(.active) .slider-content {
    opacity: 0;
    transform: translateY(30px);
}

.slider-tag {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.1s;
}

.slider-slide:not(.active) .slider-tag {
    opacity: 0;
    transform: translateY(20px);
}

.slider-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
    color: white;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.2s;
}

.slider-slide:not(.active) .slider-title {
    opacity: 0;
    transform: translateY(20px);
}

.slider-excerpt {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin-bottom: 16px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.3s;
}

.slider-slide:not(.active) .slider-excerpt {
    opacity: 0;
    transform: translateY(20px);
}

.slider-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.4s;
}

.slider-slide:not(.active) .slider-meta {
    opacity: 0;
    transform: translateY(20px);
}

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

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    position: relative;
}

.slider-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slider-dot.active {
    background: rgba(255, 255, 255, 0.8);
    width: 24px;
    border-radius: 12px;
    transform: scale(1.1);
}

.slider-dot.active::before {
    opacity: 1;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.25); /* 提高默认透明度 */
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    overflow: hidden;
}

.slider-arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.35); /* 提高悬停透明度 */
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow:hover::before {
    width: 100%;
    height: 100%;
}

.slider-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

/* 文章列表 */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.article-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    background: var(--bg-primary);
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s;
    cursor: pointer;
}

.article-item:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.article-item:last-child {
    border-bottom: none;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.article-item:hover {
    background: var(--bg-secondary);
}

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

.article-item.no-thumb .article-item-content {
    padding-left: 0;
}

.article-item-thumb {
    width: 200px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

/* 悬停时的缩略图缩放效果 */
.article-item:hover .article-item-thumb img {
    transform: scale(1.05);
}

/* 文章缩略图链接样式 */
.article-item-thumb a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.article-item-thumb a:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 文章内容区域 */
.article-item-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 文章头部信息区域 */
.article-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

/* 文章标签样式 */
.article-item-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(245, 245, 247, 0.8) 100%);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
}

.article-item-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.4s;
}

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

.article-item-tag:hover::before {
    left: 100%;
}

/* 不同类型标签的颜色变体 - 使用类名方式实现更好的兼容性 */
.article-item-tag.tag-design {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
    border-color: #90caf9;
}

.article-item-tag.tag-tool {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    color: #6a1b9a;
    border-color: #ce93d8;
}

.article-item-tag.tag-tutorial {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c8 100%);
    color: #2e7d32;
    border-color: #81c784;
}

.article-item-tag.tag-news {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #e65100;
    border-color: #ffb74d;
}

/* 文章标题样式 */
.article-item-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    color: var(--text-primary);
    overflow-wrap: break-word;
    word-break: break-word;
}

/* 文章摘要样式 */
.article-item-excerpt {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 文章元信息样式 */
.article-item-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* 文章底部容器（meta和tag同行） */
.article-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

/* ============================================
   侧边栏样式
   ============================================ */
aside {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 侧边栏小部件容器 */
.sidebar-widget {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
}

/* 小部件标题样式 */
.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.trending-list {
    list-style: none;
}

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

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

.trending-item-link {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    color: inherit;
    transition: padding-left 0.3s;
}

.trending-item-link:hover {
    padding-left: 8px;
}

.trending-item-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.trending-item-meta {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: right;
}

/* 热门标签容器 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* 热门标签基础样式 */
.tag {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

/* 热门标签内链接样式优化：去除下划线，继承颜色，完整点击区域 */
.tag a {
    color: inherit;
    text-decoration: none;
    display: block;
}

/* 热门标签悬停效果 */
.tag:hover {
    background: var(--primary-color);
    color: white;
}

/* 热门标签悬停时链接文字颜色 */
.tag:hover a {
    color: white;
}

/* ============================================
   栏目点击排行样式
   ============================================ */
.custom-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s;
}

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

.custom-list li:hover {
    background-color: var(--bg-secondary);
}

.custom-list a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    width: 100%;
    transition: color 0.3s;
}

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

.custom-list .thumbnail {
    flex-shrink: 0;
    display: block;
}

.custom-list .thumbnail img {
    width: 90px;
    height: 60px;
    border-radius: 6px;
    display: block;
    object-fit: cover;
}

.custom-list .content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.custom-list .text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
    display: block;
}

.custom-list .meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.custom-list .muted {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================
   侧边轮播样式
   ============================================ */
.sidebar-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.sidebar-carousel-track {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* 1:1 aspect ratio */
}

.sidebar-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: block;
}

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

.sidebar-carousel-slide img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.sidebar-carousel-controls {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}

.sidebar-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--border-color);
    cursor: pointer;
    transition: background-color 0.3s;
}

.sidebar-carousel-dot.active {
    background: var(--primary-color);
}

.sidebar-carousel-dot:hover {
    background: var(--primary-color);
    opacity: 0.7;
}

/* ============================================
   页脚样式
   ============================================ */
footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 32px 24px;
    margin-top: 40px;
}

/* 页脚内容容器 */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

/* 页脚章节标题 */
.footer-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

/* 页脚链接列表 */
.footer-links {
    list-style: none;
}

/* 页脚链接列表项 */
.footer-links li {
    margin-bottom: 8px;
}

/* 页脚链接样式 */
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

/* 页脚链接悬停效果 */
.footer-links a:hover {
    color: var(--primary-color);
}

/* 页脚二维码区域 */
.footer-qr-section {
    text-align: center;
}

.footer-qr-codes {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.footer-qr-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    padding: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.footer-qr-image:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.footer-qr-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

.footer-bottom {
    max-width: 1400px;
    margin: 32px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

/* 友情链接区域 */
.footer-links-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
}

.footer-links-container {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-links-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
}

.footer-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.footer-link-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    position: relative;
    padding: 4px 0;
}

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

.footer-link-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.footer-link-item:hover::after {
    width: 100%;
}

/* 响应式 - 平板 */
@media (max-width: 968px) {
    .container {
        grid-template-columns: 1fr;
        padding: 24px 20px;
        gap: 24px;
    }

    .nav-links {
        gap: 20px;
    }

    .slider-container {
        min-height: 200px;
    }

    .slider-title {
        font-size: 24px;
    }

    .slider-content {
        padding: 24px;
    }

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

    .article-item-thumb {
        width: 150px;
        height: 100px;
    }
}

/* 响应式 - 移动端 */
@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        height: auto;
        padding: 16px 24px;
    }

    .container {
        padding: 20px 16px;
    }

    main {
        gap: 20px;
    }

    aside {
        gap: 16px;
    }

    footer {
        margin-top: 32px;
        padding: 24px 16px;
    }

    .footer-qr-codes {
        flex-direction: row;
        gap: 12px;
        justify-content: space-between;
    }

    .footer-qr-image {
        width: 90px;
        height: 90px;
    }

    .footer-qr-label {
        font-size: 11px;
    }

    .nav-links {
        width: 100%;
        margin-top: 16px;
        gap: 16px;
        flex-wrap: wrap;
    }

    .search-container {
        margin-top: 12px;
        width: 100%;
    }

    .search-input {
        width: 100%;
        padding: 12px 16px;
    }

    .section-title {
        font-size: 24px;
    }

    .slider-container {
        min-height: 180px;
    }

    .slider-title {
        font-size: 20px;
    }

    .slider-excerpt {
        font-size: 14px;
        -webkit-line-clamp: 1;
    }

    .slider-content {
        padding: 20px;
    }

    .slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .slider-arrow.prev {
        left: 10px;
    }

    .slider-arrow.next {
        right: 10px;
    }

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

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

    .article-item.no-thumb .article-item-content {
        padding-left: 0;
    }
}

/* ============================================
   栏目页面样式
   ============================================ */

/* ============================================
   栏目页头部
   - 统一页面宽度：1400px
   - 居中显示
   ============================================ */
.category-header {
    text-align: center;
    margin-bottom: 24px;
    padding: 24px 24px;
    max-width: 1400px; /* 栏目页头部最大宽度，与页面容器保持一致 */
    margin-left: auto;
    margin-right: auto;
}

.category-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.category-description {
    font-size: 20px;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* 筛选器栏 */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

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

.filter-tab {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.filter-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.filter-tab:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
    transform: translateY(-1px);
}

.filter-tab:hover::before {
    left: 100%;
}

.filter-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 12px rgba(0, 122, 255, 0.4);
    transform: translateY(-1px);
    font-weight: 600;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
}

/* 栏目网格布局 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

/* 特色项目 */
.featured-project {
    grid-column: 1 / -1;
    background: var(--bg-primary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

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

.project-image {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

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

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

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), transparent);
    padding: 40px;
    color: white;
}

.project-tag {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

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

.project-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
}

.project-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.project-stats {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* 网格项目 */
.grid-project {
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.grid-project:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.grid-project .project-image {
    height: 240px;
}

.grid-project .project-overlay {
    padding: 20px;
}

.grid-project .project-title {
    font-size: 18px;
    margin-bottom: 6px;
}

.grid-project .project-description {
    font-size: 14px;
    margin-bottom: 12px;
}

.grid-project .project-content {
    padding: 20px;
}

.grid-project .project-meta {
    padding: 0 16px 16px;
    justify-content: space-between;
}

/* 分页组件 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-secondary);
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

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

.page-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-dots {
    color: var(--text-secondary);
    font-size: 14px;
}

/* 侧边栏趋势标签 */
.trending-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.trend-tag {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

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

/* 热门项目列表 */
.popular-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

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

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

.popular-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.popular-content span {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 导航栏活动状态 */
.nav-links a.active {
    color: var(--primary-color);
    position: relative;
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

/* ============================================
   栏目页面响应式设计 - 平板端适配 (≤968px)
   ============================================ */
@media (max-width: 968px) {
    .category-title {
        font-size: 36px;
    }

    .category-description {
        font-size: 18px;
    }

    .filter-bar {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

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

    .featured-project .project-image {
        height: 280px;
    }

    .grid-project .project-image {
        height: 220px;
    }
}

/* ============================================
   栏目页面响应式设计 - 移动端适配 (≤768px)
   ============================================ */
@media (max-width: 768px) {
    .category-header {
        padding: 16px 0;
        margin-bottom: 16px;
    }

    .category-title {
        font-size: 28px;
    }

    .category-description {
        font-size: 16px;
    }

    .filter-bar {
        margin-bottom: 12px;
    }

    .filter-tabs {
        flex-wrap: wrap;
    }

    .filter-tab {
        padding: 6px 12px;
        font-size: 13px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    }

    .filter-tab:hover,
    .filter-tab.active {
        box-shadow: 0 2px 6px rgba(0, 122, 255, 0.3);
    }

    .featured-project .project-image {
        height: 240px;
    }

    .project-overlay {
        padding: 24px !important;
    }

    .grid-project .project-image {
        height: 180px;
    }

    .grid-project .project-content {
        padding: 12px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 4px;
    }

    .page-btn {
        padding: 6px 8px;
        font-size: 13px;
    }
}

/* ============================================
   图片画廊页面样式
   ============================================ */

/* 图片栏目栏包装器
 * 优化说明：
 * - 独立于.container容器，不受其宽度限制
 * - 提供全宽布局，让图片栏目区域可以加宽并居中
 */
.gallery-nav-wrapper {
    width: 100%;
    padding: 0 24px;
    margin-bottom: 32px;
}

/* 图片栏目栏
 * 优化说明：
 * - 加宽到最大宽度1600px，提供更宽敞的展示空间
 * - 使用margin: 0 auto实现水平居中
 * - 在大屏幕上提供更宽敞的展示空间，提升视觉效果
 */
.gallery-nav {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 24px;
    margin: 0 auto;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    max-width: 1600px;
    width: 100%;
}

.gallery-nav-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gallery-nav-title::before {
    content: '📂';
    font-size: 20px;
}

.gallery-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.gallery-category {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.gallery-category:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    color: var(--text-primary);
    border-color: rgba(0, 122, 255, 0.3);
}

.gallery-category.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0077ed 100%);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
    transform: translateY(-2px);
}

.gallery-category.active::before {
    display: none;
}

.category-icon {
    font-size: 16px;
    line-height: 1;
}

.category-name {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

/* ============================================
   响应式设计 - 图片栏目栏
   - 断点：1400px（与页面容器宽度一致）
   ============================================ */
@media (max-width: 1400px) {
    .gallery-nav-wrapper {
        padding: 0 16px; /* 中等屏幕左右各留16px间距 */
    }
}

@media (max-width: 768px) {
    .gallery-nav-wrapper {
        padding: 0 12px; /* 移动端左右各留12px间距 */
    }
    
    .gallery-nav {
        padding: 20px 16px;
    }

    .gallery-categories {
        gap: 8px;
    }

    .gallery-category {
        padding: 10px 12px;
        font-size: 13px;
    }
}

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

    .gallery-nav-title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .gallery-categories {
        gap: 6px;
    }

    .gallery-category {
        padding: 8px 10px;
        font-size: 12px;
    }

    .category-icon {
        font-size: 14px;
    }
}

/* 图片展示专用的样式 */
.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(6, 200px);
    gap: 16px;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

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

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

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

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5), transparent);
    padding: 20px;
    color: white;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7), transparent);
    transform: translateY(-5px);
}

.gallery-item-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    white-space: nowrap;
    cursor: help; /* 提示用户可以悬停查看完整标题 */
}

.gallery-item-title[title] {
    border-bottom: 1px dotted rgba(255, 255, 255, 0.5);
}

.gallery-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    opacity: 0.8;
    margin-top: 8px;
}

.gallery-item-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gallery-item-date {
    font-size: 11px;
}

/* ============================================
   美化筛选器样式
   ============================================ */

/* ============================================
   美化筛选器样式
   - 统一页面宽度：1400px
   - 玻璃拟态效果
   ============================================ */
.filter-bar.enhanced {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 250, 251, 0.95) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    max-width: 1400px; /* 筛选器最大宽度，与页面容器保持一致 */
    margin: 0 auto;
}

.filter-bar.enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 122, 255, 0.05), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    justify-content: center;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 2px solid transparent;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 252, 0.8) 100%);
    color: var(--text-secondary);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    white-space: nowrap;
    min-width: fit-content;
}

.filter-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.filter-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 122, 255, 0.3);
}

.filter-tab:hover::before {
    left: 100%;
}

.filter-tab.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0077ed 100%);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.3);
    transform: translateY(-2px);
}

.filter-tab.active::before {
    display: none;
}

.filter-icon {
    font-size: 16px;
    line-height: 1;
}

.filter-text {
    font-weight: 500;
}

.filter-sort {
    display: flex;
    justify-content: center;
}

.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    border: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    min-width: fit-content;
}

.sort-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 8px;
    background: white;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.sort-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.1);
}

/* ============================================
   美化分页样式
   ============================================ */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    padding: 20px 0;
}

.page-btn {
    padding: 12px 16px;
    border: 2px solid rgba(229, 231, 235, 0.8);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    color: var(--text-secondary);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.page-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.4s;
}

.page-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 122, 255, 0.3);
}

.page-btn:hover::before {
    left: 100%;
}

.page-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0077ed 100%);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
    transform: translateY(-1px);
}

.page-btn.active::before {
    display: none;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.page-btn:disabled:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pagination-dots {
    color: var(--text-secondary);
    font-size: 16px;
    padding: 0 8px;
}

.prev-btn, .next-btn {
    font-weight: 600;
    min-width: 100px;
}

/* ============================================
   响应式设计 - 图片画廊
   - 断点：1400px（与页面容器宽度一致）
   ============================================ */
@media (max-width: 1400px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(8, 180px);
        gap: 14px;
    }
}

@media (max-width: 968px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(10, 160px);
        gap: 12px;
    }

    .gallery-container {
        padding: 24px 20px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(15, 140px);
        gap: 10px;
    }

    .gallery-container {
        padding: 20px 16px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(30, 120px);
        gap: 8px;
    }

    .filter-tabs {
        justify-content: center;
    }

    .filter-tab {
        padding: 10px 16px;
        font-size: 13px;
    }

    .sort-wrapper {
        flex-direction: column;
        gap: 8px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 6px;
    }

    .page-btn {
        padding: 10px 12px;
        font-size: 13px;
        min-width: 80px;
    }
}

/* ============================================
   侧边栏小部件样式
   ============================================ */

/* 工具列表 */
.tools-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    background: var(--bg-secondary);
}

.tool-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.tool-item:nth-child(2) .tool-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

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

.tool-content {
    flex: 1;
}

.tool-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.tool-desc {
    font-size: 11px;
    color: var(--text-secondary);
}

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

.comment-item {
    padding: 12px;
    border-radius: 8px;
    background: var(--bg-secondary);
}

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

.comment-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.comment-item:nth-child(2) .comment-avatar {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.comment-author {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.comment-content {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 6px;
}

.comment-time {
    font-size: 11px;
    color: var(--text-secondary);
}

/* 作者列表 */
.authors-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.author-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.author-item:nth-child(2) .author-avatar {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.author-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 订阅表单 */
.subscription-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.subscription-input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 14px;
}

.subscription-btn {
    width: 100%;
    padding: 10px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.subscription-btn:hover {
    background: #0051D5;
}

/* 设计灵感网格 */
.inspiration-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.inspiration-item {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.inspiration-item:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

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

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

.inspiration-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 12px;
    text-align: center;
}

/* 资源下载列表 */
.resources-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.resource-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    background: var(--bg-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

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

.resource-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.resource-item:nth-child(2) .resource-icon {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.resource-item:nth-child(3) .resource-icon {
    background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%);
}

.resource-content {
    flex: 1;
}

.resource-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.resource-desc {
    font-size: 11px;
    color: var(--text-secondary);
}

/* 数据统计 */
.data-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.stat-item:nth-child(3) .stat-number {
    color: var(--accent-color);
}

.stat-item:nth-child(5) .stat-number {
    color: #2e7d32;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.stat-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

/* ============================================
   文章详情页面样式
   ============================================ */

/* ============================================
   文章详情页面容器
   - 统一页面宽度：1400px
   - 网格布局：文章内容 + 侧边栏（280px）
   - 适用于：文章详情页、下载详情页等
   ============================================ */
/* ============================================
   文章容器样式 - 防止内容溢出
   ============================================ */
.article-container {
    max-width: 1400px; /* 文章页面容器最大宽度，与列表页面保持一致 */
    margin: 0 auto; /* 水平居中 */
    padding: 32px 24px; /* 上下32px，左右24px内边距 */
    display: grid;
    grid-template-columns: 1fr 280px; /* 文章内容自适应，侧边栏固定280px */
    gap: 32px; /* 文章内容和侧边栏之间的间距 */
    overflow-x: hidden; /* 防止水平方向内容溢出 */
    box-sizing: border-box; /* 确保padding和border包含在宽度内 */
}

/* 文章主内容区域 - 防止溢出 */
.article-main {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 100%; /* 最大宽度不超过父容器 */
    overflow-x: hidden; /* 隐藏水平方向的溢出内容 */
    box-sizing: border-box; /* 确保padding和border包含在宽度内 */
}

/* 文章包装器 */
.article-post-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* 文章主体容器 - 防止溢出 */
.article-post {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow);
    max-width: 100%; /* 最大宽度不超过父容器 */
    overflow-x: hidden; /* 隐藏水平方向的溢出内容 */
    box-sizing: border-box; /* 确保padding和border包含在宽度内 */
}

/* 面包屑导航 */
.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.article-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.article-breadcrumb a:hover {
    color: #0051D5;
}

.article-breadcrumb span {
    color: var(--text-secondary);
}

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

.article-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* 文章标题 */
.article-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 24px;
}

/* 文章元信息 */
.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 32px;
}

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

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

.author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.author-bio {
    font-size: 14px;
    color: var(--text-secondary);
}

.article-stats {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

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

.stat-item-link {
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
    padding: 2px 4px;
    margin: -2px -4px;
}

.stat-item-link:hover {
    color: var(--primary-color);
    background: rgba(0, 122, 255, 0.08);
}

.stat-item-link:active {
    transform: scale(0.98);
}

/* 文章封面图 */
.article-cover {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 32px;
}

.article-cover img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   文章内容区域 - 防止内容溢出
   ============================================ */
.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
    /* 防止水平方向内容溢出 */
    overflow-x: hidden; /* 隐藏水平滚动条，防止内容横向溢出 */
    /* 长文本自动换行处理 */
    overflow-wrap: break-word; /* 允许在单词内部换行，防止长单词溢出 */
    word-wrap: break-word; /* 兼容旧浏览器的换行属性 */
    word-break: break-word; /* 允许在任意字符间换行 */
    max-width: 100%; /* 最大宽度不超过父容器 */
    box-sizing: border-box; /* 确保padding和border包含在宽度内 */
}

.article-lead {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 32px;
    padding: 20px;
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
}

.article-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 40px 0 20px 0;
    color: var(--text-primary);
    line-height: 1.3;
}

.article-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 32px 0 16px 0;
    color: var(--text-primary);
    line-height: 1.4;
}

/* 段落样式 - 防止文本溢出 */
.article-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    max-width: 100%; /* 段落最大宽度不超过父容器 */
    overflow-wrap: break-word; /* 长单词自动换行 */
    word-wrap: break-word; /* 兼容旧浏览器的换行属性 */
}

/* ============================================
   文章内容通用样式 - 防止所有子元素溢出
   ============================================ */
/* 防止文章内容中的各种元素溢出 */
.article-content * {
    max-width: 100%; /* 所有子元素最大宽度不超过父容器 */
    box-sizing: border-box; /* 确保padding和border包含在宽度内 */
}

/* ============================================
   表格包装器 - 用于处理超宽表格的横向滚动
   ============================================ */
/* 
   使用说明：如果表格内容很宽，可以用 <div class="table-wrapper"><table>...</table></div> 包裹表格
   这样可以在保持表格90%宽度的同时，允许内容横向滚动
*/
.article-content .table-wrapper {
    width: 90%; /* 包装器宽度为页面90% */
    max-width: 90%; /* 最大宽度限制 */
    margin: 36px auto; /* 上下36px间距，水平居中，与表格样式一致 */
    overflow-x: auto; /* 内容超出时显示横向滚动条 */
    overflow-y: hidden; /* 隐藏纵向滚动条 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04); /* 与表格一致的阴影效果 */
    border-radius: 12px; /* 与表格一致的圆角 */
    background: var(--bg-primary); /* 背景色 */
    border: 1px solid rgba(255, 255, 255, 0.15); /* 边框 */
    /* 自定义滚动条样式 */
    scrollbar-width: thin; /* Firefox 滚动条宽度 */
    scrollbar-color: rgba(0, 122, 255, 0.3) transparent; /* Firefox 滚动条颜色 */
}

/* Webkit浏览器滚动条样式 */
.article-content .table-wrapper::-webkit-scrollbar {
    height: 8px; /* 滚动条高度 */
}

.article-content .table-wrapper::-webkit-scrollbar-track {
    background: transparent; /* 滚动条轨道背景 */
    border-radius: 4px; /* 圆角 */
}

.article-content .table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0, 122, 255, 0.3); /* 滚动条滑块颜色 */
    border-radius: 4px; /* 圆角 */
    transition: background 0.2s ease; /* 过渡效果 */
}

.article-content .table-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 122, 255, 0.5); /* 悬停时颜色加深 */
}

/* 包装器内的表格样式 */
.article-content .table-wrapper table {
    width: 100%; /* 表格占满包装器宽度 */
    margin: 0; /* 移除默认外边距 */
    border-radius: 0; /* 移除圆角，由包装器控制 */
    box-shadow: none; /* 移除阴影，由包装器控制 */
}

/* ============================================
   表格样式优化 - 宽度90%，自动居中，统一边框
   ============================================ */
/* 
   表格默认样式：
   - 宽度为页面90%，自动水平居中
   - 所有边框统一为1px
   - 添加阴影和圆角效果
   - 优化的视觉层次和交互效果
   - 现代化的设计风格
*/
.article-content table {
    width: 90%; /* 表格宽度为页面90% */
    max-width: 90%; /* 最大宽度限制 */
    margin: 36px auto; /* 上下36px间距，水平自动居中，增加间距提升视觉层次 */
    border-collapse: collapse; /* 合并边框模式，确保网格线清晰 */
    border-spacing: 0; /* 单元格间距为0 */
    display: table; /* 确保表格显示为table类型 */
    position: relative; /* 相对定位，用于内部元素定位 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04); /* 更立体的阴影效果 */
    border-radius: 12px; /* 更大的圆角，更现代 */
    overflow: hidden; /* 隐藏溢出内容，保持圆角效果 */
    background: var(--bg-primary); /* 表格背景色 */
    border: 2px solid rgba(255, 255, 255, 0.25); /* 表格外边框加粗，更明显的网格 */
    backdrop-filter: blur(10px); /* 背景模糊效果，增加质感 */
}

/* 表格单元格样式 - 所有边框统一为1px，显示清晰网格 */
.article-content table td,
.article-content table th {
    word-break: break-word; /* 允许在单词内部换行 */
    overflow-wrap: break-word; /* 长文本自动换行 */
    padding: 16px 20px; /* 单元格内边距：上下16px，左右20px，更舒适的间距 */
    text-align: left; /* 文本左对齐 */
    border-top: 1px solid rgba(255, 255, 255, 0.2); /* 顶部边框 */
    border-right: 1px solid rgba(255, 255, 255, 0.2); /* 右侧边框 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* 底部边框 */
    border-left: 1px solid rgba(255, 255, 255, 0.2); /* 左侧边框 */
    vertical-align: middle; /* 垂直居中对齐 */
    font-size: 15px; /* 稍微增大字体，提高可读性 */
    line-height: 1.7; /* 行高优化，提高可读性 */
    color: var(--text-primary); /* 文字颜色 */
    transition: background-color 0.2s ease, color 0.2s ease; /* 平滑过渡效果 */
}

/* 第一列单元格样式 - 确保左边框显示 */
.article-content table td:first-child,
.article-content table th:first-child {
    padding-left: 20px; /* 第一列左侧内边距稍大 */
    border-left: 1px solid rgba(255, 255, 255, 0.2); /* 确保第一列左边框显示 */
}

/* 最后一列单元格样式 - 确保右边框显示 */
.article-content table td:last-child,
.article-content table th:last-child {
    padding-right: 20px; /* 最后一列右侧内边距稍大 */
    border-right: 1px solid rgba(255, 255, 255, 0.2); /* 确保最后一列右边框显示 */
}

/* 第一行（表头）顶部边框 - 确保顶部边框显示 */
.article-content table thead tr:first-child th {
    border-top: 1px solid rgba(255, 255, 255, 0.2); /* 表头顶部边框 */
}

/* 第一行第一个单元格 - 左上角 */
.article-content table thead tr:first-child th:first-child {
    border-top-left-radius: 12px; /* 左上角圆角 */
    border-top: 1px solid rgba(255, 255, 255, 0.2); /* 确保顶部边框显示 */
    border-left: 1px solid rgba(255, 255, 255, 0.2); /* 确保左边框显示 */
}

/* 第一行最后一个单元格 - 右上角 */
.article-content table thead tr:first-child th:last-child {
    border-top-right-radius: 12px; /* 右上角圆角 */
    border-top: 1px solid rgba(255, 255, 255, 0.2); /* 确保顶部边框显示 */
    border-right: 1px solid rgba(255, 255, 255, 0.2); /* 确保右边框显示 */
}

/* 最后一行底部边框 - 确保底部边框显示 */
.article-content table tbody tr:last-child td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* 保持底部边框，显示完整网格 */
}

/* 最后一行第一个单元格 - 左下角 */
.article-content table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px; /* 左下角圆角 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* 确保底部边框显示 */
    border-left: 1px solid rgba(255, 255, 255, 0.2); /* 确保左边框显示 */
}

/* 最后一行最后一个单元格 - 右下角 */
.article-content table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px; /* 右下角圆角 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* 确保底部边框显示 */
    border-right: 1px solid rgba(255, 255, 255, 0.2); /* 确保右边框显示 */
}

/* 表头样式 - 优化视觉效果 */
.article-content table thead {
    background: linear-gradient(180deg, rgba(0, 122, 255, 0.12) 0%, rgba(0, 122, 255, 0.06) 100%); /* 表头渐变背景，更明显 */
    position: sticky; /* 粘性定位，滚动时表头固定 */
    top: 0; /* 距离顶部0 */
    z-index: 10; /* 层级提升，确保在内容之上 */
}

.article-content table th {
    background: rgba(0, 122, 255, 0.08); /* 表头背景色，更明显的区分 */
    font-weight: 600; /* 加粗字体 */
    color: var(--text-primary); /* 文字颜色 */
    text-transform: uppercase; /* 表头文字转为大写 */
    font-size: 13px; /* 表头字体稍小 */
    letter-spacing: 0.8px; /* 字母间距，更清晰 */
    padding: 18px 20px; /* 表头内边距稍大 */
    border: 1px solid rgba(255, 255, 255, 0.2); /* 表头所有边框统一 */
    border-bottom: 2px solid rgba(0, 122, 255, 0.3); /* 表头底部边框更粗，更明显 */
    position: relative; /* 相对定位 */
    white-space: nowrap; /* 表头文字不换行 */
}

/* 表头悬停效果 */
.article-content table th:hover {
    background: rgba(0, 122, 255, 0.15); /* 表头悬停时背景色加深 */
    cursor: pointer; /* 鼠标指针变为手型 */
}

/* 表格行样式 */
.article-content table tbody tr {
    background: var(--bg-primary); /* 默认行背景色 */
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); /* 更流畅的过渡动画 */
    position: relative; /* 相对定位 */
}

/* 奇数行样式 */
.article-content table tbody tr:nth-child(odd) {
    background: var(--bg-primary); /* 奇数行使用主背景色 */
}

/* 偶数行背景色区分 */
.article-content table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03); /* 偶数行使用更淡的背景色，增加对比度 */
}

/* 鼠标悬停效果 - 优化交互体验 */
.article-content table tbody tr:hover {
    background: rgba(0, 122, 255, 0.1) !important; /* 悬停时显示更明显的蓝色背景，优先级最高 */
    transform: translateX(2px); /* 轻微右移效果，更自然 */
    box-shadow: inset 3px 0 0 rgba(0, 122, 255, 0.4); /* 左侧高亮条，更明显 */
}

/* 表格单元格悬停效果 */
.article-content table tbody tr:hover td {
    border-color: rgba(0, 122, 255, 0.2); /* 悬停时边框颜色变化 */
    color: var(--text-primary); /* 确保文字颜色不变 */
}

/* 表格行选中效果（可选） */
.article-content table tbody tr.selected {
    background: rgba(0, 122, 255, 0.12); /* 选中行背景色 */
    box-shadow: inset 3px 0 0 rgba(0, 122, 255, 0.6); /* 左侧高亮条 */
}

/* 表格内容区域样式 */
.article-content table tbody {
    background: var(--bg-primary); /* 表格主体背景色 */
}

/* 表格标题（如果有caption） */
.article-content table caption {
    caption-side: top; /* 标题在表格上方 */
    padding: 16px 0 12px 0; /* 标题内边距：上16px，下12px */
    font-weight: 600; /* 加粗 */
    color: var(--text-primary); /* 文字颜色 */
    font-size: 18px; /* 字体大小稍大 */
    text-align: left; /* 左对齐 */
    margin-bottom: 8px; /* 底部间距 */
}

/* 表格内数字样式优化 */
.article-content table td[data-type="number"] {
    font-variant-numeric: tabular-nums; /* 等宽数字，对齐更整齐 */
    text-align: right; /* 数字右对齐 */
    font-family: 'Consolas', 'Monaco', monospace; /* 等宽字体 */
}

/* 表格内链接样式 */
.article-content table td a,
.article-content table th a {
    color: rgba(0, 122, 255, 0.9); /* 链接颜色 */
    text-decoration: none; /* 移除下划线 */
    transition: color 0.2s ease; /* 颜色过渡 */
    border-bottom: 1px solid transparent; /* 透明下划线 */
}

.article-content table td a:hover,
.article-content table th a:hover {
    color: rgba(0, 122, 255, 1); /* 悬停时颜色加深 */
    border-bottom-color: rgba(0, 122, 255, 0.5); /* 显示下划线 */
}

/* ============================================
   表格响应式样式 - 移动端适配
   ============================================ */
/* 移动端（屏幕宽度小于768px）表格样式调整 */
@media (max-width: 768px) {
    .article-content table {
        width: 95%; /* 移动端表格宽度调整为95%，留出更多边距 */
        max-width: 95%; /* 最大宽度限制 */
        margin: 24px auto; /* 减少上下间距，保持居中 */
        font-size: 14px; /* 移动端字体稍小 */
        border-radius: 8px; /* 移动端圆角稍小 */
    }
    
    /* 移动端单元格内边距调整 */
    .article-content table td,
    .article-content table th {
        padding: 10px 12px; /* 减少内边距，节省空间但保持可读性 */
        font-size: 14px; /* 移动端字体大小 */
    }
    
    /* 移动端表头样式 */
    .article-content table th {
        padding: 12px 12px; /* 表头内边距 */
        font-size: 12px; /* 表头字体稍小 */
        letter-spacing: 0.3px; /* 减少字母间距 */
    }
    
    /* 移动端第一列和最后一列内边距调整 */
    .article-content table td:first-child,
    .article-content table th:first-child {
        padding-left: 14px; /* 第一列左侧内边距 */
    }
    
    .article-content table td:last-child,
    .article-content table th:last-child {
        padding-right: 14px; /* 最后一列右侧内边距 */
    }
    
    /* 移动端悬停效果简化 */
    .article-content table tbody tr:hover {
        transform: none; /* 移动端取消上移效果 */
        box-shadow: none; /* 移动端取消阴影 */
    }
}

/* 超小屏幕（屏幕宽度小于480px）进一步优化 */
@media (max-width: 480px) {
    .article-content table {
        width: 100%; /* 超小屏幕表格占满宽度 */
        margin: 20px 0; /* 移除左右边距 */
        border-radius: 0; /* 移除圆角 */
    }
    
    .article-content table td,
    .article-content table th {
        padding: 8px 10px; /* 进一步减少内边距 */
        font-size: 13px; /* 字体更小 */
    }
    
    .article-content table th {
        padding: 10px 10px; /* 表头内边距 */
        font-size: 11px; /* 表头字体更小 */
    }
}

/* ============================================
   文章内容特殊元素 - 防止溢出
   ============================================ */

/* 内联代码防止溢出 */
.article-content code {
    overflow-wrap: break-word; /* 允许在单词内部换行 */
    word-break: break-all; /* 允许在任意字符间换行，适合代码 */
    max-width: 100%; /* 最大宽度不超过父容器 */
}

/* 代码块防止溢出 */
.article-content pre {
    max-width: 100%; /* 最大宽度不超过父容器 */
    overflow-x: auto; /* 内容超出时显示横向滚动条 */
}

/* 引用块防止溢出 */
.article-content blockquote {
    max-width: 100%; /* 最大宽度不超过父容器 */
    overflow-wrap: break-word; /* 长文本自动换行 */
    word-wrap: break-word; /* 兼容旧浏览器的换行属性 */
}

/* 链接防止溢出 */
.article-content a {
    word-break: break-all; /* 允许在任意字符间换行，防止长URL溢出 */
    overflow-wrap: break-word; /* 长文本自动换行 */
}

/* ============================================
   文章内容中的列表样式 - 优化缩进和层级
   ============================================ */

/* 无序列表和有序列表基础样式 */
.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 32px;        /* 左侧缩进32px，让列表项有合适的缩进 */
    line-height: 1.8;
    color: var(--text-primary);
}

/* 无序列表样式 */
.article-content ul {
    list-style-type: disc;     /* 一级列表使用实心圆点 */
    list-style-position: outside; /* 标记在内容外侧 */
}

/* 有序列表样式 */
.article-content ol {
    list-style-type: decimal;  /* 一级列表使用数字编号 */
    list-style-position: outside; /* 标记在内容外侧 */
}

/* 列表项样式 */
.article-content li {
    margin-bottom: 10px;       /* 列表项之间的间距 */
    padding-left: 4px;         /* 列表项内容左侧内边距，与标记保持距离 */
    line-height: 1.8;
    color: var(--text-primary);
    position: relative;        /* 用于精确定位 */
}

/* 列表项中的强调文本 */
.article-content li strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* ============================================
   嵌套列表样式 - 支持多级嵌套，层级清晰
   ============================================ */

/* 二级嵌套列表 */
.article-content ul ul,
.article-content ol ol,
.article-content ul ol,
.article-content ol ul {
    margin-top: 8px;
    margin-bottom: 8px;
    padding-left: 28px;        /* 二级嵌套增加28px缩进，体现层级 */
}

/* 二级嵌套列表的标记类型 */
.article-content ul ul {
    list-style-type: circle;   /* 二级嵌套使用空心圆 */
}

.article-content ol ol {
    list-style-type: lower-alpha;  /* 二级嵌套使用小写字母 */
}

/* 三级嵌套列表 */
.article-content ul ul ul,
.article-content ol ol ol,
.article-content ul ul ol,
.article-content ol ol ul {
    padding-left: 24px;        /* 三级嵌套再增加24px缩进 */
}

/* 三级嵌套列表的标记类型 */
.article-content ul ul ul {
    list-style-type: square;   /* 三级嵌套使用方块 */
}

.article-content ol ol ol {
    list-style-type: lower-roman;  /* 三级嵌套使用小写罗马数字 */
}

/* 四级及以上嵌套列表 */
.article-content ul ul ul ul,
.article-content ol ol ol ol {
    padding-left: 20px;        /* 四级嵌套继续增加缩进 */
}

/* 文章图片 */
.article-image {
    margin: 32px 0;
    text-align: center;
}

.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* ============================================
   文章内容图片样式 - 自动居中，最大宽度900px
   ============================================ */
/* 
   图片显示规则：
   - 单张图片：自动水平居中显示，最大宽度限制为900px（桌面端）
   - 多张连续图片：自动并排显示，最多一行4张，平均宽度分配
   - 高度按比例自动缩放
   - 如果图片原始宽度小于900px，显示实际尺寸
*/

/* 图片组容器 - 用于包装连续的图片 */
.article-content .image-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 32px 0;
    justify-content: flex-start;
    align-items: flex-start;
}

/* 单张图片样式 - 默认块级显示，居中 */
.article-content img {
    display: block; /* 块级元素，便于居中 */
    max-width: 100%; /* 最大宽度不超过父容器，防止溢出 */
    width: auto; /* 宽度自动，保持原始比例 */
    height: auto; /* 高度自动，按比例缩放 */
    margin: 32px auto; /* 上下32px间距，水平自动居中 */
    border-radius: 12px; /* 圆角边框 */
    box-shadow: var(--shadow); /* 添加阴影效果 */
}

/* 图片组内的图片样式 - 并排显示，平均宽度 */
/* 使用flex布局，gap自动处理间距，每张图片平均分配宽度 */
.article-content .image-group img {
    flex: 1 1 0; /* 平均分配宽度，flex-basis为0确保完全平均 */
    min-width: 0; /* 允许缩小，防止内容溢出 */
    max-width: 25%; /* 最多4张一行，每张最多25% */
    margin: 0; /* 移除单独图片的margin */
    width: 100%; /* 宽度填满flex容器 */
    height: auto; /* 高度自动，保持比例 */
    object-fit: contain; /* 保持图片完整显示，不裁剪 */
}

/* 图片组内只有1张图片时 - 全宽显示 */
.article-content .image-group img:only-child {
    flex: 1 1 100%;
    max-width: 100%;
}

/* 图片组内只有2张图片时 - 每张50%宽度 */
.article-content .image-group img:first-child:nth-last-child(2),
.article-content .image-group img:first-child:nth-last-child(2) ~ img {
    flex: 1 1 0;
    max-width: 50%;
}

/* 图片组内只有3张图片时 - 每张约33.33%宽度 */
.article-content .image-group img:first-child:nth-last-child(3),
.article-content .image-group img:first-child:nth-last-child(3) ~ img {
    flex: 1 1 0;
    max-width: 33.333%;
}

/* 桌面端（屏幕宽度大于等于900px）单张图片最大宽度限制 */
@media (min-width: 900px) {
    .article-content img:not(.image-group img) {
        max-width: 900px; /* 桌面端单张图片最大宽度900px */
    }
}

/* 响应式：小屏幕时图片组最多2张一行 */
@media (max-width: 768px) {
    .article-content .image-group img {
        flex: 1 1 calc(50% - 8px);
        min-width: calc(50% - 8px);
        max-width: calc(50% - 8px);
    }
    
    .article-content .image-group img:only-child {
        flex: 1 1 100%;
        min-width: 100%;
        max-width: 100%;
    }
}

/* 响应式：超小屏幕时图片组单列显示 */
@media (max-width: 480px) {
    .article-content .image-group {
        flex-direction: column;
    }
    
    .article-content .image-group img {
        flex: 1 1 100%;
        min-width: 100%;
        max-width: 100%;
    }
}

.image-caption {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
}

/* 引用块 */
.article-quote {
    margin: 32px 0;
    padding: 24px 32px;
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
}

.article-quote p {
    font-size: 18px;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.6;
}

.article-quote cite {
    font-size: 14px;
    color: var(--text-secondary);
    font-style: normal;
}

/* 列表样式 */
.article-list {
    margin: 32px 0;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.article-list h3 {
    margin-top: 0;
    margin-bottom: 16px;
}

.article-list ul {
    list-style: none;
    padding: 0;
}

.article-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    line-height: 1.6;
}

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

.article-list li strong {
    color: var(--primary-color);
}

/* 提示框 */
.article-tips {
    margin: 32px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tip-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.tip-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.tip-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.tip-content p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 教程步骤列表 */
.article-steps {
    margin: 32px 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.step-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s;
}

.step-item:hover {
    background: rgba(0, 122, 255, 0.03);
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.step-content {
    flex: 1;
}

.step-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.step-content p {
    margin: 0;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.step-content ul {
    margin: 12px 0 0 20px;
    padding: 0;
}

.step-content ul li {
    margin: 8px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

/* ============================================
   代码块样式 - 优化版
   ============================================ */
.article-code-block {
    margin: 32px 0;
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: linear-gradient(135deg, #2d2d2d 0%, #252525 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-language {
    font-size: 12px;
    font-weight: 600;
    color: #9cdcfe;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    background: rgba(156, 220, 254, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(156, 220, 254, 0.2);
}

.code-copy-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #d4d4d4;
    cursor: pointer;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.code-copy-btn:hover {
    background: rgba(0, 122, 255, 0.2);
    border-color: #007AFF;
    color: #007AFF;
    transform: translateY(-1px);
}

.code-copy-btn:active {
    transform: translateY(0);
}

.code-content {
    padding: 24px;
    color: #d4d4d4;
    font-family: 'Consolas', 'Monaco', 'Courier New', 'Fira Code', 'Source Code Pro', monospace;
    font-size: 14px;
    line-height: 1.75;
    overflow-x: auto;
    position: relative;
    background: #1e1e1e;
}

/* 代码块滚动条样式 */
.code-content::-webkit-scrollbar {
    height: 8px;
}

.code-content::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.code-content::-webkit-scrollbar-thumb {
    background: #4a4a4a;
    border-radius: 4px;
}

.code-content::-webkit-scrollbar-thumb:hover {
    background: #5a5a5a;
}

/* 行内代码样式 */
code:not(.code-content) {
    background: rgba(0, 122, 255, 0.1);
    color: #007AFF;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    border: 1px solid rgba(0, 122, 255, 0.2);
}

/* 全局 pre 标签样式 - 代码块容器 */
pre {
    margin: 32px 0;
    background: #1e1e1e; /* 深色背景，提供代码块的视觉容器 */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* 全局 pre 标签内的代码文字样式 */
/* 使用浅灰色 (#d4d4d4) 确保在深色背景上清晰可读，避免使用黑色文字 */
pre code {
    display: block;
    padding: 24px;
    color: #d4d4d4; /* 浅灰色文字，在深色背景 (#1e1e1e) 上提供良好的对比度和可读性 */
    font-family: 'Consolas', 'Monaco', 'Courier New', 'Fira Code', 'Source Code Pro', monospace;
    font-size: 14px;
    line-height: 1.75;
    overflow-x: auto;
    background: transparent;
    border: none;
}

/* 代码语法高亮颜色 */
.code-content .keyword,
pre .keyword,
code .keyword {
    color: #569cd6;
    font-weight: 600;
}

.code-content .string,
pre .string,
code .string {
    color: #ce9178;
}

.code-content .comment,
pre .comment,
code .comment {
    color: #6a9955;
    font-style: italic;
}

.code-content .function,
pre .function,
code .function {
    color: #dcdcaa;
}

.code-content .variable,
pre .variable,
code .variable {
    color: #9cdcfe;
}

.code-content .number,
pre .number,
code .number {
    color: #b5cea8;
}

.code-content .operator,
pre .operator,
code .operator {
    color: #d4d4d4;
}

.code-content .class-name,
pre .class-name,
code .class-name {
    color: #4ec9b0;
}

.code-content .tag,
pre .tag,
code .tag {
    color: #569cd6;
}

.code-content .attribute,
pre .attribute,
code .attribute {
    color: #92c5f7;
}

.code-content .punctuation,
pre .punctuation,
code .punctuation {
    color: #d4d4d4;
}

.code-content ol,
.code-content ul,
pre ol,
pre ul {
    margin: 0;
    padding-left: 24px;
}

.code-content li,
pre li {
    margin: 4px 0;
}

.code-content kbd,
pre kbd {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.code-content table,
pre table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.code-content th,
.code-content td,
pre th,
pre td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-content th,
pre th {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

/* 代码选中样式 */
.code-content::selection,
pre code::selection {
    background: rgba(0, 122, 255, 0.3);
    color: #fff;
}

.code-content::-moz-selection,
pre code::-moz-selection {
    background: rgba(0, 122, 255, 0.3);
    color: #fff;
}

/* 文章中的代码元素 */
.article-content code {
    background: rgba(0, 122, 255, 0.1);
    color: #007AFF;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    border: 1px solid rgba(0, 122, 255, 0.2);
}

/* 文章内容中的代码块容器样式 */
.article-content pre {
    margin: 24px 0;
    background: #1e1e1e; /* 深色背景，提供代码块的视觉容器 */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* 文章内容中的代码块文字样式 */
/* 注意：使用浅灰色 (#d4d4d4) 确保在深色背景上清晰可读 */
/* 不能使用 color: inherit; 否则会继承父元素的黑色文字，导致在深色背景上不可见 */
.article-content pre code {
    display: block;
    color: #d4d4d4; /* 浅灰色文字，在深色背景 (#1e1e1e) 上提供良好的对比度和可读性 */
    font-family: 'Consolas', 'Monaco', 'Courier New', 'Fira Code', 'Source Code Pro', monospace;
    font-size: 14px;
    line-height: 1.75;
    overflow-x: auto;
    background: transparent;
    border: none;
}

/* 有行号的代码块样式 */
.article-content pre code.has-line-numbers {
    display: flex;
    align-items: flex-start;
    padding: 0;
}

/* 行号容器样式 */
.line-numbers {
    flex-shrink: 0;
    width: 48px;
    padding: 24px 12px 24px 24px;
    text-align: right;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(30, 30, 30, 0.5);
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
}

/* 单个行号样式 */
.line-number {
    color: #858585;
    font-size: 12px;
    line-height: 1.75;
    margin-bottom: 0;
    padding-right: 8px;
    flex-shrink: 0;
    min-height: 24.5px; /* 14px font-size * 1.75 line-height */
    display: flex;
    align-items: center;
}

/* 代码行容器样式 */
.code-lines {
    flex: 1;
    padding: 24px;
    overflow-x: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* 单个代码行样式 */
.code-line {
    color: #d4d4d4;
    line-height: 1.75;
    white-space: pre-wrap; /* 保留换行和空格，但允许自动换行 */
    word-break: break-word; /* 在单词边界换行，保持可读性 */
    overflow-wrap: break-word; /* 长单词自动换行 */
    margin-bottom: 0;
    min-height: 24.5px; /* 14px font-size * 1.75 line-height */
    display: flex;
    align-items: flex-start; /* 改为flex-start以支持多行文本 */
    padding-left: 0;
    word-wrap: break-word; /* 额外支持换行 */
}

/* 复制按钮样式 */
.code-copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #d4d4d4;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(8px);
}

.code-copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.code-copy-btn.copied {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.4);
    color: #22c55e;
}

.code-copy-btn .copy-icon {
    flex-shrink: 0;
}

.code-copy-btn .copy-text {
    font-size: 12px;
    white-space: nowrap;
}

/* 键盘按键样式 */
kbd {
    display: inline-block;
    padding: 4px 8px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1;
    color: #333;
    background: #f5f5f7;
    border: 1px solid #d1d1d6;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

/* 教程资源列表 */
.tutorial-resources {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tutorial-resources .resource-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.tutorial-resources .resource-item:hover {
    background: var(--bg-primary);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.tutorial-resources .resource-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.tutorial-resources .resource-info {
    flex: 1;
    min-width: 0;
}

.tutorial-resources .resource-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.tutorial-resources .resource-size {
    font-size: 12px;
    color: var(--text-secondary);
}

.tutorial-resources .resource-download {
    font-size: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* 结论段落 */
.article-conclusion {
    margin: 40px 0;
    padding: 24px;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.05) 0%, rgba(0, 122, 255, 0.02) 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 122, 255, 0.1);
}

.article-conclusion p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-primary);
    margin: 0;
}

/* 文章底部标签 */
.article-footer-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.tag-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.article-footer-tag {
    padding: 6px 14px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 16px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

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

/* 文章操作栏 */
.article-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    scroll-margin-top: 80px; /* 为固定导航栏预留空间，确保锚点跳转时不被遮挡 */
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
}

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

.action-icon {
    font-size: 16px;
}

/* 相关文章 */
.related-articles {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.related-item {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
    position: relative;
}

.related-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color, #007bff);
    background: var(--bg-primary);
}

.related-item::after {
    content: "↗";
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 123, 255, 0.9);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.related-item:hover::after {
    opacity: 1;
}

.related-thumb {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

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

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

.related-content {
    padding: 16px;
}

.related-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
}

.related-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.related-item:hover .related-title {
    color: var(--primary-color, #007bff);
}

.related-meta {
    font-size: 12px;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.related-item:hover .related-meta {
    color: var(--text-primary);
}

/* 评论区域 */
.comments-section {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow);
    margin-top: 48px;
    scroll-margin-top: 80px; /* 为固定导航栏预留空间，确保锚点跳转时不被遮挡 */
}

/* 评论区域头部 */
.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.comment-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.comment-count-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

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

/* 评论表单包装器 */
.comment-form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 评论表单行 */
.comment-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .comment-form-row {
        grid-template-columns: 1fr;
    }
}

/* 评论表单组 */
.comment-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comment-form-group-captcha {
    grid-column: 1;
}

.comment-form-group-checkbox {
    grid-column: 2;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .comment-form-group-captcha,
    .comment-form-group-checkbox {
        grid-column: 1;
    }
    
    .comment-form-group-checkbox {
        justify-content: flex-start;
    }
}

/* 评论标签 */
.comment-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

/* 评论输入框 */
.comment-input-text {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-primary);
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.comment-input-text::placeholder {
    color: var(--text-secondary);
}

.comment-input-text:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
    background: var(--bg-secondary);
}

.comment-input-text:hover:not(:focus) {
    border-color: #D1D1D6;
}

/* 验证码包装器 */
.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-input-captcha {
    flex: 1;
    min-width: 0;
}

.captcha-image {
    width: 100px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    object-fit: contain;
    background: var(--bg-secondary);
}

.captcha-image:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.15);
}

/* 评论复选框 */
.comment-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.comment-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-text {
    font-size: 14px;
    color: var(--text-primary);
    transition: color 0.3s;
}

.comment-checkbox-label:hover .checkbox-text {
    color: var(--primary-color);
}

/* 评论文本域 */
.comment-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-primary);
    resize: vertical;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.6;
}

.comment-textarea::placeholder {
    color: var(--text-secondary);
}

.comment-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
    background: var(--bg-secondary);
}

.comment-textarea:hover:not(:focus) {
    border-color: #D1D1D6;
}

/* 评论表单操作区 */
.comment-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.comment-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.2);
}

.comment-submit-btn:hover {
    background: #0051D5;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
    transform: translateY(-1px);
}

.comment-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 122, 255, 0.2);
}

.submit-icon {
    font-size: 16px;
}

.submit-text {
    font-weight: 600;
}

.comment-submit-image {
    display: none;
}

.comment-form {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.comment-form-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    flex-shrink: 0;
}

.comment-form-content {
    flex: 1;
}

.comment-input {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: border-color 0.3s;
}

.comment-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.comment-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.comment-submit-btn {
    padding: 10px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.comment-submit-btn:hover {
    background: #0051D5;
}

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

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

.comment-avatar-detailed {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    flex-shrink: 0;
}

.comment-item-detailed:nth-child(2) .comment-avatar-detailed {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

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

.comment-content-detailed {
    flex: 1;
}

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

.comment-author-detailed {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.comment-time-detailed {
    font-size: 12px;
    color: var(--text-secondary);
}

.comment-text-detailed {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 12px;
}

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

.comment-action-btn {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.comment-action-btn:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 右侧导航方框 */
.article-nav-box {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* 导航方框小部件 */
.nav-box-widget {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    transition: box-shadow 0.3s ease;
}

.nav-box-widget:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* 导航方框滚动条样式 */
.nav-box-widget::-webkit-scrollbar {
    width: 4px;
}

.nav-box-widget::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 2px;
}

.nav-box-widget::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.nav-box-widget::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* ============================================
   文章目录样式 - 自动生成目录功能
   ============================================ */

/* 目录容器 - 固定定位，滚动时保持在视口中
 * 
 * 浮动下滑功能说明：
 * - 浮动下滑功能由 HTML 的 data-sticky 属性控制
 * - 在HTML中设置 data-sticky="true" 启用浮动下滑（默认）
 * - 在HTML中设置 data-sticky="false" 禁用浮动下滑
 * - JavaScript会自动读取这个属性并应用相应的定位样式
 * - 浮动距离由 JavaScript 中的 TOC_CONFIG.stickyTop 控制（默认80px）
 * 
 * 使用方法：
 * <div class="sidebar-widget toc-widget" data-sticky="true">  <!-- 启用浮动下滑 -->
 * <div class="sidebar-widget toc-widget" data-sticky="false"> <!-- 禁用浮动下滑 -->
 */
.toc-widget {
    /* position 和 top 由 JavaScript 动态设置，根据 data-sticky 属性 */
    /* 默认样式：如果JS未加载，使用static定位作为降级方案 */
    position: static;
}

/* 固定在右侧的目录样式 */
.toc-widget-fixed {
    position: fixed;
    top: 80px; /* 距离顶部80px，避免与导航栏重叠 */
    /* 计算右侧位置：页面容器最大宽度1400px居中，目录放在容器右侧外面 */
    /* 公式：right = (100% - 1400px) / 2 - 280px(目录宽度) - 32px(间距) */
    right: calc((100% - 1400px) / 2 - 280px - 32px);
    width: 280px; /* 与侧边栏宽度一致 */
    max-height: calc(100vh - 100px); /* 最大高度不超过视口 */
    z-index: 999; /* 确保在其他内容之上 */
    background: var(--bg-primary);
    border-radius: 12px; /* 与侧边栏widget保持一致 */
    padding: 20px; /* 优化内边距 */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04); /* 优化阴影效果 */
    overflow-y: auto;
    overflow-x: hidden;
    backdrop-filter: blur(10px); /* 毛玻璃效果 */
    transition: all 0.3s ease; /* 平滑过渡 */
}

/* 固定目录悬停效果 */
.toc-widget-fixed:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 122, 255, 0.1);
}

/* 响应式：当屏幕宽度小于1400px时，目录紧贴右侧 */
@media (max-width: 1400px) {
    .toc-widget-fixed {
        right: 24px; /* 右侧留24px边距 */
    }
}

/* 响应式：移动端隐藏固定目录 */
@media (max-width: 768px) {
    .toc-widget-fixed {
        display: none;
    }
}

/* 目录标题栏 - 包含标题和展开/收起按钮 */
.toc-header {
    display: flex;
    justify-content: space-between;  /* 标题和按钮分别在两端 */
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

/* 目录标题文字样式 */
.toc-header .widget-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 展开/收起按钮 */
.toc-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    color: var(--text-secondary);
    font-size: 12px;
    transition: all 0.3s;
    border-radius: 4px;
}

/* 展开/收起按钮悬停效果 */
.toc-toggle:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

/* 展开/收起图标 */
.toc-toggle-icon {
    display: inline-block;
    transition: transform 0.3s;
}

/* 收起状态下图标旋转 */
.toc-widget.collapsed .toc-toggle-icon {
    transform: rotate(-90deg);
}

/* 收起状态下隐藏目录内容 */
.toc-widget.collapsed .article-toc {
    display: none;
}

/* 目录主体容器 - 自动生成所有目录项
 * 高度自适应说明：
 * - height: auto 让高度完全由内容决定
 * - 移除了固定的 min-height，高度随内容动态变化
 * - max-height 限制最大高度，超出时显示滚动条
 * - 内容少时高度小，内容多时高度增加（但不超过max-height）
 */
.article-toc {
    display: flex;
    flex-direction: column;
    gap: 4px;                                    /* 优化目录项之间的间距 */
    max-height: calc(100vh - 220px);            /* 最大高度：视口高度减去220px，超出时显示滚动条 */
    height: auto;                                /* 自动高度，完全由内容决定，随内容变化而增减 */
    min-height: 0;                                /* 移除最小高度限制，让高度完全由内容决定 */
    overflow-y: auto;                            /* 垂直方向超出max-height时显示滚动条 */
    overflow-x: hidden;                          /* 隐藏水平滚动条 */
    padding: 4px 8px 4px 0;                      /* 优化内边距 */
    text-align: left;                            /* 文字左对齐 */
    scroll-behavior: smooth;                      /* 平滑滚动 */
}

/* 自定义滚动条样式 - 宽度 */
.article-toc::-webkit-scrollbar {
    width: 6px;
}

/* 自定义滚动条样式 - 轨道 */
.article-toc::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
}

/* 自定义滚动条样式 - 滑块 */
.article-toc::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    transition: background 0.3s;
}

/* 自定义滚动条样式 - 滑块悬停 */
.article-toc::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 122, 255, 0.5);
}

/* 目录项包装器 - 包含主项和子项 */
.toc-item-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;          /* 优化主项和子项之间的间距 */
    margin-bottom: 2px;
}

/* 目录项 - 主章节标题（H2） */
.toc-item {
    display: flex;
    align-items: center;
    gap: 10px;                                    /* 编号和文本之间的间距 */
    padding: 8px 12px 8px 8px;                   /* 优化内边距，增加点击区域 */
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);  /* 优化过渡动画 */
    position: relative;
    border-left: 3px solid transparent;          /* 左侧边框，激活时显示 */
    line-height: 1.5;                            /* 优化行高 */
    min-height: 32px;                            /* 优化最小高度 */
    text-align: left;                            /* 文字左对齐 */
    justify-content: flex-start;                 /* 内容左对齐 */
    cursor: pointer;                             /* 鼠标指针样式 */
}

/* 目录项悬停效果 */
.toc-item:hover {
    background: linear-gradient(90deg, rgba(0, 122, 255, 0.1) 0%, rgba(0, 122, 255, 0.02) 100%);  /* 优化渐变背景 */
    color: var(--primary-color);
    border-left-color: var(--primary-color);     /* 左侧边框变为主题色 */
    transform: translateX(3px);                  /* 优化平移距离 */
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.1); /* 添加阴影效果 */
}

/* 目录项激活状态 - 当前阅读位置 */
.toc-item.active {
    background: linear-gradient(90deg, rgba(0, 122, 255, 0.15) 0%, rgba(0, 122, 255, 0.05) 100%);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;                            /* 加粗字体 */
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.15); /* 激活状态阴影 */
    transform: translateX(2px);                  /* 轻微平移 */
}

/* 目录项编号 - 显示章节序号（01, 02, 03...） */
.toc-item-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: var(--bg-secondary);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    flex-shrink: 0;                              /* 不收缩 */
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

/* 目录项编号悬停和激活状态 */
.toc-item:hover .toc-item-number {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: scale(1.05);                      /* 优化放大比例 */
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.toc-item.active .toc-item-number {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: scale(1.08);                      /* 激活状态稍大 */
    box-shadow: 0 3px 12px rgba(0, 122, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

/* 目录项文本 */
.toc-item-text {
    flex: 1;                                     /* 占据剩余空间 */
    line-height: 1.5;                            /* 优化行高 */
    text-align: left;                            /* 文字左对齐 */
    word-break: break-word;                      /* 长文本自动换行 */
    overflow: hidden;                            /* 隐藏溢出 */
    text-overflow: ellipsis;                     /* 文本溢出显示省略号 */
    display: -webkit-box;
    -webkit-line-clamp: 2;                      /* 最多显示2行 */
    line-clamp: 2;                              /* 标准属性 */
    -webkit-box-orient: vertical;
    transition: color 0.25s;
}

/* 子目录项容器 - 包含H3子章节 */
.toc-sub-items {
    display: flex;
    flex-direction: column;
    gap: 2px;                                    /* 优化子项之间的间距 */
    margin-left: 38px;                           /* 优化左侧缩进，体现层级关系 */
    margin-top: 4px;                            /* 优化上边距 */
    padding-left: 12px;                         /* 左侧内边距 */
    padding-top: 0;                             /* 无上内边距 */
    border-left: 2px solid var(--border-color);  /* 左侧边框线，标识子项层级 */
}

/* 目录子项 - 子章节标题（H3） */
.toc-item-sub {
    padding: 6px 12px 6px 8px;                 /* 优化内边距 */
    font-size: 13px;
    border-left: none;                           /* 无左侧边框 */
    min-height: 28px;                            /* 优化最小高度 */
    line-height: 1.5;                           /* 优化行高 */
    text-align: left;                            /* 文字左对齐 */
    justify-content: flex-start;                 /* 内容左对齐 */
    cursor: pointer;                             /* 鼠标指针样式 */
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 目录子项悬停效果 */
.toc-item-sub:hover {
    background: linear-gradient(90deg, rgba(0, 122, 255, 0.08) 0%, rgba(0, 122, 255, 0.02) 100%);
    color: var(--primary-color);
    transform: translateX(3px);                  /* 优化平移距离 */
}

/* 目录子项激活状态 */
.toc-item-sub.active {
    background: linear-gradient(90deg, rgba(0, 122, 255, 0.12) 0%, rgba(0, 122, 255, 0.04) 100%);
    color: var(--primary-color);
    font-weight: 600;
}

/* 目录子项圆点标识 */
.toc-item-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 目录子项圆点悬停和激活状态 */
.toc-item-sub:hover .toc-item-dot {
    color: var(--primary-color);
    transform: scale(1.15);                     /* 优化放大比例 */
}

.toc-item-sub.active .toc-item-dot {
    color: var(--primary-color);
    transform: scale(1.2);                       /* 激活状态稍大 */
    font-weight: bold;
}

/* ============================================
   侧边栏广告位样式
   ============================================ */

/* 广告位基础样式 */
.ad-widget {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.ad-widget:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

/* 广告标签 */
.ad-label {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    z-index: 5;
    backdrop-filter: blur(4px);
}

/* 广告链接 */
.ad-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s;
}

.ad-link:hover {
    transform: scale(1.01);
}

/* ============================================
   广告位1：固定图片展示位
   ============================================ */

.ad-widget-1 {
    margin-bottom: 20px;
}

.ad-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-radius: 12px 12px 0 0;
    transition: transform 0.3s;
}

.ad-widget-1:hover .ad-image {
    transform: scale(1.05);
}

.ad-content {
    padding: 16px;
}

.ad-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.ad-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* ============================================
   广告位2：多图轮播位
   ============================================ */

/* 轮播广告位 - 使用 sticky 定位，固定在目录下方
 * 
 * 浮动下滑功能说明：
 * - 浮动下滑功能由 HTML 的 data-sticky 属性控制
 * - 在HTML中设置 data-sticky="true" 启用浮动下滑（默认）
 * - 在HTML中设置 data-sticky="false" 禁用浮动下滑
 * - 当启用时，使用 sticky 定位，滚动时固定在文章目录下方
 * - 通过JavaScript动态计算目录高度，设置top值
 * - 支持多图轮播，8秒自动切换
 * - 包含轮播指示器和悬停暂停功能
 * 
 * 使用方法：
 * <div class="ad-widget-2 ad-carousel-widget" data-sticky="true">  <!-- 启用浮动下滑 -->
 * <div class="ad-widget-2 ad-carousel-widget" data-sticky="false"> <!-- 禁用浮动下滑 -->
 */
.ad-widget-2.ad-carousel-widget {
    /* position 和 top 由 JavaScript 动态设置，根据 data-sticky 属性 */
    /* 默认样式：如果JS未加载，使用static定位作为降级方案 */
    position: static;
    z-index: 10;
    margin-top: 20px; /* 与文章目录的间距 */
}

/* 轮播容器 */
.ad-carousel-container {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 8px;
}

/* 轮播轨道 */
.ad-carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

/* 轮播链接 */
.ad-carousel-link {
    min-width: 100%;
    height: 100%;
    display: block;
    text-decoration: none;
    color: inherit;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
}

.ad-carousel-link.active {
    opacity: 1;
    z-index: 2;
}

/* 轮播幻灯片 */
.ad-carousel-slide {
    width: 100%;
    height: 100%;
    position: relative;
}

/* 轮播图片 */
.ad-carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 轮播覆盖层 */
.ad-carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4), transparent);
    padding: 16px;
    color: white;
}

.ad-carousel-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

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

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

.ad-carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.ad-carousel-dot.active {
    background: white;
    width: 20px;
    border-radius: 10px;
    transform: scale(1.1);
}

/* 作者卡片 */
.author-card {
    text-align: center;
    padding: 20px;
}

.author-avatar-sidebar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
}

.author-name-sidebar {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.author-bio-sidebar {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.author-stats {
    display: flex;
    justify-content: space-around;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.author-stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-stat-item .stat-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.author-stat-item .stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.follow-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.follow-btn:hover {
    background: #0051D5;
}

/* 文章页面响应式设计 */
@media (max-width: 968px) {
    .article-container {
        grid-template-columns: 1fr;
        padding: 24px 20px;
        gap: 24px;
    }

    .article-nav-box {
        order: -1; /* 在移动端将导航框移到顶部 */
        margin-bottom: 24px;
    }

    .nav-box-widget {
        position: static;
        max-height: none;
        padding: 20px;
    }

    .article-post {
        padding: 32px 24px;
    }

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

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

    .article-stats {
        flex-wrap: wrap;
    }

    /* 平板端列表样式优化 */
    .article-content ul,
    .article-content ol {
        padding-left: 28px;     /* 平板端适中的缩进 */
    }

    .article-content ul ul,
    .article-content ol ol,
    .article-content ul ol,
    .article-content ol ul {
        padding-left: 24px;     /* 平板端二级嵌套缩进 */
    }

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

    /* 文章目录 - 平板端适配 */
    .nav-box-widget.toc-widget {
        position: static;  /* 取消粘性定位，目录跟随页面滚动 */
    }

    .article-toc {
        max-height: calc(100vh - 250px);  /* 最大高度：视口高度减去250px */
        height: auto;                      /* 高度完全由内容决定 */
        min-height: 0;                     /* 移除最小高度限制 */
        gap: 1px;                         /* 保持最小间距 */
        text-align: left;                  /* 文字左对齐 */
    }

    /* 平板端广告位优化 */
    .ad-widget-2.ad-carousel-widget {
        position: static;  /* 平板端取消固定定位 */
        margin-top: 20px;
    }

    .ad-carousel-container {
        height: 220px;
    }
}

/* ============================================
   文章页面响应式设计 - 移动端适配 (≤768px)
   ============================================ */
@media (max-width: 768px) {
    .article-container {
        padding: 20px 16px;
    }

    .article-post {
        padding: 24px 20px;
    }

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

    .article-lead {
        font-size: 18px;
        padding: 16px;
    }

    .article-content h2 {
        font-size: 22px;
    }

    .article-content h3 {
        font-size: 18px;
    }

    /* 移动端列表样式优化 */
    .article-content ul,
    .article-content ol {
        padding-left: 24px;     /* 移动端减少缩进，节省空间 */
        margin: 16px 0;         /* 移动端减少上下边距 */
    }

    .article-content li {
        margin-bottom: 8px;     /* 移动端列表项间距 */
        padding-left: 4px;      /* 保持与标记的距离 */
        line-height: 1.7;       /* 移动端行高稍小 */
    }

    /* 移动端嵌套列表样式 */
    .article-content ul ul,
    .article-content ol ol,
    .article-content ul ol,
    .article-content ol ul {
        padding-left: 20px;     /* 移动端二级嵌套缩进 */
        margin-top: 6px;
        margin-bottom: 6px;
    }

    .article-content ul ul ul,
    .article-content ol ol ol {
        padding-left: 18px;     /* 移动端三级嵌套缩进 */
    }

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

    .article-actions {
        flex-wrap: wrap;
    }

    .action-btn {
        flex: 1;
        min-width: 100px;
        justify-content: center;
    }

    /* 文章目录 - 移动端适配 */
    .nav-box-widget.toc-widget {
        position: static;  /* 取消粘性定位，目录跟随页面滚动 */
    }

    .toc-header {
        margin-bottom: 12px;  /* 减少标题栏下边距 */
    }

    .article-toc {
        max-height: calc(100vh - 200px);  /* 最大高度：视口高度减去200px */
        height: auto;                      /* 高度完全由内容决定 */
        min-height: 0;                     /* 移除最小高度限制 */
        gap: 1px;                         /* 保持最小间距 */
        text-align: left;                  /* 文字左对齐 */
    }

    /* 目录项 - 移动端优化 */
    .toc-item {
        padding: 4px 8px;    /* 减少内边距，适配小屏幕 */
        font-size: 13px;     /* 字体稍小 */
        min-height: 26px;    /* 最小高度（已优化为更紧凑） */
        text-align: left;     /* 文字左对齐 */
        justify-content: flex-start;  /* 内容左对齐 */
    }

    /* 目录项编号 - 移动端优化 */
    .toc-item-number {
        width: 20px;         /* 编号尺寸稍小 */
        height: 20px;
        font-size: 10px;
    }

    /* 子目录项容器 - 移动端优化 */
    .toc-sub-items {
        margin-left: 30px;   /* 减少左侧缩进 */
        margin-top: 0;
        padding-left: 8px;   /* 减少左侧内边距 */
        padding-top: 0;
        gap: 0;              /* 保持最小间距 */
    }

    /* 目录子项 - 移动端优化 */
    .toc-item-sub {
        padding: 3px 8px;    /* 保持紧凑内边距 */
        font-size: 12px;     /* 字体稍小 */
        min-height: 22px;    /* 更紧凑的最小高度 */
        text-align: left;     /* 文字左对齐 */
        justify-content: flex-start;  /* 内容左对齐 */
    }
}

/* ============================================
   下载页面样式
   ============================================ */

/* 下载徽章 */
.download-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.download-badge.premium {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}

.download-badge-large {
    position: absolute;
    top: 24px;
    right: 24px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

/* 下载按钮区域 */
.download-actions {
    display: flex;
    gap: 12px;
    margin: 32px 0;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 12px;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.download-btn.primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0077ed 100%);
    color: white;
    flex: 1;
    min-width: 200px;
}

.download-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.4);
}

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

.download-btn.secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.download-icon {
    font-size: 18px;
}

.download-text {
    font-weight: 600;
}

/* 下载信息卡片 */
.download-info-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.download-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.download-info-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.download-info-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.download-btn-sidebar {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0077ed 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
}

.download-btn-sidebar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.4);
}

.download-btn-action {
    background: var(--primary-color) !important;
    color: white !important;
}

.download-btn-action:hover {
    background: #0051D5 !important;
}

/* 文章项标题链接样式 */
.article-item-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* 下载页面响应式设计 */
@media (max-width: 768px) {
    .download-actions {
        flex-direction: column;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
    }

    .download-badge-large {
        top: 16px;
        right: 16px;
        padding: 10px 20px;
        font-size: 14px;
    }

    .download-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* ============================================
   页面内容容器样式（加宽优化）
   用于 about, contact, message, join-group, privacy 等页面
   ============================================ */
.page-content-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 48px 40px;
}

/* 页面内容主容器 */
.about-content,
.contact-content,
.message-content,
.join-group-content,
.privacy-content {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 56px;
    box-shadow: var(--shadow);
}

/* ============================================
   关于我们页面样式
   ============================================ */
.about-section {
    margin-bottom: 56px;
}

.about-section:last-child {
    margin-bottom: 0;
}

.about-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--border-color);
}

.about-section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.about-section ul {
    list-style: none;
    padding-left: 0;
}

.about-section ul li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.about-section ul li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: var(--primary-color);
    font-weight: bold;
}

/* 核心价值网格 */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 32px;
}

.value-item {
    text-align: center;
    padding: 40px 32px;
    background: var(--bg-secondary);
    border-radius: 12px;
    transition: all 0.3s ease;
}

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

.value-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}

.value-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.value-item p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================
   留言板页面样式
   ============================================ */
.message-form-section,
.message-list-section {
    margin-bottom: 56px;
}

.message-form-section:last-child,
.message-list-section:last-child {
    margin-bottom: 0;
}

.message-form-section h2,
.message-list-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 36px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--border-color);
}

/* 表单样式 */
.message-form,
.contact-form {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 28px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.required {
    color: var(--accent-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.submit-btn,
.reset-btn,
.join-btn {
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 12px;
}

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

.submit-btn:hover {
    background: #0051D5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.reset-btn {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.reset-btn:hover {
    background: var(--border-color);
}

.join-btn {
    background: var(--primary-color);
    color: white;
    width: 100%;
    margin-top: 16px;
    margin-right: 0;
}

.join-btn:hover {
    background: #0051D5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

/* 留言列表样式 */
.message-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.message-item {
    background: var(--bg-secondary);
    padding: 32px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.message-item:hover {
    box-shadow: var(--shadow-hover);
}

.message-header {
    margin-bottom: 16px;
}

.message-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.message-author-info {
    flex: 1;
}

.message-author-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.message-date {
    font-size: 13px;
    color: var(--text-secondary);
}

.message-subject {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.message-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.message-reply {
    background: var(--bg-primary);
    padding: 16px;
    border-radius: 8px;
    margin-top: 16px;
    border-left: 3px solid var(--secondary-color);
}

.reply-author {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.reply-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.reply-date {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ============================================
   联系方式页面样式
   ============================================ */
.contact-section {
    margin-bottom: 56px;
}

.contact-section:last-child {
    margin-bottom: 0;
}

.contact-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 36px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--border-color);
}

.contact-grid,
.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-bottom: 32px;
}

.contact-item,
.social-item {
    background: var(--bg-secondary);
    padding: 40px 32px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-item:hover,
.social-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.contact-icon,
.social-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon img,
.social-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}

.contact-item h3,
.social-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.contact-item p,
.social-item p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.6;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #0051D5;
    text-decoration: underline;
}

.social-qr {
    font-size: 12px;
    color: var(--text-secondary);
    font-style: italic;
}

.qr-code-placeholder {
    margin: 16px 0;
}

.qr-code {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    background: var(--bg-primary);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-secondary);
}

/* 常见问题样式 */
.faq-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.faq-item {
    background: var(--bg-secondary);
    padding: 28px 24px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.faq-item h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.faq-item p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    flex: 1;
}

/* ============================================
   加入社群页面样式
   ============================================ */
.group-intro-section,
.group-list-section,
.group-rules-section,
.group-activities-section {
    margin-bottom: 56px;
}

.group-intro-section:last-child,
.group-list-section:last-child,
.group-rules-section:last-child,
.group-activities-section:last-child {
    margin-bottom: 0;
}

.group-intro-section h2,
.group-list-section h2,
.group-rules-section h2,
.group-activities-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border-color);
}

/* 社群介绍文本 */
.group-intro-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* 社群优势网格 */
.group-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 16px;
}

.benefit-item {
    background: var(--bg-secondary);
    padding: 20px 18px;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.benefit-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
    background: var(--bg-primary);
}

.benefit-icon {
    font-size: 32px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(88, 86, 214, 0.1) 100%);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.benefit-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

.benefit-item:hover .benefit-icon {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.15) 0%, rgba(88, 86, 214, 0.15) 100%);
}

.benefit-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    margin-top: 0;
}

.benefit-content p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}

/* 社群卡片网格 */
.group-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 32px;
}

.group-card {
    background: var(--bg-secondary);
    padding: 40px 32px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.group-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.group-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.group-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.group-info {
    text-align: left;
    margin-bottom: 20px;
}

.group-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.6;
}

.group-info strong {
    color: var(--text-primary);
    font-weight: 600;
}

.group-desc {
    font-size: 13px;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 12px !important;
}

/* 第一排文字卡片样式 */
.group-text-row {
    margin-bottom: 40px;
}

.group-text-row .group-icon {
    display: none !important;
}

/* 第二排：带二维码的卡片 */
/* 第二排：带二维码的卡片 */
.group-qr-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 40px;
}

.group-qr-row .group-icon {
    display: none !important;
}

.group-qr-row .group-card {
    display: flex;
    flex-direction: column;
}

.group-qr-code {
    margin: 20px 0;
    text-align: center;
}

.group-qr-row .qr-code-image {
    width: 160px;
    height: 160px;
    margin: 0 auto;
    display: block;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    object-fit: contain;
    background: var(--bg-primary);
}

.qr-section {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.qr-section:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.qr-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.qr-code-container {
    margin: 24px 0;
}

.qr-code-image {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    display: block;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    object-fit: contain;
    background: var(--bg-primary);
}

.qr-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 16px;
    line-height: 1.6;
}

/* 规则列表 */
.rules-intro {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 16px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.rules-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
    margin-bottom: 32px;
}

.rule-item {
    background: var(--bg-secondary);
    padding: 28px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.rule-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.rule-icon {
    font-size: 32px;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 122, 255, 0.1);
    border-radius: 10px;
}

.rule-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

.rule-content {
    flex: 1;
}

.rule-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    margin-top: 0;
}

.rule-item p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.rules-note {
    margin-top: 32px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.08) 0%, rgba(88, 86, 214, 0.08) 100%);
    border-radius: 12px;
    border: 2px solid rgba(0, 122, 255, 0.2);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.rules-note-icon {
    font-size: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rules-note-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

.rules-note-content {
    flex: 1;
}

.rules-note-content strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.rules-note-content p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.rules-note strong {
    color: var(--primary-color);
}

/* 活动列表 */
.activities-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.activity-item {
    background: var(--bg-secondary);
    padding: 32px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

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

.activity-date {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.activity-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.activity-item p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================
   各频道关注页面样式
   ============================================ */
.channels-content {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 56px;
    box-shadow: var(--shadow);
}

.channels-intro-section,
.channels-list-section,
.channels-groups-section {
    margin-bottom: 56px;
}

.channels-intro-section:last-child,
.channels-list-section:last-child,
.channels-groups-section:last-child {
    margin-bottom: 0;
}

.channels-intro-section h2,
.channels-list-section h2,
.channels-groups-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--border-color);
}

.channels-intro-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.channels-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin-top: 32px;
    justify-content: center;
    justify-items: center;
}

/* 响应式：限制最大列数为5，自适应布局，内容少于5个时居中 */
@media (min-width: 1400px) {
    .channels-benefits {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        max-width: calc(5 * 180px + 4 * 24px);
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .channels-benefits {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        max-width: calc(4 * 180px + 3 * 24px);
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .channels-benefits {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        max-width: calc(4 * 180px + 3 * 24px);
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .channels-benefits {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        max-width: calc(3 * 180px + 2 * 24px);
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }
}

@media (min-width: 600px) and (max-width: 767px) {
    .channels-benefits {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        max-width: calc(2 * 180px + 1 * 24px);
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }
}

/* 频道卡片网格 */
.channels-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.channel-card {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.channel-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.channel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.channel-icon {
    font-size: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(88, 86, 214, 0.1) 100%);
    border-radius: 10px;
    flex-shrink: 0;
}

.channel-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

.channel-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.channel-info {
    flex: 0 0 auto;
    margin-bottom: 0;
}

.channel-desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.channel-details {
    font-size: 12px;
    color: var(--text-secondary);
}

.channel-details p {
    margin-bottom: 4px;
    line-height: 1.5;
}

.channel-details strong {
    color: var(--text-primary);
    font-weight: 600;
}

.channel-qr-code {
    margin: 20px auto; /* 二维码区域间距 */
    text-align: center;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
}

.channel-qr-code .qr-code-image {
    width: 160px;
    height: 160px;
    margin: 0 auto;
    display: block;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    object-fit: contain;
    background: var(--bg-primary);
    padding: 8px;
}

.qr-code-placeholder {
    padding: 20px;
    background: var(--bg-primary);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    text-align: center;
}

.qr-code-placeholder-text {
    font-size: 48px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.qr-code-placeholder p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

.channel-actions {
    display: flex;
    gap: 6px;
    margin-top: auto;
    flex-wrap: nowrap;
}

.channel-link-btn {
    flex: 1;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    white-space: nowrap;
    min-width: 0;
}

.channel-link-btn span {
    font-size: 12px;
    flex-shrink: 0;
}

.channel-link-btn {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.channel-link-btn:hover {
    background: #0051D5;
    border-color: #0051D5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.channel-group-btn {
    background: var(--bg-primary);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.channel-group-btn:hover {
    background: rgba(0, 122, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.15);
}

/* 用户聊天群区域 */
.groups-intro {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 16px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.groups-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.group-card-small {
    background: var(--bg-secondary);
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.group-card-small:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.group-icon-small {
    font-size: 40px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.group-icon-small img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}

.group-card-small h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.group-card-small p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.group-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.group-link:hover {
    color: #0051D5;
    transform: translateX(4px);
}

/* 加群区域样式 */
.join-groups-section {
    margin-top: 64px;
    margin-bottom: 48px;
}

.join-groups-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--border-color);
}

.join-groups-intro {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 16px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.join-groups-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.join-group-card {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.join-group-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.join-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.join-group-icon {
    font-size: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(88, 86, 214, 0.1) 100%);
    border-radius: 10px;
    flex-shrink: 0;
}

.join-group-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

.join-group-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.join-group-info {
    flex: 0 0 auto;
    margin-bottom: 0;
}

.join-group-desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.join-group-details {
    font-size: 12px;
    color: var(--text-secondary);
}

.join-group-details p {
    margin-bottom: 4px;
    line-height: 1.5;
}

.join-group-details strong {
    color: var(--text-primary);
    font-weight: 600;
}

.group-number {
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    font-weight: 600;
}

.join-group-qr-code {
    margin: 20px auto;
    text-align: center;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
}

.join-group-qr-code .qr-code-image {
    width: 160px;
    height: 160px;
    margin: 0 auto;
    display: block;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    object-fit: contain;
    background: var(--bg-primary);
    padding: 8px;
}

.join-group-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    flex-wrap: wrap;
}

.join-group-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
    min-width: 0;
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    cursor: pointer;
}

.join-group-btn:hover {
    background: #0051D5;
    border-color: #0051D5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.join-group-btn span {
    font-size: 14px;
    flex-shrink: 0;
}

.copy-group-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
    min-width: 0;
    background: var(--bg-primary);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    cursor: pointer;
}

.copy-group-btn:hover {
    background: rgba(0, 122, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.15);
}

.copy-group-btn.copied {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.copy-group-btn span {
    font-size: 14px;
    flex-shrink: 0;
}

/* ============================================
   隐私政策页面样式
   ============================================ */
.privacy-section {
    margin-bottom: 48px;
}

.privacy-section:last-child {
    margin-bottom: 0;
}

.privacy-update {
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 24px;
}

.privacy-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--border-color);
}

.privacy-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 16px;
}

.privacy-section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.privacy-section ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 16px;
}

.privacy-section ul li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.privacy-section ul li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: var(--primary-color);
    font-weight: bold;
}

.privacy-section ul li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.privacy-section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.privacy-section a:hover {
    color: #0051D5;
    text-decoration: underline;
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 1400px) {
    .page-content-container {
        padding: 40px 32px;
    }

    .about-content,
    .contact-content,
    .message-content,
    .join-group-content,
    .channels-content,
    .privacy-content {
        max-width: 1100px;
        padding: 48px 40px;
    }

    .contact-grid,
    .social-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }

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

@media (max-width: 1200px) {
    .page-content-container {
        padding: 32px 24px;
    }

    .about-content,
    .contact-content,
    .message-content,
    .join-group-content,
    .channels-content,
    .privacy-content {
        max-width: 100%;
        padding: 40px 32px;
    }

    .contact-grid,
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .faq-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 1400px) and (min-width: 1201px) {
    .activities-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) and (min-width: 1025px) {
    .activities-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .values-grid,
    .group-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .group-qr-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

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

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

    .activities-list {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .channels-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .channels-benefits {
        grid-template-columns: repeat(3, 1fr);
    }

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

@media (max-width: 768px) {
    .page-content-container {
        padding: 24px 16px;
    }

    .about-content,
    .contact-content,
    .message-content,
    .join-group-content,
    .channels-content,
    .privacy-content {
        padding: 24px 20px;
        border-radius: 12px;
    }

    .about-section h2,
    .contact-section h2,
    .message-form-section h2,
    .message-list-section h2,
    .group-intro-section h2,
    .group-list-section h2,
    .group-rules-section h2,
    .group-activities-section h2,
    .channels-intro-section h2,
    .channels-list-section h2,
    .channels-groups-section h2,
    .join-groups-section h2,
    .privacy-section h2 {
        font-size: 24px;
    }

    .values-grid,
    .contact-grid,
    .social-grid,
    .group-grid,
    .channels-grid,
    .channels-benefits,
    .groups-grid,
    .join-groups-grid {
        grid-template-columns: 1fr;
    }

    .group-qr-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .group-qr-row .qr-code-image {
        width: 160px;
        height: 160px;
    }

    .qr-code-image {
        width: 180px;
        height: 180px;
    }

    .channel-card {
        padding: 24px;
    }

    .channel-actions {
        flex-direction: column;
    }

    .channel-link-btn {
        width: 100%;
    }

    .channel-qr-code .qr-code-image {
        width: 150px;
        height: 150px;
    }

    .join-group-card {
        padding: 20px;
    }

    .join-group-actions {
        flex-direction: column;
    }

    .join-group-btn,
    .copy-group-btn {
        width: 100%;
    }

    .join-group-qr-code .qr-code-image {
        width: 150px;
        height: 150px;
    }

    .qr-section {
        padding: 32px 24px;
    }

    .rules-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .rule-item {
        padding: 24px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .rule-icon {
        margin-bottom: 12px;
    }

    .rule-icon img {
        width: 32px;
        height: 32px;
    }

    .rules-note {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .rules-note-icon {
        margin-bottom: 8px;
    }

    .rules-note-icon img {
        width: 28px;
        height: 28px;
    }

    .faq-list {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .activities-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-content-container {
        padding: 16px 12px;
    }

    .about-content,
    .contact-content,
    .message-content,
    .join-group-content,
    .privacy-content {
        padding: 20px 16px;
    }

    .message-form,
    .contact-form {
        padding: 20px;
    }

    .submit-btn,
    .reset-btn {
        width: 100%;
        margin-right: 0;
        margin-bottom: 12px;
    }
}

/* ============================================
   打赏功能样式
   ============================================ */

/* 打赏按钮样式 */
.reward-btn {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    border: 1px solid #FFD700;
    transition: all 0.3s ease;
}

.reward-btn:hover {
    background: linear-gradient(135deg, #FFA500, #FF8C00);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* 点赞按钮样式 */
.like-btn {
    text-decoration: none;
}

/* 购物按钮样式 */
.shop-btn {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-decoration: none;
}

.shop-btn:hover {
    background: #FF5000; /* 淘宝红 */
    color: white;
    border-color: #FF5000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 80, 0, 0.3);
}

/* 打赏弹窗样式 */
.reward-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.reward-modal[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.reward-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.reward-modal-content {
    position: relative;
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

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

.reward-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.reward-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.reward-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.reward-modal-body {
    padding: 0 24px 24px;
}

.reward-modal-desc {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.5;
}

.reward-options {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 24px;
}

.reward-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 180px;
}

.reward-qrcode {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 12px;
    transition: transform 0.2s ease;
}

.reward-qrcode:hover {
    transform: scale(1.05);
}

.reward-qr-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.reward-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.reward-icon {
    font-size: 16px;
}

.reward-note {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 16px;
    border-left: 4px solid var(--primary-color);
}

.reward-note p {
    margin: 0 0 8px 0;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.reward-note ul {
    margin: 0;
    padding-left: 20px;
}

.reward-note li {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 4px;
}

.reward-note li:last-child {
    margin-bottom: 0;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .reward-modal-content {
        margin: 20px;
        width: calc(100% - 40px);
    }

    .reward-modal-header {
        padding: 20px 20px 0;
    }

    .reward-modal-body {
        padding: 0 20px 20px;
    }

    .reward-options {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .reward-option {
        max-width: 160px;
    }

    .reward-qrcode {
        width: 120px;
        height: 120px;
    }

    .reward-note {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .reward-modal-content {
        margin: 10px;
        width: calc(100% - 20px);
    }

    .reward-modal-title {
        font-size: 18px;
    }

    .reward-qrcode {
        width: 100px;
        height: 100px;
    }

    .reward-label {
        font-size: 13px;
    }
}

/* ============================================
   搜索页面样式
   ============================================ */

/* 高级搜索页面样式 */
.search-advanced-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

.breadcrumb {
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

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

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 8px;
    color: var(--text-secondary);
}

.search-advanced-box {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.search-advanced-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.search-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
    align-items: stretch;
}

@media (max-width: 768px) {
    .search-form-grid {
        grid-template-columns: 1fr;
    }

    .search-form-section:last-child .search-form-field {
        flex: none;
    }

    .search-form-section:last-child .search-form-field select {
        flex: none;
        height: 280px;
    }
}

.search-form-section {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.search-form-section:last-child {
    display: flex;
    flex-direction: column;
}

.search-form-section:last-child .search-form-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.search-form-section:last-child .search-form-field select {
    flex: 1;
    min-height: 280px;
}

.search-form-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.search-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px;
}

.search-radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-radio-item input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.search-radio-item label {
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
}

.search-form-field {
    margin-bottom: 20px;
}

.search-form-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.search-form-field .field-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-left: 8px;
    font-weight: normal;
}

.search-form-field input[type="text"],
.search-form-field input[type="number"],
.search-form-field select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: border-color 0.3s;
}

.search-form-field input[type="text"]:focus,
.search-form-field input[type="number"]:focus,
.search-form-field select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-form-field select {
    height: 112px;
    cursor: pointer;
}

.search-form-field select:not([size]) {
    height: auto;
}

.search-form-section:last-child .search-form-field select[size] {
    height: 100%;
    min-height: 280px;
}

.search-time-range {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
}

.search-time-range-wrapper {
    position: relative;
    flex: 1;
    min-width: 160px;
}

.search-time-range-wrapper::before {
    content: "📅";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.search-time-range-wrapper:focus-within::before {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.search-time-range-wrapper.has-value::before {
    content: "✓";
    background: #34C759;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 1;
    font-weight: bold;
}

.search-time-range input {
    width: 100%;
    padding: 12px 40px 12px 42px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.search-time-range input:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(0, 122, 255, 0.1);
    transform: translateY(-1px);
}

.search-time-range input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1), 0 4px 12px rgba(0, 122, 255, 0.15);
    transform: translateY(-1px);
}

.search-time-range input:not(:placeholder-shown) {
    border-color: var(--primary-color);
    background: linear-gradient(to right, rgba(0, 122, 255, 0.02), var(--bg-primary));
}

.search-time-range input:valid:not([value=""]) {
    border-color: #34C759;
    background: linear-gradient(to right, rgba(52, 199, 89, 0.02), var(--bg-primary));
}

.date-clear-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    color: var(--text-secondary);
    cursor: pointer;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 3;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.date-clear-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 4px 8px rgba(255, 59, 48, 0.3);
}

.date-clear-btn:active {
    transform: translateY(-50%) scale(0.95);
}

@media (max-width: 768px) {
    .search-time-range {
        flex-direction: column;
        align-items: stretch;
    }

    .search-time-range-wrapper {
        min-width: 100%;
    }

    .search-time-range-separator {
        text-align: center;
        padding: 8px 0;
    }

    .search-time-range-separator::before,
    .search-time-range-separator::after {
        display: none;
    }
}

@keyframes dateInputFocus {
    0% {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    }
    50% {
        box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15), 0 4px 12px rgba(0, 122, 255, 0.2);
    }
    100% {
        box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1), 0 4px 12px rgba(0, 122, 255, 0.15);
    }
}

.search-time-range input:focus {
    animation: dateInputFocus 0.3s ease-out;
}

.search-price-range {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.search-price-range input {
    flex: 1;
    min-width: 100px;
}

.search-keyword-section {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.search-keyword-input {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.search-keyword-input input[type="text"] {
    flex: 1;
    min-width: 300px;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: border-color 0.3s;
}

.search-keyword-input input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-submit-btn {
    padding: 14px 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.search-submit-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.search-submit-btn:active {
    transform: translateY(0);
}

.search-tip {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.search-tip strong {
    color: var(--primary-color);
}

.search-form-field-spacing {
    margin-top: 24px;
}

.search-form-field-flex {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.search-form-field-flex select {
    flex: 1;
    min-width: 150px;
}

.search-form-field-flex select:last-child {
    min-width: 120px;
}

.search-form-field-hidden {
    display: none;
}

.search-time-range-separator {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    padding: 0 4px;
    flex-shrink: 0;
    position: relative;
}

.search-time-range-separator::before,
.search-time-range-separator::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 20px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
}

.search-time-range-separator::before {
    right: 100%;
    margin-right: 8px;
}

.search-time-range-separator::after {
    left: 100%;
    margin-left: 8px;
}

.search-price-range-separator {
    color: var(--text-secondary);
    font-size: 14px;
}

.search-price-range-suffix {
    color: var(--text-secondary);
    font-size: 14px;
}

.search-date-input {
    position: relative;
    font-family: inherit;
}

.search-date-input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 1;
    position: absolute;
    right: 40px;
    width: 20px;
    height: 20px;
    z-index: 2;
}

.search-date-input[type="date"]::-webkit-datetime-edit-text {
    color: var(--text-primary);
    padding: 0 2px;
}

.search-date-input[type="date"]::-webkit-datetime-edit-month-field,
.search-date-input[type="date"]::-webkit-datetime-edit-day-field,
.search-date-input[type="date"]::-webkit-datetime-edit-year-field {
    color: var(--text-primary);
    padding: 0 2px;
}

.search-date-input[type="date"]::-webkit-datetime-edit-month-field:focus,
.search-date-input[type="date"]::-webkit-datetime-edit-day-field:focus,
.search-date-input[type="date"]::-webkit-datetime-edit-year-field:focus {
    background-color: rgba(0, 122, 255, 0.1);
    color: var(--primary-color);
    border-radius: 4px;
    outline: none;
}

.search-date-input[type="date"] {
    color-scheme: light;
}

.search-date-input[type="date"]:invalid::-webkit-datetime-edit {
    color: var(--text-secondary);
}

.search-date-input[type="date"]:valid::-webkit-datetime-edit {
    color: var(--text-primary);
}

.search-form-field input:invalid:not(:placeholder-shown),
.search-form-field select:invalid {
    border-color: var(--accent-color);
}

.search-form-field input:valid:not(:placeholder-shown) {
    border-color: #34C759;
}

.form-error-message {
    display: none;
    color: var(--accent-color);
    font-size: 12px;
    margin-top: 4px;
}

.search-form-field.error .form-error-message {
    display: block;
}

#keyword-error {
    display: none;
    color: var(--accent-color);
    font-size: 14px;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(255, 59, 48, 0.1);
    border-left: 3px solid var(--accent-color);
    border-radius: 4px;
}

#keyword-error.show {
    display: block;
}

.search-keyword-input input.error {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.1);
}

.search-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.search-submit-btn.loading {
    position: relative;
}

.search-submit-btn.loading .btn-text {
    opacity: 0;
    transition: opacity 0.2s;
}

.search-submit-btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

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

/* 搜索结果页面样式 */
.search-container-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

.search-form-box {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.search-form-box form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.search-form-box .search-input-large {
    flex: 1;
    min-width: 300px;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.search-form-box .search-input-large:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-form-box .search-btn-large {
    padding: 12px 32px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.search-form-box .search-btn-large:hover {
    background: #0056b3;
}

.search-form-box .advanced-search-btn {
    padding: 12px 24px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.search-form-box .advanced-search-btn:hover {
    background: var(--border-color);
}

.search-results-box {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.search-results-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.search-results-count {
    font-size: 16px;
    color: var(--text-primary);
}

.search-results-count strong {
    color: var(--primary-color);
    font-weight: 600;
}

.search-results-list {
    margin-top: 20px;
}

.search-result-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

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

.search-result-title {
    display: inline;
    font-weight: normal;
    margin: 0;
    font-size: 16px;
    margin-top: 10px;
}

.search-result-title a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.search-result-title a:hover {
    text-decoration: underline;
}

.search-result-title .result-number {
    color: var(--text-secondary);
    margin-right: 8px;
}

.search-result-content {
    margin-top: 12px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.search-result-meta {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.search-result-meta .result-url {
    color: #0a0;
}

.search-result-meta .result-category {
    color: #77c;
}

.search-result-meta a {
    color: #77c;
    text-decoration: none;
}

.search-result-meta a:hover {
    text-decoration: underline;
}

.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
}

.pagination a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 侧边栏友情链接样式 */
.friend-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.friend-link-item {
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    flex: 0 0 auto;
}

.friend-link-item:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

