﻿:root {
  color-scheme: light;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-soft: #fafbfc;
  --text: #24344d;
  --muted: #5f6f83;
  --subtle: #8a96a6;
  --line: #edf0f4;
  --line-strong: #dce2ea;
  --accent: #5d8bdc;
  --accent-strong: #4f7fce;
  --accent-soft: #edf3ff;
  --green: #6f9a72;
  --orange: #c58a49;
  --red: #c96565;
  --blue: #5d8bdc;
  --shadow: 0 16px 38px rgba(39, 55, 77, 0.08);
  --shadow-soft: 0 10px 28px rgba(39, 55, 77, 0.06);
  --radius: 12px;
  --header-h: 64px;
  --max: 1040px;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", system-ui, sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #14171d;
  --surface: #1e232b;
  --surface-soft: #232933;
  --text: #eef3f8;
  --muted: #b5c0ce;
  --subtle: #8693a5;
  --line: #2e3642;
  --line-strong: #3a4452;
  --accent: #77a3f3;
  --accent-strong: #8fb5ff;
  --accent-soft: rgba(119, 163, 243, 0.14);
  --green: #9fc89b;
  --orange: #e1ad6e;
  --red: #e38c8c;
  --blue: #8fb5ff;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 max(28px, calc((100vw - var(--max)) / 2));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.brand-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.brand-copy {
  display: grid;
  gap: 0;
}

.brand-copy strong {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
}

.brand-copy small {
  color: var(--subtle);
  font-size: 12px;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
}

.top-nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.top-nav a:hover,
.top-nav a.active {
  background: var(--surface);
  color: var(--accent-strong);
  box-shadow: var(--shadow-soft);
}

.header-actions,
.auth-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn,
.plain-btn,
.primary-btn,
.ghost-btn,
.danger-btn {
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.icon-btn:hover,
.plain-btn:hover,
.ghost-btn:hover,
.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.icon-btn {
  width: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--muted);
}

.plain-btn,
.primary-btn,
.ghost-btn,
.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 15px;
}

.primary-btn {
  background: var(--accent);
  color: #ffffff;
  font-weight: 500;
}

.primary-btn:hover {
  background: var(--accent-strong);
}

.ghost-btn,
.plain-btn {
  background: var(--surface);
  color: var(--muted);
}

.danger-btn {
  background: var(--surface);
  color: var(--red);
}

.sun,
.moon {
  width: 17px;
  height: 17px;
  display: inline-block;
  border-radius: 50%;
}

.sun {
  border: 2px solid currentColor;
  box-shadow: 0 -8px 0 -6px currentColor, 0 8px 0 -6px currentColor, 8px 0 0 -6px currentColor, -8px 0 0 -6px currentColor;
}

.moon {
  background: currentColor;
  box-shadow: inset -6px 0 0 var(--surface);
}

.app-shell {
  max-width: var(--max);
  flex: 1;
  min-height: 0;
  margin: 0 auto;
  padding: 28px 28px 76px;
  outline: 0;
}

.site-footer {
  margin-top: auto;
  padding: 12px 28px 24px;
  color: var(--subtle);
  font-size: 13px;
  text-align: center;
}


.page-head {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin: 10px auto 34px;
  text-align: center;
}

.page-head > div {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 500;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 34px;
  font-weight: 300;
  line-height: 1.28;
}

h2 {
  margin-bottom: 18px;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.36;
}

h3 {
  margin-bottom: 10px;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.42;
}

.lead {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
  font-size: 15px;
}

.hero-panel {
  display: block;
  margin: 0 auto 50px;
}

.intro-block {
  position: relative;
  max-width: 100%;
  min-height: 290px;
  margin: 0 auto 34px;
  padding: 50px 28px 42px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #121820;
  box-shadow: none;
  text-align: center;
  color: #f4f7ff;
}

.intro-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/hero-bg.png") center / cover no-repeat;
  opacity: 0.78;
}

.intro-block::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 16, 0.56);
}

.intro-block > * {
  position: relative;
  z-index: 1;
}

.intro-block .eyebrow {
  color: rgba(218, 229, 255, 0.78);
}

.intro-block h1 {
  margin-top: 18px;
  color: #f4f7ff;
  font-size: 42px;
  font-weight: 300;
}

.intro-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 34px;
}

.metric {
  min-height: 0;
  padding: 9px 20px;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 26, 38, 0.74);
  color: rgba(236, 243, 255, 0.88);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.metric strong {
  display: inline;
  margin-right: 7px;
  color: #7fa7ff;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
}

