/* ==========================================================================
   MOSS · Lighthouse(liehuo) 主题桥接样式
   仅补充 liehuo 原版 CSS 没有的部分（品牌字标、语言切换、无封面占位、评论）
   配色一律取自 liehuo reset.css 的变量，不重新设计
   ========================================================================== */

/* --- 品牌字标（替代他们的 logo.png） --- */
.navbar-brand { display: block; }
.moss-logo { display: flex; flex-direction: column; justify-content: center; line-height: 1.15; }
.moss-logo b {
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: .04em;
    color: var(--color-dark);
}
.moss-logo em {
    font-style: normal;
    font-size: .6875rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--color-muted);
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 2px;
}
.moss-logo-sm b { font-size: 1.125rem; font-weight: 800; color: var(--color-dark); }

/* --- 顶栏右侧工具区 --- */
.moss-header-tools { gap: 0; }
.moss-lang { display: flex; align-items: center; }
.moss-lang a {
    display: inline-block;
    font-size: .8125rem;
    line-height: 1.6;
    padding: 0 .375rem;
    color: var(--color-secondary);
    opacity: .55;
    transition: opacity .25s, color .25s;
}
.moss-lang a:hover { opacity: 1; color: var(--color-primary); }
.moss-lang a.on { opacity: 1; color: var(--color-primary); font-weight: 600; }

/* --- 侧边抽屉遮罩 --- */
.moss-drawer-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99;
    background: rgba(47, 47, 51, .38);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}
body.menu-collasped-active .moss-drawer-backdrop { opacity: 1; visibility: visible; }
@media (min-width: 1200px) { .moss-drawer-backdrop { display: none !important; } }

