/* 门户补丁样式
 * 门户页面直接引用原站 /assets/style-*.css（含 Element Plus 与所有页面 scoped 规则）。
 * 这里只补服务端渲染相对原站缺失的部分：链接默认样式、非首页模板的基础布局、分页。
 * 所有选择器刻意保持低权重，不覆盖原站配色、字体与 scoped 组件样式。
 */

/* 原站是 Vue 组件内用 router.push 跳转，页面里几乎不出现 <a>；
   门户为了可抓取把卡片/菜单改成真实链接，需要去掉浏览器默认的蓝色下划线。 */
a { color: inherit; text-decoration: none; }

#app { min-height: 100vh; display: flex; flex-direction: column; }
/* 内容根 div 不允许被 flex 收缩，否则长页面会被压到 100vh，页脚悬在页面中段 */
#app > div { flex: 1 0 auto; }
.footer { margin-top: auto; flex: 0 0 auto; }
.footer .seo-footer-links { margin-top: 6px; font-size: 12px; text-align: center; }
.footer .seo-footer-links a { display: inline; }

.container { width: 100%; margin-left: auto; margin-right: auto; }

.about-page > section,
.auth-page > section,
.feedback-page > section { padding: 32px 0; }

.hero, .list-banner, .resource-header, .feedback-banner { padding: 44px 0; }
.banner-title { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.35; margin: 0 0 12px; }
.banner-subtitle { font-size: 16px; margin: 0 0 18px; opacity: .9; }

.section-header, .section-title { margin: 0 0 18px; }
.section-header .more { float: right; font-size: 14px; }
.section-header::after { content: ''; display: block; clear: both; }

