/* tp-soft.css — 软件中心 Area「拼块波普风」自建设计体系（tp- 前缀，自托管无 npm 构建）。
   来源 canonical：doc/项目约束/软件中心UI规范.md + doc/架构/软件中心设计稿/ 4 张 .dc.html。
   奶油纸底 + 靓色色块 + 粗描边 + 硬投影（无 blur），交互靠位移 + 阴影变化。
   主题钩子 .tp-soft--a / --b / --c 保留（Facade 设 Theme），当前统一波普皮。
   本 Area 为组件库例外区，不引任何外部 UI 组件库。 */

/* ══ Baloo 2 自托管字体 ═══════════════════════════════════════════════ */
@font-face {
    font-family: 'Baloo 2';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/baloo-2-v23-latin-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Baloo 2';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/baloo-2-v23-latin-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Baloo 2';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/baloo-2-v23-latin-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Baloo 2';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('/fonts/baloo-2-v23-latin-800.woff2') format('woff2');
}

/* ══ 设计令牌 ═════════════════════════════════════════════════════════ */
:root,
.tp-soft {
    --bg: #FDF6E3;          /* 页面底色 · 奶油纸 */
    --surface: #FFFFFF;     /* 卡片白 */
    --surface-2: #FFFBF0;   /* 卡内衬 */
    --line-dash: #F3EAD3;   /* 虚线块 / 进度条底 */
    --line-dash-2: #EFE3C6; /* 浅块 */
    --ink: #1D1A16;         /* 墨色 · 文字/描边/实心按钮 */
    --ink-2: #5C5347;       /* 次级文字 */
    --mute: #9A8F80;        /* 弱文字/占位 */

    --pink: #F0426B;        /* 粉红 · 主强调/危险/Bug */
    --yellow: #FFD43B;      /* 黄 · 主 CTA/高亮选中 */
    --blue: #4DABF7;        /* 蓝 · 信息/处理中 */
    --blue-l: #74C0FC;      /* 浅蓝 */
    --green: #69DB7C;       /* 绿 · 成功/官方/已解决 */
    --mint: #63E6BE;        /* 薄荷 */
    --purple: #B78CFF;      /* 紫 · 头像/辅助 */
    --orange: #FFC078;      /* 橙 */
    --pink-l: #FF8FB3;      /* 粉 */
    --point: #D9822B;       /* 积分专用橙棕 */

    --font: 'Baloo 2', "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;

    /* 描边 / 投影 / 圆角 */
    --bd: 2.5px solid var(--ink);
    --bd-2: 2px solid var(--ink);
    --sh: 4px 4px 0 var(--ink);
    --sh-lg: 5px 5px 0 var(--ink);
    --sh-sm: 2.5px 2.5px 0 var(--ink);
    --sh-modal: 8px 8px 0 var(--ink);
    --r-lg: 20px;
    --r-md: 16px;
    --r: 14px;
    --r-sm: 12px;
    --r-chip: 99px;
}

/* 主题钩子保留：当前三主题共享波普皮，后续可分化 */
.tp-soft--a,
.tp-soft--b,
.tp-soft--c {
    background: var(--bg);
    color: var(--ink);
}

/* ══ 基础 ═════════════════════════════════════════════════════════════ */
html, body {
    margin: 0;
    background: var(--bg);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
}

.tp-soft {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
}

.tp-soft a {
    text-decoration: none;
    /*color: inherit;*/
}

.tp-soft * {
    box-sizing: border-box;
}

/* ══ 顶部导航（header · sticky + 底描边） ═══════════════════════════════ */
.tp-soft-topbar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 40px;
    border-bottom: var(--bd);
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 20;
}

.tp-soft-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
    white-space: nowrap;
}

.tp-soft-brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--yellow);
    border: var(--bd);
    box-shadow: 3px 3px 0 var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 19px;
}

.tp-soft-brand-name {
    font-weight: 800;
    font-size: 20px;
}

.tp-soft-brand-bang {
    color: var(--pink);
}

.tp-soft-nav {
    display: flex;
    gap: 4px;
    margin-left: 10px;
    flex: none;
    white-space: nowrap;
}

.tp-soft-navitem {
    padding: 7px 16px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink);
    border-radius: 8px;
    cursor: pointer;
}

.tp-soft-navitem:hover {
    background: rgba(29, 26, 22, .06);
}

.tp-soft-navitem.is-current {
    background: var(--ink);
    color: #fff;
    font-weight: 800;
}

.tp-soft-topbar-spacer {
    flex: 1;
}

.tp-soft-search {
    background: var(--surface);
    border: var(--bd);
    border-radius: 10px;
    padding: 8px 16px;
    flex: 0 1 210px;
    min-width: 90px;
    font-size: 13px;
    color: var(--mute);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tp-soft-search-icon {
    flex: none;
}

.tp-soft-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: var(--ink);
    font-weight: 600;
}

.tp-soft-lang {
    border: var(--bd);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.tp-soft-lang-opt {
    background: var(--surface);
    color: var(--ink);
    padding: 6px 11px;
}

.tp-soft-lang-opt.is-active {
    background: var(--ink);
    color: #fff;
}

.tp-soft-points-pill {
    background: var(--yellow);
    border: var(--bd);
    border-radius: var(--r-chip);
    padding: 5px 13px;
    font-size: 12.5px;
    font-weight: 800;
    box-shadow: var(--sh-sm);
    white-space: nowrap;
}

.tp-soft-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--purple);
    border: var(--bd);
    box-shadow: 3px 3px 0 var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.tp-soft-user-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 面包屑 */
.tp-soft-crumb {
    font-size: 13px;
    font-weight: 700;
    color: var(--mute);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
}

.tp-soft-crumb-current {
    color: var(--ink);
}

/* ══ 主区 / 容器 ═════════════════════════════════════════════════════ */
.tp-soft-main {
    flex: 1 1 auto;
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.tp-soft-wrap {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 40px;
}

.tp-soft-wrap--narrow {
    max-width: 860px;
}

.tp-soft-section-title {
    font-size: 19px;
    font-weight: 800;
    white-space: nowrap;
}

.tp-soft-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--ink);
}

/* ══ 按钮 ═════════════════════════════════════════════════════════════ */
.tp-soft-btn {
    display: inline-block;
    background: var(--surface);
    border: var(--bd);
    border-radius: var(--r);
    padding: 9px 22px;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--ink);
    cursor: pointer;
    box-shadow: var(--sh-sm);
    text-align: center;
    transition: transform .12s, box-shadow .12s, background .12s;
}

.tp-soft-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--ink);
}

.tp-soft-btn--cta {
    background: var(--yellow);
}

.tp-soft-btn--pink {
    background: var(--pink);
    color: #fff;
}

.tp-soft-btn--blue {
    background: var(--blue);
}

.tp-soft-btn--ink {
    background: var(--ink);
    color: #fff;
    box-shadow: 2.5px 2.5px 0 rgba(29, 26, 22, .3);
}

.tp-soft-btn--ghost {
    background: var(--surface);
    box-shadow: none;
}

.tp-soft-btn--ghost:hover {
    background: var(--surface-2);
    transform: translate(-1px, -1px);
    box-shadow: var(--sh-sm);
}

.tp-soft-btn--danger {
    background: var(--pink);
    color: #fff;
}

.tp-soft-btn--sm {
    padding: 6px 16px;
    font-size: 12.5px;
    box-shadow: none;
}

.tp-soft-btn--block {
    display: block;
    width: 100%;
}

.tp-soft-btn:disabled,
.tp-soft-btn.is-disabled {
    background: var(--line-dash-2);
    color: #8A7A6A;
    box-shadow: none;
    cursor: default;
    transform: none;
}

/* 返回小按钮（列表→详情） */
.tp-soft-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--surface);
    border: var(--bd);
    border-radius: 10px;
    padding: 6px 16px;
    font-size: 12.5px;
    font-weight: 800;
    color: var(--ink);
    cursor: pointer;
    margin-bottom: 16px;
    transition: transform .12s, box-shadow .12s;
}

.tp-soft-back:hover {
    transform: translate(-1px, -1px);
    box-shadow: var(--sh-sm);
}

.tp-soft-link {
    color: var(--pink);
    text-decoration: underline;
    cursor: pointer;
    font-weight: 800;
}

.tp-soft-link--mute {
    color: var(--mute);
}

