:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --line: #dbe2ee;
  --text: #17202e;
  --muted: #667085;
  --brand: #159a83;
  --brand-dark: #0d6f62;
  --accent: #e98b10;
  --danger: #d83a2e;
  --ok: #138a58;
  --shadow: 0 8px 24px rgba(18, 38, 63, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.65;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
  padding: 0 36px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 6px;
  color: #344054;
}

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

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  padding: 54px 0 38px;
  align-items: stretch;
}

.hero-copy {
  padding: 46px;
  min-height: 360px;
  background:
    linear-gradient(rgba(11, 30, 48, 0.72), rgba(11, 30, 48, 0.62)),
    url("/assets/hero-workspace.svg") center/cover no-repeat;
  color: #fff;
  border-radius: 8px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #9ae6d4;
  font-weight: 700;
}

.hero h1,
.page-head h1,
.article-detail h1 {
  margin: 0;
  line-height: 1.2;
  font-size: 38px;
}

.hero p {
  max-width: 680px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.btn.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.hero-panel,
.side-panel,
.price-card,
.uc-card,
.notice-box,
.contact-band,
.article-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.hero-panel div,
.stats-grid div {
  padding: 18px;
  border-radius: 6px;
  background: #f8fafc;
}

.hero-panel strong,
.stats-grid strong {
  display: block;
  font-size: 30px;
  color: var(--accent);
}

.hero-panel span,
.stats-grid span,
.meta-row {
  color: var(--muted);
  font-size: 14px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  padding-bottom: 50px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.section-title h2,
.side-panel h2,
.price-card h2,
.uc-card h1 {
  margin: 0;
  font-size: 22px;
}

.article-list {
  display: grid;
  gap: 16px;
}

.article-list.wide {
  padding: 28px 0 50px;
}

.article-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
}

.article-card img,
.article-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
  background: #edf2f7;
}

.article-card h3 {
  margin: 6px 0;
  font-size: 20px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #edf7f5;
  color: var(--brand-dark);
  font-size: 12px;
}

.side-panel,
.page-head,
.article-detail,
.submit-form,
.contact-band {
  padding: 26px;
}

.check-list {
  padding-left: 20px;
  color: #3d4756;
}

.page-head {
  margin: 34px 0 0;
  background: #fff;
  border-bottom: 3px solid var(--brand);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 28px 0;
}

.price-card {
  padding: 22px;
}

.price-card strong {
  color: var(--accent);
  font-size: 28px;
}

.contact-band {
  display: flex;
  gap: 24px;
  margin-bottom: 50px;
}

.article-detail {
  max-width: 820px;
  margin: 34px auto 60px;
  background: #fff;
}

.article-detail .lead {
  color: #344054;
  font-size: 18px;
}

.source-box {
  margin: 26px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.source-box p {
  margin-top: 6px;
  color: var(--muted);
}

.submit-form {
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin: 28px 0 60px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.submit-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.upload-hint {
  color: var(--muted);
  font-size: 14px;
}

.image-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.image-preview figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.image-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.image-preview figcaption {
  padding: 8px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

input,
textarea,
select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #cdd5df;
  border-radius: 6px;
  font: inherit;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.footer-row a:hover {
  color: var(--brand);
}

.search-form {
  display: flex;
  gap: 12px;
  max-width: 640px;
}

.search-form input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.legal-content {
  max-width: 820px;
  margin: 0 auto 48px;
  padding: 0 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.legal-content h2 {
  margin-top: 28px;
}

.legal-content ul {
  padding-left: 20px;
}

.report-link {
  margin-top: 24px;
  color: var(--muted);
}

.ucenter-body {
  background: #f4f6f8;
}

.uc-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  height: 64px;
  padding: 0 28px;
  background: #353b48;
  color: #fff;
}

.uc-topbar a,
.uc-topbar button {
  color: #fff;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.uc-spacer {
  flex: 1;
}

.avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: #353b48;
  font-weight: 800;
}

.uc-side {
  position: fixed;
  top: 64px;
  bottom: 0;
  left: 0;
  width: 220px;
  padding: 20px 14px;
  background: #fff;
  border-right: 1px solid var(--line);
  overflow: auto;
}

.uc-side a,
.uc-side span {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
}

.uc-side span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.uc-side a:hover {
  background: #edf7f5;
  color: var(--brand-dark);
}

.uc-main {
  margin-left: 220px;
  padding: 84px 24px 40px;
}

.uc-breadcrumb {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
}

.uc-card {
  padding: 24px;
  margin-bottom: 20px;
}

.profile-list {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px 20px;
  margin: 20px 0;
}

.profile-list dt {
  color: var(--muted);
}

.uc-form label {
  display: block;
  margin-bottom: 14px;
}

.uc-form input,
.uc-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.notice-box {
  padding: 22px 28px;
  color: #00a65a;
}

.notice-box .warn {
  color: var(--danger);
  background: #fff3a3;
  display: inline;
  line-height: 2;
}

.form-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin: 22px 0;
}

.form-row label {
  font-size: 20px;
}

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

.choice {
  min-width: 116px;
  min-height: 44px;
  border: 1px solid #cfd6df;
  border-radius: 6px;
  background: #fff;
  font: inherit;
  cursor: pointer;
}

.choice.active {
  border-color: var(--accent);
  box-shadow: inset -12px -12px 0 -6px var(--accent);
}

.point-text {
  color: var(--accent);
  font-size: 22px;
}

.point-text small {
  color: var(--danger);
}

.table-wrap {
  overflow: auto;
}

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

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  background: #f8fafc;
  color: #475467;
}

.ok {
  color: var(--ok);
}

.danger {
  color: var(--danger);
}

.paypage-body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  background: #e9edf4;
}

.scan-shell {
  width: min(420px, calc(100% - 32px));
  padding: 28px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.scan-shell h1 {
  margin: 0 0 10px;
}

.amount {
  color: var(--danger);
  font-size: 34px;
  font-weight: 800;
}

.qr-img {
  width: 260px;
  height: 260px;
  margin: 18px auto;
  display: block;
}

.pay-detail {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px;
  padding: 14px;
  background: #f8fafc;
  text-align: left;
}

.pay-detail dt {
  color: var(--muted);
}

.pay-detail dd {
  margin: 0;
  word-break: break-all;
}

.paytip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: var(--ok);
}

.paytip p {
  margin: 0;
}

.wechat-mark {
  font-size: 30px;
}

.local-only {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 28px 0 8px;
}

.page-info {
  color: var(--muted);
  font-size: 14px;
}

.btn.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.warn-box {
  border-left: 4px solid var(--accent);
  margin-bottom: 18px;
}

.login-form {
  max-width: 420px;
}

.admin-head p code,
.page-head code {
  background: #eef2f8;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

.admin-card .admin-actions form {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  align-items: center;
}

.admin-card .admin-actions input[type="text"] {
  min-width: 120px;
  flex: 1;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
}

.site-nav a[href="/api/logout"],
.site-nav a[href="/login"] {
  color: var(--brand-dark);
  font-weight: 600;
}

@media (max-width: 820px) {
  .site-header,
  .hero,
  .layout,
  .pricing-grid,
  .article-card,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 20px;
  }

  .hero-copy {
    padding: 30px;
  }

  .uc-side {
    position: static;
    width: auto;
    margin-top: 64px;
  }

  .uc-main {
    margin-left: 0;
    padding-top: 20px;
  }

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