/* 基础样式 */
body {
    font-family: 'Inter', system-ui, sans-serif; /* 全局字体，优先使用Inter， fallback为系统字体 */
    margin: 0; /* 清除默认外边距 */
    padding: 0; /* 清除默认内边距 */
    line-height: 1.5; /* 行高设置，提升文本可读性 */
    color: #333647; /* 全局文本颜色 */
    background-color: #fff; /* 页面背景色 */
}

/* 颜色变量 */
:root {
    --primary: #165DFF; /* 主色调（蓝色） */
    --secondary: #0A2463; /* 辅助色（深蓝色） */
    --neutral: #F5F7FA; /* 中性色（浅灰背景） */
    --neutral-dark: #333647; /* 深色文本 */
    --color-green-light: #dcfce7; /* 浅绿色背景（状态提示） */
    --color-green-dark: #16a34a; /* 深绿色文本（成功状态） */
    --color-blue-light: #dbeafe; /* 浅蓝色背景（信息提示） */
    --color-blue-dark: #2563eb; /* 深蓝色文本（信息状态） */
    --color-purple-light: #ede9fe; /* 浅紫色背景（特殊状态） */
    --color-purple-dark: #7c3aed; /* 深紫色文本（特殊状态） */
    --color-gray-50: #f9fafb; /* 最浅灰色（背景） */
    --color-gray-100: #f3f4f6; /* 浅灰色（分割线/次要背景） */
    --color-gray-200: #e5e7eb; /* 中浅灰色（边框） */
    --color-gray-300: #d1d5db; /* 中灰色（禁用状态） */
    --color-gray-400: #9ca3af; /* 中深灰色（次要文本） */
    --color-gray-500: #6b7280; /* 深灰色（说明文本） */
    --color-gray-600: #4b5563; /* 更深灰色（强调次要文本） */
    --transition-duration: 0.2s; /* 全局过渡动画时长 */
}

    /* 深色模式样式 */
    body.dark-mode {
        background-color: #1a1a1a;
        color: #f0f0f0;
    }
    .dark-mode .bg-white {
        background-color: #2d2d2d;
    }
    .dark-mode .text-gray-500 {
        color: #b0b0b0;
    }
    .dark-mode .thread-title a {
        color: #4da6ff;
    }
    .dark-mode .footer {
        background-color: #2d2d2d;
        border-top-color: #444;
    }


/* 头部样式 */
.header {
    background-color: white; /* 头部背景色 */
    color: #333647; /* 头部文本色 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* 头部底部阴影（立体感） */
    border-bottom: 2px solid #e5e7eb; /* 头部底部边框（分隔内容） */
    top: 0; /* 固定在顶部 */
    z-index: 10; /* 层级高于主内容，避免被覆盖 */
}

.header-container {
    max-width: 1280px; /* 头部最大宽度 */
    margin: 0 auto; /* 居中显示 */
    padding: 0.75rem 1rem; /* 内边距 */
    display: flex; /* Flex布局 */
    flex-wrap: wrap; /* 允许换行（适配移动端） */
}

.header-left {
    display: flex; /* Flex布局 */
    align-items: center; /* 垂直居中 */
    gap: 0.75rem; /* 子元素间距 */
    width: 25%; /* 占50%宽度 */
}

.header-left img {
    font-size: 1.5rem; /* 图片尺寸 */
    color: var(--primary); /* 图片颜色（主色调） */
}

.header-title {
    font-size: 2rem; /* 标题大小 */
    font-weight: bold; /* 粗体 */
    text-align: center; /* 文本居中 */
}

.header-title div:first-child {
    padding-bottom: 1rem; /* 第一个子元素底部内边距 */
}

.header-title div:nth-child(2) {
    padding-bottom: 0.5rem; /* 第二个子元素底部内边距 */
}

.version-badge {
    font-size: 1rem; /* 版本标签文字大小 */
    font-weight: normal; /* 正常字重 */
    background-color: var(--primary); /* 背景色（主色调） */
    color: white; /* 文字颜色 */
    padding: 0.125rem 0.5rem; /* 内边距（紧凑） */
    border-radius: 9999px; /* 圆形边框（胶囊样式） */
    margin-left: 0.5rem; /* 左边距 */
}

.header-middle {
    width: 50%; /* 占50%宽度 */
    display: flex; /* Flex布局 */
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
}

.header-middle img {
    object-fit: contain; /* 图片保持比例，不拉伸 */
    max-width: 100%; /* 最大宽度限制（避免溢出） */
}