/* ══ 卡片通用 ═════════════════════════════════════════════════════════ */
.tp-soft-card {
    background: var(--surface);
    border: var(--bd);
    border-radius: var(--r-md);
    box-shadow: var(--sh);
    padding: 20px;
    color: var(--ink);
}

a.tp-soft-card,
.tp-soft-card--hover {
    display: block;
    transition: transform .12s, box-shadow .12s;
}

a.tp-soft-card:hover,
.tp-soft-card--hover:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--ink);
}

.tp-soft-empty {
    padding: 48px;
    text-align: center;
    color: var(--mute);
    font-size: 14px;
    font-weight: 700;
    background: var(--surface);
    border: 2.5px dashed var(--ink);
    border-radius: var(--r-md);
}

/* 论坛内联图上传区（波普风虚线框，点击触发隐藏 file input） */
.tp-soft-upload {
    display: block;
    margin-top: 10px;
    padding: 12px 16px;
    text-align: center;
    color: var(--mute);
    font-size: 13px;
    font-weight: 700;
    background: var(--surface);
    border: 2.5px dashed var(--ink);
    border-radius: 12px;
    cursor: pointer;
}

.tp-soft-upload:hover {
    color: var(--ink);
}

/* ══ badge / 标签 ════════════════════════════════════════════════════ */
.tp-soft-badge {
    display: inline-block;
    border: var(--bd-2);
    border-radius: 8px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 800;
    background: var(--yellow);
    color: var(--ink);
}

.tp-soft-badge--official {
    background: var(--green);
}

.tp-soft-badge--rec {
    background: var(--yellow);
}

.tp-soft-badge--pink {
    background: var(--pink);
    color: #fff;
}

.tp-soft-badge--pill {
    border-radius: var(--r-chip);
    padding: 2px 12px;
}

/* 授权派生态徽章：绿=有效、蓝=未激活、橙=已过期、灰=失效/停用/作废（配色取自靓色盘，不引新色） */
.tp-soft-badge--ok {
    background: var(--green);
}

.tp-soft-badge--info {
    background: var(--blue-l);
}

.tp-soft-badge--warn {
    background: var(--orange);
}

.tp-soft-badge--mute {
    background: var(--line-dash-2);
    color: var(--mute);
}

/* 凭证/码值文本：等宽显示，遮蔽与全显切换时不抖动 */
.tp-soft-keytext {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .5px;
    word-break: break-all;
}

/* 状态标签：绿=已解决/完成，蓝=处理中，黄=待处理，粉红=严重/新回复 */
.tp-soft-status {
    display: inline-block;
    border: var(--bd-2);
    border-radius: var(--r-chip);
    padding: 4px 14px;
    font-size: 11.5px;
    font-weight: 800;
}

.tp-soft-status--done {
    background: var(--green);
}

.tp-soft-status--doing {
    background: var(--blue-l);
}

.tp-soft-status--wait {
    background: var(--yellow);
}

.tp-soft-status--severe {
    background: var(--pink);
    color: #fff;
}

/* 已关闭（已取消 / 已退款等非成功终态）：中性浅块 + 弱文字 */
.tp-soft-status--closed {
    background: var(--line-dash);
    color: var(--ink-2);
}

.tp-soft-tag-official {
    background: var(--green);
    border: 1.5px solid var(--ink);
    border-radius: 5px;
    padding: 0 6px;
    font-size: 9.5px;
    font-weight: 800;
}

/* ══ chips 筛选 ══════════════════════════════════════════════════════ */
.tp-soft-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
}

.tp-soft-chip {
    border: var(--bd);
    border-radius: var(--r-chip);
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 800;
    color: var(--ink);
    cursor: pointer;
    background: var(--surface);
    transition: transform .12s;
}

.tp-soft-chip:hover {
    transform: translate(-1px, -1px);
}

.tp-soft-chip--sm {
    border: var(--bd-2);
    padding: 5px 15px;
    font-size: 12px;
}

.tp-soft-chip.is-active {
    background: var(--ink);
    color: #fff;
}

/* 彩底 chip 变体（分类色由服务端/派生填 inline，此处提供纯色钩子） */
.tp-soft-chip--pink { background: var(--pink-l); }
.tp-soft-chip--mint { background: var(--mint); }
.tp-soft-chip--purple { background: var(--purple); }
.tp-soft-chip--orange { background: var(--orange); }
.tp-soft-chip--blue { background: var(--blue-l); }
.tp-soft-chip--yellow { background: var(--yellow); }

/* ══ App 图标色块 / 头像方块 ═════════════════════════════════════════ */
.tp-soft-glyph {
    border-radius: 14px;
    border: var(--bd);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex: none;
    background: var(--pink);
    color: #fff;
}

.tp-soft-glyph--lg {
    width: 92px;
    height: 92px;
    border-radius: 24px;
    box-shadow: var(--sh);
    font-size: 40px;
}

.tp-soft-glyph--md {
    width: 50px;
    height: 50px;
    font-size: 21px;
}

.tp-soft-glyph--sm {
    width: 38px;
    height: 38px;
    border: var(--bd-2);
    border-radius: 11px;
    font-size: 14px;
}

.tp-soft-glyph--xs {
    width: 34px;
    height: 34px;
    border: var(--bd-2);
    border-radius: 10px;
    font-size: 13px;
}

/* 色块底色钩子（App 图标 / 头像色由 Guid 派生自靓色盘） */
.tp-soft-c-pink { background: var(--pink); color: #fff; }
.tp-soft-c-yellow { background: var(--yellow); color: var(--ink); }
.tp-soft-c-blue { background: var(--blue); color: var(--ink); }
.tp-soft-c-bluel { background: var(--blue-l); color: var(--ink); }
.tp-soft-c-green { background: var(--green); color: var(--ink); }
.tp-soft-c-mint { background: var(--mint); color: var(--ink); }
.tp-soft-c-purple { background: var(--purple); color: var(--ink); }
.tp-soft-c-orange { background: var(--orange); color: var(--ink); }
.tp-soft-c-pinkl { background: var(--pink-l); color: var(--ink); }

/* ══ 表单控件 ════════════════════════════════════════════════════════ */
.tp-soft-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.tp-soft-field-label {
    font-weight: 800;
    font-size: 13px;
    color: var(--ink);
}

/* 表单字段并排行：多个窄下拉挤一行省竖向空间；窄屏自动换行堆叠 */
.tp-soft-field-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.tp-soft-field-row .tp-soft-field {
    flex: 1;
    min-width: 150px;
}

.tp-soft-field-row .tp-soft-dd {
    display: block;
}

.tp-soft-field-row .tp-soft-dd-trigger {
    width: 100%;
    min-width: 0;
}

/* 字段横排：label 在左（定宽不缩）+ 输入框在右（flex 填满），省竖向一行 */
.tp-soft-field--inline {
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.tp-soft-field--inline .tp-soft-field-label {
    flex: none;
    min-width: 64px;
}

.tp-soft-field--inline > .tp-soft-input {
    flex: 1;
    width: auto;
    min-width: 0;
}

/* 筛选行标签定宽：让各行第一个 chip 左边对齐（后续 chip 随字长自然排） */
.tp-soft-filter-key {
    display: inline-block;
    min-width: 72px;
}

.tp-soft-input,
.tp-soft-textarea,
.tp-soft-select {
    width: 100%;
    box-sizing: border-box;
    border: var(--bd);
    border-radius: var(--r-sm);
    padding: 11px 14px;
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    background: var(--surface);
    color: var(--ink);
    outline: none;
}

.tp-soft-input::placeholder,
.tp-soft-textarea::placeholder {
    color: var(--mute);
}

.tp-soft-input:focus,
.tp-soft-textarea:focus,
.tp-soft-select:focus {
    background-color: var(--surface-2);
}

/* 波普风下拉：去原生箭头 + 墨色粗描边 + 自定义 SVG 箭头 */
.tp-soft-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 36px;
    cursor: pointer;
    background-color: var(--surface);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%231D1A16' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
}

/* 波普风自定义下拉：div 自绘框 + 展开面板（原生 select 展开列表 OS 渲染无法波普化，改自绘） */
.tp-soft-dd {
    position: relative;
    display: inline-block;
}

.tp-soft-dd-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 200px;
    box-sizing: border-box;
    border: var(--bd);
    border-radius: var(--r-sm);
    background: var(--surface);
    padding: 11px 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    outline: none;
}

.tp-soft-dd-trigger::after {
    content: "▾";
    font-size: 12px;
    color: var(--ink);
    flex: none;
}

