/* 三箭筑工·项目日报 —— 品牌主题：深蓝 #1F2349 + 金色 #C9A24B */
:root {
  --navy: #1F2349;
  --navy-2: #2A3060;
  --navy-3: #3A4380;
  --gold: #C9A24B;
  --gold-light: #E8D5A3;
  --bg: #F4F5F8;
  --card: #FFFFFF;
  --text: #22253A;
  --text-2: #6B7089;
  --line: #E6E8F0;
  --danger: #D64541;
  --ok: #2E9E5B;
  --radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.6;
}

/* ===== 顶部品牌栏 ===== */
.header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; padding: 18px 20px 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 2px 10px rgba(31, 35, 73, .25);
}
.header img { width: 40px; height: 40px; object-fit: contain; }
.header .titles { flex: 1; min-width: 0; }
.header .t1 { font-size: 18px; font-weight: 700; letter-spacing: 1px; }
.header .t2 { font-size: 12px; color: var(--gold-light); letter-spacing: 2px; margin-top: 2px; }
.header .user-chip {
  font-size: 12px; color: #fff; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2); border-radius: 999px;
  padding: 3px 10px; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ===== 通用容器 ===== */
.wrap { max-width: 760px; margin: 0 auto; padding: 16px 14px 40px; }
.wrap.wide { max-width: 1080px; }

/* ===== 卡片/表单 ===== */
.card {
  background: var(--card); border-radius: var(--radius);
  padding: 16px; margin-bottom: 14px;
  box-shadow: 0 1px 4px rgba(31, 35, 73, .06);
}
.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.label { font-size: 14px; font-weight: 600; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.label .req { color: var(--danger); }
.label .opt { color: var(--text-2); font-weight: 400; font-size: 12px; }
.label .hint { color: var(--text-2); font-weight: 400; font-size: 12px; margin-left: auto; }
input[type=text], input[type=date], textarea, select {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-size: 15px; font-family: inherit;
  background: #FAFBFD; color: var(--text); outline: none;
  -webkit-appearance: none; appearance: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--navy-3); background: #fff; }
textarea { min-height: 96px; resize: vertical; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7089' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }

/* 双列布局（宽屏） */
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }

/* ===== 人员标签选择 ===== */
.tag-box { border: 1px solid var(--line); border-radius: 10px; background: #FAFBFD; padding: 8px; }
.tag-box .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.tag-box .chips:empty { margin-bottom: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: #EEF0F8; color: var(--navy-3); border-radius: 999px;
  padding: 3px 10px; font-size: 13px;
}
.chip .x { cursor: pointer; color: var(--text-2); font-style: normal; font-size: 14px; line-height: 1; }
.chip .x:active { color: var(--danger); }
.tag-box input { border: none; background: transparent; padding: 4px 6px; }

/* ===== 附件 ===== */
.file-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px dashed var(--navy-3); color: var(--navy-3);
  border-radius: 10px; padding: 9px 16px; font-size: 14px; cursor: pointer;
  background: #FAFBFD;
}
.file-list { margin-top: 8px; }
.file-item {
  display: flex; align-items: center; gap: 8px;
  background: #F6F7FB; border-radius: 8px; padding: 8px 10px; margin-top: 6px; font-size: 13px;
}
.file-item .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item .size { color: var(--text-2); font-size: 12px; }
.file-item .del { color: var(--danger); cursor: pointer; padding: 0 4px; }

/* ===== 按钮 ===== */
.btn {
  display: block; width: 100%; border: none; border-radius: 12px;
  padding: 13px; font-size: 16px; font-weight: 600; cursor: pointer;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  color: #fff; letter-spacing: 4px;
}
.btn:active { opacity: .85; }
.btn.gold { background: linear-gradient(135deg, #B8903B, var(--gold)); letter-spacing: 2px; }
.btn.ghost {
  background: #fff; color: var(--navy-3); border: 1px solid var(--navy-3); letter-spacing: 2px;
}
.btn.sm { width: auto; display: inline-block; padding: 7px 16px; font-size: 13px; letter-spacing: 1px; border-radius: 8px; }
.btn:disabled { opacity: .5; }

/* ===== 登录层 ===== */
.login-mask {
  position: fixed; inset: 0; background: rgba(31,35,73,.55);
  display: flex; align-items: center; justify-content: center; z-index: 100; padding: 24px;
}
.login-card { background: #fff; border-radius: 16px; padding: 26px 22px; width: 100%; max-width: 360px; text-align: center; }
.login-card img { width: 56px; height: 56px; object-fit: contain; margin-bottom: 10px; }
.login-card h3 { font-size: 17px; margin-bottom: 4px; }
.login-card p { font-size: 13px; color: var(--text-2); margin-bottom: 16px; }
.login-card input { text-align: center; margin-bottom: 12px; }

/* ===== 成功页 ===== */
.done { text-align: center; padding: 40px 10px; }
.done .ok-ico {
  width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%;
  background: #E8F6EE; color: var(--ok); font-size: 38px; line-height: 72px; font-weight: 700;
}
.done h2 { font-size: 19px; margin-bottom: 6px; }
.done p { color: var(--text-2); font-size: 14px; margin-bottom: 26px; }
.done .btns { display: grid; gap: 10px; }

/* ===== 提示条 ===== */
.toast {
  position: fixed; left: 50%; bottom: 15%; transform: translateX(-50%);
  background: rgba(31,35,73,.92); color: #fff; font-size: 14px;
  padding: 10px 20px; border-radius: 999px; z-index: 200;
  opacity: 0; transition: opacity .25s; pointer-events: none; max-width: 80vw;
}
.toast.show { opacity: 1; }

/* ===== 看板 ===== */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.toolbar input, .toolbar select { width: auto; min-width: 130px; flex: 1; }
.toolbar .btn.sm { flex: none; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--card); border-radius: var(--radius); padding: 12px; text-align: center; box-shadow: 0 1px 4px rgba(31,35,73,.06); }
.stat .num { font-size: 24px; font-weight: 700; color: var(--navy); }
.stat .num.warn { color: var(--danger); }
.stat .cap { font-size: 12px; color: var(--text-2); }

.rp-card { background: var(--card); border-radius: var(--radius); margin-bottom: 12px; box-shadow: 0 1px 4px rgba(31,35,73,.06); overflow: hidden; }
.rp-head { padding: 12px 16px; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.rp-head .proj { font-weight: 700; font-size: 15px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-head .who { color: var(--text-2); font-size: 13px; flex: none; }
.rp-head .arrow { color: var(--text-2); font-size: 12px; transition: transform .2s; flex: none; }
.rp-card.open .rp-head .arrow { transform: rotate(90deg); }
.rp-body { display: none; padding: 0 16px 14px; border-top: 1px dashed var(--line); }
.rp-card.open .rp-body { display: block; }
.sec { margin-top: 12px; }
.sec .sec-t { font-size: 13px; font-weight: 700; color: var(--navy-3); margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.sec .sec-t::before { content: ''; width: 3px; height: 12px; background: var(--gold); border-radius: 2px; display: inline-block; }
.sec .sec-v { font-size: 14px; white-space: pre-wrap; word-break: break-word; color: var(--text); }
.sec .sec-v.muted { color: var(--text-2); }
.badge {
  display: inline-block; font-size: 12px; border-radius: 999px; padding: 1px 9px; margin: 2px 4px 2px 0;
  background: #EEF0F8; color: var(--navy-3);
}
.badge.warn { background: #FBEAE9; color: var(--danger); }
.att-link { display: inline-flex; align-items: center; gap: 4px; color: var(--navy-3); font-size: 13px; text-decoration: none; border-bottom: 1px dashed var(--navy-3); margin: 2px 8px 2px 0; }
.empty { text-align: center; color: var(--text-2); padding: 50px 0; }
.empty .ico { font-size: 40px; margin-bottom: 8px; }

.loading { text-align: center; color: var(--text-2); padding: 30px 0; }
.foot { text-align: center; color: var(--text-2); font-size: 12px; padding: 10px 0 30px; }
