/* Apple-like: system feel, large type, calm contrast, airy layout */

:root {
  --bg: #f5f5f7;
  --bg-elev: #ffffff;
  --text: #1d1d1f;
  --text-dim: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --accent: #00b4ff;
  --purple: #5856d6;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-elev: #1d1d1f;
    --text: #f5f5f7;
    --text-dim: #a1a1a6;
    --line: rgba(255, 255, 255, 0.12);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  }
}

/* 科技感背景效果 */
body.page {
  background-image:
    radial-gradient(circle at 10% 20%, rgba(0, 113, 227, 0.05) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(88, 86, 214, 0.05) 0%, transparent 20%),
    linear-gradient(to bottom, transparent 0%, rgba(0, 179, 255, 0.02) 100%);
  background-attachment: fixed;
}

/* 科技感装饰元素 */
.decor-tech {
  position: fixed;
  pointer-events: none;
  z-index: -1;
}

.decor-tech--top-right {
  top: 20%;
  right: 10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.decor-tech--bottom-left {
  bottom: 20%;
  left: 10%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(88, 86, 214, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------- Nav ---------- */
.nav-root {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--line);
  transition: all 0.3s ease;
}

.nav-root.scrolled {
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.nav-shell {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 22px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-logo {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  font-size: 1.1rem;
  margin-right: auto;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

.nav-logo::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #0071e3, #00b4ff);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  text-decoration: none;
  color: #0071e3;
}

.nav-logo:hover::after {
  transform: scaleX(1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-dim);
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #0071e3, #00b4ff);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-link:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link.is-active {
  color: #0071e3;
}

.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 16px;
}

.nav-user {
  font-size: 0.8rem;
  color: var(--text-dim);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.nav-user:hover {
  color: var(--text);
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-pill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.nav-pill:hover {
  text-decoration: none;
  background: color-mix(in srgb, var(--text) 8%, transparent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-pill:hover::before {
  left: 100%;
}

.nav-pill--blue {
  background: var(--blue);
  border-color: transparent;
  color: #fff;
}

.nav-pill--blue:hover {
  background: var(--blue-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 113, 227, 0.4);
}

.nav-pill--ghost {
  color: var(--text-dim);
}

.nav-logout-form {
  margin: 0;
}

.nav-burger {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-elev) 80%, transparent);
  margin-left: auto;
  position: relative;
}

.nav-burger::before,
.nav-burger::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  height: 1px;
  background: var(--text);
  opacity: 0.7;
}

.nav-burger::before {
  top: 13px;
}

.nav-burger::after {
  bottom: 13px;
}

@media (max-width: 768px) {

  /* 导航栏响应式 */
  .nav-burger {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 56px 0 auto 0;
    background: color-mix(in srgb, var(--bg) 95%, transparent);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 20px 22px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-actions {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }

  /* 英雄区域响应式 */
  .hero--apple {
    padding: 60px 22px 48px;
  }

  .hero__title {
    font-size: 2.2rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  /* 文章卡片响应式 */
  .post-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tile {
    margin: 0 auto;
    max-width: 400px;
  }

  /* 科技感装饰元素响应式 */
  .decor-tech--top-right {
    top: 10%;
    right: 5%;
    width: 120px;
    height: 120px;
  }

  .decor-tech--bottom-left {
    bottom: 10%;
    left: 5%;
    width: 100px;
    height: 100px;
  }

  /* 内容区域响应式 */
  .content {
    padding: 0 16px;
  }

  .section {
    padding: 40px 0 60px;
  }

  /* 标签栏响应式 */
  .tag-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .tag-bar__list {
    width: 100%;
  }

  .chip {
    flex: 1;
    text-align: center;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {

  /* 平板设备响应式 */
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__title {
    font-size: 3rem;
  }

  .decor-tech--top-right {
    width: 180px;
    height: 180px;
  }

  .decor-tech--bottom-left {
    width: 130px;
    height: 130px;
  }
}

/* ---------- Hero ---------- */
.hero--apple {
  position: relative;
  padding: 80px 22px 64px;
  text-align: center;
  color: #f5f5f7;
  background: radial-gradient(120% 80% at 50% -10%,
      rgba(90, 120, 255, 0.4),
      transparent 55%),
    radial-gradient(80% 60% at 80% 100%,
      rgba(255, 120, 80, 0.25),
      transparent 50%),
    linear-gradient(135deg, #000000 0%, #1a1a2e 50%, #16213e 100%);
  overflow: hidden;
  animation: heroBackground 15s ease-in-out infinite;
}

@keyframes heroBackground {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px,
      transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(48px, 48px);
  }
}

.hero__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 120, 255, 0.2) 0%, transparent 70%);
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.8;
  }
}

.hero__inner {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.hero__eyebrow {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
}

.hero__title {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.hero__subtitle {
  margin: 18px auto 0;
  max-width: 520px;
  font-size: 1.15rem;
  line-height: 1.5;
  color: rgba(245, 245, 247, 0.78);
  font-weight: 400;
}

/* ---------- Layout ---------- */
.section {
  padding: 56px 0 80px;
}

.section--tight {
  padding-top: 36px;
}

.content {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 22px;
}

.content--narrow {
  max-width: 720px;
}

/* ---------- Search & tags ---------- */
.search-bar {
  margin-bottom: 22px;
}

.search-input {
  width: 100%;
  max-width: 420px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  box-shadow: var(--shadow);
}

.search-input:focus {
  border-color: color-mix(in srgb, var(--blue) 45%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 22%, transparent);
}

.tag-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  margin-bottom: 28px;
}

.tag-bar__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.tag-bar__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--text-dim);
  text-decoration: none;
}

.chip:hover {
  text-decoration: none;
  color: var(--text);
  border-color: color-mix(in srgb, var(--text) 18%, var(--line));
}

.chip.is-on {
  color: var(--text);
  border-color: color-mix(in srgb, var(--blue) 55%, var(--line));
  background: color-mix(in srgb, var(--blue) 10%, var(--bg-elev));
}

/* ---------- Tiles ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.tile {
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0071e3, #00b4ff, #5856d6);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 113, 227, 0.3);
}

.tile:hover::before {
  transform: scaleX(1);
}

.tile__link {
  display: block;
  padding: 24px 24px 28px;
  color: inherit;
  text-decoration: none;
  height: 100%;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.tile__link:hover {
  text-decoration: none;
}

.tile__time {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.tile:hover .tile__time {
  opacity: 1;
  color: #0071e3;
}

.tile__title {
  margin: 0 0 12px;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.tile:hover .tile__title {
  color: #0071e3;
}

.tile__excerpt {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.5;
  transition: color 0.3s ease;
}

.tile:hover .tile__excerpt {
  color: var(--text);
}

.tile__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  color: var(--text-dim);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.tile:hover .mini-tag {
  background: color-mix(in srgb, #0071e3 12%, transparent);
  color: #0071e3;
  border-color: rgba(0, 113, 227, 0.2);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-dim);
  padding: 48px 0;
}

/* ---------- Article ---------- */
.article {
  padding: 28px 0 80px;
}

.article__wrap {
  padding-top: 8px;
}

.back {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 22px;
}

.back:hover {
  color: var(--text);
}

.article__head {
  margin-bottom: 36px;
}

.article__title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* Prose */
.prose {
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--text);
}

.prose h2 {
  margin: 2.2rem 0 0.8rem;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.prose h3 {
  margin: 1.6rem 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.prose p {
  margin: 0 0 1.1rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.1rem;
  padding-left: 1.3rem;
}

.prose blockquote {
  margin: 1.4rem 0;
  padding: 14px 18px;
  border-left: 3px solid color-mix(in srgb, var(--blue) 70%, var(--line));
  background: color-mix(in srgb, var(--text) 4%, transparent);
  color: var(--text-dim);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.prose code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 0.15em 0.4em;
  border-radius: 6px;
  background: color-mix(in srgb, var(--text) 8%, transparent);
}

.prose pre {
  margin: 1.4rem 0;
  padding: 16px 18px;
  border-radius: 14px;
  overflow-x: auto;
  background: #0d1117;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.55;
  color: #e6edf3;
}

.prose pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1.4rem 0;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 8px 10px;
}

.prose th {
  background: color-mix(in srgb, var(--text) 5%, transparent);
}

/* ---------- Comments ---------- */
.comments {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.comments__title {
  margin: 0 0 18px;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.comments__hint {
  color: var(--text-dim);
  margin-bottom: 18px;
}

.comment-form {
  margin-bottom: 28px;
}

.comment-input {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  padding: 14px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg-elev);
  color: var(--text);
  resize: vertical;
  min-height: 110px;
}

.comment-input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--blue) 45%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent);
}

.comment-form__row {
  margin-top: 12px;
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comment {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-elev) 92%, var(--bg));
}