.tp-soft-dd-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 40;
    min-width: 100%;
    background: var(--surface);
    border: var(--bd);
    border-radius: var(--r-sm);
    box-shadow: var(--sh);
    padding: 6px;
    display: none;
    max-height: 260px;
    overflow: auto;
}

.tp-soft-dd.is-open .tp-soft-dd-menu {
    display: block;
}

.tp-soft-dd-option {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    white-space: nowrap;
}

.tp-soft-dd-option:hover {
    background: var(--surface-2, #F3EAD3);
}

.tp-soft-dd-option.is-active {
    background: var(--ink);
    color: #fff;
}

/* 顶导「分类」下拉：复用 dd-menu/dd-option 面板，trigger 走 navitem 外观（覆盖表单框样式，双类选择器权重胜出） */
.tp-soft-navitem.tp-soft-dd-trigger {
    min-width: 0;
    border: none;
    background: transparent;
    padding: 7px 16px;
    border-radius: 8px;
    justify-content: flex-start;
    gap: 6px;
}

.tp-soft-navitem.tp-soft-dd-trigger:hover {
    background: rgba(29, 26, 22, .06);
}

.tp-soft-textarea {
    resize: vertical;
    line-height: 1.6;
}

.tp-soft-textarea--fixed {
    resize: none;
    height: 100px;
}

/* 方块 checkbox ✓ */
.tp-soft-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 800;
    color: var(--ink);
    cursor: pointer;
}

/* 原生 checkbox 藏起来：只显波普方块，值仍随表单提交、JS 仍可读 .checked */
.tp-soft-check input[type=checkbox] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}

.tp-soft-check-box {
    width: 22px;
    height: 22px;
    border: var(--bd);
    border-radius: 6px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    flex: none;
}

.tp-soft-check.is-checked .tp-soft-check-box,
.tp-soft-check-box.is-checked {
    background: var(--ink);
}

/* 上传区 · 2.5px 虚线框 */
.tp-soft-upload {
    border: 2.5px dashed var(--ink);
    border-radius: var(--r-sm);
    padding: 9px 16px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--mute);
    cursor: pointer;
    text-align: center;
}

.tp-soft-upload:hover {
    background: var(--surface);
}

/* ══ 评论 / 对话气泡 ═════════════════════════════════════════════════ */
.tp-soft-bubble-row {
    display: flex;
    gap: 10px;
}

.tp-soft-bubble-row--me {
    flex-direction: row-reverse;
}

.tp-soft-bubble {
    flex: 1;
    background: var(--surface-2);
    border: var(--bd-2);
    border-radius: var(--r-sm);
    padding: 10px 14px;
}

.tp-soft-bubble--wide {
    max-width: 70%;
    flex: 0 1 auto;
    border: var(--bd);
    border-radius: var(--r);
    padding: 12px 16px;
}

.tp-soft-bubble-head {
    display: flex;
    gap: 8px;
    align-items: baseline;
}

.tp-soft-bubble-name {
    font-weight: 800;
    font-size: 12.5px;
}

.tp-soft-bubble-time {
    font-size: 11px;
    color: var(--mute);
    font-weight: 600;
}

.tp-soft-bubble-text {
    font-size: 13px;
    color: var(--ink-2);
    font-weight: 500;
    margin-top: 3px;
    line-height: 1.65;
    white-space: pre-line;
    word-break: break-word;
}

.tp-soft-comment-composer {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

/* ══ 分页 ════════════════════════════════════════════════════════════ */
.tp-soft-page {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 18px;
    list-style: none;
    padding: 0;
    justify-content: center;
}

.tp-soft-page-link {
    border: var(--bd);
    border-radius: var(--r-sm);
    background: var(--surface);
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 800;
    color: var(--ink);
    cursor: pointer;
    box-shadow: var(--sh-sm);
    transition: transform .12s;
}

.tp-soft-page-link:hover {
    transform: translate(-1px, -1px);
}

.tp-soft-page-disabled {
    border: var(--bd);
    border-radius: var(--r-sm);
    background: var(--line-dash);
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 800;
    color: var(--mute);
}

.tp-soft-page-current {
    border: var(--bd);
    border-radius: var(--r-sm);
    background: var(--yellow);
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 800;
    color: var(--ink);
}

/* ══ 首页 hero bento ═════════════════════════════════════════════════ */
.tp-soft-hero {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    grid-template-rows: 150px 150px;
    gap: 16px;
    padding-top: 28px;
}

.tp-soft-hero-cell {
    border: var(--bd);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-lg);
    padding: 20px;
    display: block;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform .12s, box-shadow .12s;
}

.tp-soft-hero-cell:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 var(--ink);
}

.tp-soft-hero-cell--main {
    grid-row: span 2;
    background: var(--pink);
    color: #fff;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.tp-soft-hero-cell--wide {
    grid-column: span 2;
    background: var(--yellow);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tp-soft-hero-blob {
    position: absolute;
    border-radius: 50%;
    border: var(--bd);
}

.tp-soft-hero-tag {
    background: var(--ink);
    color: #fff;
    align-self: flex-start;
    border-radius: var(--r-chip);
    padding: 5px 14px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.tp-soft-hero-h {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
}

.tp-soft-hero-sub {
    font-size: 14px;
    margin-top: 10px;
    opacity: .92;
    max-width: 340px;
    line-height: 1.55;
}

.tp-soft-hero-eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.tp-soft-hero-small-h {
    font-size: 19px;
    font-weight: 800;
    margin-top: 6px;
    line-height: 1.25;
}

/* ══ 栏目 strip ══════════════════════════════════════════════════════ */
.tp-soft-strip {
    display: flex;
    gap: 14px;
    margin-top: 26px;
}

.tp-soft-strip-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: var(--bd);
    border-radius: var(--r-md);
    padding: 14px 18px;
}

.tp-soft-strip-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--r-sm);
    border: var(--bd);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex: none;
}

.tp-soft-strip-title {
    font-weight: 800;
    font-size: 14px;
}

.tp-soft-strip-sub {
    font-size: 12px;
    color: var(--mute);
    font-weight: 600;
}

/* ══ 软件横幅卡（详情页顶部） ════════════════════════════════════════ */
.tp-soft-banner {
    display: flex;
    gap: 24px;
    align-items: center;
    background: var(--surface);
    border: var(--bd);
    border-radius: 22px;
    box-shadow: var(--sh-lg);
    padding: 26px 30px;
    margin-top: 26px;
}

.tp-soft-banner-body {
    flex: 1;
    min-width: 0;
}

.tp-soft-banner-title {
    font-size: 26px;
    font-weight: 800;
}

.tp-soft-banner-titlerow {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tp-soft-banner-meta {
    font-size: 13px;
    font-weight: 700;
    color: var(--mute);
    margin-top: 5px;
}

.tp-soft-banner-facts {
    display: flex;
    gap: 22px;
    margin-top: 12px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink-2);
    flex-wrap: wrap;
}

.tp-soft-banner-facts b {
    color: var(--ink);
    font-weight: 800;
}

.tp-soft-banner-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: none;
    align-items: flex-end;
}

/* ══ 详情页 tab 页签栏（选中黑底/上圆角） ════════════════════════════ */
.tp-soft-tabs {
    display: flex;
    gap: 6px;
    margin-top: 22px;
    border-bottom: var(--bd);
    flex-wrap: wrap;
}

.tp-soft-tab {
    background: var(--surface);
    color: var(--ink);
    border: var(--bd);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    padding: 9px 17px 11px;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    transition: transform .12s;
}

.tp-soft-tab:hover {
    transform: translateY(-2px);
}

.tp-soft-tab.is-current {
    background: var(--ink);
    color: #fff;
}

.tp-soft-tab-count {
    background: var(--line-dash);
    color: var(--ink);
    border-radius: var(--r-chip);
    padding: 1px 8px;
    font-size: 10.5px;
}

.tp-soft-tab.is-current .tp-soft-tab-count {
    background: var(--yellow);
}

