/* 全局样式变量 */
:root {
    /* 品牌颜色 */
    --color-primary: #a47e3b; /* 主要品牌色 */
    --color-secondary: #a47e3b47; /* 次要品牌色 */

    /* 文本颜色 */
    --color-text: #eee; /* 主要文本色 */
    --color-text-secondary: #a2a0a0; /* 次要文本色 */
    --color-text-light: #fff; /* 亮色文本色 */
    --color-text-dark: #d6d6d6; /* 暗色文本色 */

    /* 背景颜色 */
    --color-background: #393e46; /* 默认背景色 */
    --color-background-light: #444952; /* 浅灰色背景 */

    /* 状态颜色 */
    --color-success: #28a745; /* 成功色 */
    --color-warning: #ffc107; /* 警告色 */
    --color-error: #dc3545; /* 错误色 */

    /* 间距 */
    --space-xss: 0.2rem; /* 极小间距 */
    --space-xs: 0.3rem; /* 极小间距 */
    --space-sm: 0.5rem; /* 小间距 */
    --space-md: 0.75rem; /* 中间距 */
    --space-lg: 1rem; /* 大间距 */
    --space-xl: 1.5rem; /* 极大间距 */
    --space-xxl: 2rem; /* 超大间距 */

    /* 字体大小 */
    --font-size-xss: 0.75rem; /* 极小字体 */
    --font-size-xs: 0.85rem; /* 极小字体 */
    --font-size-sm: 0.9rem; /* 小字体 */
    --font-size-base: 1rem; /* 基础字体 */
    --font-size-lg: 1.3rem; /* 大字体 */
    --font-weight-light: 300; /* 细字体 */
    --font-weight-base: 400; /* 常规字体 */
    --font-weight-medium: 600; /* 中等粗细字体 */
    --font-weight-bold: 700; /* 粗字体 */

    /* 边框 */
    --border-radius: 4px;  /* 边框半径 */
    --color-border: #4a4d53; /* 边框颜色 */

    /* z-index */
    --z-index-modal: 1000; /* 模态框层级 */
    --z-index-header: 100; /* 头部层级 */
    --z-index-tooltip: 500; /* 提示层级 */
}
.w-100{
    display: block;
    width: 100% !important;
    margin: var(--space-sm) 0;
}
.mt-xxl { margin-top: var(--space-xxl); }
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    touch-action: manipulation;
    font-synthesis: none;
    scroll-padding-top: 100px;
}

body {
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.5;
    font-size: 16px;
}
/* 链接样式 */
a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: var(--font-weight-medium);
    transition: color 0.2s ease-out;
}
a:hover {
    color: var(--color-primary);
}
h1,h2,h3{
    margin: 0.8rem 0;
}
/* 按钮样式 */
button,.btn {
    padding: var(--space-xss) var(--space-lg);
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease-out;
    background-color: var(--color-background);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

button:hover,.btn:hover {
    background-color: var(--color-background-light);
}

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

.btn-primary:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border: 1px solid var(--color-primary);
    opacity: 0.8;
}

.btn-outline {
    background-color: var(--color-background);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}
.btn-outline:hover{
    background-color: var(--color-background);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}
.visit-btn {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--color-primary);
    color: var(--color-text);
    padding: 0.1rem 0.1rem 0.1rem var(--space-md);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.visit-btn:hover {
    background-color: var(--color-secondary);
}
.visit-text {
    margin-right: var(--space-xs);
}
.visit-icon {
    transition: transform 0.3s ease;
    background-color: var(--color-primary);
    border-radius: 50%;
    color: var(--color-text-light);
    padding: 4px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}
.visit-icon .fa{
    margin-right: 0;
}
/* 表单样式 */
.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}

input, textarea, select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    transition: border-color 0.2s ease-out;
    background-color: var(--color-background-light);
    color: var(--color-text);
}

input:focus, textarea:focus, select:focus {
    border-color: var(--color-primary);
    outline: none;
}

