/* ===== 建筑报价公司管理系统 · 高端视觉 v2 ===== */
:root {
  --brand-900: #0b2149;
  --brand-800: #102b5e;
  --brand-700: #16377a;
  --brand-600: #1d4390;
  --brand-500: #2a5fa8;
  --brand-100: #e8eef9;
  --gold: #c9a227;
  --gold-light: #e5c767;
  --bg: #f3f5f9;
  --card: #ffffff;
  --text-1: #17233d;
  --text-2: #5a6783;
  --text-3: #9aa5bd;
  --line: #e6eaf2;
  --shadow-sm: 0 1px 3px rgba(11,33,73,.06), 0 4px 14px rgba(11,33,73,.05);
  --shadow-md: 0 6px 20px rgba(11,33,73,.10), 0 2px 6px rgba(11,33,73,.06);
  --shadow-lg: 0 16px 44px rgba(11,33,73,.16);
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: 'PingFang SC','Microsoft YaHei','Helvetica Neue',Arial,sans-serif;
  background: var(--bg); color: var(--text-1);
  -webkit-font-smoothing: antialiased;
}
#app { height: 100%; }
/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #c6cedd; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #aab6cc; }
::-webkit-scrollbar-track { background: transparent; }

/* ===== 登录页 ===== */
.login-wrap {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(1200px 700px at 85% -10%, #2a5fa8 0%, transparent 55%),
              radial-gradient(900px 600px at -10% 110%, #1d4390 0%, transparent 50%),
              linear-gradient(135deg, #081a3e 0%, #0b2149 45%, #102b5e 100%);
  overflow: hidden;
}
.login-wrap::before {
  content: ''; position: absolute; left: 8%; top: 12%; width: 340px; height: 340px; border-radius: 50%;
  border: 1.5px solid rgba(201,162,39,.28);
}
.login-wrap::after {
  content: ''; position: absolute; right: 6%; bottom: 8%; width: 460px; height: 460px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.10);
}
.login-brand {
  position: absolute; left: 7%; top: 50%; transform: translateY(-50%); color: #fff; z-index: 1; max-width: 380px;
}
.login-brand .logo-mark {
  width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, var(--gold) 0%, #a8811f 100%);
  display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; color: #0b2149;
  box-shadow: 0 10px 26px rgba(201,162,39,.35); margin-bottom: 20px;
}
.login-brand h1 { font-size: 30px; font-weight: 700; margin: 0 0 10px; letter-spacing: 1px; }
.login-brand p { color: rgba(255,255,255,.65); font-size: 14px; line-height: 1.8; margin: 0; }
.login-card {
  position: relative; z-index: 2; width: 400px; background: rgba(255,255,255,.97);
  border-radius: 18px; padding: 40px 36px 30px; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.4); backdrop-filter: blur(8px);
}
.login-card .brand-mobile { display: none; }
.login-card h1 { font-size: 22px; color: var(--brand-900); margin: 0 0 4px; text-align: center; letter-spacing: .5px; }
.login-card .sub { text-align: center; color: var(--text-3); font-size: 13px; margin-bottom: 30px; }
.login-card .sub b { color: var(--gold); font-weight: 600; }
.login-btn { width: 100%; height: 44px; font-size: 15px; letter-spacing: 4px; border: none;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-500)); color: #fff;
  border-radius: 10px; cursor: pointer; transition: all .25s; box-shadow: 0 8px 20px rgba(42,95,168,.28); }
.login-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(42,95,168,.36); }
.login-footer { text-align: center; margin-top: 22px; color: var(--text-3); font-size: 12px; }

/* ===== 主布局 ===== */
.layout { display: flex; height: 100vh; overflow: hidden; }

/* 侧边栏 */
.aside {
  width: 232px; flex-shrink: 0; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #0a1f47 0%, #0d2a5e 55%, #123368 100%);
  color: #fff; position: relative;
}
.aside::after { content:''; position:absolute; right:0; top:0; bottom:0; width:1px;
  background: linear-gradient(180deg, transparent, rgba(201,162,39,.5), transparent); }