/* ══ 图片占位（45° 条纹） ════════════════════════════════════════════ */
.tp-soft-shot {
    height: 190px;
    border: var(--bd);
    border-radius: var(--r-md);
    background: repeating-linear-gradient(45deg, #F3EAD3, #F3EAD3 10px, #EFE3C6 10px, #EFE3C6 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: ui-monospace, Menlo, monospace;
    font-size: 12px;
    color: var(--mute);
}

/* ══ 特性网格 / 正文 ═════════════════════════════════════════════════ */
.tp-soft-feature-card {
    background: var(--surface);
    border: var(--bd);
    border-radius: var(--r);
    padding: 16px 18px;
}

.tp-soft-feature-card-title {
    font-weight: 800;
    font-size: 14px;
    margin-top: 6px;
}

.tp-soft-feature-card-sub {
    font-size: 12.5px;
    color: var(--mute);
    font-weight: 600;
    margin-top: 3px;
}

.tp-soft-doc {
    background: var(--surface);
    border: var(--bd);
    border-radius: 18px;
    box-shadow: var(--sh);
    padding: 28px 32px;
}

.tp-soft-doc-title {
    font-size: 21px;
    font-weight: 800;
}

.tp-soft-doc-meta {
    font-size: 12px;
    font-weight: 700;
    color: var(--mute);
    margin-top: 4px;
}

/* ══ 评分分布条 ══════════════════════════════════════════════════════ */
.tp-soft-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 700;
}

.tp-soft-bar {
    flex: 1;
    height: 10px;
    border: var(--bd-2);
    border-radius: var(--r-chip);
    overflow: hidden;
    background: var(--line-dash);
}

.tp-soft-bar-fill {
    height: 100%;
    background: var(--green);
}

.tp-soft-bar-fill--yellow { background: var(--yellow); }
.tp-soft-bar-fill--orange { background: var(--orange); }
.tp-soft-bar-fill--pink { background: var(--pink); }
.tp-soft-bar-fill--blue { background: var(--blue); }

.tp-soft-bar--thin {
    height: 9px;
}

/* ══ roadmap 三列看板 ════════════════════════════════════════════════ */
.tp-soft-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.tp-soft-board-col {
    background: var(--surface);
    border: var(--bd);
    border-radius: var(--r-md);
    overflow: hidden;
}

.tp-soft-board-colhead {
    border-bottom: var(--bd);
    padding: 12px 16px;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}

.tp-soft-board-colbody {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tp-soft-board-item {
    border: var(--bd-2);
    border-radius: var(--r-sm);
    padding: 12px 14px;
    background: var(--surface-2);
}

.tp-soft-board-item-title {
    font-weight: 800;
    font-size: 13.5px;
}

.tp-soft-board-item-desc {
    font-size: 12px;
    color: var(--mute);
    font-weight: 600;
    margin-top: 4px;
    line-height: 1.5;
}

.tp-soft-board-item-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.tp-soft-board-eta {
    font-size: 11px;
    font-weight: 800;
    color: var(--mute);
}

/* ══ 投票 ▲ / 点赞 ═══════════════════════════════════════════════════ */
.tp-soft-vote {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--surface);
    border: var(--bd-2);
    border-radius: 10px;
    padding: 6px 12px;
    cursor: pointer;
    flex: none;
    font-weight: 800;
    transition: transform .12s;
}

.tp-soft-vote:hover {
    transform: translate(-1px, -1px);
}

.tp-soft-vote.is-voted {
    background: var(--yellow);
}

.tp-soft-vote-arrow {
    font-size: 12px;
}

.tp-soft-vote-count {
    font-size: 12.5px;
    font-weight: 800;
}

.tp-soft-like {
    display: inline-block;
    background: var(--surface);
    border: var(--bd-2);
    border-radius: var(--r-chip);
    padding: 5px 16px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.tp-soft-like.is-voted {
    background: var(--green);
}

/* ══ 帮助卡 + FAQ 手风琴 ═════════════════════════════════════════════ */
.tp-soft-help-cat {
    border: var(--bd);
    border-radius: var(--r);
    padding: 16px 18px;
    cursor: pointer;
    transition: transform .12s, box-shadow .12s;
}

.tp-soft-help-cat:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--sh);
}

.tp-soft-faq {
    background: var(--surface);
    border: var(--bd);
    border-radius: var(--r);
    overflow: hidden;
}

.tp-soft-faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    cursor: pointer;
    font-weight: 800;
    font-size: 13.5px;
}

.tp-soft-faq-q:hover {
    background: var(--surface-2);
}

.tp-soft-faq-chev::after {
    content: '▾';
}

.tp-soft-faq-a {
    display: none;
    border-top: 2px dashed #D9CCAE;
    padding: 14px 18px;
    font-size: 13px;
    color: var(--ink-2);
    font-weight: 500;
    line-height: 1.75;
    background: var(--surface-2);
}

.tp-soft-faq.is-open .tp-soft-faq-a {
    display: block;
}

.tp-soft-faq.is-open .tp-soft-faq-chev::after {
    content: '▴';
}

/* ══ 通用列表行卡（黑板报/工单/Bug/交流帖） ═══════════════════════════ */
.tp-soft-row {
    background: var(--surface);
    border: var(--bd);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    cursor: pointer;
    text-decoration: none;
    color: var(--ink);
    transition: transform .12s, box-shadow .12s;
}

.tp-soft-row:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--sh);
}

.tp-soft-row-body {
    flex: 1;
    min-width: 0;
}

.tp-soft-row-title {
    font-weight: 800;
    font-size: 14.5px;
}

.tp-soft-row-meta {
    font-size: 12px;
    color: var(--mute);
    font-weight: 600;
    margin-top: 3px;
}

.tp-soft-row-count {
    background: var(--line-dash);
    border: var(--bd-2);
    border-radius: var(--r-chip);
    padding: 3px 12px;
    font-size: 11.5px;
    font-weight: 800;
    flex: none;
}

.tp-soft-row-chev {
    font-weight: 800;
    color: var(--mute);
}

/* 论坛交流两栏（左帖列表 + 右侧栏）：桌面横排，窄屏堆叠（见响应式覆盖） */
.tp-soft-forum-split {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* 详情页通用两栏（主列 + 侧栏）：桌面横排，窄屏堆叠（见 <=960 响应式覆盖） */
.tp-soft-split {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* 帮助分类卡网格：桌面 4 列，窄屏降列（见响应式覆盖） */
.tp-soft-help-cats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

/* 介绍页截图墙网格：桌面 3 列，手机降 1 列（见响应式覆盖） */
.tp-soft-shot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* 侧栏卡 */
.tp-soft-side {
    width: 270px;
    flex: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tp-soft-side-card {
    background: var(--surface);
    border: var(--bd);
    border-radius: var(--r-md);
    padding: 18px 20px;
}

.tp-soft-side-card--accent {
    box-shadow: var(--sh);
}

/* 交流侧栏：板块导航项（竖排；选中=黄底黑字 2px 描边圆角） */
.tp-soft-board-navitem {
    display: block;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink-2);
    text-decoration: none;
    border: 2px solid transparent;
}

.tp-soft-board-navitem:hover {
    background: var(--surface-2);
    color: var(--ink);
}

.tp-soft-board-navitem.is-active {
    background: var(--yellow);
    color: var(--ink);
    border: 2px solid var(--ink);
}

/* 交流侧栏：社区公约卡（薄荷绿底 + 硬投影；常驻展示） */
.tp-soft-covenant-card {
    background: var(--mint);
    box-shadow: var(--sh);
}

.tp-soft-covenant-title {
    font-weight: 800;
    font-size: 14px;
}

.tp-soft-covenant-body {
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
    line-height: 1.7;
}

/* Bug 追踪：严重度 / 复现步骤块 */
.tp-soft-sev {
    display: inline-block;
    border: var(--bd-2);
    border-radius: 6px;
    padding: 1px 9px;
    font-size: 10.5px;
    font-weight: 800;
}

.tp-soft-sev--high {
    background: var(--pink);
    color: #fff;
}

.tp-soft-sev--mid {
    background: var(--orange);
}

.tp-soft-sev--low {
    background: var(--blue-l);
}

.tp-soft-steps {
    background: var(--surface-2);
    border: var(--bd-2);
    border-radius: var(--r-sm);
    padding: 14px 18px;
}

.tp-soft-env-tag {
    background: var(--line-dash);
    border: var(--bd-2);
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-2);
}

/* ══ 弹窗 modal ══════════════════════════════════════════════════════ */
.tp-soft-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(29, 26, 22, .5);
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
}

.tp-soft-modal-overlay.is-open {
    display: flex;
}

.tp-soft-modal {
    width: 540px;
    max-width: calc(100vw - 40px);
    background: var(--bg);
    border: var(--bd);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-modal);
    overflow: hidden;
}

.tp-soft-modal--success {
    width: 460px;
    text-align: center;
    border-radius: 22px;
}