select{
    max-width: 250px;
}
/* 标签选择样式 */
.product-tags {
    display: flex;
    gap: var(--space-sm);
    margin: 0.6rem 0;
    flex-wrap: wrap;
}
.tag-checkbox {
    position: relative;
    cursor: pointer;
}
.tag-checkbox input[type="checkbox"] {
    opacity: 0;
    position: absolute;
}
.checkbox-label {
    background-color: var(--color-secondary);
    color: var(--color-text);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--border-radius);
    font-size: var(--font-size-xs);
    transition: background-color 0.2s ease;
    text-decoration: none;
}
.tag-checkbox input[type="checkbox"]:checked + .checkbox-label {
    background: var(--color-primary);
    color: var(--color-text-light);
    border-color: var(--color-border);
}
.tag-checkbox input[type="checkbox"]:checked + .checkbox-label::after {
    content: '✓';
    margin-left: 8px;
}
.tag-checkbox:hover .checkbox-label {
    border-color: var(--color-primary);
}
p{
    line-height: 1.7rem;
}
/* 文章内容样式 */
#post-content p{
    margin-bottom: var(--space-md);
    line-height: 2.5rem;
    font-size: 1rem;
}
#post-content h1,#post-content h2,#post-content h3{
    margin-top: 1.5rem;
    margin-left: -1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--color-primary);
}
blockquote, ul, ol, dl, li, table {
    margin: var(--space-xs) 0;
}
ul, ol {
    padding-left: var(--space-md);
}
blockquote {
    border-left: 2px solid var(--color-primary);
    padding: 0 1rem;
}
blockquote >:first-child {
    margin-top: 0;
}
blockquote >:last-child {
    margin-bottom: 0;
}
/* 表格样式 */
table {
    width: 100%;
    padding: 0;
    border-collapse: collapse;
    table-layout: fixed;
}
table thead tr{
    background-color: var(--color-border);
}
table tr {
    border-top: 1px solid var(--color-text-secondary);
    background-color: var(--color-background);
    margin: 0;
    padding: 0;
}
table tr:nth-child(2n), table tr:hover {
    background-color: color-mix(in srgb, var(--color-border) 50%, var(--color-background) 50%);
}
table tr th, table tr td {
    border: 1px solid var(--color-border);
    margin: 0;
    padding: 6px 13px;
    word-break: break-all;
}
table tr th {
    font-weight: var(--font-weight-bold);
}
table tr th:first-child, table tr td:first-child {
    margin-top: 0;
}
table tr th:last-child, table tr td:last-child {
    margin-bottom: 0;
}
pre {
    display: block;
    word-break: break-all;
    word-wrap: break-word;
    color: var(--color-text);
    background-color: var(--color-background-light);
    padding: var(--space-xs);
    white-space: pre-wrap;
    white-space: -moz-pre-wrap;
    white-space: -pre-wrap;
    white-space: -o-pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    border-radius: var(--border-radius);
}
code {
    padding: var(--space-xs);
    background-color: var(--color-background-light);
    color: var(--color-text);
    font-size: .8em;
    overflow-x: auto;
    margin: 0 var(--space-xss);
    min-width: 100%;
    white-space: pre-wrap;
    white-space: -moz-pre-wrap;
    white-space: -pre-wrap;
    white-space: -o-pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    border-radius: var(--border-radius);
}
pre code{
    padding: 0;
    margin: 0;
}
/* 图片样式 */
img {
    max-width: 100%;
}
#post-content img {
    object-fit: cover;
    max-width: 100%;
    max-height: 100vh;
    width: auto;
    height: auto;
    display: block;
}
/* 布局样式 */
/* 左侧侧栏 */
.grid-container-left {
    display: grid;
    grid-gap: var(--space-xs);
    grid-template-columns: 1fr minmax(auto, 85%); /* 左侧1份，右侧4份 */
}
/* 右侧侧栏 */
.grid-container-right {
    display: grid;
    grid-gap: var(--space-xs);
    grid-template-columns: 3fr minmax(auto, 25%); /* 左侧3份，右侧1份 */
}
/* Header样式 */
header {
    background-color: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-xs) 0;
    position: sticky;
    top: 0;
    z-index: var(--z-index-modal);
}
.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.logo {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    text-decoration: none;
}
.search-bar {
    flex-grow: 1;
    margin: 0 1rem;
    position: relative;
}
.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}
/* 汉堡菜单样式 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: var(--font-size-lg);
}
.menu-close {
    display: none;
}
/* 主内容区域 */
.main{
    margin: 1.5rem auto;
}
.sidebar-title {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-md);
    color: var(--color-text-dark);
}
.sidebar-links {
    list-style-type: none;
    font-size: var(--font-size-sm);
}
.sidebar-links li {
    margin: var(--space-md) 0;
}
.icon,.fa {
    margin-right: var(--space-xs);
    width: 16px;
    height: 16px;
}
/* 首页卡片样式 */
.grid-auto-card {
    display: grid;
    gap: var(--space-lg); /* 设置卡片之间的间距 */
    padding: var(--space-xss); /* 设置容器的内边距 */
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    overflow: hidden;
}