.aside .logo {
  padding: 22px 20px 18px; display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.aside .logo .mark {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold) 0%, #a8811f 100%);
  display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; color: #0b2149;
}
.aside .logo .name { font-size: 15px; font-weight: 600; letter-spacing: .5px; line-height: 1.3; }
.aside .logo .name small { display: block; font-size: 10px; color: rgba(255,255,255,.45); font-weight: 400; letter-spacing: 1.5px; }
.aside .menu { flex: 1; overflow-y: auto; padding: 12px 10px 20px; }
.aside .menu-group {
  margin: 16px 10px 6px; font-size: 11px; color: rgba(255,255,255,.38);
  letter-spacing: 2px; text-transform: uppercase; display: flex; align-items: center; gap: 8px;
}
.aside .menu-group::after { content:''; flex:1; height:1px; background: rgba(255,255,255,.07); }
.menu-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 2px 0;
  border-radius: 9px; color: rgba(255,255,255,.72); font-size: 13.5px; cursor: pointer;
  transition: all .2s; position: relative; user-select: none;
}
.menu-item .micon { font-size: 16px; color: rgba(255,255,255,.55); transition: all .2s; display: inline-flex; }
.menu-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.menu-item:hover .micon { color: var(--gold-light); }
.menu-item.active {
  background: linear-gradient(90deg, rgba(201,162,39,.20), rgba(201,162,39,.06));
  color: #fff; font-weight: 600;
}
.menu-item.active::before { content:''; position:absolute; left:-10px; top:20%; bottom:20%; width:3px; border-radius:3px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold)); }
.menu-item.active .micon { color: var(--gold-light); }

/* 主区 */
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; background: var(--bg); }
.topbar {
  height: 60px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center;
  padding: 0 24px; justify-content: space-between; box-shadow: 0 1px 4px rgba(11,33,73,.04);
  position: relative; z-index: 10;
}
.topbar .crumbs { font-size: 15px; font-weight: 600; color: var(--text-1); display: flex; align-items: center; gap: 8px; }
.topbar .crumbs .dot { width: 5px; height: 20px; border-radius: 3px; background: linear-gradient(180deg, var(--gold-light), var(--gold)); }
.topbar .right { display: flex; align-items: center; gap: 14px; }
.topbar .user-chip {
  display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px;
  border-radius: 24px; background: var(--brand-100); border: 1px solid rgba(42,95,168,.15);
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-400));
  background: linear-gradient(135deg, var(--brand-600), var(--brand-500));
  color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff; box-shadow: 0 2px 8px rgba(42,95,168,.3);
}
.user-chip .uinfo { line-height: 1.25; }
.user-chip .uname { font-size: 13px; font-weight: 600; color: var(--text-1); }
.user-chip .urole { font-size: 11px; color: var(--text-3); }
.topbar .tb-btn { border: none; background: transparent; color: var(--text-2); font-size: 13px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 8px; transition: all .2s; }
.topbar .tb-btn:hover { background: var(--brand-100); color: var(--brand-600); }
.topbar .tb-btn.danger:hover { background: #fdecec; color: #d15252; }

.content { flex: 1; overflow-y: auto; padding: 22px 24px; }
.page-card { background: var(--card); border-radius: var(--radius); padding: 20px 22px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(11,33,73,.04); }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 10px; flex-wrap: wrap; }
.toolbar .title { font-size: 17px; font-weight: 700; color: var(--text-1); display: flex; align-items: center; gap: 9px; }
.toolbar .title::before { content:''; width: 4px; height: 17px; border-radius: 3px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold)); }