.tp-soft-modal-head {
    background: var(--yellow);
    border-bottom: var(--bd);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    font-size: 16px;
}

.tp-soft-modal-head--pink {
    background: var(--pink);
    color: #fff;
}

.tp-soft-modal-head--blue {
    background: var(--blue);
}

.tp-soft-modal-head--success {
    background: var(--green);
    padding: 30px 24px;
    display: block;
}

.tp-soft-modal-close {
    width: 30px;
    height: 30px;
    border: var(--bd);
    border-radius: 9px;
    background: var(--surface);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    cursor: pointer;
}

.tp-soft-modal-close:hover {
    background: var(--pink);
    color: #fff;
}

.tp-soft-modal-body {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    /*gap: 16px;*/
}

.tp-soft-modal-foot {
    border-top: var(--bd);
    padding: 16px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: var(--surface);
}

.tp-soft-modal-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--surface);
    border: var(--bd);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

/* ══ Toast ═══════════════════════════════════════════════════════════ */
.tp-soft-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--ink);
    color: #fff;
    border-radius: var(--r);
    padding: 12px 26px;
    font-weight: 800;
    font-size: 13.5px;
    z-index: 60;
    box-shadow: 4px 4px 0 rgba(29, 26, 22, .3);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s, transform .18s;
}

.tp-soft-toast.is-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ══ 购买页 ══════════════════════════════════════════════════════════ */
.tp-soft-checkout {
    max-width: 1080px;
    margin: 0 auto;
    padding: 28px 40px 60px;
    display: flex;
    gap: 26px;
    align-items: flex-start;
}

.tp-soft-checkout-main {
    flex: 1.7;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.tp-soft-checkout-side {
    width: 330px;
    flex: none;
    position: sticky;
    top: 96px;
}

.tp-soft-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.tp-soft-plan {
    position: relative;
    background: var(--surface);
    border: var(--bd);
    border-radius: var(--r-md);
    padding: 18px;
    cursor: pointer;
    transition: transform .12s;
}

.tp-soft-plan:hover {
    transform: translate(-2px, -2px);
}

.tp-soft-plan.is-active {
    background: var(--yellow);
    box-shadow: var(--sh);
}

.tp-soft-plan-tag {
    position: absolute;
    top: -12px;
    right: 12px;
    background: var(--pink);
    color: #fff;
    border: var(--bd-2);
    border-radius: var(--r-chip);
    padding: 2px 12px;
    font-size: 10.5px;
    font-weight: 800;
}

.tp-soft-plan-name {
    font-weight: 800;
    font-size: 14.5px;
}

.tp-soft-plan-price {
    font-size: 26px;
    font-weight: 800;
    margin-top: 8px;
}

.tp-soft-plan-unit {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-2);
}

.tp-soft-plan-note {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--ink-2);
    margin-top: 6px;
    line-height: 1.55;
}

.tp-soft-plan-dot {
    margin-top: 10px;
    width: 22px;
    height: 22px;
    border: var(--bd);
    border-radius: 50%;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.tp-soft-plan.is-active .tp-soft-plan-dot {
    background: var(--ink);
}

/* 积分抵扣行 */
.tp-soft-points-row {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--surface);
    border: var(--bd);
    border-radius: var(--r-md);
    padding: 16px 20px;
    cursor: pointer;
}

.tp-soft-points-row:hover {
    background: var(--surface-2);
}

.tp-soft-point-value {
    color: var(--point);
}

/* 支付方式 */
.tp-soft-pay-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tp-soft-pay {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: var(--bd);
    border-radius: var(--r);
    padding: 14px 18px;
    cursor: pointer;
    transition: transform .12s;
}

.tp-soft-pay:hover {
    transform: translate(-1px, -1px);
}

.tp-soft-pay.is-active {
    background: var(--surface-2);
    box-shadow: 3px 3px 0 var(--ink);
}

.tp-soft-pay-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    border: var(--bd-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex: none;
}

.tp-soft-pay-dot {
    width: 20px;
    height: 20px;
    border: var(--bd);
    border-radius: 50%;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}

.tp-soft-pay.is-active .tp-soft-pay-dot {
    background: var(--ink);
}

/* 订单摘要 */
.tp-soft-summary {
    background: var(--surface);
    border: var(--bd);
    border-radius: 18px;
    box-shadow: var(--sh-lg);
    overflow: hidden;
}

.tp-soft-summary-head {
    background: var(--yellow);
    border-bottom: var(--bd);
    padding: 14px 22px;
    font-weight: 800;
    font-size: 15px;
}

.tp-soft-summary-body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 13.5px;
    font-weight: 700;
}

.tp-soft-summary-line {
    display: flex;
    justify-content: space-between;
}

.tp-soft-summary-total {
    border-top: 2px dashed #D9CCAE;
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.tp-soft-summary-total-num {
    font-size: 26px;
    font-weight: 800;
    color: var(--pink);
}

/* ══ 用户中心 ════════════════════════════════════════════════════════ */
.tp-soft-uc {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 40px 60px;
    display: flex;
    gap: 26px;
    align-items: flex-start;
}

.tp-soft-uc-side {
    width: 250px;
    flex: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 96px;
}

.tp-soft-uc-profile {
    background: var(--surface);
    border: var(--bd);
    border-radius: 18px;
    box-shadow: var(--sh);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

/* 用户卡文字块：长用户名在卡片内折行 */
.tp-soft-uc-profile > div:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.tp-soft-uc-nav {
    background: var(--surface);
    border: var(--bd);
    border-radius: 18px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tp-soft-uc-navitem {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 11px;
    padding: 10px 14px;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--ink);
    cursor: pointer;
    transition: transform .12s;
}

.tp-soft-uc-navitem:hover {
    transform: translateX(2px);
}

.tp-soft-uc-navitem.is-current {
    background: var(--ink);
    color: #fff;
}

.tp-soft-uc-navcount {
    background: var(--line-dash);
    border: var(--bd-2);
    border-radius: var(--r-chip);
    padding: 0 8px;
    font-size: 10.5px;
    color: var(--ink);
}

.tp-soft-uc-navitem.is-current .tp-soft-uc-navcount {
    background: var(--yellow);
}

.tp-soft-uc-body {
    flex: 1;
    min-width: 0;
}

/* 侧栏锚点跳到概览区块时，给吸顶 header 留出高度，避免区块标题被遮住 */
.tp-soft-uc-body section[id] {
    scroll-margin-top: 90px;
}

/* 我的软件行卡 */
.tp-soft-myapp {
    background: var(--surface);
    border: var(--bd);
    border-radius: 18px;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.tp-soft-myapp-add {
    display: block;
    margin-top: 16px;
    border: 2.5px dashed var(--ink);
    border-radius: var(--r-md);
    padding: 18px;
    text-align: center;
    font-weight: 800;
    font-size: 13.5px;
    color: var(--mute);
    cursor: pointer;
}

.tp-soft-myapp-add:hover {
    background: var(--surface);
    color: var(--ink);
}

/* 积分卡 */
.tp-soft-points-card {
    background: var(--yellow);
    border: var(--bd);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-lg);
    padding: 26px 28px;
    position: relative;
    overflow: hidden;
}

.tp-soft-points-big {
    font-size: 44px;
    font-weight: 800;
    margin-top: 4px;
}

.tp-soft-points-log-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 22px;
    border-bottom: 2px dashed var(--line-dash-2);
    font-size: 13px;
    font-weight: 700;
}

.tp-soft-amt-pos {
    color: #2EA44F;
    font-weight: 800;
}

.tp-soft-amt-neg {
    color: var(--pink);
    font-weight: 800;
}

/* 订单表 */
.tp-soft-table {
    background: var(--surface);
    border: var(--bd);
    border-radius: 18px;
    overflow: hidden;
}

.tp-soft-table-head {
    display: grid;
    grid-template-columns: 1.6fr 1fr .8fr .8fr 1fr;
    padding: 13px 22px;
    border-bottom: var(--bd);
    background: var(--surface-2);
    font-size: 12px;
    font-weight: 800;
    color: var(--ink-2);
}

.tp-soft-table-row {
    display: grid;
    grid-template-columns: 1.6fr 1fr .8fr .8fr 1fr;
    padding: 15px 22px;
    border-bottom: 2px dashed var(--line-dash-2);
    font-size: 13px;
    font-weight: 700;
    align-items: center;
}

.tp-soft-table-row:last-child {
    border-bottom: none;
}

.tp-soft-settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 17px 22px;
    border-bottom: 2px dashed var(--line-dash-2);
}