.comment__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.comment__name {
  font-weight: 600;
  font-size: 0.9rem;
}

.comment__time {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.comment__body {
  font-size: 0.95rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.comment__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.comment-empty {
  color: var(--text-dim);
  padding: 12px 0;
}

/* 删除按钮样式 */
.btn--danger {
  background: #ff3b30;
  border-color: transparent;
  color: #fff;
}

.btn--danger:hover {
  background: #ff453a;
  color: #fff;
}

/* ---------- Auth ---------- */
.auth-panel {
  min-height: calc(100vh - 52px - 120px);
  display: grid;
  place-items: center;
  padding: 48px 22px;
}

.auth-card {
  width: min(400px, 100%);
  padding: 36px 32px 40px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.auth-card__title {
  margin: 0 0 22px;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
}

.auth-error {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 59, 48, 0.1);
  color: #ff453a;
  font-size: 0.88rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field--row {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.field__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
}

.field__label.inline {
  color: var(--text);
}

.field__input,
.field__textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}

.field__textarea {
  resize: vertical;
  line-height: 1.5;
}

.field__textarea--sm {
  min-height: 88px;
}

.auth-submit {
  margin-top: 6px;
  padding: 12px 16px;
  border-radius: 999px;
  border: none;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
}

.auth-submit:hover {
  background: var(--blue-hover);
}

.auth-alt {
  margin: 18px 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* ---------- Admin ---------- */
.admin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.admin-h1 {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.admin-head__actions {
  display: flex;
  gap: 10px;
}

.admin-table-wrap {
  overflow: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-elev);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.admin-table th,
.admin-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.admin-table th {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.muted {
  color: var(--text-dim);
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.inline-form {
  display: inline;
  margin: 0;
}

.link-danger {
  border: none;
  background: none;
  padding: 0;
  color: #ff453a;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  text-decoration: underline;
}

.editor-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 900px;
}

.editor-actions {
  margin-top: 8px;
}

.editor-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

.btn:hover {
  background: color-mix(in srgb, var(--text) 6%, transparent);
  text-decoration: none;
}

.btn--sm {
  padding: 6px 12px;
  font-size: 0.78rem;
}

.btn--primary {
  background: var(--blue);
  border-color: transparent;
  color: #fff;
}

.btn--primary:hover {
  background: var(--blue-hover);
  color: #fff;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---------- Simple / error ---------- */
.simple-main {
  max-width: 560px;
  margin: 0 auto;
  padding: 80px 22px;
  text-align: center;
}

.simple-title {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.simple-text {
  color: var(--text-dim);
  line-height: 1.6;
}

.simple-link {
  font-weight: 600;
}

/* ---------- About ---------- */
.about-block {
  padding: 48px 0 80px;
}

.about-title {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}

.about-lead {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--text-dim);
  margin: 0 0 1rem;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 36px 22px 48px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-inner {
  max-width: 720px;
  margin: 0 auto;
}

.footer-line {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-fine {
  margin: 10px 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text-dim) 80%, transparent);
}