/* ========= 基础 ========= */
:root {
  --brand: #2E7BF6; --brand-2: #1AA7E8; --brand-dark: #1B5ED6; --brand-soft: #E8F1FF; --brand-soft2: #F2F7FF;
  --bg: #F4F7FC; --card: #fff; --text: #1D2939; --text-2: #475467; --muted: #8A94A6; --line: #E9EEF5;
  --green: #12B76A; --amber: #F79009; --red: #F04438; --purple: #7B61FF;
  --radius: 20px; --radius-sm: 12px; --shadow: 0 6px 24px rgba(29, 41, 57, .06); --shadow-sm: 0 2px 10px rgba(29, 41, 57, .05);
  --tabbar-h: 60px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif; color: var(--text); background: var(--bg); font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
img { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
::selection { background: #CFE0FF; }
.hidden { display: none !important; }
.show-pc { display: block; } .show-h5 { display: none; }

/* ========= 顶部导航（PC） ========= */
.topbar { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); height: 64px; }
.topbar .container { display: flex; align-items: center; gap: 28px; height: 64px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: .5px; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 2px; letter-spacing: 0; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 6px 12px; border-radius: 10px; font-size: 15px; color: var(--text-2); font-weight: 500; }
.nav-links a:hover { background: var(--brand-soft2); color: var(--text); }
.nav-links a.active { color: var(--brand); background: var(--brand-soft); }
.topbar .searchbar { margin-left: auto; flex: 0 1 300px; }
.user-area { display: flex; align-items: center; gap: 12px; }
.user-area .avatar { width: 34px; height: 34px; }
.user-name { font-weight: 500; color: var(--text-2); max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-link { color: var(--muted); font-size: 13px; }

/* ========= 搜索框 ========= */
.searchbar { display: flex; align-items: center; background: #F2F4F7; border-radius: 999px; padding: 4px 4px 4px 14px; height: 40px; border: 1.5px solid transparent; transition: .2s; }
.searchbar:focus-within { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(46,123,246,.12); }
.searchbar input { flex: 1; border: 0; outline: 0; background: transparent; min-width: 0; font-size: 14px; }
.searchbar input::placeholder { color: var(--muted); }
.searchbar .btn { height: 32px; padding: 0 16px; border-radius: 999px; font-size: 13px; }
.searchbar .ico { color: var(--muted); margin-right: 6px; }

/* ========= 按钮 ========= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 14px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 4px 12px rgba(46,123,246,.25); transition: .15s; white-space: nowrap; }
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn.block { width: 100%; }
.btn-outline { background: #fff; color: var(--brand); border: 1.5px solid #C9DBFB; box-shadow: none; }
.btn-outline:hover { background: var(--brand-soft2); }
.btn-ghost { background: var(--brand-soft); color: var(--brand); box-shadow: none; }
.btn-ghost:hover { background: #DBE9FF; }
.btn-danger { background: #FEF3F2; color: var(--red); box-shadow: none; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 46px; padding: 0 26px; font-size: 15px; }
.btn-light { background: #fff; color: var(--brand); box-shadow: none; }
.link { color: var(--brand); font-weight: 500; cursor: pointer; }
.link:hover { text-decoration: underline; }
.link-muted { color: var(--muted); cursor: pointer; font-size: 13px; }
.link-muted:hover { color: var(--text); }

/* ========= 表单 ========= */
.input, .select, .textarea { width: 100%; border: 1.5px solid var(--line); background: #F9FAFB; border-radius: 12px; padding: 10px 14px; outline: 0; transition: .15s; font-size: 14px; color: var(--text); }
.textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(46,123,246,.1); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238A94A6' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.field label span { color: var(--red); margin-left: 2px; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.upload-box { position: relative; border: 1.5px dashed #C9D6E8; border-radius: 14px; background: #FAFCFF; padding: 22px 16px; text-align: center; color: var(--muted); cursor: pointer; transition: .15s; font-size: 13px; }
.upload-box:hover { border-color: var(--brand); background: var(--brand-soft2); color: var(--brand); }
.upload-box input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-box.has-file { border-style: solid; border-color: #9EC5FF; background: var(--brand-soft2); color: var(--text); }
.upload-box .ico { display: block; margin: 0 auto 6px; color: var(--brand); }
.upload-box .fname { font-weight: 600; color: var(--text); word-break: break-all; }
.upload-box .fsize { font-size: 12px; color: var(--muted); }
.radio-group { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-group label { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 500; font-size: 13px; color: var(--text-2); cursor: pointer; margin: 0; }
.radio-group input { display: none; }
.radio-group label.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }

/* ========= 卡片 / 面板 ========= */
.app { min-height: calc(100vh - 64px); }
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.panel-pad { padding: 22px 24px; }
.section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.section-head h2 { font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.section-head h2::before { content: ''; width: 4px; height: 18px; border-radius: 2px; background: linear-gradient(180deg, var(--brand), var(--brand-2)); }
.section-head .sub { color: var(--muted); font-size: 13px; }
.section-head .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.tabs { display: flex; gap: 6px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 8px 16px; border-radius: 12px; font-weight: 600; color: var(--text-2); white-space: nowrap; transition: .15s; font-size: 15px; }
.tab:hover { color: var(--brand); background: var(--brand-soft2); }
.tab.active { color: var(--brand); background: var(--brand-soft); }
.tab .cnt { font-size: 11px; color: var(--muted); margin-left: 3px; font-weight: 500; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 5px 12px; border-radius: 999px; background: #F2F4F7; color: var(--text-2); font-size: 12.5px; font-weight: 500; white-space: nowrap; transition: .15s; }
.chip:hover { background: var(--brand-soft); color: var(--brand); }
.chip.active { background: var(--brand); color: #fff; }
.chip.outline { background: #fff; border: 1px solid var(--line); }
.chip.outline.active { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.view-toggle { display: inline-flex; background: #F2F4F7; border-radius: 10px; padding: 3px; }
.view-toggle button { padding: 4px 9px; border-radius: 8px; color: var(--muted); display: flex; }
.view-toggle button.on { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }

/* ========= 首页 ========= */
.hero { display: grid; grid-template-columns: 210px 1fr 280px; gap: 18px; margin: 22px 0 30px; }
.cat-panel { padding: 12px 10px; display: flex; flex-direction: column; }
.cat-panel .cat-title { font-size: 12px; color: var(--muted); padding: 4px 10px 10px; letter-spacing: 1px; }
.cat-row { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; color: var(--text-2); font-weight: 500; font-size: 14px; transition: .15s; white-space: nowrap; }
.cat-row:hover { background: var(--brand-soft2); color: var(--brand); }
.cat-row .dot { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; }
.cat-row .chev { margin-left: auto; color: #C3CAD6; }
.banner-wrap { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 2.55 / 1; box-shadow: var(--shadow); background: #dbe9ff; }
.banner-wrap img { width: 100%; height: 100%; object-fit: cover; transition: opacity .4s; }
.banner-wrap .banner-text { position: absolute; inset: 0; padding: 34px 38px; display: flex; flex-direction: column; justify-content: center; color: #fff; }
.banner-wrap .banner-text h3 { font-size: 28px; font-weight: 700; letter-spacing: 1px; line-height: 1.3; }
.banner-wrap .banner-text p { opacity: .9; margin-top: 8px; font-size: 15px; }
.banner-wrap .banner-text .btn { align-self: flex-start; margin-top: 18px; height: 36px; font-size: 13px; }
.banner-dots { position: absolute; right: 18px; bottom: 14px; display: flex; gap: 6px; }
.banner-dots i { width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.5); transition: .2s; cursor: pointer; }
.banner-dots i.on { width: 22px; background: #fff; }
.side-col { display: flex; flex-direction: column; gap: 16px; }
.side-col[data-empty] .notice-card { flex: 0 0 auto; }
.side-col[data-empty] .notice-card ul { display: flex; flex-direction: column; gap: 12px; }
.progress { height: 6px; background: #D8E4F7; border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.notice-card { padding: 16px 18px; }
.notice-card .ttl { font-weight: 700; display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.notice-card ul { list-style: none; }
.notice-card li { display: flex; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13px; color: var(--text-2); cursor: pointer; }
.notice-card li:last-child { border: 0; padding-bottom: 0; }
.notice-card li i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-top: 9px; flex-shrink: 0; }
.notice-card li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 30px; }
.stat-item { display: flex; align-items: center; gap: 14px; padding: 16px 20px; }
.stat-item .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.stat-item b { display: block; font-size: 22px; font-weight: 700; line-height: 1.2; }
.stat-item span { display: block; font-size: 12px; color: var(--muted); }

/* ========= 资源网格 ========= */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.res-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); transition: .2s; cursor: pointer; border: 1px solid transparent; display: flex; flex-direction: column; position: relative; }
.res-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(29,41,57,.1); border-color: #DCE8FA; }
.res-card .cover { position: relative; aspect-ratio: 16/10; background: #E4EEFF; overflow: hidden; }
.res-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.res-card .cover .dur { position: absolute; right: 8px; bottom: 8px; background: rgba(17,24,39,.7); color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 6px; display: flex; align-items: center; gap: 3px; }
.res-card .cover .play { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(255,255,255,.9); display: grid; place-items: center; color: var(--brand); opacity: 0; transition: .2s; box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.res-card:hover .play { opacity: 1; }
.res-card .cover .progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; border-radius: 0; }
.res-card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.res-card h3 { font-size: 15px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 43px; }
.res-card .tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.res-card .tags span { font-size: 11px; color: var(--text-2); background: #F2F4F7; padding: 1px 7px; border-radius: 6px; }
.res-card .meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; font-size: 12px; color: var(--muted); }
.res-card .meta .l { display: flex; gap: 12px; }
.res-card .meta .l span { display: flex; align-items: center; gap: 3px; }
.res-card .fav { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.85); display: grid; place-items: center; color: #98A2B3; opacity: 0; transition: .2s; }
.res-card:hover .fav { opacity: 1; }
.res-card .fav.on { opacity: 1; color: #F79009; }
.type-badge { position: absolute; left: 10px; top: 10px; font-size: 11px; padding: 2px 8px; border-radius: 6px; background: rgba(255,255,255,.9); color: var(--brand); font-weight: 600; backdrop-filter: blur(4px); }
.grid.list { grid-template-columns: 1fr; }
.grid.list .res-card { flex-direction: row; }
.grid.list .res-card .cover { width: 200px; aspect-ratio: 16/9; flex-shrink: 0; }
.grid.list .res-card .body { padding: 14px 18px; }
.grid.list .res-card h3 { min-height: 0; font-size: 16px; }
.grid.list .res-card .summary { color: var(--muted); font-size: 13px; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 帖子 */
.post-card { padding: 18px 20px; cursor: pointer; transition: .2s; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.post-card .author { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.post-card .author .avatar { width: 36px; height: 36px; }
.post-card .author b { font-size: 13.5px; display: block; line-height: 1.3; }
.post-card .author small { color: var(--muted); font-size: 12px; }
.post-card h3 { font-size: 16px; font-weight: 600; line-height: 1.5; margin-bottom: 6px; }
.post-card p { color: var(--text-2); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .foot { display: flex; gap: 16px; margin-top: 12px; color: var(--muted); font-size: 12.5px; }
.post-card .foot span { display: flex; align-items: center; gap: 4px; }
.post-card .cat { margin-left: auto; font-size: 11px; color: var(--brand); background: var(--brand-soft); padding: 1px 8px; border-radius: 6px; }

/* ========= 列表页 ========= */
.page-head { margin: 22px 0 18px; }
.page-head h1 { font-size: 24px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.page-head .desc { color: var(--muted); font-size: 13px; margin-top: 4px; }
.list-layout { display: grid; grid-template-columns: 230px 1fr; gap: 20px; align-items: start; margin-bottom: 40px; }
.filter-panel { padding: 16px; position: sticky; top: 80px; }
.filter-group { margin-bottom: 16px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-group .ft { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .5px; margin-bottom: 8px; padding: 0 8px; }
.filter-opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.filter-opt:hover { background: var(--brand-soft2); }
.filter-opt.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.filter-opt small { margin-left: auto; color: var(--muted); font-size: 12px; }
.list-main { min-width: 0; }
.list-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.list-toolbar .searchbar { flex: 0 1 340px; }
.result-count { color: var(--muted); font-size: 13px; }
.sort-group { display: flex; gap: 4px; margin-left: auto; }
.sort-group button { padding: 6px 12px; border-radius: 10px; font-size: 13.5px; color: var(--text-2); font-weight: 500; }
.sort-group button.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .ico { color: #C9D3E3; margin-bottom: 10px; }
.empty b { display: block; color: var(--text-2); font-size: 15px; margin-bottom: 4px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 26px 0 10px; color: var(--muted); font-size: 13px; }
.load-more { margin: 24px auto 0; display: block; }

/* ========= 详情页 ========= */
.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; margin: 22px 0 40px; }
.player { position: relative; background: #0f172a; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; aspect-ratio: 16/9; }
.player video { width: 100%; height: 100%; }
.player .no-video { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #fff; background-size: cover; background-position: center; }
.player .no-video::before { content: ''; position: absolute; inset: 0; background: rgba(15,23,42,.55); }
.player .no-video > * { position: relative; }
.player .no-video .big-play { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.95); display: grid; place-items: center; color: var(--brand); cursor: pointer; }
.detail-head { padding: 20px 24px; border-bottom: 1px solid var(--line); }
.detail-head h1 { font-size: 22px; font-weight: 700; line-height: 1.4; }
.detail-head .meta { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 13px; margin-top: 12px; flex-wrap: wrap; }
.detail-head .meta span { display: flex; align-items: center; gap: 5px; }
.detail-head .actions { display: flex; gap: 10px; margin-left: auto; }
.act-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: #F2F4F7; color: var(--text-2); font-weight: 500; font-size: 13px; transition: .15s; }
.act-btn:hover { background: var(--brand-soft); color: var(--brand); }
.act-btn.on { background: var(--brand-soft); color: var(--brand); }
.act-btn.fav-on { color: #F79009; background: #FFF4E5; }
.detail-tabs { display: flex; gap: 4px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.detail-body { padding: 22px 24px; }
.intro p { color: var(--text-2); line-height: 1.9; white-space: pre-wrap; }
.intro .info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.intro .info-grid div { background: #F9FAFB; border-radius: 12px; padding: 10px 14px; font-size: 13px; color: var(--text-2); }
.intro .info-grid b { display: block; color: var(--muted); font-size: 12px; font-weight: 500; margin-bottom: 2px; }
.lesson { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; cursor: pointer; transition: .15s; }
.lesson:hover { background: var(--brand-soft2); }
.lesson .num { width: 30px; height: 30px; border-radius: 9px; background: #F2F4F7; color: var(--text-2); display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.lesson.done .num { background: #E7F8F0; color: var(--green); }
.lesson .name { flex: 1; font-weight: 500; }
.lesson .dur { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 8px; }
.file-box { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #F6F9FF; border-radius: 14px; border: 1px solid #E3ECFB; }
.file-box .ic { width: 42px; height: 42px; border-radius: 12px; background: #fff; color: var(--brand); display: grid; place-items: center; border: 1px solid #E3ECFB; }
.file-box b { display: block; word-break: break-all; }
.file-box small { color: var(--muted); font-size: 12px; }
.file-box .btn { margin-left: auto; }
.stars { display: inline-flex; gap: 2px; color: #D0D5DD; }
.stars .star.on { color: #F79009; }
.stars.lg .ico { width: 26px; height: 26px; }
.rate-row { display: flex; align-items: center; gap: 14px; padding: 16px; background: #FAFBFC; border-radius: 14px; margin-top: 18px; }
.rate-row .big { font-size: 30px; font-weight: 700; color: #F79009; line-height: 1; }
.rate-row .rate-stars { cursor: pointer; }
.comment-item { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-item:last-child { border: 0; }
.comment-item .avatar { width: 38px; height: 38px; }
.comment-item .c-body { flex: 1; min-width: 0; }
.comment-item .c-head { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.comment-item .c-head b { font-size: 14px; }
.comment-item .c-head time { color: var(--muted); font-size: 12px; }
.comment-item .c-text { margin-top: 6px; color: var(--text); line-height: 1.7; }
.comment-item .c-foot { display: flex; gap: 14px; margin-top: 8px; color: var(--muted); font-size: 12.5px; }
.comment-item .c-foot span { cursor: pointer; display: flex; align-items: center; gap: 4px; }
.comment-item .c-foot span.on { color: #F79009; }
.comment-item .reply { margin-top: 10px; background: var(--brand-soft2); border-radius: 10px; padding: 8px 12px; font-size: 13px; color: var(--text-2); }
.comment-form { background: #F9FAFB; border-radius: 14px; padding: 14px; margin-bottom: 8px; }
.comment-form .textarea { background: #fff; min-height: 80px; border-color: transparent; }
.comment-form .cf-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.side-card { padding: 18px; }
.side-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.author-box { display: flex; align-items: center; gap: 12px; }
.author-box .avatar { width: 48px; height: 48px; }
.author-box b { display: block; font-size: 15px; }
.author-box small { color: var(--muted); font-size: 12px; }
.mini-item { display: flex; gap: 10px; padding: 8px 0; cursor: pointer; align-items: center; }
.mini-item img { width: 88px; height: 56px; border-radius: 8px; object-fit: cover; background: #E4EEFF; flex-shrink: 0; }
.mini-item .t { font-size: 13px; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-item small { color: var(--muted); font-size: 12px; }
.side-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.side-stats div { background: #F9FAFB; border-radius: 10px; padding: 8px 10px; text-align: center; }
.side-stats b { display: block; font-size: 16px; }
.side-stats span { font-size: 11px; color: var(--muted); }

/* ========= 登录 / 注册 ========= */
.auth-wrap { max-width: 920px; margin: 40px auto; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: 24px; box-shadow: var(--shadow); background: #fff; }
.auth-side { background: linear-gradient(135deg, #2E7BF6 0%, #1AA7E8 100%); color: #fff; padding: 44px 40px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side::after { content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.1); right: -120px; bottom: -120px; }
.auth-side h2 { font-size: 28px; font-weight: 700; line-height: 1.4; margin-top: 20px; }
.auth-side p { opacity: .9; margin-top: 12px; line-height: 1.8; }
.auth-side ul { list-style: none; margin-top: 24px; display: grid; gap: 10px; font-size: 14px; }
.auth-side li { display: flex; align-items: center; gap: 8px; }
.auth-form { padding: 44px 40px; }
.auth-form h3 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.auth-form .sub { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.auth-form .switch { text-align: center; margin-top: 18px; color: var(--muted); font-size: 13px; }

/* ========= 上传页 ========= */
.form-layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; margin-bottom: 40px; }
.tips-card { padding: 18px 20px; font-size: 13px; color: var(--text-2); line-height: 1.8; }
.tips-card h4 { font-size: 15px; margin-bottom: 8px; color: var(--text); }
.tips-card ol { padding-left: 18px; }
.tips-card li { margin-bottom: 4px; }
.my-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.my-table th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12.5px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.my-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.my-table tr:last-child td { border-bottom: 0; }
.my-table .t-cell { display: flex; align-items: center; gap: 10px; }
.my-table .t-cell img { width: 72px; height: 46px; border-radius: 8px; object-fit: cover; background: #E4EEFF; }
.my-table .t-cell b { font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.badge.pending { background: #FFFAEB; color: var(--amber); }
.badge.approved { background: #ECFDF3; color: var(--green); }
.badge.rejected { background: #FEF3F2; color: var(--red); }
.badge.banned { background: #FEF3F2; color: var(--red); }
.badge.active { background: #ECFDF3; color: var(--green); }
.badge.admin { background: #F4F3FF; color: var(--purple); }
.badge.user { background: #F2F4F7; color: var(--text-2); }
.badge.blue { background: var(--brand-soft); color: var(--brand); }
.badge.grey { background: #F2F4F7; color: var(--text-2); }
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; }

/* ========= 我的 ========= */
.profile-card { display: flex; align-items: center; gap: 18px; padding: 24px; margin: 22px 0 18px; background: linear-gradient(120deg, #fff 60%, #EEF5FF); }
.profile-card .avatar { width: 72px; height: 72px; border: 3px solid #fff; box-shadow: var(--shadow-sm); }
.profile-card h2 { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.profile-card .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.profile-card .nums { margin-left: auto; display: flex; gap: 26px; text-align: center; }
.profile-card .nums b { display: block; font-size: 20px; }
.profile-card .nums span { font-size: 12px; color: var(--muted); }
/* ========= 首页专题板块 ========= */
.topic-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.topic-card { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-radius: 16px; color: #fff; background: linear-gradient(118deg, var(--c1) 0%, var(--c2) 100%); box-shadow: 0 8px 22px rgba(46, 123, 246, .16); overflow: hidden; }
.topic-card::after { content: ''; position: absolute; right: -34px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.topic-card::before { content: ''; position: absolute; right: 30px; bottom: -50px; width: 90px; height: 90px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.topic-card .tp-ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .2); display: grid; place-items: center; flex-shrink: 0; }
.topic-card .tp-main { flex: 1; min-width: 0; position: relative; z-index: 1; }
.topic-card b { display: block; font-size: 15.5px; font-weight: 700; letter-spacing: .2px; }
.topic-card small { display: block; margin-top: 3px; font-size: 11.5px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topic-card > .ico { position: relative; z-index: 1; opacity: .75; flex-shrink: 0; }
.topic-card:hover { box-shadow: 0 10px 26px rgba(46, 123, 246, .24); }

/* ========= 专题页 ========= */
.topic-hero { position: relative; overflow: hidden; border-radius: var(--radius); padding: 30px 32px; color: #fff; background: linear-gradient(118deg, var(--c1) 0%, var(--c2) 100%); margin-bottom: 8px; }
.topic-hero::after { content: ''; position: absolute; right: -60px; top: -70px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.topic-hero::before { content: ''; position: absolute; right: 90px; bottom: -110px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.topic-hero .th-ic { width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .2); display: grid; place-items: center; margin-bottom: 14px; position: relative; z-index: 1; }
.topic-hero h1 { font-size: 26px; font-weight: 700; position: relative; z-index: 1; }
.topic-hero p { max-width: 760px; margin-top: 8px; font-size: 14px; line-height: 1.85; opacity: .92; position: relative; z-index: 1; }
.topic-hero .th-meta { display: flex; gap: 16px; margin-top: 14px; font-size: 12.5px; opacity: .82; position: relative; z-index: 1; }

/* ========= 图文正文 ========= */
.article-hero { background: linear-gradient(135deg, #E8F0FF 0%, #D6E6FF 100%); }
.prose { font-size: 16px; line-height: 1.95; color: var(--text); }
.prose p { margin: 0 0 16px; }
.prose h2 { font-size: 19px; font-weight: 700; margin: 28px 0 12px; padding-left: 10px; border-left: 4px solid var(--brand); line-height: 1.5; }
.prose h3 { font-size: 17px; font-weight: 700; margin: 22px 0 10px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 7px; }
.prose blockquote { margin: 20px 0; padding: 12px 18px; background: var(--brand-soft2); border-left: 3px solid var(--brand); border-radius: 0 10px 10px 0; color: var(--text-2); font-size: 15px; }
.prose img { max-width: 100%; border-radius: 12px; margin: 16px 0; display: block; }
.prose a { color: var(--brand); text-decoration: underline; }
.prose strong { font-weight: 700; }

/* ========= 图文编辑器 ========= */
.editor { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.ed-bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 8px; background: #F8FAFF; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
.ed-bar button { height: 30px; min-width: 32px; padding: 0 10px; border-radius: 8px; font-size: 13px; color: var(--text-2); background: transparent; }
.ed-bar button:hover { background: #E8F0FF; color: var(--brand); }
.ed-body { min-height: 280px; padding: 16px 18px; outline: none; font-size: 15px; line-height: 1.95; }
.ed-body:empty::before { content: attr(data-ph); color: #98A2B3; font-size: 14px; }
.ed-body h2 { font-size: 18px; font-weight: 700; margin: 18px 0 8px; }
.ed-body blockquote { margin: 12px 0; padding: 8px 14px; border-left: 3px solid var(--brand); background: var(--brand-soft2); }
.ed-body ul, .ed-body ol { padding-left: 22px; }
.ed-body img { max-width: 100%; border-radius: 10px; margin: 10px 0; display: block; }

/* 我的 - 上次学到 */
.my-continue { display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; margin-bottom: 16px; transition: .18s; }
.my-continue:hover { border-color: #C7DBFF; box-shadow: 0 8px 22px rgba(46,123,246,.1); transform: translateY(-1px); }
.my-continue .mc-thumb { position: relative; width: 100px; height: 64px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: linear-gradient(135deg, #DCEBFF, #EAF3FF); display: block; }
.my-continue .mc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.my-continue .mc-ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--brand); }
.my-continue .mc-play { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: rgba(17,33,61,.5); color: #fff; display: grid; place-items: center; }
.my-continue .mc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.my-continue .mc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.my-continue .mc-top em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; }
.my-continue .mc-top em::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.my-continue .mc-top small { font-size: 11.5px; color: var(--muted); flex-shrink: 0; }
.my-continue .mc-main b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.my-continue .mc-bar { display: block; height: 4px; border-radius: 999px; background: #E4EDFA; overflow: hidden; }
.my-continue .mc-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.my-continue .mc-go { flex-shrink: 0; display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; font-weight: 600; color: var(--brand); }
.my-continue .mc-go em { font-style: normal; }
.my-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.my-quick a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); transition: .16s; }
.my-quick a:hover { border-color: #C7DBFF; box-shadow: 0 6px 18px rgba(46,123,246,.1); }
.my-quick .q-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #2E7BF6 0%, #1AA7E8 100%); color: #fff; flex-shrink: 0; }
.my-quick .q-ic.alt { background: #EEF5FF; color: var(--brand); }
.my-quick b { display: block; font-size: 14px; }
.my-quick small { color: var(--muted); font-size: 11.5px; }
.my-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.my-tabs .tab { border-radius: 12px 12px 0 0; position: relative; }
.my-tabs .tab.active { background: transparent; }
.my-tabs .tab.active::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 3px; border-radius: 3px; background: var(--brand); }
.settings { max-width: 620px; }
.avatar-row { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.avatar-row .avatar { width: 72px; height: 72px; }
.msg-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.msg-item:last-child { border: 0; }
.msg-item .mi-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.msg-item h4 { font-size: 14.5px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.msg-item p { color: var(--text-2); font-size: 13.5px; margin-top: 4px; }
.msg-item .reply { margin-top: 8px; background: var(--brand-soft2); border-radius: 10px; padding: 8px 12px; font-size: 13px; }
.msg-item time { color: var(--muted); font-size: 12px; margin-left: auto; white-space: nowrap; }
.notice-item { padding: 16px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.notice-item:last-child { border: 0; }
.notice-item h4 { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.notice-item .content { margin-top: 8px; color: var(--text-2); line-height: 1.8; white-space: pre-wrap; font-size: 14px; }
.notice-item small { color: var(--muted); font-size: 12px; }
.ann-list { padding: 6px 24px; }
.circle-compose { padding: 16px 20px; margin-bottom: 16px; }
.circle-compose .row { display: flex; gap: 12px; align-items: center; }
.circle-compose .avatar { width: 40px; height: 40px; }
.circle-compose .fake { flex: 1; background: #F2F4F7; border-radius: 999px; padding: 10px 16px; color: var(--muted); cursor: pointer; font-size: 14px; }

/* ========= 页脚 ========= */
.footer { border-top: 1px solid var(--line); background: #fff; margin-top: 40px; }
.footer .container { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; color: var(--muted); font-size: 13px; flex-wrap: wrap; gap: 10px; }
.footer b { color: var(--text-2); }
.footer a:hover { color: var(--brand); }

/* ========= 底部标签栏（H5） ========= */
.tabbar { display: none; }
.avatar { border-radius: 50%; object-fit: cover; background: #E4EEFF; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.back-link { display: none; align-items: center; gap: 4px; margin-bottom: 10px; }
.post-hero { display: flex; align-items: center; gap: 14px; padding: 26px 24px; color: #fff; background: linear-gradient(135deg, #2E7BF6 0%, #1AA7E8 100%); border-radius: var(--radius) var(--radius) 0 0; }
.post-hero .ph-ic { width: 48px; height: 48px; border-radius: 14px; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.post-hero .ph-t { font-weight: 700; font-size: 17px; }
.post-hero .ph-s { opacity: .85; font-size: 12.5px; margin-top: 2px; }
.doc-hero { position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.doc-hero img { width: 100%; height: 100%; object-fit: cover; }
.doc-hero .bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 20px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: linear-gradient(180deg, rgba(15,23,42,0) 0%, rgba(15,23,42,.55) 100%); }
.badge.light { background: rgba(255,255,255,.92); color: var(--text); }
.side-card .link { color: var(--brand); font-weight: 600; }
.url-row { display: flex; } .url-row .input { flex: 1; min-width: 0; } .url-row span { white-space: nowrap; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mb-16 { margin-bottom: 16px; }
.row { display: flex; align-items: center; gap: 8px; }
.right { margin-left: auto; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }

/* ========= Toast / 弹窗 ========= */
.toast-wrap { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 999; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: rgba(17,24,39,.9); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.2); animation: toastIn .25s ease; display: flex; align-items: center; gap: 8px; max-width: 86vw; }
.toast.ok .ico { color: #6CE9A6; } .toast.err .ico { color: #FDA29B; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.modal-mask { position: fixed; inset: 0; background: rgba(16,24,40,.5); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { background: #fff; border-radius: 20px; width: 100%; max-width: 440px; padding: 24px; box-shadow: 0 24px 60px rgba(0,0,0,.25); animation: pop .2s ease; max-height: 86vh; overflow: auto; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.modal h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.modal .modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.modal .close { position: absolute; right: 16px; top: 14px; color: var(--muted); }
.modal { position: relative; }
.modal .textarea { min-height: 80px; }

/* ========= H5 自适应 ========= */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr 260px; }
  .cat-panel { display: none; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .detail-layout { grid-template-columns: 1fr 300px; }
}
@media (max-width: 768px) {
  html, body { overflow-x: hidden; }
  .grid > *, .stat-strip > *, .tabs > *, .chips > * { min-width: 0; }
  body { background: #E9F2FF; padding-bottom: calc(var(--tabbar-h) + 20px + env(safe-area-inset-bottom)); }
  .show-pc { display: none !important; } .show-h5 { display: block; }
  .container { padding: 0 16px; }
  .topbar { height: auto; background: linear-gradient(135deg, #2E7BF6 0%, #1AA7E8 100%); border: 0; position: relative; padding: calc(10px + env(safe-area-inset-top)) 0 22px; border-radius: 0 0 24px 24px; }
  .topbar::before { content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.08); }
  .topbar::after { content: ''; position: absolute; left: -40px; bottom: 20px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.06); }
  .topbar .container { display: block; height: auto; padding: 0 16px; position: relative; z-index: 1; }
  .brand { color: #fff; font-size: 18px; }
  .brand img { width: 28px; height: 28px; border-radius: 8px; }
  .brand small { color: rgba(255,255,255,.8); }
  .h5-head-row { display: flex; align-items: center; justify-content: space-between; }
  .h5-user { display: flex; align-items: center; gap: 6px; color: #fff; font-size: 13px; }
  .h5-user .avatar { width: 28px; height: 28px; border: 2px solid rgba(255,255,255,.6); }
  .h5-actions { display: flex; align-items: center; gap: 12px; }
  .h5-bell { color: #fff; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.16); }
  .h5-user .login-btn { background: rgba(255,255,255,.22); padding: 5px 14px; border-radius: 999px; color: #fff; font-size: 13px; font-weight: 500; }
  .topbar .searchbar { margin: 10px 0 0; background: #fff; height: 38px; max-width: none; }
  .topbar .searchbar .btn { height: 30px; padding: 0 16px; }
  .nav-links, .topbar .user-area, .footer { display: none; }
  /* 只有首页展示品牌与搜索，其余页面直接从内容开始 */
  body:not([data-page="home"]) .topbar { display: none; }
  body[data-page="login"] .topbar { display: none; }
  .app { margin-top: -16px; position: relative; z-index: 2; min-height: 60vh; }
  body:not([data-page="home"]) .app { margin-top: 0; padding-top: calc(10px + env(safe-area-inset-top)); }
  body:not([data-page="home"]) .app-shell { padding-top: 16px; }
  .app > .container { padding: 0 12px; }
  .app-shell { background: #fff; border-radius: 24px; padding: 20px 14px 24px; box-shadow: 0 10px 30px rgba(29,41,57,.06); }
  .hero { display: block; margin: 0 0 12px; }
  .home-flow { display: flex; flex-direction: column; }
  .home-flow > * { order: 5; }
  .home-flow .topic-row { order: 1; }
  .home-flow .hot-words { order: 2; }
  .home-flow .sec-recommend { order: 3; }
  .home-flow .stat-strip { order: 4; }
  .home-flow .sec-latest { order: 5; }
  .home-flow .sec-circle { order: 6; }
  .topic-row { gap: 10px; margin-bottom: 14px; }
  .topic-card { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; border-radius: 14px; }
  .topic-card .tp-ic { width: 30px; height: 30px; border-radius: 9px; }
  .topic-card .tp-ic .ico { width: 16px; height: 16px; }
  .topic-card b { font-size: 13.5px; line-height: 1.4; }
  .topic-card small { font-size: 10.5px; margin-top: 4px; }
  .topic-card > .ico { display: none; }
  .topic-hero { padding: 20px 18px; }
  .topic-hero .th-ic { width: 38px; height: 38px; border-radius: 11px; margin-bottom: 10px; }
  .topic-hero h1 { font-size: 20px; }
  .topic-hero p { font-size: 12.5px; line-height: 1.75; margin-top: 6px; }
  .topic-hero .th-meta { font-size: 11.5px; margin-top: 10px; }
  .prose { font-size: 15.5px; line-height: 1.9; }
  .prose h2 { font-size: 17.5px; margin: 22px 0 10px; }
  .ed-body { min-height: 220px; padding: 14px; font-size: 14.5px; }
  .ed-bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .ed-bar::-webkit-scrollbar { display: none; }
  .ed-bar button { flex-shrink: 0; padding: 0 8px; font-size: 12.5px; }
  .hot-words { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; }
  .hot-words::-webkit-scrollbar { display: none; }
  .hot-words > * { flex-shrink: 0; }
  .side-col { flex-direction: row; margin-top: 14px; gap: 12px; }
  .side-col[data-empty] { display: none; }
  .side-col .notice-card { flex: 1; }
  .banner-wrap { aspect-ratio: 2.4 / 1; border-radius: 16px; }
  .banner-wrap .banner-text { padding: 22px 24px; }
  .banner-wrap .banner-text h3 { font-size: 20px; }
  .banner-wrap .banner-text p { font-size: 12px; margin-top: 4px; }
  .banner-wrap .banner-text .btn { display: none; }
  .stat-strip { grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 14px; }
  .stat-item { padding: 9px 4px; flex-direction: column; gap: 3px; text-align: center; box-shadow: none; border-radius: 12px; background: #F6F9FF; }
  .stat-item .ic { width: 32px; height: 32px; border-radius: 10px; }
  .stat-item .ic .ico { width: 16px; height: 16px; }
  .stat-item b { font-size: 15px; }
  .stat-item span { font-size: 11px; }
  .my-continue { margin-bottom: 12px; padding: 10px 12px; gap: 10px; border-radius: 16px; }
  .my-continue .mc-thumb { width: 78px; height: 52px; border-radius: 9px; }
  .my-continue .mc-main { gap: 5px; }
  .my-continue .mc-main b { font-size: 13.5px; }
  .my-continue .mc-go em { display: none; }
  .section-head { margin-bottom: 12px; gap: 8px; }
  .section-head h2 { font-size: 17px; }
  .section-head h2::before { height: 16px; }
  .section-head .sub { display: none; }
  .section-head .right { gap: 6px; }
  .tabs { gap: 2px; margin: 0 -2px; }
  .tab { padding: 7px 12px; font-size: 14.5px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .grid.cols-3 { grid-template-columns: 1fr; }
  .res-card { border-radius: 14px; }
  .res-card .cover { aspect-ratio: 16/10.5; }
  .res-card .cover .play { opacity: 1; width: 34px; height: 34px; margin: -17px 0 0 -17px; }
  .res-card .body { padding: 10px 11px 12px; }
  .res-card h3 { font-size: 14px; min-height: 40px; }
  .res-card .tags span:nth-child(n+2) { display: none; }
  .res-card .meta { font-size: 11.5px; padding-top: 8px; }
  .res-card .meta .l { gap: 8px; }
  .res-card .fav { opacity: 1; width: 26px; height: 26px; top: 8px; right: 8px; }
  .res-card .fav .ico { width: 14px; height: 14px; }
  .res-card .cover .dur { font-size: 10px; }
  .post-card { padding: 14px 16px; border-radius: 14px; }
  .list-layout { grid-template-columns: 1fr; gap: 0; }
  .filter-panel { position: static; margin-bottom: 12px; padding: 10px 12px; min-width: 0; max-width: 100%; overflow: hidden; }
  .list-layout > * { min-width: 0; }
  .filter-panel .show-h5 { min-width: 0; max-width: 100%; }
  .filter-panel .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .filter-panel .chips::-webkit-scrollbar { display: none; }
  .filter-panel .chips .chip { flex-shrink: 0; }
  .filter-panel .filter-group { margin-bottom: 0; }
  .filter-panel .filter-group .ft { display: none; }
  .filter-panel .filter-opts { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .filter-panel .filter-opts::-webkit-scrollbar { display: none; }
  .filter-opt { padding: 6px 12px; border-radius: 999px; background: #F2F4F7; white-space: nowrap; font-size: 13px; }
  .filter-opt small { display: none; }
  .filter-opt .dot { width: 8px; height: 8px; border-radius: 50%; }
  .list-toolbar { gap: 8px; margin-bottom: 12px; }
  .list-toolbar .searchbar { flex: 1 1 100%; }
  .result-count { font-size: 12px; }
  .sort-group { margin-left: 0; }
  .sort-group button { padding: 5px 10px; font-size: 13px; }
  .page-head { margin: 4px 0 12px; }
  .page-head h1 { font-size: 20px; }
  .grid.list .res-card { flex-direction: column; }
  .grid.list .res-card .cover { width: 100%; }
  .detail-layout { grid-template-columns: 1fr; gap: 14px; margin: 0 0 14px; }
  .player { border-radius: 18px 18px 0 0; }
  .back-link { display: inline-flex; }
  .post-hero { padding: 18px 16px; border-radius: 18px 18px 0 0; }
  .doc-hero { border-radius: 18px 18px 0 0; aspect-ratio: 16/10; }
  .detail-head { padding: 16px; }
  .detail-head h1 { font-size: 18px; }
  .detail-head .meta { gap: 12px; font-size: 12px; margin-top: 10px; }
  .detail-head .actions { margin-left: 0; width: 100%; }
  .detail-tabs { padding: 0 12px; }
  .detail-body { padding: 16px; }
  .intro .info-grid { grid-template-columns: 1fr 1fr; }
  .auth-wrap { grid-template-columns: 1fr; margin: 0 0 14px; border-radius: 18px; }
  .auth-side { padding: 16px 20px; }
  .auth-side img, .auth-side p, .auth-side ul { display: none; }
  .auth-side h2 { font-size: 16px; margin: 0; line-height: 1.5; }
  .auth-side h2 br { display: none; }
  .auth-form { padding: 22px 20px 24px; }
  .auth-form h3 { font-size: 20px; }
  .form-layout { grid-template-columns: 1fr; }
  .my-quick { gap: 10px; }
  .my-quick a { padding: 12px; gap: 10px; border-radius: 14px; }
  .my-quick .q-ic { width: 36px; height: 36px; border-radius: 11px; }
  .my-quick b { font-size: 13.5px; }
  .my-quick small { font-size: 11px; }
  .page-head .desc { font-size: 12px; line-height: 1.6; }
  #upload-form .row.submit-row { flex-wrap: wrap; gap: 10px; }
  #upload-form .row.submit-row .btn-lg { width: 100%; }
  #upload-form .row.submit-row > .small { width: 100%; text-align: center; }
  .upload-box.h5-box { padding: 18px 12px; }
  .upload-box.h5-box .ico { width: 22px; height: 22px; }
  .tips-card { margin-bottom: 18px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .profile-card { flex-wrap: wrap; padding: 16px; gap: 12px; margin: 0 0 14px; border-radius: 18px; }
  .profile-card .avatar { width: 60px; height: 60px; }
  .profile-card .nums { margin: 0; width: 100%; justify-content: space-between; padding-top: 10px; border-top: 1px dashed var(--line); }
  .panel { border-radius: 16px; }
  .my-tabs { overflow-x: auto; scrollbar-width: none; }
  .my-table thead { display: none; }
  .my-table tbody { display: block; }
  .my-table tr { display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 10px; row-gap: 9px; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .my-table tr:last-child { border-bottom: 0; }
  .my-table td { display: block; padding: 0; border: 0; }
  .my-table td:nth-child(1) { grid-column: 1 / -1; }
  .my-table td:nth-child(2) { grid-column: 1; font-size: 12px; color: var(--muted); }
  .my-table td:nth-child(3) { display: none; }
  .my-table td:nth-child(4) { grid-column: 2; }
  .my-table td:nth-child(5) { grid-column: 3; text-align: right !important; }
  .my-table td:nth-child(5) .btn { height: 28px; padding: 0 10px; font-size: 12px; }
  .my-table .t-cell img { width: 64px; height: 42px; }
  .ann-list { padding: 0 16px; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); z-index: 60; }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11px; }
  .tabbar a .ico { width: 24px; height: 24px; }
  .tabbar a.active { color: var(--brand); }
  .tabbar a.tab-pub { position: relative; justify-content: flex-end; padding-bottom: 8px; overflow: visible; }
  .tabbar a.tab-pub .pub { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #2E7BF6 0%, #1AA7E8 100%); color: #fff; display: grid; place-items: center; box-shadow: 0 7px 18px rgba(46,123,246,.42); border: 3px solid #fff; }
  .tabbar a.tab-pub .pub .ico { width: 22px; height: 22px; }
  .tabbar a.tab-pub .pub-t { font-size: 11px; line-height: 1.2; }
  .tabbar a.tab-pub.active .pub-t { color: var(--brand); }
  .toast-wrap { top: auto; bottom: calc(var(--tabbar-h) + 20px); }
  .msg-item time { display: none; }
  .footer { display: none; }
}
@media (max-width: 380px) { .grid { gap: 10px; } .res-card h3 { font-size: 13.5px; } }