.tp-soft-settings-row:last-child {
    border-bottom: none;
}

/* 我的订单：整卡可点进详情（卡片横排；.tp-soft-card--hover 默认 block，双类提高优先级） */
.tp-soft-card.tp-soft-order-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
}

/* 铺满整卡的详情链接：承接整卡点击 */
.tp-soft-order-item-link {
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

/* 「去支付」浮在整卡链接之上，单独可点 */
.tp-soft-order-item-go {
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.tp-soft-order-item-main {
    flex: 1;
    min-width: 0;
}

.tp-soft-order-item-pay {
    text-align: right;
}

/* 订单详情 */
.tp-soft-order-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    margin-bottom: 16px;
}

.tp-soft-order-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 16px;
    align-items: start;
}

.tp-soft-order-card {
    padding: 20px 24px;
}

.tp-soft-order-card-title {
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 12px;
}

.tp-soft-order-spec {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 18px;
    margin: 0;
    font-size: 13px;
}

.tp-soft-order-spec dt {
    color: var(--mute);
    font-weight: 700;
}

.tp-soft-order-spec dd {
    margin: 0;
    font-weight: 800;
}

/* 订单进度时间线：竖线 + 描边圆点 */
.tp-soft-timeline {
    list-style: none;
    margin: 0;
    padding: 0 0 0 6px;
}

.tp-soft-timeline-item {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 0 0 16px 22px;
    border-left: 2px solid var(--line-dash-2);
    font-size: 13px;
}

.tp-soft-timeline-item:last-child {
    padding-bottom: 0;
    border-left-color: transparent;
}

.tp-soft-timeline-item::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 2px;
    width: 12px;
    height: 12px;
    border: var(--bd-2);
    border-radius: 50%;
    background: var(--yellow);
}

.tp-soft-timeline-text {
    font-weight: 800;
}

.tp-soft-timeline-time {
    color: var(--mute);
    font-weight: 700;
    white-space: nowrap;
}

/* 我的工单：新建工单软件下拉（候选多时限高滚动，菜单靠右展开） */
.tp-soft-newticket-menu {
    left: auto;
    right: 0;
    max-height: 320px;
    overflow-y: auto;
}

.tp-soft-newticket-menu .tp-soft-dd-option {
    display: block;
    white-space: nowrap;
}

/* 积分明细：各类型余额卡片 */
.tp-soft-point-balance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.tp-soft-point-balance {
    padding: 18px 20px;
}

.tp-soft-point-balance-value {
    margin-top: 6px;
    font-size: 26px;
    font-weight: 800;
    color: var(--point);
}

/* 积分充值：套餐 / 支付方式单选卡（原生 radio 隐藏，选中卡变黄 + 硬投影） */
.tp-soft-recharge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.tp-soft-recharge-option {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border: var(--bd);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 4px 4px 0 var(--ink);
    cursor: pointer;
    transition: transform .12s, box-shadow .12s;
}

.tp-soft-recharge-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tp-soft-recharge-option:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--ink);
}

.tp-soft-recharge-option:has(input:checked) {
    background: var(--yellow);
}

.tp-soft-recharge-option:has(input:focus-visible) {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}

/* 套餐赠送积分：绿底小标签 */
.tp-soft-recharge-bonus {
    align-self: flex-start;
    padding: 1px 8px;
    border: var(--bd-2);
    border-radius: var(--r-chip);
    background: var(--green);
    font-size: 11.5px;
    font-weight: 800;
}

.tp-soft-recharge-point {
    font-size: 20px;
    font-weight: 800;
    color: var(--point);
}

/* 充值提示条 */
.tp-soft-recharge-note {
    margin-bottom: 14px;
    padding: 10px 14px;
    border: var(--bd-2);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
}

.tp-soft-recharge-note--ok {
    background: var(--green);
}

.tp-soft-recharge-note--error {
    background: var(--pink-l);
}

@media (max-width: 600px) {
    .tp-soft-order-grid {
        grid-template-columns: 1fr;
    }

    /* 窄屏：软件名 / 订单号独占一行，金额与状态换到下一行 */
    .tp-soft-card.tp-soft-order-item {
        flex-wrap: wrap;
        gap: 10px 12px;
    }

    .tp-soft-order-item-main {
        flex-basis: calc(100% - 60px);
    }

    .tp-soft-order-item-pay {
        text-align: left;
        margin-left: 56px;
        flex: 1;
    }
}

/* ══ 页脚（波普四列） ════════════════════════════════════════════════ */
.tp-soft-footer {
    border-top: var(--bd);
    margin-top: 36px;
    padding: 26px 40px 40px;
    display: flex;
    gap: 60px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.tp-soft-footer-brand {
    flex: 1;
}

.tp-soft-footer-brand-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.tp-soft-footer-brand-logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--yellow);
    border: var(--bd);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
}

.tp-soft-footer-brand-name {
    font-weight: 800;
    font-size: 15px;
    color: var(--ink);
}

.tp-soft-footer-brand-desc {
    color: var(--mute);
}

.tp-soft-footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tp-soft-footer-col-title {
    font-weight: 800;
    color: var(--ink);
}

.tp-soft-footer-col a {
    color: var(--ink-2);
}

.tp-soft-footer-col a:hover {
    color: var(--pink);
}

/* ══ 兼容旧类名（catalog / content / forum 视图仍在用，重新上波普皮） ══ */
.tp-soft-catalog,
.tp-soft-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 26px;
}

/* 分类筛选（旧） */
.tp-soft-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding: 16px;
    background: var(--surface);
    border: var(--bd);
    border-radius: var(--r-md);
    box-shadow: var(--sh);
}

.tp-soft-filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.tp-soft-filter-groupname {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--mute);
    margin-right: 2px;
}

/* 软件卡片栅格（旧 catalog 用） */
.tp-soft-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 16px 0 10px;
}

.tp-soft-card-name {
    font-weight: 800;
    font-size: 16px;
    color: var(--ink);
}

.tp-soft-card-version {
    font-size: 12px;
    color: var(--point);
    font-weight: 800;
}

.tp-soft-card-intro {
    font-size: 13px;
    color: var(--ink-2);
    line-height: 1.5;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 内容页页头（旧） */
.tp-soft-content-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tp-soft-content-name {
    font-size: 26px;
    font-weight: 800;
    color: var(--ink);
    margin: 0;
}

.tp-soft-content-version {
    font-size: 13px;
    font-weight: 800;
    color: var(--point);
}

.tp-soft-content-intro {
    font-size: 14px;
    color: var(--ink-2);
    line-height: 1.7;
    font-weight: 500;
}

/* 页内板块导航（旧 subnav → chips 皮） */
.tp-soft-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 4px;
}

.tp-soft-subnav-item {
    border: var(--bd);
    border-radius: var(--r-chip);
    background: var(--surface);
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 800;
    color: var(--ink);
    text-decoration: none;
    cursor: pointer;
    transition: transform .12s;
}

.tp-soft-subnav-item:hover {
    transform: translate(-1px, -1px);
}

.tp-soft-subnav-item.is-current {
    background: var(--ink);
    color: #fff;
}

.tp-soft-doc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tp-soft-article {
    font-size: 14px;
    line-height: 1.9;
    color: var(--ink-2);
    font-weight: 500;
    white-space: pre-line;
    word-break: break-word;
}

/* 开发计划条目（旧 roadmap-item 列表） */
.tp-soft-roadmap-item {
    background: var(--surface);
    border: var(--bd);
    border-radius: var(--r-md);
    box-shadow: var(--sh);
    padding: 18px;
    margin-bottom: 14px;
}

.tp-soft-roadmap-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.tp-soft-roadmap-title {
    font-size: 15.5px;
    font-weight: 800;
    color: var(--ink);
}

.tp-soft-roadmap-summary {
    font-size: 13px;
    color: var(--ink-2);
    line-height: 1.6;
    font-weight: 500;
    margin-bottom: 10px;
}

.tp-soft-feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tp-soft-feature {
    display: flex;
    gap: 8px;
    font-size: 13px;
    color: var(--ink-2);
    font-weight: 500;
    line-height: 1.5;
}

.tp-soft-feature-mark {
    flex: none;
    font-weight: 800;
    color: var(--mute);
}

.tp-soft-feature.is-done .tp-soft-feature-mark {
    color: var(--green);
}

.tp-soft-feature-desc {
    color: var(--mute);
}

