/* ============================================================
   实时拍摄看板 · 深色玻璃拟态风格（对齐参考 display.html）
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1419 100%);
  min-height: 100vh;
  padding: 20px;
  color: #e0e6ed;
  overflow-x: hidden;
  max-width: 100vw;
}

.header {
  background: linear-gradient(135deg, rgba(79,172,254,.15) 0%, rgba(0,242,254,.15) 100%);
  border: 1px solid rgba(79,172,254,.3);
  padding: 24px;
  border-radius: 16px;
  margin-bottom: 24px;
  color: #fff;
  box-shadow: 0 8px 32px rgba(79,172,254,.2), inset 0 1px 0 rgba(255,255,255,.1);
  position: relative;
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.header::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #4facfe 0%, #00f2fe 50%, #4facfe 100%);
  background-size: 200% 100%; animation: shimmer 3s infinite;
}
@keyframes shimmer { 0% { background-position: 0% 0%; } 100% { background-position: 200% 0%; } }
.header-title { font-size: 28px; font-weight: bold; display: flex; align-items: center; gap: 12px; text-shadow: 0 0 20px rgba(79,172,254,.5); }
.header-stats { display: flex; gap: 32px; }
.stat-item { text-align: center; }
.stat-value {
  font-size: 42px; font-weight: bold; display: block;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(79,172,254,.6);
}
.stat-label { font-size: 14px; opacity: .8; margin-top: 8px; color: #a0b4c8; }

/* 分段控件 */
.seg { display: inline-flex; background: rgba(15,20,25,.6); border: 1px solid rgba(79,172,254,.25); border-radius: 10px; padding: 3px; }
.seg a { padding: 8px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; color: #a0b4c8; transition: .15s; }
.seg a.on { background: linear-gradient(135deg, rgba(79,172,254,.3), rgba(0,242,254,.3)); color: #4facfe; box-shadow: 0 0 15px rgba(79,172,254,.35); }

/* 筛选区 */
.filter-section {
  background: rgba(15,20,25,.7); border: 1px solid rgba(79,172,254,.2);
  border-radius: 16px; padding: 20px; margin-bottom: 24px; backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,.4); width: 100%; max-width: 100%; box-sizing: border-box; overflow: hidden;
}
.search-container { margin-bottom: 16px; width: 100%; max-width: 100%; overflow: hidden; }
.search-input {
  width: 100%; max-width: 100%; padding: 12px 16px; background: rgba(15,20,25,.8);
  border: 1px solid rgba(79,172,254,.3); border-radius: 8px; color: #e0e6ed; font-size: 14px;
  margin-bottom: 8px; transition: all .3s; box-sizing: border-box; font-family: var(--font);
}
.search-input:focus { outline: none; border-color: #4facfe; box-shadow: 0 0 15px rgba(79,172,254,.3); background: rgba(15,20,25,.9); }
.search-input::placeholder { color: #6b7c93; }
.date-search-wrapper { position: relative; width: 100%; max-width: 100%; overflow: hidden; margin-top: 8px; }
.search-date { width: 100% !important; max-width: 100% !important; padding: 12px 16px; box-sizing: border-box !important; min-width: 0 !important; color-scheme: dark; }
.status-tabs { display: flex; gap: 12px; flex-wrap: wrap; }
.status-tab {
  flex: 1; padding: 12px 20px; background: rgba(15,20,25,.6); border: 1px solid rgba(79,172,254,.3);
  border-radius: 8px; color: #a0b4c8; font-size: 14px; font-weight: 500; cursor: pointer; transition: all .3s; text-align: center;
}
.status-tab:hover { background: rgba(79,172,254,.1); border-color: rgba(79,172,254,.5); }
.status-tab.active {
  background: linear-gradient(135deg, rgba(79,172,254,.3) 0%, rgba(0,242,254,.3) 100%);
  border-color: rgba(79,172,254,.6); color: #4facfe; box-shadow: 0 0 20px rgba(79,172,254,.3);
}
.tab-count {
  display: inline-block; margin-left: 8px; padding: 1px 9px; min-width: 22px; border-radius: 20px;
  font-size: 12px; font-weight: 700; color: #a0b4c8; background: rgba(15,20,25,.6); border: 1px solid rgba(79,172,254,.25);
}
.status-tab.active .tab-count { color: #fff; background: rgba(79,172,254,.4); border-color: rgba(79,172,254,.6); }
.auto-refresh-btn {
  padding: 12px 20px; background: linear-gradient(135deg, rgba(67,233,123,.28), rgba(56,249,215,.22));
  border: 1px solid rgba(67,233,123,.55); border-radius: 8px; color: #43e97b; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .3s; text-align: center;
}
.auto-refresh-btn:hover { box-shadow: 0 0 20px rgba(67,233,123,.28); }
.auto-refresh-btn.paused { background: linear-gradient(135deg, rgba(255,159,67,.28), rgba(255,107,107,.22)); border-color: rgba(255,159,67,.55); color: #ff9f43; box-shadow: none; }

/* 今日栏目 */
.today-section { margin-bottom: 32px; animation: fadeIn .5s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.today-header {
  background: linear-gradient(135deg, rgba(255,159,67,.2), rgba(251,194,46,.15));
  border: 2px solid rgba(255,159,67,.5); padding: 16px 24px; border-left: 4px solid #ff9f43; border-radius: 12px;
  margin-bottom: 20px; display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 18px; color: #fff;
  box-shadow: 0 4px 20px rgba(255,159,67,.3), inset 0 1px 0 rgba(255,255,255,.1); cursor: pointer; transition: all .3s;
}
.today-header:hover { box-shadow: 0 6px 25px rgba(255,159,67,.4); }
.today-badge { background: linear-gradient(135deg, #ff9f43, #feca57); color: #1a1f3a; padding: 4px 12px; border-radius: 12px; font-size: 12px; font-weight: 700; letter-spacing: .5px; }
.today-count { margin-left: auto; color: #feca57; background: rgba(254,202,71,.15); border: 1px solid rgba(254,202,71,.4); padding: 6px 16px; border-radius: 20px; font-size: 14px; }
.today-toggle-icon { margin-left: 8px; transition: transform .3s; }
.today-section.collapsed .today-toggle-icon { transform: rotate(-90deg); }
.today-section.collapsed .today-cards { display: none; }
.card.today-card::before { background: linear-gradient(90deg, #ff9f43, #feca57) !important; box-shadow: 0 0 25px rgba(255,159,67,.8) !important; }

/* 年份/分组折叠 */
.year-section { margin-bottom: 24px; }
.year-header {
  background: rgba(15,20,25,.6); border: 1px solid rgba(79,172,254,.2); padding: 16px 24px;
  border-left: 4px solid #667eea; border-radius: 12px; margin-bottom: 16px; display: flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: 20px; color: #e0e6ed; box-shadow: 0 4px 16px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(10px); cursor: pointer; transition: all .3s;
}
.year-header:hover { background: rgba(15,20,25,.8); border-color: rgba(79,172,254,.4); }
.year-toggle-icon { color: #4facfe; transition: transform .3s; }
.year-section.collapsed .year-toggle-icon { transform: rotate(-90deg); }
.year-section.collapsed .year-content { display: none; }
.year-count { margin-left: auto; color: #00f2fe; background: rgba(0,242,254,.15); border: 1px solid rgba(0,242,254,.3); padding: 6px 16px; border-radius: 20px; font-size: 14px; box-shadow: 0 0 15px rgba(0,242,254,.2); }
.sec-dot { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
.sec-owner { color: #feca57; font-size: 14px; font-weight: 600; }

.role-section { margin-bottom: 28px; }

/* 月份可折叠区块 */
.month-section { margin-bottom: 28px; }
.month-header {
  background: rgba(15,20,25,.6); border: 1px solid rgba(79,172,254,.25); padding: 15px 22px;
  border-left: 4px solid #4facfe; border-radius: 12px; margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px; cursor: pointer; user-select: none;
  font-weight: 600; font-size: 18px; color: #e0e6ed;
  box-shadow: 0 4px 16px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.05);
  transition: all .3s;
}
.month-header:hover { border-color: rgba(79,172,254,.55); box-shadow: 0 8px 24px rgba(79,172,254,.22); transform: translateY(-2px); }
.month-ico { font-size: 18px; }
.month-title { color: #fff; letter-spacing: .5px; }
.month-count { color: #00f2fe; background: rgba(0,242,254,.15); border: 1px solid rgba(0,242,254,.3); padding: 5px 14px; border-radius: 20px; font-size: 13px; margin-left: auto; white-space: nowrap; }
.month-chevron { color: #4facfe; font-size: 14px; transition: transform .3s; margin-left: 4px; }
.month-section.collapsed .month-chevron { transform: rotate(-90deg); }
.month-section.collapsed .month-cards { display: none; }
@media (max-width: 768px) { .month-header { font-size: 16px; padding: 13px 16px; } .month-count { font-size: 12px; padding: 4px 10px; } }

/* 卡片网格 */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1200px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .cards-grid { grid-template-columns: 1fr; } }

.card {
  background: rgba(15,20,25,.7); border: 1px solid rgba(79,172,254,.2); border-radius: 16px; padding: 20px;
  transition: all .4s cubic-bezier(.4,0,.2,1); position: relative; overflow: hidden; backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.05);
}
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #667eea, #764ba2); box-shadow: 0 0 20px rgba(102,126,234,.6); }
.card[style*="--date-color"]::before { background: var(--date-color); box-shadow: 0 0 25px rgba(79,172,254,.8); }
.card:hover { transform: translateY(-6px) scale(1.02); border-color: rgba(79,172,254,.5); box-shadow: 0 12px 40px rgba(79,172,254,.3), 0 0 60px rgba(79,172,254,.2), inset 0 1px 0 rgba(255,255,255,.1); }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid rgba(79,172,254,.15); }
.card-title { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.card-date { font-size: 13px; color: #4facfe; font-weight: bold; text-shadow: 0 0 10px rgba(79,172,254,.5); }
.card-project-name { font-size: 16px; color: #fff; font-weight: 600; }
.card-header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.card-status { display: flex; align-items: center; gap: 6px; font-size: 12px; padding: 6px 12px; border-radius: 12px; white-space: nowrap; border: 1px solid; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; box-shadow: 0 0 8px currentColor; }
.status-progress { background: rgba(82,196,26,.15); color: #52c41a; border-color: rgba(82,196,26,.4); }
.status-progress .status-dot { background: #52c41a; animation: blink 2s infinite; box-shadow: 0 0 12px #52c41a; }
.status-pending { background: rgba(250,173,20,.15); color: #faad14; border-color: rgba(250,173,20,.4); }
.status-pending .status-dot { background: #faad14; box-shadow: 0 0 12px #faad14; }
.status-completed { background: rgba(24,144,255,.15); color: #1890ff; border-color: rgba(24,144,255,.4); }
.status-completed .status-dot { background: #1890ff; box-shadow: 0 0 12px #1890ff; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.card-body { display: flex; flex-direction: column; gap: 12px; }
.card-item { display: flex; justify-content: space-between; font-size: 13px; line-height: 1.7; padding: 8px 0; border-bottom: 1px solid rgba(79,172,254,.08); gap: 10px; }
.card-item:last-child { border-bottom: none; }
.card-label { color: #a0b4c8; min-width: 88px; font-weight: 500; flex-shrink: 0; }
.card-value { color: #e0e6ed; text-align: right; flex: 1; word-break: break-word; }
.card-bold { font-weight: bold; color: #fff; text-shadow: 0 0 8px rgba(79,172,254,.3); }
.card-link { color: #4facfe; cursor: pointer; text-decoration: underline; }
.card-link:hover { color: #00f2fe; }
.role-chip { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 600; margin: 0 4px 4px 0; }

/* 卡片可点击展开/收起 */
.card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid rgba(79,172,254,.15); cursor: pointer; }
.card-head:hover .card-project-name { color: #4facfe; }
.card-chevron { color: #4facfe; transition: transform .3s; font-size: 14px; margin-left: 10px; flex-shrink: 0; opacity: .8; }
.card.collapsed .card-chevron { transform: rotate(-90deg); }
.card-detail { display: flex; flex-direction: column; gap: 12px; }
.card.collapsed .card-detail { display: none; }

/* 人员分组（按人员统计 + 折叠任务） */
.person-block { margin-bottom: 24px; background: rgba(15,20,25,.45); border: 1px solid rgba(79,172,254,.15); border-radius: 16px; overflow: hidden; backdrop-filter: blur(10px); box-shadow: 0 4px 20px rgba(0,0,0,.3); }
.person-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; cursor: pointer; transition: all .3s; }
.person-head:hover { background: rgba(79,172,254,.08); }
.person-avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 18px; color: #fff; flex-shrink: 0; text-shadow: 0 0 8px rgba(0,0,0,.3); box-shadow: 0 0 14px rgba(79,172,254,.3); }
.person-meta { display: flex; flex-direction: column; gap: 2px; min-width: 84px; }
.person-name { font-size: 17px; font-weight: 700; color: #fff; }
.person-role { font-size: 12px; font-weight: 600; }
.person-stats { display: flex; gap: 12px; flex: 1; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.person-stats span { font-size: 13px; color: #a0b4c8; background: rgba(15,20,25,.6); border: 1px solid rgba(79,172,254,.2); padding: 5px 12px; border-radius: 20px; white-space: nowrap; }
.person-stats b { color: #fff; font-size: 15px; }
.ps-all b { color: #4facfe; }
.ps-prog b { color: #52c41a; }
.ps-done b { color: #1890ff; }
.ps-wait b { color: #faad14; }
.person-chevron { color: #4facfe; font-size: 16px; transition: transform .3s; flex-shrink: 0; }
.person-block.collapsed .person-chevron { transform: rotate(-90deg); }
.person-tasks { padding: 16px 20px 20px; }
.person-block.collapsed .person-tasks { display: none; }

/* 人员视图顶部汇总 */
.person-summary {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  background: linear-gradient(135deg, rgba(79,172,254,.12), rgba(0,242,254,.08));
  border: 1px solid rgba(79,172,254,.3); border-radius: 14px;
  padding: 14px 18px; margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(79,172,254,.15);
}
.person-summary .ps-title { font-size: 16px; font-weight: 700; color: #fff; margin-right: 6px; }
.person-summary .ps-item { font-size: 13px; color: #a0b4c8; background: rgba(15,20,25,.7); border: 1px solid rgba(79,172,254,.25); padding: 6px 14px; border-radius: 20px; white-space: nowrap; }
.person-summary .ps-item b { color: #fff; font-size: 15px; margin: 0 2px; }
.person-summary .ps-all b { color: #4facfe; }
.person-summary .ps-prog b { color: #52c41a; }
.person-summary .ps-done b { color: #1890ff; }
.person-summary .ps-wait b { color: #faad14; }
.person-summary .ps-people b { color: #fff; }
.person-summary .ps-total b { color: #00f2fe; }
@media (max-width: 768px) {
  .person-head { flex-wrap: wrap; }
  .person-stats { width: 100%; justify-content: flex-start; }
  .person-summary .ps-item { font-size: 12px; padding: 5px 10px; }
}

.loading { text-align: center; padding: 80px 20px; color: #4facfe; font-size: 18px; }
.empty { text-align: center; padding: 100px 20px; color: #a0b4c8; }
.empty-icon { font-size: 72px; margin-bottom: 20px; opacity: .6; filter: drop-shadow(0 0 20px rgba(79,172,254,.3)); }
.error { text-align: center; padding: 100px 20px; color: #ff6b6b; }
.retry-btn { background: linear-gradient(135deg, #4facfe, #00f2fe); color: #fff; border: none; padding: 12px 24px; border-radius: 8px; cursor: pointer; font-size: 14px; margin-top: 20px; font-weight: 600; }

.board { width: 100%; }
.board-foot { text-align: center; color: #a0b4c8; padding: 18px; font-size: 13px; }
.board-foot a { color: #4facfe; }

/* 移动端适配 */
@media (max-width: 768px) {
  body { padding: 12px; }
  .header { padding: 20px 16px; flex-direction: column; align-items: flex-start; }
  .header-title { font-size: 22px; }
  .header-stats { gap: 20px; width: 100%; justify-content: flex-start; }
  .stat-value { font-size: 32px; }
  .stat-label { white-space: normal; }
  .filter-section { padding: 14px; }
  .search-input { padding: 10px 12px; font-size: 16px; }
  .status-tab { padding: 10px 12px; font-size: 13px; }
  .auto-refresh-btn { width: 100%; padding: 10px; font-size: 13px; }
  .year-header { padding: 14px 18px; font-size: 18px; }
  .month-cards-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 12px; }
  .month-card { padding: 14px 10px; }
  .month-name { font-size: 15px; }
}
@media (max-width: 480px) {
  body { padding: 8px; }
  .header { padding: 16px 12px; flex-direction: column; align-items: flex-start; }
  .header-title { font-size: 20px; }
  .header-stats { gap: 14px; width: 100%; justify-content: flex-start; }
  .stat-value { font-size: 28px; }
  .filter-section { padding: 10px; }
  .search-input { padding: 9px 10px; font-size: 16px; }
  .status-tab { padding: 9px 8px; font-size: 12px; }
  .month-cards-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .month-card { padding: 12px 8px; }
  .month-name { font-size: 14px; }
  .month-card-count { font-size: 12px; }
  .card { padding: 16px; }
  .card-project-name { font-size: 15px; }
}