.card {
    border: 1px solid var(--color-border);
    padding: var(--space-xss);
    border-radius:var(--border-radius);
}
.card-title{
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: var(--space-xss) var(--space-xs);
    border-radius:var(--border-radius);
}
.card-a{
    background-color: var(--color-background-light);
    padding: var(--space-xs) var(--space-sm);
    display: block;
    border-radius:var(--border-radius);
    margin-top: var(--space-xs);
    font-weight: var(--font-weight-medium);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tag-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    list-style-type: none;
    font-size: var(--font-size-sm);
    padding: var(--space-xss);
}
.tag-nav li {
    margin: var(--space-xs) 0;
}
.tag-nav a {
    background-color: var(--color-background-light);
    padding: var(--space-xss) var(--space-sm);
    border-radius: var(--border-radius);
    white-space: nowrap;
}
/* 产品卡片样式 */
.product-card {
    display: flex;
    padding: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
}
.product-vote {
    align-items: center;
    margin-right: var(--space-md);
    min-width: 50px;
}
.vote-button {
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-bottom: var(--space-xs);
    text-decoration: none;
}
.vote-button:hover, .vote-button.active{
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}
.product-info {
    flex-grow: 1;
    max-width: 100%;
    line-height: 1.5;
}
.product-title {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    line-height: var(--space-lg);
}
.product-description {
    font-size: var(--font-size-sm);
}
.product-info .product-description {
    color: var(--color-text-secondary);
}
.tags-group {
    display: flex;
    gap: var(--space-sm);
    margin: var(--space-sm) 0;
    flex-wrap: wrap;
}
.tag {
    background-color: var(--color-background-light);
    padding: var(--space-xss) var(--space-sm);
    border-radius: var(--border-radius);
    font-size: var(--font-size-xss);
    transition: background-color 0.2s ease-out;
    text-decoration: none;
}
.tag:hover {
    color: var(--color-primary);
    opacity: 0.8;
}
.primary-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}
.empty-state{
    margin: var(--space-xxl) 0;
}
/* 产品详情页顶部卡片 */
.product-header {
    margin: var(--space-xl) 0;
    border-radius: var(--border-radius);
    padding: var(--space-lg);
    border: 1px solid var(--color-border);
    display: flex;
    gap: var(--space-xl);
    align-items: flex-start;
}
.vote-label{
    font-size: var(--font-size-xs);
}
.product-header-info {
    flex: 1;
    min-width: 0;
}
.product-stats {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
    align-items: center;
    margin-top: var(--space-sm);
}
/* 内容主区域样式 */
.content-main{
    border: 1px solid var(--color-border);
    padding: var(--space-lg);
    border-radius: var(--border-radius);
}
/* 评论区样式 */
.comments-section {
    margin-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
}
.comment {
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--color-border);
}
.comment-header{
    padding-bottom: var(--space-lg);
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}
.comment-author {
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    font-size: var(--font-size-base);
}
.comment-text {
    line-height: 1.5;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
    padding-left: var(--space-sm);
}
.comment-replies{
    border-left: 1px dashed var(--color-border);
    padding-left: 1.5rem;
}
.new-comment {
    margin-top: var(--space-xl);
}
.article-header{
    border-bottom: 1px dashed var(--color-border);
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-xxl);
    display: flex;
    align-items: flex-start;
}
/* 文章内侧栏样式 */
.sidebar-main {
    border-radius: var(--border-radius);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    border: 1px solid var(--color-border);
}
.sidebar-main .title{
    border-left: 3px solid var(--color-primary);
    padding-left: 1rem;
    margin-left: calc(var(--space-lg) * -1);
    margin-bottom: 1rem;
}
/* 侧栏产品卡片 */
.related-product {
    display: flex;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border);
}
.related-product:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.related-product-title {
    margin-bottom: var(--space-xs);
    color: var(--color-text);
}
.related-product-votes {
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
}
/* 用户头像 */
.avatar {
    max-width: 80px;
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    border: 2px solid var(--color-background);
    object-fit: cover;
    margin-bottom: var(--spacing-sm);
    display: block;
    box-shadow: 0 2px 4px var(--color-background-light);
}
.avatar-small {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--color-background);
    object-fit: cover;
    margin-right: 0.3rem;
    vertical-align: bottom;
    box-shadow: 0 2px 4px var(--color-background-light);
}
/* 用户中心卡片 */
.stats-cards {
    display: grid;
    grid-gap: 5px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-template-rows: repeat(2, 100px);
    margin-bottom: 2rem;
}
.stats-card {
    flex: 1;
    padding: var(--space-xl);
    text-align: center;
    min-width: 200px;
    gap: 1.5rem;
}
.stats-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.stats-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.stats-number {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.25rem;
}
.stats-label {
    color: var(--color-text-secondary);
}
/* 登录注册样式 */
.auth-form {
    max-width: 400px;
    margin: var(--space-xxl) auto;
    padding: var(--space-xxl);
    background: var(--color-background);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}