.header-right {
    display: flex; /* Flex布局 */
    align-items: center; /* 垂直居中 */
    gap: 1rem; /* 子元素间距 */
    width: 25%; /* 占25%宽度 */
    justify-content: flex-end; /* 靠右对齐 */
}

/* 主内容区域 */
.main-content {
    display: flex; /* Flex布局 */
    flex: 1; /* 占据剩余空间 */
    overflow: hidden; /* 隐藏溢出内容 */
    flex-direction: column; /* 默认垂直排列（移动端） */
}

/* 侧边栏样式 */
.sidebar {
    width: 100%; /* 宽度100%（移动端） */
    background-color: var(--neutral); /* 背景色（中性色） */
    border-right: 1px solid #e5e7eb; /* 右边框（分隔主内容） */
    flex-shrink: 0; /* 不收缩 */
    overflow-y: auto; /* 垂直滚动（内容过多时） */
    scrollbar-width: none; /* 隐藏滚动条（Firefox） */
    max-height: 0; /* 初始高度为0（默认隐藏） */
    overflow: hidden; /* 隐藏内容 */
    transition: max-height 0.3s ease; /* 高度变化过渡动画 */
}

.sidebar.active {
    max-height: none; /* 不限制高度 */
    overflow-y: auto;
}

/* 平板及以上设备适配 */
@media (min-width: 768px) {
    .sidebar {
        width: 16rem; /* 固定宽度（256px） */
        max-height: none; /* 高度不限 */
        display: block; /* 始终显示 */
    }
    .main-content {
        flex-direction: row; /* 水平排列（侧边栏+主内容） */
    }
}

.sidebar::-webkit-scrollbar {
    display: none; /* 隐藏滚动条（Chrome/Safari） */
}

.sidebar-section-title {
    display: flex; /* Flex布局 */
    align-items: center; /* 垂直居中 */
    padding: 0.5rem 0.75rem; /* 内边距 */
    border-radius: 0.5rem; /* 圆角 */
    cursor: pointer; /* 鼠标指针（可点击） */
    transition: all 0.2s; /* 过渡动画（背景色等变化） */
}

.sidebar-section-title img {
    width: 1.25rem; /* 图标宽度（20px） */
    margin-right: 0.5rem; /* 右边距（与文字分隔） */
}

.sidebar-item {
    margin-left: 0.75rem; /* 左边距（缩进） */
}

.sidebar-item-header {
    display: flex; /* Flex布局 */
    align-items: center; /* 垂直居中 */
    justify-content: space-between; /* 两端对齐（文字+图标） */
    padding: 0.5rem 0.75rem; /* 内边距 */
    border-radius: 0.5rem; /* 圆角 */
    cursor: default; /* 鼠标指针（不可点击） */
    transition: all 0.2s; /* 过渡动画 */
    line-height: 1; /* 行高1（紧凑） */
}

.sidebar-item-header:hover {
    background-color: #e5e7eb; /* 悬停背景色（浅灰） */
}

.sidebar-item-header img {
    width: 1.25rem; /* 图标宽度 */
    text-align: center; /* 文本居中 */
    margin-right: 0.5rem; /* 右边距 */
    color: #f59e0b; /* 图标颜色（橙色） */
    line-height: 1; /* 行高1 */
    display: inline-flex; /* 行内Flex（居中图标） */
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
}

.sidebar-item-content {
    margin-left: 1.5rem; /* 左边距（更深缩进） */
    margin-top: 0.25rem; /* 上边距 */
    margin-bottom: 0.5rem; /* 下边距 */
    display: block; /* 块级显示 */
}

.sidebar-link {
    display: flex; /* Flex布局 */
    align-items: center; /* 垂直居中 */
    padding: 0.375rem 0.75rem; /* 内边距 */
    border-radius: 0.5rem; /* 圆角 */
    transition: all 0.2s; /* 过渡动画 */
    text-decoration: none; /* 无下划线（链接样式） */
    color: #333647; /* 文本色 */
    line-height: 1; /* 行高1 */
    min-height: 44px; /* 最小高度（点击区域） */
}

.sidebar-link:hover {
    background-color: #e5e7eb; /* 悬停背景色 */
}

.sidebar-link img {
    width: 1.25rem; /* 图标宽度 */
    text-align: center; /* 文本居中 */
    margin-right: 0.5rem; /* 右边距 */
    color: #6b7280; /* 图标颜色（灰色） */
    line-height: 1; /* 行高1 */
    display: inline-flex; /* 行内Flex */
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
}

