@charset "utf-8";
/*
 * 手机端全局样式
 * 兼容 iOS 5 / 6；布局使用 float / inline-block / table。
 */

/* ==================================================================
 * 公共骨架与首页
 * ================================================================== */
/*
 * iOSIPA 手机端首页 · 公共样式
 * 目标：iOS 5 / 6 Safari 可用
 * 约束：不使用 flex / grid / CSS 变量 / calc / vw / vh / object-fit
 * 布局：float / inline-block / table / table-cell
 */

html, body {
    margin: 0;
    padding: 0;
}

body {
    /* 与电脑端一致：页面底色 #f5f5f7，内容卡片保持纯白 */
    background: #f5f5f7;
    color: #111827;
    font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    border: 0;
    vertical-align: middle;
}

h1, h2, h3, h4, p {
    margin: 0;
}

.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

.shell {
    width: 100%;
    max-width: 480px;
    min-height: 100%;
    margin: 0 auto;
    padding-bottom: 74px;
    background: #f5f5f7;
    position: relative;
    overflow-x: hidden;
}

.container {
    padding-left: 14px;
    padding-right: 14px;
}

.muted {
    color: #9ca3af;
}

.blue {
    color: #2563eb;
}

/* ------------------------------------------------------------------
 * 顶部栏
 * ------------------------------------------------------------------ */
.topbar {
    height: 54px;
    background: #ffffff;
    border-bottom: 1px solid #e4e7ee;
    padding: 0 14px;
    position: relative;
    z-index: 30;
}

.brand {
    float: left;
    display: block;
    height: 54px;
    line-height: 54px;
}

.brand img {
    width: 28px;
    height: 28px;
    margin: -3px 7px 0 0;
    border-radius: 7px;
}

.brand b {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.4px;
}

.brand em {
    font-style: normal;
    font-size: 12px;
    color: #9ca3af;
    margin-left: 5px;
    letter-spacing: 0.4px;
}

.top-actions {
    float: right;
    height: 54px;
    line-height: 54px;
    font-size: 0;
}

.top-actions a {
    display: inline-block;
    height: 54px;
    line-height: 54px;
    margin-left: 13px;
    font-size: 14px;
    color: #6b7280;
}

.top-actions .top-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    margin: 0 0 2px 4px;
    border-radius: 50%;
    background: #ef4444;
}

.top-icon {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    margin-top: 12px;
    border-radius: 50%;
    background: #eef2ff;
    color: #2563eb;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
}

/* ------------------------------------------------------------------
 * 搜索
 * ------------------------------------------------------------------ */
