:root { --primary: #1a3a5c; --primary-light: #2e5a8a; --accent: #c9a227; --bg: #f5f6f8; --card-bg: #ffffff; --text: #1a1a1a; --text-secondary: #5a5a5a; --border: #e0e2e6; --success: #2d7d46; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
.header { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: white; padding: 24px 20px; text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
.header h1 { font-size: 22px; font-weight: 600; letter-spacing: 1px; margin-bottom: 6px; }
.header .subtitle { font-size: 13px; opacity: 0.85; font-weight: 400; }
.container { max-width: 1400px; margin: 0 auto; padding: 16px; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi-card { background: var(--card-bg); border-radius: 8px; padding: 16px 12px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,0.06); border-top: 3px solid var(--primary); transition: transform 0.2s; cursor: pointer; }
.kpi-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.kpi-value { font-size: 28px; font-weight: 700; color: var(--primary); line-height: 1.2; }
.kpi-label { font-size: 12px; color: var(--text-secondary); margin-top: 4px; font-weight: 500; }
.kpi-sub { font-size: 11px; color: #888; margin-top: 2px; }
.section { margin-bottom: 20px; }
.section-title { font-size: 16px; font-weight: 600; color: var(--primary); margin-bottom: 12px; padding-left: 12px; border-left: 4px solid var(--accent); display: flex; align-items: center; justify-content: space-between; }
.section-title .hint { font-size: 11px; color: #999; font-weight: 400; border-left: none; padding-left: 0; }
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.chart-card { background: var(--card-bg); border-radius: 10px; padding: 16px; box-shadow: 0 1px 6px rgba(0,0,0,0.06); position: relative; }
.chart-card .chart-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.chart-card .chart-title::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.chart-container { width: 100%; height: 280px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { background: var(--primary); color: white; padding: 10px 8px; text-align: left; font-weight: 500; position: sticky; top: 0; }
.data-table td { padding: 8px; border-bottom: 1px solid var(--border); }
.data-table tr:hover { background: #f0f4f8; }
.modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1000; justify-content: center; align-items: center; padding: 16px; }
.modal-overlay.active { display: flex; }
.modal { background: white; border-radius: 12px; width: 100%; max-width: 800px; max-height: 85vh; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.modal-header { background: var(--primary); color: white; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { font-size: 16px; font-weight: 600; }
.modal-close { background: none; border: none; color: white; font-size: 24px; cursor: pointer; line-height: 1; }
.modal-body { padding: 16px; overflow-y: auto; flex: 1; }
.modal-footer { padding: 10px 20px; border-top: 1px solid var(--border); text-align: right; font-size: 12px; color: #888; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 500; }
.tag-party { background: #e8f5e9; color: var(--success); }
.tag-phd { background: #fff3e0; color: #e65100; }
.phd-card { background: linear-gradient(135deg, #fff8e1 0%, #fff3e0 100%); border: 1px solid #ffe0b2; border-radius: 10px; padding: 14px; margin-bottom: 10px; }
.phd-name { font-size: 15px; font-weight: 600; color: var(--primary); }
.phd-info { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
@media (max-width: 768px) { .header h1 { font-size: 18px; } .kpi-grid { grid-template-columns: repeat(2, 1fr); } .kpi-value { font-size: 22px; } .chart-grid { grid-template-columns: 1fr; } .chart-container { height: 240px; } .section-title { font-size: 14px; } .data-table { font-size: 12px; } .data-table th, .data-table td { padding: 6px 4px; } }
@media (max-width: 480px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } .kpi-card { padding: 12px 8px; } .container { padding: 10px; } }

.header-toolbar { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.toolbar-btn { background: var(--accent); color: #fff; border: none; border-radius: 20px; padding: 8px 22px; font-size: 14px; font-weight: 600; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.toolbar-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,0.25); }
.search-wrap { position: relative; width: 260px; max-width: 70vw; }
.search-input { width: 100%; padding: 8px 14px; border-radius: 20px; border: none; outline: none; font-size: 13px; color: var(--text); }
.search-dropdown { display: none; position: absolute; top: 40px; left: 0; right: 0; background: #fff; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.25); max-height: 300px; overflow-y: auto; z-index: 1300; text-align: left; }
.search-dropdown.active { display: block; }
.search-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; cursor: pointer; color: var(--text); font-size: 13px; border-bottom: 1px solid var(--border); }
.search-item:hover, .search-item.active { background: #f0f4f8; }
.search-item mark, .search-subject mark { background: #fff1b8; color: inherit; padding: 0 1px; border-radius: 2px; }
.search-item .si-meta { color: #999; font-size: 11px; }
.search-subject { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 14px; cursor: pointer; color: var(--primary); font-size: 13px; font-weight: 600; background: #f7f9fc; border-bottom: 1px solid var(--border); }
.search-subject:hover, .search-subject.active { background: #eef4fa; }
.search-subject .ss-kicker { display: inline-block; margin-right: 6px; padding: 1px 5px; border-radius: 4px; background: var(--primary); color: #fff; font-size: 10px; font-weight: 500; vertical-align: 1px; }
.search-subject .ss-count { color: #8a95a3; font-size: 11px; font-weight: 400; white-space: nowrap; }
.t-overlay { display: none; position: fixed; inset: 0; background: var(--bg); z-index: 1200; flex-direction: column; }
.t-overlay.active { display: flex; }
.t-topbar { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: #fff; padding: 12px 16px; display: flex; align-items: center; gap: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.t-crumb { flex: 1; font-size: 15px; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-back, .t-close { background: rgba(255,255,255,0.15); border: none; color: #fff; border-radius: 16px; padding: 6px 14px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.t-back:hover, .t-close:hover { background: rgba(255,255,255,0.3); }
.t-body { flex: 1; overflow-y: auto; padding: 18px 16px 40px; max-width: 1200px; width: 100%; margin: 0 auto; }
.t-subject-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.t-subject-card { background: #fff; border-radius: 10px; padding: 18px 12px; text-align: center; box-shadow: 0 1px 5px rgba(0,0,0,0.08); cursor: pointer; border-top: 3px solid var(--primary); transition: transform 0.15s; }
.t-subject-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
.t-subject-name { font-size: 16px; font-weight: 600; color: var(--primary); }
.t-subject-count { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.t-chips { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.t-chip { padding: 6px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--border); font-size: 13px; cursor: pointer; color: var(--text-secondary); }
.t-chip.on { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; }
.t-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.t-card { background: #fff; border-radius: 10px; padding: 14px; box-shadow: 0 1px 5px rgba(0,0,0,0.08); cursor: pointer; display: flex; gap: 12px; align-items: flex-start; transition: transform 0.15s; }
.t-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
.t-avatar { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; background: #e8eaed; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; font-weight: 600; flex-shrink: 0; }
.t-info { flex: 1; min-width: 0; }
.t-name { font-size: 15px; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.t-line { font-size: 12px; color: var(--text-secondary); margin-top: 3px; }
.t-line b { color: var(--text); font-weight: 500; }
.t-detail-card { background: #fff; border-radius: 12px; box-shadow: 0 1px 6px rgba(0,0,0,0.08); padding: 20px; }
.t-detail-head { display: flex; gap: 16px; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.t-detail-head .t-avatar { width: 72px; height: 72px; font-size: 28px; }
.t-detail-name { font-size: 22px; font-weight: 700; color: var(--primary); }
.t-detail-sub { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.t-info-status { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; color: var(--text-secondary); font-size: 11.5px; }
.t-info-status b { color: var(--primary); font-weight: 600; }
.t-info-status span { color: #98a1ad; }
.t-sec { margin-bottom: 16px; }
.t-sec-title { font-size: 14px; font-weight: 600; color: var(--primary); margin-bottom: 8px; padding-left: 10px; border-left: 3px solid var(--accent); }
.t-kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; font-size: 13px; }
.t-kv .k { color: #999; }
.t-kv .v { color: var(--text); font-weight: 500; }
@media (max-width: 480px) { .t-card-grid { grid-template-columns: 1fr 1fr; } .t-card { flex-direction: column; align-items: center; text-align: center; } .search-wrap { width: 200px; } }

.t-tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.t-tbl-wrap .data-table { min-width: 520px; }
@media (max-width: 768px) {
  .t-body { padding: 12px 10px 32px; }
  .t-detail-card { padding: 14px; border-radius: 10px; }
  .t-detail-head { gap: 12px; padding-bottom: 12px; margin-bottom: 12px; }
  .t-detail-head .t-avatar { width: 60px; height: 60px; font-size: 24px; }
  .t-detail-name { font-size: 20px; }
  .t-detail-sub { font-size: 13px; }
  .t-sec { margin-bottom: 14px; }
  .t-sec-title { font-size: 14px; margin-bottom: 8px; }
  .t-kv { grid-template-columns: 1fr 1fr; gap: 10px 12px; font-size: 14px; }
  .t-kv .k { display: block; font-size: 12px; margin-bottom: 1px; }
  .t-line { font-size: 13px; }
  .t-chip { padding: 6px 16px; font-size: 14px; }
  .t-card { padding: 12px; }
  .t-subject-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
  .t-subject-card { padding: 14px 8px; }
  .t-topbar { padding: 10px 12px; }
  .t-crumb { font-size: 14px; }
}
@media (max-width: 380px) {
  .t-kv { grid-template-columns: 1fr; }
}
.zg-row { display: flex; align-items: baseline; gap: 10px; padding: 10px 2px; border-bottom: 1px dashed var(--border); flex-wrap: wrap; }
.zg-row:last-of-type { border-bottom: none; }
.zg-label { font-size: 13px; color: var(--text-secondary); min-width: 110px; flex-shrink: 0; }
.zg-value { font-size: 20px; font-weight: 700; color: var(--primary); }
.zg-sub { font-size: 12px; color: #999; flex: 1; min-width: 140px; }
.zg-note { margin-top: 12px; font-size: 12px; color: #888; background: #f5f6f8; border-radius: 8px; padding: 10px 12px; line-height: 1.7; }
@media (max-width: 768px) {
  .zg-label { min-width: 96px; font-size: 12px; }
  .zg-value { font-size: 18px; }
  .zg-sub { font-size: 11px; }
}
