/* 前台辅助样式：Tailwind Play CDN 的 preflight 会清空富文本样式，这里恢复教程内容排版。 */

:root {
    color-scheme: light;
}

html {
    scroll-behavior: smooth;
}

/* 教程富文本 */
.tutorial-content {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.tutorial-content > :first-child {
    margin-top: 0;
}

.tutorial-content > :last-child {
    margin-bottom: 0;
}

/* 迁移文章里的“重要提示 / 温馨提示”块：由迁移脚本识别后套用站点样式。 */
.tutorial-content .tutorial-callout {
    margin: 1.4em 0;
    padding: 0.9em 1.1em;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    border-radius: 0.75rem;
    background: #fffbeb;
}

.tutorial-content .tutorial-callout p {
    margin: 0.45em 0;
}

.tutorial-content .tutorial-callout > :first-child {
    margin-top: 0;
}

.tutorial-content .tutorial-callout > :last-child {
    margin-bottom: 0;
}

.tutorial-content .tutorial-callout-title,
.tutorial-content .tutorial-callout-title strong,
.tutorial-content .tutorial-callout-title b {
    margin: 0 0 0.5em;
    font-weight: 700;
    color: #b45309;
}

.tutorial-content .tutorial-callout-title p {
    margin: 0;
}

.tutorial-content h1,
.tutorial-content h2,
.tutorial-content h3,
.tutorial-content h4,
.tutorial-content h5,
.tutorial-content h6 {
    margin: 1.8em 0 0.7em;
    font-weight: 600;
    line-height: 1.4;
    color: #0f172a;
}

.tutorial-content h1 { font-size: 1.5rem; }
.tutorial-content h2 { font-size: 1.3rem; }
.tutorial-content h3 { font-size: 1.15rem; }
.tutorial-content h4 { font-size: 1.05rem; }
.tutorial-content h5,
.tutorial-content h6 { font-size: 1rem; }

.tutorial-content p {
    margin: 0.6em 0;
}

.tutorial-content a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tutorial-content a:hover {
    color: #1d4ed8;
}

/* 编辑器字号预设（CKEditor 以 span.text-* 类保存） */
.tutorial-content .text-tiny { font-size: 0.7em; }
.tutorial-content .text-small { font-size: 0.85em; }
.tutorial-content .text-big { font-size: 1.4em; }
.tutorial-content .text-huge { font-size: 1.8em; }

.tutorial-content strong,
.tutorial-content b {
    font-weight: 600;
    /* 继承外层颜色：公众号正文常用“彩色 span 包 strong”做强调 */
    color: inherit;
}

.tutorial-content ul,
.tutorial-content ol {
    margin: 0.9em 0;
    padding-left: 1.6em;
}

.tutorial-content ul { list-style: disc; }
.tutorial-content ol { list-style: decimal; }
.tutorial-content li { margin: 0.35em 0; }
.tutorial-content li > ul,
.tutorial-content li > ol { margin: 0.35em 0; }

.tutorial-content blockquote {
    margin: 1em 0;
    padding: 0.6em 1em;
    border-left: 4px solid #bfdbfe;
    border-radius: 0 0.5rem 0.5rem 0;
    background: #f8fafc;
    color: #475569;
}

.tutorial-content img {
    /* 统一左对齐：用块级 + 右侧自动外边距，避免被文章内联的 text-align:center 居中 */
    display: block;
    max-width: 100%;
    height: auto;
    /* 上边距保持紧凑，下边距稍大，与后续内容拉开层次 */
    margin: 0.2em auto 1.5em 0;
    border-radius: 0.375rem;
    border: 1px solid #e2e8f0;
    /* 轻微阴影让截图从正文中浮起，避免大面积浅色截图与背景糊在一起 */
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18), 0 20px 40px -12px rgba(15, 23, 42, 0.45);
}

/* 图片单独成段时只保留图片自身间距，去掉行高在图片上下产生的留白。
   flow-root 建立独立格式化上下文，阻止图片上下外边距与相邻段落塌陷，
   保住与原 inline-block 版一致的留白（上方约 12px、下方约 32px）。 */
.tutorial-content p:has(> img:only-child),
.tutorial-content section:has(> img:only-child),
.tutorial-content figure {
    display: flow-root;
    margin: 0;
    line-height: 0;
}