/* 统计卡片 */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card {
  background: var(--card); border-radius: var(--radius); padding: 18px 18px 16px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(11,33,73,.04);
  position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s; cursor: default;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-card::after { content:''; position:absolute; right:-30px; top:-30px; width:90px; height:90px; border-radius:50%;
  background: radial-gradient(circle, rgba(42,95,168,.07), transparent 70%); }
.stat-card .sicon {
  width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  font-size: 19px; color: #fff; margin-bottom: 12px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  box-shadow: 0 6px 14px rgba(42,95,168,.28);
}
.stat-card .sicon.gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #0b2149; box-shadow: 0 6px 14px rgba(201,162,39,.3); }
.stat-card .sicon.green { background: linear-gradient(135deg, #52c41a, #389e0d); box-shadow: 0 6px 14px rgba(82,196,26,.25); }
.stat-card .sicon.red { background: linear-gradient(135deg, #ef6b6b, #d15252); box-shadow: 0 6px 14px rgba(209,82,82,.25); }
.stat-card .sicon.orange { background: linear-gradient(135deg, #f5a623, #d48806); box-shadow: 0 6px 14px rgba(212,136,6,.25); }
.stat-card .num { font-size: 26px; font-weight: 800; color: var(--text-1); line-height: 1.2; letter-spacing: -.5px; }
.stat-card .num small { font-size: 12px; font-weight: 500; color: var(--text-3); margin-left: 2px; }
.stat-card .label { font-size: 12.5px; color: var(--text-3); margin-top: 4px; }
.stat-card .label .trend { margin-left: 6px; font-size: 11px; font-weight: 600; }

/* 网格卡片 */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 18px; }
.grid-2 .card, .card { background: var(--card); border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(11,33,73,.04); }
.card-title { font-size: 15px; font-weight: 700; color: var(--text-1); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px; }
.card-title::before { content:''; width: 4px; height: 15px; border-radius: 3px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold)); }

/* 表格美化 */
.el-table { --el-table-border-color: var(--line); --el-table-header-bg-color: #f7f9fd;
  --el-table-header-text-color: #44506b; --el-table-row-hover-bg-color: #f4f7fd;
  --el-table-text-color: var(--text-1); border-radius: 10px; overflow: hidden; }
.el-table th.el-table__cell { font-weight: 600; font-size: 12.5px; }
.el-table .el-table__cell { padding: 9px 0; }
.el-button { border-radius: 8px; font-weight: 500; }
.el-button--primary { --el-button-bg-color: var(--brand-500); --el-button-border-color: var(--brand-500);
  --el-button-hover-bg-color: var(--brand-600); --el-button-hover-border-color: var(--brand-600); }
.el-button--small { border-radius: 7px; }
.el-input__wrapper, .el-select__wrapper { border-radius: 8px; }
.el-dialog { border-radius: 16px; }
.el-dialog__title { font-weight: 700; color: var(--text-1); }
.el-radio-button__original-radio:checked + .el-radio-button__inner {
  background: var(--brand-500); border-color: var(--brand-500); box-shadow: -1px 0 0 0 var(--brand-500); }
.el-tag { border-radius: 6px; }
.el-message-box { border-radius: 14px; }

.footer { color: var(--text-3); font-size: 12px; text-align: center; padding: 14px 0 8px; }
.footer b { color: var(--gold); font-weight: 600; }

/* 响应式 */
@media (max-width: 900px) {
  .login-brand { display: none; }
  .login-card { width: 92%; max-width: 400px; }
  .aside { width: 190px; }
  .content { padding: 14px 12px; }
}

/* ===== 网盘 ===== */
.disk-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.disk-toolbar .el-upload { display: inline-block; }
.disk-toolbar .el-breadcrumb { font-size: 13px; }

/* ===== 项目中心 ===== */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.proj-card {
  background: var(--card); border-radius: var(--radius); border: 1px solid rgba(11,33,73,.05);
  box-shadow: var(--shadow-sm); padding: 18px 18px 14px; cursor: pointer;
  transition: transform .25s, box-shadow .25s, border-color .25s; position: relative; overflow: hidden;
}
.proj-card::before { content:''; position:absolute; left:0; top:0; bottom:0; width:4px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold)); opacity:0; transition: opacity .25s; }
.proj-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(201,162,39,.35); }
.proj-card:hover::before { opacity: 1; }
.proj-card .proj-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 10px; }
.proj-card .proj-name { font-size: 16px; font-weight: 700; color: var(--text-1); line-height: 1.4; }
.proj-card .proj-cust { font-size: 13px; color: var(--text-2); display: flex; align-items: center; margin-bottom: 14px; }
.proj-card .proj-stats { display: flex; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); padding: 10px 0; margin-bottom: 10px; }
.proj-card .proj-stats div { flex: 1; text-align: center; }
.proj-card .proj-stats b { display: block; font-size: 18px; font-weight: 800; color: var(--brand-700); }
.proj-card .proj-stats span { font-size: 11px; color: var(--text-3); }
.proj-card .proj-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); }

/* ===== 资料大厅 ===== */
.upload-box { width: 300px; flex-shrink: 0; }
.upload-box .el-upload, .upload-box .el-upload-dragger { width: 100%; }
.upload-box .up-tip { margin-top: 10px; font-size: 12px; color: var(--text-3); text-align: center; }
.upload-box .up-tip b { color: var(--brand-600); }
.fname { font-size: 13px; color: var(--text-1); }
.empty { text-align: center; color: var(--text-3); padding: 60px 0; }
