/* ============================================
   陆渔科技工程部考核查看系统 - 设计系统 V2
   品牌色：深海蓝 #0e2a47 / 科技蓝 #1d6ff2 / 水绿 #0a9d7a
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --navy: #0e2a47;
  --navy2: #14406e;
  --blue: #1d6ff2;
  --teal: #0a9d7a;
  --amber: #e8a23d;
  --red: #d64550;
  --bg: #f2f5fa;
  --card: #ffffff;
  --ink: #16283e;
  --sub: #7a8aa0;
  --line: #e6ebf2;
  --radius: 14px;
  --shadow: 0 2px 14px rgba(14, 42, 71, .07);
}
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.65;
  padding-bottom: env(safe-area-inset-bottom);
}
a { color: var(--blue); text-decoration: none; }

/* ---------- 顶栏 ---------- */
.header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  color: #fff; padding: 14px 16px;
  display: flex; justify-content: space-between; align-items: center;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 12px rgba(14, 42, 71, .25);
}
.header .brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.header .logo {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, #2f8bff, #0a9d7a);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.header h1 { font-size: 15.5px; font-weight: 600; letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header .sub { font-size: 11px; color: #9fc0e8; margin-top: 1px; }
.header .link { color: #c7dcf5; font-size: 13px; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.08); flex-shrink: 0; }

.container { max-width: 760px; margin: 0 auto; padding: 16px 14px 48px; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card); border-radius: var(--radius); padding: 18px;
  margin-bottom: 14px; box-shadow: var(--shadow);
  border: 1px solid rgba(14, 42, 71, .04);
}
.card h2 {
  font-size: 14px; color: var(--ink); font-weight: 600; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.card h2::before { content: ''; width: 4px; height: 14px; border-radius: 2px; background: linear-gradient(180deg, var(--blue), var(--teal)); }

/* ---------- 顶部得分总览 ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #14538c 100%);
  border-radius: var(--radius); color: #fff; padding: 20px 18px;
  margin-bottom: 14px; position: relative; overflow: hidden;
  box-shadow: 0 6px 20px rgba(14, 42, 71, .28);
}
.hero::after {
  content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px;
  border-radius: 50%; background: rgba(255,255,255,.05);
}
.hero::before {
  content: ''; position: absolute; right: 30px; bottom: -60px; width: 120px; height: 120px;
  border-radius: 50%; background: rgba(42, 143, 255, .18);
}
.hero .label { font-size: 12px; color: #9fc0e8; letter-spacing: 1px; }
.hero .score-row { display: flex; align-items: flex-end; gap: 10px; margin: 6px 0 2px; }
.hero .score { font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -1px; }
.hero .score small { font-size: 15px; font-weight: 400; color: #9fc0e8; }
.hero .badge-hero {
  display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: 13px; font-weight: 700;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); margin-left: 4px;
}
.hero .meta { font-size: 12px; color: #9fc0e8; margin-top: 8px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 统计网格 ---------- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat { text-align: center; padding: 12px 6px; background: #f6f9fd; border-radius: 10px; border: 1px solid var(--line); }
.stat .num { font-size: 22px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.stat .lbl { font-size: 11.5px; color: var(--sub); margin-top: 2px; }
.stat.teal .num { color: var(--teal); }
.stat.blue .num { color: var(--blue); }
.stat.amber .num { color: var(--amber); }
.stat.red .num { color: var(--red); }

/* ---------- 评分进度条 ---------- */
.score-line { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.score-line .sname { width: 88px; font-size: 13px; color: var(--ink); flex-shrink: 0; }
.score-line .track { flex: 1; height: 8px; background: #eef2f8; border-radius: 4px; overflow: hidden; }
.score-line .fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--blue), var(--teal)); transition: width .6s ease; }
.score-line .sval { width: 62px; text-align: right; font-size: 12.5px; color: var(--sub); flex-shrink: 0; }
.score-line .sval b { color: var(--ink); font-size: 13.5px; }

/* ---------- 表格 ---------- */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 9px 8px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--sub); font-weight: 600; font-size: 12px; background: #f8fafd; }
th:first-child { border-radius: 8px 0 0 8px; }
th:last-child { border-radius: 0 8px 8px 0; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #f8fafd; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; background: var(--blue); color: #fff; border: none;
  padding: 11px 20px; border-radius: 10px; font-size: 15px; font-weight: 500;
  cursor: pointer; text-align: center; transition: all .15s ease;
  box-shadow: 0 2px 8px rgba(29, 111, 242, .25);
}
.btn:active { transform: scale(.97); opacity: .9; }
.btn.block { width: 100%; }
.btn.gray { background: #eef2f8; color: var(--ink); box-shadow: none; }
.btn.green { background: linear-gradient(135deg, #0a9d7a, #0b8a6c); box-shadow: 0 2px 8px rgba(10, 157, 122, .25); }
.btn.red { background: var(--red); box-shadow: none; }
.btn.sm { padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }
.btn.outline { background: transparent; border: 1.5px solid var(--blue); color: var(--blue); box-shadow: none; }
.toolbar { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }

/* ---------- 表单 ---------- */
input[type=text], input[type=password], input[type=date], textarea, select {
  width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: inherit; background: #fff; transition: border .15s;
}
input:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,111,242,.12); }
textarea { min-height: 90px; resize: vertical; }
label { display: block; font-size: 13px; color: var(--sub); margin: 12px 0 5px; font-weight: 500; }

/* ---------- 徽章 ---------- */
.badge { display: inline-block; padding: 2.5px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.badge.A { background: #d8f5ea; color: #087a5c; }
.badge.B { background: #dbe9ff; color: #1757c9; }
.badge.C { background: #fdf0d7; color: #a06a10; }
.badge.D { background: #ffe4e7; color: #b02a37; }
.badge.E { background: #fde3e3; color: #a11313; }

/* ---------- 提示 ---------- */
.alert { background: #fdf0f0; border: 1px solid #f6cccc; color: #a11313; padding: 11px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 13.5px; }
.ok { background: #e8f8f2; border: 1px solid #bcebdc; color: #087a5c; padding: 11px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 13.5px; }
.muted { color: var(--sub); font-size: 13px; }
.tag-ok { color: var(--teal); font-weight: 600; font-size: 12px; }
.tag-warn { color: var(--red); font-weight: 600; font-size: 12px; }

/* ---------- 排名列表 ---------- */
.rank-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.rank-row:last-child { border-bottom: none; }
.rank-num {
  width: 32px; height: 32px; border-radius: 50%; background: #eef2f8; color: var(--sub);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.rank-row.top1 .rank-num { background: linear-gradient(135deg, #f5c84c, #e0a92e); color: #fff; box-shadow: 0 2px 8px rgba(224,169,46,.4); }
.rank-row.top2 .rank-num { background: linear-gradient(135deg, #c9d2dd, #a8b4c2); color: #fff; }
.rank-row.top3 .rank-num { background: linear-gradient(135deg, #d9a47c, #c07f52); color: #fff; }
.rank-info { flex: 1; min-width: 0; }
.rank-info .name { font-weight: 600; font-size: 15px; }
.rank-info .sub { font-size: 12px; color: var(--sub); }
.rank-score { text-align: right; flex-shrink: 0; }
.rank-score .total { font-size: 21px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.rank-score .grade { font-size: 11.5px; color: var(--sub); }

/* ---------- 迷你条（看板排名） ---------- */
.mini-track { height: 5px; background: #eef2f8; border-radius: 3px; margin-top: 5px; overflow: hidden; width: 100%; }
.mini-fill { height: 100%; border-radius: 3px; }

/* ---------- 上传卡片 ---------- */
.upload-card { border: 2px dashed #cdd9e8; border-radius: var(--radius); padding: 22px; text-align: center; background: #fafcff; transition: all .2s; }
.upload-card:hover { border-color: var(--blue); background: #f4f9ff; }
.upload-card .icon { font-size: 34px; margin-bottom: 8px; }
.upload-card .fname { font-weight: 600; font-size: 15px; }
.upload-card .fdesc { font-size: 12.5px; color: var(--sub); margin: 4px 0 14px; }
.upload-card input[type=file] { display: none; }

/* ---------- 登录页 ---------- */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: linear-gradient(150deg, #0b2340 0%, #14406e 55%, #0d5c86 100%);
  position: relative; overflow: hidden;
}
.login-wrap::before {
  content: ''; position: absolute; left: -80px; top: -80px; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(42,143,255,.25), transparent 70%);
}
.login-wrap::after {
  content: ''; position: absolute; right: -100px; bottom: -100px; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(10,157,122,.22), transparent 70%);
}
.login-card {
  position: relative; z-index: 2; width: 100%; max-width: 380px;
  background: rgba(255,255,255,.97); border-radius: 20px; padding: 36px 30px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.login-card .logo-lg {
  width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 18px;
  background: linear-gradient(135deg, #2f8bff, #0a9d7a);
  display: flex; align-items: center; justify-content: center; font-size: 30px;
  box-shadow: 0 8px 20px rgba(29,111,242,.35);
}
.login-card h1 { font-size: 19px; color: var(--navy); text-align: center; font-weight: 700; }
.login-card .sub { text-align: center; color: var(--sub); font-size: 12.5px; margin: 4px 0 22px; }
.login-card input { margin-bottom: 4px; }

/* ---------- 其他 ---------- */
.footer-note { text-align: center; color: var(--sub); font-size: 12px; margin-top: 18px; }
.divider { height: 1px; background: var(--line); margin: 12px 0; }
.report-item { border-bottom: 1px solid #f2f5fa; padding: 9px 0; }
.report-item:last-child { border-bottom: none; }
.report-item .date { font-weight: 600; color: var(--navy); font-size: 13.5px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #2f8bff, #0a9d7a); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600;
}
