:root{
  --ink:#182230;--muted:#8792a2;--line:#e8edf3;--bg:#f4f6fa;--panel:#fff;
  --nav:#101e30;--nav-muted:#b7c3d1;--brand:#4278f5;--brand-soft:#edf3ff;--mint:#20bfa9;
  --shadow:0 10px 32px rgba(25,45,75,.055);--radius:16px;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink)}
body{background:var(--bg);font-size:14px}
button,input{font:inherit}
button{cursor:pointer}
a{color:inherit;text-decoration:none}
/* Parent shell */
.app-shell{height:100vh;min-height:560px;display:flex;overflow:hidden;background:var(--bg)}
.sidebar{width:226px;flex:0 0 226px;background:var(--nav);color:#fff;display:flex;flex-direction:column;padding:24px 14px 16px;position:relative;z-index:2}
.brand{display:flex;align-items:center;gap:11px;padding:0 12px 26px;border-bottom:1px solid rgba(255,255,255,.09)}
.brand-mark{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(145deg,#5c91ff,#3567e9);box-shadow:0 7px 18px rgba(55,111,241,.28);font-size:18px;font-weight:800}
.brand-name{font-weight:750;font-size:16px;letter-spacing:.2px}.brand-sub{display:block;margin-top:4px;font-size:10px;color:#91a3b9;font-weight:500;letter-spacing:1.5px}
.nav-caption{padding:24px 12px 10px;color:#71849c;font-size:10px;letter-spacing:1.6px;font-weight:800}
.nav-list{display:flex;flex-direction:column;gap:6px}
.nav-item{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:10px;color:var(--nav-muted);transition:background .18s,color .18s;cursor:pointer;border:0;background:transparent;text-align:left;width:100%;font-size:13px}
.nav-item:hover{background:rgba(255,255,255,.07);color:#fff}.nav-item.active{background:linear-gradient(105deg,#4079f4,#3569e4);color:#fff;box-shadow:0 8px 18px rgba(36,91,220,.23)}
.nav-icon{width:18px;text-align:center;font-size:15px;opacity:.96}.nav-count{margin-left:auto;font-size:10px;border-radius:6px;background:rgba(255,255,255,.09);padding:3px 6px;color:#b8c8de}.nav-item.active .nav-count{background:rgba(255,255,255,.19);color:#fff}
.sidebar-bottom{margin-top:auto;padding:15px 12px 5px;border-top:1px solid rgba(255,255,255,.09);color:#8193a9;font-size:11px;line-height:1.8}.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#39d6a4;margin-right:7px;box-shadow:0 0 0 3px rgba(57,214,164,.1)}
.main-shell{min-width:0;flex:1;display:flex;flex-direction:column}
.topbar{height:78px;flex:0 0 78px;background:rgba(255,255,255,.94);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:24px;padding:0 32px}
.mobile-menu{display:none;border:1px solid var(--line);background:#fff;border-radius:10px;padding:8px 10px;color:var(--ink)}
.top-title{min-width:130px}.top-title strong{display:block;font-size:16px;font-weight:750}.top-title span{display:block;font-size:11px;color:var(--muted);margin-top:4px}
.top-search{position:relative;flex:1;max-width:620px;margin:0 auto}.search-icon{position:absolute;left:15px;top:50%;transform:translateY(-50%);color:#9ba6b5;font-size:16px}.top-search input{width:100%;height:42px;border:1px solid #e8edf3;background:#f7f9fc;border-radius:12px;padding:0 66px 0 42px;outline:none;transition:border .18s,box-shadow .18s;color:var(--ink)}.top-search input:focus{border-color:#a9c0ff;box-shadow:0 0 0 4px rgba(66,120,245,.09);background:#fff}.search-shortcut{position:absolute;right:10px;top:50%;transform:translateY(-50%);font-size:10px;color:#9ba6b5;border:1px solid #e1e7ef;background:#fff;border-radius:5px;padding:3px 6px}
.user-area{display:flex;align-items:center;gap:10px;white-space:nowrap}.user-copy{text-align:right}.user-copy b{font-size:12px;display:block}.user-copy span{display:block;font-size:10px;color:var(--muted);margin-top:4px}.avatar{width:34px;height:34px;border-radius:12px;background:linear-gradient(135deg,#d9e7ff,#c5f5eb);display:grid;place-items:center;color:#3569d8;font-size:15px;font-weight:800}
.workspace{padding:24px 28px 28px;min-height:0;flex:1;display:flex;flex-direction:column;gap:18px;overflow:hidden}
.welcome-row{display:flex;justify-content:space-between;align-items:center;gap:16px}.welcome-title{font-size:22px;line-height:1.2;letter-spacing:-.5px;font-weight:780;margin:0}.welcome-desc{margin:7px 0 0;font-size:12px;color:var(--muted)}
.header-actions{display:flex;gap:8px;align-items:center}.soft-btn{border:1px solid #e2e8f0;background:#fff;color:#566477;padding:9px 12px;border-radius:10px;font-size:12px}.soft-btn:hover{border-color:#b9c9ef;color:var(--brand)}.primary-btn{border:0;background:var(--brand);color:#fff;padding:10px 14px;border-radius:10px;font-size:12px;font-weight:650;box-shadow:0 5px 12px rgba(66,120,245,.18)}.primary-btn:hover{background:#3269eb}
.stats-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.stat-card{background:var(--panel);border:1px solid #edf0f5;border-radius:14px;padding:16px 17px;display:flex;gap:13px;align-items:center;min-width:0}.stat-icon{width:38px;height:38px;flex:0 0 38px;border-radius:12px;display:grid;place-items:center;font-size:17px}.stat-icon.blue{background:#edf3ff;color:#477bfa}.stat-icon.mint{background:#e8faf6;color:#19ac98}.stat-icon.violet{background:#f2edff;color:#8862e8}.stat-icon.orange{background:#fff3e8;color:#f2994a}.stat-text span{font-size:11px;color:var(--muted);display:block}.stat-text strong{display:block;font-size:19px;line-height:1.2;margin-top:5px;letter-spacing:-.3px}.stat-text em{font-style:normal;color:#20a887;font-size:10px;margin-left:5px;font-weight:600}
.content-frame-wrap{background:var(--panel);border:1px solid #e9edf4;border-radius:var(--radius);box-shadow:var(--shadow);flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column}.frame-topline{display:flex;justify-content:space-between;align-items:center;padding:14px 19px;border-bottom:1px solid #edf0f5;gap:12px}.frame-topline strong{font-size:13px}.frame-topline span{font-size:11px;color:var(--muted)}.frame-indicator{display:flex;align-items:center;gap:7px}.frame-indicator i{height:7px;width:7px;border-radius:50%;background:var(--mint);display:inline-block}.category-frame{display:block;width:100%;height:100%;min-height:0;flex:1;border:0;background:#fff}
/* Category pages */
.category-shell{min-height:100%;display:flex;flex-direction:column;background:#fff;padding:0 18px 15px}.category-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:18px 1px 17px}.category-heading h2{margin:0;font-size:17px;letter-spacing:-.3px}.category-heading p{margin:6px 0 0;font-size:11px;color:var(--muted);line-height:1.65}.category-tools{display:flex;gap:8px;align-items:center;white-space:nowrap}.result-pill{background:#f3f6fb;border:1px solid #e7ecf4;border-radius:8px;color:#7b8796;font-size:11px;padding:7px 9px}.view-switch{border:1px solid #e7ecf4;background:#fff;color:#758195;border-radius:8px;padding:7px 10px;font-size:11px}.view-switch.active{color:var(--brand);border-color:#c8d7ff;background:#f3f6ff}
.info-banner{display:flex;align-items:flex-start;gap:10px;padding:11px 13px;border:1px solid #e7eefc;background:#f7f9ff;border-radius:10px;margin-bottom:14px;color:#6f7e97;font-size:11px;line-height:1.6}.info-banner .info-symbol{color:#4c7bf2;font-size:15px;line-height:1.3}.table-wrap{flex:1;min-height:170px;overflow:auto;border:1px solid #edf0f5;border-radius:12px}.resource-table{width:100%;border-collapse:separate;border-spacing:0;min-width:790px;font-size:12px}.resource-table thead th{position:sticky;top:0;z-index:1;background:#f8fafc;padding:12px 13px;text-align:left;color:#8793a2;font-size:10px;font-weight:700;letter-spacing:.2px;border-bottom:1px solid #e9edf3;white-space:nowrap}.resource-table tbody td{padding:13px;border-bottom:1px solid #f0f2f6;vertical-align:middle;color:#596678;white-space:nowrap}.resource-table tbody tr:last-child td{border-bottom:0}.resource-table tbody tr:hover{background:#f8faff}.resource-table tbody tr[hidden]{display:none}.resource-main{display:flex;gap:10px;align-items:center;min-width:220px}.resource-cover{width:36px;height:36px;flex:0 0 36px;border-radius:10px;display:grid;place-items:center;color:#fff;font-size:14px;font-weight:800;box-shadow:inset 0 1px 0 rgba(255,255,255,.25)}.cover-blue{background:linear-gradient(135deg,#70a1ff,#3f6df0)}.cover-purple{background:linear-gradient(135deg,#b596ff,#7959de)}.cover-mint{background:linear-gradient(135deg,#61ddc8,#12a991)}.cover-orange{background:linear-gradient(135deg,#ffc078,#f28e43)}.cover-pink{background:linear-gradient(135deg,#ff9dc6,#e85a9d)}.cover-slate{background:linear-gradient(135deg,#9aa8bc,#5b6c85)}.resource-name{font-weight:700;color:#263448;font-size:12px;line-height:1.4}.resource-sub{font-size:10px;color:#a0a9b6;margin-top:4px;max-width:230px;overflow:hidden;text-overflow:ellipsis}.tag{display:inline-flex;align-items:center;border-radius:6px;padding:5px 7px;background:#f0f4fa;color:#718098;font-size:10px;max-width:130px;overflow:hidden;text-overflow:ellipsis}.tag.blue{background:#edf3ff;color:#4c78e8}.tag.green{background:#e9f9f5;color:#179b85}.tag.orange{background:#fff3e8;color:#d88738}.tag.violet{background:#f3eeff;color:#8560d4}.downloads{display:flex;gap:5px}.download-link{display:inline-flex;align-items:center;justify-content:center;min-width:50px;height:28px;padding:0 8px;border:1px solid #e2eaff;background:#f6f8ff;color:#4976e8;border-radius:7px;font-size:10px;font-weight:700;transition:all .15s}.download-link:hover{background:var(--brand);border-color:var(--brand);color:#fff;transform:translateY(-1px)}.download-link.b{border-color:#d8f2eb;background:#f0fbf8;color:#1b9c83}.download-link.b:hover{background:#20b99f;border-color:#20b99f;color:#fff}.download-link.c{border-color:#eee1ff;background:#faf6ff;color:#8a5bd4}.download-link.c:hover{background:#8a5bd4;border-color:#8a5bd4;color:#fff}
.empty-state{display:none;text-align:center;padding:42px 16px;color:#98a2b2;font-size:12px}.empty-state.show{display:block}.empty-icon{font-size:27px;margin-bottom:10px}.pagination-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 1px 0;color:#97a1af;font-size:10px}.pagination{display:flex;align-items:center;gap:5px}.page-btn{height:30px;min-width:30px;border:1px solid #e5eaf1;background:#fff;border-radius:8px;color:#7d8998;padding:0 9px;font-size:11px}.page-btn:hover:not(:disabled){border-color:#bfd0ff;color:var(--brand)}.page-btn.active{background:var(--brand);border-color:var(--brand);color:#fff;box-shadow:0 4px 9px rgba(66,120,245,.17)}.page-btn:disabled{opacity:.4;cursor:not-allowed}.page-jump{display:flex;gap:6px;align-items:center;margin-left:5px}.page-input{width:42px;height:30px;border:1px solid #e5eaf1;border-radius:8px;text-align:center;color:var(--ink);outline:none}.jump-btn{height:30px;border:1px solid #e5eaf1;background:#fff;border-radius:8px;color:#667386;padding:0 9px;font-size:11px}.category-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:12px;color:#a2aab6;font-size:10px}.category-footer a{color:#6f91ed}
.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,12px);background:#1b293c;color:#fff;padding:11px 15px;border-radius:10px;font-size:12px;box-shadow:0 10px 26px rgba(15,31,53,.2);opacity:0;pointer-events:none;transition:all .2s;z-index:99;max-width:calc(100vw - 32px);text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:1100px){.sidebar{width:205px;flex-basis:205px}.workspace{padding:20px}.topbar{padding:0 22px}.stats-row{gap:10px}.stat-card{padding:13px}.stat-text strong{font-size:17px}}
@media(max-width:850px){.sidebar{width:74px;flex-basis:74px;padding:20px 9px 12px}.brand{justify-content:center;padding:0 0 23px}.brand-name,.brand-sub,.nav-caption,.nav-item .nav-label,.nav-count,.sidebar-bottom .bottom-copy{display:none}.nav-item{justify-content:center;padding:12px 0}.nav-icon{font-size:18px;width:auto}.sidebar-bottom{text-align:center;padding:16px 0}.topbar{gap:12px}.top-title{min-width:105px}.top-search{max-width:none}.user-copy{display:none}.welcome-title{font-size:20px}.stats-row{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace{gap:14px}.stat-card{padding:12px}.stat-icon{width:34px;height:34px;flex-basis:34px}}
@media(max-width:560px){.app-shell{min-height:540px}.sidebar{position:absolute;left:0;top:0;bottom:0;transform:translateX(-100%);width:220px;flex-basis:220px;padding:20px 13px;transition:transform .2s;box-shadow:none}.sidebar.open{transform:translateX(0);box-shadow:15px 0 35px rgba(10,25,45,.2)}.sidebar.open .brand{justify-content:flex-start;padding:0 10px 22px}.sidebar.open .brand-name,.sidebar.open .brand-sub,.sidebar.open .nav-caption,.sidebar.open .nav-item .nav-label,.sidebar.open .nav-count,.sidebar.open .sidebar-bottom .bottom-copy{display:block}.sidebar.open .nav-item{justify-content:flex-start;padding:11px 12px}.sidebar.open .nav-icon{width:18px}.sidebar.open .sidebar-bottom{text-align:left;padding:15px 12px}.topbar{height:68px;flex-basis:68px;padding:0 12px;gap:9px}.mobile-menu{display:block}.top-title{display:none}.top-search input{height:39px;font-size:12px;padding-left:35px}.search-icon{left:12px}.search-shortcut{display:none}.avatar{width:31px;height:31px}.workspace{padding:15px 11px;gap:12px}.welcome-row{align-items:flex-start}.welcome-title{font-size:18px}.welcome-desc{max-width:250px;line-height:1.5}.header-actions .soft-btn{display:none}.header-actions .primary-btn{padding:9px 10px;font-size:11px}.stats-row{gap:8px}.stat-card{gap:9px;padding:10px}.stat-icon{width:30px;height:30px;flex-basis:30px;border-radius:9px}.stat-text span{font-size:10px}.stat-text strong{font-size:16px}.content-frame-wrap{border-radius:12px}.frame-topline{padding:12px}.frame-topline span{display:none}.category-shell{padding:0 10px 12px}.category-heading{padding:14px 1px 12px}.category-heading h2{font-size:15px}.category-heading p{max-width:230px}.category-tools .view-switch{display:none}.info-banner{font-size:10px;padding:9px}.pagination-row{align-items:flex-start;flex-direction:column}.pagination{flex-wrap:wrap}.category-footer{align-items:flex-start;flex-direction:column}.resource-table thead th,.resource-table tbody td{padding:11px 10px}}

/* 动态数据分页控件 */
.pagination-summary{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.page-size-label{display:flex;align-items:center;gap:5px;color:#97a1af;white-space:nowrap}.page-size-select{height:30px;border:1px solid #e5eaf1;background:#fff;border-radius:8px;color:#667386;padding:0 7px;font-size:11px;outline:none}.page-size-select:focus{border-color:#bfd0ff}
@media(max-width:560px){.pagination-summary{gap:8px}}

/* 图片icom */
.sidebar-promo {
  position: relative;
  isolation: isolate;
  flex-shrink: 0;
  min-height: 135px;
  margin: auto 14px 16px;
  border-radius: 12px;
  overflow: hidden;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* 半透明图片层 */
.sidebar-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("C:\\Users\\123\\Desktop\\resource_share_h5-v3\\resource_share\\assets\\images\\icom.png")
    center / cover no-repeat;
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}

/* 文字保持清晰，不跟随图片变透明 */
.sidebar-promo-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
}

.sidebar-promo-content span {
  font-size: 9px;
  letter-spacing: 1px;
  color: #93baff;
}

.sidebar-promo-content h3 {
  margin: 10px 0 5px;
  font-size: 16px;
  color: #fff;
}

.sidebar-promo-content p {
  margin: 0;
  font-size: 11px;
  color: #b5c1d5;
}

/* 电台样式 */
/* 图片上的 ACG 电台 */
.sidebar-promo .radio-promo {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: 14px;
  gap: 0;
}

.radio-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #bfdbfe;
  font-size: 9px;
  letter-spacing: 1px;
}

.radio-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d39980;
}

.sidebar-promo .radio-promo h3 {
  margin: 10px 0 4px;
  font-size: 16px;
  color: #fff;
}

.sidebar-promo .radio-promo .radio-description {
  margin: 0;
  color: #b5c1d5;
  font-size: 11px;
}

.radio-controls {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 13px;
  min-width: 0;
}

.radio-toggle {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid #93c5fd55;
  border-radius: 50%;
  background: #60a5fa30;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
}

.radio-toggle:hover {
  background: #60a5fa55;
}

.radio-toggle:disabled {
  opacity: 0.6;
  cursor: wait;
}

.radio-status {
  flex: 1;
  min-width: 0;
  color: #dbeafe;
  font-size: 11px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.radio-volume {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #bfdbfe;
  font-size: 9px;
}

.radio-volume input {
  width: 48px;
  accent-color: #60a5fa;
  cursor: pointer;
}

#acgRadio {
  display: none;
}