.article-grid, .resource-grid, .nav-grid, .software-grid,
.pain-grid, .benefit-grid, .friendlink-bar {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.article-list { display: grid; gap: 16px; }
.article-item, .resource-card, .nav-card, .software-card,
.friendlink-card, .pain-card, .benefit-card { overflow: hidden; }

.article-item img, .resource-card img, .resource-cover img,
.article-thumb img, .card-thumb img { width: 100%; height: auto; object-fit: cover; }
.article-content img { max-width: 100%; height: auto; }
.article-content pre { overflow-x: auto; }
.article-content table { max-width: 100%; }

.main-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
.detail-wrapper { padding: 24px 0; }

.sidebar-card, .content-section, .resource-info, .comment-wrapper,
.feedback-list, .form-card, .info-list {
    margin-bottom: 20px;
    padding: 18px;
    background: #fff;
    border-radius: 10px;
}
/* 首页的 .resource-info 由原站 scoped 规则控制，不能被上面的通用卡片样式覆盖 */
.home-page .resource-info { margin: 0; padding: 0; background: none; border-radius: 0; }

.info-list { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.info-item { display: flex; gap: 8px; }
.info-label { color: #909399; }

.category-nav, .related-list, .hot-list { list-style: none; padding: 0; margin: 0; }
.category-nav li, .related-list li, .hot-list li { padding: 6px 0; }
.category-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }

.seo-pagination { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }
.seo-pagination .number, .seo-pagination .gap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #e4e7ed;
    border-radius: 6px;
    color: #606266;
}
.seo-pagination .number.is-active { background: #409eff; border-color: #409eff; color: #fff; }
.seo-pagination .gap { border: 0; }

.empty-list { padding: 24px 0; color: #909399; }
.resource-actions, .article-actions-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 24px 0; }
.article-tags, .card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }

/* 首页 hero / 卡片里的 Font Awesome 图标沿用原站类名，这里只给兜底尺寸 */
.nav-icon i, .hero-actions .btn-icon, .resource-thumb i, .article-thumb i { line-height: 1; }

@media (max-width: 900px) {
    .main-layout { grid-template-columns: 1fr; }
    .hero, .list-banner, .resource-header, .feedback-banner { padding: 28px 0; }
}

/* ---- 文章列表 / 详情 / 评论：精确复刻原站 scoped 布局 ----
   上面的通用补丁会命中部分同名类，这里只对复刻页做复位，
   其余页面保持原有观感不受影响。 */
.article-list-page .category-nav { display: block; flex-wrap: nowrap; gap: 0; margin: 0; }
.article-list-page .sidebar-card { margin-bottom: 0; }
.article-list-page .article-item { overflow: visible; }
.article-detail-page .article-tags { margin-bottom: 0; }
.article-detail-page button.action-btn { background: transparent; border: 0; padding: 0; font: inherit; }
.article-detail-page .action-btn.is-active { color: var(--el-color-primary); }

/* 文章列表页 / 资源列表页「热门标签」：与原站详情页标签云一致的胶囊效果 */
.seo-cloud-card {
    background: var(--el-bg-color-overlay);
    border: 1px solid var(--el-border-color-lighter);
    border-radius: 12px;
    padding: 20px;
}
.seo-cloud-title {
    border-bottom: 2px solid var(--el-color-primary-light-7);
    color: var(--el-text-color-primary);
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding-bottom: 12px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
}
.seo-cloud-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.seo-cloud-tag {
    display: inline-block;
    background: var(--el-fill-color-light);
    color: var(--el-text-color-regular);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 14px;
    line-height: 1.4;
    transition: all .2s;
}
.seo-cloud-tag:hover { color: #fff; background: var(--el-color-primary); }

/* 评论区交互反馈 */
.comment-form-tip { min-height: 18px; margin: 8px 0 0; font-size: 13px; }
.comment-form-tip.is-error { color: var(--el-color-danger); }
.comment-form-tip.is-success { color: var(--el-color-success); }
.seo-reply-form .el-textarea__inner { width: 100%; box-sizing: border-box; }
.comment-closed-tip { display: flex; align-items: center; gap: 8px; color: var(--el-text-color-secondary); margin-bottom: 20px; }

/* 评论分页（真正的本页分页，替代原站「前往原站查看更多」跳转） */
.comment-pagination { flex-wrap: wrap; gap: 8px; }
.seo-page-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 32px; height: 32px; padding: 0 10px;
    border: 1px solid var(--el-border-color, #dcdfe6); border-radius: 6px;
    background: var(--el-bg-color-overlay, #fff); color: var(--el-text-color-regular, #606266);
    font-size: 13px; line-height: 1; text-decoration: none;
    transition: border-color .2s, color .2s, background-color .2s;
}
.seo-page-btn:hover { border-color: var(--el-color-primary); color: var(--el-color-primary); }
.seo-page-btn.is-active { background: var(--el-color-primary); border-color: var(--el-color-primary); color: #fff; cursor: default; }
.seo-page-ellipsis { color: var(--el-text-color-secondary); padding: 0 2px; user-select: none; }
@media screen and (max-width: 768px) {
    .comment-pagination { padding: 16px 0 6px; gap: 6px; max-width: 100%; overflow-x: auto; }
    .seo-page-btn { min-width: 30px; height: 30px; padding: 0 8px; font-size: 12px; }
}

/* ---- 精品资源列表 / 详情：精确复刻原站 scoped 布局 ----
   上面的通用卡片补丁会命中同名类，这里只复位「原站 scoped 规则未定义」的属性，
   不碰 padding / background / border-radius 等由原站控制的属性。 */
.seo-resource-list-root .banner-subtitle { opacity: 1; }
.seo-resource-list-root .pagination-wrapper .seo-pagination { margin: 0; }
.seo-resource-detail-root .content-section { margin-bottom: 0; }
.seo-resource-detail-root .resource-card { overflow: visible; }
.seo-resource-detail-root .resource-info {
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
}
.seo-resource-detail-root .comment-wrapper { background: none; border: 0; border-radius: 0; }

/* 搜索交互与资源页新增元素 */
.seo-clear-search { margin-left: 6px; color: var(--el-color-primary); }
.seo-clear-search:hover { text-decoration: underline; }
.seo-empty { padding: 28px 0; text-align: center; color: var(--el-text-color-placeholder); }
.seo-empty p { margin: 0; font-size: 14px; }
.seo-empty-sm { padding: 12px 0; }
/* 功能组图：幻灯轮播（支持手动左右切换） */
.seo-gallery { position: relative; }
.seo-gallery-viewport { overflow: hidden; border-radius: 8px; background: #f5f7fa; }
.seo-gallery-track { display: flex; transition: transform .35s ease; will-change: transform; }
.seo-gallery-slide { flex: 0 0 100%; min-width: 100%; box-sizing: border-box; }
.seo-gallery-slide img { display: block; width: 100%; height: auto; }
.seo-gallery-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; padding: 0; border: none; border-radius: 50%;
    background: rgba(0,0,0,.4); color: #fff; cursor: pointer; z-index: 2;
    display: flex; align-items: center; justify-content: center; font-size: 16px;
    transition: background .2s;
}
.seo-gallery-nav:hover { background: rgba(0,0,0,.6); }
.seo-gallery-prev { left: 10px; }
.seo-gallery-next { right: 10px; }
.seo-gallery-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.seo-gallery-dot {
    width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%;
    background: var(--el-border-color, #dcdfe6); cursor: pointer;
    transition: background .2s, transform .2s;
}
.seo-gallery-dot.is-active { background: var(--el-color-primary, #409eff); transform: scale(1.3); }
@media screen and (max-width: 768px) {
    .seo-gallery-nav { width: 30px; height: 30px; font-size: 14px; }
    .seo-gallery-prev { left: 6px; }
    .seo-gallery-next { right: 6px; }
    .seo-gallery-dots { margin-top: 10px; gap: 6px; }
}
.seo-side-tag { margin: 0 8px 8px 0; }
.banner-search .el-input__inner { box-sizing: border-box; }

/* ---- 关于帮帮：精确复刻原站 scoped 布局 ----
   通用 .hero / .about-page > section 的 padding 会命中该页 Hero，需复位；
   .reveal 原本靠 IntersectionObserver 加 .visible，门户直接渲染为可见。 */
.about-page > .hero { padding: 0; }
.about-page .reveal { opacity: 1; transform: none; }

/* ---- 富文本图片：强制缩放适配所在容器，禁止横向溢出 ----
   编辑器写入的图片常带固定宽高或 inline style，这里用高权重规则兜底，
   只作用于正文 / 功能组图，不影响缩略图等有固定尺寸的组件。 */
.resource-content, .article-content, .seo-gallery { min-width: 0; max-width: 100%; }
.resource-content img, .resource-content video, .resource-content iframe,
.article-content img, .article-content video, .article-content iframe,
.seo-gallery img, .seo-gallery video {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain;
}
.resource-content table, .article-content table {
    max-width: 100%;
    display: block;
    overflow-x: auto;
}
.seo-resource-detail-root .content-section,
.article-detail-page .article-card { min-width: 0; overflow-x: hidden; }
/* 功能组图的单列大图观感已由上方 .seo-gallery 轮播样式接管 */

/* ---- 反馈建议页：表单与点选验证码 ---- */
.seo-native-select { appearance: auto; padding: 1px 8px; cursor: pointer; }
.seo-file-input { font-size: 14px; color: var(--el-text-color-regular); }
.feedback-page .seo-pagination { margin: 24px 0 0; }
.feedback-form-card .el-form-item__label { color: var(--el-text-color-regular); }
.feedback-form-card .el-form-item__content { flex: 1; min-width: 0; }
.feedback-form-card .el-textarea__inner { width: 100%; box-sizing: border-box; }
.seo-tip-ok { color: var(--el-color-success); }
.seo-tip-error { color: var(--el-color-danger); }

.seo-captcha-mask {
    position: fixed; inset: 0; z-index: 3000;
    background: rgba(0, 0, 0, .45);
    display: flex; align-items: center; justify-content: center; padding: 16px;
}
.seo-captcha-box {
    background: #fff; border-radius: 12px; padding: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
    max-width: 400px; width: 100%;
}
.seo-captcha-prompt { margin: 0 0 12px; font-size: 14px; color: #303133; }
.seo-captcha-prompt span { color: var(--el-color-primary); font-weight: 700; }
.seo-captcha-imgbox { position: relative; line-height: 0; }
.seo-captcha-imgbox img { width: 100%; height: auto; border-radius: 8px; cursor: crosshair; display: block; }
.seo-captcha-steps { position: absolute; inset: 0; pointer-events: none; }
.seo-captcha-step {
    position: absolute; width: 22px; height: 22px; border-radius: 50%;
    background: var(--el-color-primary); color: #fff;
    font-size: 12px; font-style: normal; line-height: 22px; text-align: center;
}
.seo-captcha-msg { min-height: 20px; margin: 10px 0 0; font-size: 13px; color: var(--el-color-warning); }
.seo-captcha-foot { display: flex; gap: 10px; justify-content: flex-end; }

/* ---- 精品资源列表页主体宽度 ----
   原站 scoped 规则把 .content-wrapper[data-v-deeedd2b] 限制为 1100px，
   而整站/首页 .container[data-v-a248f143] 为 1200px，导致列表主体比全站窄 100px。
   只针对该页容器覆盖，不影响文章列表等同名容器。 */
.seo-resource-list-root .page-content > .content-wrapper {
    max-width: 1200px;
    box-sizing: border-box;
}

/* ---- 首页「申请友情链接」弹窗（对照原站 ba-upload 表单） ---- */
.friendlink-apply { cursor: pointer; }
.seo-apply-toast {
    position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
    z-index: 4000; padding: 10px 20px; border-radius: 6px;
    background: var(--el-color-success, #67c23a); color: #fff; font-size: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
}
.seo-apply-overlay[hidden] { display: none !important; }
.seo-apply-overlay {
    position: fixed; inset: 0; z-index: 3000;
    background: rgba(0, 0, 0, .5);
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
}
.seo-apply-dialog {
    width: 500px; max-width: 100%;
    max-height: calc(100vh - 32px); overflow: auto;
    background: var(--el-bg-color-overlay, #fff);
    border-radius: 4px; box-shadow: 0 16px 48px rgba(0, 0, 0, .22);
    padding: 20px 24px 16px;
    color: var(--el-text-color-primary);
}
.seo-apply-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.seo-apply-head h3 { margin: 0; font-size: 18px; font-weight: 400; }
.seo-apply-close { background: none; border: 0; cursor: pointer; font-size: 16px; color: var(--el-text-color-placeholder); padding: 4px 6px; }
.seo-apply-close:hover { color: var(--el-text-color-regular); }
.seo-apply-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.seo-apply-item > label { flex: 0 0 100px; text-align: right; line-height: 36px; font-size: 14px; color: var(--el-text-color-regular); }
.seo-apply-item.is-required > label::before { content: '*'; color: var(--el-color-danger); margin-right: 4px; }
.seo-apply-field { flex: 1; min-width: 0; }
.seo-apply-input, .seo-apply-textarea {
    width: 100%; box-sizing: border-box;
    border: 1px solid var(--el-border-color, #dcdfe6); border-radius: 4px;
    padding: 8px 11px; font-size: 14px; line-height: 1.5;
    background: var(--el-fill-color-blank, #fff); color: var(--el-text-color-primary);
}
.seo-apply-input::placeholder, .seo-apply-textarea::placeholder { color: var(--el-text-color-placeholder, #a8abb2); }
.seo-apply-input:focus, .seo-apply-textarea:focus { outline: none; border-color: var(--el-color-primary); }
.seo-apply-textarea { resize: vertical; min-height: 88px; }

/* 虚线框 Logo 上传区：点击选择 + Ctrl+V 粘贴截图 */
.seo-apply-upload {
    position: relative; width: 160px; height: 170px;
    border: 1px dashed var(--el-color-primary, #409eff); border-radius: 6px;
    background: var(--el-fill-color-lighter, #fafafa);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: border-color .2s;
}
.seo-apply-upload:hover { border-color: var(--el-color-primary); }
.seo-apply-plus { font-size: 44px; font-weight: 300; line-height: 1; color: var(--el-color-primary); }
.seo-apply-upload-text {
    position: absolute; left: 0; right: 0; bottom: 0;
    border-top: 1px dashed var(--el-border-color, #dcdfe6);
    text-align: center; padding: 8px 0; font-size: 14px;
    color: var(--el-text-color-regular);
    background: var(--el-fill-color-blank, #fff);
    border-radius: 0 0 6px 6px;
}
.seo-apply-logo-preview {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: contain; background: #fff; border-radius: 6px;
}
.seo-apply-plus[hidden], .seo-apply-logo-preview[hidden] { display: none !important; }
.seo-apply-upload-tip {
    position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
    background: #303133; color: #fff; font-size: 13px; line-height: 1.4;
    padding: 8px 12px; border-radius: 4px; white-space: nowrap; z-index: 5;
    opacity: 0; visibility: hidden; transition: opacity .2s; pointer-events: none;
}
.seo-apply-upload-tip::after {
    content: ''; position: absolute; top: 100%; left: 50%; margin-left: -5px;
    border: 5px solid transparent; border-top-color: #303133;
}
.seo-apply-upload:hover .seo-apply-upload-tip { opacity: 1; visibility: visible; }
.seo-apply-upload-status { min-height: 16px; margin: 6px 0 0; font-size: 12px; color: var(--el-text-color-secondary); }
.seo-apply-tip { min-height: 18px; margin: 0 0 8px 112px; font-size: 13px; }
.seo-apply-tip.is-error { color: var(--el-color-danger); }
.seo-apply-tip.is-success { color: var(--el-color-success); }
.seo-apply-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.seo-apply-btn {
    border: 1px solid var(--el-border-color, #dcdfe6); background: #fff;
    color: var(--el-text-color-regular); border-radius: 4px;
    padding: 8px 20px; font-size: 14px; cursor: pointer;
}
.seo-apply-btn.is-primary { background: var(--el-color-primary); border-color: var(--el-color-primary); color: #fff; border-radius: 6px; }
.seo-apply-btn:disabled { opacity: .6; cursor: not-allowed; }
@media (max-width: 600px) {
    .seo-apply-item { display: block; }
    .seo-apply-item > label { display: block; width: auto; text-align: left; line-height: 1.6; margin-bottom: 6px; }
    .seo-apply-tip { margin-left: 0; }
}

/* ---- header 右侧：语言切换 / 主题切换 ---- */
.language-switch, .theme-switch { position: relative; }
/* header 内部滚动容器默认 overflow:hidden，会把绝对定位的语言菜单裁掉 */
.header .el-scrollbar.hidden-sm-and-down,
.header .el-scrollbar__wrap { overflow: visible; }
.seo-lang-btn {
    background: none; border: 0; cursor: pointer; padding: 0 10px;
    color: var(--el-text-color-primary); font-size: 14px; height: 100%;
}
.seo-lang-icon { display: inline-flex; align-items: baseline; gap: 1px; font-weight: 600; }
.seo-lang-icon .seo-lang-a { font-size: 11px; }
.seo-lang-menu {
    position: absolute; top: 100%; right: 0; min-width: 220px; z-index: 2000;
    background: var(--el-bg-color-overlay, #fff);
    border: 0;
    border-radius: 4px; box-shadow: 0 2px 12px rgba(0, 0, 0, .14); padding: 8px 0;
}
.seo-lang-menu[hidden] { display: none !important; }
.header .seo-lang-menu a { display: block; padding: 10px 20px; font-size: 16px; color: var(--el-text-color-primary); white-space: nowrap; }
.seo-lang-menu a:hover { background: var(--el-fill-color-light, #f5f7fa); color: var(--el-color-primary); }
.seo-lang-menu a.is-active { color: var(--el-text-color-primary); }
/* 开关本体由原站 darkSwitch 的 scoped 规则提供：
   40x20 轨道、16px 滑块、太阳/月亮 SVG 的 opacity 切换。 */
.theme-switch button.switch { font-size: 0; line-height: 0; }
.theme-switch .switch-action { transition: transform .25s, background-color .25s; }
html.dark .theme-switch .switch { background-color: #2c2c2c; }
html.dark .theme-switch .switch-action { background-color: #141414; transform: translate(20px); }
html.dark .theme-switch .light-icon { opacity: 0; }
html.dark .theme-switch .dark-icon { opacity: 1; }

/* ---- 会员中心：未登录链接 / 已登录头像昵称 + 下拉菜单 ---- */
.member-center-item { position: relative; }
[data-seo-member-guest][hidden], .header-user-box[hidden], .seo-user-menu[hidden] { display: none !important; }
.seo-member-guest { display: inline-flex; align-items: center; }
.header-user-box { cursor: pointer; height: 100%; }
.seo-member-nickname { color: var(--el-color-primary); font-size: 14px; white-space: nowrap; }
.member-center-item.is-open::after {
    content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px;
    background: var(--el-color-primary);
}
.seo-user-menu {
    position: absolute; top: 100%; left: 0; min-width: 220px; z-index: 2000;
    background: var(--el-bg-color-overlay, #fff);
    border-radius: 4px; box-shadow: 0 2px 12px rgba(0, 0, 0, .14);
    padding: 8px 0;
    line-height: normal;
}
.header .seo-user-menu a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 20px; font-size: 14px; color: var(--el-text-color-primary);
    white-space: nowrap; line-height: 20px;
}
.header .seo-user-menu a:hover { background: var(--el-fill-color-light, #f5f7fa); color: var(--el-color-primary); }
.header .seo-user-menu a.is-highlight { color: var(--el-color-primary); }
.header .seo-user-menu a i { margin-left: 24px; color: var(--el-text-color-secondary); font-size: 14px; }
.header .seo-user-menu a.is-highlight i { color: var(--el-color-primary); }

/* ---- 精品资源详情页主体宽度 ----
   原站 scoped 规则 .content-wrapper[data-v-1f5024aa] 为 1100px，
   与整站 .container[data-v-a248f143] 的 1200px 不一致。 */
.seo-resource-detail-root .page-content > .content-wrapper {
    max-width: 1200px;
    box-sizing: border-box;
}

/* ---- 全局返回顶部 / 首页扫描访问 ----
   按钮本体样式由原站 scoped CSS 提供（.back-top[data-v-9677c7a0]、
   .float-actions[data-v-a248f143]、.float-btn[data-v-a248f143]）。 */
.back-top[hidden], .seo-scan-overlay[hidden] { display: none !important; }
.back-top:focus-visible, .float-btn:focus-visible {
    outline: 2px solid var(--el-color-primary); outline-offset: 2px;
}
.seo-scan-overlay {
    position: fixed; inset: 0; z-index: 3000;
    background: rgba(0, 0, 0, .5);
    display: flex; align-items: center; justify-content: center; padding: 16px;
}
.seo-scan-dialog {
    width: 360px; max-width: 100%;
    background: var(--el-bg-color-overlay, #fff);
    border-radius: 8px; box-shadow: 0 16px 48px rgba(0, 0, 0, .22);
    padding: 18px 20px 22px;
    color: var(--el-text-color-primary);
}
.seo-scan-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.seo-scan-head h3 { margin: 0; font-size: 18px; font-weight: 600; }
.seo-scan-close { background: none; border: 0; cursor: pointer; font-size: 18px; color: var(--el-text-color-secondary); padding: 4px 8px; }
.seo-scan-qr { line-height: 0; padding: 8px; background: #fff; border-radius: 6px; }
.seo-scan-qr svg { width: 220px; height: 220px; max-width: 100%; display: block; margin: 0 auto; }
.seo-scan-fallback { font-size: 13px; color: var(--el-text-color-secondary); text-align: center; word-break: break-all; line-height: 1.6; }

/* ---- 移动端导航：右侧触发按钮 + 左侧抽屉 ---- */
.seo-mobile-trigger { display: none; }
.seo-drawer-mask {
    position: fixed; inset: 0; z-index: 2990;
    background: rgba(0, 0, 0, .45);
}
.seo-drawer-mask[hidden] { display: none !important; }
.seo-drawer {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 3000;
    width: 280px; max-width: 82vw;
    display: flex; flex-direction: column;
    background: var(--el-bg-color-overlay, #fff);
    color: var(--el-text-color-primary);
    box-shadow: 2px 0 16px rgba(0, 0, 0, .18);
    overflow-y: auto;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform .28s ease, visibility 0s linear .28s;
}
.seo-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform .28s ease, visibility 0s;
}
.seo-drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--el-border-color-lighter, #ebeef5);
}
.seo-drawer-brand {
    display: flex; align-items: center; gap: 8px;
    color: inherit; text-decoration: none;
    font-size: 18px; font-weight: 600;
}
.seo-drawer-brand img { width: 30px; height: 30px; object-fit: contain; }
.seo-drawer-close {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; padding: 0;
    border: 0; background: none; cursor: pointer;
    color: var(--el-color-primary);
}
.seo-drawer-body { padding: 6px 0 16px; }
.seo-drawer-link {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 20px;
    font-size: 16px; line-height: 1.2;
    color: inherit; text-decoration: none;
}
.seo-drawer-link:hover { background: var(--el-fill-color-light, #f5f7fa); color: var(--el-color-primary); }
.seo-drawer-link i { width: 20px; text-align: center; font-size: 16px; color: var(--el-text-color-secondary); }
.seo-drawer-link.is-home i { color: var(--el-color-primary); }
.seo-drawer-lang {
    margin-top: 6px; padding-top: 6px;
    border-top: 1px solid var(--el-border-color-lighter, #ebeef5);
}
.seo-drawer-lang-toggle {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px; border: 0; background: none; cursor: pointer;
    font-size: 16px; color: inherit;
}
.seo-drawer-lang-label { display: inline-flex; align-items: center; gap: 12px; }
.seo-drawer-lang-menu { padding-bottom: 6px; }
.seo-drawer-lang-menu[hidden] { display: none !important; }
.seo-drawer-lang-menu a {
    display: block; padding: 10px 20px 10px 52px;
    font-size: 15px; color: inherit; text-decoration: none;
}
.seo-drawer-lang-menu a:hover { color: var(--el-color-primary); }
.seo-drawer-lang-menu a.is-active { color: var(--el-text-color-primary); }
.seo-drawer-theme {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px; font-size: 16px;
}
.seo-drawer-switch {
    position: relative; width: 40px; height: 20px; padding: 0;
    border: 0; border-radius: 10px; background: #dcdfe6; cursor: pointer;
    transition: background-color .25s;
}
.seo-drawer-switch::after {
    content: ''; position: absolute; top: 2px; left: 2px;
    width: 16px; height: 16px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
    transition: transform .25s;
}
html.dark .seo-drawer-switch { background: var(--el-color-primary); }
html.dark .seo-drawer-switch::after { transform: translateX(20px); }
body.seo-drawer-open { overflow: hidden; }
@media only screen and (max-width: 991px) {
    .seo-mobile-trigger {
        display: inline-flex; align-items: center; justify-content: center;
        width: 40px; height: 40px; margin-left: auto; padding: 0;
        border: 0; background: none; cursor: pointer;
        color: var(--el-color-primary);
    }
}
@media only screen and (min-width: 992px) {
    .seo-drawer, .seo-drawer-mask { display: none !important; }
}
.seo-mobile-trigger:focus-visible,
.seo-drawer-close:focus-visible,
.seo-drawer-switch:focus-visible {
    outline: 2px solid var(--el-color-primary); outline-offset: 2px;
}

/* ---- 文章详情：评论独立成列 ----
 * 桌面：评论位于主列（正文/上下篇）下方，右侧「相关阅读」等侧栏贯通；
 * 移动端（单栏）：按 DOM 顺序 main → side → comment-section，
 * 即 正文 → 相关阅读 → 评论，落在网页主体底部、footer 之上。 */
.article-detail-page .detail-layout[data-v-2e7b3eea] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    grid-template-areas: "main side" "comments side";
    align-items: start;
    gap: 24px;
}
.article-detail-page .main-column[data-v-2e7b3eea] { grid-area: main; width: auto; min-width: 0; }
.article-detail-page .side-column[data-v-2e7b3eea] { grid-area: side; width: 320px; position: sticky; top: 90px; }
.article-detail-page .comment-section { grid-area: comments; min-width: 0; }

@media screen and (width <= 992px) {
    .article-detail-page .detail-layout[data-v-2e7b3eea] {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    .article-detail-page .main-column[data-v-2e7b3eea] { width: 100%; }
    .article-detail-page .side-column[data-v-2e7b3eea] {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        position: static;
    }
    .article-detail-page .comment-section { width: 100%; }
}
@media screen and (width <= 480px) {
    .article-detail-page .side-column[data-v-2e7b3eea] { grid-template-columns: minmax(0, 1fr); }
}

/* ---- 手机端（≤768px）：统一收紧页面边距 ----
 * 原站各区块左右留白为 20px、卡片内边距 20~24px、网格 gap 24px，手机屏下过于松散。
 * 选择器用「重复类名」提高特异性（等于原站 scoped 的 类名+[data-v]），
 * 配合本文件后加载，稳定覆盖原站规则，桌面端不受影响。 */
@media screen and (max-width: 768px) {
    /* header：左右留白、logo 与站点名 */
    .header-row.header-row { padding: 0 12px; }
    .header-row.header-row .header-logo { padding-right: 8px; }
    .header-row.header-row .header-logo img { width: 28px; height: 28px; }
    .header-row.header-row .header-logo .site-name { padding-left: 4px; font-size: 18px; }
    .seo-mobile-trigger { width: 36px; height: 36px; }

    /* 通用容器（首页/关于/授权/反馈等） */
    .container.container { padding-left: 12px; padding-right: 12px; }

    /* 首页 hero 与区块间距 */
    .hero-banner.hero-banner { min-height: 340px; }
    .hero-banner .hero-content.hero-content { padding: 40px 12px; }
    .quick-nav.quick-nav { padding: 18px 0; }
    .section-block.section-block { padding: 16px 0; }
    .section-header.section-header { margin-bottom: 12px; }

    /* 首页网格与卡片 */
    .quick-nav .nav-grid.nav-grid,
    .resource-grid.resource-grid,
    .article-grid.article-grid { gap: 12px; }
    .quick-nav .nav-card.nav-card { padding: 14px; gap: 12px; }
    .resource-grid + .resource-grid { margin-top: 12px; }
    .resource-card.resource-card { padding: 14px; gap: 12px; }
    .article-card .article-body.article-body { padding: 14px; }
    .friendlink-section .friendlink-bar.friendlink-bar { padding: 14px 12px; gap: 14px; }

    /* 文章列表页 */
    .article-list-page.article-list-page { padding: 14px 12px; }
    .category-info.category-info { padding: 16px; margin-bottom: 14px; }
    .article-item.article-item { padding: 12px; gap: 10px; }
    .article-ad-wrap.article-ad-wrap { padding: 12px; }

    /* 文章详情页 */
    .article-detail-page.article-detail-page { padding: 16px 12px 28px; }
    .article-detail-page .detail-layout.detail-layout { gap: 16px; }
    .article-card.article-card { padding: 20px 16px; }
    .side-column .side-card { padding: 14px; }

    /* 资源 / 软件 / 静态页 */
    .page-content.page-content { padding: 14px 12px; }
    .about-page > section,
    .auth-page > section,
    .feedback-page > section { padding: 24px 0; }
}

/* ---- 精品资源详情：评论区与主体同宽 ----
 * 主体 .content-wrapper 已由上方规则限制为 1200px（与全站一致），
 * 这里让 .comment-wrapper 同样为 1200px，并去掉通用卡片白底与多余内缩，
 * 使评论区与正文完全等宽（左右留白统一由 .page-content 提供）。 */
.seo-resource-detail-root .page-content > .comment-wrapper {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}
.seo-resource-detail-root .comment-wrapper {
    background: none;
    border-radius: 0;
    padding: 0 0 30px;
    margin-bottom: 0;
}
@media screen and (max-width: 768px) {
    .seo-resource-detail-root .comment-wrapper { padding: 0 0 24px; }
}