/* 桌面端收窄图片，避免长截图占满整屏；移动端保持通栏，点击可弹层放大 */
@media (min-width: 640px) {
    .tutorial-content img {
        max-width: 40rem;
    }
}

@media (max-width: 639px) {
    .tutorial-content img {
        cursor: zoom-in;
    }
}

/* 移动端图片预览弹层：整张图缩放适配屏幕，双指放大只作用于图片 */
.tutorial-zoom-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.95);
    overscroll-behavior: contain;
    /* 禁掉浏览器页面级手势，双指缩放由脚本控制，避免关闭后整页仍被放大 */
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.tutorial-zoom-overlay img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    border: 0;
    border-radius: 0.25rem;
    transform-origin: center center;
    will-change: transform;
}

.tutorial-zoom-close {
    position: fixed;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.tutorial-content code {
    padding: 0.15em 0.4em;
    border-radius: 0.35rem;
    background: #f1f5f9;
    color: #0f172a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.88em;
}

.tutorial-content pre {
    margin: 1em 0;
    padding: 1em 1.25em;
    overflow-x: auto;
    border-radius: 0.75rem;
    background: #0f172a;
    color: #e2e8f0;
    line-height: 1.6;
}

.tutorial-content pre code {
    padding: 0;
    background: transparent;
    color: inherit;
    font-size: 0.85rem;
}

/* 移动端表格横向滚动 */
.tutorial-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 1em 0;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.tutorial-content table th,
.tutorial-content table td {
    padding: 0.5em 0.75em;
    border: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
}

.tutorial-content table th {
    background: #f8fafc;
    font-weight: 600;
    color: #0f172a;
}

.tutorial-content hr {
    margin: 1.5em 0;
    border: 0;
    border-top: 1px solid #e2e8f0;
}

/* 移动端版本头部：图标与标题并行，元信息与介绍通栏 */
@media (max-width: 639px) {
    body .version-head-row {
        display: grid;
        grid-template-columns: 3rem minmax(0, 1fr);
        column-gap: 0.75rem;
        row-gap: 0;
        align-items: start;
    }

    .version-head-body {
        display: contents;
    }

    .version-head-title {
        grid-column: 2;
    }

    .version-head-meta,
    .version-head-summary,
    .version-head-stats {
        grid-column: 1 / -1;
    }
}

/* 移动端软件头部：图标与标题并行，介绍与分类通栏 */
@media (max-width: 639px) {
    body .software-head-row {
        display: grid;
        grid-template-columns: 3rem minmax(0, 1fr);
        column-gap: 0.75rem;
        row-gap: 0;
        align-items: start;
    }

    .software-head-body {
        display: contents;
    }

    .software-head-title {
        grid-column: 2;
    }

    .software-head-summary,
    .software-head-tags {
        grid-column: 1 / -1;
    }
}

/* 软件介绍折叠：收起时“展开”叠放在第二行末尾 */
.summary-toggle {
    position: absolute;
    right: 0;
    bottom: 0;
    padding-left: 2.5rem;
    background: linear-gradient(to left, #ffffff 70%, rgba(255, 255, 255, 0));
}

.summary-expanded .summary-toggle {
    position: static;
    display: block;
    width: fit-content;
    margin: 0.25rem 0 0 auto;
    padding-left: 0;
    background: none;
}

/* 版本详情页重要提示：警示色正文，整体紧凑 */
.notice-content {
    color: #92400e;
    font-size: 0.875rem;
    line-height: 1.6;
}

.notice-content p {
    margin: 0.35em 0;
}

.notice-content ul,
.notice-content ol {
    margin: 0.35em 0;
    padding-left: 1.4em;
}

.notice-content li {
    margin: 0.15em 0;
}

.notice-content strong,
.notice-content b {
    color: #78350f;
}

.notice-content a {
    color: #b45309;
}

.notice-content code {
    background: #fef3c7;
    color: #78350f;
}

/* ==========================================================================
   首页：现代软件索引（Modern Index）
   冷调浅底、蓝色主色与玫红强调，白色圆角卡片搭配柔和阴影。
   ========================================================================== */

body.page-home {
    --surface: #ffffff;
    --ink: #0f172a;
    --ink-soft: #475569;
    --ink-faint: #64748b;
    --line: #e5e9f2;
    --line-strong: #d3dae7;
    --primary: #2563eb;
    --primary-deep: #1d4ed8;
    --primary-soft: #eff6ff;
    --primary-ring: rgba(37, 99, 235, 0.14);
    --accent: #f43f5e;
    --page-bg: #f5f7fc;
    --header-bg: rgba(255, 255, 255, 0.82);
    --input-bg: #f8fafc;
    --card-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    --card-hover-border: rgba(37, 99, 235, 0.45);
    --card-hover-shadow: 0 10px 24px -12px rgba(37, 99, 235, 0.4);
    --dropdown-shadow: 0 18px 44px -18px rgba(15, 23, 42, 0.28);
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
    --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", "SFMono-Regular", Consolas, monospace;

    background-color: var(--page-bg);
    background-image:
        radial-gradient(ellipse 62% 42% at 8% -6%, rgba(37, 99, 235, 0.14), transparent 62%),
        radial-gradient(ellipse 52% 34% at 96% 0%, rgba(244, 63, 94, 0.09), transparent 58%),
        radial-gradient(ellipse 46% 30% at 56% 8%, rgba(6, 182, 212, 0.07), transparent 60%);
    background-repeat: no-repeat;
    background-attachment: fixed;

    color: var(--ink);
}

.home-editorial {
    color: var(--ink);
}


/* 头部 */
.home-hero {
    padding: 0 0 1.25rem;
    border-bottom: 1px solid var(--line);
}

/* 首页横幅：插画铺底，站名与标签叠在左侧留白区 */
.home-hero.home-banner {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    aspect-ratio: 6 / 1;
    padding: 0;
    border: 0;
    border-radius: 1.25rem;
}

.home-banner-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 100%;
}

.home-banner-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    max-width: 48%;
    padding: clamp(1rem, 2.4vw, 1.6rem);
}