/* --- 无封面卡片占位（站点文章多为纯文字） --- */
.media-content.moss-cover { background-size: cover; background-position: 50% 50%; }
.media-content.moss-cover.c0 { background-image: linear-gradient(135deg, #2f66ff 0%, #6f8dff 100%); }
.media-content.moss-cover.c1 { background-image: linear-gradient(135deg, #2f2f33 0%, #4e4f55 100%); }
.media-content.moss-cover.c2 { background-image: linear-gradient(135deg, #3f5fd0 0%, #7c92e8 100%); }
.media-content.moss-cover.c3 { background-image: linear-gradient(135deg, #43a184 0%, #6fcba1 100%); }
.media-content.moss-cover.c4 { background-image: linear-gradient(135deg, #3d3d41 0%, #7b7d83 100%); }
.media-content.moss-cover.c5 { background-image: linear-gradient(135deg, #5b7bdc 0%, #9db4f0 100%); }

/* --- 文章详情正文 --- */
.post-content { color: var(--color-secondary); }
.post-content p { margin: 0 0 1.5rem; }
.post-content img { max-width: 100%; height: auto; border-radius: var(--radius-md); display: block; margin: 0 auto 1.5rem; }
.post-content a { color: var(--color-primary); }
.post-content a:hover { text-decoration: underline; }
.post-content ul, .post-content ol { margin: 0 0 1.5rem; padding-left: 1.25rem; }
.post-content ul li, .post-content ol li { margin: .375rem 0; }
.post-content blockquote {
    margin: 0 0 1.5rem;
    padding: .875rem 1.25rem;
    background: var(--bg-light);
    border-left: 3px solid var(--color-primary);
    border-radius: var(--radius-sm);
    color: var(--color-secondary);
}
.post-content pre {
    background: #2f2f33;
    color: #eef1f6;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    overflow: auto;
    font-size: .8125rem;
    line-height: 1.7;
    margin: 0 0 1.5rem;
}
.post-content code { font-family: Menlo, Consolas, monospace; font-size: .875em; }
.post-content h2, .post-content h3, .post-content h4 { color: var(--color-dark); }

/* --- 详情页标签 --- */
.post-tags { display: flex; flex-wrap: wrap; align-items: center; }
.post-tags .btn { margin: 0 .375rem .375rem 0; }
.post-meta a { color: var(--color-primary); }

/* --- 列表页筛选条 --- */
.moss-filters { display: flex; flex-wrap: wrap; align-items: center; margin: 0 0 1.25rem; }
.moss-filters .moss-filters-label {
    font-size: .8125rem;
    color: var(--color-muted);
    margin-right: .75rem;
    margin-bottom: .5rem;
}
.moss-filters .btn { margin: 0 .375rem .5rem 0; font-size: .8125rem; padding: .3125rem .875rem; }
.moss-filters .btn.active { background-color: var(--bg-primary); border-color: var(--bg-primary); color: #fff; }

/* --- 空状态 --- */
.moss-empty {
    text-align: center;
    color: var(--color-muted);
    padding: 4rem 1rem;
    font-size: .9375rem;
}

/* --- 评论 --- */
.moss-comment-list .list-item { align-items: flex-start; }
.moss-comment-avatar {
    width: 2.5rem;
    height: 2.5rem;
    line-height: 2.5rem;
    border-radius: 50%;
    background: var(--btn-light);
    color: var(--color-secondary);
    text-align: center;
    font-weight: 700;
    flex-shrink: 0;
    margin-right: .875rem;
}
.moss-comment-body { font-size: .9375rem; color: var(--color-secondary); line-height: 1.75; }
.moss-comment-head { font-size: .8125rem; color: var(--color-muted); }
.moss-comment-head b { color: var(--color-dark); font-weight: 600; }
.moss-comment-form textarea { min-height: 7rem; resize: vertical; }

/* --- 章节 / 下载列表 --- */
.moss-chapter-list .list-item { align-items: center; }
.moss-chapter-list .list-item.current .list-title { color: var(--color-primary); font-weight: 600; }
.moss-chapter-idx {
    width: 1.75rem;
    height: 1.75rem;
    line-height: 1.75rem;
    border-radius: 50%;
    background: var(--btn-light);
    color: var(--color-muted);
    font-size: .75rem;
    text-align: center;
    flex-shrink: 0;
    margin-right: .75rem;
}
.moss-chapter-list .list-item.current .moss-chapter-idx { background: var(--bg-primary); color: #fff; }

/* --- 侧栏统计 --- */
.moss-stats { display: flex; flex-wrap: wrap; text-align: center; }
.moss-stats .moss-stat { flex: 1 0 50%; padding: .875rem 0; }
.moss-stats .moss-stat b { display: block; font-size: 1.375rem; color: var(--color-dark); font-family: Manrope, Arial, sans-serif; }
.moss-stats .moss-stat span { font-size: .75rem; color: var(--color-muted); }

/* --- 行数截断（原版 .h-1x/.h-2x 的 -webkit-box 被重置成 flow-root，补回省略号） --- */
.h-1x, .h-2x, .h-3x, .h-4x {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.h-1x { -webkit-line-clamp: 1; }
.h-2x { -webkit-line-clamp: 2; }
.h-3x { -webkit-line-clamp: 3; }
.h-4x { -webkit-line-clamp: 4; }
.list-title { line-height: 1.55; }

/* --- 轮播（不引入 swiper.js，仅借其样式类） --- */
.index-slide { position: relative; overflow: hidden; border-radius: var(--radius-md); }
.index-slide .swiper-wrapper {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    transition: transform .55s ease;
    will-change: transform;
}
.index-slide .swiper-slide { flex: 0 0 100%; width: 100%; max-width: 100%; }
.index-slide .media { border-radius: var(--radius-md); }

/* --- 归档页标题（原版把 iconfont 当水印，但缺 left:50%，这里补上） --- */
.archive-heading { overflow: hidden; }
.archive-heading .iconfont {
    left: 50%;
    top: 40%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    opacity: .06;
    pointer-events: none;
}
.archive-heading .h1 { position: relative; z-index: 1; }
.index-slide .swiper-pagination { position: absolute; bottom: .75rem; width: 100%; text-align: center; z-index: 5; }
.index-slide .swiper-pagination-bullet {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 4px;
    border-radius: 50%;
    background: #fff;
    opacity: .45;
    cursor: pointer;
    transition: opacity .25s;
}
.index-slide .swiper-pagination-bullet-active { opacity: 1; width: 16px; border-radius: 3px; }
.index-slide .slide-goto { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 3; }

/* --- 表单控件沿用 reset 后补齐 --- */
.form-control {
    display: block;
    width: 100%;
    padding: .5rem .875rem;
    font-size: .9375rem;
    color: var(--color-dark);
    background-color: var(--bg-white);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-sm);
    transition: border-color .25s, box-shadow .25s;
}
.form-control:focus {
    outline: 0;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 .1875rem var(--btn-outline-primary);
}
textarea.form-control { line-height: 1.7; }

/* --- 搜索弹窗（自己控制显隐，不依赖 bootstrap.js） --- */
.modal { z-index: 1080; }
.modal.show { display: block; }
.modal-backdrop { z-index: 1070; }
#searchModal .modal-dialog { max-width: 520px; margin: 6rem auto; }
#searchModal .modal-content { border: 0; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
#searchModal .modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.25rem .5rem; }
#searchModal .modal-title { font-size: 1rem; color: var(--color-dark); margin: 0; }
#searchModal .modal-body { padding: 0 1.25rem 1.25rem; }

/* --- 区块标题微调（卡片头） --- */
.card-header .h4 { font-size: 1rem; margin: 0; color: var(--color-dark); }
.card-header .h4 a { color: inherit; }
.card-header .iconfont { margin-right: .5rem; font-size: 1.125rem; color: var(--color-primary); opacity: .85; }

/* --- 页脚 --- */
.site-footer .copyright a { color: var(--color-muted); }
.site-footer .copyright a:hover { color: var(--color-primary); }

/* --- 提示条 --- */
.alert { border-radius: var(--radius-sm); font-size: .875rem; padding: .75rem 1rem; margin: 1rem 0; }
.alert-info { background: var(--btn-outline-primary); color: var(--color-primary); }


/* ==========================================================================
   文章页升级：阅读进度 / 作者信息 / 侧栏 / 上下篇 / 回到顶部
   ========================================================================== */
.reading-progress { position: fixed; inset-block-start: 0; inset-inline: 0; height: 3px; z-index: 1080; pointer-events: none; background: transparent; }
.reading-progress span { display: block; block-size: 100%; inline-size: 0; background: var(--color-primary); transition: inline-size .1s linear; }
.post-layout { margin-top: 1rem; }
.post-side-sticky { position: sticky; top: 96px; }

.post-author-mini { display: inline-flex; align-items: center; gap: .375rem; color: var(--color-secondary); font-size: .8125rem; vertical-align: middle; }
.post-author-mini img, .post-author-mini-fallback { inline-size: 22px; block-size: 22px; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(45deg, #9db7ff, #2f66ff); color: #fff; font-size: .6875rem; font-weight: 700; }
.post-author-mini:hover { color: var(--color-primary); }

.author-box-inner { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.author-avatar { inline-size: 68px; block-size: 68px; border-radius: 18px; object-fit: cover; flex: none; }
.author-avatar-text { display: flex; align-items: center; justify-content: center; background: linear-gradient(45deg, #9db7ff, #2f66ff); color: #fff; font-size: 1.625rem; font-weight: 800; }
.author-main { flex: 1 1 220px; min-inline-size: 0; }
.author-name { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.author-name a { color: var(--color-dark); }
.author-name a:hover { color: var(--color-primary); }
.author-headline { font-size: .8125rem; color: var(--color-muted); margin-top: .125rem; }
.author-bio { font-size: .875rem; color: var(--color-secondary); line-height: 1.75; margin-top: .5rem; }
.author-stats { font-size: .75rem; color: var(--color-muted); margin-top: .5rem; }
.author-stats b { color: var(--color-dark); font-weight: 700; margin-inline-end: .15rem; }
.author-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-inline-start: auto; }

.meta-list { list-style: none; margin: 0; padding: 0; }
.meta-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .5rem; border-block-end: 1px dashed var(--border-muted); font-size: .8125rem; }
.meta-list li:last-child { border-block-end: 0; }
.meta-list .k { color: var(--color-muted); }
.meta-list .v { color: var(--color-dark); text-align: end; }
.share-row { display: flex; gap: .5rem; margin-top: .75rem; }
.share-row .btn { flex: 1; }

.side-posts { display: flex; flex-direction: column; }
.side-post { display: flex; align-items: center; gap: .75rem; padding-block: .6rem; border-block-end: 1px solid var(--border-muted); }
.side-post:first-child { padding-block-start: 0; }
.side-post:last-child { border-block-end: 0; padding-block-end: 0; }
.side-post-thumb { inline-size: 76px; block-size: 52px; border-radius: 8px; background-size: cover; background-position: center; flex: none; display: block; }
.side-post-body { min-inline-size: 0; display: flex; flex-direction: column; gap: .2rem; }
.side-post-title { font-size: .8125rem; line-height: 1.5; color: var(--color-dark); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-post-date { font-size: .6875rem; color: var(--color-muted); }
.side-post:hover .side-post-title { color: var(--color-primary); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.post-nav-item { display: flex; flex-direction: column; gap: .25rem; padding: 1rem 1.25rem; background: #fff; border-radius: var(--radius-sm); box-shadow: 0 5px 30px 5px rgb(62 61 80 / 1%); transition: all .25s; }
.post-nav-item:hover { transform: translateY(-2px); box-shadow: 0 8px 30px 5px rgb(62 61 80 / 6%); }
.post-nav-item.next { text-align: end; }
.post-nav-item .dir { font-size: .75rem; color: var(--color-muted); }
.post-nav-item .t { font-size: .875rem; font-weight: 600; color: var(--color-dark); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.moss-comment-list .list-item.list-row { display: flex; flex-direction: row; align-items: flex-start; gap: .875rem; }
.moss-comment-list .list-item.list-row .list-content { flex: 1 1 auto; min-inline-size: 0; }
.moss-comment-avatar { inline-size: 40px; block-size: 40px; border-radius: 50%; background: #f1f3f7; color: var(--color-muted); display: flex; align-items: center; justify-content: center; flex: none; font-weight: 600; }
.post-nav-item .ar { display: inline-block; }

.back-top { position: fixed; inset-inline-end: 22px; inset-block-end: 22px; z-index: 1050; inline-size: 42px; block-size: 42px; border: 0; border-radius: 14px; background: #fff; color: var(--color-primary); box-shadow: 0 6px 24px rgb(47 102 255 / 18%); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .25s; }
.back-top.is-on { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--color-primary); color: #fff; }

@media (max-width: 991.98px) { .post-side-sticky { position: static; } }
@media (max-width: 575.98px) { .post-nav { grid-template-columns: 1fr; } .author-actions { inline-size: 100%; margin-inline-start: 0; } }


/* ==========================================================================
   导航栏 v2：图标 / 胶囊悬停 / 二级下拉 / 移动端抽屉
   ========================================================================== */
.site-header .navbar-site { gap: .15rem; }
.site-header .navbar-site .menu-item { position: relative; }
.site-header .navbar-site .menu-item > a { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .85rem; border-radius: 999px; color: var(--color-secondary); font-size: .875rem; font-weight: 500; line-height: 1.4; transition: background .2s, color .2s; }
.site-header .navbar-site .menu-item > a .iconfont { font-size: 1rem; opacity: .75; }
.site-header .navbar-site .menu-item > a .nav-caret { font-size: .7rem; opacity: .55; margin-inline-start: .05rem; transition: transform .2s; }
.site-header .navbar-site .menu-item:hover > a { background: #f2f5fb; color: var(--color-primary); }
.site-header .navbar-site .menu-item:hover > a .iconfont { opacity: 1; }
.site-header .navbar-site .menu-item.current-menu-item > a { background: rgba(47, 102, 255, .1); color: var(--color-primary); font-weight: 600; }
.site-header .navbar-site .menu-item.current-menu-item > a .iconfont { opacity: 1; }
.site-header .navbar-site .menu-item-has-children:hover > a .nav-caret { transform: rotate(180deg); }

.site-header .navbar-site .sub-menu { position: absolute; inset-block-start: calc(100% + 8px); inset-inline-start: 0; min-inline-size: 210px; padding: .4rem; margin: 0; list-style: none; background: #fff; border-radius: 14px; box-shadow: 0 18px 50px rgba(21, 36, 80, .14), 0 2px 8px rgba(21, 36, 80, .06); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 1100; }
.site-header .navbar-site .menu-item:hover > .sub-menu,
.site-header .navbar-site .menu-item:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-header .navbar-site .sub-menu a { display: flex; align-items: center; gap: .5rem; padding: .55rem .75rem; border-radius: 9px; color: var(--color-secondary); font-size: .8125rem; line-height: 1.4; white-space: nowrap; }
.site-header .navbar-site .sub-menu a:hover { background: #f5f7fa; color: var(--color-primary); }
.site-header .navbar-site .sub-menu .iconfont { font-size: .95rem; opacity: .7; }
.site-header .navbar-site .sub-menu .current-menu-item a { color: var(--color-primary); background: rgba(47, 102, 255, .07); font-weight: 600; }

.site-aside .aside-menu .menu-item-has-children > a { position: relative; }
.site-aside .aside-caret { margin-inline-start: auto; font-size: .8rem; opacity: .5; }
.site-aside .aside-submenu { list-style: none; margin: .15rem 0 .35rem; padding: 0; }
.site-aside .aside-submenu a { display: flex; align-items: center; gap: .45rem; padding-block: .5rem; padding-inline: 2.55rem .75rem; font-size: .8125rem; color: var(--color-muted); border-radius: 8px; }
.site-aside .aside-submenu a:hover,
.site-aside .aside-submenu .current-menu-item a { color: var(--color-primary); background: rgba(47, 102, 255, .07); }
.site-aside .aside-submenu .iconfont { font-size: .9rem; opacity: .65; }

@media (max-width: 1199.98px) {
    .site-header .navbar-site .menu-item > a { padding: .5rem .6rem; font-size: .8125rem; }
    .site-header .navbar-site .menu-item > a .iconfont { display: none; }
}

.site-aside .aside-submenu { display: none; }
.site-aside .menu-item-has-children.open > .aside-submenu { display: block; }
.site-aside .menu-item-has-children.open > a .aside-caret { transform: rotate(180deg); }


/* ==========================================================================
   首页侧栏：友情链接 / 博主信息（双标签自动切换）
   ========================================================================== */
.moss-tabs-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 360px;
    border: 1px solid rgba(47, 102, 255, .07);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 60px -32px rgba(47, 47, 51, .24), 0 2px 8px rgba(47, 47, 51, .03);
    overflow: hidden;
}
.moss-tabs-card:before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(47, 102, 255, .26), transparent);
    z-index: 1;
}
.mtc-tabs {
    flex: 0 0 58px;
    height: 58px;
    display: flex;
    align-items: stretch;
    gap: 2px;
    padding: 0 14px;
    border-bottom: 1px solid #eef1f7;
    position: relative;
    z-index: 2;
}
.mtc-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 0 8px;
    border: 0;
    background: none;
    color: #8b8e96;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .01em;
    cursor: pointer;
    transition: color .2s;
}
.mtc-tab .iconfont { font-size: 14px; opacity: .7; transition: opacity .2s; }
.mtc-tab:hover { color: #555557; }
.mtc-tab:hover .iconfont { opacity: 1; }
.mtc-tab.is-active { color: #2f66ff; }
.mtc-tab.is-active .iconfont { opacity: 1; }
.mtc-tab.is-active:after {
    content: "";
    position: absolute;
    left: 7px;
    right: 7px;
    bottom: -1px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: #2f66ff;
    box-shadow: 0 -3px 12px rgba(47, 102, 255, .30);
}
.mtc-count {
    min-width: 19px;
    height: 18px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f1f4fa;
    color: #9398a3;
    font-size: 10px;
    font-weight: 700;
    transition: background .2s, color .2s;
}
.mtc-tab.is-active .mtc-count { background: #eaf0ff; color: #2f66ff; }

.mtc-panel {
    display: none;
    flex: 1;
    min-height: 0;
    padding: 15px 16px 15px;
    flex-direction: column;
}
.mtc-panel.is-active { display: flex; animation: mtcIn .34s ease both; }
@keyframes mtcIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

/* 友链 */
.mtc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.mtc-friend {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 8px;
    border: 1px solid #eff2f8;
    border-radius: 11px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s, transform .2s, background .2s;
}
.mtc-friend:hover {
    border-color: rgba(47, 102, 255, .28);
    background: #fcfdff;
    box-shadow: 0 8px 20px -12px rgba(47, 102, 255, .35);
    transform: translateY(-2px);
}
.mtc-logo {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
.mtc-fmain { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mtc-fname {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    color: #393a40;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mtc-fdesc {
    font-size: 10px;
    line-height: 1.3;
    color: #9aa0ab;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mtc-arrow {
    margin-left: auto;
    font-size: 11px;
    color: #c3c9d4;
    opacity: 0;
    transform: translate(-2px, 2px);
    transition: opacity .2s, transform .2s, color .2s;
}
.mtc-friend:hover .mtc-arrow { opacity: 1; transform: none; color: #2f66ff; }

.mtc-foot {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 10.5px;
    color: #a0a5b0;
}
.mtc-apply {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 7px;
    border-radius: 8px;
    color: #2f66ff;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s;
}
.mtc-apply:hover { background: #eaf0ff; color: #2f66ff; }
.mtc-apply .iconfont { font-size: 10px; }

/* 博主信息 */
.mtc-profile { padding: 0 16px 14px; }
.mtc-cover {
    position: relative;
    height: 82px;
    margin: 0 -16px;
    overflow: hidden;
    background:
        radial-gradient(150px 100px at 88% -20%, rgba(255, 255, 255, .40), transparent 70%),
        radial-gradient(120px 90px at 4% 130%, rgba(255, 255, 255, .18), transparent 70%),
        linear-gradient(118deg, #2f66ff 0%, #4f7dff 55%, #7ba2ff 100%);
}
.mtc-cover:before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(115deg, transparent 46%, rgba(255, 255, 255, .09) 46%, rgba(255, 255, 255, .09) 54%, transparent 54%);
    background-size: 38px 38px;
}
.mtc-cover span {
    position: absolute;
    right: 14px;
    bottom: -7px;
    color: rgba(255, 255, 255, .13);
    font-size: 40px;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1;
}
.mtc-pf-top {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-top: -25px;
}
.mtc-avatar {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 19px;
    border: 4px solid #fff;
    background: linear-gradient(140deg, #2f2f33 0%, #464750 55%, #2f66ff 130%);
    color: #fff;
    font-size: 23px;
    font-weight: 700;
    object-fit: cover;
    box-shadow: 0 10px 22px -12px rgba(47, 47, 51, .55);
}
.mtc-avatar-text { line-height: 1; }
.mtc-pf-id { flex: 1; min-width: 0; padding-bottom: 2px; }
.mtc-name {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #2f2f33;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.25;
}
.mtc-verified { font-size: 13px; color: #2f66ff; }
.mtc-handle {
    margin-top: 2px;
    color: #9aa0ab;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mtc-pf-top form { margin: 0 0 3px; }
.mtc-follow {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 29px;
    padding: 0 10px;
    margin-bottom: 3px;
    border: 0;
    border-radius: 8px;
    background: #2f66ff;
    color: #fff;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 16px -8px rgba(47, 102, 255, .65);
    transition: transform .2s, box-shadow .2s, background .2s;
}
.mtc-follow:hover { background: #2557e8; color: #fff; transform: translateY(-1px); box-shadow: 0 10px 20px -8px rgba(47, 102, 255, .75); }
.mtc-follow .iconfont { font-size: 9px; }
.mtc-bio {
    margin: 11px 0 11px;
    color: #777b85;
    font-size: 11px;
    line-height: 1.72;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mtc-bio b { color: #4d4f56; font-weight: 600; }
.mtc-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 9px 0;
    margin-bottom: 11px;
    border: 1px solid #f0f3f9;
    border-radius: 11px;
    background: #f7f9fd;
}
.mtc-stat { position: relative; text-align: center; }
.mtc-stat + .mtc-stat:before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 1px;
    background: #e9edf5;
}
.mtc-stat b { display: block; color: #2f2f33; font-size: 14px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.mtc-stat span { display: block; margin-top: 2px; color: #9aa0ab; font-size: 9px; letter-spacing: .03em; }
.mtc-social { display: flex; align-items: center; gap: 6px; margin-top: auto; }
.mtc-soc {
    width: 29px;
    height: 29px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #edf0f6;
    border-radius: 9px;
    background: #fff;
    color: #8b909b;
    text-decoration: none;
    transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.mtc-soc:hover { color: #2f66ff; border-color: rgba(47, 102, 255, .28); background: #fbfcff; transform: translateY(-2px); }
.mtc-soc .iconfont { font-size: 13px; }
.mtc-more {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 6px;
    border-radius: 8px;
    color: #555557;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.mtc-more:hover { background: #f6f8fc; color: #2f66ff; }
.mtc-more .iconfont { font-size: 10px; }

@media (max-width: 991.98px) {
    .moss-tabs-card { min-height: 0; border-radius: 16px; }
    .mtc-panel { padding: 14px 14px 14px; }
    .mtc-profile { padding: 0 14px 13px; }
    .mtc-cover { margin: 0 -14px; height: 78px; }
}


/* 申请友链页 */
.friend-apply-card .card-body { padding-top: 1.25rem; }
.friend-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.friend-apply-form .form-label { font-size: .8125rem; font-weight: 600; color: var(--color-dark); margin-bottom: .375rem; }
.friend-apply-form .form-control { height: 44px; border-color: #e8ecf4; border-radius: 9px; font-size: .875rem; }
.friend-apply-form .form-control:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(47, 102, 255, .10); }
.friend-apply-form .btn { min-width: 116px; height: 40px; border-radius: 9px; font-weight: 600; }
.friend-rules { margin: 0; padding: 0; list-style: none; }
.friend-rules li { position: relative; padding-left: 1.125rem; margin-bottom: .75rem; color: var(--color-secondary); font-size: .8125rem; line-height: 1.7; }
.friend-rules li:last-child { margin-bottom: 0; }
.friend-rules li:before { content: ""; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: var(--color-primary); opacity: .65; }
.friend-approved-list a { display: flex; align-items: center; gap: .5rem; padding: .5rem .25rem; color: var(--color-secondary); font-size: .8125rem; text-decoration: none; border-bottom: 1px solid #f2f4f8; }
.friend-approved-list a:last-child { border-bottom: 0; }
.friend-approved-list a:hover { color: var(--color-primary); }
.friend-approved-list .friend-approved-dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #43a184; }
.friend-approved-list .friend-approved-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend-approved-list .iconfont { font-size: .75rem; color: var(--color-light); }


/* ==========================================================================
   顶栏：搜索 / 头像菜单
   ========================================================================== */
.moss-header-tools, .moss-mobile-tools { gap: 4px; }
.moss-search-btn, .moss-menu-btn {
    width: 38px; height: 38px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 50%; background: transparent;
    color: var(--color-secondary); cursor: pointer;
    transition: background .2s, color .2s, transform .2s;
}
.moss-search-btn .iconfont { font-size: 17px; }
.moss-menu-btn .iconfont { font-size: 19px; }
.moss-search-btn:hover, .moss-menu-btn:hover { background: #f2f5fb; color: var(--color-primary); }
.moss-search-btn:active, .moss-menu-btn:active { transform: scale(.94); }
.moss-login-btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 38px; padding: 0 18px; margin-inline-start: 6px;
    border-radius: 999px; background: var(--color-primary); color: #fff;
    font-size: 13px; font-weight: 600; text-decoration: none;
    box-shadow: 0 8px 18px -10px rgba(47, 102, 255, .8);
    transition: background .2s, transform .2s, box-shadow .2s;
}
.moss-login-btn:hover { background: #2557e8; color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(47, 102, 255, .9); }
.moss-login-btn-sm { height: 32px; padding: 0 12px; font-size: 12px; }

.moss-user { position: relative; display: inline-flex; }
.moss-avatar-btn {
    width: 40px; height: 40px; padding: 0; flex: 0 0 40px;
    display: inline-flex; align-items: center; justify-content: center;
    overflow: hidden; cursor: pointer;
    border: 2px solid #fff; border-radius: 50%;
    background: linear-gradient(140deg, #2f2f33 0%, #464750 55%, #2f66ff 130%);
    box-shadow: 0 0 0 1px #e7ecf6, 0 6px 14px -8px rgba(47, 47, 51, .4);
    transition: box-shadow .2s, transform .2s;
}
.moss-avatar-btn img { width: 100%; height: 100%; object-fit: cover; }
.moss-avatar-letter { color: #fff; font-size: 14px; font-weight: 800; line-height: 1; }
.moss-avatar-btn:hover { transform: translateY(-1px); box-shadow: 0 0 0 2px rgba(47, 102, 255, .35), 0 8px 18px -8px rgba(47, 47, 51, .45); }
.moss-user.is-open .moss-avatar-btn { box-shadow: 0 0 0 2px rgba(47, 102, 255, .5), 0 8px 18px -8px rgba(47, 47, 51, .45); }

.moss-user-menu {
    position: absolute; top: calc(100% + 12px); right: 0;
    width: 252px; padding: 8px; z-index: 1300;
    background: #fff; border: 1px solid #edf0f6; border-radius: 16px;
    box-shadow: 0 26px 60px -22px rgba(21, 36, 80, .28), 0 4px 14px rgba(21, 36, 80, .05);
    opacity: 0; visibility: hidden; transform: translateY(7px) scale(.985);
    transform-origin: top right;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.moss-user.is-open .moss-user-menu { opacity: 1; visibility: visible; transform: none; }
.mum-head { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 11px; background: linear-gradient(135deg, #f7f9ff 0%, #fbfcff 100%); }
.mum-avatar {
    width: 38px; height: 38px; flex: 0 0 38px;
    display: inline-flex; align-items: center; justify-content: center;
    overflow: hidden; border-radius: 50%;
    background: linear-gradient(140deg, #2f2f33 0%, #464750 55%, #2f66ff 130%);
    color: #fff; font-size: 13px; font-weight: 800;
}
.mum-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mum-id { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mum-id b { color: var(--color-dark); font-size: 13px; font-weight: 700; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mum-id small { color: #9aa0ab; font-size: 10px; line-height: 1.35; }
.mum-langs { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 10px 8px; }
.mum-lang-label { display: inline-flex; align-items: center; gap: 5px; color: #9aa0ab; font-size: 10.5px; }
.mum-lang-label .iconfont { font-size: 12px; }
.mum-lang-pills { display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; background: #f2f5fa; }
.mum-lang-pills a { padding: 3px 8px; border-radius: 999px; color: #7f8490; font-size: 10.5px; line-height: 1.5; text-decoration: none; transition: .18s; }
.mum-lang-pills a:hover { color: var(--color-primary); }
.mum-lang-pills a.on { background: #fff; color: var(--color-primary); font-weight: 700; box-shadow: 0 2px 6px rgba(21, 36, 80, .1); }
.mum-links { padding: 6px 0 4px; border-top: 1px solid #f1f3f8; }
.mum-links a, .mum-logout button {
    display: flex; align-items: center; gap: 9px; width: 100%;
    padding: 8px 10px; border: 0; border-radius: 9px; background: none;
    color: #555557; font-family: inherit; font-size: 12.5px; font-weight: 500; line-height: 1.5;
    text-align: start; text-decoration: none; cursor: pointer;
    transition: background .18s, color .18s;
}
.mum-links a .iconfont, .mum-logout button .iconfont { font-size: 15px; opacity: .68; }
.mum-links a:hover { background: #f5f8ff; color: var(--color-primary); }
.mum-links a:hover .iconfont { opacity: 1; }
.mum-logout { margin-top: 3px; padding-top: 4px; border-top: 1px solid #f1f3f8; }
.mum-logout button { color: #dd4b4b; }
.mum-logout button:hover { background: #fff5f5; color: #cf3030; }
.mum-logout button:hover .iconfont { opacity: 1; }

[dir="rtl"] .moss-user-menu { right: auto; left: 0; transform-origin: top left; }
[dir="rtl"] .mum-links a, [dir="rtl"] .mum-logout button { text-align: right; }

@media (max-width: 991.98px) {
    .moss-mobile-tools .moss-avatar-btn { width: 36px; height: 36px; flex-basis: 36px; }
    .moss-mobile-tools .moss-search-btn,
    .moss-mobile-tools .moss-menu-btn { width: 34px; height: 34px; }
    .moss-mobile-tools .moss-login-btn-sm { margin-inline-start: 2px; }
    .moss-user-menu { width: 244px; }
}

@media (max-width: 575.98px) {
    .site-header .moss-logo em { display: none; }
    .site-header .moss-logo b { font-size: 1.25rem; }
}

/* --- 上传图片 LOGO --- */
.moss-logo-img {
    display: block;
    width: auto;
    height: 38px;
    max-width: 220px;
    object-fit: contain;
}
.moss-logo-sm-img {
    display: block;
    width: auto;
    max-width: 120px;
    max-height: 26px;
    object-fit: contain;
}
@media (max-width: 991.98px) {
    .moss-logo-img { height: 32px; max-width: 160px; }
}
@media (max-width: 575.98px) {
    .moss-logo-img { height: 30px; max-width: 140px; }
    .moss-logo-sm-img { max-height: 24px; max-width: 104px; }
}


/* ==========================================================================
   Profile page
   ========================================================================== */
.profile-page { --pf-line: #edf0f6; --pf-muted: #8d929c; --pf-soft: #f7f9ff; }
.profile-hero {
    position: relative;
    margin-bottom: 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--pf-line);
    border-radius: 22px;
    box-shadow: 0 22px 50px -42px rgba(21, 36, 80, .5);
}
.profile-cover {
    position: relative;
    height: 154px;
    overflow: hidden;
    background:
        radial-gradient(520px 220px at 82% 16%, rgba(255, 255, 255, .26), transparent 68%),
        linear-gradient(118deg, #2f66ff 0%, #5b7bdc 46%, #3d3d8f 78%, #2f2f33 120%);
}
.profile-cover-orb {
    position: absolute;
    display: block;
    border-radius: 50%;
    filter: blur(1px);
    pointer-events: none;
}
.profile-cover-orb-a {
    width: 230px;
    height: 230px;
    right: -60px;
    top: -120px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
}
.profile-cover-orb-b {
    width: 150px;
    height: 150px;
    left: 34%;
    bottom: -120px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
}
.profile-cover-grid {
    position: absolute;
    inset: 0;
    opacity: .35;
    background-image:
        linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(90deg, transparent, #000 45%, #000);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%, #000);
}
.profile-main {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 0 26px 4px;
}
.profile-avatar {
    width: 104px;
    height: 104px;
    flex: 0 0 104px;
    margin-top: -52px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 4px solid #fff;
    border-radius: 28px;
    background: linear-gradient(140deg, #2f2f33 0%, #464750 55%, #2f66ff 130%);
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 16px 30px -20px rgba(21, 36, 80, .55);
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-info {
    flex: 1;
    min-width: 0;
    padding: 14px 0 8px;
}
.profile-name-row {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}
.profile-name-row h1 {
    margin: 0;
    color: var(--color-dark);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.3;
}
.profile-role {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--color-primary);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
}
.profile-role .iconfont { font-size: 11px; }
.profile-handle {
    margin-top: 1px;
    color: #9aa0ab;
    font-size: 12px;
    letter-spacing: .01em;
}
.profile-headline {
    margin: 8px 0 0;
    color: #555557;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
}
.profile-bio {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 660px;
    margin: 5px 0 0;
    color: #7c818c;
    font-size: 12.5px;
    line-height: 1.75;
}
.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 9px;
    color: #9aa0ab;
    font-size: 11px;
}
.profile-meta span { display: inline-flex; align-items: center; gap: 4px; }
.profile-meta .iconfont { font-size: 12px; opacity: .8; }
.profile-actions { flex: 0 0 auto; align-self: flex-start; padding-top: 18px; }
.profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.profile-btn .iconfont { font-size: 13px; }
.profile-btn-primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 10px 20px -12px rgba(47, 102, 255, .9);
}
.profile-btn-primary:hover { background: #2557e8; color: #fff; transform: translateY(-1px); box-shadow: 0 12px 24px -12px rgba(47, 102, 255, 1); }
.profile-btn-soft {
    background: #f5f8ff;
    border-color: #e3ebff;
    color: var(--color-primary);
}
.profile-btn-soft:hover { background: #eaf1ff; color: #2557e8; }
.profile-btn.is-following { background: #f5f6f9; border-color: #eceef3; color: #7c818c; }
.profile-btn.is-following:hover { background: #fff5f5; border-color: #ffe1e1; color: #dd4b4b; }
.profile-btn-block { width: 100%; }
.profile-stats {
    display: flex;
    margin-top: 12px;
    padding: 14px 20px 16px;
    border-top: 1px solid #f1f3f8;
}
.profile-stat {
    flex: 1;
    min-width: 0;
    padding: 0 8px;
    border-inline-end: 1px solid #f1f3f8;
    color: inherit;
    text-align: center;
    text-decoration: none;
}
.profile-stat:last-child { border-inline-end: 0; }
.profile-stat b {
    display: block;
    color: var(--color-dark);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.01em;
}
.profile-stat span {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    color: #9aa0ab;
    font-size: 10.5px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}
a.profile-stat:hover b { color: var(--color-primary); }

.profile-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 14px;
    padding: 5px;
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--pf-line);
    border-radius: 15px;
    box-shadow: 0 14px 34px -32px rgba(21, 36, 80, .5);
    scrollbar-width: none;
}
.profile-tabs::-webkit-scrollbar { display: none; }
.profile-tabs a {
    display: inline-flex;
    flex: 1;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 11px;
    color: #7c818c;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
    transition: background .18s, color .18s;
}
.profile-tabs a .iconfont { font-size: 13px; opacity: .8; }
.profile-tabs a b {
    min-width: 18px;
    padding: 1px 6px;
    border-radius: 999px;
    background: #f3f5fa;
    color: #9aa0ab;
    font-size: 9.5px;
    font-weight: 700;
    text-align: center;
}
.profile-tabs a:hover { background: var(--pf-soft); color: var(--color-primary); }
.profile-tabs a.is-active { background: #eef4ff; color: var(--color-primary); }
.profile-tabs a.is-active b { background: #fff; color: var(--color-primary); }

.profile-panel {
    margin-bottom: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--pf-line);
    border-radius: 18px;
    box-shadow: 0 16px 38px -38px rgba(21, 36, 80, .55);
    scroll-margin-top: 84px;
}
.profile-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #f3f5f9;
}
.profile-panel-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.profile-panel-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eef4ff;
    color: var(--color-primary);
    font-size: 15px;
}
.profile-panel-icon.is-violet { background: #f2edff; color: #7a63d8; }
.profile-panel-icon.is-amber { background: #fff4e8; color: #d98a35; }
.profile-panel-title h2 {
    margin: 0;
    color: var(--color-dark);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}
.profile-panel-title p {
    margin: 1px 0 0;
    color: #9aa0ab;
    font-size: 10.5px;
    line-height: 1.4;
}
.profile-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    color: #9aa0ab;
    font-size: 11px;
    text-decoration: none;
    transition: color .18s;
}
.profile-more .iconfont { font-size: 11px; }
.profile-more:hover { color: var(--color-primary); }

.profile-posts { padding: 6px 10px 10px; }
.profile-post {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 10px;
    border-bottom: 1px solid #f6f7fa;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    transition: background .18s;
}
.profile-post:last-child { border-bottom: 0; }
.profile-post:hover { background: #f7f9ff; color: inherit; }
.profile-post-date {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f3f7ff;
    color: #6b7a99;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
}
.profile-post-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.profile-post-kicker { color: var(--color-primary); font-size: 10px; font-weight: 600; line-height: 1.4; }
.profile-post-title {
    display: block;
    overflow: hidden;
    color: var(--color-dark);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.55;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.profile-post-desc {
    display: block;
    overflow: hidden;
    color: #8d929c;
    font-size: 11.5px;
    line-height: 1.55;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.profile-post-arrow { color: #c3c8d2; font-size: 12px; transition: color .18s, transform .18s; }
.profile-post:hover .profile-post-arrow { color: var(--color-primary); transform: translateX(2px); }

.profile-grid.is-single { grid-template-columns: 1fr; }
.profile-grid.is-single .profile-mini { flex-direction: row; align-items: stretch; }
.profile-grid.is-single .profile-mini-cover { width: 240px; flex: 0 0 240px; height: auto; min-height: 136px; }
.profile-grid.is-single .profile-mini-body { justify-content: center; padding: 18px 20px; }
.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
}
.profile-mini {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #f0f2f7;
    border-radius: 14px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.profile-mini:hover {
    transform: translateY(-2px);
    border-color: #e3e9f5;
    color: inherit;
    box-shadow: 0 16px 30px -24px rgba(21, 36, 80, .45);
}
.profile-mini-cover {
    position: relative;
    display: block;
    height: 108px;
    overflow: hidden;
    background-color: #eef2fa;
    background-position: center;
    background-size: cover;
}
.profile-mini-cover.moss-cover { display: flex; align-items: flex-end; }
.profile-mini-tag {
    position: absolute;
    top: 8px;
    inset-inline-start: 8px;
    padding: 3px 8px;
    border-radius: 7px;
    background: rgba(15, 23, 42, .55);
    color: #fff;
    font-size: 9.5px;
    font-weight: 600;
    line-height: 1.4;
    backdrop-filter: blur(4px);
}
.profile-mini-body { display: flex; flex-direction: column; gap: 3px; padding: 11px 12px 12px; }
.profile-mini-kicker { color: var(--color-primary); font-size: 9.5px; font-weight: 600; line-height: 1.4; }
.profile-mini-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--color-dark);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}
.profile-mini-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #8d929c;
    font-size: 11.5px;
    line-height: 1.6;
}
.profile-mini-meta { display: flex; align-items: center; gap: 6px; margin-top: 2px; color: #9aa0ab; font-size: 10.5px; }
.profile-mini-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #c8cdd6; }
.profile-empty { grid-column: 1 / -1; padding: 30px 16px; color: #9aa0ab; font-size: 12.5px; text-align: center; }

.profile-side {
    position: sticky;
    top: 86px;
    padding: 18px 18px 14px;
    background: #fff;
    border: 1px solid var(--pf-line);
    border-radius: 18px;
    box-shadow: 0 16px 38px -38px rgba(21, 36, 80, .55);
}
.profile-side-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #f3f5f9;
}
.profile-side-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(140deg, #2f2f33 0%, #464750 55%, #2f66ff 130%);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}
.profile-side-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-side-head b { display: block; color: var(--color-dark); font-size: 12.5px; font-weight: 700; line-height: 1.4; }
.profile-side-head small { display: block; color: #9aa0ab; font-size: 10.5px; line-height: 1.4; }
.profile-side h3 { margin: 0 0 8px; color: var(--color-dark); font-size: 12px; font-weight: 700; line-height: 1.4; }
.profile-side-bio { margin: 0 0 12px; color: #7c818c; font-size: 12px; line-height: 1.75; }
.profile-kv {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-top: 1px solid #f6f7fa;
    color: #8d929c;
    font-size: 11.5px;
}
.profile-kv span { display: inline-flex; align-items: center; gap: 6px; }
.profile-kv .iconfont { color: #a8aeba; font-size: 12px; }
.profile-kv b { color: #555557; font-size: 11.5px; font-weight: 600; }
.profile-side-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.profile-side-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 9px;
    background: #f6f8fc;
    color: #6b7280;
    font-size: 11px;
    text-decoration: none;
    transition: background .18s, color .18s;
}
.profile-side-links a:hover { background: #eef4ff; color: var(--color-primary); }
.profile-side-links .iconfont { font-size: 12px; }

[dir="rtl"] .profile-post-arrow,
[dir="rtl"] .profile-more .iconfont { transform: scaleX(-1); }
[dir="rtl"] .profile-post:hover .profile-post-arrow { transform: scaleX(-1) translateX(2px); }

@media (max-width: 991.98px) {
    .profile-side { position: static; }
}
@media (max-width: 767.98px) {
    .profile-cover { height: 120px; }
    .profile-main { flex-wrap: wrap; gap: 14px; padding: 0 18px 4px; }
    .profile-avatar {
        width: 82px;
        height: 82px;
        flex-basis: 82px;
        margin-top: -41px;
        border-radius: 23px;
        font-size: 1.55rem;
    }
    .profile-info { flex: 1; min-width: calc(100% - 100px); padding: 10px 0 4px; }
    .profile-name-row h1 { font-size: 1.25rem; }
    .profile-bio { -webkit-line-clamp: 3; }
    .profile-actions { width: 100%; padding: 0 0 10px; order: 3; align-self: stretch; }
    .profile-actions form, .profile-actions .profile-btn { width: 100%; }
    .profile-stats { padding: 12px 8px 14px; }
    .profile-stat { padding: 0 4px; }
    .profile-stat b { font-size: 1.05rem; }
    .profile-stat span { font-size: 9.5px; }
    .profile-panel-head { padding: 14px 16px; }
    .profile-posts { padding: 4px 6px 8px; }
    .profile-post { gap: 10px; padding: 11px 8px; }
    .profile-post-date { width: 42px; height: 42px; flex-basis: 42px; font-size: 10.5px; }
    .profile-post-desc { display: none; }
    .profile-grid { grid-template-columns: 1fr; padding: 12px; }
    .profile-mini-cover { height: 120px; }
    .profile-grid.is-single .profile-mini { flex-direction: column; }
    .profile-grid.is-single .profile-mini-cover { width: 100%; flex: 0 0 auto; height: 120px; min-height: 0; }
    .profile-grid.is-single .profile-mini-body { justify-content: flex-start; padding: 11px 12px 12px; }
}

.profile-cover-mark {
    position: absolute;
    top: 50%;
    inset-inline-end: 38px;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, .09);
    font-size: 118px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.05em;
    pointer-events: none;
    user-select: none;
}
.profile-mini-watermark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(47, 47, 51, .16);
    font-size: 44px;
    pointer-events: none;
}
@media (max-width: 767.98px) {
    .profile-cover-mark { inset-inline-end: 20px; font-size: 82px; }
}

@media (max-width: 575.98px) {
    .profile-stats .profile-stat:nth-child(5) { display: none; }
    .profile-stats .profile-stat:nth-child(4) { border-inline-end: 0; }
    .profile-stat b { font-size: 1.1rem; }
    .profile-stat span { font-size: 10px; }
}

/* ===== 软件列表卡片 2026-11-03 ===== */
.sw-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 6px 0 0; }
.sw-head-main { min-width: 0; }
.sw-h1 { font-size: 2rem; font-weight: 800; line-height: 1.25; margin: 0; color: var(--color-dark, #181b21); }
.sw-lede { font-size: .875rem; color: var(--color-muted, #858b95); margin-top: .5rem; }
.sw-search { display: flex; align-items: center; gap: .625rem; height: 46px; padding: 0 1rem; min-width: 280px; background: #fff; border: 1px solid #e7eaf1; border-radius: 14px; box-shadow: 0 1px 2px rgba(24,27,33,.04); color: #858b95; }
.sw-search input { border: 0; outline: 0; background: transparent; font: inherit; font-size: .875rem; flex: 1; min-width: 0; color: #181b21; }
.sw-search input::placeholder { color: #a9aeb8; }
.sw-search i { opacity: .6; }

.sw-filters { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: 1.375rem 0 1.625rem; }
.sw-chip { display: inline-flex; align-items: center; gap: .4rem; height: 36px; padding: 0 .9375rem; border-radius: 999px; background: #fff; border: 1px solid #e7eaf1; font-size: .84rem; font-weight: 600; color: #4a5058; text-decoration: none; box-shadow: 0 1px 2px rgba(24,27,33,.03); transition: color .2s, border-color .2s, background .2s; }
.sw-chip:hover { color: #2f66ff; border-color: rgba(47,102,255,.35); text-decoration: none; }
.sw-chip.on { background: #181b21; border-color: #181b21; color: #fff; box-shadow: 0 10px 20px -12px rgba(24,27,33,.8); }
.sw-chip.on:hover { color: #fff; }
.sw-chip .n { font-size: .72rem; opacity: .55; font-weight: 700; }
.sw-total { margin-inline-start: auto; font-size: .8125rem; color: #858b95; }
.sw-total b { color: #4a5058; }

.sw-card { position: relative; display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid #e7eaf1; border-radius: 18px; overflow: hidden; box-shadow: 0 1px 2px rgba(24,27,33,.04), 0 10px 30px -12px rgba(24,27,33,.12); transition: transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s, border-color .28s; }
.sw-card:hover { transform: translateY(-5px); box-shadow: 0 2px 4px rgba(24,27,33,.05), 0 22px 48px -18px rgba(47,102,255,.28); border-color: rgba(47,102,255,.28); }

.sw-cover { position: relative; display: grid; place-items: center; height: 132px; overflow: hidden; text-decoration: none; }
.sw-cover::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.35) 1px, transparent 1px); background-size: 16px 16px; opacity: .35; mix-blend-mode: overlay; pointer-events: none; }
.sw-cover.g0 { background-image: linear-gradient(135deg, #2f66ff 0%, #6f8dff 100%); }
.sw-cover.g1 { background-image: linear-gradient(135deg, #2f2f33 0%, #5b5d66 100%); }
.sw-cover.g2 { background-image: linear-gradient(135deg, #3f5fd0 0%, #7c92e8 100%); }
.sw-cover.g3 { background-image: linear-gradient(135deg, #1f9c76 0%, #6fcba1 100%); }
.sw-cover.g4 { background-image: linear-gradient(135deg, #6b3fc9 0%, #a98bf5 100%); }
.sw-cover.g5 { background-image: linear-gradient(135deg, #b3600a 0%, #f0a95c 100%); }
.sw-mono { position: relative; z-index: 1; font-size: 52px; font-weight: 800; color: #fff; opacity: .92; letter-spacing: .02em; text-shadow: 0 6px 24px rgba(0,0,0,.18); }

.sw-badge { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: .78rem; font-weight: 800; box-shadow: 0 6px 16px -8px rgba(0,0,0,.45); }
.sw-badge svg { width: 14px; height: 14px; flex: none; }
.sw-badge--free { color: #0f8a56; background: #eafaf1; }
.sw-badge--paid { color: #b3600a; background: #fff3e4; }
.sw-badge--points { color: #6b3fc9; background: #f2edff; }
.sw-plat { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 8px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.32); color: #fff; font-size: .72rem; font-weight: 700; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

.sw-body { display: flex; flex-direction: column; gap: .5rem; padding: 1rem 1rem .125rem; flex: 1; }
.sw-title-row { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.sw-title { font-size: 1.03rem; font-weight: 800; line-height: 1.35; color: #181b21; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-title:hover { color: #2f66ff; text-decoration: none; }
.sw-ver { flex: none; font-size: .69rem; font-weight: 700; color: #858b95; background: #f3f5f9; border-radius: 6px; padding: 2px 7px; direction: ltr; unicode-bidi: isolate; }
.sw-desc { margin: 0; font-size: .8125rem; line-height: 1.75; color: #858b95; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.85em; }
.sw-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .75rem; color: #858b95; }
.sw-meta b { color: #4a5058; font-weight: 700; direction: ltr; unicode-bidi: isolate; }
.sw-meta span { unicode-bidi: isolate; }
.sw-meta i { width: 3px; height: 3px; border-radius: 50%; background: #cfd4de; display: inline-block; flex: none; }

.sw-actions { display: flex; align-items: center; gap: .625rem; padding: 1rem; margin-top: .875rem; border-top: 1px solid #f0f2f7; }
.sw-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 42px; border-radius: 12px; background: linear-gradient(180deg, #3a70ff, #2f66ff); color: #fff !important; font-size: .84rem; font-weight: 800; text-decoration: none; box-shadow: 0 10px 20px -12px rgba(47,102,255,.95), inset 0 1px 0 rgba(255,255,255,.22); transition: filter .2s, transform .2s; }
.sw-btn:hover { color: #fff; filter: brightness(1.06); text-decoration: none; }
.sw-btn:active { transform: translateY(1px); }
.sw-btn svg { width: 16px; height: 16px; flex: none; }
.sw-btn.ghost { background: #fff; color: #2f66ff !important; box-shadow: inset 0 0 0 1.5px rgba(47,102,255,.35); }
.sw-btn.ghost:hover { background: #f6f9ff; }
.sw-tag { flex: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; height: 42px; padding: 0 .75rem; border-radius: 12px; background: #fff8ec; color: #b3600a; box-shadow: inset 0 0 0 1.5px #ffe0b8; font-size: .84rem; font-weight: 800; line-height: 1.1; }
.sw-tag small { font-size: .625rem; font-weight: 700; opacity: .72; margin-top: 2px; }
.sw-tag--pts { background: #f6f2ff; color: #6b3fc9; box-shadow: inset 0 0 0 1.5px #e3d7ff; }

@media (max-width: 767.98px) {
    .sw-h1 { font-size: 1.6rem; }
    .sw-search { width: 100%; min-width: 0; }
    .sw-cover { height: 120px; }
    .sw-mono { font-size: 46px; }
}
/* ===== 软件列表卡片 END =====

/* ===== 软件详情页 2026-11-03 ===== */
.sw-detail-top { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.sw-hero { background: #fff; border: 1px solid #e7eaf1; border-radius: 18px; overflow: hidden; box-shadow: 0 1px 2px rgba(24,27,33,.04), 0 10px 30px -12px rgba(24,27,33,.12); }
.sw-hero-cover { position: relative; display: grid; place-items: center; height: 180px; overflow: hidden; text-decoration: none; }
.sw-hero-cover::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.35) 1px, transparent 1px); background-size: 16px 16px; opacity: .35; mix-blend-mode: overlay; pointer-events: none; }
.sw-hero-cover.g0 { background-image: linear-gradient(135deg, #2f66ff 0%, #6f8dff 100%); }
.sw-hero-cover.g1 { background-image: linear-gradient(135deg, #2f2f33 0%, #5b5d66 100%); }
.sw-hero-cover.g2 { background-image: linear-gradient(135deg, #3f5fd0 0%, #7c92e8 100%); }
.sw-hero-cover.g3 { background-image: linear-gradient(135deg, #1f9c76 0%, #6fcba1 100%); }
.sw-hero-cover.g4 { background-image: linear-gradient(135deg, #6b3fc9 0%, #a98bf5 100%); }
.sw-hero-cover.g5 { background-image: linear-gradient(135deg, #b3600a 0%, #f0a95c 100%); }
.sw-hero-body { padding: 1.25rem 1.375rem 1.375rem; }
.sw-name { margin: 0; font-size: 1.6rem; font-weight: 800; line-height: 1.3; color: #181b21; }
.sw-lead, .sw-hero-body .sw-lede { margin: .5rem 0 0; color: #858b95; font-size: .9rem; line-height: 1.8; }

.sw-side { position: sticky; top: 80px; }
.sw-side-card { background: #fff; border: 1px solid #e7eaf1; border-radius: 18px; padding: 1.125rem; box-shadow: 0 1px 2px rgba(24,27,33,.04), 0 10px 30px -12px rgba(24,27,33,.12); }
.sw-price { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .875rem; }
.sw-price b { font-size: 2rem; font-weight: 800; color: #b3600a; line-height: 1; direction: ltr; unicode-bidi: isolate; }
.sw-price b.is-free { color: #0f8a56; font-size: 1.4rem; }
.sw-price small { font-size: .75rem; color: #858b95; font-weight: 600; }
.sw-side-meta { display: grid; grid-template-columns: 1fr 1fr; gap: .625rem .75rem; padding: .875rem 0; border-top: 1px solid #f0f2f7; border-bottom: 1px solid #f0f2f7; margin-bottom: 1rem; }
.sw-side-meta div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sw-side-meta span { font-size: .7rem; color: #9aa0ab; }
.sw-side-meta b { font-size: .8125rem; color: #181b21; font-weight: 700; direction: ltr; unicode-bidi: isolate; overflow: hidden; text-overflow: ellipsis; }
.sw-side-empty { font-size: .85rem; color: #858b95; }
.sw-btn.big { display: flex; width: 100%; height: 46px; font-size: .9rem; border-radius: 13px; }
.sw-btn.small { flex: none; height: 36px; padding: 0 .875rem; font-size: .8rem; border-radius: 10px; background: #fff; color: #2f66ff !important; box-shadow: inset 0 0 0 1.5px rgba(47,102,255,.35); gap: .375rem; }
.sw-btn.small:hover { background: #f6f9ff; }
.sw-btn.small svg { width: 15px; height: 15px; }
.sw-checksum { display: flex; flex-direction: column; gap: 3px; margin-top: .875rem; }
.sw-checksum span { font-size: .7rem; color: #9aa0ab; }
.sw-checksum code { font-size: .68rem; color: #4a5058; word-break: break-all; background: #f6f8fc; border-radius: 8px; padding: .375rem .5rem; direction: ltr; unicode-bidi: isolate; }
.sw-side-links { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .875rem; padding-top: .875rem; border-top: 1px solid #f0f2f7; }
.sw-side-links a { font-size: .78rem; font-weight: 600; color: #2f66ff; text-decoration: none; background: #f6f9ff; border-radius: 9px; padding: .375rem .625rem; }
.sw-side-links a:hover { background: #eaf1ff; text-decoration: none; }

.sw-section { background: #fff; border: 1px solid #e7eaf1; border-radius: 18px; padding: 1.375rem 1.5rem; margin-top: 22px; box-shadow: 0 1px 2px rgba(24,27,33,.04), 0 10px 30px -12px rgba(24,27,33,.12); }
.sw-section-title { font-size: 1.05rem; font-weight: 800; margin: 0 0 1rem; display: flex; align-items: center; gap: .5rem; color: #181b21; }
.sw-section-title::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: linear-gradient(180deg, #3a70ff, #2f66ff); }
.sw-prose { color: #4a5058; font-size: .9rem; line-height: 1.9; }

.sw-rel { display: flex; flex-direction: column; }
.sw-rel-row { display: flex; align-items: center; gap: 1rem; padding: .875rem 0; border-top: 1px solid #f3f5f9; }
.sw-rel-row:first-child { border-top: 0; }
.sw-rel-main { min-width: 0; flex: 1; }
.sw-rel-title { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.sw-rel-title b { font-size: .95rem; font-weight: 800; color: #181b21; direction: ltr; unicode-bidi: isolate; }
.sw-rel-plat { font-size: .72rem; font-weight: 700; color: #4a5058; background: #f3f5f9; border-radius: 6px; padding: 1px 7px; }
.sw-rel-new { font-size: .68rem; font-weight: 800; color: #1f4fdd; background: #eaf1ff; border-radius: 999px; padding: 2px 8px; }
.sw-rel-date, .sw-rel-size { font-size: .75rem; color: #9aa0ab; direction: ltr; unicode-bidi: isolate; }
.sw-rel-notes { font-size: .8rem; color: #858b95; margin-top: .25rem; line-height: 1.7; }

@media (max-width: 991.98px) {
    .sw-detail-top { grid-template-columns: 1fr; }
    .sw-side { position: static; }
    .sw-hero-cover { height: 150px; }
    .sw-name { font-size: 1.35rem; }
    .sw-section { padding: 1.125rem 1.25rem; }
    .sw-rel-row { flex-direction: column; align-items: flex-start; gap: .625rem; }
}
/* ===== 软件详情页 END =====

/* ===== 软件购买 2026-11-03 ===== */
.sw-alert { border-radius: 14px; padding: .875rem 1rem; font-size: .85rem; font-weight: 600; margin-bottom: 16px; border: 1px solid transparent; line-height: 1.6; }
.sw-alert.err { background: #fff1f0; border-color: #ffd6d2; color: #b42318; }
.sw-alert.ok { background: #eafaf1; border-color: #c9ecd9; color: #0f8a56; }
.sw-buy-form { margin: 0; }
.sw-buy-form .sw-btn { width: 100%; }
.sw-owned { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: .75rem; font-size: .78rem; font-weight: 700; color: #0f8a56; background: #eafaf1; border-radius: 10px; padding: .5rem; }
.sw-owned svg { width: 14px; height: 14px; flex: none; }
.sw-owned-chip { flex: none; font-size: .68rem; font-weight: 800; color: #0f8a56; background: #eafaf1; border-radius: 999px; padding: 2px 8px; }
.sw-wallet { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: .75rem; font-size: .78rem; color: #4a5058; background: #f6f8fc; border-radius: 10px; padding: .5rem; }
.sw-wallet i { width: 3px; height: 3px; border-radius: 50%; background: #cfd4de; }
.sw-wallet-hint { margin-top: .5rem; text-align: center; font-size: .7rem; color: #9aa0ab; }
.sw-rel-lock { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: #f3f5f9; color: #aab1bd; }
.sw-rel-lock svg { width: 15px; height: 15px; }
/* ===== 软件购买 END =====

/* ===== 登录注册 2026-11-03 ===== */
.auth-wrap { position: relative; display: flex; align-items: center; justify-content: center; padding: 44px 16px 64px; min-height: 58vh; }
.auth-wrap::before { content: ""; position: absolute; inset: -40px 0 auto; height: 340px; background: radial-gradient(600px 220px at 70% 0, rgba(47,102,255,.13), transparent 70%), radial-gradient(500px 200px at 20% 0, rgba(111,203,161,.12), transparent 70%); pointer-events: none; }
.auth-card { position: relative; width: 100%; max-width: 420px; background: #fff; border: 1px solid #e7eaf1; border-radius: 20px; padding: 28px 26px 22px; box-shadow: 0 2px 4px rgba(24,27,33,.04), 0 24px 60px -28px rgba(24,27,33,.35); }
.auth-head { text-align: center; margin-bottom: 1.25rem; }
.auth-mark { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin: 0 auto .75rem; background: linear-gradient(135deg, #3a70ff, #7c92e8); color: #fff; box-shadow: 0 10px 22px -12px rgba(47,102,255,.95); }
.auth-mark svg { width: 22px; height: 22px; }
.auth-title { font-size: 1.35rem; font-weight: 800; margin: 0; color: #181b21; }
.auth-lede { margin: .375rem 0 0; font-size: .8rem; color: #858b95; line-height: 1.6; }
.auth-form { display: flex; flex-direction: column; gap: .875rem; margin-top: 1rem; }
.auth-field { display: flex; flex-direction: column; gap: .375rem; }
.auth-field label { font-size: .78rem; font-weight: 700; color: #4a5058; }
.auth-field input { height: 44px; border-radius: 12px; border: 1px solid #e7eaf1; background: #fbfcfe; padding: 0 .875rem; font: inherit; font-size: .875rem; color: #181b21; transition: border-color .2s, box-shadow .2s, background .2s; width: 100%; }
.auth-field input:focus { outline: 0; border-color: #2f66ff; background: #fff; box-shadow: 0 0 0 3px rgba(47,102,255,.12); }
.auth-hint { font-size: .7rem; color: #9aa0ab; }
.auth-remember { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: #4a5058; cursor: pointer; margin: .125rem 0; }
.auth-remember input { width: 15px; height: 15px; accent-color: #2f66ff; }
.auth-btn { height: 46px; border: 0; border-radius: 12px; background: linear-gradient(180deg, #3a70ff, #2f66ff); color: #fff; font-size: .9rem; font-weight: 800; font-family: inherit; cursor: pointer; box-shadow: 0 12px 24px -14px rgba(47,102,255,.95); transition: filter .2s, transform .2s; margin-top: .25rem; text-align: center; padding: 0; width: 100%; }
.auth-btn:hover { filter: brightness(1.06); }
.auth-btn:active { transform: translateY(1px); }
.auth-foot { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #f0f2f7; text-align: center; font-size: .8rem; color: #858b95; }
.auth-foot a { color: #2f66ff; font-weight: 700; text-decoration: none; margin-inline-start: .25rem; }
.auth-foot a:hover { text-decoration: underline; }
@media (max-width: 480px) {
    .auth-card { padding: 22px 18px 18px; border-radius: 18px; }
    .auth-wrap { padding-top: 24px; }
}
/* ===== 登录注册 END =====

/* ===== 软件封面/截图 2026-11-03 ===== */
.sw-cover.has-img { height: 132px; aspect-ratio: auto; background: #eef1f7; }
.sw-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.sw-cover.has-img::after { opacity: .12; }
.sw-hero-cover.has-img { height: 300px; background: #eef1f7; }
@media (max-width: 767px) { .sw-hero-cover.has-img { height: 200px; } }
.sw-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.sw-hero-cover.has-img::after { opacity: .1; }
.sw-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sw-shot { display: block; border: 1px solid #e7eaf1; border-radius: 12px; overflow: hidden; background: #f4f6fa; line-height: 0; transition: box-shadow .2s, transform .2s, border-color .2s; }
.sw-shot img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.sw-shot:hover { border-color: rgba(47,102,255,.35); box-shadow: 0 10px 24px -14px rgba(24,27,33,.45); transform: translateY(-1px); }
@media (max-width: 767px) { .sw-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
/* ===== 软件封面/截图 END =====
