/* File: frontend/style.css - 增强版科技风 */

/* 原变量保留 */
:root{
  --bg:#0b1020;
  --card:#0f1724;
  --accent:#24a0ff;
  --muted:#9aa7bf;
  --glass: rgba(255,255,255,0.03);
}

*{
  box-sizing:border-box;
  font-family:"Segoe UI", Roboto, "PingFang SC", "Microsoft Yahei", sans-serif;
  color:#e6eef8;
}

body.bg{
  background:linear-gradient(180deg,#071021 0%, #071427 100%);
  margin:0;
  min-height:100vh;
}

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 18px;
  background:var(--glass);
  backdrop-filter:blur(6px);
  border-bottom:1px solid rgba(255,255,255,0.03);
}

.brand{
  font-size:16px;
  font-weight:600;
  margin-right:16px;
}

.menu { display:inline-flex; gap:8px; }

.menu-btn{
  background:rgba(255,255,255,0.08);
  color:#fff;
  border:none;
  padding:8px 14px;
  border-radius:6px;
  cursor:pointer;
  font-weight:600;
  transition:0.2s;
}
.menu-btn:hover{ background:rgba(255,255,255,0.16); }
.menu-btn.active{
  background:var(--accent);
  color:#072235;
}

.right{
  display:flex;
  gap:8px;
  align-items:center;
}

.small{
  padding:6px 10px;
  border-radius:6px;
  border:none;
  background:var(--accent);
  color:#000;
  font-weight:bold;
  cursor:pointer;
}
.small:hover{
  background:#4eb6ff;
}

.container{
  padding:18px;
  max-width:1100px;
  margin:18px auto;
}

.panel{
  background:linear-gradient(180deg,rgba(255,255,255,0.03),rgba(255,255,255,0.01));
  padding:16px;
  border-radius:10px;
  box-shadow:0 6px 24px rgba(2,6,23,0.6);
}

.hide{ display:none; }

.searchBar{
  display:flex;
  gap:8px;
  margin-bottom:12px;
}

.searchBar input{
  flex:1;
  padding:10px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,0.1);
  background:#101827;
}

.searchBar button{
  background:var(--accent);
  border:none;
  padding:10px 16px;
  border-radius:8px;
  color:#072235;
  font-weight:bold;
  cursor:pointer;
  transition:0.2s;
}
.searchBar button:hover{ background:#4db6ff; }


/* ----- 列表 ----- */
.list{
  display:flex;
  flex-direction:column;
  gap:8px;
  max-height:60vh;
  overflow:auto;
  padding:6px;
}

.list-item{
  display:flex;
  justify-content:space-between;
  padding:14px;
  border-radius:8px;
  background:#0f1724;
  border:1px solid rgba(255,255,255,0.06);
}

.row-left{ max-width:78%; }

.row-right{
  display:flex;
  flex-direction:column;
  gap:6px;
  align-items:flex-end;
}


/* ----- 分页按钮美化 ----- */
.pager{
  display:flex;
  gap:8px;
  align-items:center;
  margin-top:8px;
}

.pager button{
  background:var(--accent);
  border:none;
  padding:8px 12px;
  font-weight:bold;
  color:#072235;
  border-radius:6px;
  cursor:pointer;
}
.pager button:hover{
  background:#4db6ff;
}


/* ----- 高亮颜色规则（你的要求） ----- */
.white{ color:#ffffff !important; }
.blue{ color:#24a0ff !important; font-weight:bold; }
.yellow{ color:#ffdf4d !important; }
.green{ color:#4caf50 !important; }


/* ----- 登录页面 ----- */
.login-card{
  max-width:420px;
  margin:80px auto;
  padding:20px;
  border-radius:12px;
  background:linear-gradient(180deg,#071428,#0c1a2a);
  box-shadow:0 12px 40px rgba(2,6,23,0.7);
}

.login-card h1{
  font-size:18px;
  margin-bottom:12px;
}

.login-card input{
  width:100%;
  padding:10px;
  margin-top:6px;
  margin-bottom:12px;
  border-radius:8px;
  background:#101827;
  border:1px solid rgba(255,255,255,0.08);
}

.login-card button{
  width:100%;
  padding:12px;
  border-radius:8px;
  background:var(--accent);
  color:#072235;
  border:none;
  font-size:15px;
  font-weight:bold;
  cursor:pointer;
}
.login-card button:hover{
  background:#4db6ff;
}

.msg{
  margin-top:12px;
  text-align:center;
  height:20px;
  color:#ff6d6d;
}

.footer{
  padding:12px;
  text-align:center;
  color:var(--muted);
  font-size:12px;
  margin-top:12px;
}