.home-banner .home-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.home-banner .home-tags {
    margin-top: 0.6rem;
}

.home-title {
    margin: 0;
    font-size: clamp(2.75rem, 8vw, 5rem);
    line-height: 0.98;
    font-weight: 800;
    letter-spacing: -0.055em;
    color: var(--ink);
}

.home-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    font-family: var(--mono);
    font-size: 0.625rem;
    letter-spacing: 0.12em;
    color: var(--ink-faint);
}

.home-tags li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.home-tags li::before {
    content: "";
    width: 0.3rem;
    height: 0.3rem;
    border-radius: 50%;
    background: var(--accent);
}

/* 布局与分类索引 */
.home-layout {
    display: grid;
    gap: 2rem;
    margin-top: 1.75rem;
}

.home-index,
.home-sections {
    min-width: 0;
}

.home-index-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid var(--primary);
    font-family: var(--mono);
    font-size: 0.6875rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink);
}

.home-index-head span:last-child {
    color: var(--accent);
}

.home-index ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-index li {
    border-bottom: 1px solid var(--line);
}

.home-index a {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    padding: 0.55rem 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--ink-soft);
    text-decoration: none;
    transition: color 0.15s ease, padding-left 0.15s ease;
}

.home-index a:hover {
    padding-left: 0.25rem;
    color: var(--primary);
}

.home-index .idx {
    flex-shrink: 0;
    width: 1.35rem;
    font-family: var(--mono);
    font-size: 0.625rem;
    font-variant-numeric: tabular-nums;
    color: var(--ink-faint);
    transition: color 0.15s ease;
}

.home-index .name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.home-index .count {
    flex-shrink: 0;
    font-family: var(--mono);
    font-size: 0.625rem;
    color: var(--ink-faint);
}

.home-index a.is-active {
    color: var(--primary);
    font-weight: 600;
}

.home-index a.is-active .idx {
    color: var(--accent);
}

.home-index a.is-active .count {
    color: var(--accent);
}

/* 分类区块 */
.home-section {
    padding: 2.25rem 0 2.5rem;
    border-top: 1px solid var(--line);
    scroll-margin-top: 5.5rem;
}

.home-section:first-child {
    padding-top: 0;
    border-top: 0;
}

.home-section-head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.35rem;
}

.home-section-body {
    flex: 1;
    min-width: 0;
}

.home-section-titleline {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.15rem 0.75rem;
}

.home-section-title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--ink);
}

.home-section-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.home-section-title a:hover {
    color: var(--primary);
}

.home-section-meta {
    margin: 0;
    font-family: var(--mono);
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    color: var(--ink-faint);
}