.auth-form h2 {
    margin-bottom: var(--space-xxl);
    text-align: center;
}
.auth-links {
    margin-top: var(--space-xxl);
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}
.auth-links a {
    color: var(--color-primary);
}
.error-message {
    background-color: #fee2e2;
    color: #dc2626;
    padding: 0.4rem 0.75rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-align: center;
}
/* 结果提示页面样式 */
.result-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: var(--space-xxl);
}
.result-box {
    max-width: 500px;
    width: 100%;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    padding: var(--space-xxl);
    text-align: center;
}
.result-box h2 {
    margin-bottom: 1rem;
    font-size: var(--font-size-lg);
}
.result-message {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.5;
}
.result-action {
    margin-top: var(--space-xxl);
}
/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    margin: var(--space-xl) 0;
}
.pagination-btn {
    padding: var(--space-sm) var(--space-lg);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: var(--font-size-sm);
    min-width: 40px;
    text-align: center;
    text-decoration: none;
}
.pagination-btn.active,.pagination-btn:hover {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
/* 页脚样式 */
footer {
    background-color: var(--color-background);
    padding: var(--space-lg) 0;
    margin-top: var(--space-xxl);
    border-top: 1px solid var(--color-border);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
.tip-box{
    text-align:center;
    padding:var(--space-lg);
    color: var(--color-primary);
    border:1px dashed var(--color-primary);
    border-radius: var(--border-radius);
    display: block;
    max-height: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
    margin-bottom: 0.2rem;
}
.tip-box:has(img) {
    padding: 0;
}
.tip-box img {
    width: 100%;
    height: 60px;
}
/* 返回顶部按钮的样式 */
#back-to-top {
    display: none;
    position: fixed;
    text-decoration: none;
    font-size: 2rem;
    color: var(--color-text-light);
    line-height: 1.6rem;
    text-align: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: var(--color-primary);
    cursor: pointer;
    bottom: 20px;
    right: 20px;
    opacity: 0.8;
    z-index: var(--z-index-tooltip);
    transition: all 0.1s ease-in-out;
}
#back-to-top:hover {
    opacity: 1;
}
#back-to-top:active {
    transform: scale(0.90); /* 鼠标按下时缩小到 95% 的大小 */
    height: 1.5rem;
}
/* 已读消息样式 */
.readed{
    opacity: 0.5;
}
/* 消息提示框 */
#msg{
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}
.msg-success{
    background-color: #d1fae5;
    color: #155724;
}
.msg-error{
    background-color: #f8d7da;
    color: #721c24;
}
/* 标签页样式 */
.tab{
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}
.tab-buttons {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.tab-buttons button {
    padding: var(--space-sm) var(--space-lg);
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    color: var(--color-text);
    transition: all 0.3s ease;
}

.tab-buttons button.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.tab-panels {
    background: var(--color-background);
    padding: var(--space-lg);
}

.tab-panels [data-panel] {
    display: none;
}

.tab-panels [data-panel].active {
    display: block;
}
/* 响应式设计 */
/* 笔记本屏幕下的布局 */
@media (max-width: 900px) {

}
/* 平板屏幕下的布局 */
@media (max-width: 768px) {
    /* 移动端菜单 */
    .header-content {
        flex-wrap: wrap;
        align-items: center;
    }
    .logo {
        margin-bottom: 0;
        flex: 1;
    }
    .menu-toggle {
        display: block;
        order: 2;
        margin-left: 1rem;
    }
    .search-bar {
        order: 3;
        width: 100%;
        margin: 0.75rem 0 0;
        display: block !important;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background-color: var(--color-background);
        padding: 1rem;
        display: flex;
        z-index: 1001;
        flex-direction: column;
        gap: 0.3rem;
        transition: right 0.3s ease-out;
        overflow-y: auto;
    }
    .nav-links.active {
        right: 0;
        display: flex;
    }
    .nav-links a {
        width: 100%;
        padding: var(--space-sm) var(--space-lg);
        border-radius: var(--border-radius);
    }
    .nav-links a:hover {
        opacity: 0.8;
        background-color: var(--color-background-light);
    }
    .nav-links .btn-primary {
        width: 100%;
        text-align: left;
    }
    .nav-links .btn-primary:hover{
        background-color: var(--color-primary);
        opacity: 0.8;
    }
    .nav-links .visit-btn{
        padding: var(--space-xss) var(--space-xs) var(--space-xss) var(--space-lg);
        border-radius: 50px;
    }
    .menu-close {
        display: block;
    }
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        transition: opacity 0.3s ease-out;
    }
    .menu-overlay.active {
        display: block;
        opacity: 1;
    }
    .grid-container-left, .grid-container-right {
        grid-template-columns: 1fr; /* 单列布局 */
    }
    .grid-auto-card {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    /* 侧栏样式 */
    .sidebar {
        width: 100%;
        margin-bottom: var(--space-md);
    }
    .sidebar-links {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-sm);
    }
    .sidebar-links li {
        margin: 0.2rem 0;
    }
    .sidebar-links a {
        background-color: var(--color-background-light);
        padding: var(--space-xs) var(--space-sm);
        border-radius: var(--border-radius);
        white-space: nowrap;
    }
    .sidebar-icon {
        margin-right: var(--space-xs);
    }
    /* 页脚样式 */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .footer-links {
        justify-content: center;
        gap: 1.5rem;
    }
    /* 移动端table样式 */
    table thead {
        display: none;
    }

    table tbody tr {
        display: block;
        margin-bottom: 10px;
        border: none;
    }

    table td {
        display: block;
        border: none;
        padding: 5px 0;
    }

    table td:before {
        content: attr(data-label) "：";
        font-weight: bold;
        display: inline-block;
    }
}
/* 手机屏幕下的布局 */
@media (max-width: 576px) {
    body {
        font-size: 15px;
    }
    .grid-auto-card {
        display: block;
    }
}
@media screen and (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}
ins.adsbygoogle[data-ad-status="unfilled"] {
    display: none !important;
}