/* 黑板报列表 / 详情（旧） */
.tp-soft-bulletin-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tp-soft-bulletin-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--surface);
    border: var(--bd);
    border-radius: var(--r-md);
    text-decoration: none;
    color: var(--ink);
    transition: transform .12s, box-shadow .12s;
}

.tp-soft-bulletin-row:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--sh);
}

.tp-soft-bulletin-rowtitle {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--ink);
}

.tp-soft-bulletin-time {
    flex: none;
    font-size: 12px;
    color: var(--mute);
    font-weight: 600;
}

.tp-soft-bulletin-detail {
    background: var(--surface);
    border: var(--bd);
    border-radius: 18px;
    box-shadow: var(--sh);
    padding: 28px 32px;
}

/* 评论区（旧） */
.tp-soft-comment {
    background: var(--surface);
    border: var(--bd);
    border-radius: 18px;
    box-shadow: var(--sh);
    padding: 22px 30px;
    margin-top: 24px;
}

.tp-soft-comment-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 14px;
}

.tp-soft-comment-msg-success {
    padding: 10px 14px;
    border: var(--bd-2);
    border-radius: var(--r-sm);
    background: var(--green);
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.tp-soft-comment-msg-error {
    padding: 10px 14px;
    border: var(--bd-2);
    border-radius: var(--r-sm);
    background: var(--pink);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.tp-soft-comment-empty {
    padding: 24px;
    text-align: center;
    color: var(--mute);
    font-size: 13px;
    font-weight: 700;
}

.tp-soft-comment-node {
    padding: 12px 0;
    border-top: 2px dashed var(--line-dash-2);
}

.tp-soft-comment-node:first-child {
    border-top: none;
}

.tp-soft-comment-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--mute);
    font-weight: 600;
    margin-bottom: 6px;
}

.tp-soft-comment-author {
    font-weight: 800;
    color: var(--ink);
}

.tp-soft-comment-content {
    font-size: 14px;
    color: var(--ink-2);
    font-weight: 500;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 6px;
}

.tp-soft-comment-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    font-weight: 700;
}

.tp-soft-comment-children {
    margin-left: 20px;
    padding-left: 12px;
    border-left: var(--bd-2);
    margin-top: 8px;
}

.tp-soft-form {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 2px dashed var(--line-dash-2);
}

.tp-soft-reply-form {
    margin-top: 8px;
}

.tp-soft-note {
    font-size: 12.5px;
    color: var(--mute);
    font-weight: 600;
    margin-top: 6px;
}

/* 前台论坛板块（旧 forum-*） */
.tp-soft-forum-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
}

.tp-soft-forum-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tp-soft-forum-item {
    padding: 14px 0;
    border-bottom: 2px dashed var(--line-dash-2);
}

.tp-soft-forum-item-title {
    color: var(--ink);
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
}

.tp-soft-forum-item-title:hover {
    color: var(--pink);
}

.tp-soft-forum-item-meta,
.tp-soft-forum-post-meta,
.tp-soft-forum-reply-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--mute);
    font-weight: 600;
}

.tp-soft-forum-badge {
    padding: 2px 10px;
    border: var(--bd-2);
    border-radius: var(--r-chip);
    background: var(--yellow);
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
}

.tp-soft-forum-floor,
.tp-soft-forum-quote {
    color: var(--pink);
    font-weight: 800;
}

.tp-soft-forum-post {
    margin: 16px 0;
    padding: 20px;
    border: var(--bd);
    border-radius: var(--r-md);
    box-shadow: var(--sh);
    background: var(--surface);
}

.tp-soft-forum-post-body,
.tp-soft-forum-reply-body {
    margin-top: 10px;
    color: var(--ink-2);
    font-weight: 500;
    line-height: 1.7;
    word-break: break-word;
}

.tp-soft-forum-replies {
    margin-top: 20px;
}

.tp-soft-forum-replies-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 10px;
}

.tp-soft-forum-reply {
    padding: 12px 0;
    border-bottom: 2px dashed var(--line-dash-2);
}

/* ══════════════════════════════════════════════════════════════════════
   响应式断点（仅 max-width 覆盖，桌面观感零变化）
   960px = 平板，600px = 手机
   ══════════════════════════════════════════════════════════════════════ */