.home-section-more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    margin-left: auto;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid var(--line-strong);
    font-family: var(--mono);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    white-space: nowrap;
    color: var(--ink-soft);
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.home-section-more span {
    transition: transform 0.2s ease;
}

.home-section-more:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.home-section-more:hover span {
    transform: translateX(3px);
}

/* 子分类与软件网格 */
.home-group + .home-group {
    margin-top: 1.6rem;
}

.home-group-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 0.7rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--primary);
}

.home-group-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.home-group-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.home-group-title a:hover {
    color: var(--accent);
}

.home-group-count {
    flex-shrink: 0;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: var(--primary-soft);
    font-family: var(--mono);
    font-size: 0.5625rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: var(--primary);
}

.home-software-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.home-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    background: var(--surface);
    box-shadow: var(--card-shadow);
    color: var(--ink);
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.home-card:hover {
    border-color: var(--card-hover-border);
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-1px);
}

.home-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 0.45rem;
    background: var(--primary-soft);
    font-family: var(--serif);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
}

.home-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 首字母兜底配色：按软件名稳定取色，同一软件每次都是同一个颜色 */
.icon-tone-0 {
    background-color: #eff6ff;
    color: #1d4ed8;
}

.icon-tone-1 {
    background-color: #ecfdf5;
    color: #047857;
}

.icon-tone-2 {
    background-color: #fff7ed;
    color: #c2410c;
}

.icon-tone-3 {
    background-color: #fff1f2;
    color: #be123c;
}

.icon-tone-4 {
    background-color: #f5f3ff;
    color: #6d28d9;
}

.icon-tone-5 {
    background-color: #ecfeff;
    color: #0e7490;
}

.icon-tone-6 {
    background-color: #f0fdfa;
    color: #0f766e;
}

.icon-tone-7 {
    background-color: #f1f5f9;
    color: #475569;
}

.icon-tone-8 {
    background-color: #eef2ff;
    color: #4338ca;
}

.icon-tone-9 {
    background-color: #fffbeb;
    color: #b45309;
}

.icon-tone-10 {
    background-color: #f7fee7;
    color: #4d7c0f;
}

/* 面包屑：始终单行，超长时在容器内横向拖动查看 */
.breadcrumb-nav ol {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.breadcrumb-nav ol::-webkit-scrollbar {
    display: none;
}

.breadcrumb-nav li {
    flex-shrink: 0;
    white-space: nowrap;
}

.home-card-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.home-card-name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.5;
}


.home-card-arrow {
    width: 0.75rem;
    height: 0.75rem;
    flex-shrink: 0;
    color: var(--line-strong);
    transition: color 0.15s ease, transform 0.15s ease;
}

.home-card:hover .home-card-arrow {
    color: var(--accent);
    transform: translateX(2px);
}

/* 重点推广软件（如 CleanAPP）：沿用「会员服务」的暖橙强调风格，在首页网格中更醒目 */
.home-card.home-card--featured {
    border-color: #fdba74;
    background: linear-gradient(135deg, #fffbf5 0%, #ffedd5 100%);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.12);
}

.home-card.home-card--featured:hover {
    border-color: #fb923c;
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.18);
}

.home-card--featured .home-card-name {
    color: #9a3412;
    font-weight: 700;
}

.home-card--featured .home-card-icon {
    background: #ffedd5;
    color: #c2410c;
}

.home-card--featured .home-card-arrow {
    color: #fb923c;
}

.home-card--featured:hover .home-card-arrow {
    color: #ea580c;
}

/* 空状态 */
.home-empty {
    margin-top: 2.5rem;
    padding: 3.5rem 1rem;
    border: 1px dashed var(--line-strong);
    text-align: center;
    color: var(--ink-soft);
}

.home-empty-title {
    margin: 0 0 0.5rem;
    font-family: var(--serif);
    font-size: 1.5rem;
    color: var(--ink);
}