.sidebar-item-active {
    background-color: rgba(22, 93, 255, 0.1); /* 激活状态背景色（主色调透明） */
    color: var(--primary); /* 激活状态文本色（主色调） */
    border-left: 4px solid var(--primary); /* 左侧高亮边框（主色调） */
}

.sidebar-link.sidebar-item-active {
    background-color: rgba(22, 93, 255, 0.1); /* 链接激活背景色 */
    color: var(--primary); /* 链接激活文本色 */
    border-left: 4px solid var(--primary); /* 链接左侧高亮边框 */
}

/* 文章内容区域 */
.article {
    flex: 1; /* 占据剩余空间 */
    overflow-y: auto; /* 垂直滚动 */
    background-color: white; /* 背景色（白色） */
    padding: 1rem; /* 内边距 */
}

/* 平板及以上设备适配 */
@media (min-width: 768px) {
    .article {
        padding: 1.5rem 2rem; /* 增加内边距 */
    }
}

.article-container {
    max-width: 80rem; /* 最大宽度（1280px） */
    margin: 0 auto; /* 居中显示 */
}

.article-header {
    margin-bottom: 1.5rem; /* 下边距（与内容分隔） */
    display: flex; /* Flex布局 */
    flex-direction: column; /* 垂直排列（移动端） */
}

/* 小屏设备适配 */
@media (min-width: 640px) {
    .article-header {
        flex-direction: row; /* 水平排列（标题+操作按钮） */
        align-items: center; /* 垂直居中 */
        justify-content: space-between; /* 两端对齐 */
    }
}

.article-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem); /* 响应式字体（最小24px，最大40px，随视口变化） */
    font-weight: bold; /* 粗体 */
    color: var(--neutral-dark); /* 文本色（深色） */
    margin-bottom: 0.25rem; /* 下边距 */
}

.article-meta {
    display: flex; /* Flex布局 */
    align-items: center; /* 垂直居中 */
    font-size: 0.875rem; /* 字体大小（14px） */
    color: #6b7280; /* 文本色（灰色） */
}

.article-meta span {
    margin-right: 0.5rem; /* 右边距（元数据之间分隔） */
}

.article-actions {
    margin-top: 1rem; /* 上边距（与标题分隔） */
    display: flex; /* Flex布局 */
    align-items: center; /* 垂直居中 */
    gap: 0.75rem; /* 按钮间距 */
}

/* 小屏设备适配 */
@media (min-width: 640px) {
    .article-actions {
        margin-top: 0; /* 移除上边距（与标题同行） */
    }
}

.article-button {
    display: flex; /* Flex布局 */
    align-items: center; /* 垂直居中 */
    padding: 0.5rem 1rem; /* 内边距 */
    border: 1px solid #d1d5db; /* 边框（浅灰） */
    border-radius: 0.5rem; /* 圆角 */
    transition: all 0.2s; /* 过渡动画 */
    cursor: pointer; /* 鼠标指针（可点击） */
    background-color: white; /* 背景色（白色） */
    min-height: 44px; /* 最小高度（点击区域） */
    min-width: 44px; /* 最小宽度（点击区域） */
}

.article-button:hover {
    background-color: #f9fafb; /* 悬停背景色（浅灰） */
}

.article-button.primary {
    background-color: var(--primary); /* 主按钮背景色（主色调） */
    color: white; /* 主按钮文本色（白色） */
}

.article-button.primary:hover {
    background-color: rgba(22, 93, 255, 0.9); /* 主按钮悬停背景色（主色调加深） */
}

.article-button img {
    margin-right: 0.5rem; /* 图标右边距（与文字分隔） */
}

/* 文章内容样式 */
.prose {
    max-width: none; /* 不限制最大宽度 */
}

.prose p.lead {
    color: #4b5563; /* 引导文本色（中灰） */
    margin-bottom: 1.5rem; /* 下边距 */
}

.prose h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.5rem;
    padding-left: 3rem; /* 预留图片空间 */
    background-image: url('/images/h2_Logo.png');
    background-repeat: no-repeat;
    background-position: left center; /* 左对齐 + 垂直居中 */
    background-size: 2.5rem 2.5rem; /* 强制缩放图片 */
}



.prose h3 {
    font-size: 1.25rem; /* 字体大小（20px） */
    font-weight: 600; /* 半粗体 */
    margin-bottom: 0.75rem; /* 下边距 */
}

