/* 易联控项目展示站 样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
/* 顶部导航（项目总览 / 人员待办 / 物料管理） */
.topnav {
  position: sticky; top: 0; z-index: 999;
  display: flex; gap: 4px; align-items: center;
  background: rgba(20, 44, 70, 0.97); backdrop-filter: blur(6px);
  padding: 0 18px; box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  overflow-x: auto; white-space: nowrap;
}
.topnav-item {
  display: inline-block; padding: 13px 18px; color: rgba(255,255,255,0.82);
  text-decoration: none; font-size: 14.5px; font-weight: 600;
  border-bottom: 3px solid transparent; transition: color .12s ease;
}
.topnav-item:hover { color: #fff; }
.topnav-item.active {
  color: #fff; border-bottom-color: #ffd166;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: #f0f2f5;
  color: #2d3436;
  line-height: 1.7;
}
.hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #2c5f8a 55%, #3a7bbf 100%);
  color: #fff;
  padding: 44px 24px 36px;
  text-align: center;
}
.brand-logo { font-size: 44px; margin-bottom: 6px; }
.hero h1 { font-size: 28px; font-weight: 700; letter-spacing: 1px; }
.sys-name {
  display: inline-block; margin-top: 10px; padding: 3px 22px;
  font-size: 15px; font-weight: 600; letter-spacing: 3px; color: #fff;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.4);
  border-radius: 20px;
}
.hero .sub { margin-top: 12px; font-size: 14px; opacity: 0.85; }
.hero-badges { margin-top: 16px; }
.backlink {
  display: inline-block; margin-bottom: 14px; color: rgba(255,255,255,0.9);
  text-decoration: none; font-size: 14px;
}
.backlink:hover { color: #fff; text-decoration: underline; }
.container { max-width: 1080px; margin: 0 auto; padding: 28px 20px 60px; }
.card {
  background: #fff; border-radius: 12px; padding: 28px 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06); margin-bottom: 24px;
}
.card h2 { font-size: 20px; color: #1e3a5f; margin-bottom: 14px; padding-left: 10px; border-left: 4px solid #3a7bbf; }
.footer { text-align: center; color: #95a5a6; font-size: 13px; padding: 10px 0 30px; }
.footer p { margin: 4px 0; }

/* 徽章 */
.badge {
  display: inline-block; padding: 2px 12px; border-radius: 14px;
  font-size: 12.5px; font-weight: 600; margin: 2px 4px 2px 0; white-space: nowrap;
}
.b-blue { background: #e3f0fb; color: #1e5a8a; }
.b-green { background: #e6f7ec; color: #1e7d4f; }
.b-red { background: #fdeaea; color: #c0392b; }
.b-orange { background: #fef3e2; color: #b9770e; }
.b-amber { background: #fdf6e3; color: #9a6b00; }
.b-purple { background: #f0eafa; color: #6c3fa0; }
.b-gray { background: #eef0f2; color: #5d6b7a; }
.pri-high { background: #c0392b !important; color: #fff !important; }
.pri-mid { background: #f39c12 !important; color: #fff !important; }
.pri-low { background: #27ae60 !important; color: #fff !important; }

/* 筛选栏 */
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  margin-bottom: 18px;
}
.search-input {
  flex: 1; min-width: 220px; padding: 9px 14px; font-size: 14px;
  border: 1px solid #d5dbe2; border-radius: 8px; outline: none;
  background: #fafbfc;
}
.search-input:focus { border-color: #3a7bbf; background: #fff; box-shadow: 0 0 0 3px rgba(58,123,191,0.12); }
.filter-select {
  padding: 9px 12px; font-size: 14px; border: 1px solid #d5dbe2;
  border-radius: 8px; background: #fafbfc; outline: none; cursor: pointer;
}
.filter-select:focus { border-color: #3a7bbf; }
.result-count { font-size: 13px; color: #95a5a6; margin-left: auto; }
.empty-tip { text-align: center; color: #95a5a6; padding: 30px 0; font-size: 14px; }

/* 人员待办入口卡片 */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.person-card {
  display: flex; flex-direction: column; gap: 4px;
  background: #fafbfc; border: 1px solid #e8eaed; border-radius: 10px;
  padding: 14px 16px; text-decoration: none; color: inherit;
  transition: transform .12s ease, box-shadow .12s ease;
}
.person-card:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,0.1); border-color: #3a7bbf; }
.person-name { font-size: 15px; font-weight: 700; color: #1e3a5f; }
.person-count {
  font-size: 12px; color: #5d6b7a;
}
.people-more { margin-top: 14px; text-align: right; }
.people-more a { color: #2c5f8a; font-size: 13.5px; text-decoration: none; }
.people-more a:hover { text-decoration: underline; }

/* 待办看板页 */
.todo-body h2 {
  font-size: 19px; color: #1e3a5f; margin: 28px 0 12px;
  padding-left: 12px; border-left: 4px solid #3a7bbf;
}
.todo-body h2:first-child { margin-top: 0; }
.todo-body blockquote {
  margin: 12px 0; padding: 10px 16px; background: #f4f8fc;
  border-left: 4px solid #3a7bbf; border-radius: 0 8px 8px 0; color: #4a5a6a;
}
.todo-body blockquote p { margin: 0; }

/* 登录页 */
.login-card { max-width: 380px; margin: 10px auto 0; text-align: center; }
.login-card h2 { text-align: center; margin-bottom: 22px; border-left: none; padding-left: 0; }
.login-input {
  display: block; width: 100%; padding: 12px 14px; font-size: 15px;
  border: 1px solid #d5dbe2; border-radius: 8px; outline: none;
  background: #fafbfc; margin-bottom: 14px;
}
.login-input:focus { border-color: #3a7bbf; background: #fff; box-shadow: 0 0 0 3px rgba(58,123,191,0.12); }
.login-btn {
  display: block; width: 100%; padding: 12px; font-size: 16px; font-weight: 700;
  color: #fff; background: linear-gradient(135deg, #2c5f8a, #3a7bbf);
  border: none; border-radius: 8px; cursor: pointer;
  transition: opacity .12s ease;
}
.login-btn:hover { opacity: 0.9; }
.login-err { color: #c0392b; font-size: 13.5px; margin-top: 12px; min-height: 20px; }

/* 登录后入口选择 */
.entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.entry-btn {
  display: flex; align-items: center; justify-content: center;
  padding: 26px 10px; font-size: 18px; font-weight: 700;
  color: #fff; text-decoration: none; border-radius: 12px;
  background: linear-gradient(135deg, #2c5f8a, #3a7bbf);
  box-shadow: 0 4px 14px rgba(44,95,138,0.3);
  transition: transform .12s ease, box-shadow .12s ease;
}
.entry-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(44,95,138,0.4); }
.entry-btn.c-gold { background: linear-gradient(135deg, #8a6d2c, #bfa03a); box-shadow: 0 4px 14px rgba(138,109,44,0.3); }
.entry-btn.c-gold:hover { box-shadow: 0 8px 22px rgba(138,109,44,0.4); }
.entry-btn.c-green { background: linear-gradient(135deg, #1e7d4f, #27ae60); box-shadow: 0 4px 14px rgba(30,125,79,0.3); }
.entry-btn.c-green:hover { box-shadow: 0 8px 22px rgba(30,125,79,0.4); }
.entry-btn.c-memo { background: linear-gradient(135deg, #5b3d8f, #7d5bbf); box-shadow: 0 4px 14px rgba(91,61,143,0.3); }
.entry-btn.c-memo:hover { box-shadow: 0 8px 22px rgba(91,61,143,0.4); }
@media (max-width: 640px) {
  .entry-grid { grid-template-columns: 1fr; }
}

/* 关于我们 */
.about p { margin: 10px 0; color: #4a5a6a; font-size: 15px; }
.about strong { color: #1e3a5f; }
.footer-sub { margin-top: 6px; font-size: 12px; opacity: 0.8; }

/* 首页卡片网格 - 紧凑卡片 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.pcard {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  background: #fafbfc; border: 1px solid #e8eaed; border-radius: 8px;
  padding: 10px 14px; text-decoration: none; color: inherit;
  transition: transform .12s ease, box-shadow .12s ease;
}
.pcard:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,0.1); border-color: #3a7bbf; }
.pcard-title { font-size: 14.5px; font-weight: 600; color: #1e3a5f; line-height: 1.35; }
.pcard .badge { margin: 0; flex-shrink: 0; }
.pcard-head, .pcard-meta, .pcard-status, .pcard-date { display: none; }

/* 详情页 md 内容 */
.md-body h2 {
  font-size: 21px; color: #1e3a5f; margin: 30px 0 14px;
  padding-left: 12px; border-left: 4px solid #3a7bbf;
}
.md-body h2:first-child { margin-top: 0; }
.md-body h3 { font-size: 17px; color: #2c5f8a; margin: 22px 0 10px; }
.md-body p { margin: 10px 0; }
.md-body strong { color: #1e3a5f; }
.md-body ul, .md-body ol { margin: 10px 0; padding-left: 26px; }
.md-body li { margin: 6px 0; }
.md-body li::marker { color: #3a7bbf; }
.md-body hr { border: none; border-top: 1px solid #e8eaed; margin: 26px 0; }
.md-body blockquote {
  margin: 14px 0; padding: 12px 18px; background: #f4f8fc;
  border-left: 4px solid #3a7bbf; border-radius: 0 8px 8px 0; color: #4a5a6a;
}
.md-body blockquote p { margin: 0; }
.md-body table {
  width: 100%; border-collapse: collapse; margin: 16px 0;
  font-size: 14px; border-radius: 8px; overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.md-body thead th {
  background: #2c5f8a; color: #fff; font-weight: 600;
  padding: 10px 13px; text-align: left; white-space: nowrap;
}
.md-body tbody td { padding: 9px 13px; border-bottom: 1px solid #eef1f4; }
.md-body tbody tr:nth-child(even) { background: #f8fafc; }
.md-body tbody tr:hover { background: #eef6fd; }
.md-body code {
  background: #eef1f4; padding: 2px 7px; border-radius: 5px;
  font-family: Consolas, monospace; font-size: 13px; color: #c0392b;
}
.md-body pre { background: #282c34; color: #abb2bf; padding: 16px 20px; border-radius: 8px; overflow-x: auto; margin: 14px 0; }
.md-body pre code { background: none; color: inherit; padding: 0; }
.md-body a { color: #2c5f8a; }

/* 物料管理页 */
.mat-section { overflow: hidden; }
.mat-section h2 { margin-bottom: 16px; }
.table-wrap { overflow-x: auto; }
.mat-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mat-table thead th {
  background: #2c5f8a; color: #fff; font-weight: 600;
  padding: 10px 13px; text-align: left; white-space: nowrap;
}
.mat-table tbody td { padding: 9px 13px; border-bottom: 1px solid #eef1f4; }
.mat-table tbody tr:nth-child(even) { background: #f8fafc; }
.mat-table tbody tr:hover { background: #eef6fd; }
.mat-link { color: #2c5f8a; text-decoration: none; font-weight: 600; white-space: nowrap; }
.mat-link:hover { text-decoration: underline; }
.mat-note { color: #5d6b7a; font-size: 13px; max-width: 260px; }
.alert-card { border: 2px solid #f5c6c6; background: #fffafa; }
.alert-card h2 { border-left-color: #c0392b; color: #c0392b; }

@media (max-width: 640px) {
  .hero h1 { font-size: 22px; }
  .card { padding: 20px 16px; }
  .grid { grid-template-columns: 1fr; }
  .md-body table { font-size: 13px; display: block; overflow-x: auto; }
}
/* 主页注销按钮 */
.logout-btn {
  display: block; width: 100%; margin-top: 18px; padding: 12px;
  font-size: 15px; font-weight: 600; color: #c33; cursor: pointer;
  background: #fff; border: 1.5px solid #e2c9c9; border-radius: 10px;
  transition: background .12s ease, border-color .12s ease;
}
.logout-btn:hover { background: #fdf3f3; border-color: #d9a5a5; }
/* 实施管理按钮（青色） */
.entry-btn.c-impl { background: linear-gradient(135deg, #0e7c7c, #16a3a3); box-shadow: 0 4px 14px rgba(14,124,124,0.3); }
.entry-btn.c-impl:hover { box-shadow: 0 8px 22px rgba(14,124,124,0.4); }
/* 实施日历日期列 */
.cal-date { white-space: nowrap; font-weight: 600; color: #1e6f8a; }
.cal-owner { color: #4a5568; }
tr.dim td { color: #9aa5b1; }
/* 实施日历 - 表格行样式 */
.cal-date { white-space: nowrap; font-weight: 600; color: #1e6f8a; }
.cal-owner { color: #4a5568; }
tr.dim td { color: #9aa5b1; }

/* 人天合计行 */
.mat-table tfoot.total-row td { background: #f0f7ff; border-top: 2px solid #c7d9f0; font-size: 14px; color: #1a56a0; padding: 10px 13px; }