/* 焦点可见性 */
.home-index a:focus-visible,
.home-card:focus-visible,
.home-section-more:focus-visible,
.home-section-title a:focus-visible,
.home-group-title a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* 页头站名与其后的品牌小标签：小字与大标题共用一条基线 */
.site-brand {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.site-brand-tag {
    display: inline-flex;
    align-items: center;
    align-self: baseline;
    padding: 0.1rem 0.45rem;
    border-radius: 0.125rem;
    background: #ecfdf5;
    color: #047857;
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

/* 顶栏快捷入口：会员服务（浅橙高亮）+ 帮助中心 */
.site-nav {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

.site-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.45rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.4;
    color: #475569;
    white-space: nowrap;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.site-nav-link:hover {
    background: #f1f5f9;
    color: #1d4ed8;
}

.site-nav-link--accent {
    color: #c2410c;
    font-weight: 600;
}

.site-nav-link--accent:hover {
    background: #fff7ed;
    color: #9a3412;
}

/* 手机/窄屏：隐藏「软件小妹」标签，压缩间距，保证 logo + 入口 + 搜索按钮同一行 */
@media (max-width: 767px) {
    .site-header-inner {
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    header.search-open .site-header-inner {
        flex-wrap: wrap;
    }

    .site-brand {
        min-width: 0;
    }

    .site-brand-tag {
        display: none;
    }

    .site-header-inner .site-brand > span.text-lg {
        font-size: 1rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 379px) {
    .site-header-inner .site-brand > span.text-lg {
        display: none;
    }
}

/* 平板：收紧搜索框，给 logo 与入口留空间 */
@media (min-width: 640px) and (max-width: 1023px) {
    .site-nav-link {
        padding: 0.45rem 0.6rem;
        font-size: 0.8125rem;
    }

    .site-search-box {
        width: 11rem;
    }
}

/* 桌面：入口与搜索框恢复常规尺寸 */
@media (min-width: 1024px) {
    .site-nav {
        gap: 0.375rem;
    }

    .site-nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }

    .site-search-box {
        width: 16rem;
    }
}

/* 首页的站点头尾融入新配色，其余页面保持原样 */
body.page-home > header {
    border-bottom-color: var(--line);
    background: var(--header-bg);
}

body.page-home > header a > span.bg-blue-600 {
    background-color: var(--primary);
}

body.page-home > header span.text-lg {
    color: var(--ink);
    letter-spacing: -0.02em;
}

body.page-home > header input[type="search"] {
    border-color: var(--line);
    background: var(--input-bg);
}

body.page-home > header input[type="search"]:focus {
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 3px var(--primary-ring);
}

body.page-home > header button[type="submit"] {
    background: var(--primary);
}

body.page-home > header button[type="submit"]:hover {
    background: var(--primary-deep);
}

body.page-home > header #instant-search-results {
    border-color: var(--line);
    box-shadow: var(--dropdown-shadow);
}

body.page-home > main {
    padding-top: 0.75rem;
    padding-bottom: 1rem;
}

body.page-home > footer {
    margin-top: 0;
    border-top-color: var(--line);
    background: transparent;
}

/* 入场动效 */
@media (prefers-reduced-motion: no-preference) {
    .home-hero > .home-title,
    .home-hero > .home-tags {
        animation: home-rise 0.65s cubic-bezier(0.22, 0.61, 0.36, 1) both;
    }

    .home-hero > .home-tags {
        animation-delay: 0.08s;
    }
}

@keyframes home-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式 */
@media (min-width: 640px) {
    .home-hero {
        padding: 1rem 0 1.5rem;
    }

    .home-software-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-section-head {
        flex-wrap: nowrap;
    }
}

@media (max-width: 639px) {
    body.page-home > main {
        padding-top: 0.5rem;
    }

    .home-hero.home-banner {
        aspect-ratio: 13 / 5;
    }

    .home-banner-image {
        object-position: 100% 50%;
    }

    .home-banner-content {
        max-width: 58%;
        padding: 0.9rem 1rem;
    }

    .home-banner .home-title {
        font-size: 1.75rem;
    }

    .home-banner .home-tags {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, max-content));
        justify-content: start;
        gap: 0.3rem 0.6rem;
        margin-top: 0.4rem;
        font-size: 0.52rem;
    }

    .home-section {
        scroll-margin-top: 1rem;
    }

    .home-section-head {
        flex-wrap: wrap;
    }

    .home-section-more {
        display: none;
    }

    .home-card-arrow {
        display: none;
    }

    .home-card {
        padding: 0.5rem 0.55rem;
        gap: 0.5rem;
    }

    .home-card-icon {
        width: 1.6rem;
        height: 1.6rem;
        border-radius: 0.4rem;
        font-size: 0.75rem;
    }

    .home-card-name {
        display: -webkit-box;
        overflow: hidden;
        white-space: normal;
        line-height: 1.35;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
}

@media (min-width: 1024px) {
    .home-layout {
        grid-template-columns: 12rem minmax(0, 1fr);
        gap: 3.5rem;
        margin-top: 1.25rem;
    }

    .home-index {
        position: sticky;
        top: 5.5rem;
        align-self: start;
        display: flex;
        flex-direction: column;
        height: calc(100vh - 7rem);
    }

    .home-index-head {
        flex-shrink: 0;
    }

    .home-index nav {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        /*padding-bottom: 0.5rem;*/
        scrollbar-width: none;
    }

    .home-index nav::-webkit-scrollbar {
        display: none;
    }

    .home-software-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* 移动端分类索引改为横向筹码条 */
@media (max-width: 1023px) {
    .home-layout {
        margin-top: 1rem;
        gap: 1.25rem;
    }

    .home-index-head {
        display: none;
    }

    .home-index ol {
        display: flex;
        gap: 0.35rem;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        scrollbar-width: none;
    }

    .home-index ol::-webkit-scrollbar {
        display: none;
    }

    .home-index li {
        flex: 0 0 auto;
    }

    .home-index a {
        padding: 0.25rem 0.6rem;
        border: 1px solid var(--line);
        border-radius: 0.5rem;
        background: var(--surface);
        white-space: nowrap;
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .home-index a:hover {
        border-color: var(--line-strong);
        color: var(--primary);
    }

    .home-index .idx,
    .home-index .count {
        display: none;
    }

    .home-index a.is-active {
        border-color: var(--primary);
        background: var(--primary);
        color: #ffffff;
    }
}

/* 移动端顶栏随页面滚动，避免长时间占用可视区域 */
@media (max-width: 639px) {
    body > header.sticky {
        position: static;
    }
}

/* 帮助中心 */
/* 6 张卡片固定排布：手机 1 列、平板 2 列、桌面及以上 3 列。 */
.help-grid {
    display: grid;
    gap: 0.875rem;
    grid-template-columns: 1fr;
    align-items: stretch;
}

@media (min-width: 640px) {
    .help-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .help-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.help-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.15rem 1.25rem 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.help-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
}

.help-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.help-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.help-hero-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.help-hero-icon {
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(37, 99, 235, 0.2));
}

@media (min-width: 640px) {
    .help-hero-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
}

.help-article-head {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 移动端：直接隐藏文章图标。 */
@media (max-width: 639px) {
    .help-article-icon {
        display: none;
    }
}

.help-article-icon {
    width: 3.5rem;
    height: 3.5rem;
    flex-shrink: 0;
    border-radius: 0.875rem;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

@media (min-width: 640px) {
    .help-article-icon {
        width: 4rem;
        height: 4rem;
    }
}

.help-card-index {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #93c5fd;
}

.help-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    color: #0f172a;
}

.help-card:hover .help-card-title {
    color: #1d4ed8;
}

.help-card-desc {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.7;
    color: #64748b;
}

.help-card-more {
    margin-top: auto;
    padding-top: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #2563eb;
    text-align: right;
}

/* 前 2 张卡片与详情页的转化入口保持一致：浅暖色底 + 橙色描边，醒目但不刺眼。 */
.help-card.help-card--featured {
    border-color: #fdba74;
    background: linear-gradient(135deg, #fffbf5 0%, #ffedd5 100%);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.1);
}

.help-card.help-card--featured:hover {
    border-color: #fb923c;
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.16);
}

.help-card--featured .help-card-index {
    color: #fb923c;
}

.help-card--featured .help-card-title,
.help-card--featured:hover .help-card-title {
    color: #9a3412;
}

.help-card--featured .help-card-desc {
    color: #92400e;
}

.help-card--featured .help-card-more {
    color: #ea580c;
}

.help-related {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #f8fafc;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.help-related:hover {
    border-color: #93c5fd;
    color: #1d4ed8;
}

/* 详情页帮助链接：合并进“下载地址”卡片内，上下以浅色分割线分隔。手机竖排，平板及以上两列（共 4 条）。 */
.help-links {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.75rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

@media (min-width: 768px) {
    .help-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.help-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0.875rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    color: #2563eb;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.help-link:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

.help-link-text {
    min-width: 0;
}

.help-link-arrow {
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

/* 会员/高速下载是主要转化入口，用实心渐变突出显示。 */
.help-link.help-link--primary {
    border-color: #fdba74;
    background: linear-gradient(135deg, #fffbf5 0%, #ffedd5 100%);
    color: #c2410c;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(249, 115, 22, 0.1);
}

.help-link.help-link--primary:hover {
    border-color: #fb923c;
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
    color: #9a3412;
    box-shadow: 0 5px 14px rgba(249, 115, 22, 0.16);
}

.help-link.help-link--primary .help-link-arrow {
    opacity: 0.9;
}

.help-link:hover .help-link-arrow {
    transform: translateX(2px);
}

.help-article-content {
    overflow-wrap: anywhere;
}

/* 人工服务等帮助文章内的公众号风格分段：橙色标签框、分节标题与二维码卡片 */
.help-article-content .help-callout {
    position: relative;
    margin: 0 0 2rem;
    padding: 2rem 1.25rem 1.25rem;
    border: 2px solid #fb923c;
    border-radius: 0.75rem;
    background: #fffbf5;
}

.help-article-content .help-callout > p {
    margin: 0;
    line-height: 1.9;
    color: #334155;
}

.help-article-content .help-callout-tag {
    position: absolute;
    top: -1.1rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.3rem 2.2rem;
    background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    clip-path: polygon(10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%, 0 50%);
}

.help-article-content .help-section {
    margin-top: 2rem;
}

.help-article-content .help-section-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    color: #ea580c;
}

.help-article-content .help-section-sub {
    margin: 0.3rem 0 0.9rem;
    font-size: 0.875rem;
    color: #94a3b8;
}

.help-article-content .help-step-box {
    padding: 1.25rem 1.1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #fcfdff;
}

.help-article-content .help-step-box + .help-step-box {
    margin-top: 0.9rem;
}

/* 栏目标题与下方步骤框保留间距 */
.help-article-content .help-section-title + .help-step-box {
    margin-top: 0.9rem;
}

/* 同一个步骤框内的多个步骤标题之间留出间隔 */
.help-article-content .help-step-box > .help-option-title ~ .help-option-title {
    margin-top: 1.15rem;
}

.help-article-content .help-option-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 0.5rem;
    padding-left: 0.6rem;
    border-left: 3px solid #fb923c;
    font-weight: 700;
    line-height: 1.5;
    color: #0f172a;
}

.help-article-content .help-option-tag {
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: #ffedd5;
    color: #c2410c;
    font-size: 0.75rem;
    font-weight: 600;
}

.help-article-content .help-step-box > :first-child {
    margin-top: 0;
}

.help-article-content .help-step-box > :last-child {
    margin-bottom: 0;
}

.help-article-content .help-step-list {
    margin: 0.3rem 0;
    padding-left: 1.4rem;
}

.help-article-content .help-step-list li {
    margin: 0.5rem 0;
    line-height: 1.8;
}

.help-article-content .help-em {
    color: #dc2626;
    font-weight: 700;
}

.help-article-content .help-center {
    text-align: center;
}

.help-article-content .help-note {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: #94a3b8;
}

.help-article-content .help-qr-caption {
    margin: 1.1rem 0 0.6rem;
    text-align: center;
    font-weight: 700;
    color: #dc2626;
}

.help-article-content .help-qr {
    margin: 0 auto 1rem;
    text-align: center;
    line-height: 0;
}

.help-article-content .help-qr img {
    width: 13rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 0.4rem;
    border: 1px dashed #cbd5e1;
    border-radius: 0.5rem;
    background: #ffffff;
}

.help-article-content .help-follow {
    margin: 1.5rem auto 0;
    text-align: center;
    line-height: 0;
}

.help-article-content .help-follow img {
    width: 20rem;
    max-width: 100%;
    margin: 0 auto;
    border: none;
    background: none;
    box-shadow: none;
}

/* 会员介绍：顶部横幅、购买卡片、课程标签与软件截图 */
.help-article-content .help-banner {
    margin: 0 0 1.5rem;
    line-height: 0;
}

.help-article-content .help-banner img {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border: none;
    border-radius: 0.75rem;
}

@media (min-width: 640px) {
    .help-article-content .help-banner img {
        max-width: 38rem;
    }
}

.help-article-content .help-price-box {
    padding: 1.5rem 1.25rem;
    border: 1px solid #fdba74;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #fffbf5 0%, #ffedd5 100%);
    text-align: center;
}

.help-article-content .help-price-box > :first-child {
    margin-top: 0;
}

.help-article-content .help-price-box > :last-child {
    margin-bottom: 0;
}

.help-article-content .help-price {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #9a3412;
}

.help-article-content .help-price b {
    font-size: 1.6rem;
    color: #ea580c;
}

.help-article-content .help-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1.5rem 0 0.5rem;
    padding-left: 0.6rem;
    border-left: 3px solid #fb923c;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.5;
    color: #0f172a;
}

.help-article-content .help-course-cat {
    margin: 1.4rem 0 0.6rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #c2410c;
}

.help-article-content .help-chips {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.help-article-content .help-chips li {
    margin: 0;
    padding: 0.4rem 0.6rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #f8fafc;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #475569;
}

.help-article-content .help-shot {
    margin: 0.5rem 0 1.25rem;
    text-align: center;
    line-height: 0;
}

.help-article-content .help-shot img {
    width: auto;
    max-width: 100%;
    max-height: 30rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .help-article-content .help-shot img {
        max-width: 34rem;
    }
}

/* 帮助文章内的图片统一加柔和阴影 */
.help-article-content img {
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
}

/* 会员服务：保留原文栏目与条目的 01、02 …… 编号 */
.help-article-content .help-section-title .help-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.9rem;
    height: 1.9rem;
    margin-right: 0.55rem;
    padding: 0 0.35rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #fb923c, #ea580c);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
}

.help-article-content .help-num-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.3rem;
    border-radius: 0.375rem;
    background: #ffedd5;
    color: #ea580c;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    flex: none;
}

/* 帮助文章：保留原文步骤序号（1. / 1）） */
.help-article-content .help-step-item {
    margin: 1.1rem 0 0.4rem;
    line-height: 1.85;
    color: #334155;
}

/* 前置步骤框与紧随其后的栏目标题之间留出间距 */
.help-article-content .help-step-box + .help-section-title {
    margin-top: 1.6rem;
}

/* 原文导语（如“首先，点击这里下载……”） */
.help-article-content .help-lead {
    margin: 0.9rem 0 0.4rem;
    font-weight: 700;
    line-height: 1.85;
    color: #dc2626;
}

/* 「关闭方法演示」小标签：居中文字 + 两侧渐隐短线 */
.help-article-content .help-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    margin: 1.7rem 0 0.9rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #0f9d58;
}

.help-article-content .help-demo::before,
.help-article-content .help-demo::after {
    content: "";
    flex: 0 1 3rem;
    height: 2px;
    border-radius: 2px;
}

.help-article-content .help-demo::before {
    background: linear-gradient(90deg, transparent, #6ee7b7);
}

.help-article-content .help-demo::after {
    background: linear-gradient(90deg, #6ee7b7, transparent);
}

.help-article-content .help-step-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.55rem;
    height: 1.55rem;
    margin-right: 0.5rem;
    padding: 0 0.3rem;
    border-radius: 0.4rem;
    background: linear-gradient(135deg, #fb923c, #ea580c);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
}

/* 站内推广位卡片（软件页与版本页顶部） */
.promo-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
}

.promo-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border: 1px solid #bfdbfe;
    border-radius: 1rem;
    background: linear-gradient(120deg, #dbeafe 0%, #eff6ff 55%, #e0f2fe 100%);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.promo-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
}

.promo-card:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.promo-card-main {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.promo-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.promo-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-card-body {
    min-width: 0;
}

.promo-card-topline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.promo-card-badge {
    padding: 0.1rem 0.45rem;
    border-radius: 9999px;
    background: #dbeafe;
    color: #c2410c;
    font-size: 0.7rem;
    font-weight: 600;
}

.promo-card-for {
    font-size: 0.7rem;
    color: #94a3b8;
}

.promo-card-title {
    margin: 0.2rem 0 0;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.promo-card-subtitle {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #64748b;
}

.promo-card-action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    padding: 0.55rem 0.9rem;
    border-radius: 0.65rem;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease;
}

.promo-card-action:hover {
    background: #1d4ed8;
}

.promo-card-action svg {
    width: 1rem;
    height: 1rem;
}

@media (max-width: 640px) {
    .promo-card {
        flex-direction: column;
        align-items: stretch;
    }

    .promo-card-action {
        justify-content: center;
    }
}