.prose ul {
    list-style-type: disc; /* 列表样式（圆点） */
    padding-left: 1.5rem; /* 左边内边距（缩进） */
    margin-top: 0.75rem; /* 上边距 */
    margin-bottom: 1.5rem; /* 下边距 */
}

.prose ul li {
    margin-bottom: 0.5rem; /* 列表项下边距 */
}

.prose ol {
    list-style-type: decimal; /* 有序列表样式（数字） */
    padding-left: 1.5rem; /* 左边内边距 */
    margin-top: 0.75rem; /* 上边距 */
    margin-bottom: 1.5rem; /* 下边距 */
}

.prose ol li {
    margin-bottom: 0.75rem; /* 列表项下边距 */
}

.prose img {
    border-radius: 0.5rem; /* 图片圆角 */ 
    max-width: 70%;    /* 图片最大宽度 */
    height: auto; /* 保持图片比例 */
    margin-top: 2px; /* 图片上边距 */
    display: block;    /* 图片作为块级元素 */
    margin-left: auto; /* 图片水平居中 */
    margin-right: auto; /* 图片水平居中 */
}

.prose figcaption {
    text-align: center; /* 图片说明文字居中 */
    font-size: 0.875rem; /* 图片说明文字大小 */
    color: #6b7280; /* 图片说明文字颜色 */
    margin-top: 0.5rem; /* 图片说明文字上边距 */
}

/* 图片放大样式 */
.img-zoom-overlay {
    position: fixed; /* 固定定位 */
    top: 0; /* 覆盖整个页面 */
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9); /* 黑色半透明背景 */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000; /* 高层级，确保在最上层 */
    cursor: zoom-out; /* 鼠标指针样式 */
}

.img-zoom-content {
    max-width: 90%; /* 放大图片最大宽度 */
    max-height: 90%; /* 放大图片最大高度 */
    animation: fadeIn 0.3s; /* 淡入动画 */
}

.img-zoom-close {
    position: fixed; /* 固定定位 */
    top: 20px; /* 关闭按钮位置 */
    right: 20px;
    color: white; /* 关闭按钮颜色 */
    font-size: 30px; /* 关闭按钮大小 */
    cursor: pointer; /* 鼠标指针样式 */
    z-index: 1001; /* 比遮罩层层级高 */
}

/* 图片容器样式 */
.image-container {
    text-align: center; /* 图片容器内元素居中 */
    margin: 20px 0; /* 图片容器上下边距 */
}

/* 可放大图片的基础样式 */
.zoom-target {
    cursor: zoom-in; /* 鼠标指针样式 */
    transition: transform 0.2s; /* 悬停时的缩放过渡 */
}

.zoom-target:hover {
    transform: scale(1.02); /* 悬停时轻微放大 */
}

@keyframes fadeIn {
    from { opacity: 0; } /* 淡入动画初始状态 */
    to { opacity: 1; } /* 淡入动画结束状态 */
}

/* 移动端优化 */
@media (max-width: 768px) {
    .img-zoom-content {
        max-width: 100%; /* 移动端放大图片最大宽度 */
        padding: 10px; /* 移动端放大图片内边距 */
    }
}

/* 提示框 */
.alert {
    background-color: #eff6ff; /* 提示框背景色 */
    border-left: 4px solid var(--primary); /* 提示框左侧边框 */
    padding: 1rem; /* 提示框内边距 */
    margin-bottom: 1.5rem; /* 提示框下边距 */
}

.alert h3 {
    font-weight: bold; /* 提示框标题粗体 */
    color: var(--primary); /* 提示框标题颜色 */
    margin-bottom: 0.25rem; /* 提示框标题下边距 */
}

/* ================= 卡片样式 ================= */
.card-grid {
    display: grid; /* 网格布局 */
    grid-template-columns: 1fr; /* 默认单列 */
    gap: 1.5rem; /* 卡片间距 */
    margin-top: 1.5rem; /* 卡片组上边距 */
}


@media (min-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr); /* 平板两列 */
    }
}

@media (min-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr); /* 桌面三列 */
    }
}

.card {
    position: relative; /* 相对定位 */
    background-color: white; /* 卡片背景色 */
    border-radius: 0.75rem; /* 卡片圆角 */
    padding: 1.5rem; /* 卡片内边距 */
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); /* 卡片阴影 */
    border: 1px solid #e5e7eb; /* 卡片边框 */
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1); /* 卡片过渡动画 */
    overflow: hidden; /* 隐藏溢出内容 */
    z-index: 1; /* 卡片层级 */
}

