:root {
  --bg: #f3f5f7;
  --card: rgba(255, 255, 255, 0.96);
  --card-strong: #ffffff;
  --line: rgba(23, 38, 32, 0.1);
  --text: #172620;
  --muted: #63716b;
  --brand: #185847;
  --brand-strong: #113f33;
  --brand-soft: #e3ece8;
  --accent: #7b6540;
  --accent-soft: #eee6d8;
  --slate-soft: #e7ecef;
  --danger: #b84a3d;
  --shadow: 0 14px 34px rgba(20, 33, 28, 0.08);
  --shadow-soft: 0 8px 18px rgba(20, 33, 28, 0.05);
  --radius-lg: 24px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8fafb 0%, var(--bg) 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.page-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.28;
}

.orb-a {
  width: 280px;
  height: 280px;
  top: -90px;
  left: -90px;
  background: rgba(24, 88, 71, 0.08);
}

.orb-b {
  width: 360px;
  height: 360px;
  top: 280px;
  right: -150px;
  background: rgba(123, 101, 64, 0.06);
}

.orb-c {
  width: 220px;
  height: 220px;
  bottom: -80px;
  left: 24%;
  background: rgba(79, 108, 126, 0.05);
}

.app-frame {
  position: relative;
  z-index: 1;
  max-width: 1480px;
  margin: 0 auto;
  padding: 20px 20px 36px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: stretch;
  padding: 24px 28px;
  border: 1px solid rgba(23, 38, 32, 0.08);
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.eyebrow {
  margin: 0 0 6px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
}

.header-copy {
  max-width: 760px;
}

.header-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.1;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 700;
}

.status-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #1c9d84;
  box-shadow: 0 0 0 4px rgba(28, 157, 132, 0.1);
}

.subhead {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.65;
  font-size: 15px;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}

.header-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 700;
}

.user-pill.muted {
  background: rgba(23, 38, 32, 0.05);
  color: var(--muted);
}

.nav-shell {
  margin-top: 16px;
  margin-bottom: 22px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(23, 38, 32, 0.08);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(4px);
}

.site-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0;
}

.site-nav a,
.ghost-btn,
.primary-btn,
.toolbar button,
button {
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 10px 15px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.18s ease;
}

.site-nav a {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
}

.site-nav a.active,
.site-nav a:hover {
  background: var(--brand);
  color: #fff;
}

.ghost-btn,
.toolbar button,
button {
  background: rgba(255, 255, 255, 0.96);
  color: var(--brand-strong);
  border-color: rgba(24, 88, 71, 0.12);
}

.primary-btn {
  background: var(--brand);
  color: #fff;
  border-color: rgba(17, 63, 51, 0.2);
}

.secondary-btn {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(24, 88, 71, 0.16);
  padding: 10px 15px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.18s ease;
  background: rgba(227, 236, 232, 0.92);
  color: var(--brand-strong);
}

.danger-btn {
  background: rgba(184, 74, 61, 0.1);
  color: var(--danger);
  border-color: rgba(184, 74, 61, 0.2);
}

.ghost-btn:hover,
.toolbar button:hover,
button:hover,
.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(24, 88, 71, 0.08);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button-row > * {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-shell {
  padding: 0 4px 24px;
}

.auth-shell {
  max-width: 760px;
  margin: 18px auto 0;
}

.flash-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.flash {
  border-radius: var(--radius-md);
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.flash-success {
  border-color: rgba(21, 111, 90, 0.28);
  background: rgba(21, 111, 90, 0.08);
}

.flash-error {
  border-color: rgba(184, 74, 61, 0.28);
  background: rgba(184, 74, 61, 0.08);
}

.notice-block {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(123, 101, 64, 0.18);
  background: rgba(238, 230, 216, 0.7);
}

.notice-block.subtle {
  background: rgba(249, 247, 242, 0.96);
}

.notice-block p {
  margin: 0;
  color: var(--muted);
}

.notice-block code {
  display: inline-block;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(19, 33, 26, 0.08);
  color: var(--text);
}

.card-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.two-col {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.repair-layout {
  align-items: start;
}

.card {
  background: var(--card);
  border: 1px solid rgba(19, 33, 26, 0.08);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
}

.auth-card {
  margin-top: 12px;
}

.summary-card {
  margin-bottom: 18px;
}

.stat-card {
  display: grid;
  gap: 8px;
  min-height: 124px;
  align-content: start;
  position: relative;
  overflow: hidden;
  border-top: 4px solid transparent;
}

.stat-card span {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.stat-card strong {
  font-size: 38px;
  line-height: 1;
}

.stat-card small {
  color: var(--muted);
  font-weight: 700;
}

.stat-card::after {
  display: none;
}

.stat-link-card {
  color: inherit;
  text-decoration: none;
  transition: 0.18s ease;
}

.stat-link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(24, 88, 71, 0.1);
}

.stat-teal {
  background: rgba(227, 236, 232, 0.82);
  border-top-color: var(--brand);
}

.stat-sand {
  background: rgba(238, 230, 216, 0.84);
  border-top-color: #9b7c54;
}

.stat-slate {
  background: rgba(231, 236, 239, 0.9);
  border-top-color: #6a7f89;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0 0 6px;
  font-size: 21px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.hint-list {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.page-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
  padding: 6px 4px 2px;
}

.page-intro h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 34px);
}

.page-intro p {
  margin: 10px 0 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.7;
}

.section-kicker {
  margin: 0 0 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--brand);
  font-weight: 700;
}

.intro-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.page-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(24, 88, 71, 0.1);
  box-shadow: var(--shadow-soft);
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 700;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
  gap: 18px;
  margin-bottom: 18px;
}

