/* ============ Reset & Base ============ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
:root{
  --bg:#0a0e1a;--bg-soft:#131829;--bg-card:rgba(255,255,255,0.03);
  --text:#d7dce6;--text-strong:#fff;--text-soft:#a8b1c5;--text-dim:#7a8294;
  --border:rgba(255,255,255,0.06);--border-strong:rgba(255,255,255,0.12);
  --primary:#ff7a45;--primary-2:#ff3d68;
  --shadow-card:0 6px 20px rgba(0,0,0,0.3);
}
html[data-theme="light"]{
  --bg:#f4f6fb;--bg-soft:#fff;--bg-card:#fff;
  --text:#2a3142;--text-strong:#0a0e1a;--text-soft:#5a6378;--text-dim:#7a8294;
  --border:#e1e5ee;--border-strong:#c5cbd9;
  --primary:#ff5722;--primary-2:#e91e63;
  --shadow-card:0 4px 12px rgba(0,0,0,0.08);
}
body{
  font-family:"Segoe UI","PingFang SC","Microsoft YaHei",-apple-system,BlinkMacSystemFont,sans-serif;
  background:var(--bg);color:var(--text);min-height:100vh;overflow-x:hidden;line-height:1.5;
  transition:background-color .25s,color .25s
}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}
input,select,textarea{font-family:inherit}
::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-track{background:rgba(255,255,255,0.02)}
::-webkit-scrollbar-thumb{background:rgba(255,122,69,0.3);border-radius:4px}
::-webkit-scrollbar-thumb:hover{background:rgba(255,122,69,0.5)}
html[data-theme="light"] ::-webkit-scrollbar-track{background:#eef0f5}
html[data-theme="light"] ::-webkit-scrollbar-thumb{background:rgba(255,87,34,0.3)}

.app{max-width:90%;margin:0 auto;padding:24px 22px 60px}

/* ============ Header ============ */
.header{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:18px 24px;
  background:linear-gradient(135deg,rgba(255,122,69,0.08),rgba(255,61,104,0.04));
  border:1px solid rgba(255,122,69,0.2);border-radius:16px;margin-bottom:22px;
  backdrop-filter:blur(10px);flex-wrap:wrap
}
.brand{display:flex;align-items:center;gap:14px;flex:0 1 auto;min-width:0}
.logo{
  width:48px;height:48px;border-radius:12px;
  background:linear-gradient(135deg,#ff7a45,#ff3d68);
  display:flex;align-items:center;justify-content:center;font-size:24px;
  box-shadow:0 6px 18px rgba(255,90,90,0.35);flex-shrink:0
}
.brand-text h1{font-size:18px;font-weight:700;color:#fff;line-height:1.2;white-space:nowrap}
.brand-text .subtitle{font-size:12px;color:#a8b1c5}
.tools-bar{display:flex;align-items:center;gap:6px;flex:0 0 auto}
.nav-actions{display:flex;align-items:center;gap:8px;flex:1 1 auto;justify-content:center;flex-wrap:wrap;min-width:0}
.user-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto;margin-left:auto}
.nav-btn{
  position:relative;
  padding:9px 14px;border-radius:10px;
  background:rgba(255,255,255,0.04);color:#a8b1c5;
  font-weight:600;font-size:13px;transition:.2s
}
.nav-btn:hover{background:rgba(255,255,255,0.08);color:#fff}
.nav-btn.active{
  background:linear-gradient(135deg,rgba(255,122,69,0.22),rgba(255,61,104,0.18));
  color:#fff;box-shadow:0 4px 12px rgba(255,90,90,0.18)
}
.nav-btn .badge{
  display:inline-block;margin-left:4px;
  min-width:18px;height:18px;padding:0 5px;border-radius:9px;
  background:#ff7a45;color:#fff;font-size:10px;line-height:18px;font-weight:700;text-align:center
}
.btn-create{
  padding:9px 14px;border-radius:10px;font-weight:700;font-size:13px;
  background:linear-gradient(135deg,#ff7a45,#ff3d68);color:#fff;
  box-shadow:0 6px 20px rgba(255,90,90,0.35);transition:transform .15s,box-shadow .15s
}
.btn-create:hover{transform:translateY(-1px);box-shadow:0 10px 26px rgba(255,90,90,0.45)}
.btn-create.btn-locked{
  background:rgba(255,255,255,0.06)!important;
  color:#7a8294!important;
  box-shadow:none!important;
  border:1px solid rgba(255,255,255,0.08);
  cursor:not-allowed;pointer-events:auto
}
.btn-create.btn-locked:hover{transform:none;background:rgba(255,255,255,0.08)!important}

/* ============ User Pill ============ */
.user-pill{
  display:flex;align-items:center;gap:10px;
  padding:6px 14px 6px 6px;border-radius:30px;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.08);cursor:pointer;transition:.2s
}
.user-pill:hover{background:rgba(255,122,69,0.12);border-color:rgba(255,122,69,0.3)}
.user-pill .avatar{
  width:32px;height:32px;border-radius:50%;
  background:linear-gradient(135deg,#4caf7d,#2e7d32);
  display:flex;align-items:center;justify-content:center;
  font-weight:700;font-size:14px;color:#fff
}
.user-pill .name{font-size:13px;font-weight:700;color:#fff;line-height:1.2}
.user-pill .id{font-size:10px;color:#7a8294;font-family:monospace;line-height:1.2}

/* ============ Hero CTA ============ */
.hero-cta{
  display:flex;align-items:center;gap:18px;
  padding:22px 24px;margin-bottom:22px;
  background:linear-gradient(135deg,rgba(255,122,69,0.14),rgba(255,61,104,0.08));
  border:1px solid rgba(255,122,69,0.25);border-radius:18px
}
.hero-icon{font-size:38px}
.hero-content{flex:1;min-width:0}
.hero-title{font-size:18px;font-weight:700;color:#fff;line-height:1.3}
.hero-sub{font-size:13px;color:#a8b1c5;margin-top:4px}

/* ============ Stats Strip ============ */
.stats-strip{
  display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:22px
}
.stat-card{
  position:relative;padding:18px;border-radius:14px;
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.06);
  display:flex;align-items:center;gap:14px;overflow:hidden
}
.stat-card::before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:4px;
  background:var(--accent,#ff7a45)
}
.stat-card .icon{
  width:42px;height:42px;border-radius:10px;
  background:var(--accent-bg,rgba(255,122,69,0.15));
  display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0
}
.stat-card .num{font-size:22px;font-weight:800;color:#fff;line-height:1}
.stat-card .label{font-size:11px;color:#7a8294;margin-top:4px;text-transform:uppercase;letter-spacing:0.5px}
.stat-card.orange{--accent:#ff7a45;--accent-bg:rgba(255,122,69,0.15)}
.stat-card.blue{--accent:#42a5f5;--accent-bg:rgba(66,165,245,0.15)}
.stat-card.green{--accent:#66bb6a;--accent-bg:rgba(102,187,106,0.15)}
.stat-card.purple{--accent:#ab47bc;--accent-bg:rgba(171,71,188,0.15)}

/* ============ Filter Bar ============ */
.filter-bar{
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.06);
  border-radius:14px;padding:14px;margin-bottom:18px
}
.search-row{display:flex;gap:10px;margin-bottom:10px}
.search-box{
  flex:1;display:flex;align-items:center;gap:10px;
  padding:10px 14px;border-radius:10px;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.06);transition:.2s
}
.search-box:focus-within{
  border-color:rgba(255,122,69,0.4);
  box-shadow:0 0 0 3px rgba(255,122,69,0.1)
}
.search-box .icon{font-size:16px;color:#7a8294}
.search-box input{width:100%;background:none;border:none;outline:none;color:#d7dce6;font-size:14px}
.filter-reset{
  padding:10px 14px;border-radius:10px;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.06);
  color:#a8b1c5;font-size:13px;font-weight:600;transition:.2s
}
.filter-reset:hover{background:rgba(255,255,255,0.1);color:#fff}
.filter-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;align-items:center
}
.filter-select{
  padding:9px 12px;border-radius:10px;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.06);
  color:#d7dce6;font-size:13px;cursor:pointer;
  transition:.2s;width:100%
}
.filter-select:focus{outline:none;border-color:rgba(255,122,69,0.4)}
.filter-select option{background:#1a1f2e;color:#d7dce6}

/* ============ Squad Grid & Card ============ */
.squad-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:18px
}
.squad-card{
  position:relative;
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.06);
  border-radius:16px;padding:0;overflow:hidden;
  transition:.25s;animation:cardFadeIn .35s ease both;
  display:flex;flex-direction:column
}
.squad-card:hover{
  transform:translateY(-3px);
  border-color:rgba(255,122,69,0.35);
  box-shadow:0 16px 48px rgba(0,0,0,0.45)
}
.squad-card.mine{border-color:rgba(255,122,69,0.45);background:linear-gradient(180deg,rgba(255,122,69,0.08),rgba(255,122,69,0.03))}
.squad-card.joined{border-color:rgba(102,187,106,0.45);background:linear-gradient(180deg,rgba(102,187,106,0.08),rgba(102,187,106,0.03))}
.squad-card.pended{border-color:rgba(255,213,79,0.45);background:linear-gradient(180deg,rgba(255,213,79,0.08),rgba(255,213,79,0.03))}
@keyframes cardFadeIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}

/* 卡片顶部区域 - 包含状态标签 */
.squad-card-header{
  display:flex;justify-content:space-between;align-items:center;
  padding:14px 16px 0
}
.squad-card-header .squad-tags{display:flex;gap:4px;flex-wrap:wrap}

/* 卡片主体区域 */
.squad-card-body{
  padding:16px;flex:1;display:flex;flex-direction:column
}

/* 头部区域 */
.squad-head{
  display:flex;align-items:flex-start;gap:12px;
  margin-bottom:12px
}
.squad-title-row{display:flex;align-items:center;gap:12px;flex:1;min-width:0;flex-wrap:wrap}
.squad-icon{
  width:44px;height:44px;border-radius:12px;
  background:linear-gradient(135deg,#ff7a45,#ff3d68);
  display:flex;align-items:center;justify-content:center;
  font-size:18px;font-weight:800;color:#fff;flex-shrink:0;
  box-shadow:0 4px 12px rgba(255,90,90,0.3)
}
.squad-name-block{flex:1;min-width:0}
.squad-name-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:4px}
.squad-name{font-size:15px;font-weight:700;color:#fff;line-height:1.25;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.squad-leader{font-size:12px;color:#7a8294}

/* 信息行 - 简化布局 */
.squad-info-row{
  display:flex;gap:16px;margin-bottom:10px;
  padding:8px 12px;
  background:rgba(255,255,255,0.03);
  border-radius:10px
}
.squad-info-item{display:flex;align-items:center;gap:6px}
.info-label{font-size:12px}
.info-value{font-size:12px;color:#a8b1c5}
.info-value b{color:#fff}

/* 状态标签 */
.squad-tags{display:flex;gap:4px}
.squad-tag{
  display:inline-flex;align-items:center;gap:4px;
  padding:3px 10px;border-radius:11px;
  font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:0.4px;white-space:nowrap
}
.squad-tag.recruit{background:rgba(255,122,69,0.18);color:#ffb088;border:1px solid rgba(255,122,69,0.3)}
.squad-tag.full{background:rgba(102,102,102,0.18);color:#9a9a9a;border:1px solid rgba(102,102,102,0.3)}
.squad-tag.mine{background:rgba(255,122,69,0.22);color:#ffb088;border:1px solid rgba(255,122,69,0.4)}
.squad-tag.joined{background:rgba(102,187,106,0.22);color:#a5d6a7;border:1px solid rgba(102,187,106,0.4)}
.squad-tag.pended{background:rgba(255,213,79,0.22);color:#ffe082;border:1px solid rgba(255,213,79,0.4)}

/* 到期提醒 */
.expires-banner{
  margin:0 16px 10px;
  padding:6px 12px;border-radius:8px;
  background:linear-gradient(135deg,rgba(255,167,38,0.18),rgba(251,140,0,0.1));
  border:1px solid rgba(255,167,38,0.35);
  color:#ffcc80;font-size:12px;font-weight:600;
}
.expires-banner.urgent{
  background:linear-gradient(135deg,rgba(244,67,54,0.2),rgba(229,57,53,0.1));
  border-color:rgba(244,67,54,0.4);color:#ffab91;
  animation:urgentPulse 1.5s infinite
}
.expires-banner.expired{
  background:rgba(120,120,120,0.2);border-color:rgba(120,120,120,0.3);color:#9a9a9a
}

/* 描述区域 */
.squad-desc{
  font-size:13px;color:#a8b1c5;line-height:1.55;
  margin-bottom:10px;
  display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;
  overflow:hidden
}

/* 角色标签 */
.squad-roles{
  display:flex;flex-wrap:wrap;gap:5px;margin-bottom:12px
}
.role-chip-mini{
  display:inline-flex;align-items:center;
  padding:4px 10px;border-radius:8px;
  background:linear-gradient(135deg,rgba(255,122,69,0.16),rgba(255,61,104,0.08));
  color:#ffb088;font-size:11px;font-weight:600;
  border:1px solid rgba(255,122,69,0.22)
}
.role-chip-mini.more{
  background:rgba(255,255,255,0.06);color:#a8b1c5;
  border-color:rgba(255,255,255,0.08);font-weight:700
}
.squad-leader .sep{color:#4a5263;margin:0 2px}

/* 元数据信息行 - 简化 */
.squad-meta{
  display:flex;gap:8px;margin-bottom:12px;
  background:rgba(255,255,255,0.02);
  border:1px solid rgba(255,255,255,0.04);
  border-radius:10px;padding:10px 12px
}
.meta-item{
  flex:1;display:flex;flex-direction:column;align-items:center;
  text-align:center
}
.meta-item:not(:last-child){border-right:1px solid rgba(255,255,255,0.06);padding-right:8px}
.meta-item .label{font-size:9px;color:#7a8294;text-transform:uppercase;letter-spacing:0.4px;margin-bottom:2px}
.meta-item .value{font-size:12px;font-weight:600;color:#fff}

/* 标签 */
.meta-chip{
  font-size:10px;padding:3px 8px;border-radius:8px;
  background:rgba(66,165,245,0.12);color:#90caf9;
  border:1px solid rgba(66,165,245,0.2)
}
.meta-chip.mode{background:rgba(171,71,188,0.12);color:#ce93d8;border-color:rgba(171,71,188,0.2)}
.meta-chip.voice{background:rgba(102,187,106,0.12);color:#a5d6a7;border-color:rgba(102,187,106,0.2)}

/* 进度条 */
.progress-bar{
  width:100%;height:6px;border-radius:3px;
  background:rgba(255,255,255,0.06);overflow:hidden
}
.progress-fill{
  height:100%;border-radius:3px;
  background:linear-gradient(90deg,#ff7a45,#ff3d68);
  transition:width .4s
}
.progress-bar.full .progress-fill{background:linear-gradient(90deg,#9a9a9a,#666)}

/* 卡片底部操作区 */
.squad-card-footer{
  padding:12px 16px;
  border-top:1px solid rgba(255,255,255,0.06);
  background:rgba(0,0,0,0.15)
}
.squad-actions{display:flex;gap:8px;flex-wrap:wrap}
.squad-actions .btn{flex:1;justify-content:center}
.btn{
  padding:9px 16px;border-radius:10px;font-size:13px;font-weight:600;
  transition:.18s;display:inline-flex;align-items:center;gap:6px;
  border:none
}
.btn:hover{transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn-primary{background:linear-gradient(135deg,#ff7a45,#ff3d68);color:#fff;
  box-shadow:0 4px 14px rgba(255,90,90,0.3)}
.btn-primary:hover{box-shadow:0 6px 20px rgba(255,90,90,0.4)}
.btn-primary.disabled,.btn-disabled,.btn:disabled{
  background:rgba(255,255,255,0.06);color:#5a6378;cursor:not-allowed;transform:none;
  box-shadow:none
}
.btn-secondary{background:rgba(255,255,255,0.08);color:#a8b1c5;
  border:1px solid rgba(255,255,255,0.1)}
.btn-secondary:hover{background:rgba(255,255,255,0.12);color:#fff;border-color:rgba(255,255,255,0.15)}
.btn-danger{background:linear-gradient(135deg,#f45c43,#c0392b);color:#fff;
  box-shadow:0 4px 14px rgba(240,90,60,0.35)}
.btn-success{background:linear-gradient(135deg,#66bb6a,#43a047);color:#fff;
  box-shadow:0 4px 14px rgba(102,187,106,0.35)}
.btn-info{background:linear-gradient(135deg,#42a5f5,#1e88e5);color:#fff;
  box-shadow:0 4px 14px rgba(66,165,245,0.35)}
.btn-warning{background:linear-gradient(135deg,#ffa726,#fb8c00);color:#fff;
  box-shadow:0 4px 14px rgba(255,167,38,0.35)}
.btn-mini{padding:6px 12px;font-size:12px}

/* 卡内菜单(收藏/举报) */
.card-actions-overlay{
  position:absolute;top:10px;right:10px;
  display:flex;gap:4px;z-index:10
}
.icon-btn{
  width:30px;height:30px;border-radius:8px;
  background:rgba(0,0,0,0.4);
  border:1px solid rgba(255,255,255,0.1);
  display:flex;align-items:center;justify-content:center;font-size:14px;
  backdrop-filter:blur(8px);transition:.15s
}
.icon-btn:hover{background:rgba(255,255,255,0.15);transform:scale(1.1)}
.icon-btn.fav-active{color:#ffd54f;border-color:rgba(255,213,79,0.5);background:rgba(255,213,79,0.15)}

/* 评分徽章 */
.rating-badge{
  display:inline-flex;align-items:center;gap:3px;
  padding:3px 8px;border-radius:10px;
  background:rgba(255,213,79,0.12);
  color:#ffd54f;font-size:10px;font-weight:700;
  border:1px solid rgba(255,213,79,0.2)
}

/* ============ Empty ============ */
.empty{
  grid-column:1/-1;
  text-align:center;padding:60px 20px;
  background:rgba(255,255,255,0.02);
  border:2px dashed rgba(255,255,255,0.08);
  border-radius:14px
}
.empty-icon{font-size:46px;margin-bottom:12px;opacity:0.7}
.empty h3{color:#fff;font-size:17px;margin-bottom:6px}
.empty p{color:#7a8294;font-size:13px}
.empty-view{
  text-align:center;padding:60px 20px;
  background:rgba(255,255,255,0.02);
  border:2px dashed rgba(255,255,255,0.08);
  border-radius:14px
}
.empty-view .empty-icon{font-size:46px;margin-bottom:12px;opacity:0.7}
.empty-view h3{color:#fff;font-size:17px;margin-bottom:6px}
.empty-view p{color:#7a8294;font-size:13px}

/* ============ Footer ============ */
.footer{
  margin-top:18px;padding:14px;text-align:center;
  font-size:12px;color:#5a6378
}

/* ============ View Pane ============ */
.view-pane{display:none}
.view-pane.active{display:block}

/* ============ Section Header ============ */
.section-header{
  display:flex;justify-content:space-between;align-items:flex-end;
  margin:26px 0 12px;padding-bottom:8px;
  border-bottom:1px solid rgba(255,255,255,0.06)
}
.section-title{font-size:15px;font-weight:700;color:#fff}
.section-meta{font-size:12px;color:#7a8294}

/* ============ App List (申请) ============ */
.app-list{display:flex;flex-direction:column;gap:10px}
.app-row{
  display:flex;justify-content:space-between;align-items:center;gap:16px;
  padding:14px 16px;border-radius:12px;
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.06);
  transition:.18s
}
.app-row:hover{background:rgba(255,255,255,0.05);border-color:rgba(255,255,255,0.1)}
.app-row .info{flex:1;min-width:0}
.app-row .nick{font-size:14px;color:#d7dce6;font-weight:600;margin-bottom:4px}
.app-row .nick b{color:#ffb088}
.app-row .meta{font-size:12px;color:#7a8294}
.app-row .msg{
  font-size:13px;color:#a8b1c5;margin-top:8px;padding-left:10px;
  border-left:3px solid rgba(255,122,69,0.3);font-style:italic;line-height:1.5
}
.app-actions{display:flex;gap:8px;flex-shrink:0}

/* ============ Modal ============ */
.modal-overlay{
  position:fixed;inset:0;
  background:rgba(0,0,0,0.7);
  backdrop-filter:blur(8px);
  display:flex;align-items:center;justify-content:center;
  z-index:100;padding:16px;
  opacity:0;visibility:hidden;transition:.2s
}
.modal-overlay.show{opacity:1;visibility:visible}
.modal{
  background:linear-gradient(180deg,#1a1f2e,#141824);
  border:1px solid rgba(255,255,255,0.1);
  border-radius:16px;width:100%;max-width:520px;
  max-height:90vh;display:flex;flex-direction:column;
  box-shadow:0 20px 60px rgba(0,0,0,0.6);
  animation:modalIn .25s ease both
}
.modal-large{max-width:720px}
@keyframes modalIn{from{opacity:0;transform:translateY(20px) scale(0.96)}to{opacity:1;transform:translateY(0) scale(1)}}
.modal-header{
  display:flex;justify-content:space-between;align-items:center;
  padding:16px 20px;border-bottom:1px solid rgba(255,255,255,0.06)
}
.modal-title{font-size:16px;font-weight:700;color:#fff}
.modal-close{
  width:30px;height:30px;border-radius:8px;
  background:rgba(255,255,255,0.05);
  display:flex;align-items:center;justify-content:center;
  color:#a8b1c5;font-size:16px;transition:.15s
}
.modal-close:hover{background:rgba(255,255,255,0.1);color:#fff}
.modal-body{padding:20px;overflow-y:auto;flex:1}
.modal-footer{
  display:flex;justify-content:flex-end;gap:8px;
  padding:14px 20px;border-top:1px solid rgba(255,255,255,0.06)
}
.confirm-content{font-size:14px;color:#d7dce6;line-height:1.6}
.confirm-content b{color:#fff}

/* ============ Form ============ */
.form-group{margin-bottom:14px}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}
.form-row .form-group{margin-bottom:0}
.form-group label{
  display:block;font-size:12px;color:#a8b1c5;font-weight:600;margin-bottom:6px
}
.form-group input[type=text],
.form-group input[type=password],
.form-group input[type=number],
.form-group select,
.form-group textarea{
  width:100%;padding:10px 12px;border-radius:9px;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.08);
  color:#d7dce6;font-size:14px;transition:.18s;resize:vertical
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
  outline:none;border-color:rgba(255,122,69,0.5);
  box-shadow:0 0 0 3px rgba(255,122,69,0.1);background:rgba(255,255,255,0.07)
}
/* 管理员口令框:与其它输入框统一风格,避免浏览器默认样式 */
.form-group input[type=password]{
  font-family:'Consolas','SF Mono',monospace;letter-spacing:1px
}
.form-group input[type=password]::placeholder{color:#5a6378;letter-spacing:normal;font-family:inherit}
.form-group select option{background:#1a1f2e;color:#d7dce6}
.form-group textarea{font-family:inherit;min-height:70px}
.switch-label{display:flex;align-items:center;gap:8px;font-size:13px;color:#d7dce6;padding:10px 0;cursor:pointer}
.switch-label input{width:18px;height:18px;cursor:pointer}

/* ============ Role Chips (多选 + 自定义) ============ */
.role-chips{
  display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px;
  padding:8px;border-radius:9px;
  background:rgba(255,255,255,0.02);
  border:1px solid rgba(255,255,255,0.04);
  min-height:40px
}
.role-chip{
  display:inline-flex;align-items:center;gap:4px;
  padding:5px 12px;border-radius:12px;
  background:rgba(255,255,255,0.05);
  color:#a8b1c5;font-size:12px;font-weight:600;cursor:pointer;
  border:1px solid transparent;transition:.15s;user-select:none
}
.role-chip:hover{background:rgba(255,255,255,0.1);color:#fff}
.role-chip.selected{
  background:linear-gradient(135deg,#ff7a45,#ff3d68);color:#fff;
  border-color:rgba(255,90,90,0.4);
  box-shadow:0 2px 8px rgba(255,90,90,0.2)
}
.role-chip .x{opacity:0.6;font-weight:700;margin-left:2px}
.role-chip.custom{border-style:dashed}
.role-custom-input{display:flex;gap:6px;margin-bottom:6px}
.role-custom-input input{
  flex:1;padding:7px 10px;border-radius:9px;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.08);color:#d7dce6;font-size:13px
}
.role-selected-display{
  display:flex;justify-content:space-between;align-items:center;
  font-size:11px;color:#7a8294
}
.role-selected-display .hint b{color:#ffb088}

/* ============ Detail Sections ============ */
.detail-section{margin-bottom:20px}
.detail-section h3{
  font-size:12px;color:#7a8294;font-weight:700;
  text-transform:uppercase;letter-spacing:1px;
  margin-bottom:12px;padding-bottom:8px;
  border-bottom:1px solid rgba(255,255,255,0.06)
}
.detail-header{
  display:flex;align-items:center;gap:20px;
  padding-bottom:20px;margin-bottom:20px;
  border-bottom:1px solid rgba(255,255,255,0.06)
}
.detail-name-block{flex:1;min-width:0}
.detail-name-block .name-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:6px}
.detail-name-block h2{
  font-size:22px;font-weight:700;color:#fff;margin:0;line-height:1.2;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  max-width:100%
}
.detail-name-block .meta-line{font-size:13px;color:#a8b1c5}
.squad-icon.big{
  width:64px;height:64px;border-radius:16px;font-size:28px;
  flex-shrink:0;box-shadow:0 6px 20px rgba(255,90,90,0.25)
}
.detail-name-block{flex:1;min-width:0}
.detail-name-block .name-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:6px}
.detail-name-block h2{
  font-size:22px;font-weight:700;color:#fff;margin:0;line-height:1.2;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  max-width:100%
}
.detail-name-block .meta-line{font-size:13px;color:#a8b1c5}
.detail-rating{
  display:flex;align-items:baseline;gap:8px;margin-top:6px
}
.detail-rating .big{font-size:22px;font-weight:700;color:#ffd54f}
.detail-rating .sub{font-size:12px;color:#7a8294}
.detail-rating.empty{color:#5a6378;font-size:12px;font-style:italic}

.detail-desc{
  font-size:14px;color:#d7dce6;line-height:1.7;
  padding:12px 14px;border-radius:12px;
  background:rgba(255,255,255,0.03);
  border-left:3px solid rgba(255,122,69,0.4);
  margin-bottom:14px;white-space:pre-wrap
}

/* 进度条区域 */
.detail-progress{
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.06);
  border-radius:12px;padding:16px
}
.detail-progress-info{
  display:flex;align-items:baseline;gap:8px;margin-bottom:10px;
  font-size:13px;color:#a8b1c5
}
.detail-progress-info .num{font-size:28px;font-weight:800;color:#fff;line-height:1}
.detail-progress-info .divider{font-size:20px;color:#5a6378}
.detail-progress-info .total{font-size:20px;font-weight:700;color:#a8b1c5}
.detail-progress-info .text{margin-left:8px}
.detail-progress-info .vacancy{margin-left:auto;font-size:12px;color:#a8b1c5}
.detail-progress-info .vacancy b{color:#ffb088;font-weight:700}
.detail-progress .progress-bar{height:8px;border-radius:4px}

/* 标签区域 */
.detail-tags{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.detail-tags .squad-tag{font-size:11px;padding:4px 12px}
.detail-tags .contact-pill{font-size:11px;padding:5px 12px}

.detail-roles{margin-top:8px}
.detail-roles .label{
  font-size:11px;color:#7a8294;text-transform:uppercase;
  letter-spacing:0.5px;margin-bottom:8px;font-weight:600
}
.detail-roles .chips{display:flex;flex-wrap:wrap;gap:8px}
.role-chip-display{
  display:inline-flex;align-items:center;
  padding:6px 14px;border-radius:12px;
  background:linear-gradient(135deg,rgba(255,122,69,0.18),rgba(255,61,104,0.12));
  color:#ffb088;font-size:13px;font-weight:600;
  border:1px solid rgba(255,122,69,0.3)
}

/* 联系方式 */
.detail-contact{margin-top:12px;display:flex;flex-direction:column;gap:8px}
.detail-contact .row{
  display:flex;align-items:center;gap:12px;
  padding:10px 14px;border-radius:10px;
  background:rgba(66,165,245,0.06);
  border:1px solid rgba(66,165,245,0.15)
}
.detail-contact .row:first-child{border-radius:12px 12px 0 0}
.detail-contact .row:last-child{border-radius:0 0 12px 12px}
.detail-contact .row:only-child{border-radius:12px}
.detail-contact .key{
  font-size:11px;color:#90caf9;font-weight:700;
  text-transform:uppercase;letter-spacing:0.4px;
  min-width:80px
}
.detail-contact .val{font-size:14px;color:#d7dce6;font-weight:600;word-break:break-all;flex:1}
.detail-contact .unlock-link{
  margin-left:auto;padding:4px 10px;border-radius:6px;
  background:linear-gradient(135deg,#4caf7d,#2e7d32);color:#fff;
  border:none;font-size:12px;cursor:pointer;font-weight:600;
  transition:.15s
}
.detail-contact .unlock-link:hover{transform:translateY(-1px);box-shadow:0 4px 12px rgba(76,175,125,0.4)}

/* 队长/队员卡片 */
.empty-members{
  padding:16px;border-radius:10px;text-align:center;
  background:rgba(255,255,255,0.02);
  border:1px dashed rgba(255,255,255,0.08);
  color:#5a6378;font-size:13px;font-style:italic
}

.detail-meta-section{padding-top:16px;border-top:1px solid rgba(255,255,255,0.06)}
.detail-meta-section .meta-row{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.meta-block{
  text-align:center;padding:14px;border-radius:12px;
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.06)
}
.meta-block .key{
  font-size:10px;color:#7a8294;text-transform:uppercase;
  letter-spacing:0.4px;margin-bottom:6px;font-weight:600
}
.meta-block .val{font-size:18px;font-weight:700;color:#fff}

/* 操作按钮区域 */
.detail-actions{
  display:flex;flex-wrap:wrap;gap:10px;
  padding-top:16px;margin-top:16px;
  border-top:1px solid rgba(255,255,255,0.06)
}
.detail-actions .btn{flex:1;min-width:130px;justify-content:center;padding:10px 16px;font-size:13px}

.member-chip .role.mono{
  font-family:monospace;font-size:10px;
  color:#7a8294;background:rgba(0,0,0,0.2);
  padding:3px 8px;border-radius:5px;margin-top:6px
}

/* 队员网格 */
.members-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px}
.member-chip{
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.06);
  border-radius:12px;padding:14px;text-align:center;
  transition:.18s
}
.member-chip:hover{background:rgba(255,255,255,0.07);transform:translateY(-2px)}
.member-chip.leader{
  background:linear-gradient(180deg,rgba(255,122,69,0.15),rgba(255,61,104,0.08));
  border-color:rgba(255,122,69,0.3)
}
.member-chip .crown{font-size:11px;color:#ffb088;font-weight:700;margin-bottom:6px}
.member-chip .name{font-size:14px;font-weight:700;color:#fff;line-height:1.2;margin-bottom:4px}
.member-chip .role{font-size:12px;color:#a8b1c5}

/* ============ Rating Stars ============ */
.rating-stars{
  display:flex;justify-content:center;gap:6px;font-size:38px;cursor:pointer;
  padding:10px 0
}
.rating-stars span{
  color:rgba(255,255,255,0.15);transition:transform .15s,color .15s;
  user-select:none;line-height:1
}
.rating-stars span:hover{transform:scale(1.15)}
.rating-stars span.active{color:#ffd54f;text-shadow:0 0 12px rgba(255,213,79,0.5)}
.rating-text{text-align:center;color:#a8b1c5;font-size:13px}

/* ============ Login Help ============ */
.login-help{
  font-size:12px;color:#a8b1c5;line-height:1.6;
  background:rgba(66,165,245,0.08);
  border:1px solid rgba(66,165,245,0.2);
  border-radius:9px;padding:10px 12px;margin-bottom:14px
}
.login-help strong{color:#90caf9}

/* ============ ID Counter ============ */
.id-counter{
  font-size:11px;padding:7px 12px;border-radius:8px;
  background:rgba(255,255,255,0.04);color:#7a8294;
  text-align:center;font-family:monospace
}
.id-counter.ok{background:rgba(102,187,106,0.15);color:#a5d6a7}
.id-counter.bad{background:rgba(244,92,67,0.15);color:#ffab91}

/* ============ Register Notice ============ */
.register-notice{
  display:flex;align-items:flex-start;gap:12px;
  padding:14px;border-radius:12px;
  background:linear-gradient(135deg,rgba(255,167,38,0.12),rgba(251,140,0,0.06));
  border:1px solid rgba(255,167,38,0.25);
  margin-bottom:16px
}
.register-notice .notice-icon{font-size:24px;flex-shrink:0}
.register-notice .notice-text{
  font-size:13px;color:#ffcc80;line-height:1.5
}
.register-notice .notice-text strong{color:#fff}
.register-status{font-size:13px;margin-top:10px;line-height:1.5}
.register-status.success{color:#a5d6a7}
.register-status.error{color:#ffab91}
.register-status.pending{color:#ffe082}

/* ============ Toast ============ */
.toast-container{
  position:fixed;top:20px;right:20px;z-index:200;
  display:flex;flex-direction:column;gap:8px;align-items:flex-end
}
.toast{
  padding:12px 18px;border-radius:10px;font-size:13px;font-weight:600;
  background:rgba(26,31,46,0.95);
  border:1px solid rgba(255,255,255,0.1);
  box-shadow:0 8px 24px rgba(0,0,0,0.5);
  backdrop-filter:blur(8px);
  animation:toastIn .3s ease both;
  min-width:160px;max-width:340px
}
.toast.success{
  border-color:rgba(102,187,106,0.4);background:rgba(40,80,40,0.95);
  color:#c8e6c9
}
.toast.error{
  border-color:rgba(244,92,67,0.5);background:rgba(80,30,30,0.95);
  color:#ffcdd2
}
.toast.info{
  border-color:rgba(66,165,245,0.4);background:rgba(20,40,80,0.95);
  color:#bbdefb
}
@keyframes toastIn{from{opacity:0;transform:translateX(30px)}to{opacity:1;transform:translateX(0)}}
@keyframes toastOut{to{opacity:0;transform:translateX(30px)}}

/* ============ Responsive ============ */
@media (max-width:900px){
  .nav-actions{flex-basis:100%;order:3}
  .user-actions{margin-left:0}
}
@media (max-width:768px){
  .header{gap:12px;align-items:stretch}
  .nav-actions{justify-content:center;flex-wrap:wrap}
  .user-actions{justify-content:center}
  .stats-strip{grid-template-columns:repeat(2,1fr)}
  .squad-grid{grid-template-columns:1fr}
  .form-row{grid-template-columns:1fr}
  .hero-cta{flex-direction:column;text-align:center}
  .stats-board .stats-grid{grid-template-columns:repeat(2,1fr)}
  .search-history{flex-wrap:wrap}
  .modal{max-width:96vw!important;max-height:92vh}
  .detail-actions .btn{min-width:90px;font-size:11px}
  .user-pill .name{font-size:12px}
  .notif-bell .dot{top:-4px;right:-4px}
  .theme-toggle{width:34px;height:34px;font-size:15px}
}

/* ============ 主题切换按钮 ============ */
.theme-toggle{
  width:36px;height:36px;border-radius:10px;
  background:rgba(255,255,255,0.06);
  border:1px solid var(--border);
  font-size:16px;
  display:flex;align-items:center;justify-content:center;
  transition:.18s
}
.theme-toggle:hover{background:rgba(255,255,255,0.12)}
html[data-theme="light"] .theme-toggle{background:rgba(0,0,0,0.05)}

/* ============ 通知铃铛(纯图标) ============ */
.admin-toggle{
  width:38px;height:38px;border-radius:10px;
  background:rgba(255,255,255,0.06);border:1px solid rgba(255,255,255,0.08);
  color:#a8b1c5;font-size:16px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:.18s
}
.admin-toggle:hover{background:rgba(255,213,79,0.18);border-color:rgba(255,213,79,0.5);color:#ffd54f}
.admin-toggle.on{
  background:linear-gradient(135deg,rgba(255,213,79,0.25),rgba(255,122,69,0.25));
  border-color:#ffd54f;color:#ffd54f;
  box-shadow:0 0 12px rgba(255,213,79,0.4)
}
html[data-theme="light"] .admin-toggle{background:rgba(0,0,0,0.05);border-color:rgba(0,0,0,0.08)}
.admin-badge{
  display:inline-block;margin-left:6px;padding:1px 6px;border-radius:6px;
  background:linear-gradient(135deg,#ffd54f,#ff7a45);color:#1a1f2e;
  font-size:9px;font-weight:800;letter-spacing:0.5px;vertical-align:1px
}
.locked{opacity:0.75;font-style:italic}
.unlock-link{
  margin-left:8px;padding:3px 8px;border-radius:6px;
  background:linear-gradient(135deg,#4caf7d,#2e7d32);color:#fff;
  border:none;font-size:11px;cursor:pointer;font-weight:600;
  transition:.15s
}
.unlock-link:hover{transform:translateY(-1px);box-shadow:0 4px 12px rgba(76,175,125,0.4)}
.lock-tag{
  display:inline-block;margin-left:4px;padding:1px 4px;
  background:rgba(255,213,79,0.18);color:#ffd54f;
  border-radius:4px;font-size:10px
}

.notif-bell{
  position:relative;width:38px;height:38px;border-radius:10px;
  background:rgba(255,255,255,0.06);
  border:1px solid var(--border);
  display:flex;align-items:center;justify-content:center;
  transition:.18s;cursor:pointer
}
.notif-bell:hover{background:rgba(255,255,255,0.12);transform:translateY(-1px)}
.notif-bell .bell-icon{font-size:17px;line-height:1}
.notif-bell.has{
  background:rgba(255,213,79,0.18);border-color:rgba(255,213,79,0.5);
  animation:bellShake 2s ease-in-out infinite
}
.notif-bell .dot{
  position:absolute;top:-5px;right:-5px;min-width:18px;height:18px;
  background:linear-gradient(135deg,#ff3d68,#ff7a45);
  color:#fff;font-size:10px;font-weight:700;
  border-radius:9px;padding:0 5px;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 2px 8px rgba(255,61,104,0.5)
}
@keyframes bellShake{0%,92%,100%{transform:rotate(0)}94%{transform:rotate(-10deg)}96%{transform:rotate(8deg)}98%{transform:rotate(-6deg)}}

/* ============ 通知面板 ============ */
.notif-panel{
  position:fixed;top:84px;right:24px;
  width:380px;max-width:calc(100vw - 32px);
  max-height:480px;
  background:var(--bg-soft);
  border:1px solid var(--border-strong);
  border-radius:14px;
  box-shadow:0 12px 40px rgba(0,0,0,0.4);
  z-index:900;
  display:none;flex-direction:column;
  overflow:hidden;
  animation:panelIn .25s ease
}
.notif-panel.show{display:flex}
@keyframes panelIn{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
.notif-panel-header{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 18px;border-bottom:1px solid var(--border);
  font-weight:700;font-size:14px;color:var(--text-strong)
}
.notif-panel-header .close{
  width:26px;height:26px;border-radius:8px;
  font-size:18px;color:var(--text-dim);
  display:flex;align-items:center;justify-content:center;cursor:pointer;
  background:transparent;border:none
}
.notif-panel-header .close:hover{background:rgba(255,255,255,0.08);color:#fff}
.notif-panel-body{
  flex:1;overflow-y:auto;padding:6px
}
.notif-panel-footer{
  padding:10px 18px;border-top:1px solid var(--border);text-align:center
}
.notif-panel-footer .link{
  font-size:12px;color:var(--primary);cursor:pointer;background:transparent;border:none
}
.notif-panel-footer .link:hover{text-decoration:underline}
.notif-count{
  padding:8px 12px;font-size:11px;color:var(--text-dim);
  font-weight:600;text-transform:uppercase;letter-spacing:0.5px
}
.notif-loading,.notif-empty{
  padding:32px 16px;text-align:center;color:var(--text-dim);font-size:13px
}
.notif-empty .icon{font-size:32px;margin-bottom:8px;opacity:0.6}
.notif-empty small{display:block;color:var(--text-dim);font-size:11px;margin-top:6px;opacity:0.7}
.notif-item{
  display:flex;gap:12px;padding:12px;border-radius:10px;
  cursor:pointer;transition:.15s;margin-bottom:2px
}
.notif-item:hover{background:rgba(255,255,255,0.06)}
.notif-icon{
  flex:0 0 36px;height:36px;border-radius:10px;
  background:rgba(255,122,69,0.18);
  display:flex;align-items:center;justify-content:center;font-size:16px
}
.notif-body{flex:1;min-width:0}
.notif-title{font-size:13px;color:var(--text-strong);line-height:1.4;margin-bottom:4px}
.notif-meta{
  display:flex;flex-wrap:wrap;gap:6px;
  font-size:11px;color:var(--text-dim)
}
html[data-theme="light"] .notif-panel{
  background:#fff;border-color:#d5d9e2;box-shadow:0 12px 40px rgba(0,0,0,0.12)
}
html[data-theme="light"] .notif-item:hover{background:rgba(0,0,0,0.04)}

/* ============ 视图模式切换 ============ */
.view-modes{
  display:flex;gap:4px;padding:3px;
  background:rgba(255,255,255,0.04);border-radius:9px;
  border:1px solid var(--border)
}
.view-mode-btn{
  padding:5px 10px;border-radius:7px;font-size:14px;
  background:transparent;color:var(--text-dim);transition:.18s
}
.view-mode-btn:hover{background:rgba(255,255,255,0.08);color:var(--text)}
.view-mode-btn.active{
  background:linear-gradient(135deg,rgba(255,122,69,0.25),rgba(255,61,104,0.18));
  color:#fff
}

/* ============ 搜索历史 ============ */
.search-history{
  display:flex;gap:6px;flex-wrap:wrap;margin-top:8px;
  font-size:12px;color:var(--text-dim)
}
.search-history:empty{display:none}
.search-history-label{margin-right:4px}
.search-history-chip{
  padding:4px 10px;border-radius:8px;
  background:rgba(255,255,255,0.05);
  border:1px solid var(--border);
  color:var(--text-soft);cursor:pointer;transition:.15s
}
.search-history-chip:hover{background:rgba(255,122,69,0.15);color:#fff;border-color:rgba(255,122,69,0.3)}

/* ============ 高亮 ============ */
mark{
  background:rgba(255,213,79,0.35);color:#fff;
  padding:0 2px;border-radius:3px;font-weight:600
}

.detail-expires{margin-bottom:14px;padding:10px 14px;font-size:13px;text-align:center}
@keyframes urgentPulse{50%{opacity:0.7}}

/* ============ 评价列表 ============ */
.ratings-list{display:flex;flex-direction:column;gap:10px}
.rating-item{
  background:rgba(255,255,255,0.03);
  border:1px solid var(--border);
  border-radius:10px;padding:12px
}
.rating-head{
  display:flex;justify-content:space-between;align-items:center;
  margin-bottom:6px
}
.rating-head .who{font-weight:700;color:var(--text-strong);font-size:13px}
.rating-head .stars{color:#ffd54f;font-size:14px;letter-spacing:1px}
.rating-comment{
  font-size:13px;color:var(--text-soft);line-height:1.6;
  margin-bottom:6px;white-space:pre-wrap
}
.rating-reply{
  margin-top:8px;padding:8px 12px;border-radius:8px;
  background:rgba(255,122,69,0.08);
  border-left:3px solid var(--primary);
  color:var(--text-soft);font-size:12px;line-height:1.5
}
.rating-actions{
  display:flex;gap:10px;margin-top:6px
}
.rating-actions .link{
  font-size:11px;color:var(--primary);cursor:pointer;
  background:transparent;padding:0
}
.rating-actions .link:hover{text-decoration:underline}

/* ============ 队员菜单 ============ */
.member-chip{display:flex;flex-direction:column;align-items:center}
.member-menu{
  display:flex;gap:4px;flex-wrap:wrap;justify-content:center;
  margin-top:8px;padding-top:8px;
  border-top:1px dashed var(--border);
  width:100%
}
.btn-mini-danger{background:rgba(244,67,54,0.2);color:#ffab91;border:1px solid rgba(244,67,54,0.3)}
.btn-mini-danger:hover{background:rgba(244,67,54,0.3)}
.vice-tag{
  display:inline-block;padding:1px 6px;border-radius:6px;
  background:rgba(66,165,245,0.18);color:#90caf9;
  font-size:10px;font-weight:700;margin-left:4px
}

/* ============ 模板 ============ */
.template-list{display:flex;flex-direction:column;gap:8px;max-height:240px;overflow-y:auto}
.template-card{
  padding:10px 12px;border-radius:10px;
  background:rgba(255,255,255,0.03);
  border:1px solid var(--border)
}
.template-card .t-name{font-weight:700;color:var(--text-strong);font-size:13px;margin-bottom:4px}
.template-card .t-meta{font-size:11px;color:var(--text-dim);margin-bottom:6px}
.template-card .t-actions{display:flex;gap:6px}

/* ============ 统计看板 ============ */
.stats-board{
  background:rgba(255,255,255,0.03);
  border:1px solid var(--border);
  border-radius:14px;padding:18px;margin-bottom:18px
}
.stats-board h3{
  font-size:13px;color:var(--text-soft);font-weight:700;
  text-transform:uppercase;letter-spacing:1px;margin-bottom:12px
}
.stats-board .stats-grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:10px
}
.stats-board .stat-item{
  text-align:center;padding:14px 8px;border-radius:10px;
  background:rgba(255,255,255,0.04);
  border:1px solid var(--border)
}
.stats-board .stat-item .num{
  font-size:22px;font-weight:800;color:var(--primary);
  margin-bottom:4px;line-height:1
}
.stats-board .stat-item .lbl{
  font-size:11px;color:var(--text-dim);
  text-transform:uppercase;letter-spacing:0.4px
}

/* ============ 浅色主题适配 ============ */
html[data-theme="light"] body{background:#f4f6fb;color:#2a3142}
html[data-theme="light"] .user-pill,
html[data-theme="light"] .notif-bell,
html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .view-mode-btn{color:#2a3142}
html[data-theme="light"] .squad-card{background:#fff;border-color:#e1e5ee;box-shadow:0 2px 8px rgba(0,0,0,0.04)}
html[data-theme="light"] .squad-card:hover{box-shadow:0 8px 24px rgba(0,0,0,0.08)}
html[data-theme="light"] .meta-item,
html[data-theme="light"] .meta-block,
html[data-theme="light"] .contact-pill,
html[data-theme="light"] .role-chip-mini,
html[data-theme="light"] .role-chip-display{background:#f8f9fc;color:#2a3142;border-color:#e1e5ee}
html[data-theme="light"] .squad-leader,
html[data-theme="light"] .squad-desc,
html[data-theme="light"] .meta-block .key,
html[data-theme="light"] .meta-item .label,
html[data-theme="light"] .detail-section h3{color:#5a6378}
html[data-theme="light"] .stats-board{background:#fff;border-color:#e1e5ee}
html[data-theme="light"] .stats-board .stat-item{background:#f8f9fc}
html[data-theme="light"] .filter-bar,
html[data-theme="light"] .search-box{background:#fff;border-color:#e1e5ee}
html[data-theme="light"] .filter-select,
html[data-theme="light"] input[type="text"],
html[data-theme="light"] input[type="password"],
html[data-theme="light"] input[type="number"],
html[data-theme="light"] textarea,
html[data-theme="light"] select{background:#fff;color:#2a3142;border-color:#d5d9e2}
html[data-theme="light"] .member-chip{background:#f8f9fc}
html[data-theme="light"] .empty-members{background:#f8f9fc;color:#7a8294}
html[data-theme="light"] .detail-progress,
html[data-theme="light"] .detail-contact,
html[data-theme="light"] .detail-desc,
html[data-theme="light"] .rating-item,
html[data-theme="light"] .template-card{background:#f8f9fc}
html[data-theme="light"] .register-notice{background:#fff8e1;border-color:#ffe082}
html[data-theme="light"] .register-notice .notice-text{color:#5a4030}
html[data-theme="light"] .admin-user-panel{background:#fff;border-color:#e1e5ee}
html[data-theme="light"] .admin-user-card{background:#f8f9fc;border-color:#e1e5ee}

/* ============ 管理员用户面板 ============ */
.admin-user-panel{
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.06);
  border-radius:14px;padding:16px
}
.admin-user-panel .loading{text-align:center;color:#7a8294;padding:30px}
.admin-user-filters{
  display:flex;gap:8px;margin-bottom:14px;flex-wrap:wrap
}
.admin-user-filter{
  padding:6px 12px;border-radius:8px;font-size:12px;
  background:rgba(255,255,255,0.05);color:#a8b1c5;
  border:1px solid rgba(255,255,255,0.08);cursor:pointer;transition:.15s
}
.admin-user-filter:hover{background:rgba(255,255,255,0.1);color:#fff}
.admin-user-filter.active{
  background:rgba(255,122,69,0.2);color:#ffb088;
  border-color:rgba(255,122,69,0.3)
}
.admin-user-filter .count{
  margin-left:6px;padding:1px 6px;border-radius:8px;
  background:rgba(255,255,255,0.1);font-size:10px;font-weight:700
}
.admin-user-filter.active .count{background:rgba(255,122,69,0.3)}
.admin-user-list{display:flex;flex-direction:column;gap:10px}
.admin-user-card{
  display:flex;justify-content:space-between;align-items:center;gap:16px;
  padding:14px 16px;border-radius:12px;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.06)
}
.admin-user-card.pending{border-color:rgba(255,167,38,0.3);background:rgba(255,167,38,0.05)}
.admin-user-card.approved{border-color:rgba(102,187,106,0.3)}
.admin-user-card.rejected{border-color:rgba(244,67,54,0.3);opacity:0.7}
.admin-user-info{flex:1;min-width:0}
.admin-user-info .nickname{font-size:14px;font-weight:700;color:#fff;margin-bottom:4px}
.admin-user-info .steamid{font-size:11px;color:#7a8294;font-family:monospace}
.admin-user-info .status-badge{
  display:inline-block;padding:2px 8px;border-radius:8px;
  font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:0.4px;margin-left:8px
}
.admin-user-info .status-badge.pending{background:rgba(255,167,38,0.2);color:#ffcc80}
.admin-user-info .status-badge.approved{background:rgba(102,187,106,0.2);color:#a5d6a7}
.admin-user-info .status-badge.rejected{background:rgba(244,67,54,0.2);color:#ffab91}
.admin-user-info .admin-badge{background:linear-gradient(135deg,#ffd54f,#ff7a45);color:#1a1f2e}
.admin-user-actions{display:flex;gap:6px;flex-shrink:0}
.super-admin-tag{
  display:inline-block;padding:3px 8px;border-radius:8px;
  background:linear-gradient(135deg,#ffd54f,#ff7a45);
  color:#1a1f2e;font-size:10px;font-weight:700;
  letter-spacing:0.5px
}
html[data-theme="light"] .super-admin-tag{color:#fff}
html[data-theme="light"] .modal{background:#fff;color:#2a3142;border:1px solid #e1e5ee}
html[data-theme="light"] .modal-header{border-bottom-color:#e1e5ee}
html[data-theme="light"] .modal-footer{border-top-color:#e1e5ee}