/* 新增效果 */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(22, 93, 255, 0.05) 0%, 
        rgba(101, 163, 13, 0.05) 100%); /* 卡片渐变背景 */
    z-index: -1; /* 背景层级在卡片内容之下 */
    opacity: 0; /* 默认不可见 */
    transition: opacity 0.3s ease; /* 渐变过渡 */
}

.card:hover {
    transform: translateY(-5px); /* 悬停时上移 */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12); /* 悬停时阴影加深 */
}

.card:hover::before {
    opacity: 1; /* 悬停时显示渐变背景 */
}

.card h3 {
    font-weight: 600; /* 卡片标题字重 */
    font-size: 1.125rem; /* 卡片标题大小 */
    margin-bottom: 0.75rem; /* 卡片标题下边距 */
    display: flex; /* 卡片标题使用flex布局 */
    align-items: center; /* 垂直居中 */
    position: relative; /* 相对定位 */
    padding-bottom: 0.75rem; /* 卡片标题底部内边距 */
}

/* 新增标题下划线 */
.card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px; /* 下划线宽度 */
    height: 3px; /* 下划线高度 */
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%); /* 下划线渐变 */
    border-radius: 3px; /* 下划线圆角 */
}

.card h3 img,
.card h3 svg {
    width: 1.25rem; /* 卡片标题图标大小 */
    height: 1.25rem;
    margin-right: 0.5rem; /* 卡片标题图标右边距 */
    color: var(--primary); /* 卡片标题图标颜色 */
}

.card p {
    color: #4b5563; /* 卡片内容颜色 */
    margin-bottom: 1rem; /* 卡片内容下边距 */
}

/* 新增装饰元素 */
.card-decoration {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22, 93, 255, 0.08) 0%, rgba(22, 93, 255, 0) 70%); /* 装饰元素渐变 */
    z-index: -1; /* 装饰元素层级在卡片内容之下 */
}

.decoration-1 {
    top: -30px; /* 右上角装饰元素位置 */
    right: -30px;
}

.decoration-2 {
    bottom: -40px; /* 左下角装饰元素位置 */
    left: -40px;
    background: radial-gradient(circle, rgba(101, 163, 13, 0.08) 0%, rgba(101, 163, 13, 0) 70%); /* 装饰元素渐变 */
}

/* 新增标签样式 */
.card-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(90deg, rgba(22, 93, 255, 0.1) 0%, rgba(22, 93, 255, 0.2) 100%); /* 标签渐变背景 */
    color: var(--primary); /* 标签文字颜色 */
    border-radius: 50px; /* 标签圆角 */
    font-size: 0.75rem; /* 标签文字大小 */
    font-weight: 500; /* 标签文字字重 */
    margin-top: 0.5rem; /* 标签上边距 */
    border: 1px solid rgba(22, 93, 255, 0.2); /* 标签边框 */
}

.text-sm {
  font-size: 0.875rem; /* 小文字大小 */
  color: #6b7280;      /* 小文字颜色 */
  line-height: 1.5;     /* 小文字行高 */
}

.bg-blue-50 {
  background-color: #f0f9ff; /* 浅蓝色背景 */
}

.text-blue-800 {
  color: #1e40af; /* 深蓝色文字 */
}

.supplement-note {
  position: relative;
  padding-left: 1rem;
  margin-top: 1rem;
  border-left: 3px solid var(--primary); /* 补充说明左侧边框 */
}

.supplement-text {
  font-size: 0.875rem;
  color: #4b5563;
  margin: 0;
  padding: 0.5rem 0;
}

/* 标题文字大小调整 */
.card-title {
  font-size: 1.125rem;
}

@media (max-width: 640px) {
  .card-title {
    font-size: 1rem; /* 小屏幕标题大小 */
  }
}

/* 内容文字调整 */
.card-content {
  font-size: 1rem;
}

@media (max-width: 640px) {
  .card-content {
    font-size: 0.875rem; /* 小屏幕内容大小 */
  }
}

/* 补充说明样式 */
.card-supplement {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed #e5e7eb; /* 补充说明顶部虚线 */
}

@media (max-width: 640px) {
  .card-supplement {
    font-size: 0.8125rem; /* 小屏幕补充说明大小 */
  }
}

/* 装饰元素移动端调整 */
.card-decoration {
  width: 80px;
  height: 80px;
}

