:root {
  --navy: #071f45;
  --navy-2: #0b2d61;
  --blue: #1476ff;
  --cyan: #19b7e8;
  --ink: #17243b;
  --muted: #6d7b91;
  --line: #e5ebf3;
  --bg: #f5f8fc;
  --white: #fff;
  --orange: #ff922b;
  --red: #d9485f;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.eyebrow { color: var(--blue); font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; }
.brand-mark {
  width: 35px; height: 35px; border-radius: 11px;
  display: grid; place-items: center; color: white; font-size: 18px;
  background: linear-gradient(145deg, var(--blue), var(--cyan));
  box-shadow: 0 8px 24px rgba(20, 118, 255, .25);
}
.topbar {
  height: 68px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 34px; color: white;
  background: linear-gradient(115deg, var(--navy), var(--navy-2));
}
.top-actions { display: flex; gap: 10px; align-items: center; }
.ghost-button, .outline-button, .primary-button {
  border: 0; border-radius: 9px; padding: 10px 16px; font-weight: 700;
}
.ghost-button { color: white; background: rgba(255,255,255,.11); }
.outline-button { color: var(--blue); background: white; border: 1px solid #cbdaf1; }
.primary-button {
  color: white; background: linear-gradient(125deg, #126eff, #19a9e8);
  box-shadow: 0 8px 20px rgba(20, 118, 255, .22);
}
.primary-button:disabled { opacity: .58; cursor: wait; }
.page { max-width: 1440px; margin: 0 auto; padding: 26px 32px 50px; }
.hero-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 18px; }
h1 { margin: 5px 0 0; font-size: 28px; }
h2 { font-size: 19px; margin: 0; }
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filters select {
  min-width: 180px; padding: 10px 34px 10px 12px; border: 1px solid var(--line);
  border-radius: 9px; background: white;
}
.metric-grid { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 13px; }
.metric {
  border: 1px solid var(--line); border-radius: 14px; background: white;
  padding: 17px; box-shadow: 0 9px 28px rgba(31,57,91,.055);
}
.metric-label { color: var(--muted); font-size: 13px; }
.metric-value { font-weight: 800; font-size: 24px; margin-top: 8px; color: var(--navy-2); }
.metric-note { color: var(--muted); font-size: 12px; margin-top: 4px; }
.section-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 14px; margin-top: 14px; }
.card {
  min-width: 0;
  background: white; border: 1px solid var(--line); border-radius: 14px;
  padding: 19px; box-shadow: 0 9px 28px rgba(31,57,91,.045);
}
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.legend { display: flex; gap: 13px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 99px; margin-right: 5px; }
.legend-income { background: #1476ff; }
.legend-publish { background: #19b7e8; }
.chart-wrap { height: 280px; position: relative; }
#trendChart { width: 100%; height: 100%; display: block; }
.insight-list { display: grid; gap: 10px; }
.insight {
  padding: 13px 14px; border-radius: 10px; border-left: 4px solid var(--blue);
  background: #f4f8ff; line-height: 1.55;
}
.insight.warn { border-left-color: var(--orange); background: #fff8ed; }
.insight.danger { border-left-color: var(--red); background: #fff3f5; }
.table-wrap { overflow: auto; max-height: 360px; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; min-width: 680px; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; }
th { position: sticky; top: 0; color: #53627a; background: #f7f9fc; z-index: 1; }
tr:last-child td { border-bottom: 0; }
.status-pill { display: inline-block; padding: 3px 8px; border-radius: 20px; font-size: 12px; background: #fff1dc; color: #ae650f; }
.notice { margin-top: 14px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.login-shell {
  min-height: 100vh; display: grid; grid-template-columns: 1.15fr .85fr;
  background: linear-gradient(120deg, var(--navy), #0d376f 53%, #eef5ff 53%);
}
.login-story { color: white; padding: 10vh 8vw; display: flex; flex-direction: column; justify-content: center; }
.login-story h1 { font-size: clamp(34px, 4vw, 58px); max-width: 700px; margin: 18px 0; }
.login-story p { color: #c7d9f6; max-width: 600px; font-size: 17px; line-height: 1.8; }
.login-panel { display: grid; place-items: center; padding: 32px; }
.login-card { width: min(430px, 100%); background: white; border-radius: 20px; padding: 34px; box-shadow: 0 24px 70px rgba(0,28,71,.18); }
.login-card h2 { font-size: 25px; margin: 10px 0 5px; }
.field { display: grid; gap: 7px; margin-top: 18px; }
.field label { font-size: 13px; font-weight: 700; color: #506079; }
.field input {
  width: 100%; border: 1px solid #dbe3ef; border-radius: 10px; padding: 12px 13px;
  outline: none;
}
.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(20,118,255,.11); }
.login-card .primary-button { width: 100%; margin-top: 22px; padding: 13px; }
.form-message { min-height: 22px; margin-top: 12px; color: var(--red); font-size: 13px; }
.lookup-body {
  min-height: 100vh; color: white;
  background:
    radial-gradient(circle at 75% 22%, rgba(28,151,255,.28), transparent 30%),
    linear-gradient(145deg, #061a3a, #0a2d63 58%, #0b4174);
}
.lookup-nav { padding: 22px max(24px, 7vw); display: flex; justify-content: space-between; align-items: center; }
.lookup-main { max-width: 1080px; margin: 0 auto; padding: 7vh 24px 60px; text-align: center; }
.lookup-main h1 { font-size: clamp(34px, 5vw, 60px); margin: 12px 0; }
.lookup-main > p { color: #c3d6f4; line-height: 1.8; }
.lookup-card {
  width: min(720px, 100%); margin: 34px auto 0; color: var(--ink); text-align: left;
  background: rgba(255,255,255,.98); border-radius: 20px; padding: 28px;
  box-shadow: 0 28px 85px rgba(0,0,0,.24);
}
.lookup-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.lookup-row input { min-width: 0; border: 1px solid #dbe3ef; border-radius: 10px; padding: 13px; }
.candidate-list { display: grid; gap: 9px; margin-top: 16px; }
.candidate {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--line); border-radius: 10px; padding: 12px;
}
.result-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.income-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.income-item { padding: 14px; background: #f4f8ff; border-radius: 11px; }
.income-item strong { display: block; margin-top: 6px; font-size: 20px; color: var(--navy-2); }

@media (max-width: 1050px) {
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .section-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .topbar { padding: 0 17px; }
  .page { padding: 20px 15px 35px; }
  .hero-row { align-items: stretch; flex-direction: column; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .login-shell { grid-template-columns: 1fr; background: linear-gradient(145deg, var(--navy), #0c3971); }
  .login-story { padding: 50px 24px 10px; }
  .login-panel { padding: 24px; }
  .income-grid { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .metric-grid { grid-template-columns: 1fr; }
  .lookup-row { grid-template-columns: 1fr; }
}

/* 经营复盘中心：深蓝科技风。登录页与实名查询页继续沿用原有样式。 */
.dashboard-shell {
  --dash-bg: #06172f;
  --dash-panel: rgba(10, 36, 75, .92);
  --dash-panel-2: rgba(13, 46, 94, .86);
  --dash-line: rgba(118, 169, 234, .18);
  --dash-text: #f4f8ff;
  --dash-muted: #98b0cf;
  min-height: 100vh;
  color: var(--dash-text);
  background:
    radial-gradient(circle at 78% 4%, rgba(25, 117, 255, .18), transparent 31%),
    radial-gradient(circle at 10% 42%, rgba(12, 190, 223, .08), transparent 24%),
    linear-gradient(145deg, #041329, #071d3d 48%, #082551);
}
.dashboard-shell .topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 70px;
  border-bottom: 1px solid rgba(130, 180, 239, .16);
  background: rgba(4, 19, 41, .9);
  backdrop-filter: blur(14px);
}
.dashboard-shell .page { max-width: 1540px; padding-top: 30px; }
.dashboard-shell .hero-row { align-items: flex-start; }
.dashboard-shell h1,
.dashboard-shell h2,
.dashboard-shell h3 { color: var(--dash-text); }
.dashboard-shell h1 { font-size: 34px; }
.dashboard-muted,
.dashboard-shell .section-note,
.dashboard-shell .institution-manager,
.dashboard-shell .metric-note,
.dashboard-shell .notice { color: var(--dash-muted); }
.dashboard-muted { margin-top: 8px; font-size: 13px; }
.dashboard-shell .eyebrow,
.dashboard-shell .section-kicker {
  color: #3c9cff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}
.dashboard-shell .filters {
  justify-content: flex-end;
  max-width: 920px;
}
.filter-field {
  display: grid;
  gap: 6px;
  color: var(--dash-muted);
  font-size: 12px;
  font-weight: 700;
}
.dashboard-shell .filters select,
.dashboard-shell .filters input {
  min-width: 180px;
  height: 42px;
  color: var(--dash-text);
  border: 1px solid var(--dash-line);
  border-radius: 10px;
  outline: none;
  background: rgba(10, 38, 80, .9);
  color-scheme: dark;
}
.dashboard-shell .filters input { padding: 0 11px; }
.dashboard-shell .filters select:focus,
.dashboard-shell .filters input:focus {
  border-color: #2c8fff;
  box-shadow: 0 0 0 3px rgba(44, 143, 255, .13);
}
.dashboard-shell .filters .primary-button { align-self: end; height: 42px; }
.quick-periods {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: -4px 0 22px;
}
.quick-periods button {
  color: #b4c6df;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 14px;
  background: rgba(19, 54, 101, .7);
}
.quick-periods button:hover,
.quick-periods button.active {
  color: white;
  border-color: rgba(65, 150, 255, .55);
  background: linear-gradient(135deg, #176fe8, #199cdb);
}
.dashboard-section { margin-top: 20px; }
.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}
.section-title h2 { margin-top: 4px; font-size: 21px; }
.dashboard-shell .metric-grid { gap: 12px; }
.creator-grid { grid-template-columns: repeat(4, minmax(180px, 1fr)); }
.union-grid { grid-template-columns: repeat(4, minmax(180px, 1fr)); }
.dashboard-shell .dashboard-metric {
  position: relative;
  overflow: hidden;
  min-height: 122px;
  color: var(--dash-text);
  border: 1px solid var(--dash-line);
  background:
    linear-gradient(140deg, rgba(19, 61, 120, .76), rgba(7, 31, 67, .92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 16px 40px rgba(0, 7, 25, .18);
}
.dashboard-shell .dashboard-metric::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  right: -34px;
  top: -34px;
  border-radius: 50%;
  background: rgba(45, 143, 255, .12);
}
.dashboard-shell .dashboard-metric.highlight { border-color: rgba(44, 143, 255, .54); }
.dashboard-shell .dashboard-metric.channel { border-color: rgba(44, 198, 239, .38); }
.dashboard-shell .dashboard-metric.warning { border-color: rgba(245, 181, 68, .42); }
.dashboard-shell .metric-label { color: #a7bbd7; }
.dashboard-shell .metric-value { color: white; font-size: 27px; }
.dashboard-shell .warning .metric-value { color: #ffc45c; }
.dashboard-shell .section-grid { margin-top: 20px; }
.charts-grid { grid-template-columns: 1fr 1fr; }
.dashboard-shell .dark-card {
  color: var(--dash-text);
  border: 1px solid var(--dash-line);
  background: var(--dash-panel);
  box-shadow: 0 18px 46px rgba(0, 8, 28, .2);
}
.dashboard-shell .chart-wrap { height: 310px; }
.dashboard-shell canvas { width: 100%; height: 100%; display: block; }
.dashboard-shell .legend { color: var(--dash-muted); }
.legend-total { background: #2f8cff; }
.legend-channel,
.legend-active { background: #f5b544; }
.institution-list { display: grid; gap: 14px; }
.institution-card {
  border: 1px solid var(--dash-line);
  border-radius: 16px;
  padding: 20px;
  background:
    linear-gradient(125deg, rgba(14, 50, 101, .93), rgba(7, 30, 64, .92));
  box-shadow: 0 16px 40px rgba(0, 7, 25, .16);
}
.institution-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}
.institution-head h3 { margin: 0 0 4px; font-size: 20px; }
.institution-status {
  flex: 0 0 auto;
  border-radius: 99px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}
.institution-status.good { color: #73e3b0; background: rgba(42, 181, 124, .14); }
.institution-status.attention { color: #ffc45c; background: rgba(245, 181, 68, .14); }
.institution-metrics {
  display: grid;
  grid-template-columns: repeat(8, minmax(105px, 1fr));
  gap: 9px;
}
.institution-metric {
  min-width: 0;
  border: 1px solid rgba(121, 170, 229, .1);
  border-radius: 10px;
  padding: 12px;
  background: rgba(23, 60, 110, .64);
}
.institution-metric span {
  display: block;
  overflow: hidden;
  color: var(--dash-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.institution-metric strong { display: block; margin-top: 7px; color: white; font-size: 17px; }
.institution-metric.income strong { color: #6ee7b7; }
.institution-metric.warn strong { color: #ffc45c; }
.risk-grid { grid-template-columns: 1fr 1fr; }
.dashboard-shell .table-wrap {
  border-color: var(--dash-line);
  background: rgba(5, 24, 52, .48);
}
.dashboard-shell table { color: #dfeafb; }
.dashboard-shell th {
  color: #9eb4d2;
  border-color: var(--dash-line);
  background: #0e3267;
}
.dashboard-shell td { border-color: rgba(118, 169, 234, .11); }
.dashboard-shell tr:hover td { background: rgba(38, 104, 183, .12); }
.dashboard-shell .status-pill { color: #ffc45c; background: rgba(245, 181, 68, .14); }
.dashboard-notice {
  border-top: 1px solid var(--dash-line);
  padding-top: 15px;
  margin-top: 22px;
}

@media (max-width: 1260px) {
  .dashboard-shell .hero-row { flex-direction: column; }
  .dashboard-shell .filters { justify-content: flex-start; max-width: none; }
  .quick-periods { justify-content: flex-start; margin-top: 0; }
  .institution-metrics { grid-template-columns: repeat(4, minmax(120px, 1fr)); }
}
@media (max-width: 960px) {
  .creator-grid,
  .union-grid { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
  .charts-grid,
  .risk-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .dashboard-shell .page { padding: 20px 14px 36px; }
  .dashboard-shell h1 { font-size: 28px; }
  .dashboard-shell .filters { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .dashboard-shell .filter-field,
  .dashboard-shell .filters select,
  .dashboard-shell .filters input { min-width: 0; width: 100%; }
  .dashboard-shell .filters .primary-button { grid-column: 1 / -1; }
  .institution-metrics { grid-template-columns: repeat(2, minmax(110px, 1fr)); }
  .section-title { align-items: flex-start; flex-direction: column; gap: 7px; }
}
@media (max-width: 430px) {
  .creator-grid,
  .union-grid { grid-template-columns: 1fr; }
  .dashboard-shell .filters { grid-template-columns: 1fr; }
  .dashboard-shell .filters .primary-button { grid-column: auto; }
}