.metric span {
  color: rgba(236, 243, 255, 0.88);
  font-size: 13px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feature-card,
.tool-card,
.article-card,
.recent-card,
.empty-state,
.detail-panel,
.submission-strip,
.info-box,
.pending-item,
.modal,
.preview-frame {
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.feature-card {
  min-height: 326px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 34px 30px 32px;
  text-align: center;
  transform: translateY(0);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature-card:hover,
.article-card:hover,
.tool-card:hover,
.recent-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon,
.mini-icon {
  display: grid;
  place-items: center;
  color: var(--accent);
  background: transparent;
  border: 0;
}

.feature-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
}

.mini-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
}

.feature-icon svg {
  width: 44px;
  height: 44px;
  stroke-width: 1.5;
}

.mini-icon svg,
.btn-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.feature-card p,
.article-card p,
.tool-card p,
.recent-card p {
  color: var(--muted);
}

.feature-card p {
  min-height: 78px;
  margin-bottom: 18px;
  font-size: 14px;
}

.card-foot,
.detail-actions,
.list-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.arrow-link {
  min-height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 7px;
  background: var(--accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
}

.section-band {
  margin-top: 44px;
}

.section-title-row {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 22px;
  text-align: center;
}

.recent-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  max-width: 940px;
  margin: 0 auto;
}

.recent-list,
.article-list {
  display: grid;
  gap: 14px;
}

.recent-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  padding: 20px 22px;
}

.recent-card h3 {
  margin-bottom: 4px;
}

.recent-card p {
  margin-bottom: 5px;
}

.recent-card time,
.article-meta,
.tool-meta {
  color: var(--subtle);
  font-size: 12px;
}

.article-list {
  max-width: 920px;
  margin: 0 auto;
}

.article-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 22px;
  align-items: center;
  min-height: 154px;
  padding: 24px 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.article-visual {
  width: 96px;
  height: 96px;
  min-height: 0;
  justify-self: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(93, 139, 220, 0.12), rgba(93, 139, 220, 0.02)), var(--accent-soft);
  position: relative;
  overflow: hidden;
}

.article-visual::before,
.article-visual::after {
  content: "";
  position: absolute;
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 45%, transparent);
}

.article-visual::before {
  left: 26px;
  right: 26px;
  top: 32px;
  box-shadow: 0 15px 0 color-mix(in srgb, var(--accent) 32%, transparent), 0 30px 0 color-mix(in srgb, var(--accent) 20%, transparent);
}

.article-visual::after {
  left: 34px;
  right: 34px;
  top: 22px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 10px 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--muted);
  font-size: 12px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}

.tool-card {
  overflow: hidden;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tool-cover {
  aspect-ratio: 16 / 9;
  display: block;
  background: var(--surface-soft);
  overflow: hidden;
}

.tool-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.tool-body {
  padding: 24px 26px 28px;
}

.tool-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 12px;
}

.points-pill {
  color: var(--accent);
  font-weight: 600;
}

.empty-state {
  min-height: 300px;
  display: grid;
  place-items: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 46px 34px;
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 10px;
  font-size: 30px;
  font-weight: 300;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
  max-width: 980px;
  margin: 0 auto;
}

.detail-panel {
  padding: 34px;
}

.detail-panel h2 {
  margin-top: 30px;
}

.detail-panel h2:first-child {
  margin-top: 0;
}

.detail-aside {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: grid;
  gap: 14px;
}

.info-box {
  padding: 20px;
}

.info-box dl {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px 12px;
  margin: 0;
}

.info-box dt {
  color: var(--subtle);
}

.info-box dd {
  margin: 0;
  word-break: break-word;
}

.module-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.module-list li {
  padding: 13px 14px;
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--muted);
}

.preview-frame {
  overflow: hidden;
  background: var(--surface-soft);
  box-shadow: none;
}

.preview-frame img {
  width: 100%;
  display: block;
}

.submission-strip {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  max-width: 920px;
  margin: 26px auto;
  padding: 22px 24px;
}

.submission-strip p {
  margin-bottom: 0;
  color: var(--muted);
}

.pending-list {
  display: grid;
  gap: 10px;
  max-width: 920px;
  margin: 12px auto 0;
}

.pending-item {
  padding: 16px 18px;
  background: var(--surface);
}

.pending-item small {
  color: var(--subtle);
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(22, 28, 36, 0.44);
}

.modal-root.open {
  display: flex;
}

.modal {
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 12px;
}

.modal-body {
  padding: 8px 22px 24px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--muted);
  font-size: 13px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--text);
  padding: 10px 12px;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.form-note {
  color: var(--muted);
  font-size: 13px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 110;
  max-width: min(360px, calc(100vw - 40px));
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
}

.user-chip strong {
  color: var(--text);
  font-weight: 500;
}

.source-path {
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}

@media (max-width: 980px) {
  .site-header {
    height: auto;
    min-height: var(--header-h);
    flex-wrap: wrap;
    padding: 12px 18px;
  }

  .top-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .header-actions {
    margin-left: auto;
  }

  .feature-grid,
  .tool-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-aside {
    position: static;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 14px;
  }

  .app-shell {
    padding: 22px 14px 56px;
  }

  .brand {
    min-width: 0;
  }

  .brand-copy small {
    display: none;
  }

  .auth-actions .plain-btn,
  .auth-actions .primary-btn {
    padding: 0 10px;
  }

  h1,
  .intro-block h1 {
    font-size: 29px;
  }

  .feature-grid {
    gap: 16px;
  }

  .feature-card {
    min-height: 270px;
    padding: 28px 24px;
  }

  .recent-card,
  .article-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .recent-card .mini-icon,
  .article-visual {
    justify-self: center;
  }

  .submission-strip,
  .module-list {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .modal-root {
    align-items: end;
    padding: 10px;
  }
}








