:root {
  --bg: #0b1220;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-2: rgba(255, 255, 255, 0.09);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --brand: #7cdbff;
  --brand-2: #9b8cff;
  --border: rgba(255, 255, 255, 0.14);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --container: 1080px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f8fb;
    --panel: rgba(0, 0, 0, 0.04);
    --panel-2: rgba(0, 0, 0, 0.06);
    --text: rgba(0, 0, 0, 0.88);
    --muted: rgba(0, 0, 0, 0.62);
    --border: rgba(0, 0, 0, 0.12);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Arial, "Noto Sans", sans-serif;
  background: radial-gradient(1200px 700px at 20% -10%, rgba(124, 219, 255, 0.18), transparent),
    radial-gradient(900px 600px at 90% 10%, rgba(155, 140, 255, 0.16), transparent),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  border-radius: 10px;
  z-index: 999;
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.18);
  border-bottom: 1px solid var(--border);
}

@media (prefers-color-scheme: light) {
  .site-header {
    background: rgba(255, 255, 255, 0.72);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand-title {
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 18px;
}

.brand-subtitle {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav-link {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--muted);
}

.nav-link:hover {
  text-decoration: none;
  color: var(--text);
  border-color: var(--border);
  background: var(--panel);
}

.page {
  padding-bottom: 40px;
}

.hero {
  padding: 46px 0 26px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 22px;
  align-items: start;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}

.hero-title {
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 10px;
  line-height: 1.15;
}

.hero-lead {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
}

.btn:hover {
  background: var(--panel-2);
  text-decoration: none;
}

.btn-primary {
  border-color: rgba(124, 219, 255, 0.55);
  background: linear-gradient(135deg, rgba(124, 219, 255, 0.22), rgba(155, 140, 255, 0.18));
}

.btn-ghost {
  background: transparent;
}

.hero-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 16px 14px;
}

.hero-card-title {
  font-weight: 800;
  margin-bottom: 10px;
}

.hero-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.section {
  padding: 36px 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 18px;
}

@media (max-width: 760px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

.section-title {
  margin: 0;
  font-size: 22px;
}

.section-desc {
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 980px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, background 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  background: var(--panel-2);
}

.card-title {
  margin: 2px 0 10px;
  font-size: 16px;
  line-height: 1.35;
}

.meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.card-text {
  margin: 0 0 12px;
  color: var(--muted);
}

.card-link {
  display: inline-block;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

.about {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 18px;
  align-items: start;
}

@media (max-width: 900px) {
  .about {
    grid-template-columns: 1fr;
  }
}

.about-stats {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 640px) {
  .about-stats {
    grid-template-columns: 1fr;
  }
}

.stat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}

.stat-num {
  font-weight: 900;
  letter-spacing: 0.2px;
}

.stat-label {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.about-right {
  display: grid;
  gap: 14px;
}

.side-block {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.side-title {
  font-weight: 900;
  margin-bottom: 8px;
}

.side-text {
  margin: 0 0 12px;
  color: var(--muted);
}

.side-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.archive-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.archive-year {
  font-weight: 900;
  font-size: 14px;
  color: var(--brand);
}

.archive-month {
  font-weight: 900;
  font-size: 20px;
  margin-top: 6px;
}

.archive-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.archive-list li {
  margin: 6px 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 34px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-title {
  font-weight: 900;
}

.footer-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
}

.dot {
  opacity: 0.7;
}

.footer-copy {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.auth-page {
  padding-top: 34px;
  min-height: calc(100vh - 110px);
  display: flex;
  align-items: center;
}

.auth-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 18px;
}

.auth-title {
  margin: 0 0 6px;
  font-size: 26px;
  letter-spacing: 0.2px;
}

.auth-subtitle {
  margin: 0 0 18px;
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 8px;
}

.field-label {
  color: var(--muted);
  font-size: 13px;
}

.auth-input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.08);
  color: var(--text);
  outline: none;
}

.auth-input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

@media (prefers-color-scheme: light) {
  .auth-input {
    background: rgba(255, 255, 255, 0.6);
  }

  .auth-input::placeholder {
    color: rgba(0, 0, 0, 0.45);
  }
}

.auth-input:focus {
  border-color: rgba(124, 219, 255, 0.65);
  box-shadow: 0 0 0 4px rgba(124, 219, 255, 0.14);
}

.auth-message {
  min-height: 20px;
  color: #ff6b6b;
  font-weight: 800;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 107, 107, 0.35);
  background: rgba(255, 107, 107, 0.08);
}

.auth-btn {
  width: 100%;
}

.auth-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.auth-link-btn {
  border-color: var(--border);
}

.auth-back {
  color: var(--brand);
  font-weight: 800;
  padding: 10px 0;
}

.auth-back:hover {
  text-decoration: underline;
}

