:root {
  --bg-top: #f7efe2;
  --bg-bottom: #dce9e2;
  --paper: #fffdf7;
  --ink: #1e2a32;
  --muted: #44545f;
  --accent: #d96a2a;
  --accent-soft: #ffe4d2;
  --accent-alt: #1f7a6f;
  --line: rgba(30, 42, 50, 0.13);
  --glass: rgba(255, 252, 245, 0.68);
  --shadow: 0 20px 60px rgba(28, 40, 49, 0.16);
  --radius-lg: 26px;
  --radius-md: 16px;
  --font-ui: "Barlow", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-display: "Noto Serif SC", "STSong", serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: linear-gradient(160deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  min-height: 100vh;
  line-height: 1.75;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(217, 106, 42, 0.1), transparent 35%),
    radial-gradient(circle at 85% 18%, rgba(31, 122, 111, 0.13), transparent 34%),
    linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.16) 20%,
      rgba(255, 255, 255, 0) 20%,
      rgba(255, 255, 255, 0) 24%,
      rgba(255, 255, 255, 0.13) 24%,
      rgba(255, 255, 255, 0.13) 25%,
      rgba(255, 255, 255, 0) 25%
    );
  pointer-events: none;
  opacity: 0.72;
  z-index: -2;
}

.ambient {
  position: fixed;
  width: 46vmax;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(78px);
  opacity: 0.46;
  z-index: -1;
  transform: translate3d(0, 0, 0);
  transition: transform 0.2s ease-out;
}

.ambient-a {
  background: color-mix(in srgb, var(--accent) 74%, #fff 26%);
  top: -12vmax;
  left: -8vmax;
}

.ambient-b {
  background: color-mix(in srgb, var(--accent-alt) 70%, #fff 30%);
  right: -14vmax;
  bottom: -14vmax;
}

.container {
  width: min(1080px, calc(100% - 2.4rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 240, 230, 0.76);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.top-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.25rem 0.1rem;
  border-bottom: 1px solid transparent;
  font-weight: 600;
}

.top-nav a:hover,
.top-nav a.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.hero {
  padding: clamp(3rem, 9vw, 6.5rem) 0 2.2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-alt);
  background: rgba(31, 122, 111, 0.12);
  border: 1px solid rgba(31, 122, 111, 0.24);
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.28;
  margin: 0;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 4.1rem);
  margin-top: 1rem;
  max-width: 14ch;
}

.lead {
  max-width: 62ch;
  font-size: clamp(1.03rem, 2.2vw, 1.22rem);
  color: var(--muted);
  margin-top: 1rem;
}

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff7ee;
  background: linear-gradient(120deg, #cf5d1c, #df7a37 60%, #f1934b);
  box-shadow: 0 10px 22px rgba(191, 85, 25, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 14px 30px rgba(191, 85, 25, 0.35);
}

.btn-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(30, 42, 50, 0.24);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.glass-card,
.deploy-card,
.post,
.post-nav {
  background: var(--glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.glass-card {
  padding: 1.4rem 1.4rem 1.3rem;
}

.glass-card h2 {
  margin-top: 0.3rem;
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
}

.glass-card p {
  margin-top: 0.8rem;
  margin-bottom: 0;
  color: var(--muted);
}

.card-label {
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-alt);
  font-weight: 700;
}

.meta-row {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: #4e5d67;
  font-size: 0.9rem;
}

.meta-row span {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(30, 42, 50, 0.12);
  border-radius: 999px;
  padding: 0.18rem 0.65rem;
}

.text-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.clean-list {
  margin: 0.7rem 0 0;
  padding-left: 1rem;
}

.clean-list li {
  margin: 0.35rem 0;
}

.deploy-card {
  margin-top: 1rem;
  padding: 1.5rem;
}

.deploy-card h2 {
  margin-top: 0.4rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.deploy-card p {
  color: var(--muted);
}

pre {
  margin: 1rem 0 0;
  background: #1e2a32;
  color: #ecf2f6;
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  overflow: auto;
  border: 1px solid rgba(0, 0, 0, 0.22);
}

code {
  font-family: "Cascadia Code", "Consolas", monospace;
}

.site-footer {
  margin-top: 2.4rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.18);
}

.footer-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #4d5d67;
  font-size: 0.92rem;
}

.post {
  margin-top: 1.5rem;
  padding: clamp(1.2rem, 3vw, 2.1rem);
}

.post-meta {
  margin: 0;
  color: var(--accent-alt);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.post h1 {
  margin-top: 0.55rem;
  font-size: clamp(1.9rem, 5vw, 3.2rem);
}

.post-lead {
  margin-top: 1rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.3vw, 1.24rem);
}

.prose h2 {
  margin-top: 2rem;
  font-size: clamp(1.4rem, 3.2vw, 2rem);
}

.prose h3 {
  margin-top: 1.4rem;
  font-size: 1.18rem;
}

.prose p,
.prose ul,
.prose ol,
.prose table,
.prose pre {
  margin-top: 0.9rem;
  margin-bottom: 0;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li {
  margin: 0.4rem 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.prose th,
.prose td {
  border: 1px solid rgba(30, 42, 50, 0.12);
  padding: 0.68rem 0.7rem;
  text-align: left;
}

.prose th {
  background: rgba(217, 106, 42, 0.12);
}

.callout {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid;
}

.callout.warning {
  background: #fff3e7;
  border-color: #f0b686;
}

.callout.tip {
  background: #e8f6f2;
  border-color: #8ec8ba;
}

.post-nav {
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: 1.2rem;
  display: flex;
  justify-content: flex-start;
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 50;
  background: rgba(255, 255, 255, 0.35);
}

.reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, #cf5d1c, #1f7a6f);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
}

.is-ready [data-reveal] {
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.is-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0.7rem 0;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(1080px, calc(100% - 1.3rem));
  }

  .nav-wrap {
    min-height: 62px;
  }

  .top-nav {
    gap: 0.8rem;
    font-size: 0.95rem;
  }

  .hero {
    padding-top: 2.3rem;
  }

  .glass-card,
  .deploy-card,
  .post,
  .post-nav {
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ambient,
  .btn,
  [data-reveal],
  .is-ready [data-reveal] {
    transition: none !important;
  }
}