/* ── 平板（<=960px） ─────────────────────────────────────────────────── */
@media (max-width: 960px) {
    /* 根：禁横向溢出 */
    .tp-soft {
        overflow-x: hidden;
    }

    /* 内容区页边距收窄 */
    .tp-soft-main,
    .tp-soft-wrap {
        padding: 0 24px;
    }

    /* header：窄屏换行防溢出 */
    .tp-soft-topbar {
        flex-wrap: wrap;
        gap: 12px 16px;
        padding: 14px 24px;
    }

    /* 导航横滑不换行 */
    .tp-soft-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-left: 0;
    }

    /* hero bento → 2 列，去掉固定行高 */
    .tp-soft-hero {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .tp-soft-hero-cell--main {
        grid-row: auto;
        grid-column: span 2;
    }

    .tp-soft-hero-cell--wide {
        grid-column: span 2;
    }

    /* 卡网格 → 2 列 */
    .tp-soft-grid,
    .tp-soft-plan-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 页签 / chips / board 分类 tabs 溢出横滑 */
    .tp-soft-tabs,
    .tp-soft-chips,
    .tp-soft-subnav,
    .tp-soft-doc-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tp-soft-tab,
    .tp-soft-chip,
    .tp-soft-subnav-item {
        flex: none;
    }

    /* roadmap 看板 3 列 → 2 列 */
    .tp-soft-board {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 购买 / 用户中心 侧栏与内容改为纵向堆叠 */
    .tp-soft-checkout,
    .tp-soft-uc {
        flex-direction: column;
        padding: 24px 24px 48px;
    }

    /* 用户中心竖排后右侧内容区铺满整行 */
    .tp-soft-uc {
        align-items: stretch;
    }

    .tp-soft-checkout-side,
    .tp-soft-uc-side {
        width: 100%;
        position: static;
        top: auto;
    }

    /* 论坛交流：两栏 → 纵向堆叠（主列帖列表在上、板块/公约侧栏在下），侧栏满宽 */
    .tp-soft-forum-split {
        flex-direction: column;
    }

    .tp-soft-side {
        width: 100%;
    }

    /* 详情页通用两栏 → 纵向堆叠；主列 + 侧栏均满宽（!important 覆盖内联固定宽/比例） */
    .tp-soft-split {
        flex-direction: column;
    }

    .tp-soft-split > * {
        width: 100% !important;
    }

    /* 帮助分类卡：4 列 → 2 列 */
    .tp-soft-help-cats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── 手机（<=600px） ─────────────────────────────────────────────────── */
@media (max-width: 600px) {
    /* 内容区页边距降到 ~16px，宽度不溢出 */
    .tp-soft-main,
    .tp-soft-wrap {
        padding: 0 16px;
        max-width: 100%;
    }

    /* header：隐藏搜索框与中/EN 切换，保 logo + 积分丸 + 头像 */
    .tp-soft-search,
    .tp-soft-lang {
        display: none;
    }

    .tp-soft-topbar {
        padding: 12px 16px;
        gap: 10px 12px;
    }

    /* hero bento → 1 列，文字自适应 */
    .tp-soft-hero {
        grid-template-columns: 1fr;
    }

    .tp-soft-hero-cell--main,
    .tp-soft-hero-cell--wide {
        grid-column: span 1;
    }

    .tp-soft-hero-cell--wide {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* 栏目 strip 横排 → 纵向堆叠 */
    .tp-soft-strip {
        flex-direction: column;
    }

    /* 帮助分类卡：2 列 → 1 列 */
    .tp-soft-help-cats {
        grid-template-columns: 1fr;
    }

    /* 截图墙：3 列 → 1 列 */
    .tp-soft-shot-grid {
        grid-template-columns: 1fr;
    }

    /* 卡网格 / 套餐网格 → 1 列 */
    .tp-soft-grid,
    .tp-soft-plan-grid {
        grid-template-columns: 1fr;
    }

    /* 详情横幅：图标 + 信息 + 按钮 纵向堆叠 */
    .tp-soft-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px 20px;
    }

    .tp-soft-banner-actions {
        align-items: stretch;
        width: 100%;
    }

    /* roadmap 看板 3 列 → 1 列 */
    .tp-soft-board {
        grid-template-columns: 1fr;
    }

    /* 购买页页边距收窄 */
    .tp-soft-checkout,
    .tp-soft-uc {
        padding: 20px 16px 40px;
    }

    /* 用户中心 我的软件行卡 纵向堆叠 */
    .tp-soft-myapp {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* 评论气泡不溢出 */
    .tp-soft-bubble--wide {
        max-width: 100%;
    }
}

/* ══ 账号页（登录 / 注册 / 两步验证 / 找回密码 / 结果页）════════════════ */
.tp-soft-auth {
    display: flex;
    justify-content: center;
    padding: 48px 20px 64px;
}

.tp-soft-auth-card {
    width: 100%;
    max-width: 420px;
    padding: 28px;
    border-radius: var(--r-lg);
    box-shadow: var(--sh-lg);
}

.tp-soft-auth-card--wide {
    max-width: 760px;
}

.tp-soft-auth-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.tp-soft-auth-logo {
    width: 44px;
    height: 44px;
    flex: none;
    border: var(--bd);
    border-radius: 12px;
    background: var(--yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: var(--ink);
}

.tp-soft-auth-sub {
    margin: 2px 0 0;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-2);
}

.tp-soft-auth-msg {
    border: var(--bd-2);
    border-radius: var(--r-sm);
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 700;
    background: var(--pink-l);
    color: var(--ink);
}

.tp-soft-auth-msg--ok {
    background: var(--green);
}

.tp-soft-auth-text {
    margin: 0 0 16px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.8;
    color: var(--ink-2);
}

.tp-soft-auth-captcha {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tp-soft-auth-captcha img {
    height: 42px;
    flex: none;
    border: var(--bd-2);
    border-radius: 10px;
    cursor: pointer;
}

.tp-soft-auth-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.tp-soft-auth-actions--row {
    flex-direction: row;
}

.tp-soft-auth-actions--row > * {
    flex: 1;
}

.tp-soft-auth-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    font-size: 13px;
}

.tp-soft-auth-req {
    color: var(--pink);
}

.tp-soft-auth-agreement {
    max-height: 420px;
    overflow-y: auto;
    margin: 0 0 16px;
    padding: 14px;
    border: var(--bd-2);
    border-radius: var(--r-sm);
    background: var(--surface-2);
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.8;
}

.tp-soft-auth-langs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.tp-soft-auth-langs form {
    margin: 0;
}

.tp-soft-auth-skip {
    margin-left: auto;
}

/* 账号页字段横排：标签定宽左对齐，控件填满剩余宽度 */
.tp-soft-auth-card .tp-soft-field--inline .tp-soft-field-label {
    width: 96px;
    min-width: 96px;
}

.tp-soft-auth-card .tp-soft-field--inline > .tp-soft-select,
.tp-soft-auth-captcha,
.tp-soft-auth-pw {
    flex: 1;
    min-width: 0;
}

.tp-soft-auth-pw {
    display: flex;
    gap: 8px;
}

.tp-soft-auth-pw > .tp-soft-input {
    flex: 1;
    min-width: 0;
}

.tp-soft-auth-pw > .tp-soft-btn {
    flex: none;
}

@media (max-width: 520px) {
    .tp-soft-auth {
        padding: 24px 12px 40px;
    }

    .tp-soft-auth-card .tp-soft-field--inline {
        flex-direction: column;
        align-items: stretch;
    }

    .tp-soft-auth-card {
        padding: 20px;
    }

    .tp-soft-auth-actions--row {
        flex-direction: column;
    }
}

/* ══ 账号设置页（资料 / 头像 / 安全资料 / 两步验证 / 登录设备） ══════════ */
/* 侧栏分组标题 */
.tp-soft-uc-navgroup {
    margin-top: 6px;
    padding: 10px 14px 2px;
    border-top: 2px dashed var(--line-dash-2);
    font-size: 11.5px;
    font-weight: 800;
    color: var(--mute);
}

.tp-soft-set-card {
    padding: 22px;
}

/* 标题 + 右侧按钮行 */
.tp-soft-set-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    white-space: nowrap;
}

.tp-soft-set-head form,
.tp-soft-set-device form {
    margin: 0;
}

/* 字段行：标签在左定宽，提示 / 校验文字换到控件下方 */
.tp-soft-set-form .tp-soft-field--inline {
    flex-wrap: wrap;
    row-gap: 6px;
}

.tp-soft-set-form .tp-soft-field--inline .tp-soft-field-label {
    width: 112px;
    min-width: 112px;
}

.tp-soft-set-form .tp-soft-field--inline > .tp-soft-set-hint {
    flex-basis: 100%;
    padding-left: 124px;
    box-sizing: border-box;
}

/* 控件宽度：验证类（密码与验证码同宽）/ 中（用户名、昵称、手机、密码）/ 大（邮箱、网址） */
.tp-soft-set-ctl--verify {
    width: 100%;
    max-width: 240px;
}

.tp-soft-set-ctl--md {
    width: 100%;
    max-width: 320px;
}

.tp-soft-set-ctl--lg {
    width: 100%;
    max-width: 440px;
}

/* 分组小标题 */
.tp-soft-set-sec {
    margin: 20px 0 12px;
    padding-top: 14px;
    border-top: 2px dashed var(--line-dash-2);
    font-size: 15px;
    font-weight: 800;
}

.tp-soft-set-hint {
    font-size: 12px;
    font-weight: 600;
    color: var(--mute);
    white-space: normal;
}

.tp-soft-set-hint:empty {
    display: none;
}

div.tp-soft-set-hint {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* 提示条：信息 = 蓝底，错误 = 粉红底 */
.tp-soft-set-note {
    margin-bottom: 14px;
    padding: 10px 14px;
    background: var(--blue-l);
    border: var(--bd-2);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
}

.tp-soft-set-note--error {
    background: var(--pink-l);
}

.tp-soft-set-note.validation-summary-valid {
    display: none;
}

.tp-soft-set-note ul {
    margin: 0;
    padding-left: 18px;
}

/* 头像：圆角方块 */
.tp-soft-set-avatar {
    width: 96px;
    height: 96px;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: var(--bd-2);
    border-radius: 16px;
    background: var(--purple);
    font-size: 36px;
    font-weight: 800;
    color: var(--ink);
    object-fit: cover;
}

/* 两步验证：二维码 + 说明 + 短表单整体居中 */
.tp-soft-set-2fa {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 18px;
    max-width: 760px;
    margin: 0 auto;
}

.tp-soft-set-2fa-step {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    padding: 18px;
    background: var(--surface-2);
    border: var(--bd);
    border-radius: 14px;
}

.tp-soft-set-qr {
    width: 160px;
    height: 160px;
    box-sizing: border-box;
    padding: 6px;
    background: var(--surface);
    border: var(--bd-2);
    border-radius: 12px;
}

/* 恢复码：等宽两列 */
.tp-soft-set-codes {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 6px 28px;
    margin-top: 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 14px;
    font-weight: 700;
}

/* 设备行：信息列 + 状态 + 右侧操作 */
.tp-soft-set-device {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 2px dashed var(--line-dash-2);
}

.tp-soft-set-device > :first-child {
    flex: 1;
    min-width: 0;
}

@media (max-width: 720px) {
    .tp-soft-set-form .tp-soft-field--inline {
        flex-direction: column;
        align-items: stretch;
    }

    .tp-soft-set-form .tp-soft-field--inline > .tp-soft-set-hint {
        padding-left: 0;
    }
}

/* ── 站内通知（顶部未读角标 / 通知卡片 / 偏好勾选） ── */
.tp-soft-notify-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 11px;
    border: var(--bd);
    border-radius: var(--r-chip);
    background: var(--pink);
    color: var(--surface);
    font-size: 12.5px;
    font-weight: 800;
    box-shadow: var(--sh-sm);
    white-space: nowrap;
    text-decoration: none;
}

.tp-soft-notify-item {
    padding: 16px 20px;
}

.tp-soft-notify-item.is-unread {
    background: var(--surface-2);
}

.tp-soft-notify-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.tp-soft-notify-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 800;
    min-width: 0;
    overflow-wrap: anywhere;
}

.tp-soft-notify-dot {
    flex: none;
    width: 10px;
    height: 10px;
    border: var(--bd-2);
    border-radius: 50%;
    background: var(--pink);
}

.tp-soft-notify-body {
    margin-top: 8px;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--ink-2);
    overflow-wrap: anywhere;
}

.tp-soft-notify-ops {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.tp-soft-notify-ops form {
    margin: 0;
}

.tp-soft-notify-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
}