.hero-main {
  position: relative;
  overflow: hidden;
  padding: 28px 30px;
  border-radius: 28px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(24, 88, 71, 0.08);
  box-shadow: var(--shadow);
}

.hero-main::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  border-radius: 28px 0 0 28px;
  background: linear-gradient(180deg, var(--brand) 0%, #2a7660 100%);
}

.hero-kicker {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
}

.hero-panel h2 {
  margin: 0;
  max-width: 560px;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.15;
}

.hero-copy {
  margin: 16px 0 0;
  max-width: 620px;
  color: var(--muted);
  line-height: 1.72;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.soft-tag {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  border: 1px solid rgba(24, 88, 71, 0.08);
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 700;
}

.hero-side {
  display: grid;
  gap: 14px;
  align-content: start;
  background: rgba(255, 255, 255, 0.96);
}

.mini-metric {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(243, 246, 245, 0.96);
  border: 1px solid rgba(24, 88, 71, 0.06);
}

.mini-metric span {
  color: var(--muted);
  font-weight: 700;
}

.mini-metric strong {
  font-size: 28px;
}

.mini-note {
  padding: 6px 2px 0;
  color: var(--muted);
  line-height: 1.65;
}

.action-grid {
  align-items: stretch;
}

.feature-card {
  background: rgba(255, 255, 255, 0.96);
}

.feature-card-alt {
  background: rgba(250, 248, 244, 0.96);
}

.data-shell {
  background: rgba(255, 255, 255, 0.96);
}

.toolbar-surface {
  padding: 12px;
  border-radius: 18px;
  background: rgba(246, 248, 247, 0.96);
  border: 1px solid rgba(24, 88, 71, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.data-caption {
  margin: -4px 0 14px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.guide-list {
  display: grid;
  gap: 12px;
}

.guide-item {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(248, 250, 249, 0.96);
  border: 1px solid rgba(24, 88, 71, 0.08);
}

.guide-item strong {
  font-size: 15px;
}

.guide-item span {
  color: var(--muted);
  line-height: 1.6;
}

.top-gap {
  margin-top: 18px;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 20px;
  align-items: stretch;
}

.auth-layout-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 520px;
  margin: 0 auto;
}

.auth-brand-panel {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: 28px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(24, 88, 71, 0.08);
  box-shadow: var(--shadow);
}

.auth-brand-panel::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  border-radius: 28px 0 0 28px;
  background: linear-gradient(180deg, var(--brand) 0%, #2a7660 100%);
}

.auth-form-card {
  align-self: start;
}

.auth-form-card-standalone {
  width: 100%;
}

.auth-secondary-form {
  margin-top: 12px;
}

.auth-feature-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

label span {
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(251, 252, 251, 0.98);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 13px;
  font: inherit;
}

textarea {
  resize: vertical;
  min-height: 110px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(21, 111, 90, 0.1);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.toolbar.stacked {
  flex-direction: column;
  align-items: stretch;
}

.toolbar input,
.toolbar select {
  min-width: 180px;
  flex: 1;
}

.toolbar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.table-wrap {
  overflow: auto;
  border: 1px solid rgba(19, 33, 26, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid #edf1eb;
  text-align: left;
  vertical-align: top;
}

thead th {
  position: sticky;
  top: 0;
  background: #f4f7f5;
  color: var(--brand-strong);
  z-index: 1;
}

tbody tr:nth-child(even) {
  background: #fbfcfb;
}

tbody tr:hover {
  background: rgba(15, 106, 88, 0.05);
}

.table-link {
  color: var(--brand);
  font-weight: 700;
}

.table-actions {
  display: grid;
  gap: 8px;
  min-width: 92px;
}

.table-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(24, 88, 71, 0.14);
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: var(--brand-strong);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.96);
}

.table-wrap form {
  margin: 0;
}

.muted-text {
  color: var(--muted);
}

.material-editor-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.material-editor-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.material-add-btn {
  width: auto;
}

.material-editor {
  display: grid;
  gap: 12px;
}

.material-editor-list {
  display: grid;
  gap: 12px;
}

.material-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) minmax(220px, 1.4fr) minmax(120px, 0.8fr) minmax(180px, 1fr);
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(19, 33, 26, 0.08);
  background: rgba(249, 251, 249, 0.98);
}

.material-row-side {
  display: grid;
  gap: 8px;
  align-content: start;
}

.stack-list {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.stack-list strong {
  color: var(--text);
}

.compact-form {
  display: grid;
  gap: 12px;
  min-width: 220px;
}

.compact-form button {
  justify-self: start;
}

.empty-cell {
  text-align: center;
  color: var(--muted);
  padding: 26px 14px;
}

@media (max-width: 900px) {
  .app-frame {
    padding: 16px 12px 28px;
  }

  .site-header {
    flex-direction: column;
    padding: 22px 18px;
  }

  .header-actions,
  .header-meta {
    justify-content: flex-start;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .page-intro,
  .auth-layout {
    grid-template-columns: 1fr;
    display: grid;
  }

  .intro-badges {
    justify-content: flex-start;
  }

  .card {
    border-radius: 18px;
    padding: 16px;
  }

  .page-shell {
    padding: 0;
  }

  .button-row {
    flex-direction: column;
  }

  .material-row {
    grid-template-columns: 1fr;
  }
}
