/* 新优科技 - 白色玻璃主题（现代风格、不过分花哨也不极简） */
:root{
  --bg1:#f6f8ff;
  --bg2:#ffffff;
  --glass: rgba(255,255,255,.72);
  --stroke: rgba(0,0,0,.08);
  --shadow: 0 18px 50px rgba(23,31,56,.10);
  --text:#111827;
  --muted:#6b7280;
  --primary:#2563eb;
  --primary2:#7c3aed;
  --radius: 18px;
  --radius-sm: 14px;
  --max: 1120px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(900px 420px at 12% 10%, rgba(37,99,235,.15), transparent 60%),
    radial-gradient(800px 420px at 82% 16%, rgba(124,58,237,.15), transparent 55%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
}

a{color:inherit; text-decoration:none}
.container{max-width:var(--max); margin:0 auto; padding:22px}
.glass{
  background: var(--glass);
  border:1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
}
.card{padding:18px}
.row{display:flex; gap:16px; flex-wrap:wrap}
.col{flex:1; min-width:260px}

.nav{
  position:sticky; top:8px; z-index:20;
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 16px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:800; letter-spacing:.4px;
}
.brand .logo{
  position:relative;
  padding:6px 12px;
  border-radius: 999px;
  border:1px solid var(--stroke);
  overflow:hidden;
  background: rgba(255,255,255,.6);
}
.brand .logo::after{
  content:"";
  position:absolute; inset:-40% -60%;
  background: linear-gradient(120deg, transparent 38%, rgba(255,255,255,.75) 50%, transparent 62%);
  transform: translateX(-60%) rotate(8deg);
  animation: sweep 3.6s ease-in-out infinite;
  opacity:.75;
}
@keyframes sweep{
  0%{transform:translateX(-70%) rotate(8deg)}
  60%{transform:translateX(90%) rotate(8deg)}
  100%{transform:translateX(90%) rotate(8deg)}
}
.nav-links{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius: 999px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.65);
  cursor:pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  user-select:none;
}
.btn:hover{transform: translateY(-1px)}
.btn.primary{
  color:white;
  border-color: rgba(37,99,235,.25);
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  box-shadow: 0 18px 50px rgba(37,99,235,.22);
}
.btn.danger{
  color:white; border-color: rgba(239,68,68,.25);
  background: linear-gradient(135deg, #ef4444, #f97316);
}
.btn.small{padding:8px 12px; font-size:14px}

.hero{
  padding:26px;
  display:flex; align-items:center; justify-content:space-between;
  gap:18px;
}
.hero h1{font-size:38px; margin:0 0 10px}
.hero p{margin:0 0 16px; color:var(--muted); line-height:1.6}
.hero .pill{
  display:inline-flex; gap:8px; align-items:center;
  padding:8px 12px;
  border-radius: 999px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.55);
  color: var(--muted);
  font-size:14px;
}

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:16px;
}
.g6{grid-column: span 6}
.g4{grid-column: span 4}
.g8{grid-column: span 8}
.g12{grid-column: span 12}

.kpi{
  padding:16px;
  border-radius: var(--radius);
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.58);
  transition: transform .2s ease;
}
.kpi:hover{transform: translateY(-2px)}
.kpi .num{font-size:26px; font-weight:800}
.kpi .cap{color:var(--muted); font-size:14px}

.input, textarea, select{
  width:100%;
  padding:12px 14px;
  border-radius: var(--radius-sm);
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.78);
  outline:none;
}
textarea{min-height:120px; resize:vertical}
.label{font-size:13px; color:var(--muted); margin:10px 0 6px}
.form{max-width:520px}
.form-row{display:grid; grid-template-columns:1fr 1fr; gap:12px}
@media (max-width:760px){
  .hero{flex-direction:column; align-items:flex-start}
  .grid{grid-template-columns: 1fr; }
  .g6,.g4,.g8,.g12{grid-column: span 12}
  .form-row{grid-template-columns:1fr}
}

.footer{
  margin:28px 0 10px;
  display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap;
  color: var(--muted);
  font-size:14px;
  padding:16px;
}

.avatar{
  width:34px; height:34px; border-radius: 999px;
  border:1px solid var(--stroke);
  object-fit:cover;
  background: rgba(255,255,255,.7);
}
.avatar.big{width:80px; height:80px}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  font-size:13px; color: var(--muted);
  padding:8px 12px;
  border:1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(255,255,255,.55);
}
.progress{
  height:12px;
  border-radius:999px;
  background: rgba(0,0,0,.06);
  overflow:hidden;
  border:1px solid var(--stroke);
}
.progress > i{
  display:block; height:100%;
  width:0%;
  background: linear-gradient(90deg, var(--primary), var(--primary2));
  border-radius: 999px;
}

.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0 10px;
}
.table th{font-size:13px; text-align:left; color:var(--muted); font-weight:600; padding:0 10px}
.table td{
  padding:12px 10px;
}
.tr{
  background: rgba(255,255,255,.62);
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
.tr td:first-child{border-top-left-radius: var(--radius); border-bottom-left-radius: var(--radius)}
.tr td:last-child{border-top-right-radius: var(--radius); border-bottom-right-radius: var(--radius)}

.toast{
  padding:12px 14px;
  border-radius: var(--radius);
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.78);
  margin:12px 0;
}
.toast.ok{border-color: rgba(34,197,94,.25)}
.toast.err{border-color: rgba(239,68,68,.25)}

.fade-in{animation: fadeIn .35s ease both}
@keyframes fadeIn{
  from{opacity:0; transform: translateY(8px)}
  to{opacity:1; transform: translateY(0)}
}


/* Mobile nav */
.mobile-only{display:none}
.desktop-only{display:inline-flex}
@media (max-width:760px){
  .container{padding:14px}
  .nav{padding:10px 12px; gap:10px}
  .brand{gap:8px}
  .brand .pill{display:none} /* 顶部副标题移动端隐藏，避免拥挤 */
  .nav-links{display:none}  /* 移动端把功能移到底部导航 */
  .desktop-only{display:none !important}
  .mobile-only{display:inline-flex !important}
  .hero{padding:16px}
  .hero h1{font-size:28px}
  .card{padding:14px}
  .grid{gap:12px}
  .footer{margin-bottom:72px} /* 给底部导航留空间 */
}

/* Bottom tab bar (mobile) */
.bottom-bar{
  display:none;
  position:fixed;
  left:12px; right:12px; bottom:12px;
  z-index:50;
  padding:10px;
  border-radius: 22px;
}
.bottom-bar .tabs{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap:10px;
}
.tab{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:6px;
  padding:10px 8px;
  border-radius: 16px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.62);
  font-size:12px;
  color: var(--muted);
  transition: transform .15s ease, background .2s ease;
}
.tab b{font-size:12px; color:var(--text); font-weight:800}
.tab:hover{transform: translateY(-1px)}
.tab.active{
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  border-color: rgba(37,99,235,.25);
}
.tab.active b{color:#fff}
.icon{
  width:18px; height:18px; display:block;
  opacity:.9;
}
@media (max-width:760px){
  .bottom-bar{display:block}
}