@media (min-width: 768px) {
  .card-decoration {
    width: 120px;
    height: 120px; /* 大屏幕装饰元素大小 */
  }
}

/* 移动端图标尺寸调整 */
@media (max-width: 640px) {
    .card h3 svg {
        width: 1rem; /* 16px */
        height: 1rem;
    }
}

/* ================= 表格样式 - 简约蓝白方案 ================= */
.table-container {
    margin: 1.5rem 0;
    overflow-x: auto;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    color: #2d3748; /* 深灰色文字 */
}

.data-table thead {
    background-color: #3498db; /* 蓝色表头 */
    border-bottom: 2px solid #2980b9;
}

.data-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: white; /* 白色表头文字 */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

.data-table thead th {
    font-size: 0.85rem; 
    text-transform: none; 
    cursor: default;
}

.data-table thead th:hover {
    background-color: #3498db; /* 保持表头原始背景色 */
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0; /* 浅灰色边框 */
    vertical-align: middle;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background-color: #ebf8ff; /* 浅蓝色悬停效果 */
}

.data-table img {
  max-width: 100%; /* 图片最大宽度等于单元格宽度 */
  margin-left: 0;  /* 取消自动居中的左外边距 */
  margin-right: 0; /* 取消自动居中的右外边距 */
}


/* 表格单元格中的图标样式 */
.data-table .cell-icon {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.data-table .icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: #bee3f8; /* 浅蓝色背景 */
    color: #2b6cb0; /* 深蓝色图标 */
}

/* 表格状态样式 */
.data-table .status {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.data-table .status-active {
    background-color: #c6f6d5;
    color: #276749;
}

.data-table .status-inactive {
    background-color: #edf2f7;
    color: #4a5568;
}

.data-table .status-pending {
    background-color: #e9d8fd;
    color: #553c9a;
}



/* 空状态和加载状态 */
.table-empty,
.table-loading {
    padding: 2rem;
    text-align: center;
    color: var(--color-gray-500);
    background-color: white;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .data-table {
        display: block;
        white-space: nowrap;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.75rem;
    }
}

/* 页脚信息 */
.article-footer {
    margin-top: 3rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
}

@media (min-width: 640px) {
    .article-footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.contributors {
    font-size: 0.875rem;
    color: #6b7280;
}

.contributors img {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    border: 2px solid white;
    margin-left: -0.5rem;
}

.footer-actions {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .footer-actions {
        margin-top: 0;
    }
}

/* 移动端菜单按钮 */
.mobile-menu-button {
    position: fixed;
    top: 1rem;
    right: 1.5rem;
    background-color: white;
    color: white;
    padding: 0.75rem;
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border: none;
    cursor: pointer;
}

.mobile-menu-button img {
    width: 24px;
    height: 24px;
    pointer-events: none;
}

@media (min-width: 768px) {
    .mobile-menu-button {
        display: none;
    }
}

/* 回到顶部按钮 */
#back-to-top {
    position: fixed;
    bottom: 60px;
    right: 20px;
    z-index: 999;
}

.back-to-top-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(22, 93, 255, 0.9);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s;
    text-align: center;
}

.back-to-top-wrapper svg {
    margin-bottom: 4px;
}

.back-to-top-wrapper span {
    font-size: 12px;
    line-height: 1.2;
}

#back-to-top:hover .back-to-top-wrapper {
    background-color: rgba(22, 93, 255, 1);
    transform: translateY(-2px);
}

/* 头部响应式调整 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        padding: 0.5rem;
    }
    
    .header-left, .header-middle, .header-right {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    
    .header-title {
        font-size: 1.5rem;
    }
    
    .header-middle img {
        max-width: 100%;
        height: auto;
    }
}


/* 极简圆角分页样式 */
.pagination-nav {
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--color-gray-200);
    display: flex;
    justify-content: center;
}

.pagination-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* 分页按钮专用样式，与原有按钮类名区分 */
.page-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* 圆形设计 */
    font-weight: 500;
    color: #64748B;
    background: #F1F5F9;
    border: none;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0;
}

/* 悬停光效动画 */
.page-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

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

.page-btn:hover {
    transform: scale(1.05);
    color: #334155;
}

/* 当前高亮当前页高亮样式，使用独立的active类名
避免与原有.primary类冲突
*/
.page-btn.active {
    background: #2563EB;
    color: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.page-btn.active:hover {
    background: #1D4ED8;
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.15);
}

/* 响应式响应式调整 */
@media (max-width: 600px) {
    .page-btn {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
}