.search-link {
    display: block;
    height: 42px;
    line-height: 40px;
    padding: 0 12px;
    border: 1px solid #e3e7ee;
    border-radius: 10px;
    background: #ffffff;
    color: #9ca3af;
    font-size: 15px;
    position: relative;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.search-link .search-ico {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    margin-right: 5px;
    color: #6b7280;
    text-align: center;
    font-size: 16px;
    vertical-align: -1px;
}

.search-link .hot {
    float: right;
    height: 22px;
    line-height: 22px;
    margin-top: 8px;
    padding: 0 8px;
    border-radius: 11px;
    background: #eef4ff;
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
}

.search-form {
    display: block;
    height: 42px;
    padding: 0 10px;
    border: 1px solid #e3e7ee;
    border-radius: 10px;
    background: #ffffff;
    position: relative;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.search-form .search-ico {
    position: absolute;
    left: 10px;
    top: 0;
    width: 22px;
    height: 42px;
    line-height: 42px;
    color: #6b7280;
    text-align: center;
    font-size: 16px;
}

.search-form input {
    display: block;
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 0 0 0 24px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #111827;
    font-family: inherit;
    font-size: 15px;
    line-height: 40px;
    -webkit-appearance: none;
    border-radius: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.search-form input::-webkit-input-placeholder {
    color: #9ca3af;
}

/* ------------------------------------------------------------------
 * 问候 / 日期
 * ------------------------------------------------------------------ */
.greeting {
    padding-top: 16px;
    padding-bottom: 2px;
}

.greeting .date {
    font-size: 13.5px;
    color: #9ca3af;
    letter-spacing: 0.2px;
}

.greeting h1 {
    margin-top: 3px;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.7px;
}

.greeting h1 span {
    color: #2563eb;
}

.greeting .greet-note {
    margin-top: 4px;
    font-size: 14px;
    color: #6b7280;
}

/* ------------------------------------------------------------------
 * 快捷入口
 * ------------------------------------------------------------------ */
.quick {
    display: table;
    table-layout: fixed;
    width: 100%;
    margin: 14px 0 2px;
}

.quick-item {
    display: table-cell;
    width: 20%;
    text-align: center;
    vertical-align: top;
    font-size: 13.5px;
    color: #4b5563;
}

.quick-ico {
    display: block;
    width: 46px;
    height: 46px;
    line-height: 46px;
    margin: 0 auto 6px;
    border-radius: 14px;
    color: #ffffff;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}

.ico-game {
    background: #7c3aed;
    background-image: -webkit-linear-gradient(top, #8b5cf6, #6d28d9);
    background-image: linear-gradient(to bottom, #8b5cf6, #6d28d9);
}

.ico-soft {
    background: #2563eb;
    background-image: -webkit-linear-gradient(top, #3b82f6, #1d4ed8);
    background-image: linear-gradient(to bottom, #3b82f6, #1d4ed8);
}

.ico-aisi {
    background: #0d9488;
    background-image: -webkit-linear-gradient(top, #14b8a6, #0f766e);
    background-image: linear-gradient(to bottom, #14b8a6, #0f766e);
}

.ico-forum {
    background: #ea580c;
    background-image: -webkit-linear-gradient(top, #fb923c, #ea580c);
    background-image: linear-gradient(to bottom, #fb923c, #ea580c);
}

.ico-collection {
    background: #db2777;
    background-image: -webkit-linear-gradient(top, #ec4899, #be185d);
    background-image: linear-gradient(to bottom, #ec4899, #be185d);
}

/* ------------------------------------------------------------------
 * 通用卡片 / 分区标题
 * ------------------------------------------------------------------ */
.card {
    background: #ffffff;
    border: 1px solid #eef0f5;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.pad {
    padding: 14px;
}

.sec {
    margin-top: 18px;
}

.sec-head {
    height: 25px;
    line-height: 25px;
    margin-bottom: 10px;
}

.sec-head h2 {
    float: left;
    font-size: 18px;
    line-height: 25px;
    font-weight: 800;
    letter-spacing: -0.4px;
}

.sec-head .more {
    float: right;
    font-size: 14px;
    line-height: 25px;
    color: #2563eb;
}

.sec-head h2 .fa {
    margin-right: 6px;
    color: #2563eb;
    font-size: 15px;
    line-height: 25px;
    vertical-align: 0;
}

/* ------------------------------------------------------------------
 * Hero / 精选大图
 * ------------------------------------------------------------------ */
.hero {
    display: block;
    position: relative;
    height: 198px;
    margin-top: 14px;
    border-radius: 14px;
    overflow: hidden;
    background-color: #111827;
    background-position: center center;
    background-repeat: no-repeat;
    -webkit-background-size: cover;
    background-size: cover;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
}

.hero-mask {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 12, 28, 0.52);
    background-image: -webkit-linear-gradient(left, rgba(8, 12, 28, 0.9) 0%, rgba(8, 12, 28, 0.38) 60%, rgba(8, 12, 28, 0.12) 100%);
    background-image: linear-gradient(to right, rgba(8, 12, 28, 0.9) 0%, rgba(8, 12, 28, 0.38) 60%, rgba(8, 12, 28, 0.12) 100%);
    border-radius: inherit;
}

.hero-text {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 15px;
    color: #ffffff;
}

.hero-eyebrow {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.hero h2 {
    margin-top: 7px;
    font-size: 23px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.6px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.hero p {
    margin-top: 5px;
    font-size: 13.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.84);
}

.hero-btn {
    display: inline-block;
    margin-top: 9px;
    padding: 5px 13px;
    border-radius: 13px;
    background: #ffffff;
    color: #2563eb;
    font-size: 13.5px;
    line-height: 16px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.hero-icons {
    position: absolute;
    right: 12px;
    bottom: 12px;
    font-size: 0;
}

.hero-icons img {
    width: 42px;
    height: 42px;
    margin-left: -8px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
}

.hero-icons img:first-child {
    margin-left: 0;
}

/* ------------------------------------------------------------------
 * 两列应用网格
 * ------------------------------------------------------------------ */
.grid {
    margin-left: -5px;
    margin-right: -5px;
    font-size: 0;
}

.grid-item {
    display: inline-block;
    width: 50%;
    padding: 0 5px 10px;
    vertical-align: top;
    font-size: 15px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.app-card {
    display: block;
    min-height: 74px;
    padding: 10px;
    border-radius: 10px;
    background: #ffffff;
    position: relative;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.app-card .app-icon {
    float: left;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #eef2ff;
}

.app-card .app-info {
    margin-left: 61px;
    min-height: 52px;
    padding-right: 2px;
}

.app-card h3 {
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-card .app-ver {
    margin-top: 2px;
    font-size: 13px;
    line-height: 1.3;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
}

.app-card .app-meta {
    margin-top: 5px;
    font-size: 13px;
    line-height: 1.3;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
}

.app-card .app-get {
    position: absolute;
    right: 9px;
    bottom: 9px;
    padding: 3px 10px;
    border-radius: 11px;
    background: #eef2ff;
    color: #2563eb;
    font-size: 13px;
    line-height: 16px;
    font-weight: 700;
}

/* ------------------------------------------------------------------
 * 列表行（最新更新 / 排行）
 * ------------------------------------------------------------------ */
.row {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #e4e7ee;
    position: relative;
    overflow: hidden;
}

.row:last-child {
    border-bottom: 0;
}

.row .row-icon {
    float: left;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #eef2ff;
}

.row .row-body {
    margin-left: 61px;
    margin-right: 66px;
    min-height: 50px;
}

.row h3 {
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.row h3 .row-ver {
    margin-left: 5px;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 400;
    vertical-align: 1px;
}

.row .row-sub {
    margin-top: 4px;
    font-size: 12.5px;
    line-height: 1.4;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
}

.row .row-sub .pill {
    font-size: 11.5px;
}

.row .row-act {
    position: absolute;
    right: 0;
    top: 50%;
    display: block;
    margin-top: -12px;
    font-size: 0;
    line-height: 0;
}

.btn-get {
    display: inline-block;
    padding: 4px 13px;
    border-radius: 13px;
    background: #eef2ff;
    color: #2563eb;
    font-size: 13.5px;
    line-height: 16px;
    font-weight: 700;
    vertical-align: top;
}

.btn-get.primary {
    background: #2563eb;
    color: #ffffff;
}

/* 排行榜 */
.rank-row {
    display: block;
    padding: 9px 0;
    border-bottom: 1px solid #e4e7ee;
    position: relative;
    overflow: hidden;
}

.rank-row:last-child {
    border-bottom: 0;
}

.rank-no {
    float: left;
    width: 22px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    color: #cbd5e1;
}

.rank-no.no-1 {
    color: #f43f5e;
}

.rank-no.no-2 {
    color: #f97316;
}

.rank-no.no-3 {
    color: #f59e0b;
}

.rank-row .rank-icon {
    float: left;
    width: 44px;
    height: 44px;
    margin-left: 3px;
    border-radius: 10px;
    background: #eef2ff;
}

.rank-row .rank-body {
    margin-left: 78px;
    margin-right: 56px;
    min-height: 44px;
}

.rank-row h3 {
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-top: 2px;
}

.rank-row .rank-sub {
    margin-top: 3px;
    font-size: 13px;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
}

.rank-row .rank-act {
    position: absolute;
    right: 0;
    top: 50%;
    display: block;
    margin-top: -10.5px;
    padding: 3px 10px;
    border-radius: 11px;
    background: #f5f6fa;
    color: #6b7280;
    font-size: 13px;
    line-height: 15px;
    font-weight: 700;
}

/* ------------------------------------------------------------------
 * Tabs
 * ------------------------------------------------------------------ */
.tabs {
    float: right;
    display: inline-block;
    margin-top: 1px;
    padding: 2px;
    border-radius: 8px;
    background: #eef0f5;
    font-size: 0;
    line-height: 0;
}

.tab {
    display: inline-block;
    height: 19px;
    padding: 0 10px;
    border-radius: 6px;
    color: #6b7280;
    font-size: 13.5px;
    line-height: 19px;
    vertical-align: top;
}

.tab.on {
    background: #ffffff;
    color: #111827;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
}

.tab-panel {
    display: none;
}

.tab-panel.on {
    display: block;
}

/* ------------------------------------------------------------------
 * 社区热议
 * ------------------------------------------------------------------ */
.topic-row {
    display: block;
    padding: 11px 0;
    border-top: 1px solid #e4e7ee;
    position: relative;
    overflow: hidden;
}

.topic-row:first-child {
    border-top: 0;
}

.topic-no {
    position: absolute;
    left: 0;
    top: 50%;
    margin-top: -10px;
    width: 24px;
    color: #cbd5e1;
    font-size: 13.5px;
    line-height: 20px;
    font-weight: 800;
}

.topic-arrow {
    position: absolute;
    right: 0;
    top: 50%;
    margin-top: -10px;
    color: #cbd5e1;
    font-size: 17px;
    line-height: 20px;
}

.topic-body {
    display: block;
    margin-left: 27px;
    margin-right: 14px;
}

.topic-title {
    display: block;
    color: #374151;
    font-size: 15.5px;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topic-meta {
    display: block;
    margin-top: 3px;
    color: #9ca3af;
    font-size: 13px;
    line-height: 1.4;
}

/* ------------------------------------------------------------------
 * 用户点评
 * ------------------------------------------------------------------ */
.review-item {
    padding: 14px 0 13px;
    border-bottom: 1px solid #e4e7ee;
    overflow: hidden;
}

.review-item:last-child {
    padding-bottom: 4px;
    border-bottom: 0;
}

.review-head {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.review-who {
    display: table-cell;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-ava {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 5px;
    border-radius: 50%;
    background: #f1f3f7;
    vertical-align: middle;
}

.review-name {
    display: inline-block;
    color: #111827;
    font-size: 15.5px;
    line-height: 18px;
    font-weight: 600;
    vertical-align: middle;
}

.review-dot {
    display: inline-block;
    margin: 0 4px;
    color: #d1d5db;
    font-size: 13px;
    line-height: 18px;
    vertical-align: middle;
}

.review-app {
    display: inline;
    color: #2563eb;
    font-size: 13.5px;
    line-height: 18px;
    vertical-align: middle;
}

.review-app-ico {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 4px;
    border-radius: 4px;
    background: #eef2ff;
    vertical-align: -3px;
}

.review-app .fa {
    margin-right: 4px;
    font-size: 12px;
}

.review-rate {
    display: table-cell;
    width: 104px;
    vertical-align: middle;
    text-align: right;
    white-space: nowrap;
}

.review-stars {
    display: inline-block;
    color: #f59e0b;
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0.2px;
    vertical-align: middle;
}

.review-score {
    display: inline-block;
    margin-left: 4px;
    color: #111827;
    font-size: 15px;
    line-height: 18px;
    font-weight: 700;
    vertical-align: middle;
}

.review-text {
    margin-top: 10px;
    color: #1f2937;
    font-size: 15.5px;
    line-height: 1.75;
}

/* ------------------------------------------------------------------
 * 提示条 / 社区大图
 * ------------------------------------------------------------------ */
.notice {
    margin-top: 14px;
    padding: 11px 13px;
    border: 1px solid #dbe7ff;
    border-radius: 10px;
    background: #eef4ff;
    color: #3157b7;
    font-size: 14px;
    line-height: 1.65;
}

.notice b {
    color: #1d4ed8;
}

.community-card {
    display: block;
    position: relative;
    height: 132px;
    margin-top: 14px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #dff5ea;
    background-position: center center;
    background-repeat: no-repeat;
    -webkit-background-size: cover;
    background-size: cover;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.community-card .community-mask {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 30, 20, 0.28);
    background-image: -webkit-linear-gradient(left, rgba(6, 30, 20, 0.78), rgba(6, 30, 20, 0.08));
    background-image: linear-gradient(to right, rgba(6, 30, 20, 0.78), rgba(6, 30, 20, 0.08));
    border-radius: inherit;
}

.community-card .community-text {
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 15px;
    color: #ffffff;
}

.community-card h3 {
    font-size: 20px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.4px;
}

.community-card p {
    margin-top: 5px;
    font-size: 13.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.86);
}

.community-card .community-btn {
    position: absolute;
    right: 0;
    top: 50%;
    margin-top: -13px;
    padding: 4px 12px;
    border-radius: 13px;
    background: #ffffff;
    color: #0f766e;
    font-size: 13.5px;
    line-height: 18px;
    font-weight: 700;
}

/* ------------------------------------------------------------------
 * 横向滚动
 * ------------------------------------------------------------------ */
.hscroll {
    margin-left: -14px;
    margin-right: -14px;
    padding: 0 14px 5px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    font-size: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hscroll::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.hcard {
    display: inline-block;
    width: 250px;
    height: 148px;
    margin-right: 10px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    vertical-align: top;
    white-space: normal;
    background-color: #1f2937;
    background-position: center center;
    background-repeat: no-repeat;
    -webkit-background-size: cover;
    background-size: cover;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.13);
}

.hcard:last-child {
    margin-right: 0;
}

.hcard-mask {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 12, 28, 0.28);
    background-image: -webkit-linear-gradient(top, rgba(8, 12, 28, 0.05), rgba(8, 12, 28, 0.82));
    background-image: linear-gradient(to bottom, rgba(8, 12, 28, 0.05), rgba(8, 12, 28, 0.82));
    border-radius: inherit;
}

.hcard-text {
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 12px;
    color: #ffffff;
}

.hcard-text .hcard-kicker {
    font-size: 12px;
    line-height: 14px;
    letter-spacing: 0.7px;
    color: rgba(255, 255, 255, 0.78);
}

.hcard-text h3 {
    display: -webkit-box;
    margin-top: 2px;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.4px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hcard-text p {
    display: -webkit-box;
    margin-top: 3px;
    font-size: 11.5px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.8);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ------------------------------------------------------------------
 * 筛选 chips
 * ------------------------------------------------------------------ */
.chips {
    margin-left: -14px;
    margin-right: -14px;
    padding: 0 14px 4px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    font-size: 0;
}

.chip {
    display: inline-block;
    margin-right: 7px;
    padding: 5px 12px;
    border: 1px solid #e3e7ee;
    border-radius: 15px;
    background: #ffffff;
    color: #6b7280;
    font-size: 14px;
    line-height: 18px;
}

.chip.on {
    border-color: #2563eb;
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
}

/* ------------------------------------------------------------------
 * 数据条 / 分类
 * ------------------------------------------------------------------ */
.stats {
    display: table;
    table-layout: fixed;
    width: 100%;
    margin-top: 12px;
    padding: 11px 0;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.stat {
    display: table-cell;
    text-align: center;
    border-right: 1px solid #e4e7ee;
}

.stat:last-child {
    border-right: 0;
}

.stat b {
    display: block;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 800;
    color: #111827;
}

.stat span {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #9ca3af;
}

.cat-grid {
    margin-left: -4px;
    margin-right: -4px;
    font-size: 0;
}

.cat {
    display: inline-block;
    width: 33.3333%;
    padding: 0 4px 8px;
    vertical-align: top;
    font-size: 14px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.cat-in {
    display: block;
    padding: 11px 5px;
    border-radius: 10px;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.cat-ico {
    display: block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    margin: 0 auto 5px;
    border-radius: 9px;
    color: #ffffff;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
}

.cat-name {
    display: block;
    font-size: 13.5px;
    line-height: 1.4;
    color: #4b5563;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ------------------------------------------------------------------
 * 页脚 / 底部导航
 * ------------------------------------------------------------------ */
.footer {
    padding: 6px 14px 8px;
    text-align: center;
    font-size: 13px;
    line-height: 1.9;
    color: #9ca3af;
}

.footer a {
    color: #9ca3af;
}

/* 320px 老设备：备案号一行放不下时缩小一号，避免号码被折行拆开 */
@media screen and (max-width: 360px) {
    .footer {
        font-size: 12px;
    }
}

.bottom-nav {
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 100;
    width: 100%;
    height: 55px;
    background: #ffffff;
    border-top: 1px solid #e4e7ee;
    -webkit-box-shadow: 0 -1px 8px rgba(15, 23, 42, 0.04);
    box-shadow: 0 -1px 8px rgba(15, 23, 42, 0.04);
}

/* 白色底条铺满屏幕，四个入口限制在 480px 内居中（iPad 两侧留白） */
.bottom-nav-inner {
    width: 100%;
    max-width: 480px;
    height: 55px;
    margin: 0 auto;
    overflow: hidden;
}

.bottom-nav a {
    position: relative;
    float: left;
    width: 25%;
    height: 55px;
    padding: 7px 0 8px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
    line-height: 1.3;
}

/* 底部导航角标：数字徽标，定位在图标右上角 */
.nav-badge {
    position: absolute;
    z-index: 2;
    top: 2px;
    left: 50%;
    margin-left: 3px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    box-sizing: border-box;
    border-radius: 8px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
    white-space: nowrap;
}

.bottom-nav a.on {
    color: #2563eb;
}

.nav-ico {
    display: block;
    height: 23px;
    line-height: 23px;
    font-size: 19px;
    font-weight: 400;
}

/* ------------------------------------------------------------------
 * 通用小工具
 * ------------------------------------------------------------------ */
.mt-10 {
    margin-top: 10px;
}

.mt-14 {
    margin-top: 14px;
}

.mt-18 {
    margin-top: 18px;
}

.text-center {
    text-align: center;
}

.divider {
    height: 1px;
    background: #eef0f5;
    margin: 14px 0;
}

.pill {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 13px;
    line-height: 16px;
}

.pill.blue {
    background: #eef2ff;
    color: #2563eb;
}

.pill.green {
    background: #e9f9ef;
    color: #16a34a;
}

.pill.orange {
    background: #fff4e6;
    color: #ea580c;
}

@media screen and (max-width: 350px) {
    .greeting h1 {
        font-size: 22px;
    }

    .hero {
        height: 184px;
    }

    .hero h2 {
        font-size: 21px;
    }

    .hero-icons img {
        width: 38px;
        height: 38px;
    }

    .hcard {
        width: 232px;
    }

    .app-card .app-icon {
        width: 46px;
        height: 46px;
    }

    .app-card .app-info {
        margin-left: 54px;
    }

    .app-card h3 {
        font-size: 14px;
    }

    .row .row-icon {
        width: 46px;
        height: 46px;
    }

    .row .row-body {
        margin-left: 56px;
        margin-right: 60px;
    }

    .row h3 {
        font-size: 15px;
    }
}

/* 手机端首页专属样式：内容杂志式 */
        /* 顶部日期 + 问候 */
        .page-head {
            padding-top: 14px;
        }

        .top-date {
            font-size: 13.5px;
            line-height: 1.6;
            color: #9ca3af;
            letter-spacing: 0.2px;
        }

        .top-greeting {
            margin-top: 5px;
        }

        .top-title {
            font-size: 28px;
            line-height: 38px;
            font-weight: 800;
            letter-spacing: -0.9px;
            color: #111827;
        }


        .nav-ico .fa {
            font-size: 19px;
            line-height: 23px;
        }

        .b-hero {
            display: block;
            height: 238px;
            margin-top: 14px;
            border-radius: 14px;
            overflow: hidden;
            position: relative;
            background-color: #111827;
            background-position: center center;
            background-repeat: no-repeat;
            -webkit-background-size: cover;
            background-size: cover;
            box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
        }

        .b-hero-mask {
            position: absolute;
            left: 0;
            top: 0;
            right: 0;
            bottom: 0;
            background: rgba(6, 10, 24, 0.48);
            background-image: -webkit-linear-gradient(bottom, rgba(6, 10, 24, 0.9) 0%, rgba(6, 10, 24, 0.42) 55%, rgba(6, 10, 24, 0.08) 100%);
            background-image: linear-gradient(to top, rgba(6, 10, 24, 0.9) 0%, rgba(6, 10, 24, 0.42) 55%, rgba(6, 10, 24, 0.08) 100%);
    border-radius: inherit;
}

        .b-hero-content {
            position: absolute;
            left: 17px;
            right: 17px;
            bottom: 16px;
            color: #ffffff;
        }

        .b-kicker {
            display: inline-block;
            padding: 2px 7px;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.18);
            color: #ffffff;
            font-size: 12px;
            line-height: 16px;
            letter-spacing: 0.7px;
        }

        .b-hero h1 {
            margin-top: 8px;
            font-size: 27px;
            line-height: 1.18;
            font-weight: 800;
            letter-spacing: -0.8px;
            text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
        }

        .b-hero p {
            margin-top: 7px;
            font-size: 12.5px;
            line-height: 1.6;
            color: rgba(255, 255, 255, 0.82);
        }

        .b-hero-meta {
            display: inline-block;
            margin-top: 9px;
            padding: 4px 10px;
            border: 1px solid rgba(255, 255, 255, 0.38);
            border-radius: 12px;
            color: #ffffff;
            font-size: 11.5px;
            line-height: 15px;
        }

        .b-hcard-collection {
            background-color: #111827;
        }


        .b-update-card {
            padding: 2px 14px 4px;
        }

        .b-update-card .row-sub .pill {
            margin-right: 4px;
        }

        .b-rank-card {
            padding: 0 14px 4px;
        }

        .b-post-card {
            padding: 2px 14px 4px;
        }

        .b-review-card {
            padding: 2px 14px 4px;
        }

        .community-card.qq {
            background-image: url('/static/mobile/images/group.jpg');
        }

        /* 窄屏：文字块右侧留出按钮宽度，避免正文压到按钮 */
        .community-card .community-text {
            padding-right: 82px;
        }

        @media screen and (max-width: 350px) {
            .community-card p {
                font-size: 13px;
            }
        }

        /* 320px 老设备：更新列表允许副标题换行，避免体积和时间被截断 */
        @media screen and (max-width: 360px) {
            .b-update-card .row {
                padding: 9px 0;
            }

            .b-update-card .row .row-body {
                margin-left: 57px;
                margin-right: 48px;
            }

            .b-update-card .row .row-sub {
                font-size: 11px;
                line-height: 1.45;
            }

            .b-update-card .row .row-sub .pill {
                margin-right: 1px;
            }

        }

/* ==================================================================
 * 发现页
 * 依赖公共骨架：shell / container / page-head / top-title / sec /
 * sec-head / hscroll / hcard / app-grid / bottom-nav 等
 * ================================================================== */
/* ------------------------------------------------------------------
 * 页面标题：顶部距离与首页「傍晚好」对齐（14 + 日期行 17.6 + 5 = 36.6）
 * ------------------------------------------------------------------ */
.page-head.discover-head {
    padding-top: 37px;
}

/* 「查看全部 / 全部合集 / 去看看」统一用箭头图标，不用文本 › */
.feed-more .fa,
.sec-head .more .fa {
    margin-left: 3px;
    font-size: 14px;
    line-height: 1;
    vertical-align: -1px;
}

.aisi-btn .fa {
    margin-left: 2px;
    font-size: 12.5px;
    line-height: 1;
    vertical-align: -1px;
}

/* ------------------------------------------------------------------
 * 爱思正版入口
 * ------------------------------------------------------------------ */
.aisi-entry {
    display: block;
    position: relative;
    height: 162px;
    margin-top: 14px;
    border-radius: 14px;
    overflow: hidden;
    background-color: #1f6f80;
    background-image: url('/static/mobile/images/i4.png');
    background-position: center center;
    background-repeat: no-repeat;
    -webkit-background-size: cover;
    background-size: cover;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
}

.aisi-entry .aisi-mask {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 30, 40, 0.30);
    background-image: -webkit-linear-gradient(left, rgba(6, 30, 40, 0.76), rgba(6, 30, 40, 0.06));
    background-image: linear-gradient(to right, rgba(6, 30, 40, 0.76), rgba(6, 30, 40, 0.06));
    border-radius: inherit;
}

.aisi-entry .aisi-text {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    color: #ffffff;
}

.aisi-kicker {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.7px;
}

.aisi-entry h3 {
    margin-top: 8px;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.6px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.aisi-entry p {
    margin-top: 5px;
    font-size: 12.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.86);
}

.aisi-btn {
    display: inline-block;
    margin-top: 9px;
    padding: 4px 11px;
    border-radius: 12px;
    background: #ffffff;
    color: #0f5f6e;
    font-size: 13px;
    line-height: 16px;
    font-weight: 700;
}

/* ------------------------------------------------------------------
 * 分类图标底座 + 21 个分类配色（与后台分类颜色一致）
 * 配色选择器重复一次 class 提高优先级，元素上只写一次 class 名即可使用
 * ------------------------------------------------------------------ */
.cat-ico {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    text-align: center;
    vertical-align: middle;
    font-size: 18px;
    line-height: 40px;
}

.cat-ico-1.cat-ico-1 {
    background: #fef3c7;
    color: #f59e0b;
}

.cat-ico-2.cat-ico-2 {
    background: #fee2e2;
    color: #ef4444;
}

.cat-ico-3.cat-ico-3 {
    background: #ede9fe;
    color: #8b5cf6;
}

.cat-ico-4.cat-ico-4 {
    background: #ffedd5;
    color: #f97316;
}

.cat-ico-5.cat-ico-5 {
    background: #d1fae5;
    color: #10b981;
}

.cat-ico-6.cat-ico-6 {
    background: #dbeafe;
    color: #3b82f6;
}

.cat-ico-7.cat-ico-7 {
    background: #cffafe;
    color: #06b6d4;
}

.cat-ico-8.cat-ico-8 {
    background: #fce7f3;
    color: #ec4899;
}

.cat-ico-9.cat-ico-9 {
    background: #ccfbf1;
    color: #14b8a6;
}

.cat-ico-10.cat-ico-10 {
    background: #f3e8ff;
    color: #a855f7;
}

.cat-ico-11.cat-ico-11 {
    background: #e0f2fe;
    color: #0ea5e9;
}

.cat-ico-12.cat-ico-12 {
    background: #dcfce7;
    color: #22c55e;
}

.cat-ico-13.cat-ico-13 {
    background: #ffe4e6;
    color: #f43f5e;
}

.cat-ico-14.cat-ico-14 {
    background: #e0e7ff;
    color: #6366f1;
}

.cat-ico-15.cat-ico-15 {
    background: #fae8ff;
    color: #d946ef;
}

.cat-ico-16.cat-ico-16 {
    background: #ecfccb;
    color: #84cc16;
}

.cat-ico-17.cat-ico-17 {
    background: #ffedd5;
    color: #fb923c;
}

.cat-ico-18.cat-ico-18 {
    background: #fef9c3;
    color: #eab308;
}

.cat-ico-19.cat-ico-19 {
    background: #ede9fe;
    color: #7c3aed;
}

.cat-ico-20.cat-ico-20 {
    background: #ffe4e6;
    color: #e11d48;
}

.cat-ico-21.cat-ico-21 {
    background: #cffafe;
    color: #0891b2;
}

.cat-ico-all {
    background: #eff6ff;
    color: #2563eb;
}

/* ------------------------------------------------------------------
 * 分类信息流：分类标题 + 两列应用卡
 * ------------------------------------------------------------------ */
.feed-head {
    height: 26px;
    margin-bottom: 11px;
}

.feed-accent {
    float: left;
    width: 4px;
    height: 16px;
    margin: 5px 8px 0 0;
    border-radius: 2px;
}

.feed-head h2 {
    float: left;
    font-size: 16px;
    font-weight: 800;
    line-height: 26px;
    letter-spacing: -0.3px;
    color: #111827;
}

.feed-head h2 em {
    margin-left: 7px;
    font-style: normal;
    font-size: 13px;
    font-weight: 400;
    color: #9ca3af;
}

.feed-more {
    float: right;
    font-size: 13.5px;
    line-height: 26px;
    color: #2563eb;
}

.app-grid {
    overflow: hidden;
}

.app-tile {
    float: left;
    width: 50%;
    padding-bottom: 9px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.app-tile:nth-child(odd) {
    padding-right: 4px;
}

.app-tile:nth-child(even) {
    padding-left: 4px;
}

.app-tile-in {
    display: table;
    table-layout: fixed;
    width: 100%;
    padding: 10px;
    border: 1px solid #eef0f5;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.app-tile-ico {
    display: table-cell;
    width: 40px;
    vertical-align: middle;
}

.app-tile-ico img {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #eef2ff;
}

.app-tile-txt {
    display: table-cell;
    vertical-align: middle;
    padding-left: 8px;
}

.app-tile-name {
    display: block;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-tile-name em {
    margin-left: 3px;
    font-style: normal;
    font-size: 12.5px;
    font-weight: 400;
    color: #9ca3af;
}

.app-tile-meta {
    display: block;
    margin-top: 3px;
    font-size: 11.5px;
    line-height: 1.3;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ------------------------------------------------------------------
 * 不展开的分类：马赛克入口
 * ------------------------------------------------------------------ */
/* 马赛克栅格：3 列 × 2 行，绝对定位（iOS 5/6 下最稳）
 * 列宽 1/3 与 2/3；行高 110 = 卡 102 + 间距 8
 * 宽卡占 2 列；高卡占 2 行；两张半高卡叠成 1 格
 * 容器右侧负边距 8px 抵消最后一张卡的右内边距，使右边缘与页面其他内容对齐 */
.masonry {
    position: relative;
    margin-right: -8px;
}

.mh1 {
    height: 110px;
}

.mh2 {
    height: 220px;
}

.m-item {
    position: absolute;
    padding-right: 8px;
    padding-bottom: 8px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.mw1 {
    width: 33.333%;
}

.mw2 {
    width: 66.666%;
}

/* 单张铺满一行（分类数量收尾时使用） */
.mw3 {
    width: 100%;
}

/* 列 0 / 1 / 2，行 0 / 1 */
.mc0 {
    left: 0;
}

.mc1 {
    left: 33.333%;
}

.mc2 {
    left: 66.666%;
}

.mr0 {
    top: 0;
}

.mr1 {
    top: 110px;
}

/* 两张半高卡叠成一格 */
.m-stack .m-4 + .m-4 {
    margin-top: 8px;
}

.m-card {
    display: block;
    position: relative;
    border: 1px solid #eef0f5;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.m-ico {
    display: block;
    border-radius: 12px;
    text-align: center;
}

/* 1 格：竖排图标卡 */
.m-1 {
    height: 102px;
    padding: 11px 6px 0;
    text-align: center;
}

.m-1 .m-ico {
    width: 42px;
    height: 42px;
    margin: 0 auto;
    font-size: 19px;
    line-height: 42px;
}

.m-1 .m-name {
    display: block;
    margin-top: 9px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-1 .m-count {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.25;
    color: #9ca3af;
}

/* 宽卡：2 列，横排 */
.m-2 {
    display: table;
    table-layout: fixed;
    width: 100%;
    height: 102px;
}

.m-2 .m-cell-ico {
    display: table-cell;
    width: 46px;
    padding-left: 13px;
    vertical-align: middle;
}

.m-2 .m-ico {
    width: 46px;
    height: 46px;
    font-size: 20px;
    line-height: 46px;
}

.m-2 .m-cell-txt {
    display: table-cell;
    padding-left: 11px;
    vertical-align: middle;
}

.m-2 .m-name {
    display: block;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.3px;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-2 .m-count {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    line-height: 1.2;
    color: #9ca3af;
}

.m-2 .m-cell-go {
    display: table-cell;
    width: 36px;
    padding-right: 12px;
    vertical-align: middle;
    text-align: right;
}

.m-go-ico {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 14px;
    line-height: 24px;
    text-align: center;
}

/* 高卡：1 列 × 2 行 */
.m-3 {
    height: 212px;
    padding: 24px 8px 0;
    text-align: center;
}

.m-3 .m-kicker {
    display: block;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.8px;
    color: #9ca3af;
}

.m-3 .m-ico {
    width: 58px;
    height: 58px;
    margin: 14px auto 0;
    font-size: 25px;
    line-height: 58px;
}

.m-3 .m-name {
    display: block;
    margin-top: 14px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-3 .m-count {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.25;
    color: #9ca3af;
}

.m-3 .m-go {
    position: absolute;
    left: 50%;
    bottom: 16px;
    width: 66px;
    height: 24px;
    margin-left: -33px;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
}

.m-3 .m-go .fa {
    margin-left: 2px;
    font-size: 12.5px;
}

/* 半高卡：1 格高度的一半，横排 */
.m-4 {
    display: table;
    table-layout: fixed;
    width: 100%;
    height: 47px;
}

.m-4 .m-cell-ico {
    display: table-cell;
    width: 26px;
    padding-left: 8px;
    vertical-align: middle;
}

.m-4 .m-ico {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 26px;
}

.m-4 .m-cell-txt {
    display: table-cell;
    padding: 0 6px 0 7px;
    vertical-align: middle;
}

.m-4 .m-name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-4 .m-count {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.2;
    color: #9ca3af;
}

/* ------------------------------------------------------------------
 * 小屏适配（<=350px，与 home.css 断点一致）
 * ------------------------------------------------------------------ */
@media screen and (max-width: 350px) {
    .aisi-entry {
        height: 148px;
    }

    .app-tile-in {
        padding: 9px;
    }

    .app-tile-ico {
        width: 38px;
    }

    .app-tile-ico img {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .app-tile-txt {
        padding-left: 8px;
    }

    .app-tile-name {
        font-size: 14px;
    }

    .app-tile-name em {
        font-size: 11.5px;
    }

    .app-tile-meta {
        font-size: 11px;
    }

    .mh1 {
        height: 105px;
    }

    .mh2 {
        height: 210px;
    }

    .mr1 {
        top: 105px;
    }

    .m-1 {
        height: 97px;
        padding-top: 12px;
    }

    .m-1 .m-ico {
        width: 38px;
        height: 38px;
        font-size: 17px;
        line-height: 38px;
    }

    .m-1 .m-name {
        margin-top: 8px;
        font-size: 13.5px;
    }

    .m-2 {
        height: 97px;
    }

    .m-2 .m-cell-ico {
        width: 42px;
        padding-left: 10px;
    }

    .m-2 .m-ico {
        width: 42px;
        height: 42px;
        font-size: 18px;
        line-height: 42px;
    }

    .m-2 .m-name {
        font-size: 15px;
    }

    .m-2 .m-cell-go {
        width: 32px;
        padding-right: 9px;
    }

    .m-3 {
        height: 202px;
        padding-top: 22px;
    }

    .m-3 .m-kicker {
        font-size: 11px;
        line-height: 15px;
    }

    .m-3 .m-ico {
        width: 52px;
        height: 52px;
        margin-top: 12px;
        font-size: 22px;
        line-height: 52px;
    }

    .m-3 .m-name {
        margin-top: 12px;
        font-size: 15px;
    }

    .m-4 {
        height: 44.5px;
    }

    .m-4 .m-cell-ico {
        width: 24px;
        padding-left: 7px;
    }

    .m-4 .m-ico {
        width: 24px;
        height: 24px;
        border-radius: 7px;
        font-size: 13.5px;
        line-height: 24px;
    }

    .m-4 .m-name {
        font-size: 12px;
    }

    .m-4 .m-count {
        font-size: 11px;
    }
}


/* ==================================================================
 * 论坛首页
 * ================================================================== */

/* ==================================================================
 * 论坛首页（移动端）· 双列瀑布流：公告条 + 双列不等高卡片
 * 依赖全局公共骨架：shell / container / page-head / top-title /
 * pd-user / hscroll / sec / sec-head / bottom-nav / clearfix
 * 兼容 iOS 5/6：不使用 flex、grid、CSS 变量、calc、vw/vh
 * ================================================================== */

/* 公共部分：标题 / 搜索 / 发帖 / 板块胶囊 / 板块色块 / 角标 / 头像 / 更多
 * ------------------------------------------------------------------ */

/* 页面标题：顶部距离与首页「傍晚好」对齐（14 + 17.6 + 5 ≈ 37） */
.page-head.forum-head {
    padding-top: 37px;
}

/* ------------------------------------------------------------------
 * 搜索框 + 发帖按钮
 * ------------------------------------------------------------------ */
.f-tools {
    margin-top: 14px;
    height: 38px;
}

.f-post {
    float: right;
    width: 70px;
    height: 38px;
    border-radius: 19px;
    background: #2563eb;
    background-image: -webkit-linear-gradient(top, #3b82f6, #1d4ed8);
    background-image: linear-gradient(to bottom, #3b82f6, #1d4ed8);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    line-height: 38px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.22);
}

.f-post .fa {
    margin-right: 4px;
    font-size: 13px;
}

.f-search {
    display: block;
    height: 38px;
    margin-right: 76px;
    padding: 0 14px;
    border: 1px solid #eef0f5;
    border-radius: 19px;
    background: #f7f9fc;
    color: #9ca3af;
    font-size: 14px;
    line-height: 36px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.f-search .fa {
    margin-right: 7px;
    font-size: 14px;
    color: #a6aeba;
}

/* ------------------------------------------------------------------
 * 板块胶囊（横向滚动，容器复用全局 .hscroll）
 * ------------------------------------------------------------------ */
.f-chips {
    margin-top: 14px;
}

.f-chip {
    display: inline-block;
    height: 30px;
    padding: 0 13px;
    margin-right: 7px;
    border: 1px solid #eef0f5;
    border-radius: 15px;
    background: #ffffff;
    color: #4b5563;
    font-size: 14px;
    font-weight: 600;
    line-height: 30px;
    vertical-align: top;
}

.f-chip.on {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
}

/* ------------------------------------------------------------------
 * 板块色块 / 角标 / 头像 / 更多按钮
 * ------------------------------------------------------------------ */
.sec-ico {
    display: inline-block;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 15px;
    text-align: center;
    line-height: 34px;
    vertical-align: middle;
}

.sec-1 { background: #eff6ff; color: #3b82f6; }
.sec-2 { background: #fef2f2; color: #ef4444; }
.sec-3 { background: #fffbeb; color: #f59e0b; }
.sec-4 { background: #ecfdf5; color: #10b981; }
.sec-5 { background: #f5f3ff; color: #8b5cf6; }
.sec-6 { background: #fdf2f8; color: #ec4899; }

.badge {
    display: inline-block;
    height: 20px;
    padding: 0 7px;
    margin-right: 5px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    line-height: 20px;
    vertical-align: middle;
}

.badge-s1 { background: #eff6ff; color: #2563eb; }
.badge-s2 { background: #fef2f2; color: #dc2626; }
.badge-s3 { background: #fffbeb; color: #d97706; }
.badge-s4 { background: #ecfdf5; color: #059669; }
.badge-s5 { background: #f5f3ff; color: #7c3aed; }
.badge-s6 { background: #fdf2f8; color: #db2777; }

.badge-top { background: #eef2ff; color: #4f46e5; }
.badge-ess { background: #fff7ed; color: #ea580c; }
.badge-hot { background: #fef2f2; color: #dc2626; }

.ava {
    float: left;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f3f4f6;
}

/* 没有 QQ 头像时，用昵称首字占位 */
.ava-txt {
    font-size: 13px;
    line-height: 20px;
    font-weight: 700;
    color: #64748b;
    text-align: center;
}

/* ------------------------------------------------------------------
 * 双列瀑布流（公告条 + 双列不等高卡片）
 * ------------------------------------------------------------------ */

/* 公告条 */
.f2-notice {
    position: relative;
    display: block;
    margin-top: 14px;
    padding: 10px 30px 10px 12px;
    border: 1px solid #eef0f5;
    border-radius: 12px;
    background: #ffffff;
}

.f2-notice-ico {
    float: left;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #f5f3ff;
    color: #7c3aed;
    font-size: 15px;
    text-align: center;
    line-height: 32px;
}

.f2-notice-main {
    display: block;
    margin-left: 42px;
    padding-top: 1px;
}

.f2-notice-main em {
    display: block;
    font-style: normal;
    font-size: 13px;
    font-weight: 700;
    line-height: 13px;
    color: #7c3aed;
}

.f2-notice-main b {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 600;
    line-height: 16px;
    color: #111827;
}

.f2-notice-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    margin-top: -8px;
    font-size: 16px;
    line-height: 16px;
    color: #c7cbd3;
}

/* 标题行 */
.f2-bar {
    height: 26px;
    margin-top: 18px;
}

.f2-bar h2 {
    float: left;
    font-size: 18px;
    font-weight: 800;
    line-height: 26px;
    letter-spacing: -0.4px;
}

.f2-post {
    float: right;
    height: 26px;
    padding: 0 12px;
    border-radius: 13px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 26px;
}

.f2-post .fa {
    margin-right: 3px;
    font-size: 11.5px;
}

/* 双列 */
.f2-grid {
    margin: 13px -5px 0;
}

.f2-col {
    float: left;
    width: 50%;
    padding: 0 5px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.f2-card {
    display: block;
    margin-bottom: 10px;
    padding: 12px 12px 9px;
    border: 1px solid #eef0f5;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.f2-top {
    height: 20px;
}

.f2-top .badge,
.f2-card .badge {
    margin-right: 0;
}

.f2-title {
    margin-top: 7px;
    font-size: 15px;
    font-weight: 700;
    line-height: 19px;
    letter-spacing: -0.1px;
    color: #111827;
}

.f2-sum {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    margin-top: 5px;
    max-height: 51px;
    overflow: hidden;
    font-size: 13.5px;
    line-height: 17px;
    color: #6b7280;
}

.f2-foot {
    height: 20px;
    margin-top: 9px;
}

.f2-card .ava {
    width: 20px;
    height: 20px;
}

.f2-author {
    float: left;
    max-width: 74px;
    margin-left: 6px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 13px;
    line-height: 20px;
    color: #6b7280;
}

.f2-stats {
    float: right;
    font-size: 13px;
    line-height: 20px;
    color: #9ca3af;
}

.f2-stats .fa {
    margin-right: 3px;
    font-size: 11.5px;
}

.f2-time {
    margin-top: 8px;
    padding-top: 7px;
    border-top: 1px solid #e4e7ee;
    font-size: 13px;
    line-height: 14px;
    color: #b0b7c3;
}

/* 加载更多：右列最后一张「卡片」，脚本按剩余高度拉伸，与左列底部对齐 */
.f2-more {
    position: relative;
    display: block;
    height: 96px;
    margin-bottom: 10px;
    border: 1px solid #eef0f5;
    border-radius: 12px;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.f2-more-in {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 76px;
    margin-top: -38px;
}

.f2-more-ico {
    display: inline-block;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    font-size: 16px;
    line-height: 34px;
}

.f2-more-txt {
    display: block;
    margin-top: 8px;
    font-size: 15px;
    font-weight: 700;
    line-height: 18px;
    color: #2563eb;
}

.f2-more-sub {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    line-height: 14px;
    color: #9ca3af;
}

/* 帖子已经全部加载完：占位卡片，不可点击 */
.f2-more.is-end {
    background: #fbfcfe;
    cursor: default;
}

.f2-more.is-end .f2-more-ico {
    background: #f3f4f6;
    color: #9ca3af;
    font-size: 15px;
}

.f2-more.is-end .f2-more-txt {
    color: #9ca3af;
}

/* 空状态 */
.f2-empty {
    margin-top: 14px;
    padding: 46px 16px;
    border: 1px solid #eef0f5;
    border-radius: 14px;
    background: #ffffff;
    text-align: center;
}

.f2-empty h3 {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.f2-empty p {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.6;
    color: #9ca3af;
}

/* 320px：双列卡片更窄，作者名再收一点，避免评论数被挤到下一行 */
@media screen and (max-width: 360px) {
    .f2-author {
        max-width: 56px;
    }
}

@media screen and (max-width: 350px) {
    .f2-card {
        padding: 10px 10px 8px;
    }

    .f2-title {
        font-size: 14px;
        line-height: 18px;
    }

    .f2-sum {
        max-height: 48px;
        font-size: 13px;
        line-height: 16px;
    }
}


/* ==================================================================
 * 搜索结果页
 * ================================================================== */

/* ==================================================================
 * 搜索结果页（移动端）· 搜索框 + 结果摘要 + 筛选胶囊 + 两列应用卡
 * 依赖全局公共骨架：shell / container / page-head / top-title /
 * pd-user / hscroll / sec / sec-head / bottom-nav / clearfix
 * 兼容 iOS 5/6：不使用 flex、grid、CSS 变量、calc、vw/vh
 * ================================================================== */

/* ------------------------------------------------------------------
 * 公共部分：搜索框 / 取消 / 胶囊 / 块标题 / 应用图标
 * ------------------------------------------------------------------ */

/* 页面标题：顶部距离与首页「傍晚好」对齐 */
.page-head.search-head {
    padding-top: 37px;
}

/* ------------------------------------------------------------------
 * 搜索框
 * ------------------------------------------------------------------ */
.s-bar {
    position: relative;
    height: 40px;
    margin-top: 14px;
    border: 1px solid #e4e7ee;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.s-bar .fa-search {
    position: absolute;
    left: 14px;
    top: 50%;
    margin-top: -7px;
    font-size: 15px;
    line-height: 14px;
    color: #a6aeba;
}

.s-bar input {
    display: block;
    width: 100%;
    height: 38px;
    padding: 0 40px 0 36px;
    border: 0;
    background: transparent;
    color: #111827;
    font-size: 15px;
    font-family: inherit;
    line-height: 38px;
    outline: none;
    -webkit-appearance: none;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.s-bar input::-webkit-input-placeholder {
    color: #a6aeba;
}

.s-bar .s-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    width: 24px;
    height: 24px;
    margin-top: -12px;
    border-radius: 50%;
    background: #98a1b0;
    color: #ffffff;
    font-size: 13.5px;
    text-align: center;
    line-height: 24px;
}

.s-bar .s-clear .fa {
    font-size: 12.5px;
    line-height: 24px;
}

/* 取消按钮（搜索框右侧） */
.s-cancel {
    float: right;
    margin-top: 14px;
    margin-left: 12px;
    font-size: 15px;
    font-weight: 600;
    line-height: 40px;
    color: #2563eb;
}

/* 输入态：边框与光标更明显 */
.s-bar.is-input {
    border-color: #c7d7f7;
    background: #ffffff;
}

/* ------------------------------------------------------------------
 * 胶囊标签
 * ------------------------------------------------------------------ */
.s-chip {
    display: inline-block;
    height: 30px;
    padding: 0 13px;
    margin: 0 7px 8px 0;
    border: 1px solid #eef0f5;
    border-radius: 15px;
    background: #ffffff;
    color: #4b5563;
    font-size: 14px;
    font-weight: 600;
    line-height: 30px;
    vertical-align: top;
}

.s-chip.on {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
}

/* ------------------------------------------------------------------
 * 通用块标题
 * ------------------------------------------------------------------ */
.s-head {
    height: 24px;
    margin-bottom: 11px;
}

.s-head h2 {
    float: left;
    font-size: 15px;
    font-weight: 800;
    line-height: 24px;
    letter-spacing: -0.3px;
    color: #111827;
}

.s-head h2 em {
    margin-left: 6px;
    font-style: normal;
    font-size: 13.5px;
    font-weight: 600;
    color: #9ca3af;
}

/* ------------------------------------------------------------------
 * 应用图标
 * ------------------------------------------------------------------ */
.s-ico {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: #eef2ff;
}

/* ------------------------------------------------------------------
 * 方案二：双列卡片（摘要 + 筛选 + 两列应用卡）
 * ------------------------------------------------------------------ */
.s2-summary {
    height: 22px;
    margin-top: 16px;
}

.s2-kw {
    float: left;
    font-size: 15px;
    font-weight: 800;
    line-height: 22px;
    letter-spacing: -0.3px;
    color: #111827;
}

.s2-count {
    float: left;
    margin-left: 8px;
    font-size: 13.5px;
    line-height: 22px;
    color: #9ca3af;
}

.s2-filter {
    float: right;
    height: 22px;
    padding: 0 9px;
    border-radius: 11px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
    line-height: 22px;
}

.s2-filter .fa {
    margin-right: 3px;
    font-size: 11.5px;
}

.s2-tabs {
    margin-top: 12px;
}

.s2-grid {
    margin: 4px -4px 0;
}

.s2-cell {
    float: left;
    width: 50%;
    padding: 0 4px 8px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.s2-tile {
    display: block;
    padding: 11px 11px 10px;
    border: 1px solid #eef0f5;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.s2-top {
    display: block;
    height: 44px;
    overflow: hidden;
}

.s2-ico {
    float: left;
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: #eef2ff;
}

.s2-get {
    float: right;
    width: 42px;
    height: 22px;
    margin-top: 11px;
    border-radius: 11px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    line-height: 22px;
}

.s2-name {
    display: block;
    margin-top: 9px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 15px;
    font-weight: 700;
    line-height: 18px;
    color: #111827;
}

.s2-meta {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 13px;
    line-height: 14px;
    color: #9ca3af;
}

.s2-compat {
    display: block;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #e4e7ee;
    font-size: 13px;
    line-height: 14px;
    color: #b0b7c3;
}

.s2-compat .fa {
    margin-right: 3px;
    font-size: 11.5px;
}

/* 搜索结果中的帖子卡片：内部按帖子排版，高度随内容，避免底部留白 */
.s2-post-badge {
    float: right;
    height: 18px;
    max-width: 64px;
    margin-right: 0;
    margin-left: 6px;
    padding: 0 6px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 12.5px;
    line-height: 18px;
}

.s2-post-title {
    display: block;
    height: 36px;
    overflow: hidden;
    word-break: break-all;
    font-size: 15px;
    font-weight: 700;
    line-height: 18px;
    color: #111827;
}

.s2-post-summary {
    display: table;
    width: 100%;
    height: 48px;
    margin-top: 3px;
    table-layout: fixed;
}

.s2-post-summary-in {
    display: table-cell;
    vertical-align: middle;
}

.s2-post-summary-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    word-break: break-all;
    font-size: 13px;
    line-height: 16px;
    color: #9ca3af;
}

/* ------------------------------------------------------------------
 * 搜索结果分页（替代「加载更多」）
 * ------------------------------------------------------------------ */
.pg {
    margin-top: 14px;
    font-size: 0;
    text-align: center;
}

.pg-nav,
.pg-num,
.pg-dots {
    display: inline-block;
    height: 28px;
    margin: 0 2px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border-radius: 8px;
    font-size: 14px;
    line-height: 28px;
    text-align: center;
    vertical-align: middle;
}

.pg-nav {
    width: 28px;
    border: 1px solid #eef0f5;
    background: #ffffff;
    color: #3f4653;
}

.pg-nav .fa {
    font-size: 15px;
}

.pg-nav.off {
    color: #d1d5db;
}

.pg-num {
    min-width: 28px;
    padding: 0 6px;
    border: 1px solid #eef0f5;
    background: #ffffff;
    color: #3f4653;
}

.pg-num.on {
    border-color: #2563eb;
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
}

.pg-dots {
    width: 16px;
    color: #9ca3af;
}

.s2-related {
    margin-bottom: -8px;
}

@media screen and (max-width: 350px) {
    .s2-tile {
        padding: 10px 9px 9px;
    }

    .s2-name {
        font-size: 14px;
    }

    .s2-get {
        width: 38px;
    }
}


/* ==================================================================
 * 搜索无结果页
 * ================================================================== */

/* ------------------------------------------------------------------
 * 方案四：无结果（空状态 + 提示 + 热门词 + 推荐）
 * ------------------------------------------------------------------ */
.s4-empty {
    margin-top: 34px;
    text-align: center;
}

.s4-empty-ico {
    display: inline-block;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: #f5f7fb;
    color: #b6bfcd;
    font-size: 30px;
    line-height: 74px;
}

.s4-empty h2 {
    margin-top: 14px;
    font-size: 16px;
    font-weight: 800;
    line-height: 22px;
    letter-spacing: -0.3px;
    color: #111827;
}

.s4-empty p {
    margin-top: 5px;
    font-size: 14px;
    line-height: 17px;
    color: #9ca3af;
}

.s4-tips {
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid #eef0f5;
    border-radius: 12px;
    background: #fbfcfe;
}

.s4-tip {
    display: block;
    padding: 3px 0;
    font-size: 13.5px;
    line-height: 17px;
    color: #6b7280;
}

.s4-tip .fa {
    margin-right: 6px;
    color: #10b981;
    font-size: 11.5px;
}

.s4-tip a {
    margin: 0 2px;
    color: #2563eb;
    font-weight: 600;
}

.s4-words {
    margin-bottom: -8px;
}


@media screen and (max-width: 350px) {
    .s4-ico {
        width: 36px;
        height: 36px;
    }

    .s4-tile-main {
        margin-left: 44px;
    }

    .s4-tile-name {
        font-size: 13.5px;
    }
}

/* ------------------------------------------------------------------
 * ThinkPHP 调试面板：app_debug 开启时显示。
 * 手机端把按钮/面板抬到底部导航上方，避免挡住导航；无底部导航页面贴底。
 * 线上仍建议关闭 APP_DEBUG。
 * ------------------------------------------------------------------ */
#think_page_trace,
#think_page_trace_open {
    bottom: 55px !important;
}

.no-bottom-nav #think_page_trace,
.no-bottom-nav #think_page_trace_open {
    bottom: 0 !important;
}

/* 无刷新加载动画（.pc-loader / .pc-loader-overlay）样式位于 /static/public/main.css */

/* ==================================================================
 * 应用详情页（.a4 作用域）
 *
 * 目标：iOS 5 / 6 Safari 可用
 * 约束：不使用 flex / grid / CSS 变量 / calc / vw / vh / object-fit / transform
 * 布局：float / inline-block / table / table-cell
 *
 * 说明：规则统一限定在 .a4 下，避免影响其它页面。
 * ================================================================== */

/* ------------------------------------------------------------------
 * 作用域内的基础重置
 * 注意：不要用 `.a4 ul` / `.a4 dl` 这类带元素名的选择器，
 *       它们的权重(0,1,1)会压掉 `.a4-matrix`、`.a4-row` 自己的
 *       margin / padding(0,1,0)。重置只做真正需要的部分。
 * ------------------------------------------------------------------ */
.a4 em,
.a4 i {
    font-style: normal;
}

.a4 h1,
.a4 h2 {
    margin: 0;
}

.a4 .a4-hide {
    display: none;
}

/* 星级 */
.a4 .stars {
    display: inline-block;
    color: #f59e0b;
    font-size: 13.5px;
    line-height: 1;
    vertical-align: middle;
}

.a4 .stars .fa {
    margin-right: 1px;
}

.a4 .stars .fa-star-o {
    color: #e2e6ee;
}

/* 截图横滑容器 */
.a4 .shots {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.a4 .shots::-webkit-scrollbar {
    display: none;
}

.a4 .shots img {
    display: inline-block;
    height: 168px;
    width: auto;
    margin-right: 8px;
    border-radius: 10px;
    background: #f3f4f6;
    vertical-align: top;
}

/* 让横滑区域贴到屏幕右边缘（与 .container 的 14px 内边距抵消） */
.a4 .a4-bleed-r {
    margin-right: -14px;
}

/* ==================================================================
 * 横幅 + 悬浮图标 + 兼容矩阵
 * ================================================================== */
.a4-banner {
    position: relative;
    height: 152px;
    background-color: #111827;
    background-position: center center;
    background-repeat: no-repeat;
    -webkit-background-size: cover;
    background-size: cover;
}

.a4-banner .mask {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.42);
}

.a4-icon {
    position: absolute;
    left: 14px;
    bottom: -30px;
    z-index: 2;
    width: 72px;
    height: 72px;
    border: 3px solid #ffffff;
    border-radius: 19px;
    background: #ffffff;
}

.a4-main {
    padding: 40px 14px 0;
}

.a4-main h1 {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.3px;
    word-wrap: break-word;
}

.a4-sub {
    margin-top: 5px;
    font-size: 13.5px;
    color: #6b7280;
    word-wrap: break-word;
}

/* 标题右侧：星级 + 评分 */
.a4-head-r {
    float: right;
    width: 74px;
    text-align: right;
}

.a4-head-r .stars {
    display: block;
    font-size: 13.5px;
    line-height: 13px;
}

.a4-head-r b {
    display: block;
    font-size: 15px;
    font-weight: 800;
    line-height: 18px;
}

.a4-head-r em {
    display: block;
    color: #9ca3af;
    font-size: 12.5px;
    font-style: normal;
    line-height: 13px;
}

.a4-head-r .a4-no-rating {
    line-height: 44px;
    color: #9ca3af;
    font-size: 13.5px;
}

.a4-head h1,
.a4-head .a4-sub {
    margin-right: 84px;
}

.a4-nums {
    margin-top: 14px;
    padding: 12px 0;
    border-top: 1px solid #e4e7ee;
    border-bottom: 1px solid #e4e7ee;
}

.a4-num {
    float: left;
    width: 33.33%;
    border-left: 1px solid #e4e7ee;
    text-align: center;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.a4-num:first-child {
    border-left: 0;
}

.a4-num b {
    display: block;
    font-size: 15px;
    font-weight: 800;
    line-height: 18px;
}

.a4-num em {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    line-height: 12px;
    color: #9ca3af;
}

.a4-btns {
    margin-top: 14px;
}

/* 收藏：只保留图标，圆形按钮（和「获取」等高） */
.a4-fav {
    float: right;
    width: 46px;
    height: 46px;
    border: 1px solid #e3e8f0;
    border-radius: 50%;
    background: #ffffff;
    color: #3f4653;
    text-align: center;
    line-height: 44px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.a4-fav .fa {
    margin-right: 0;
    color: #6b7280;
    font-size: 18px;
    line-height: 1;
    vertical-align: middle;
}

.a4-fav:active {
    background: #f4f6fa;
}

.a4-fav.on {
    border-color: #bfdbfe;
    color: #2563eb;
}

.a4-fav.on .fa {
    color: #2563eb;
}

/* 获取：收藏按钮收窄后，按钮整体变宽、变高一点 */
.a4-get {
    display: block;
    height: 46px;
    margin-right: 56px;
    border-radius: 23px;
    background: #2563eb;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    line-height: 46px;
}

.a4-get:active {
    background: #1d4ed8;
}

.a4-matrix {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid #e4e7ee;
}

.a4-matrix li {
    float: left;
    width: 50%;
    padding: 11px 0;
    border-bottom: 1px solid #e4e7ee;
    font-size: 14px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.a4-matrix li:nth-child(odd) {
    padding-right: 10px;
}

.a4-matrix li em {
    float: left;
    width: 58px;
    color: #9ca3af;
    font-size: 13.5px;
}

.a4-matrix li .ok {
    color: #059669;
    font-size: 13.5px;
}

.a4-matrix li .no {
    color: #d1d5db;
    font-size: 13.5px;
}

.a4-h {
    height: 20px;
    margin-top: 22px;
}

.a4-h h2 {
    float: left;
    font-size: 15px;
    font-weight: 800;
    line-height: 20px;
}

.a4-h a {
    float: right;
    font-size: 13.5px;
    line-height: 20px;
    color: #2563eb;
}

.a4-h .cnt {
    float: right;
    color: #9ca3af;
    font-size: 13.5px;
    line-height: 20px;
}

.a4-shots {
    margin-top: 10px;
    padding-right: 14px;
}

.a4-desc {
    margin-top: 10px;
    padding: 12px 0;
    border-top: 1px solid #e4e7ee;
    border-bottom: 1px solid #e4e7ee;
    font-size: 15px;
    line-height: 1.85;
    color: #4b5563;
    word-wrap: break-word;
}

.a4-desc p {
    margin: 0;
    white-space: pre-wrap;
}

.a4-desc p + p {
    margin-top: 8px;
}

/* 版本说明：保留后台录入的换行（对齐电脑端 .detail-changelog 的 pre-wrap） */
.a4-changelog {
    white-space: pre-wrap;
    word-break: break-word;
}

.a4-changelog.is-empty {
    color: #9ca3af;
}

.a4-row {
    margin: 0;
    padding: 11px 0;
    border-bottom: 1px solid #e4e7ee;
    font-size: 14px;
}

.a4-row dt {
    float: left;
    margin: 0;
    color: #9ca3af;
}

.a4-row dd {
    margin: 0;
    text-align: right;
    color: #374151;
    word-wrap: break-word;
}

.a4-rv {
    padding: 12px 0;
    border-bottom: 1px solid #e4e7ee;
}

.a4-rv img {
    float: left;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f3f4f6;
}

.a4-rv b {
    float: left;
    margin-left: 8px;
    font-size: 14px;
    line-height: 26px;
}

.a4-rv .stars {
    float: right;
    line-height: 26px;
}

.a4-rv p {
    clear: both;
    margin-top: 8px;
    font-size: 14.5px;
    line-height: 1.75;
    color: #4b5563;
    word-wrap: break-word;
}

.a4-rv p a {
    color: #2563eb;
    word-break: break-all;
}

.a4-rv-foot {
    margin-top: 6px;
    font-size: 12.5px;
    color: #b0b7c3;
}

.a4-rv-foot span {
    margin-right: 10px;
}

.a4-rv-empty {
    padding: 22px 0;
    border-bottom: 1px solid #e4e7ee;
    color: #9ca3af;
    font-size: 13.5px;
    text-align: center;
}

/* 页脚说明 / 免责声明：浅色卡片 + 信息图标 */
.a4-note {
    position: relative;
    margin: 16px 0 20px;
    padding: 12px 13px 12px 34px;
    border: 1px solid #eef0f5;
    border-radius: 12px;
    background: #ffffff;
    color: #8b93a1;
    font-size: 13.5px;
    line-height: 1.7;
}

.a4-note:before {
    content: "\f05a";
    position: absolute;
    left: 13px;
    top: 13px;
    color: #b9c1cd;
    font-family: FontAwesome;
    font-size: 14.5px;
    line-height: 1;
    font-style: normal;
}

/* Pro 角标 */
.rv-pro {
    display: inline-block;
    height: 14px;
    padding: 0 4px;
    margin-left: 4px;
    border-radius: 3px;
    background: #fff7ed;
    color: #ea580c;
    font-size: 12px;
    font-weight: 700;
    line-height: 14px;
    vertical-align: 1px;
}

/* ==================================================================
 * 版本切换：外层灰色底固定不动，内层横向滚动
 * ================================================================== */
.a4-seg {
    margin-top: 14px;
    padding: 3px;
    border-radius: 10px;
    background: #eef1f6;
    overflow: hidden;
}

.a4-seg-scroll {
    position: relative;
    padding-bottom: 3px;
    margin-bottom: -3px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    font-size: 0;
}

.a4-seg-scroll::-webkit-scrollbar {
    display: none;
}

.a4-seg .it {
    display: inline-block;
    width: 20%;
    padding: 6px 0;
    border-radius: 8px;
    color: #5b6472;
    text-align: center;
    vertical-align: top;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

/* 版本超过一屏：稍微收窄，让第 5 个只露出 2/3，提示还能往左滑 */
.a4-seg.is-multi .it {
    width: 21.43%;
}

.a4-seg .it b {
    display: block;
    padding: 0 2px;
    font-size: 14px;
    font-weight: 600;
    line-height: 15px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.a4-seg .it span {
    display: block;
    font-size: 12px;
    line-height: 12px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.a4-seg .it.on {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(17, 24, 39, 0.14);
}

.a4-seg .it.on b,
.a4-seg .it.on span {
    color: #2563eb;
}

.a4-subcard {
    position: relative;
    margin-top: 14px;
    padding: 10px 12px 10px 10px;
    border-left: 3px solid #2563eb;
    background: #f7f9fd;
}

.a4-subcard .go {
    position: absolute;
    right: 12px;
    top: 50%;
    margin-top: -9px;
    color: #2563eb;
    font-size: 13.5px;
    line-height: 18px;
}

.a4-subcard img {
    float: left;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eef2f8;
}

.a4-subcard p {
    margin-left: 42px;
    margin-right: 56px;
    color: #6b7280;
    font-size: 13.5px;
    line-height: 15px;
}

.a4-subcard p b {
    color: #111827;
}

.a4-subcard p em {
    display: block;
    color: #9ca3af;
    font-style: normal;
}

/* ------------------------------------------------------------------
 * 窄屏（≤350，如 iPhone 4 / 5）微调
 * ------------------------------------------------------------------ */
@media screen and (max-width: 350px) {
    .a4-num b {
        font-size: 15px;
    }

    .a4-subcard p {
        margin-left: 36px;
        margin-right: 42px;
        font-size: 13px;
    }

    .a4-subcard p em {
        font-size: 12px;
    }
}


/* ==================================================================
 * 论坛帖子详情页
 *
 * 结构：顶部栏（返回 / 板块 / 分享）→ 标题 → 作者楼层头 → 正文 →
 *       标签 → 互动条 → 附件 → 评论 → 分页 → 底部快速回复条
 * 兼容 iOS 5/6：不使用 flex、grid、CSS 变量、calc、vw/vh、transform
 * ================================================================== */

/* ------------------------------------------------------------------
 * 顶部栏
 * ------------------------------------------------------------------ */
.pd-head {
    padding-top: 32px;
    padding-bottom: 4px;
}

/* 顶部栏圆形按钮：返回 / 用户中心 / 分享
 * 三者同一套尺寸和居中方式，只改浮动方向和图标大小；
 * 浅色背景 → 半透明蓝底 + 蓝图标，
 * 深色背景（封面图）→ 半透明白底 + 深色图标，并浮在图片上（见 --ondark / --float）。
 *
 * 图标用 display:block + 行高居中。行内元素会跟着父级基线走，
 * 放进 28px 大标题（行高 38px）里会整体下沉 6px，块级则不受父级行高影响。
 */
.pd-back,
.pd-user,
.pd-more {
    width: 34px;
    height: 34px;
    text-align: center;
}

.pd-back,
.pd-user {
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
}

.pd-back { float: left; }

.pd-user { float: right; }

.pd-notice {
    position: relative;
}

.pd-notice-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
}

/* 消息铃铛角标：未读条数（数字徽标） */
.pd-notice-badge {
    position: absolute;
    z-index: 2;
    top: -4px;
    right: -5px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    box-sizing: border-box;
    border-radius: 8px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 0 0 2px #ffffff;
}

.pd-more {
    float: right;
    color: #6b7280;
}

.pd-back .fa,
.pd-user .fa,
.pd-more .fa {
    display: block;
    line-height: 34px;
}

.pd-back .fa { font-size: 18px; }

.pd-user .fa { font-size: 15px; }

.pd-user.has-avatar {
    overflow: hidden;
    background: #eff6ff;
}

.pd-user-ava {
    display: block;
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

.pd-more .fa { font-size: 16px; }

/* 大标题（行高 38px）右侧的用户入口：34px 圆钮补 2px 才和标题居中对齐 */
.page-head .pd-user {
    margin-top: 2px;
}

.pd-back--ondark {
    background: rgba(255, 255, 255, 0.72);
    color: #1f2937;
}

.pd-back--float {
    position: absolute;
    left: 14px;
    top: 28px;
    z-index: 3;
    float: none;
    box-shadow: 0 1px 6px rgba(2, 6, 23, 0.12);
}

/* 顶部栏：板块题头居中放在返回与分享之间 */
.p2-head {
    padding-top: 28px;
}

.p2-head .container {
    position: relative;
}

.p2-kicker {
    position: absolute;
    left: 54px;
    right: 54px;
    top: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #d97706;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 34px;
    text-align: center;
}

.p2-kicker .fa {
    margin-right: 5px;
    font-size: 12.5px;
}

.p2-kicker-logo {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 6px;
    vertical-align: middle;
}

/* 审核中的提示 */
.pd-audit {
    margin-top: 16px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #fffbeb;
    color: #b45309;
    font-size: 13.5px;
    line-height: 1.6;
}

.pd-audit .fa {
    margin-right: 4px;
}

/* ------------------------------------------------------------------
 * 标题
 * ------------------------------------------------------------------ */
.p2-title {
    margin-top: 14px;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.36;
    letter-spacing: -0.8px;
    color: #111827;
}

.p2-title .p2-badge {
    height: 23px;
    margin-left: 8px;
    padding: 0 7px;
    border: 1px solid currentColor;
    border-radius: 6px;
    letter-spacing: 0;
    line-height: 21px;
    vertical-align: middle;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

/* ------------------------------------------------------------------
 * 作者行（头像 + 昵称 + 楼主 + 时间 + 楼层号）
 * ------------------------------------------------------------------ */
.p3-fhead {
    position: relative;
    margin-top: 14px;
    padding-top: 12px;
    padding-bottom: 13px;
    border-top: 1px solid #e4e7ee;
    border-bottom: 1px solid #e4e7ee;
}

.p3-ava {
    float: left;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f3f4f6;
}

.p3-ava-txt {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 34px;
    color: #64748b;
    text-align: center;
}

.p3-fmain {
    margin-left: 44px;
    margin-right: 32px;
}

.p3-fname {
    line-height: 17px;
}

.p3-fname-tags {
    display: inline-block;
    font-size: 0;
    vertical-align: middle;
    white-space: nowrap;
}

.p3-fsub {
    margin-top: 3px;
    overflow: hidden;
    color: #9ca3af;
    font-size: 12px;
    line-height: 17px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.p3-fmain b {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    line-height: 17px;
    color: #111827;
    vertical-align: middle;
}

.p3-fmain em {
    display: block;
    font-style: normal;
    font-size: 13px;
    line-height: 14px;
    color: #b0b7c3;
}

/* 作者行里的金币余额 */
.p3-user-tag {
    display: inline-block;
    height: 18px;
    margin: 0 4px 0 0;
    padding: 0 6px;
    border: 1px solid currentColor;
    border-radius: 9px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 16px;
    vertical-align: middle;
    white-space: nowrap;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.p3-user-tag.is-coin {
    position: relative;
    height: 17px;
    margin: 0 0 0 4px;
    padding: 0 6px 0 20px;
    border-radius: 4px;
    background: #fffbeb;
    color: #b45309;
    line-height: 15px;
}

.p3-user-tag .fa {
    margin-right: 2px;
    font-size: 11px;
}

/* 金币图标：金色圆片 + ¥，避免使用纸币 / 数据库图标 */
.p3-coin-ico {
    position: absolute;
    left: 6px;
    top: 50%;
    width: 12px;
    height: 12px;
    margin-top: -6px;
    border: 1px solid #f59e0b;
    border-radius: 50%;
    background: #fbbf24;
    color: #92400e;
    font-size: 8px;
    font-style: normal;
    font-weight: 700;
    line-height: 10px;
    text-align: center;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.p3-no {
    position: absolute;
    right: 0;
    top: 13px;
    color: #c7cbd3;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 17px;
}

/* 「楼主」小标（评论里也用到 p2-lz） */
.p2-lz,
.p3-lz {
    display: inline-block;
    height: 15px;
    padding: 0 5px;
    margin-left: 5px;
    border-radius: 4px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 15px;
    vertical-align: middle;
}

.p3-lz {
    height: 17px;
    border: 1px solid currentColor;
    line-height: 15px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.p2-lz-audit {
    background: #fffbeb;
    color: #b45309;
}

/* ------------------------------------------------------------------
 * 正文（markdown 渲染出来的各种标签）
 * ------------------------------------------------------------------ */
.p2-body {
    margin-top: 18px;
}

.p2-body > *:first-child {
    margin-top: 0;
}

.p2-body p {
    margin-top: 15px;
    font-size: 15.5px;
    line-height: 1.95;
    color: #374151;
}

.p2-md blockquote,
.p2-quote {
    margin: 16px 0 0;
    padding: 11px 14px 11px 16px;
    border-left: 3px solid #2563eb;
    background: #f7f9fc;
    color: #1f2937;
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.8;
}

.p2-md blockquote p,
.p2-md blockquote p:first-child {
    margin-top: 0;
    font-size: 15.5px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.8;
}

.p2-md img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 12px auto;
    border-radius: 8px;
    background: #f7f9fc;
}

.p2-md a {
    color: #2563eb;
}

.p2-md ul,
.p2-md ol {
    margin: 12px 0 0 20px;
}

.p2-md li {
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.9;
    color: #374151;
}

.p2-md h1,
.p2-md h2,
.p2-md h3,
.p2-md h4 {
    margin: 18px 0 0;
    font-weight: 700;
    line-height: 1.45;
    color: #111827;
}

.p2-md h1 { font-size: 18px; }
.p2-md h2 { font-size: 17px; }
.p2-md h3 { font-size: 15.5px; }
.p2-md h4 { font-size: 15px; }

.p2-md code {
    padding: 1px 5px;
    border-radius: 4px;
    background: #f3f4f6;
    color: #dc2626;
    font-family: Menlo, Consolas, monospace;
    font-size: 14px;
}

.p2-md pre {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 13.5px;
    line-height: 1.7;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.p2-md pre code {
    padding: 0;
    background: transparent;
    color: inherit;
    font-size: 13.5px;
}

.p2-md table {
    width: 100%;
    margin: 12px 0 0;
    border-collapse: collapse;
    font-size: 14px;
}

.p2-md th,
.p2-md td {
    padding: 6px 8px;
    border: 1px solid #eef0f5;
    text-align: left;
    line-height: 1.6;
}

.p2-md th {
    background: #f7f9fc;
    font-weight: 700;
    color: #111827;
}

.p2-md hr {
    height: 1.5px;
    margin: 18px 0;
    border: 0;
    background: #d5dbe5;
}

/* ------------------------------------------------------------------
 * 标签
 * ------------------------------------------------------------------ */
.pd-tags {
    margin-top: 14px;
    margin-bottom: -6px;
}

/* 标签 + 发布时间：时间靠右，和标签同一行 */
.p3-meta {
    position: relative;
    min-height: 24px;
    margin-top: 14px;
    padding-right: 122px;
}

.p3-meta .p3-tags {
    margin-top: 0;
}

.p3-post-time {
    position: absolute;
    right: 0;
    top: 4px;
    color: #9ca3af;
    font-size: 12.5px;
    line-height: 16px;
    white-space: nowrap;
}

.p3-post-time .fa {
    margin-right: 4px;
    font-size: 12px;
}

.pd-tag {
    display: inline-block;
    height: 24px;
    padding: 0 10px;
    margin: 0 6px 6px 0;
    border-radius: 12px;
    background: #e2e7ef;
    color: #374151;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 24px;
}

/* 「#」用标签自己的颜色（色值来自 iosipa_forum_tag.tag_color） */
.pd-tag-hash {
    margin-right: 3px;
    font-style: normal;
    font-weight: 700;
}

/* ------------------------------------------------------------------
 * 互动条：赞 / 收藏 / 回复 + 右侧浏览数
 * ------------------------------------------------------------------ */
.p3-fact {
    height: 42px;
    margin-top: 14px;
    border-top: 1px solid #e4e7ee;
}

.p3-fact a {
    float: left;
    margin-right: 18px;
    color: #4b5563;
    font-size: 13.5px;
    line-height: 42px;
}

.p3-fact .fa {
    margin-right: 4px;
}

.p3-fact em {
    font-style: normal;
}

.p3-fact-like.on {
    color: #2563eb;
}

.p3-fact-fav.on {
    color: #f59e0b;
}

.p3-fact-v {
    float: right;
    color: #9ca3af;
    font-size: 13.5px;
    line-height: 42px;
}

/* ------------------------------------------------------------------
 * 帖子附件（平铺，上下各一条分割线，只在有附件时出现）
 * ------------------------------------------------------------------ */
.p3-attach {
    margin-top: 18px;
    padding-bottom: 13px;
    border-top: 1px solid #e4e7ee;
    border-bottom: 1px solid #e4e7ee;
}

.p3-attach-head {
    padding: 11px 0 2px;
    font-size: 13.5px;
    font-weight: 600;
    color: #6b7280;
}

.p3-attach-head .fa {
    margin-right: 5px;
    color: #9ca3af;
}

.p3-attach-head em {
    display: inline-block;
    height: 14px;
    margin-left: 5px;
    padding: 0 5px;
    border-radius: 7px;
    background: #e2e7ef;
    color: #6b7280;
    font-size: 11.5px;
    font-style: normal;
    font-weight: 700;
    line-height: 14px;
    vertical-align: 1px;
}

.p3-attach-item {
    position: relative;
    padding-top: 10px;
}

.p3-attach-item + .p3-attach-item {
    margin-top: 10px;
    border-top: 1px solid #eef0f5;
}

.p3-attach-ext {
    float: left;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #eaf1ff;
    color: #2563eb;
    font-size: 15px;
    line-height: 34px;
    text-align: center;
}

.p3-attach-main {
    display: block;
    margin-left: 44px;
    margin-right: 76px;
    padding-top: 1px;
}

.p3-attach-main b {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 600;
    line-height: 17px;
    color: #111827;
}

.p3-attach-main em {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    font-style: normal;
    line-height: 14px;
    color: #9ca3af;
}

.p3-attach-owned {
    display: inline-block;
    height: 16px;
    line-height: 16px;
    padding: 0 6px;
    margin-right: 4px;
    border-radius: 8px;
    background: #dcfce7;
    color: #15803d;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    vertical-align: 1px;
}

.p3-attach-btn {
    position: absolute;
    top: 13px;
    right: 0;
    height: 28px;
    padding: 0 13px;
    border: 0;
    border-radius: 6px;
    background: #2563eb;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 28px;
    text-align: center;
    text-decoration: none;
    -webkit-appearance: none;
    appearance: none;
}

/* ------------------------------------------------------------------
 * 评论
 * ------------------------------------------------------------------ */
.p2-cbar {
    height: 24px;
    margin-top: 0;
    padding-top: 11px;
    border-top: 1px solid #e4e7ee;
}


.p2-cbar h2 {
    float: left;
    font-size: 16px;
    font-weight: 800;
    line-height: 24px;
    letter-spacing: -0.3px;
}

.p2-cbar-n {
    float: left;
    height: 16px;
    margin: 4px 0 0 6px;
    padding: 0 6px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
    line-height: 16px;
}

.p2-cm {
    position: relative;
    padding: 14px 0;
    border-bottom: 1px solid #e4e7ee;
}

.p2-ava {
    float: left;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3f4f6;
}

.p2-ava-txt {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 32px;
    color: #64748b;
    text-align: center;
}

.p2-cm-body {
    margin-left: 42px;
}

.p2-cm-head b {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.p2-cm-time {
    float: left;
    margin-left: 0;
    font-size: 13px;
    line-height: 16px;
    color: #b0b7c3;
}

/* 后台发放的徽章（帖子作者 / 评论 / 楼中楼） */
.p2-badge {
    display: inline-block;
    height: 15px;
    margin-left: 4px;
    padding: 0 5px;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 15px;
    vertical-align: middle;
    white-space: nowrap;
}

.p2-badge-img {
    display: inline-block;
    height: 16px;
    margin-left: 4px;
    border-radius: 3px;
    vertical-align: middle;
}

/* 楼中楼的 @xxx */
.p2-mention {
    color: #2563eb;
    text-decoration: none;
}

/* 点击 @xxx / 打开 #comment-xxx 链接时，被回复的评论闪烁提示 */
.p2-cm:target .p2-cm-body,
.p2-reply:target,
.p2-cm-body.p2-flash,
.p2-reply.p2-flash {
    -webkit-border-radius: 6px;
    border-radius: 6px;
    -webkit-animation: p2MentionFlash 0.45s ease-in-out 3;
    animation: p2MentionFlash 0.45s ease-in-out 3;
}

@-webkit-keyframes p2MentionFlash {
    0%, 100% { background-color: transparent; }
    50% { background-color: rgba(37, 99, 235, 0.14); }
}

@keyframes p2MentionFlash {
    0%, 100% { background-color: transparent; }
    50% { background-color: rgba(37, 99, 235, 0.14); }
}

@media (prefers-reduced-motion: reduce) {
    .p2-cm:target .p2-cm-body,
    .p2-reply:target,
    .p2-cm-body.p2-flash,
    .p2-reply.p2-flash {
        -webkit-animation: none;
        animation: none;
        background-color: rgba(37, 99, 235, 0.14);
    }
}

.p2-cm-text {
    margin-top: 5px;
    font-size: 15px;
    line-height: 1.8;
    color: #374151;
    word-break: break-word;
}

.p2-cm-text.p2-md p,
.p2-reply-text.p2-md p {
    margin-top: 0;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
    color: #374151;
}

.p2-reply-text.p2-md p {
    font-size: 14.5px;
    color: #4b5563;
}

.p2-cm-foot {
    margin-top: 6px;
}

.p2-cm-acts {
    float: right;
}

.p2-cm-tip {
    float: left;
    margin-left: 8px;
    color: #d97706;
    font-size: 12px;
    font-style: normal;
    line-height: 16px;
}

.p2-cm-tip .fa {
    margin-right: 3px;
}

.p2-cm-acts .p2-cm-act {
    float: left;
    margin-right: 0;
    margin-left: 16px;
}

.p2-cm-act {
    float: left;
    margin-right: 16px;
    color: #9ca3af;
    font-size: 13px;
    line-height: 16px;
}

.p2-cm-act .fa {
    margin-right: 3px;
}

.p2-cm-act em {
    font-style: normal;
}

.p2-cm-act.on {
    color: #2563eb;
}

.p2-cm-del {
    color: #c7cbd3;
}

/* 楼中楼回复 */
.p2-replies {
    margin: 10px 0 0 42px;
    padding-left: 10px;
    border-left: 2px solid #f1f3f8;
}

.p2-reply {
    padding: 8px 0;
}

.p2-reply + .p2-reply {
    border-top: 1px solid #e4e7ee;
}

.p2-reply-head b {
    font-size: 13.5px;
    font-weight: 700;
    color: #111827;
}

.p2-reply-time {
    margin-left: 6px;
    font-size: 13px;
    color: #b0b7c3;
}

.p2-reply-text {
    margin-top: 4px;
    font-size: 14.5px;
    line-height: 1.75;
    color: #4b5563;
    word-break: break-word;
}

/* 「@xxx 正文」同一行开头，后面的段落仍是块级 */
.p2-reply-text .p2-mention + p {
    display: inline;
}

/* 空评论：扁平化，不再套浅色盒子（与帖子正文同底色） */
.p2-empty {
    margin-top: 14px;
    padding: 34px 16px;
    color: #9ca3af;
    font-size: 14px;
    text-align: center;
}

/* ------------------------------------------------------------------
 * 帖子评论框
 *
 * 普通文档流，跟随页面滚动；固定贴底在旧版 iOS 弹出键盘时会错位，
 * 输入框和键盘之间留出一条空白）。点“回复”时整块移到对应评论下面。
 * IOS 5/6：不用 flex，按钮用 float。
 * ------------------------------------------------------------------ */
/* 回复框：平铺在评论里，不用白色卡片，输入区用浅灰底 */
.p3-composer {
    clear: both;
    margin: 18px 0 4px;
}

/* 折叠态：一行浅灰输入条，点开变输入框 */
.p3-open {
    display: block;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    background: #e9edf3;
    color: #8b94a3;
    font-size: 14px;
    line-height: 38px;
}

.p3-open .fa {
    margin-right: 6px;
    font-size: 12.5px;
}

.p3-form {
    display: none;
}

.p3-composer.on .p3-open {
    display: none;
}

.p3-composer.on .p3-form {
    display: block;
}

/* 正在回复谁 */
.p3-tip {
    margin: 0 0 8px;
    padding: 0 2px;
    color: #111827;
    font-size: 13.5px;
    line-height: 1.5;
}

.p3-text {
    display: block;
    width: 100%;
    height: 88px;
    margin: 0;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: #e9edf3;
    color: #111827;
    font-size: 15px;
    line-height: 1.6;
    outline: none;
    resize: none;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.p3-text::-webkit-input-placeholder {
    color: #8b94a3;
}

.p3-text::placeholder {
    color: #8b94a3;
}

/* 评论框工具条：图片 / 打赏（位于取消、发送之间，与按钮同一行垂直居中） */
.p3-tools {
    margin: 0;
    line-height: 32px;
    text-align: center;
    white-space: nowrap;
}

.p3-tool {
    display: inline-block;
    margin: 0 7px;
    color: #6b7280;
    font-size: 13px;
    line-height: 32px;
    vertical-align: top;
}

.p3-tool .fa {
    margin-right: 4px;
    font-size: 13px;
}

.p3-tool.on {
    color: #2563eb;
}

.p3-tool.hidden {
    display: none;
}

/* 打赏面板（MobileDialog 内） */
.pd-tip-meta {
    margin-bottom: 10px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.7;
}

.pd-tip-meta b {
    color: #111827;
}

.pd-tip-balance {
    display: block;
    margin-top: 2px;
    color: #9ca3af;
    font-size: 12px;
}

.pd-tip-chips {
    margin: 0 0 4px;
}

.pd-tip-chip {
    display: inline-block;
    height: 32px;
    margin: 0 4px 8px;
    padding: 0 12px;
    border: 1px solid #e3e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #374151;
    font-size: 13px;
    line-height: 30px;
}

.pd-tip-chip.on {
    border-color: #2563eb;
    background: #eff6ff;
    color: #2563eb;
    font-weight: 700;
}

.pd-tip-custom {
    margin-top: 2px;
}

.pd-tip-input {
    display: block;
    width: 100%;
    height: 38px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid #e3e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    font-size: 15px;
    line-height: 38px;
    outline: none;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.pd-tip-input::-webkit-input-placeholder {
    color: #9ca3af;
}

.pd-tip-input::placeholder {
    color: #9ca3af;
}

.p3-acts {
    display: table;
    width: 100%;
    margin-top: 9px;
    table-layout: auto;
}

.p3-acts-cell {
    display: table-cell;
    vertical-align: middle;
}

.p3-acts-l {
    width: 1%;
    white-space: nowrap;
    text-align: left;
}

.p3-acts-m {
    text-align: center;
}

.p3-acts-r {
    width: 1%;
    white-space: nowrap;
    text-align: right;
}

.p3-btn {
    display: inline-block;
    height: 32px;
    padding: 0 16px;
    border: 0;
    border-radius: 6px;
    font-size: 14px;
    line-height: 32px;
    text-align: center;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.p3-cancel {
    background: #e4e9f0;
    color: #6b7280;
}

.p3-send {
    padding: 0 18px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 600;
}

.p3-send:disabled {
    background: #a8c2f2;
}

/* 移到评论下面时收紧一点间距 */
.p2-cm .p3-composer,
.p2-replies .p3-composer {
    margin: 10px 0 2px;
}

/* 楼中楼里的评论框更窄，缩小按钮和工具，保证仍在一行 */
.p2-replies .p3-cancel {
    padding: 0 10px;
}

.p2-replies .p3-send {
    padding: 0 12px;
}

.p2-replies .p3-tool {
    margin: 0 4px;
    font-size: 12px;
}

.p2-replies .p3-tool .fa {
    margin-right: 3px;
    font-size: 12px;
}

/* 帖子页、论坛内页没有底部导航，不需要给导航留 74px 的空白 */
.pd-body .shell,
.no-bottom-nav .shell {
    padding-bottom: 18px;
}

/* ------------------------------------------------------------------
 * 窄屏（≤350）微调
 * ------------------------------------------------------------------ */
@media screen and (max-width: 350px) {
    .p2-title {
        font-size: 21px;
    }

    .p2-title .p2-badge {
        height: 21px;
        line-height: 19px;
    }

    .p2-body p {
        font-size: 15.5px;
    }

    .p3-attach-main {
        margin-right: 80px;
    }
}

/* 帖子详情：正文直接铺在页面底色上（与应用详情页一致），不再套白色卡片 */
.pd > .container {
    padding-top: 2px;
    padding-bottom: 16px;
}

/* ==================================================================
 * 通用横幅（页面头图）
 * 结构：图标 + 主文案（kicker / 标题 / 描述）+ 右上角计数
 * 配色走修饰类：.p-hero--teal（爱思正版）、.p-hero--indigo（合集）
 * ================================================================== */

.p-hero {
    position: relative;
    margin-top: 14px;
    padding: 15px 14px 14px;
    border-radius: 14px;
    color: #ffffff;
}

/* 爱思正版：青绿 */
.p-hero--teal {
    background-color: #0f5f6e;
    background-image: -webkit-linear-gradient(top left, #1ba8a8 0%, #0f5f6e 100%);
    background-image: linear-gradient(135deg, #1ba8a8 0%, #0f5f6e 100%);
    box-shadow: 0 8px 18px rgba(15, 95, 110, 0.18);
}

/* 合集：蓝紫 */
.p-hero--indigo {
    background-color: #4338ca;
    background-image: -webkit-linear-gradient(top left, #6366f1 0%, #7c3aed 100%);
    background-image: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.22);
}

.p-hero-ico {
    float: left;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    text-align: center;
}

.p-hero-ico .fa {
    font-size: 19px;
    line-height: 38px;
}

.p-hero-main {
    display: block;
    margin-left: 50px;
}

.p-hero-kicker {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: 14px;
    letter-spacing: 0.7px;
}

.p-hero-main h2 {
    margin-top: 1px;
    font-size: 19px;
    font-weight: 800;
    line-height: 24px;
    letter-spacing: -0.4px;
}

.p-hero-main p {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 13.5px;
    line-height: 1.6;
}

.p-hero-count {
    position: absolute;
    right: 12px;
    top: 12px;
    padding: 2px 8px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    line-height: 16px;
}

/* ==================================================================
 * 爱思正版页（/aisi.html）：搜索 → 排序 → 分类 → 双列 → 分页
 * ================================================================== */

/* 排序：小标题 + 三个胶囊 */
.ai-sorts {
    margin-top: 12px;
    font-size: 0;
}

.ai-sorts-label {
    float: left;
    margin-right: 9px;
    color: #9ca3af;
    font-size: 13.5px;
    line-height: 30px;
}

.ai-sorts .s-chip {
    margin-right: 6px;
}

/* 分类横滑：去掉最后一项的右边距 */
.ai-cats {
    margin-top: 2px;
}

.ai-cats .s-chip:last-child {
    margin-right: 0;
}

.ai-cat-n {
    margin-left: 2px;
    color: #b0b7c3;
    font-size: 13px;
    font-style: normal;
}

.s-chip.on .ai-cat-n {
    color: rgba(255, 255, 255, 0.75);
}

/* ==================================================================
 * 合集列表（/collection.html）
 * 结构：标题 + 说明 → 封面大卡（分类 / 款数 / 标题 / 简介 / 预览图标）
 * ================================================================== */

.cl-lead {
    padding: 4px 0 14px;
    color: #8a91a0;
    font-size: 14px;
    line-height: 16px;
}

.cl-card {
    position: relative;
    display: block;
    height: 200px;
    margin-bottom: 14px;
    border-radius: 16px;
    overflow: hidden;
    background-color: #1e293b;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
}

/* 上下压暗：顶部让角标可读，底部让标题和简介可读
   border-radius 继承父级：iOS 5/6 的 overflow:hidden 裁不掉绝对定位子元素，
   不补的话压暗层会在四个角露出方形。 */
.cl-mask {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    border-radius: inherit;
    background-image: -webkit-linear-gradient(top, rgba(2, 6, 23, 0.26) 0%, rgba(2, 6, 23, 0.32) 42%, rgba(2, 6, 23, 0.9) 100%);
    background-image: linear-gradient(to bottom, rgba(2, 6, 23, 0.26) 0%, rgba(2, 6, 23, 0.32) 42%, rgba(2, 6, 23, 0.9) 100%);
}

.cl-top {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 13px;
}

.cl-tag {
    float: left;
    padding: 0 8px;
    border-radius: 8px;
    background: rgba(2, 6, 23, 0.42);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
}

/* 右上角序号：01、02… */
.cl-num {
    float: right;
    padding: 0 7px;
    border-radius: 8px;
    background: rgba(2, 6, 23, 0.42);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    line-height: 18px;
}

/* 款数：放在底部图标后面 */
.cl-cnt {
    float: left;
    margin-left: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    line-height: 24px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.cl-main {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 52px;
}

.cl-title {
    display: block;
    overflow: hidden;
    color: #ffffff;
    font-size: 19px;
    font-weight: 800;
    line-height: 24px;
    letter-spacing: -0.3px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.cl-desc {
    display: block;
    margin-top: 5px;
    height: 33px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.86);
    font-size: 13.5px;
    line-height: 16.5px;
}

.cl-foot {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 12px;
    padding-top: 9px;
    border-top: 1px solid rgba(255, 255, 255, 0.26);
}

/* 预览图标叠在一起 */
.cl-avs {
    float: left;
    height: 24px;
    padding-left: 7px;
    font-size: 0;
}

.cl-av {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-left: -7px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.9);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.cl-av-none {
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
    font-size: 13.5px;
    line-height: 20px;
    text-align: center;
}

.cl-go {
    float: right;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 24px;
}

.cl-go .fa {
    margin-left: 3px;
    font-size: 14px;
}

/* 翻页过头时的返回入口 */
.cl-back {
    margin-top: 16px;
    text-align: center;
}

.cl-back a {
    display: inline-block;
    padding: 0 16px;
    border-radius: 15px;
    background: #eef2ff;
    color: #2563eb;
    font-size: 14px;
    font-weight: 700;
    line-height: 30px;
}

@media screen and (max-width: 350px) {
    .p-hero-main h2 {
        font-size: 18px;
    }

    .p-hero-main p {
        font-size: 13px;
    }

    .cl-cover {
        height: 136px;
    }
}

/* ==================================================================
 * 论坛 · 用户主页（/forum/user/{userId}.html）
 * 结构：返回 + 标题 → 资料卡（头像 / 徽章 / 签名 / 四项数据）
 *       → Tab（帖子 / 评论 / 递交）→ 列表 → 分页
 * ================================================================== */

/* 资料卡 */
.u-hero {
    margin-top: 8px;
    padding: 0;
    border-bottom: 1px solid #e4e7ee;
}

.u-ava {
    float: left;
    width: 62px;
    height: 62px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #eef2ff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.u-ava-txt {
    color: #4f46e5;
    font-size: 24px;
    font-weight: 800;
    line-height: 58px;
    text-align: center;
}

.u-main {
    margin-left: 76px;
}

.u-name {
    overflow: hidden;
    color: #111827;
    font-size: 18px;
    font-weight: 800;
    line-height: 24px;
    letter-spacing: -0.3px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* 名字和勋章同一行；勋章放不下时逐个换到下一行 */
.u-name-row {
    font-size: 0;
    line-height: 24px;
}

.u-name-row .u-name {
    display: inline-block;
    max-width: 100%;
    padding-right: 6px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    vertical-align: middle;
}

.u-name-row .u-badges {
    display: inline;
    margin-top: 0;
}

.u-name-row .u-badge,
.u-name-row .u-badge-img {
    margin-bottom: 0;
    vertical-align: middle;
}

.u-badges {
    margin-top: 5px;
    font-size: 0;
}

.u-badge {
    display: inline-block;
    margin: 0 6px 4px 0;
    padding: 0 7px;
    border-radius: 8px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 12px;
    font-weight: 700;
    line-height: 17px;
}

.u-badge-img {
    display: inline-block;
    height: 18px;
    margin: 0 6px 4px 0;
    border-radius: 3px;
    vertical-align: middle;
}

.u-sign {
    margin-top: 6px;
    color: #6b7280;
    font-size: 14px;
    line-height: 16px;
}

.u-sign.is-empty {
    color: #b6bdc9;
}

.u-meta {
    margin-top: 8px;
    color: #9ca3af;
    font-size: 13px;
    line-height: 15px;
}

.u-meta b {
    color: #4b5563;
    font-weight: 600;
}

.u-meta + .u-meta {
    margin-top: 3px;
}

/* UID / 最后活跃：与昵称、签名左对齐 */
.u-meta-row {
    clear: both;
    margin-left: 76px;
}

.u-meta-i {
    display: inline-block;
    white-space: nowrap;
}

.u-meta-i + .u-meta-i {
    margin-left: 10px;
}

/* 四项数据 */
.u-stats {
    clear: both;
    margin-top: 13px;
    border-top: 1px solid #e4e7ee;
}

.u-stat {
    float: left;
    width: 25%;
    padding: 11px 0 12px;
    border-left: 1px solid #e4e7ee;
    text-align: center;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.u-stat:first-child {
    border-left: 0;
}

.u-stat b {
    display: block;
    color: #111827;
    font-size: 16px;
    font-weight: 800;
    line-height: 20px;
}

.u-stat span {
    display: block;
    margin-top: 2px;
    color: #9ca3af;
    font-size: 12.5px;
    line-height: 13px;
}

/* Tab */
.u-tabs {
    border-bottom: 1px solid #e4e7ee;
}

.u-tab {
    position: relative;
    float: left;
    width: 33.33%;
    color: #6b7280;
    font-size: 14.5px;
    line-height: 42px;
    text-align: center;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.u-tab em {
    margin-left: 4px;
    color: #b0b7c3;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
}

.u-tab.on {
    color: #111827;
    font-weight: 800;
}

.u-tab.on:after {
    content: "";
    position: absolute;
    left: 30%;
    right: 30%;
    bottom: -1px;
    height: 2px;
    background: #2563eb;
    border-radius: 1px;
}

.u-tab.on em {
    color: #2563eb;
    font-weight: 700;
}

/* 列表卡片 */
.u-item {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid #e4e7ee;
}

.u-tabs + .u-item {
    padding-top: 15px;
}

.u-item-top {
    margin-bottom: 7px;
    font-size: 0;
}

.u-item-top .badge {
    margin-right: 5px;
}

/* 状态标签和板块徽章统一按中线对齐，避免一高一低看着像两行 */
.u-item-top .u-flag,
.u-item-top .badge {
    vertical-align: middle;
}

.u-item-time {
    float: right;
    color: #b0b7c3;
    font-size: 13px;
    line-height: 20px;
}

.u-item-title {
    display: block;
    color: #111827;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 20px;
}

/* 标题行内的状态标签 / 板块徽章：和标题文字同一基线 */
.u-item-title .u-flag,
.u-item-title .badge {
    vertical-align: middle;
}

.u-item-title .badge {
    margin-right: 6px;
}

.u-item-sum {
    display: block;
    margin-top: 5px;
    height: 32px;
    overflow: hidden;
    color: #9ca3af;
    font-size: 13.5px;
    line-height: 16px;
}

.u-item-foot {
    margin-top: 9px;
    color: #b0b7c3;
    font-size: 13px;
    line-height: 14px;
}

/* 时间挪到统计行右侧，和浏览/评论/点赞同一行 */
.u-item-foot .u-item-time {
    float: right;
    line-height: 14px;
}

.u-stat-i {
    margin-right: 12px;
}

.u-stat-i .fa {
    margin-right: 3px;
    font-size: 12.5px;
}

/* 评论卡片 */
.u-cmt-text {
    color: #374151;
    font-size: 15px;
    line-height: 19px;
}

/* 评论内容前的状态标签 / 徽章：和文字同一行、垂直居中 */
.u-cmt-text .u-flag,
.u-cmt-text .badge {
    vertical-align: middle;
}

.u-cmt-text .badge {
    margin-right: 6px;
}

.u-cmt-src {
    margin-top: 7px;
    color: #9ca3af;
    font-size: 13.5px;
    line-height: 15px;
}

.u-cmt-src .fa {
    margin-right: 4px;
    color: #c7cdd6;
}

.u-cmt-src b {
    color: #6b7280;
    font-weight: 600;
}

/* 递交的版本 */
.u-app {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid #e4e7ee;
}

.u-tabs + .u-app {
    padding-top: 15px;
}

.u-app-ico {
    float: left;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #eef2ff;
}

.u-get {
    float: right;
    width: 46px;
    height: 22px;
    margin-top: 13px;
    border-radius: 11px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    line-height: 22px;
}

.u-app-main {
    margin-left: 60px;
    margin-right: 56px;
}

.u-app-name {
    overflow: hidden;
    color: #111827;
    font-size: 15px;
    font-weight: 700;
    line-height: 18px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.u-app-name em {
    margin-left: 4px;
    color: #9ca3af;
    font-size: 12.5px;
    font-style: normal;
    font-weight: 400;
}

.u-app-meta {
    margin-top: 3px;
    color: #9ca3af;
    font-size: 13px;
    line-height: 14px;
}

.u-app-time {
    margin-top: 3px;
    color: #b0b7c3;
    font-size: 12.5px;
    line-height: 13px;
}

/* 空状态：扁平页面里不再套白卡 */
.u-empty {
    padding: 42px 16px 38px;
    border-bottom: 1px solid #e4e7ee;
    text-align: center;
}

.u-empty h3 {
    color: #111827;
    font-size: 15px;
    font-weight: 700;
}

.u-empty p {
    margin-top: 8px;
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.6;
}

/* 审核中 / 置顶 小标签 */
.u-flag {
    display: inline-block;
    margin-right: 5px;
    padding: 0 6px;
    border-radius: 7px;
    background: #fff7ed;
    color: #ea580c;
    font-size: 12px;
    font-weight: 700;
    line-height: 17px;
    vertical-align: 1px;
}

.u-flag.is-top {
    background: #fef2f2;
    color: #dc2626;
}

/* ==================================================================
 * 合集详情（/collection/{id}.html）
 * 结构：返回 + 题头 → 封面细带 → 排版头 → 编号列表 → 分页
 * ================================================================== */

/* 与返回按钮同高（34px）并垂直居中 */
.cb-kicker {
    position: absolute;
    left: 56px;
    right: 56px;
    top: 28px;
    height: 34px;
    overflow: hidden;
    color: #ffffff;
    font-size: 0;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-align: center;
    white-space: nowrap;
}

.cb-kicker span {
    display: inline-block;
    margin-top: 8px;
    padding: 0 10px;
    border-radius: 10px;
    background: rgba(2, 6, 23, 0.42);
    font-size: 13px;
    line-height: 18px;
    vertical-align: top;
}

.cb-kicker .fa {
    margin-right: 4px;
    font-size: 11.5px;
}

/* 封面头图：合集信息直接压在图片上 */
.cb-hero {
    position: relative;
    background-color: #1e293b;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.cb-mask {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-image: -webkit-linear-gradient(top, rgba(2, 6, 23, 0.26) 0%, rgba(2, 6, 23, 0.46) 46%, rgba(2, 6, 23, 0.86) 100%);
    background-image: linear-gradient(to bottom, rgba(2, 6, 23, 0.26) 0%, rgba(2, 6, 23, 0.46) 46%, rgba(2, 6, 23, 0.86) 100%);
}

.cb-hero-in {
    position: relative;
    padding-top: 122px;
    padding-bottom: 16px;
}

.cb-tag {
    display: inline-block;
    padding: 0 8px;
    border-radius: 4px;
    background: rgba(2, 6, 23, 0.34);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 18px;
}

.cb-title {
    margin-top: 10px;
    color: #ffffff;
    font-size: 31px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 36px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    word-wrap: break-word;
}

@media screen and (max-width: 350px) {
    .cb-title {
        font-size: 27px;
        line-height: 32px;
    }
}

.cb-desc {
    margin-top: 8px;
    max-height: 34px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    line-height: 17px;
}

/* 头图下方的统计条 */
.cb-rule {
    padding: 13px 0 11px;
    border-bottom: 1px solid #e4e7ee;
    color: #9ca3af;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.cb-rule b {
    margin-right: 3px;
    color: #111827;
    font-weight: 700;
}

.cb-rule span {
    float: right;
}

.cb-list {
    margin-top: 2px;
}

.cb-row {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid #e4e7ee;
}

.cb-num {
    float: left;
    width: 42px;
    padding-top: 7px;
    color: #d3d8e2;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 22px;
}

.cb-ico {
    float: left;
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: #eef2ff;
}

.cb-go {
    float: right;
    margin-top: 14px;
    color: #c3c9d4;
    font-size: 18px;
    line-height: 16px;
}

.cb-main {
    display: block;
    margin-left: 98px;
    margin-right: 18px;
    padding-top: 3px;
}

.cb-name {
    display: block;
    overflow: hidden;
    color: #111827;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 19px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.cb-meta {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: #9ca3af;
    font-size: 13px;
    line-height: 14px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.cb-flag {
    display: inline-block;
    margin-right: 5px;
    padding: 0 5px;
    border-radius: 4px;
    background: #fffbeb;
    color: #b45309;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 14px;
    vertical-align: 1px;
}

.cb-off {
    display: block;
    margin-left: 42px;
    padding-top: 8px;
    color: #b0b7c3;
    font-size: 14px;
    line-height: 18px;
}

/* 空状态 */
.cb-empty {
    padding: 52px 16px 46px;
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

/* ==================================================================
 * 分类页（/category/{id}.html）
 * 结构：返回 + 题头 → 分类头 → 简介 → 统计 → 分类切换 → 应用列表 → 分页
 * ================================================================== */

.cg-head {
    float: right;
}

.cg-mark {
    float: left;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    text-align: center;
}

.cg-mark .fa {
    /* 块级 + 行高 = 色块高度：图标按行盒居中，不受父级基线下沉影响 */
    display: block;
    width: 100%;
    height: 100%;
    font-size: 22px;
    line-height: 48px;
    text-align: center;
}

/* 发现页分类卡片的图标同理：块级显示，行高继承卡片的 .m-ico 尺寸 */
.m-ico .fa {
    display: block;
    width: 100%;
    height: 100%;
    line-height: inherit;
    text-align: center;
}

.cg-head-txt {
    display: block;
    margin-left: 62px;
    padding-top: 1px;
}

.cg-en {
    overflow: hidden;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.4px;
    line-height: 13px;
    text-transform: uppercase;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.cg-title {
    margin-top: 4px;
    color: #111827;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 34px;
}

@media screen and (max-width: 350px) {
    .cg-title {
        font-size: 26px;
        line-height: 31px;
    }
}

.cg-desc {
    margin-top: 12px;
    color: #6b7280;
    font-size: 14px;
    line-height: 18px;
    text-align: right;
}

.cg-rule {
    margin-top: 14px;
    padding: 10px 0;
    border-top: 2px solid #111827;
    border-bottom: 1px solid #e4e7ee;
    color: #9ca3af;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.cg-rule b {
    margin-right: 3px;
    color: #111827;
    font-weight: 700;
}

.cg-rule span {
    float: right;
}

/* 同类型分类：横向滚动 */
.cg-scroll {
    margin-top: 12px;
    margin-left: -14px;
    margin-right: -14px;
    padding: 0 14px 2px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    font-size: 0;
}

.cg-scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.cg-scroll .s-chip {
    margin: 0 8px 0 0;
}

/* 应用列表 */
.cg-list {
    margin-top: 6px;
}

.cg-row {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #e4e7ee;
}

.cg-app-ico {
    float: left;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #eef2ff;
}

.cg-get {
    float: right;
    width: 46px;
    height: 22px;
    margin-top: 13px;
    border-radius: 11px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    line-height: 22px;
}

.cg-main {
    display: block;
    margin-left: 60px;
    margin-right: 56px;
    padding-top: 3px;
}

.cg-name {
    display: block;
    overflow: hidden;
    color: #111827;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 18px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.cg-meta {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: #9ca3af;
    font-size: 13px;
    line-height: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.cg-empty {
    padding: 54px 16px 46px;
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

/* ==================================================================
 * 登录 / 注册 / 找回密码（编辑风：大标题 + 2px 黑线 + 下划线输入框）
 * ================================================================== */

.au-body,
.au-body .shell {
    background: #ffffff;
}

.au-body .shell {
    padding-bottom: 26px;
}

.au {
    padding-top: 0;
    padding-bottom: 34px;
}

/* 标题 */
.au-title {
    margin: 14px 0 0;
    color: #111827;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
}

.au-sub {
    margin: 8px 0 0;
    color: #9ca3af;
    font-size: 13.5px;
    line-height: 1.6;
}

.au-rule {
    height: 2px;
    margin: 16px 0 26px;
    background: #111827;
}

/* 表单 */
.au-field {
    margin-bottom: 20px;
}

.au-field > label {
    display: block;
    margin-bottom: 7px;
    color: #9ca3af;
    font-size: 13px;
    letter-spacing: 0.6px;
    line-height: 1.4;
}

.au-input {
    display: block;
    width: 100%;
    padding: 2px 0 11px;
    border: 0;
    border-bottom: 1px solid #e4e7ee;
    border-radius: 0;
    background: transparent;
    color: #111827;
    font-size: 16px;
    line-height: 1.3;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.au-input:focus {
    border-bottom-color: #111827;
}

.au-input::-webkit-input-placeholder {
    color: #c3c9d3;
}

/* 登录图形验证码：下划线输入框 + 右侧缩略图 */
.au-login-captcha-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: end;
    -webkit-align-items: flex-end;
    align-items: flex-end;
}

.au-login-captcha-input {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    margin-right: 12px;
}

.au-login-captcha-refresh {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    line-height: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.au-login-captcha-img {
    display: block;
    width: 124px;
    height: 39px;
    border: 1px solid #e4e7ee;
    border-radius: 8px;
    background: #f3f4f7;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.au-login-captcha-tip {
    margin: 7px 0 0;
    color: #b0b7c3;
    font-size: 12.5px;
    line-height: 1.5;
}

.au-login-captcha {
    -webkit-animation: auLoginCaptchaIn .22s ease both;
    animation: auLoginCaptchaIn .22s ease both;
}

@-webkit-keyframes auLoginCaptchaIn {
    from { opacity: 0; -webkit-transform: translateY(-3px); }
    to { opacity: 1; -webkit-transform: translateY(0); }
}

@keyframes auLoginCaptchaIn {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
}

.au-hint {
    margin: 7px 0 0;
    color: #b0b7c3;
    font-size: 13px;
    line-height: 1.5;
}

/* 验证码行：输入框 + 右侧「获取验证码」 */
.au-code {
    position: relative;
}

.au-code .au-input {
    padding-right: 106px;
}

.au-code-btn {
    position: absolute;
    right: 0;
    bottom: 5px;
    padding: 6px 0 6px 12px;
    border-left: 1px solid #e4e7ee;
    background: #ffffff;
    color: #2563eb;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 17px;
    white-space: nowrap;
}

.au-code-btn.off {
    color: #b0b7c3;
}

/* 记住我 / 忘记密码 */
.au-row {
    margin: 24px 0;
    font-size: 13.5px;
    line-height: 18px;
}

.au-check {
    position: relative;
    float: left;
    padding-left: 23px;
    color: #6b7280;
}

.au-check input {
    position: absolute;
    left: 0;
    top: 1px;
    width: 17px;
    height: 17px;
    margin: 0;
    opacity: 0;
}

.au-check i {
    position: absolute;
    left: 0;
    top: 1px;
    display: block;
    width: 15px;
    height: 15px;
    border: 1px solid #cfd5e0;
    border-radius: 4px;
    background: #ffffff;
}

.au-check input:checked + i {
    border-color: #111827;
    background: #111827;
}

.au-check input:checked + i:after {
    content: "✓";
    display: block;
    color: #ffffff;
    font-size: 12.5px;
    line-height: 15px;
    text-align: center;
}

.au-forget {
    float: right;
    color: #2563eb;
}

/* 注册协议 */
.au-agree {
    margin: 4px 0 24px;
    color: #6b7280;
    font-size: 13.5px;
    line-height: 20px;
}

.au-agree .au-check {
    display: inline-block;
    float: none;
    padding-left: 23px;
    vertical-align: top;
}

.au-agree a {
    color: #2563eb;
}

/* 主按钮 */
.au-btn {
    display: block;
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 12px;
    background: #111827;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    -webkit-appearance: none;
    appearance: none;
}

.au-btn:active {
    background: #000000;
}

.au-btn.off,
.au-btn[disabled] {
    background: #9ca3af;
}

/* 说明与底部链接 */
.au-tip {
    margin: 16px 0 0;
    color: #9ca3af;
    font-size: 13.5px;
    line-height: 1.7;
}

.au-alt {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid #e4e7ee;
    color: #9ca3af;
    font-size: 13.5px;
    line-height: 1.9;
}

.au-alt a {
    color: #2563eb;
    font-weight: 600;
}

.au-alt .au-alt-r {
    float: right;
}

/* 注册入口与协议说明之间的分隔点 */
.au-alt-sep {
    margin: 0 6px;
    color: #d1d5db;
}

/* ==================================================================
 * 全局弹窗 / 轻提示（MobileDialog，手机端所有页面共用）
 * ================================================================== */
.md-mask {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 10010;
    background: rgba(17, 24, 39, 0.45);
    display: none;
}

.md-mask.on {
    display: block;
}

.md-modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 10011;
    display: none;
}

.md-modal.on {
    display: table;
}

.md-cell {
    display: table-cell;
    padding: 0 28px;
    vertical-align: middle;
}

.md-box {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 22px 20px 18px;
    border-radius: 16px;
    background: #ffffff;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

/* 素材选择等需要更多横向空间的弹窗 */
.md-modal-wide .md-cell {
    padding: 0 14px;
}

.md-box-wide {
    max-width: 380px;
    padding: 20px 18px 16px;
}

.md-box-wide .md-title {
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f3f8;
    text-align: left;
}

.md-title {
    margin: 0;
    color: #111827;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.md-body {
    margin-top: 10px;
    overflow-y: auto;
    color: #6b7280;
    font-size: 14.5px;
    line-height: 1.7;
    text-align: center;
    word-wrap: break-word;
    word-break: break-word;
    -webkit-overflow-scrolling: touch;
}

.md-body p {
    margin: 0 0 6px;
}

.md-body p:last-child {
    margin-bottom: 0;
}

.md-body a {
    color: #2563eb;
}

.md-acts {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    margin-top: 18px;
}

.md-btn {
    display: block;
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 0%;
    -ms-flex: 1 1 0%;
    flex: 1 1 0%;
    min-width: 0;
    height: 40px;
    border-radius: 10px;
    background: #111827;
    color: #ffffff;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 40px;
    text-align: center;
    white-space: nowrap;
}

/* 两个按钮时并排一行，中间留 10px 间距 */
.md-btn + .md-btn {
    margin-left: 10px;
}

/* 只有一个按钮时保持整行大按钮 */
.md-btn:only-child {
    height: 44px;
    border-radius: 11px;
    font-size: 15px;
    line-height: 44px;
}

.md-btn:active {
    background: #000000;
}

.md-btn.md-danger {
    background: #dc2626;
}

.md-btn.md-danger:active {
    background: #b91c1c;
}

.md-btn.md-cancel {
    margin-top: 0;
    background: #f3f4f7;
    color: #6b7280;
}

.md-btn.md-cancel:active {
    background: #e9ebf0;
}

.md-toast {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 84px;
    z-index: 10020;
    display: none;
    padding: 9px 14px;
    border-radius: 10px;
    background: rgba(17, 24, 39, 0.9);
    color: #ffffff;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

.md-toast.on {
    display: block;
}

/* ==================================================================
 * 服务条款确认弹窗（登录用户首次进入）
 * iOS 5/6 兼容：不使用 flex / CSS 变量 / calc / vh
 * ================================================================== */
.terms-gate {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 10030;
    display: table;
    background: rgba(17, 24, 39, 0.55);
}

.terms-gate-cell {
    display: table-cell;
    padding: 0 18px;
    vertical-align: middle;
}

.terms-gate-box {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    padding: 20px 18px 16px;
    border-radius: 16px;
    background: #ffffff;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.terms-gate-title {
    margin: 0 0 12px;
    color: #111827;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.terms-gate-body p {
    margin: 0 0 9px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
    word-wrap: break-word;
    word-break: break-word;
}

.terms-gate-link {
    color: #2563eb;
}

.terms-gate-check {
    display: block;
    margin-top: 11px;
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
}

.terms-gate-check input {
    margin: 0 6px 0 0;
    vertical-align: -2px;
}

.terms-gate-foot {
    margin-top: 18px;
    text-align: right;
}

.terms-gate-danger,
.terms-gate-primary {
    display: inline-block;
    height: 38px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 36px;
    text-align: center;
    text-decoration: none;
    -webkit-appearance: none;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.terms-gate-danger {
    margin-right: 8px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #dc2626;
}

.terms-gate-primary {
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #ffffff;
}

.terms-gate-primary[disabled] {
    opacity: 0.7;
}

/* 图形验证码 */
.au-cap-img {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 14px;
    border-radius: 8px;
    background: #f3f4f7;
}

.au-cap-input {
    display: block;
    width: 100%;
    height: 44px;
    margin-top: 10px;
    padding: 0 12px;
    border: 1px solid #e4e7ee;
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
    font-size: 16px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.au-cap-tip {
    margin: 8px 0 0;
    color: #b0b7c3;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

/* ------------------------------------------------------------------
 * 服务条款
 * ------------------------------------------------------------------ */
.tos-meta {
    margin-top: 10px;
    color: #9ca3af;
    font-size: 13.5px;
    line-height: 1.6;
}

.tos-alert {
    margin-top: 18px;
    padding: 16px 16px 14px;
    border-left: 3px solid #d97706;
    border-radius: 0 12px 12px 0;
    background: #fffbeb;
}

.tos-alert h2 {
    color: #92400e;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
}

.tos-alert p {
    margin-top: 8px;
    color: #78350f;
    font-size: 14.5px;
    line-height: 1.85;
}

.tos-alert strong {
    color: #92400e;
    font-weight: 700;
}

.tos-body {
    margin-top: 26px;
}

.tos-sec {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #e4e7ee;
}

.tos-sec:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.tos-sec h2 {
    color: #111827;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
}

.tos-sec p {
    margin-top: 10px;
    color: #374151;
    font-size: 15px;
    line-height: 1.95;
}

.tos-sec ul {
    margin-top: 8px;
    padding: 0;
    list-style: none;
}

.tos-sec li {
    position: relative;
    margin-top: 6px;
    padding-left: 16px;
    color: #374151;
    font-size: 15px;
    line-height: 1.9;
}

.tos-sec li:before {
    content: "—";
    position: absolute;
    left: 0;
    color: #c3c8d2;
}

.tos-sec strong {
    color: #111827;
    font-weight: 700;
}

.tos-sign {
    margin-top: 28px;
    color: #9ca3af;
    font-size: 13.5px;
    line-height: 1.8;
    text-align: right;
}

.tos-sign--name {
    margin-top: 6px;
    color: #6b7280;
    font-weight: 700;
}

/* ==================================================================
 * 用户中心（/user/dashboard.html）
 * 结构：返回 + 题头 → 资料卡（头像 / 徽章 / 四项数据）
 *       → 快捷入口 → 分组列表 → 退出登录
 * 资料卡复用论坛个人主页的 .u-* 组件，补充卡片外壳样式
 * ================================================================== */

.uc-hero {
    margin-top: 14px;
    padding: 14px 14px 0;
    border-radius: 12px;
}

/* 昵称与徽章同一行 */
.uc-hero .u-name {
    display: inline-block;
    max-width: 62%;
    vertical-align: middle;
}

.uc-hero .u-badges {
    display: inline-block;
    margin-top: 0;
    margin-left: 4px;
    vertical-align: middle;
}

.uc-hero .u-badge {
    margin-bottom: 0;
}

/* 快捷入口：四等分 */
.uc-quick {
    margin-top: 12px;
    padding: 4px 0;
    border-radius: 12px;
}

.uc-quick-item {
    float: left;
    width: 25%;
    padding: 9px 0 8px;
    text-align: center;
}

.uc-quick-ico {
    display: block;
    width: 38px;
    height: 38px;
    margin: 0 auto 6px;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 17px;
    line-height: 38px;
    text-align: center;
}

.uc-quick-item b {
    display: block;
    overflow: hidden;
    color: #374151;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 16px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* 分组列表 */
.uc-group {
    margin-top: 16px;
}

.uc-group-title {
    padding: 0 2px 7px;
    color: #9ca3af;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    line-height: 16px;
}

.uc-list {
    border: 1px solid #eef0f5;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.uc-row {
    position: relative;
    display: block;
    padding: 10px 32px 10px 12px;
    border-top: 1px solid #f1f3f8;
}

.uc-row:first-child {
    border-top: 0;
}

.uc-row-ico {
    float: left;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 15px;
    line-height: 32px;
    text-align: center;
}

.uc-row-main {
    display: block;
    margin-left: 43px;
}

.uc-row-title {
    display: block;
    color: #111827;
    font-size: 15.5px;
    font-weight: 600;
    line-height: 19px;
}

.uc-row-sub {
    display: block;
    margin-top: 2px;
    color: #9ca3af;
    font-size: 13px;
    line-height: 15px;
}

.uc-row-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    margin-top: -8px;
    color: #c7cdd6;
    font-size: 16px;
    line-height: 16px;
}

/* 图标底色：快捷入口和列表行共用 */
.uc-quick-ico.is-amber,
.uc-row-ico.is-amber {
    background: #fffbeb;
    color: #d97706;
}

.uc-quick-ico.is-rose,
.uc-row-ico.is-rose {
    background: #fff1f2;
    color: #e11d48;
}

.uc-quick-ico.is-violet,
.uc-row-ico.is-violet {
    background: #f5f3ff;
    color: #7c3aed;
}

.uc-quick-ico.is-green,
.uc-row-ico.is-green {
    background: #ecfdf5;
    color: #059669;
}

.uc-quick-ico.is-cyan,
.uc-row-ico.is-cyan {
    background: #ecfeff;
    color: #0891b2;
}

.uc-quick-ico.is-gray,
.uc-row-ico.is-gray {
    background: #f3f4f6;
    color: #6b7280;
}

/* 退出登录 */
.uc-logout {
    display: block;
    margin: 20px 0 4px;
    border: 1px solid #fecaca;
    border-radius: 12px;
    background: #ffffff;
    color: #dc2626;
    font-size: 15.5px;
    font-weight: 600;
    line-height: 46px;
    text-align: center;
}

/* 徽章配色（基础样式见论坛个人主页 .u-badge） */
.u-badge.is-gray {
    background: #f3f4f6;
    color: #6b7280;
}

.u-badge.is-green {
    background: #f0fdf4;
    color: #15803d;
}

.u-badge.is-cyan {
    background: #ecfeff;
    color: #0e7490;
}

/* 未激活提示复用论坛公告条样式，仅调整配色 */
.f2-notice.is-warn .f2-notice-ico {
    background: #fff7ed;
    color: #ea580c;
}

.f2-notice.is-warn .f2-notice-main em {
    color: #ea580c;
}

/* ==================================================================
 * 用户中心 · 通用页面组件
 * 覆盖：设置列表 / 表单 / 应用列表 / 截图列表 / 选项 / 上传 / 文档
 * 兼容 iOS 5/6：float + inline-block + table，无 flex / grid / calc
 * ================================================================== */

.uc-hide {
    display: none !important;
}

/* 页面导语 / 提示条 */
.uc-note {
    margin-top: 12px;
    color: #9ca3af;
    font-size: 13.5px;
    line-height: 18px;
}

.uc-note .fa {
    margin-right: 4px;
}

.uc-alert {
    margin-top: 14px;
    padding: 11px 12px;
    border-radius: 10px;
    background: #f8fafc;
    color: #475569;
    font-size: 13.5px;
    line-height: 19px;
}

.uc-alert b {
    color: #111827;
    font-weight: 700;
}

.uc-alert a {
    color: #2563eb;
    font-weight: 600;
}

.uc-alert.is-warn {
    background: #fffbeb;
    color: #b45309;
}

.uc-alert.is-warn b {
    color: #92400e;
}

.uc-alert.is-danger {
    background: #fef2f2;
    color: #b91c1c;
}

.uc-alert.is-danger b {
    color: #991b1b;
}

.uc-alert.is-ok {
    background: #f0fdf4;
    color: #15803d;
}

/* 白色内容卡 */
.uc-card {
    margin-top: 14px;
    padding: 14px;
    border-radius: 12px;
}

.uc-card-title {
    color: #111827;
    font-size: 15px;
    font-weight: 800;
    line-height: 20px;
}

.uc-card-desc {
    margin-top: 5px;
    color: #9ca3af;
    font-size: 13.5px;
    line-height: 17px;
}

/* 表单 */
.uc-form {
    margin-top: 14px;
    padding: 14px;
    border-radius: 12px;
}

.uc-field {
    margin-top: 14px;
}

.uc-field:first-child {
    margin-top: 0;
}

.uc-label {
    display: block;
    margin-bottom: 7px;
    color: #374151;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 16px;
}

.uc-input {
    display: block;
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #e4e7ee;
    border-radius: 10px;
    background: #f9fafb;
    color: #111827;
    font-family: inherit;
    font-size: 15px;
    line-height: normal;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.uc-input:focus {
    border-color: #93c5fd;
    background: #ffffff;
    outline: 0;
}

.uc-input::-webkit-input-placeholder {
    color: #b6bdc9;
}

.uc-textarea {
    height: auto;
    min-height: 88px;
    padding: 10px 12px;
    line-height: 20px;
    resize: vertical;
}

.uc-hint {
    margin-top: 6px;
    color: #9ca3af;
    font-size: 13px;
    line-height: 16px;
}

/* 验证码行：输入框 + 右侧按钮 / 图片 */
.uc-code {
    position: relative;
}

.uc-code .uc-input {
    padding-right: 108px;
}

.uc-code-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    height: 32px;
    margin: 0;
    padding: 0 11px;
    border: 0;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 32px;
}

.uc-code-btn.off {
    background: #f3f4f6;
    color: #9ca3af;
}

.uc-cap-row {
    position: relative;
    padding-right: 102px;
}

.uc-cap {
    position: absolute;
    right: 0;
    top: 0;
    width: 94px;
    height: 42px;
    border-radius: 10px;
    background: #eef0f5;
}

/* 按钮 */
.uc-btn {
    display: block;
    width: 100%;
    height: 44px;
    margin: 16px 0 0;
    padding: 0 14px;
    border: 0;
    border-radius: 11px;
    background: #eff6ff;
    color: #2563eb;
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 44px;
    text-align: center;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.uc-btn.is-primary {
    background: #2563eb;
    color: #ffffff;
}

.uc-btn.is-danger {
    border: 1px solid #fecaca;
    background: #ffffff;
    color: #dc2626;
    line-height: 42px;
}

.uc-btn.is-disabled,
.uc-btn[disabled] {
    opacity: 0.55;
}

/* 列表里的小按钮 */
.uc-mini {
    display: inline-block;
    height: 30px;
    margin: 0 0 0 6px;
    padding: 0 12px;
    border: 1px solid #e4e7ee;
    border-radius: 8px;
    background: #ffffff;
    color: #4b5563;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 28px;
    text-align: center;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.uc-mini.is-primary {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #2563eb;
}

.uc-mini.is-danger {
    border-color: #fecaca;
    background: #ffffff;
    color: #dc2626;
}

/* 单选式选项（协议 / 节点） */
.uc-opts {
    margin-top: 12px;
}

.uc-opt {
    position: relative;
    display: block;
    width: 100%;
    margin: 10px 0 0;
    padding: 12px 40px 12px 12px;
    border: 1px solid #e4e7ee;
    border-radius: 12px;
    background: #ffffff;
    color: #111827;
    font-family: inherit;
    text-align: left;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.uc-opt:first-child {
    margin-top: 0;
}

.uc-opt.is-on {
    border-color: #93c5fd;
    background: #f8fbff;
}

.uc-opt-title {
    display: block;
    color: #111827;
    font-size: 15px;
    font-weight: 700;
    line-height: 19px;
}

.uc-opt-desc {
    display: block;
    margin-top: 4px;
    color: #9ca3af;
    font-size: 13.5px;
    line-height: 17px;
    white-space: pre-wrap;
    word-break: break-word;
}

.uc-opt-check {
    position: absolute;
    right: 12px;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    background: #ffffff;
    color: transparent;
    font-size: 12.5px;
    line-height: 18px;
    text-align: center;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.uc-opt.is-on .uc-opt-check {
    border-color: #2563eb;
    background: #2563eb;
    color: #ffffff;
}

/* 状态标签 */
.uc-tag {
    display: inline-block;
    margin-left: 4px;
    padding: 0 6px;
    border-radius: 6px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    line-height: 17px;
    vertical-align: 1px;
}

.uc-tag.is-info {
    background: #eff6ff;
    color: #2563eb;
}

.uc-tag.is-ok {
    background: #ecfdf5;
    color: #059669;
}

.uc-tag.is-warn {
    background: #fffbeb;
    color: #b45309;
}

.uc-tag.is-bad {
    background: #fef2f2;
    color: #dc2626;
}

/* 统计小条 */
.uc-chips {
    margin-top: 10px;
    font-size: 0;
}

.uc-chip {
    display: inline-block;
    margin: 0 6px 6px 0;
    padding: 0 9px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    line-height: 23px;
}

.uc-chip.is-ok {
    background: #ecfdf5;
    color: #059669;
}

.uc-chip.is-warn {
    background: #fffbeb;
    color: #b45309;
}

.uc-chip.is-bad {
    background: #fef2f2;
    color: #dc2626;
}

/* 应用列表 */
.uc-apps {
    margin-top: 14px;
    border: 1px solid #eef0f5;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.uc-app {
    padding: 12px;
    border-top: 1px solid #f1f3f8;
}

.uc-app:first-child {
    border-top: 0;
}

.uc-app-row {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.uc-app-link {
    display: table-cell;
    vertical-align: middle;
}

.uc-app-ico {
    float: left;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #eef2ff;
}

.uc-app-main {
    margin-left: 64px;
}

.uc-app-name {
    overflow: hidden;
    color: #111827;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 19px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.uc-app-name em {
    margin-left: 4px;
    color: #9ca3af;
    font-size: 12.5px;
    font-style: normal;
    font-weight: 400;
}

.uc-app-meta {
    margin-top: 4px;
    color: #9ca3af;
    font-size: 13px;
    line-height: 15px;
}

.uc-app-sub {
    margin-top: 3px;
    color: #b0b7c3;
    font-size: 12.5px;
    line-height: 15px;
}

.uc-app-actions {
    display: table-cell;
    width: 56px;
    padding-left: 8px;
    vertical-align: middle;
    font-size: 0;
    text-align: right;
}

.uc-app-actions .uc-mini {
    display: block;
    margin: 0 0 6px;
    white-space: nowrap;
}

.uc-app-actions .uc-mini:last-child {
    margin-bottom: 0;
}

.uc-refuse {
    margin-top: 7px;
    padding: 7px 9px;
    border-radius: 8px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 13px;
    line-height: 17px;
}

/* 截图列表 */
.uc-shots {
    margin-top: 14px;
    border: 1px solid #eef0f5;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.uc-shot {
    padding: 12px;
    border-top: 1px solid #f1f3f8;
}

.uc-shot:first-child {
    border-top: 0;
}

.uc-shot-thumb {
    float: left;
    display: block;
    width: 90px;
    height: 62px;
    overflow: hidden;
    border: 1px solid #eef0f5;
    border-radius: 10px;
    background: #f8fafc;
    color: #b0b7c3;
    font-size: 12.5px;
    line-height: 60px;
    text-align: center;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.uc-shot-thumb img {
    max-width: 100%;
    max-height: 60px;
    vertical-align: middle;
}

.uc-shot-main {
    margin-left: 102px;
    min-height: 62px;
}

.uc-shot-name {
    overflow: hidden;
    color: #111827;
    font-size: 15px;
    font-weight: 700;
    line-height: 19px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.uc-shot-meta {
    margin-top: 4px;
    color: #9ca3af;
    font-size: 13px;
    line-height: 15px;
}

.uc-shot-actions {
    margin-top: 7px;
    font-size: 0;
}

.uc-shot-actions .uc-mini {
    margin-left: 0;
    margin-right: 6px;
}

/* 文档 / 说明 */
.uc-doc {
    margin-top: 14px;
    padding: 14px;
    border-radius: 12px;
}

.uc-doc h2 {
    color: #111827;
    font-size: 15px;
    font-weight: 800;
    line-height: 20px;
}

.uc-doc h3 {
    margin-top: 16px;
    color: #111827;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 18px;
}

.uc-doc p {
    margin-top: 8px;
    color: #4b5563;
    font-size: 14.5px;
    line-height: 1.85;
}

.uc-doc p:first-child {
    margin-top: 0;
}

.uc-doc ul {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.uc-doc li {
    position: relative;
    margin-top: 6px;
    padding-left: 15px;
    color: #4b5563;
    font-size: 14.5px;
    line-height: 1.8;
}

.uc-doc li:before {
    content: "—";
    position: absolute;
    left: 0;
    color: #c3c8d2;
}

.uc-doc strong {
    color: #111827;
    font-weight: 700;
}

.uc-qr {
    display: block;
    width: 200px;
    max-width: 100%;
    margin: 10px auto;
    border-radius: 10px;
}

/* 联系我们 */
.uc-contact-hero {
    margin-top: 14px;
    padding: 20px 16px 18px;
    border-radius: 12px;
    background: #f8fbff;
    text-align: center;
}

.uc-contact-hero-ico {
    display: block;
    width: 52px;
    height: 52px;
    margin: 0 auto 10px;
    border-radius: 16px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 22px;
    line-height: 52px;
    text-align: center;
}

.uc-contact-hero h2 {
    color: #111827;
    font-size: 17px;
    font-weight: 800;
    line-height: 22px;
}

.uc-contact-hero p {
    margin-top: 7px;
    color: #6b7280;
    font-size: 13.5px;
    line-height: 19px;
    text-align: left;
}

.uc-contact-row {
    padding-right: 74px;
}

.uc-contact-row .uc-row-sub {
    color: #6b7280;
    font-size: 13.5px;
    line-height: 17px;
    word-break: break-all;
}

.uc-contact-row .uc-copy {
    position: absolute;
    right: 12px;
    top: 50%;
    float: none;
    height: 28px;
    margin: -14px 0 0;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 26px;
}

.uc-copy {
    float: right;
    height: 26px;
    margin: 0 0 0 8px;
    padding: 0 10px;
    border: 1px solid #e4e7ee;
    border-radius: 7px;
    background: #ffffff;
    color: #2563eb;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 24px;
}

/* 只读信息行 */
.uc-info {
    margin-top: 10px;
}

.uc-info-row {
    padding: 7px 0;
    border-top: 1px solid #f1f3f8;
    color: #6b7280;
    font-size: 13.5px;
    line-height: 18px;
}

.uc-info-row:first-child {
    border-top: 0;
}

.uc-info-row b {
    float: right;
    margin-left: 10px;
    color: #111827;
    font-weight: 600;
    word-break: break-all;
}

/* 签到 */
.uc-sign-card {
    margin-top: 14px;
    padding: 24px 16px 20px;
    border-radius: 12px;
    text-align: center;
}

.uc-sign-ico {
    display: block;
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 20px;
    background: #fffbeb;
    color: #d97706;
    font-size: 28px;
    line-height: 64px;
    text-align: center;
}

.uc-sign-card h2 {
    color: #111827;
    font-size: 18px;
    font-weight: 800;
    line-height: 24px;
}

.uc-sign-card p {
    margin-top: 7px;
    color: #9ca3af;
    font-size: 13.5px;
    line-height: 18px;
}

.uc-sign-card .uc-btn {
    max-width: 240px;
    margin: 18px auto 0;
}

.uc-sign-coin {
    margin-top: 9px;
    color: #b45309;
    font-size: 13.5px;
    line-height: 16px;
}

.uc-sign-hint {
    margin-top: 9px;
    color: #9ca3af;
    font-size: 13.5px;
    line-height: 16px;
}

/* 上传 */
.uc-upload-wrap {
    position: relative;
    margin-top: 14px;
}

.uc-upload {
    padding: 24px 16px;
    border: 2px dashed #bfdbfe;
    border-radius: 14px;
    background: #f8fbff;
    text-align: center;
}

.uc-upload-ico {
    display: block;
    width: 58px;
    height: 58px;
    margin: 0 auto 10px;
    border-radius: 18px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 26px;
    line-height: 58px;
    text-align: center;
}

.uc-upload b {
    display: block;
    color: #111827;
    font-size: 15px;
    font-weight: 700;
    line-height: 20px;
}

.uc-upload p {
    margin-top: 6px;
    color: #9ca3af;
    font-size: 13.5px;
    line-height: 17px;
}

.uc-upload-wrap input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    -ms-filter: "alpha(opacity=0)";
}

.uc-progress {
    height: 8px;
    margin-top: 14px;
    border-radius: 4px;
    background: #e5e7eb;
    overflow: hidden;
}

.uc-progress-bar {
    display: block;
    width: 0;
    height: 8px;
    background: #2563eb;
}

.uc-progress-txt {
    margin-top: 8px;
    color: #6b7280;
    font-size: 13.5px;
    line-height: 16px;
}

.uc-upload-ok {
    margin-top: 14px;
    padding: 18px 14px 14px;
    border-radius: 12px;
    text-align: center;
}

.uc-upload-ico-big {
    display: block;
    width: 84px;
    height: 84px;
    margin: 0 auto 12px;
    border-radius: 19px;
    background: #eef2ff;
}

.uc-upload-ok h2 {
    color: #111827;
    font-size: 16px;
    font-weight: 800;
    line-height: 22px;
    word-break: break-word;
}

.uc-upload-ok .uc-info {
    margin-top: 14px;
    text-align: left;
}

/* 个性化 */
.uc-modes {
    margin-top: 12px;
    font-size: 0;
}

.uc-mode {
    display: inline-block;
    width: 31.33%;
    margin: 0 3% 0 0;
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    text-align: center;
    vertical-align: top;
}

.uc-mode.last {
    margin-right: 0;
}

.uc-mode-preview {
    position: relative;
    display: block;
    height: 54px;
    overflow: hidden;
    border: 1px solid #e4e7ee;
    border-radius: 10px;
    background: #ffffff;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.uc-mode-preview i,
.uc-mode-preview b {
    position: absolute;
    left: 8px;
    height: 5px;
    border-radius: 3px;
}

.uc-mode-preview i {
    top: 13px;
    width: 52%;
    background: #cbd5e1;
}

.uc-mode-preview b {
    top: 25px;
    width: 34%;
    background: #93c5fd;
}

.uc-mode-preview.is-auto:after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 50%;
    background: #1f2937;
}

.uc-mode-preview.is-dark {
    border-color: #1f2937;
    background: #1f2937;
}

.uc-mode-preview.is-dark i {
    background: #374151;
}

.uc-mode.is-on .uc-mode-preview {
    border: 2px solid #2563eb;
}

.uc-mode-name {
    display: block;
    margin-top: 5px;
    color: #6b7280;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 14px;
}

.uc-mode.is-on .uc-mode-name {
    color: #2563eb;
}

.uc-palette {
    margin-top: 6px;
    font-size: 0;
}

.uc-palette-item {
    display: inline-block;
    width: 33.33%;
    padding: 6px 0;
    border: 0;
    background: none;
    font-family: inherit;
    text-align: center;
    vertical-align: top;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.uc-color {
    display: block;
    width: 34px;
    height: 34px;
    margin: 0 auto;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #e5e7eb;
    box-shadow: 0 0 0 1px #e4e7ee;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.uc-palette-item b {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    line-height: 13px;
}

.uc-palette-item.is-on .uc-color {
    box-shadow: 0 0 0 2px #2563eb;
}

.uc-palette-item.is-on b {
    color: #2563eb;
}

/* 主色 / 强调色（类名由后端固定输出，避免模板内联 style） */
.uc-c-indigo { background: #4f46e5; }
.uc-c-red { background: #dc2626; }
.uc-c-pink { background: #db2777; }
.uc-c-purple { background: #9333ea; }
.uc-c-cyan { background: #0891b2; }
.uc-c-blue { background: #2563eb; }
.uc-c-teal { background: #0d9488; }
.uc-c-green { background: #16a34a; }
.uc-c-light-green { background: #65a30d; }
.uc-c-lime { background: #84cc16; }
.uc-c-amber { background: #d97706; }
.uc-c-orange { background: #ea580c; }
.uc-c-deep-orange { background: #c2410c; }
.uc-c-brown { background: #92400e; }
.uc-c-light-blue { background: #0ea5e9; }

/* 论坛列表页的 Tab 宽度（基础样式见 .u-tabs） */
.u-tabs.is-2 .u-tab { width: 50%; }
.u-tabs.is-4 .u-tab { width: 25%; }

/* 用户中心补充：文档列表 / 签到记录 / 点评星级 */
.uc-doc-list {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.uc-doc-list li {
    position: relative;
    margin-top: 6px;
    padding-left: 15px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.8;
}

.uc-doc-list li:before {
    content: "—";
    position: absolute;
    left: 0;
    color: #c3c8d2;
}

.uc-log-coin {
    position: absolute;
    right: 12px;
    top: 50%;
    margin-top: -8px;
    color: #b45309;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 16px;
}

.uc-stars {
    color: #f59e0b;
    font-size: 13px;
    line-height: 15px;
}

.uc-stars .fa {
    margin-right: 2px;
}

.uc-stars .uc-star-off {
    color: #e5e7eb;
}

.uc-score {
    margin-left: 5px;
    color: #9ca3af;
    font-size: 13px;
}

.uc-review-text {
    margin-top: 7px;
    color: #4b5563;
    font-size: 14px;
    line-height: 19px;
    word-break: break-word;
}

.uc-chip.is-info {
    background: #eff6ff;
    color: #2563eb;
}

.uc-sign-ico.is-green {
    background: #ecfdf5;
    color: #059669;
}

.uc-sign-ico.is-rose {
    background: #fff1f2;
    color: #e11d48;
}

/* ==================================================================
 * 高级搜索（移动端）
 * 依赖全局公共骨架：pd-head / p2-head / uc-form / uc-input /
 * uc-btn / uc-apps / uc-app-row / f2-empty / pg
 * 兼容 iOS 5/6：不使用 flex、grid、CSS 变量、calc、vw/vh、transform
 * ================================================================== */
.as-filter {
    margin-top: 14px;
    padding: 14px;
    border-radius: 14px;
}

.as-filter .uc-field {
    margin-top: 16px;
}

.as-filter .uc-field:first-child {
    margin-top: 0;
}

/* 关键词输入框 */
.as-search {
    position: relative;
}

.as-search .fa {
    position: absolute;
    left: 12px;
    top: 50%;
    margin-top: -7px;
    color: #a6aeba;
    font-size: 14px;
    line-height: 14px;
}

.as-search .uc-input {
    padding-left: 34px;
}

/* 关键词 + 搜索范围同一行 */
.as-search-row {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.as-search-cell {
    display: table-cell;
    padding-right: 8px;
    vertical-align: middle;
}

.as-scope-cell {
    display: table-cell;
    width: 102px;
    vertical-align: middle;
}

.as-scope-cell .as-select {
    padding-left: 10px;
    padding-right: 26px;
    font-size: 14px;
}

.as-scope-cell .as-select-wrap .fa {
    right: 9px;
    font-size: 12px;
    margin-top: -6px;
}

/* 高级筛选开关 */
.as-more-toggle {
    display: none;
}

.as-more-label {
    position: relative;
    display: block;
    margin-top: 14px;
    padding: 12px 18px 0 0;
    border-top: 1px solid #f1f3f8;
    cursor: pointer;
}

.as-more-label:after {
    content: "";
    display: table;
    clear: both;
}

.as-more-title {
    float: left;
    color: #374151;
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
}

.as-more-title .fa {
    margin-right: 5px;
    color: #6b7280;
    font-size: 12.5px;
}

.as-more-count {
    display: inline-block;
    min-width: 16px;
    height: 16px;
    margin-left: 5px;
    padding: 0 4px;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    vertical-align: 1px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.as-more-hint {
    float: right;
    margin-right: 18px;
    color: #9ca3af;
    font-size: 13px;
    line-height: 18px;
}

.as-more-down,
.as-more-up {
    position: absolute;
    right: 0;
    top: 14px;
    color: #9ca3af;
    font-size: 15px;
    line-height: 14px;
}

.as-more-up {
    display: none;
}

.as-more-body {
    display: none;
    padding-top: 14px;
}

.as-more-toggle:checked ~ .as-more-body {
    display: block;
}

.as-more-toggle:checked ~ .as-more-label .as-more-down {
    display: none;
}

.as-more-toggle:checked ~ .as-more-label .as-more-up {
    display: inline-block;
}

.as-more-body .uc-field {
    margin-top: 14px;
}

.as-more-body .uc-field:first-child {
    margin-top: 0;
}

/* 单选胶囊 */
.as-seg {
    margin-bottom: -8px;
    font-size: 0;
}

.as-seg input {
    display: none;
}

.as-seg label {
    display: inline-block;
    height: 32px;
    margin: 0 7px 8px 0;
    padding: 0 13px;
    border: 1px solid #e4e7ee;
    border-radius: 16px;
    background: #ffffff;
    color: #4b5563;
    font-size: 14px;
    font-weight: 600;
    line-height: 30px;
    vertical-align: top;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.as-seg input:checked + label {
    border-color: #2563eb;
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.22);
}

/* 下拉选择 */
.as-select-wrap {
    position: relative;
}

.as-select {
    display: block;
    width: 100%;
    height: 42px;
    padding: 0 34px 0 12px;
    border: 1px solid #e4e7ee;
    border-radius: 10px;
    background: #f9fafb;
    color: #111827;
    font-family: inherit;
    font-size: 15px;
    line-height: normal;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.as-select:focus {
    border-color: #93c5fd;
    background: #ffffff;
    outline: 0;
}

.as-select-wrap .fa {
    position: absolute;
    right: 12px;
    top: 50%;
    margin-top: -7px;
    color: #9ca3af;
    font-size: 14px;
    line-height: 14px;
    pointer-events: none;
}

/* 提交 / 重置 */
.as-submit {
    margin-top: 18px;
}

.as-submit .fa {
    margin-right: 6px;
}

.as-reset {
    display: block;
    margin-top: 12px;
    color: #6b7280;
    font-size: 13.5px;
    line-height: 18px;
    text-align: center;
}

/* 结果 */
.as-results-head {
    margin-top: 20px;
}

.as-count {
    float: right;
    color: #9ca3af;
    font-size: 13.5px;
    font-weight: 400;
    line-height: 25px;
}

.as-results {
    margin-top: 0;
}

.as-package {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.as-results .uc-app-sub {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.as-empty-ico {
    display: block;
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 16px;
    background: #f3f4f6;
    color: #9ca3af;
    font-size: 24px;
    line-height: 56px;
    text-align: center;
}


/* ==================================================================
 * 论坛 · 发帖 / 编辑帖子（移动端）
 * 结构：状态卡 → 标题 → 板块 → 正文（Markdown 工具栏）→ 附件 → 标签 → 操作
 * 兼容 iOS 5/6：float / inline-block / table，无 flex / grid / CSS 变量 / calc
 * 颜色交给 MobileThemeService 统一做浅色 / 深色替换
 * ================================================================== */

/* 编辑页右上角删除：Font Awesome 垃圾桶图标（不是图片） */
.fem-delete {
    background: none;
    border: 0;
    padding: 0;
    color: #dc2626;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.fem-delete .fa {
    font-size: 17px;
}

.fem-delete:active {
    color: #b91c1c;
}

/* 编辑页状态（平铺，不占卡片空间） */
.fem-status {
    margin-top: 14px;
}

.fem-status-head {
    height: 20px;
}

.fem-status-title {
    float: left;
    color: #111827;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 20px;
}

.fem-status-id {
    float: right;
    color: #9ca3af;
    font-size: 13px;
    line-height: 20px;
}

.fem-status-body {
    margin-top: 9px;
}

.fem-status-text {
    margin-left: 6px;
    color: #6b7280;
    font-size: 13.5px;
    line-height: 18px;
}

.fem-status-reason {
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 13.5px;
    line-height: 18px;
    word-break: break-word;
}

.fem-status-reason b {
    display: block;
    margin-bottom: 2px;
    font-weight: 700;
}

/* 表单分区：与帖子详情页一致，平铺并使用细分隔线 */
.fem-form {
    margin-top: 0;
}

.fem-section {
    margin-top: 18px;
}

.fem-section + .fem-section {
    padding-top: 17px;
    border-top: 1px solid #eef0f5;
}

.fem-label {
    display: block;
    color: #111827;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 20px;
}

.fem-head {
    height: 20px;
    margin-bottom: 9px;
}

.fem-head .fem-label {
    float: left;
    margin: 0;
}

.fem-head-tip {
    float: right;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
}

.fem-head-tip em {
    color: #2563eb;
    font-style: normal;
    font-weight: 700;
}

/* 板块下拉选择 */
.fem-select-wrap {
    position: relative;
}

/* 板块：标签和下拉框同一行（老设备用 float，不依赖 flex） */
.fem-inline {
    overflow: hidden;
}

.fem-inline-label {
    float: left;
    width: 68px;
    margin: 0;
    line-height: 42px;
}

.fem-inline-select {
    margin-left: 68px;
}

.fem-select {
    padding-right: 34px;
    font-weight: 600;
}

.fem-select-arrow {
    position: absolute;
    top: 0;
    right: 12px;
    height: 42px;
    color: #9ca3af;
    font-size: 16px;
    line-height: 42px;
    pointer-events: none;
}

.fem-tags {
    margin: 0 -14px;
    padding: 0 14px 4px;
    font-size: 0;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.fem-tag {
    position: relative;
    display: inline-block;
    margin: 0 8px 0 0;
    vertical-align: top;
}

.fem-tag input {
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.fem-tag span {
    display: inline-block;
    height: 30px;
    padding: 0 11px;
    border: 1px solid #e4e7ee;
    border-radius: 15px;
    background: #ffffff;
    color: #4b5563;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 28px;
    white-space: nowrap;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.fem-tag input:checked + span {
    border-color: #2563eb;
    background: #eff6ff;
    color: #2563eb;
}

.fem-tag.is-locked {
    opacity: 0.45;
}

.fem-tag-empty {
    display: inline-block;
    color: #9ca3af;
    font-size: 13.5px;
    line-height: 30px;
}

/* Markdown 工具栏：横向滑动，避免在 320px 下占用两行 */
.fem-md-bar {
    margin-top: 9px;
    padding: 5px 4px;
    border: 1px solid #eef0f5;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 0;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.fem-md-bar::-webkit-scrollbar {
    display: none;
}

.fem-md-btn {
    display: inline-block;
    width: 32px;
    height: 32px;
    margin: 0 2px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    font-family: inherit;
    font-size: 15px;
    line-height: 32px;
    text-align: center;
    vertical-align: top;
    -webkit-appearance: none;
    appearance: none;
}

.fem-md-btn:active {
    background: #eff6ff;
    color: #2563eb;
}

.fem-md-btn[disabled] {
    opacity: 0.5;
}

.fem-textarea {
    margin-top: 9px;
    min-height: 210px;
    padding: 10px 12px;
    line-height: 21px;
    font-size: 15px;
    resize: vertical;
}

/* 附件 */
.fem-attach {
    padding: 10px;
    border: 1px dashed #dbe2ea;
    border-radius: 10px;
    background: transparent;
}

.fem-attach-progress {
    margin-bottom: 8px;
}

.fem-attach-progress[hidden] {
    display: none;
}

.fem-attach-item {
    position: relative;
    min-height: 44px;
    padding: 9px 30px 9px 50px;
    border-top: 1px solid #eef0f5;
}

.fem-attach-item:first-child {
    border-top: 0;
}

.fem-attach-badge {
    position: absolute;
    left: 0;
    top: 9px;
    width: 40px;
    height: 40px;
    border-radius: 9px;
    background: #64748b;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 800;
    line-height: 40px;
    text-align: center;
    text-transform: uppercase;
}

.fem-attach-badge.is-ipa {
    background: #2563eb;
}

.fem-attach-badge.is-zip {
    background: #d97706;
}

.fem-attach-main {
    display: block;
}

.fem-attach-name {
    display: block;
    overflow: hidden;
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    line-height: 18px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.fem-attach-meta {
    display: block;
    margin-top: 2px;
    color: #9ca3af;
    font-size: 12.5px;
    line-height: 15px;
}

.fem-attach-price {
    display: block;
    margin-top: 7px;
    font-size: 0;
}

.fem-attach-price-mode {
    display: inline-block;
    width: 82px;
    height: 30px;
    padding: 0 4px;
    border: 1px solid #dbe3ee;
    border-radius: 7px;
    background: #ffffff;
    color: #475569;
    font-family: inherit;
    font-size: 13.5px;
    vertical-align: middle;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.fem-attach-price-box {
    display: inline-block;
    margin-left: 4px;
    vertical-align: middle;
}

.fem-attach-price-box[hidden] {
    display: none;
}

.fem-attach-price-input {
    display: inline-block;
    width: 50px;
    height: 30px;
    padding: 0 4px;
    border: 1px solid #dbe3ee;
    border-radius: 7px;
    background: #ffffff;
    color: #1f2937;
    font-family: inherit;
    font-size: 13.5px;
    vertical-align: middle;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.fem-attach-price-input::-webkit-outer-spin-button,
.fem-attach-price-input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.fem-attach-price-unit {
    margin-left: 3px;
    color: #9ca3af;
    font-size: 12.5px;
}

.fem-attach-remove {
    position: absolute;
    right: 0;
    top: 9px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #9ca3af;
    font-family: inherit;
    font-size: 15px;
    line-height: 28px;
    text-align: center;
}

.fem-attach-add {
    display: block;
    width: 100%;
    height: 38px;
    margin-top: 10px;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #475569;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 36px;
    text-align: center;
}

.fem-attach-add .fa {
    margin-right: 5px;
}

.fem-attach-add[disabled] {
    opacity: 0.55;
}

/* 上传进度 */
.fem-file-progress-row {
    margin-top: 6px;
}

.fem-file-progress-name {
    float: left;
    width: 65%;
    overflow: hidden;
    color: #6b7280;
    font-size: 13px;
    line-height: 15px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.fem-file-progress-pct {
    float: right;
    color: #6b7280;
    font-size: 13px;
    line-height: 15px;
}

.fem-file-progress-track {
    clear: both;
    height: 6px;
    margin-top: 4px;
    border-radius: 3px;
    background: #e5e7eb;
    overflow: hidden;
}

.fem-file-progress-fill {
    display: block;
    width: 0;
    height: 6px;
    background: #2563eb;
}

.fem-file-progress-row.is-failed .fem-file-progress-fill {
    background: #dc2626;
}

/* 操作 */
.fem-actions {
    margin-top: 20px;
}

.fem-actions .uc-btn {
    margin-top: 0;
}

/* 320px 老设备：再收紧一点 */
@media screen and (max-width: 350px) {
    .fem-tag span {
        padding: 0 10px;
        font-size: 13.5px;
    }

    .fem-attach-item {
        padding-left: 46px;
        padding-right: 28px;
    }

    .fem-attach-badge {
        width: 36px;
        height: 36px;
        line-height: 36px;
    }

    .fem-attach-price-mode {
        width: 80px;
        font-size: 13px;
    }

    .fem-attach-price-input {
        width: 48px;
    }
}


/* ==================================================================
 * 论坛编辑器 · 图片 / 附件素材面板（MobileDialog 内）
 * 图片：三列缩略图；附件：信息 + 操作两段式卡片
 * iOS 5/6 兼容：float / inline-block / absolute，无 flex / grid / calc
 * ================================================================== */
.fem-picker {
    color: #374151;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}

/* 顶部：数量 + 上传 */
.fem-picker-head {
    margin-bottom: 10px;
}

.fem-picker-head:after {
    content: '';
    display: block;
    clear: both;
}

.fem-picker-count {
    float: left;
    color: #6b7280;
    font-size: 13px;
    line-height: 32px;
}

.fem-picker-count b {
    color: #111827;
    font-size: 15px;
    font-weight: 800;
}

.fem-picker-upload {
    float: right;
    height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 9px;
    background: #2563eb;
    color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 32px;
    -webkit-appearance: none;
    appearance: none;
}

.fem-picker-upload:active {
    background: #1d4ed8;
}

.fem-picker-upload[disabled] {
    opacity: 0.55;
}

/* 说明条 */
.fem-picker-hint {
    margin: 0 0 10px;
    padding: 8px 10px;
    border-radius: 9px;
    background: #f6f8fb;
    color: #6b7280;
    font-size: 12px;
    line-height: 17px;
}

/* 上传进度 */
.fem-picker-progress {
    margin: 0 0 10px;
    padding: 9px 10px;
    border: 1px solid #eef0f5;
    border-radius: 10px;
    background: #fbfcfe;
}

.fem-picker-progress[hidden] {
    display: none;
}

.fem-picker-progress .fem-file-progress-row:first-child {
    margin-top: 0;
}

/* 图片素材：三列缩略图 */
.fem-picker-grid {
    margin: 0;
    font-size: 0;
}

.fem-picker-item {
    position: relative;
    display: inline-block;
    width: 33.333%;
    padding: 0 4px 8px;
    vertical-align: top;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.fem-picker-thumb {
    display: block;
    width: 100%;
    height: 88px;
    overflow: hidden;
    border: 1px solid #eef0f5;
    border-radius: 10px;
    background: #f3f4f6;
    color: #b0b7c3;
    font-size: 12px;
    line-height: 86px;
    text-align: center;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.fem-picker-item:active .fem-picker-thumb {
    opacity: 0.82;
}

.fem-picker-item.is-used .fem-picker-thumb {
    border-color: #bfdbfe;
}

.fem-picker-thumb img {
    max-width: 100%;
    max-height: 86px;
    vertical-align: middle;
}

.fem-picker-del {
    position: absolute;
    right: 8px;
    top: 4px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(17, 24, 39, 0.72);
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    -webkit-appearance: none;
    appearance: none;
}

.fem-picker-used {
    position: absolute;
    left: 8px;
    top: 4px;
    padding: 0 7px;
    border-radius: 7px;
    background: rgba(37, 99, 235, 0.92);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 20px;
}

/* 空状态 / 加载 */
.fem-picker-loading {
    padding: 24px 0;
    color: #9ca3af;
    font-size: 13px;
    line-height: 19px;
    text-align: center;
}

.fem-picker-empty {
    padding: 22px 12px;
    border: 1px dashed #dbe2ec;
    border-radius: 12px;
    background: #fbfcfe;
    color: #9ca3af;
    font-size: 13px;
    line-height: 19px;
    text-align: center;
}

.fem-picker-empty-title {
    display: block;
    margin-bottom: 3px;
    color: #6b7280;
    font-size: 13.5px;
    font-weight: 600;
}

.fem-picker-empty-sub {
    display: block;
    color: #9ca3af;
    font-size: 12px;
    line-height: 17px;
}

.fem-picker-empty[hidden],
.fem-picker-warn[hidden] {
    display: none;
}

/* 底部说明 / 上限提示 */
.fem-picker-foot {
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid #f1f3f8;
    color: #9ca3af;
    font-size: 12px;
    line-height: 17px;
}

.fem-picker-warn {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 9px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 12px;
    line-height: 17px;
}

/* 附件素材：信息区 + 操作区 */
.fem-picker-list {
    margin: 0;
}

.fem-picker-row {
    position: relative;
    margin-top: 8px;
    padding: 10px;
    border: 1px solid #eef0f5;
    border-radius: 12px;
    background: #fbfcfe;
    text-align: left;
}

.fem-picker-row:first-child {
    margin-top: 0;
}

.fem-picker-row.is-deleting {
    opacity: 0.4;
}

.fem-picker-row-top {
    position: relative;
    min-height: 38px;
    padding-left: 48px;
}

.fem-picker-badge {
    position: absolute;
    left: 0;
    top: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #64748b;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    line-height: 38px;
    text-align: center;
    text-transform: uppercase;
}

.fem-picker-badge.is-ipa {
    background: #2563eb;
}

.fem-picker-badge.is-zip {
    background: #d97706;
}

.fem-picker-main {
    display: block;
}

.fem-picker-name {
    display: block;
    overflow: hidden;
    color: #1f2937;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 18px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.fem-picker-meta {
    display: block;
    margin-top: 3px;
    color: #9ca3af;
    font-size: 12px;
    line-height: 16px;
}

.fem-picker-row-foot {
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px solid #f1f3f8;
}

.fem-picker-row-foot:after {
    content: '';
    display: block;
    clear: both;
}

.fem-picker-add {
    float: right;
    height: 28px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 28px;
    -webkit-appearance: none;
    appearance: none;
}

.fem-picker-add:active {
    background: #1d4ed8;
}

.fem-picker-added {
    float: right;
    color: #9ca3af;
    font-size: 12.5px;
    line-height: 28px;
}

.fem-picker-row-del {
    float: left;
    height: 28px;
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: #9ca3af;
    font-family: inherit;
    font-size: 12.5px;
    line-height: 28px;
    text-align: left;
    -webkit-appearance: none;
    appearance: none;
}

.fem-picker-row-del:active {
    color: #dc2626;
}

/* ==================================================================
 * 论坛消息中心（/forum/notice.html）
 * 结构：返回 + 题头 → 未读概览卡片 → 消息卡片列表 → 分页
 * iOS 5/6 兼容：float / inline-block / absolute，无 flex / grid / calc
 * ================================================================== */

.nt-overview {
    margin-top: 12px;
    padding: 11px 12px;
    border: 1px solid #eef0f5;
    border-radius: 12px;
    background: #ffffff;
}

.nt-overview-main {
    float: left;
}

.nt-overview-num {
    color: #2563eb;
    font-size: 24px;
    font-weight: 800;
    line-height: 26px;
}

.nt-overview-label {
    margin-left: 4px;
    color: #4b5563;
    font-size: 13.5px;
    line-height: 26px;
}

.nt-overview-total {
    margin-left: 8px;
    color: #9ca3af;
    font-size: 12.5px;
    line-height: 26px;
}

.nt-overview.is-clear .nt-overview-num {
    color: #059669;
}

.nt-read-all {
    float: right;
    height: 26px;
    padding: 0 10px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 24px;
    -webkit-appearance: none;
    appearance: none;
}

.nt-read-all[disabled] {
    opacity: 0.55;
}

.nt-overview-done {
    float: right;
    color: #059669;
    font-size: 12.5px;
    line-height: 26px;
}

.nt-overview-done .fa {
    margin-right: 3px;
}

.nt-list {
    margin-top: 10px;
}

.nt-item {
    display: block;
    position: relative;
    overflow: hidden;
    margin-bottom: 8px;
    padding: 10px 12px;
    border: 1px solid #eef0f5;
    border-radius: 12px;
    background: #ffffff;
}

.nt-list .nt-item:last-child {
    margin-bottom: 0;
}

.nt-item:active {
    background: #f8fafc;
}

.nt-item.is-static {
    cursor: default;
}

.nt-item.is-static:active {
    background: #ffffff;
}

.nt-item.is-static.is-unread:active {
    background: #f8fbff;
}

.nt-item.is-unread {
    border-color: #bfdbfe;
    background: #f8fbff;
}

.nt-ico {
    float: left;
    width: 32px;
    height: 32px;
    margin-right: 10px;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 15px;
    line-height: 32px;
    text-align: center;
}

.nt-ico.is-reply {
    background: #f5f3ff;
    color: #7c3aed;
}

.nt-ico.is-tip,
.nt-ico.is-tip_reply {
    background: #fffbeb;
    color: #d97706;
}

.nt-ico.is-tip_refund {
    background: #f3f4f6;
    color: #6b7280;
}

.nt-ico.is-mute {
    background: #fef2f2;
    color: #dc2626;
}

.nt-ico.is-unmute {
    background: #f0fdf4;
    color: #16a34a;
}

.nt-main {
    display: block;
    margin-left: 42px;
}

.nt-line1 {
    display: block;
    overflow: hidden;
    padding-right: 78px;
    color: #374151;
    font-size: 14px;
    line-height: 18px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.nt-line1 b {
    color: #111827;
    font-weight: 800;
}

.nt-item.is-unread .nt-line1 {
    color: #111827;
    font-weight: 600;
}

.nt-item.is-unread .nt-line1:before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 5px;
    border-radius: 50%;
    background: #2563eb;
    vertical-align: 1px;
}

.nt-source {
    margin-left: 5px;
    color: #9ca3af;
    font-size: 12.5px;
    font-style: normal;
    font-weight: 400;
}

.nt-source .fa {
    margin-right: 3px;
    color: #c7cdd6;
}

.nt-time {
    position: absolute;
    top: 10px;
    right: 12px;
    max-width: 72px;
    overflow: hidden;
    color: #b0b7c3;
    font-size: 12px;
    line-height: 16px;
    text-align: right;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.nt-line2 {
    display: block;
    margin-top: 2px;
    color: #6b7280;
    font-size: 13.5px;
    line-height: 17px;
    white-space: normal;
    word-break: break-word;
    overflow: visible;
}

.nt-empty {
    margin-top: 14px;
    padding: 34px 18px 30px;
    border: 1px solid #eef0f5;
    border-radius: 14px;
    background: #ffffff;
}

.nt-empty-ico {
    display: block;
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    border-radius: 16px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 24px;
    line-height: 52px;
    text-align: center;
}

.nt-empty .uc-btn {
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
}

/* 窄屏（iPhone 5/SE 320-360）下压缩 UID / 最后活跃行，保证仍在一行 */
@media screen and (max-width: 360px) {
    .u-meta {
        font-size: 12.5px;
    }
}

/* ==================================================================
 * 手机端字号整体放大后的局部换行修正
 * 说明：只处理放大后仍希望保持单行的次要文字，不改变正文层级。
 * ================================================================== */
.footer {
    font-size: 11.5px;
}

.au-alt {
    font-size: 13px;
}

.a4-subcard p em {
    font-size: 13px;
    line-height: 17px;
}

@media screen and (max-width: 350px) {
    .b-update-card .row .row-sub {
        font-size: 11px;
    }

    .b-update-card .row .row-sub .pill {
        font-size: 10px;
    }

    /* 320px 下标题列更窄，保持 14px 以免两行内被裁掉过多字 */
    .s2-post-title {
        font-size: 14px;
    }

    /* 窄屏胶囊略收紧，保证「全部 / 软件 / 游戏 / 帖子」四个分类都能看到 */
    .s-chip {
        padding: 0 10px;
        font-size: 13px;
    }

    /* 窄屏保留 UID 行的字号层级，尽量避免折行 */
    .a4-subcard p em {
        font-size: 12px;
        line-height: 16px;
    }
}

/* ==================================================================
 * 应用评分和点评（/ratings_and_reviews/{id}.html）
 * iOS 5/6 兼容：float / inline-block / absolute，无 flex / grid / calc
 * ================================================================== */
.rt {
    padding-bottom: 82px;
}

/* 底部「我要点评」浮动按钮 */
.rt-fab {
    position: fixed;
    left: 50%;
    bottom: 20px;
    z-index: 50;
    display: block;
    width: 156px;
    height: 46px;
    margin-left: -78px;
    padding: 0;
    border: 0;
    border-radius: 23px;
    background: #2563eb;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 46px;
    text-align: center;
    text-decoration: none;
    -webkit-box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28);
    -webkit-appearance: none;
    appearance: none;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.rt-fab:active {
    background: #1d4ed8;
}

/* 点评表单藏在页面里，点击浮动按钮后由 MobileDialog 搬进弹窗 */
.rt-dialog-source {
    display: none;
}

.md-body .rt-dialog-source {
    display: block;
}

.rt-dialog {
    text-align: left;
}

.rt-dialog .rt-stars {
    text-align: center;
}

/* 弹窗里的 .md-body a 会把星星链接染成主题色，这里恢复星星自己的颜色 */
.rt-dialog .rt-star {
    color: #d1d5db;
}

.rt-dialog .rt-star.on {
    color: #f59e0b;
}

.rt-dialog .rt-form-hint {
    float: none;
    line-height: 1.5;
}
.rt-hero {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #eef0f5;
    border-radius: 14px;
    background: #ffffff;
}

.rt-app-ico {
    float: left;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: #f3f4f6;
}

.rt-hero-main {
    margin-left: 66px;
    margin-right: 78px;
}

.rt-hero-main h1 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    color: #111827;
    word-wrap: break-word;
}

.rt-hero-main p {
    margin-top: 5px;
    color: #9ca3af;
    font-size: 12.5px;
    line-height: 1.5;
    word-wrap: break-word;
}

.rt-score {
    float: right;
    width: 72px;
    text-align: right;
}

.rt-score b {
    display: block;
    color: #2563eb;
    font-size: 28px;
    font-weight: 800;
    line-height: 30px;
}

.rt-score .stars {
    display: block;
    color: #f59e0b;
    font-size: 12px;
    line-height: 13px;
}

.rt-score .stars .fa-star-o {
    color: #e2e6ee;
}

.rt-score em {
    display: block;
    margin-top: 3px;
    color: #9ca3af;
    font-size: 11.5px;
    font-style: normal;
    line-height: 14px;
}

.rt-actions {
    margin-top: 10px;
}

.rt-write,
.rt-back-app {
    display: block;
    height: 40px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    line-height: 40px;
    text-align: center;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.rt-write {
    float: left;
    width: 58%;
    background: #2563eb;
    color: #ffffff;
}

.rt-back-app {
    float: right;
    width: 38%;
    border: 1px solid #e3e8f0;
    background: #ffffff;
    color: #4b5563;
}

.rt-card {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid #eef0f5;
    border-radius: 14px;
    background: #ffffff;
}

.rt-card-head {
    min-height: 20px;
}

.rt-card-head h2 {
    float: left;
    margin: 0;
    color: #111827;
    font-size: 15px;
    font-weight: 800;
    line-height: 20px;
}

.rt-card-head em {
    float: right;
    color: #9ca3af;
    font-size: 12px;
    font-style: normal;
    line-height: 20px;
}

.rt-card-head .rt-pending {
    float: right;
    height: 18px;
    padding: 0 6px;
    border-radius: 4px;
    background: #fef9c3;
    color: #a16207;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
}

.rt-bars {
    margin-top: 10px;
}

.rt-bar {
    clear: both;
    height: 22px;
}

.rt-bar em {
    float: left;
    width: 34px;
    color: #9ca3af;
    font-size: 12px;
    font-style: normal;
    line-height: 22px;
}

.rt-bar-track {
    display: block;
    height: 6px;
    margin: 8px 46px 0 38px;
    border-radius: 3px;
    background: #eef0f5;
    overflow: hidden;
}

.rt-bar-fill {
    display: block;
    width: 0;
    height: 6px;
    border-radius: 3px;
    background: #2563eb;
}

.rt-bar b {
    float: right;
    width: 42px;
    color: #9ca3af;
    font-size: 11.5px;
    font-weight: 400;
    line-height: 22px;
    text-align: right;
}

.rt-stars {
    margin: 2px 0 8px;
}

.rt-star {
    display: inline-block;
    width: 34px;
    height: 34px;
    margin-right: 4px;
    color: #d1d5db;
    font-size: 24px;
    line-height: 34px;
    text-align: center;
}

.rt-star.on {
    color: #f59e0b;
}

.rt-text {
    display: block;
    width: 100%;
    height: 92px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #e3e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #111827;
    font-size: 15px;
    line-height: 1.6;
    outline: none;
    resize: none;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.rt-text::-webkit-input-placeholder {
    color: #9ca3af;
}

.rt-text::placeholder {
    color: #9ca3af;
}

.rt-form-foot {
    margin-top: 9px;
}

.rt-form-hint {
    float: left;
    color: #b0b7c3;
    font-size: 11.5px;
    line-height: 34px;
}

.rt-submit {
    float: right;
    height: 34px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 34px;
    -webkit-appearance: none;
    appearance: none;
}

.rt-submit:disabled {
    background: #a8c2f2;
}

.rt-login {
    padding: 10px 0 2px;
    text-align: center;
}

.rt-login p {
    margin-bottom: 10px;
    color: #6b7280;
    font-size: 13.5px;
    line-height: 1.6;
}

.rt-login .uc-btn {
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
}

.rt-list-head {
    margin-top: 20px;
}

.rt-list-head h2 {
    float: left;
    margin: 0;
    color: #111827;
    font-size: 16px;
    font-weight: 800;
    line-height: 20px;
}

.rt-list-head em {
    float: right;
    color: #9ca3af;
    font-size: 12px;
    font-style: normal;
    line-height: 20px;
}

.rt-review {
    margin-top: 10px;
    padding: 14px;
    border: 1px solid #eef0f5;
    border-radius: 14px;
    background: #ffffff;
}

.rt-review.is-mine {
    border-color: #bfdbfe;
    background: #f8fbff;
}

.rt-ava {
    float: left;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f3f4f6;
}

.rt-rv-main {
    margin-left: 44px;
}

.rt-rv-head {
    min-height: 20px;
}

.rt-rv-name {
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
}

.rt-tag {
    display: inline-block;
    height: 15px;
    margin-left: 4px;
    padding: 0 5px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    line-height: 15px;
    vertical-align: 1px;
}

.rt-tag.is-pro {
    background: #eef2ff;
    color: #4f46e5;
}

.rt-tag.is-hot {
    background: #fff7ed;
    color: #ea580c;
}

.rt-tag.is-mine {
    background: #eff6ff;
    color: #2563eb;
}

.rt-tag.is-pending {
    background: #fef9c3;
    color: #a16207;
}

.rt-rv-stars {
    float: right;
    color: #f59e0b;
    font-size: 12px;
    line-height: 20px;
}

.rt-rv-stars .fa-star-o {
    color: #e2e6ee;
}

.rt-rv-text {
    margin-top: 5px;
    color: #4b5563;
    font-size: 14.5px;
    line-height: 1.75;
    word-break: break-word;
}

.rt-rv-text a {
    color: #2563eb;
    word-break: break-all;
}

.rt-rv-foot {
    /* 日期 / 设备贴着卡片左侧，需要清掉头像浮动，避免短点评时压到头像 */
    clear: both;
    margin-top: 8px;
}

.rt-rv-meta {
    float: left;
    max-width: 58%;
    padding-top: 4px;
    color: #b0b7c3;
    font-size: 11.5px;
    line-height: 16px;
}

.rt-rv-acts {
    float: right;
}

.rt-vote {
    display: inline-block;
    height: 24px;
    margin-left: 8px;
    padding: 0 8px;
    border: 1px solid #eef0f5;
    border-radius: 6px;
    background: #f8fafc;
    color: #9ca3af;
    font-family: inherit;
    font-size: 12px;
    line-height: 22px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.rt-vote .fa {
    margin-right: 3px;
}

.rt-vote em {
    font-style: normal;
}

.rt-vote.on {
    background: #eff6ff;
    color: #2563eb;
}

.rt-del {
    display: inline-block;
    height: 24px;
    margin-left: 8px;
    padding: 0;
    border: 0;
    background: none;
    color: #c7cbd3;
    font-family: inherit;
    font-size: 12px;
    line-height: 24px;
    -webkit-appearance: none;
    appearance: none;
}

.rt-empty {
    margin-top: 12px;
    padding: 36px 16px;
    border: 1px solid #eef0f5;
    border-radius: 14px;
    background: #ffffff;
    color: #9ca3af;
    font-size: 14px;
    text-align: center;
}

@media screen and (max-width: 350px) {
    .rt-hero-main {
        margin-right: 72px;
    }

    .rt-score {
        width: 66px;
    }

    .rt-score b {
        font-size: 25px;
    }

    .rt-write {
        width: 56%;
    }

    .rt-back-app {
        width: 40%;
    }
}

/* ==================================================================
 * 下载方式页（/select_download_method/{id}.html）
 * ================================================================== */

.dlm-app {
    padding: 14px;
}

.dlm-app-ico {
    float: left;
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: #f3f4f6;
}

.dlm-app-main {
    margin-left: 72px;
    padding: 7px 0;
}

.dlm-app-name {
    color: #111827;
    font-size: 17px;
    font-weight: 800;
    line-height: 22px;
    word-wrap: break-word;
    word-break: break-word;
}

.dlm-app-meta {
    margin-top: 5px;
    color: #9ca3af;
    font-size: 13px;
    line-height: 17px;
    word-wrap: break-word;
}

.dlm-group-title {
    clear: both;
    margin-top: 20px;
    color: #111827;
    font-size: 15px;
    font-weight: 800;
    line-height: 20px;
}

.dlm-group-title-paid {
    margin-top: 18px;
}

.dlm-group-title span {
    display: block;
    margin-top: 4px;
    color: #9ca3af;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 16px;
}

.dlm-group-title span b {
    color: #b45309;
    font-weight: 700;
}

.dlm-actions {
    margin-top: 10px;
}

.dlm-action {
    position: relative;
    display: block;
    width: 100%;
    min-height: 58px;
    margin: 10px 0 0;
    padding: 12px 36px 12px 56px;
    border: 1px solid #e4e7ee;
    border-radius: 12px;
    background: #ffffff;
    color: #111827;
    font-family: inherit;
    text-align: left;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.dlm-actions .dlm-action:first-child {
    margin-top: 0;
}

.dlm-action-ico {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    border-radius: 9px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 15px;
    line-height: 30px;
    text-align: center;
}

.dlm-action b {
    display: block;
    font-size: 15px;
    font-weight: 800;
    line-height: 19px;
}

.dlm-action em {
    display: block;
    margin-top: 3px;
    color: #9ca3af;
    font-style: normal;
    font-size: 12.5px;
    line-height: 16px;
    word-wrap: break-word;
}

.dlm-action-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    margin-top: -9px;
    color: #c7cbd3;
    font-size: 18px;
    line-height: 18px;
}

.dlm-action.is-free {
    border-color: #a7f3d0;
    background: #f0fdf4;
}

.dlm-action.is-free .dlm-action-ico {
    background: #d1fae5;
    color: #059669;
}

.dlm-action.is-free .dlm-action-arrow {
    color: #34d399;
}

.dlm-action.is-primary {
    border-color: #2563eb;
    background: #2563eb;
    color: #ffffff;
}

.dlm-action.is-primary .dlm-action-ico {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.dlm-action.is-primary em {
    color: rgba(255, 255, 255, 0.78);
}

.dlm-action.is-primary .dlm-action-arrow {
    color: rgba(255, 255, 255, 0.72);
}

/* 下载方式页：只显示加载动画，不显示遮罩 */
.dlm-page .pc-loader-overlay {
    display: none !important;
}

/* 下载方式页：底部说明卡片 */
.dlm-notes {
    margin-top: 18px;
}

.dlm-note-card {
    margin-top: 14px;
    padding: 16px 14px;
    border: 1px solid #e4e7ee;
    border-radius: 14px;
    background: #ffffff;
    -webkit-box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.dlm-note-card:first-child {
    margin-top: 0;
}

.dlm-troll-help {
    border-color: #fde68a;
    background: #fffbeb;
}

.dlm-note-head {
    min-height: 38px;
}

.dlm-note-ico {
    float: left;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 17px;
    line-height: 38px;
    text-align: center;
}

.dlm-note-ico.is-amber {
    background: #fef3c7;
    color: #d97706;
}

.dlm-note-head-main {
    margin-left: 50px;
}

.dlm-note-head h2 {
    color: #111827;
    font-size: 16px;
    font-weight: 800;
    line-height: 21px;
}

.dlm-note-head p {
    margin-top: 3px;
    color: #9ca3af;
    font-size: 12.5px;
    line-height: 17px;
}

.dlm-troll-steps {
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px dashed #fde68a;
}

.dlm-troll-step {
    position: relative;
    min-height: 22px;
    padding-left: 30px;
    margin-top: 11px;
}

.dlm-troll-step:first-child {
    margin-top: 0;
}

.dlm-step-no {
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 10px;
    background: #f59e0b;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}

.dlm-troll-step p {
    color: #4b5563;
    font-size: 13.5px;
    line-height: 1.75;
}

.dlm-troll-step p b {
    color: #92400e;
    font-weight: 700;
}

.dlm-troll-figure {
    margin-top: 14px;
    padding: 8px 8px 9px;
    border: 1px solid #fde68a;
    border-radius: 12px;
    background: #ffffff;
}

.dlm-troll-img {
    display: block;
    width: 100%;
    max-width: 280px;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
}

.dlm-troll-caption {
    display: block;
    margin-top: 8px;
    color: #a16207;
    font-size: 12px;
    line-height: 16px;
    text-align: center;
}

.dlm-help-list {
    margin: 14px 0 0;
    padding: 13px 0 0;
    list-style: none;
    border-top: 1px dashed #e4e7ee;
}

.dlm-help-list li {
    position: relative;
    min-height: 30px;
    padding-left: 40px;
    margin-top: 13px;
}

.dlm-help-list li:first-child {
    margin-top: 0;
}

.dlm-help-ico {
    position: absolute;
    left: 0;
    top: 0;
    width: 29px;
    height: 29px;
    border-radius: 9px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 13px;
    line-height: 29px;
    text-align: center;
}

.dlm-help-ico.is-green {
    background: #d1fae5;
    color: #059669;
}

.dlm-help-ico.is-violet {
    background: #ede9fe;
    color: #7c3aed;
}

.dlm-help-ico.is-red {
    background: #fee2e2;
    color: #dc2626;
}

.dlm-help-list b {
    display: block;
    color: #111827;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 18px;
}

.dlm-help-list em {
    display: block;
    margin-top: 2px;
    color: #6b7280;
    font-style: normal;
    font-size: 12.5px;
    line-height: 17px;
}

/* ==================================================================
 * 论坛外链安全提示（/forum/jump.html）
 * ================================================================== */

.jump-target {
    margin-top: 14px;
    padding: 12px;
    border-radius: 10px;
    background: #f8fafc;
}

.jump-label {
    color: #9ca3af;
    font-size: 12px;
    line-height: 16px;
}

.jump-host {
    margin-top: 3px;
    color: #111827;
    font-size: 17px;
    font-weight: 800;
    line-height: 22px;
    word-wrap: break-word;
}

.jump-url {
    margin-top: 6px;
    color: #6b7280;
    font-size: 13px;
    line-height: 18px;
    word-wrap: break-word;
    word-break: break-all;
}

/* ==================================================================
 * 截图递交页（/app/{id}/screenshots.html）
 * ================================================================== */

.shot-app {
    position: relative;
    padding: 14px;
}

.shot-app-ico {
    float: left;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #f3f4f6;
}

.shot-app-main {
    margin-left: 68px;
    padding-right: 84px;
    min-height: 56px;
}

.shot-app-main h1 {
    color: #111827;
    font-size: 17px;
    font-weight: 800;
    line-height: 22px;
    word-wrap: break-word;
    word-break: break-word;
}

.shot-app-main p {
    margin-top: 4px;
    color: #9ca3af;
    font-size: 12.5px;
    line-height: 16px;
    word-wrap: break-word;
}

.shot-progress {
    position: absolute;
    right: 14px;
    top: 14px;
    width: 76px;
    text-align: right;
}

.shot-progress b {
    color: #2563eb;
    font-size: 20px;
    font-weight: 800;
    line-height: 22px;
}

.shot-progress b em {
    color: #9ca3af;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
}

.shot-progress p {
    margin-top: 3px;
    color: #9ca3af;
    font-size: 11px;
    line-height: 14px;
}

.shot-progress-bar {
    height: 5px;
    margin-top: 7px;
    border-radius: 3px;
    background: #e5e7eb;
    overflow: hidden;
}

.shot-progress-bar span {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: #2563eb;
}

.shot-head {
    margin-bottom: 2px;
}

.shot-head h2 {
    float: left;
    color: #111827;
    font-size: 15px;
    font-weight: 800;
    line-height: 24px;
}

.shot-head .uc-chip {
    float: right;
    margin: 0;
    line-height: 23px;
}

.shot-hint {
    margin-top: 6px;
    color: #9ca3af;
    font-size: 12.5px;
    line-height: 17px;
}

.shot-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
}

.shot-grid {
    margin-top: 12px;
}

.shot-grid:after {
    content: "";
    display: block;
    clear: both;
}

.shot-item,
.shot-add {
    float: left;
    width: 31.2%;
    height: 104px;
    margin: 0 3.2% 8px 0;
    border-radius: 10px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.shot-item:nth-child(3n),
.shot-add:nth-child(3n) {
    margin-right: 0;
}

.shot-item {
    position: relative;
    overflow: hidden;
    border: 1px solid #eef0f5;
    background: #f8fafc;
    line-height: 102px;
    text-align: center;
}

.shot-item img {
    max-width: 100%;
    max-height: 100%;
    vertical-align: middle;
}

.shot-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 3;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    font-size: 12px;
    line-height: 22px;
    text-align: center;
    -webkit-appearance: none;
    appearance: none;
}

.shot-overlay {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    display: none;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.62);
    color: #ffffff;
    line-height: 16px;
    text-align: center;
}

.shot-item.is-loading .shot-overlay,
.shot-item.is-ok .shot-overlay,
.shot-item.is-fail .shot-overlay {
    display: block;
}

.shot-item.is-ok .shot-overlay {
    background: rgba(22, 163, 74, 0.88);
}

.shot-item.is-fail .shot-overlay {
    background: rgba(220, 38, 38, 0.88);
}

.shot-overlay .fa {
    display: none;
    margin-top: 28px;
    font-size: 22px;
}

.shot-item.is-loading .shot-ov-loading,
.shot-item.is-ok .shot-ov-ok,
.shot-item.is-fail .shot-ov-fail {
    display: block;
}

.shot-msg {
    display: block;
    padding: 4px 3px 0;
    font-size: 10px;
    line-height: 14px;
    word-wrap: break-word;
}

.shot-add {
    display: block;
    padding: 10px 6px;
    border: 2px dashed #d1d5db;
    background: #f9fafb;
    color: #6b7280;
    text-align: center;
    line-height: normal;
}

.shot-add-ico {
    display: block;
    margin: 14px 0 5px;
    color: #9ca3af;
    font-size: 24px;
    line-height: 24px;
}

.shot-add b {
    display: block;
    color: #4b5563;
    font-size: 13px;
    font-weight: 700;
    line-height: 17px;
}

.shot-add small {
    display: block;
    margin-top: 3px;
    color: #9ca3af;
    font-size: 10.5px;
    line-height: 14px;
}

.shot-add-short {
    display: none;
    font-size: 12.5px;
}

.shot-grid.is-empty .shot-add {
    float: none;
    width: 100%;
    height: 118px;
    margin-right: 0;
}

.shot-grid.is-empty .shot-add-ico {
    margin-top: 26px;
}

.shot-grid.is-empty .shot-add-long {
    display: block;
}

.shot-grid.is-empty .shot-add-short {
    display: none;
}

.shot-grid:not(.is-empty) .shot-add-long {
    display: none;
}

.shot-grid:not(.is-empty) .shot-add-short {
    display: block;
}

.shot-grid.is-full .shot-add {
    display: none;
}

.shot-status {
    min-height: 18px;
    margin-top: 12px;
    color: #6b7280;
    font-size: 13px;
    line-height: 18px;
    word-wrap: break-word;
}

.shot-status.is-ok {
    color: #16a34a;
}

.shot-status.is-warn {
    color: #b45309;
}

.shot-status.is-fail {
    color: #dc2626;
}

.shot-submit {
    margin-top: 10px;
}

.shot-done-ico {
    float: left;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ecfdf5;
    color: #059669;
    font-size: 22px;
    line-height: 44px;
    text-align: center;
}

.shot-done-main {
    margin-left: 58px;
}

.shot-done-main h2 {
    color: #111827;
    font-size: 15px;
    font-weight: 800;
    line-height: 20px;
    word-wrap: break-word;
}

.shot-done-main p {
    margin-top: 5px;
    color: #9ca3af;
    font-size: 13px;
    line-height: 18px;
}

.shot-rules {
    margin-top: 14px;
}

.shot-rule {
    padding: 8px 0;
    border-top: 1px solid #f1f3f8;
}

.shot-rule:first-of-type {
    border-top: 0;
}

.shot-rule-ico {
    float: left;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 14px;
    line-height: 30px;
    text-align: center;
}

.shot-rule-text {
    display: block;
    margin-left: 42px;
    padding-top: 4px;
    color: #4b5563;
    font-size: 13.5px;
    line-height: 19px;
}

.shot-rules-btn {
    margin-top: 12px;
}

@media screen and (max-width: 330px) {
    .shot-app-main {
        padding-right: 72px;
    }

    .shot-progress {
        width: 66px;
    }

    .shot-progress p {
        font-size: 10px;
    }

    .shot-item,
    .shot-add {
        height: 94px;
    }

    .shot-item {
        line-height: 92px;
    }

    .shot-add-ico {
        margin-top: 10px;
    }
}

/* 个性化：界面语言胶囊 */
.uc-card .lang-switch {
    margin-top: 12px;
}

/* ==================================================================
 * 登录 / 注册 / 找回密码 / 下载方式：无 JavaScript 提示
 * 仅在 <noscript> 中渲染，JavaScript 正常时不参与布局。
 * 兼容 iOS 5 / 6：不使用 flex / grid / CSS 变量。
 * ================================================================== */
.au-noscript {
    padding: 2px 0 10px;
    color: #111827;
    font-size: 14px;
    line-height: 1.75;
}

.au-noscript-badge {
    display: inline-block;
    padding: 2px 10px 2px 8px;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    background: #fff7ed;
    color: #b45309;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.7;
}

.au-noscript-badge .fa {
    margin-right: 4px;
    color: #f59e0b;
}

.au-noscript p {
    margin: 0 0 8px;
}

.au-noscript p.au-noscript-title {
    margin: 10px 0 8px;
    color: #111827;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
}

.au-noscript p.au-noscript-lead {
    font-weight: 600;
}

.au-noscript-browser {
    margin: 14px 0 0;
    padding: 14px 14px 12px;
    border: 1px solid #e4e7ee;
    border-radius: 12px;
    background: #fafafa;
}

.au-noscript-browser:last-child {
    margin-bottom: 10px;
}

.au-noscript-browser-head {
    margin: 0 0 8px;
    font-size: 0;
}

.au-noscript-browser-ico {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 7px;
    border-radius: 7px;
    background: #4285f4;
    color: #ffffff;
    font-size: 13px;
    line-height: 24px;
    text-align: center;
    vertical-align: -7px;
}

.au-noscript-browser-ico.is-safari {
    background: #0ea5e9;
}

.au-noscript-browser-name {
    color: #111827;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.5;
}

.au-noscript-browser-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 0 7px;
    border: 1px solid #e4e7ee;
    border-radius: 999px;
    background: #ffffff;
    color: #9ca3af;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    vertical-align: 1px;
}

.au-noscript-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: au-ns-step;
}

.au-noscript-steps li {
    position: relative;
    margin: 0 0 7px;
    padding-left: 24px;
    color: #111827;
    font-size: 13.5px;
    line-height: 1.7;
    counter-increment: au-ns-step;
}

.au-noscript-steps li:last-child {
    margin-bottom: 0;
}

.au-noscript-steps li:before {
    content: counter(au-ns-step);
    position: absolute;
    top: 1px;
    left: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.au-noscript p.au-noscript-hint {
    margin: 8px 0 0;
    color: #9ca3af;
    font-size: 12px;
    line-height: 1.6;
}
