/* ==========================================================================
   FrostEternity — design system v1
   Palette / type / layout / components
   ========================================================================== */

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/poppins-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/poppins-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/poppins-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

:root {
  --ink: #1c244b;
  --ink-2: #324a6d;
  --muted: #6b7a99;
  --accent: #467ff7;
  --accent-ink: #2f62d4;
  --accent-soft: #eef3ff;
  --accent-2: #6ab8d9;
  --bg: #ffffff;
  --surface: #f6f8fc;
  --surface-2: #eef2f9;
  --line: #e6eaf2;
  --line-strong: #d7deeb;
  --radius: 20px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --shadow-sm: 0 4px 16px rgba(28, 36, 75, 0.06);
  --shadow: 0 18px 50px -20px rgba(28, 36, 75, 0.18);
  --shadow-lg: 0 36px 80px -30px rgba(28, 36, 75, 0.28);
  --wrap: 1180px;
  --header-h: 76px;
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll {
  overflow: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
h1,
h2,
h3,
h4,
p,
figure,
ul,
ol {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
::selection {
  background: rgba(70, 127, 247, 0.18);
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 999;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 16px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 86px 0;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 38px;
}
.section-head h2 {
  margin-top: 10px;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-weight: 600;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
}
.lead {
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink-2);
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.text-accent {
  color: var(--accent);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 12px 40px -30px rgba(28, 36, 75, 0.5);
  background: rgba(255, 255, 255, 0.92);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
  font-size: 16.5px;
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}
.brand span small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  line-height: 1.1;
  margin-top: 1px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
}
.nav a {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--ink-2);
  transition: background 0.2s, color 0.2s;
}
.nav a:hover {
  background: var(--surface);
  color: var(--ink);
}
.nav a.is-active {
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 500;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (min-width: 901px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }
  .header-inner .brand {
    justify-self: start;
  }
  .header-inner .nav {
    justify-self: center;
    margin: 0;
  }
  .header-inner .header-actions {
    justify-self: end;
  }
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  place-items: center;
  color: var(--ink);
}
.nav-toggle span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s, top 0.2s;
}
.nav-toggle span::before {
  top: -5px;
}
.nav-toggle span::after {
  top: 5px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s,
    border-color 0.2s, color 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 28px -12px rgba(70, 127, 247, 0.75);
}
.btn-primary:hover {
  background: var(--accent-ink);
  box-shadow: 0 18px 36px -14px rgba(70, 127, 247, 0.8);
}
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover {
  border-color: #bfc9dd;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-soft {
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.btn-soft:hover {
  background: #e2ebff;
}
.btn-white {
  background: #fff;
  color: var(--ink);
}
.btn-sm {
  padding: 8px 15px;
  font-size: 13px;
}
.btn-lg {
  padding: 16px 32px;
  font-size: 15.5px;
}
.btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

/* ---------- chips / tags ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
a.chip:hover,
button.chip:hover {
  background: var(--surface-2);
}
.chip.is-active {
  background: var(--accent-soft);
  border-color: #dbe6ff;
  color: var(--accent-ink);
}
.chip-dot::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12px;
}

/* ---------- home hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 84px;
}
.hero::before {
  content: "";
  position: absolute;
  top: -340px;
  right: -240px;
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(70, 127, 247, 0.13) 0%,
    rgba(106, 184, 217, 0.07) 38%,
    transparent 68%
  );
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(28, 36, 75, 0.055) 1px,
    transparent 1px
  );
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at 78% 30%, #000 0%, transparent 58%);
  -webkit-mask-image: radial-gradient(
    ellipse at 78% 30%,
    #000 0%,
    transparent 58%
  );
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  margin: 18px 0 22px;
  font-size: clamp(2.7rem, 5.6vw, 4.3rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--ink);
}
.hero h1 .thin {
  font-weight: 400;
  color: var(--ink-2);
}
.hero .lead {
  max-width: 33em;
  font-size: 18.5px;
  line-height: 1.85;
}
.hero .lead strong {
  color: var(--ink);
  font-weight: 500;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.hero-meta {
  display: flex;
  gap: 34px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 440px;
}
.hero-meta b {
  display: block;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.hero-meta span {
  font-size: 12.5px;
  color: var(--muted);
}
.hero-media {
  position: relative;
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border-radius: 30px;
  background: linear-gradient(135deg, #dfe9ff, #e8f6fb);
  z-index: 0;
}
.hero-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

/* ---------- feature cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}
.feature-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
}
.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.feature-card:hover .feature-media img {
  transform: scale(1.055);
}
.feature-body {
  padding: 18px 18px 20px;
}
.feature-body h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.feature-body p {
  margin-top: 5px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}
.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-ink);
}
.feature-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s;
}
.feature-card:hover .feature-link svg {
  transform: translateX(3px);
}

/* ---------- post cards ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}
.post-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface);
}
.post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.post-card:hover .post-media img {
  transform: scale(1.045);
}
.post-body {
  padding: 20px 20px 22px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  font-size: 11.5px;
  color: var(--muted);
}
.post-meta .tag {
  padding: 3px 8px;
  font-size: 10.5px;
}
.post-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}
.post-body h3 {
  font-size: 18.5px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.post-body p {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}
.post-card.is-featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
}
.post-card.is-featured .post-media {
  aspect-ratio: auto;
  height: 100%;
  min-height: 280px;
}
.post-card.is-featured .post-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
}
.post-card.is-featured .post-body h3 {
  font-size: 23px;
}
.post-card.is-featured .post-body p {
  font-size: 14px;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 46px 48px;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, #1c244b 0%, #26356a 58%, #324a6d 100%);
  box-shadow: var(--shadow);
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -160px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.035),
    0 0 0 120px rgba(255, 255, 255, 0.02);
}
.cta-band h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.cta-band p {
  margin-top: 8px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.68);
}
.cta-band .btn {
  position: relative;
  z-index: 1;
}

/* ---------- page head (inner pages) ---------- */
.page-head {
  position: relative;
  padding: 54px 0 38px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, #f9fbff 100%);
}
.page-head h1 {
  margin: 10px 0 12px;
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--ink);
}
.page-head .lead {
  max-width: 46em;
  font-size: 16.5px;
}
.page-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.page-head-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.page-meta {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--muted);
  flex-wrap: wrap;
}
.page-head.cloud-head {
  padding: 34px 0 24px;
}
.page-head.cloud-head h1 {
  margin: 6px 0 8px;
  font-size: clamp(2.1rem, 3vw, 2.8rem);
}
.page-head.cloud-head .lead {
  font-size: 15px;
  max-width: 44em;
}
.page-head.cloud-head .page-meta {
  margin-top: 12px;
}
.cloud-head + .cloud-layout {
  padding-top: 24px;
}

/* ---------- blog toolbar ---------- */
.blog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 26px;
  flex-wrap: wrap;
}
.search {
  position: relative;
  flex: 1 1 260px;
  max-width: 340px;
}
.search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.search input {
  width: 100%;
  padding: 11px 16px 11px 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13.5px;
  outline: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search input:focus {
  border-color: #b9ccf7;
  box-shadow: 0 0 0 4px rgba(70, 127, 247, 0.1);
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 10px;
}
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 38px 0 76px;
}
.pager a,
.pager span {
  min-width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13.5px;
  color: var(--ink-2);
  background: #fff;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.pager a:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}
.pager .is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.pager .is-disabled {
  opacity: 0.45;
}

/* ---------- article ---------- */
.article-head {
  padding: 50px 0 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 20px;
}
.breadcrumb a:hover {
  color: var(--accent-ink);
}
.breadcrumb svg {
  width: 12px;
  height: 12px;
  opacity: 0.6;
}
.article-head h1 {
  max-width: 20em;
  margin: 14px 0 18px;
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--ink);
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
}
.article-meta .author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
}
.article-meta .author img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface);
}
.article-cover {
  margin-top: 34px;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 236px;
  gap: 64px;
  padding: 52px 0 76px;
}
.prose {
  min-width: 0;
  max-width: 720px;
  font-size: 16.5px;
  line-height: 1.95;
  color: var(--ink-2);
}
.prose > *:first-child {
  margin-top: 0;
}
.prose p {
  margin: 0 0 1.25em;
}
.prose h2 {
  margin: 2em 0 0.7em;
  font-size: 26px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--ink);
  scroll-margin-top: 100px;
}
.prose h3 {
  margin: 1.7em 0 0.6em;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  scroll-margin-top: 100px;
}
.prose a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-color: rgba(70, 127, 247, 0.35);
  text-underline-offset: 3px;
}
.prose a:hover {
  text-decoration-color: var(--accent);
}
.prose ul,
.prose ol {
  margin: 0 0 1.25em;
  padding-left: 1.4em;
}
.prose ul {
  list-style: disc;
}
.prose ol {
  list-style: decimal;
}
.prose li {
  margin: 0.35em 0;
}
.prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--accent);
  color: var(--ink-2);
  font-size: 16.5px;
}
.prose blockquote p:last-child {
  margin-bottom: 0;
}
.prose code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 6px;
  background: #f1f4fa;
  color: #2f4a7a;
}
.prose pre {
  max-width: 100%;
  margin: 1.6em 0;
  padding: 18px 20px;
  overflow: auto;
  border-radius: 14px;
  background: #1c244b;
  color: #dfe7ff;
  font-size: 13px;
  line-height: 1.75;
}
.prose pre code {
  padding: 0;
  background: none;
  color: inherit;
  font-size: inherit;
}
.prose img {
  margin: 1.8em 0;
  border-radius: 16px;
}
.prose hr {
  margin: 2.4em 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.toc {
  position: sticky;
  top: 100px;
  align-self: start;
  padding-left: 18px;
  border-left: 2px solid var(--line);
  font-size: 12.5px;
}
.toc b {
  display: block;
  margin-bottom: 10px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.toc a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  line-height: 1.5;
  transition: color 0.2s;
}
.toc a:hover,
.toc a.is-active {
  color: var(--accent-ink);
}
.article-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.share {
  display: flex;
  gap: 8px;
}
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  margin-top: 26px;
}
.post-nav a {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.2s, background 0.2s;
}
.post-nav a:hover {
  border-color: var(--line-strong);
  background: #fbfcff;
}
.post-nav small {
  font-size: 11px;
  color: var(--muted);
}
.post-nav b {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.post-nav a:last-child {
  text-align: right;
}

/* ---------- about ---------- */
.about-hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0 48px;
}
.about-photo {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.about-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  box-shadow: inset 0 0 0 1px rgba(28, 36, 75, 0.06);
}
.about-hero h1 {
  margin: 12px 0 16px;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-weight: 600;
}
.about-hero .lead {
  font-size: 17px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.fact {
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}
.fact b {
  display: block;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
}
.fact span {
  font-size: 12px;
  color: var(--muted);
}
.about-body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  padding: 30px 0 80px;
}
.about-copy h2 {
  margin: 0 0 16px;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 600;
}
.about-copy p {
  margin-bottom: 14px;
  font-size: 15.5px;
  line-height: 1.9;
}
.faq {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border: 0;
  background: none;
  text-align: left;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
}
.faq-q svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--muted);
  transition: transform 0.25s;
}
.faq-item.is-open .faq-q svg {
  transform: rotate(45deg);
  color: var(--accent-ink);
}
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq-a > div {
  overflow: hidden;
}
.faq-item.is-open .faq-a {
  grid-template-rows: 1fr;
}
.faq-a p {
  margin: 0;
  padding: 0 0 20px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}
.contact-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ---------- cloud ---------- */
.cloud-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 28px;
  padding: 30px 0 80px;
}
.cloud-side {
  height: fit-content;
  position: sticky;
  top: 100px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.side-title {
  margin: 10px 8px 8px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: background 0.2s, color 0.2s;
}
.side-link svg {
  width: 16px;
  height: 16px;
  opacity: 0.75;
}
.side-link:hover {
  background: var(--surface);
}
.side-link.is-active {
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 500;
}
.side-link .count {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}
.storage {
  margin-top: 14px;
  padding: 13px 14px;
  border-radius: 12px;
  background: var(--surface);
}
.storage-top {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--muted);
}
.storage-top b {
  color: var(--ink);
  font-weight: 500;
}
.bar {
  height: 6px;
  margin: 9px 0 7px;
  border-radius: 99px;
  background: #e3e9f5;
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.share-box {
  margin-top: 14px;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: #fbfcfe;
}
.share-box b {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
}
.share-box p {
  margin: 3px 0 10px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
}
.share-box form {
  display: flex;
  gap: 6px;
}
.share-box input {
  min-width: 0;
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 12.5px;
  outline: 0;
}
.share-box input:focus {
  border-color: #b9ccf7;
}
.share-box button {
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
}
.cloud-main {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.cloud-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--muted);
}
.crumbs b {
  color: var(--ink);
  font-weight: 500;
}
.crumbs svg {
  width: 12px;
  height: 12px;
  opacity: 0.5;
}
.cloud-toolbar .search {
  margin-left: auto;
  max-width: 220px;
  flex: 0 1 220px;
}
.cloud-toolbar .search input {
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 12.5px;
}
.file-table {
  width: 100%;
  border-collapse: collapse;
}
.file-table th {
  padding: 11px 18px;
  text-align: left;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: #fcfdff;
  white-space: nowrap;
}
.file-table td {
  padding: 13px 18px;
  border-bottom: 1px solid #f1f4fa;
  font-size: 13px;
  vertical-align: middle;
}
.file-table tr:last-child td {
  border-bottom: 0;
}
.file-row {
  transition: background 0.15s;
}
.file-row:hover {
  background: #fafbff;
}
.file-name {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.file-ico {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.ico-zip {
  background: #fff2e3;
  color: #b96a05;
}
.ico-pdf {
  background: #ffecec;
  color: #c33b3b;
}
.ico-img {
  background: #e9f7ef;
  color: #1f8a5b;
}
.ico-doc {
  background: #eaf1ff;
  color: #2f62d4;
}
.ico-video {
  background: #f1ecff;
  color: #6b46c1;
}
.ico-file {
  background: #f1f3f8;
  color: #5b6b8c;
}
.file-name b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
}
.file-name small {
  display: block;
  margin-top: 1px;
  font-size: 11px;
  color: var(--muted);
}
.vis {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--muted);
}
.vis::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2fbf71;
}
.vis.private::before {
  background: #c7a44a;
}
.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}
.icon-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.icon-btn:hover {
  background: var(--surface);
  color: var(--ink);
}
.icon-btn svg {
  width: 15px;
  height: 15px;
}
.cloud-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
  flex-wrap: wrap;
}

/* ---------- modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(16, 24, 48, 0.45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.modal.is-open {
  display: grid;
}
.modal-card {
  width: min(460px, 100%);
  padding: 26px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  animation: pop 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.modal-head h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}
.modal-head p {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--muted);
}
.modal-close {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
}
.field {
  margin-bottom: 14px;
}
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: 13px;
  outline: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #b9ccf7;
  box-shadow: 0 0 0 3px rgba(70, 127, 247, 0.1);
}
.copy-row {
  display: flex;
  gap: 6px;
}
.copy-row input {
  font-family: var(--mono);
  font-size: 12px;
}
.code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: 12px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 22px;
  letter-spacing: 0.28em;
  color: var(--ink);
  font-weight: 600;
}
.modal-note {
  margin-top: 12px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- footer ---------- */
.site-footer {
  margin-top: 20px;
  padding: 56px 0 24px;
  background: #fbfcfe;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 0.8fr 0.8fr 0.8fr;
  gap: 40px;
}
.footer-brand p {
  max-width: 30em;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}
.footer-col h4 {
  margin: 4px 0 12px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-col a,
.footer-col span {
  display: block;
  padding: 4px 0;
  font-size: 13px;
  color: var(--ink-2);
}
.footer-col a:hover {
  color: var(--accent-ink);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}
.footer-bottom a {
  color: var(--ink-2);
}
.footer-bottom a:hover {
  color: var(--accent-ink);
}

/* ---------- admin ---------- */
.admin-body {
  background: #f4f7fc;
}
.admin-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}
.admin-side {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  background: var(--ink);
  color: #fff;
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 18px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 14.5px;
  font-weight: 500;
}
.admin-brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #fff;
}
.admin-brand small {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.66);
  transition: background 0.2s, color 0.2s;
}
.admin-nav a svg {
  width: 17px;
  height: 17px;
  opacity: 0.8;
}
.admin-nav a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}
.admin-nav a.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.admin-nav .divider {
  height: 1px;
  margin: 12px 8px;
  background: rgba(255, 255, 255, 0.08);
}
.admin-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}
.avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
.admin-user b {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
}
.admin-user span {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.5);
}
.admin-main {
  min-width: 0;
}
.admin-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 28px;
  background: rgba(244, 247, 252, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.admin-top .crumbs {
  font-size: 12.5px;
}
.admin-top .search {
  margin-left: auto;
  max-width: 240px;
  flex: 1 1 200px;
}
.admin-top .search input {
  padding-top: 9px;
  padding-bottom: 9px;
  font-size: 12.5px;
}
.admin-content {
  padding: 26px 28px 60px;
}
.admin-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.admin-heading h1 {
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 600;
}
.admin-heading p {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--muted);
}
.admin-heading .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.stat {
  padding: 15px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.stat span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.stat b {
  display: block;
  margin-top: 4px;
  font-size: 23px;
  line-height: 1.2;
  color: var(--ink);
  font-weight: 600;
}
.stat small {
  font-size: 10.5px;
  color: #2fbf71;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.panel-head .filters {
  display: flex;
  gap: 6px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  padding: 10px 18px;
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: #fcfdff;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table td {
  padding: 12px 18px;
  border-bottom: 1px solid #f1f4fa;
  font-size: 13px;
  vertical-align: middle;
}
.data-table tr:last-child td {
  border-bottom: 0;
}
.data-table tbody tr:hover {
  background: #fafbff;
}
.data-table .ttl {
  font-weight: 500;
  color: var(--ink);
}
.data-table .ttl small {
  display: block;
  margin-top: 1px;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 500;
}
.badge-pub {
  background: #e9f7ef;
  color: #1f8a5b;
}
.badge-draft {
  background: #fff4e5;
  color: #b96a05;
}
.badge-note {
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.admin-tabs {
  display: none;
}
.admin-view {
  display: none;
}
.admin-view.is-active {
  display: block;
}

/* editor */
.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: 18px;
  align-items: start;
}
.editor-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
}
.title-input {
  width: 100%;
  padding: 20px 22px 14px;
  border: 0;
  outline: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  background: transparent;
}
.title-input::placeholder {
  color: #b4bfd4;
}
.editor-sub {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px 14px;
  font-size: 11.5px;
  color: var(--muted);
  flex-wrap: wrap;
}
.md-toolbar {
  display: flex;
  align-items: center;
  gap: 1px;
  flex-wrap: wrap;
  padding: 7px 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}
.md-btn {
  width: 31px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-2);
  font-size: 12px;
  transition: background 0.15s, color 0.15s;
}
.md-btn:hover {
  background: var(--surface-2);
  color: var(--ink);
}
.md-btn svg {
  width: 15px;
  height: 15px;
}
.md-sep {
  width: 1px;
  height: 16px;
  margin: 0 5px;
  background: var(--line);
}
.md-editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 540px;
}
.md-editor textarea {
  width: 100%;
  min-height: 540px;
  padding: 20px 22px;
  border: 0;
  outline: 0;
  resize: vertical;
  background: #fff;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.9;
  tab-size: 2;
}
.md-preview {
  max-height: 660px;
  overflow: auto;
  padding: 20px 22px;
  border-left: 1px solid var(--line);
  background: #fcfdff;
}
.md-preview .prose {
  font-size: 13.5px;
  line-height: 1.85;
}
.md-preview .prose h2 {
  font-size: 20px;
}
.md-preview .prose h3 {
  font-size: 16px;
}
.md-preview .prose pre {
  font-size: 11.5px;
}
.side-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.side-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.side-card h3 {
  margin-bottom: 12px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.side-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  font-size: 12.5px;
  color: var(--ink-2);
}
.side-row + .side-row {
  border-top: 1px solid #f4f6fb;
}
.side-row select {
  padding: 4px 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--surface);
  font-size: 12px;
  color: var(--ink);
}
.cover-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  margin-bottom: 10px;
}
.cover-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-actions {
  display: flex;
  gap: 6px;
}
.cover-actions .btn {
  flex: 1;
  padding: 7px 10px;
  font-size: 11.5px;
}
.tag-input {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}
.tag-input input {
  flex: 1;
  min-width: 70px;
  border: 0;
  outline: 0;
  padding: 4px;
  font-size: 12px;
}
.switch {
  position: relative;
  width: 36px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 99px;
  background: #dfe5f0;
  border: 0;
  transition: background 0.2s;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}
.switch.is-on {
  background: var(--accent);
}
.switch.is-on::after {
  transform: translateX(16px);
}
.editor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: #fcfdff;
}
.save-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
}
.save-state::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2fbf71;
}
.editor-actions .right {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

/* admin cloud */
.dropzone {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 34px 20px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 13px;
  background: #fbfcff;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}
.dropzone.is-drag {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.dropzone b {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
}
.dropzone span {
  font-size: 11.5px;
  color: var(--muted);
}
.dropzone .btn {
  margin-top: 4px;
}
.quota {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}
.quota-top {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--muted);
}
.quota-top b {
  color: var(--ink);
  font-weight: 500;
}
.admin-cloud-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: start;
}

/* auth (login) */
.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(
      circle at 20% 10%,
      rgba(70, 127, 247, 0.1),
      transparent 40%
    ),
    radial-gradient(circle at 90% 90%, rgba(106, 184, 217, 0.12), transparent 40%),
    #f6f8fc;
}
.auth-card {
  width: min(420px, 100%);
  padding: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.auth-card .brand {
  justify-content: center;
  margin-bottom: 22px;
}
.auth-card h1 {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.auth-card > p {
  margin: 6px 0 24px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}
.auth-card .btn {
  width: 100%;
  margin-top: 6px;
}
.auth-foot {
  margin-top: 18px;
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
}
.auth-foot a {
  color: var(--accent-ink);
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.check input {
  accent-color: var(--accent);
}

.empty {
  display: none;
  padding: 54px 20px;
  text-align: center;
  color: var(--muted);
}
.empty[hidden] {
  display: none;
}
.empty:not([hidden]) {
  display: block;
}
.empty b {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.empty p {
  font-size: 13px;
}

/* 404 */
.error-page {
  min-height: 68vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 0;
}
.error-page .error-code {
  font-family: var(--font);
  font-size: clamp(6rem, 18vw, 12rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.06em;
  background: linear-gradient(135deg, var(--ink) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.error-page h1 {
  margin: 18px 0 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--ink);
  font-weight: 600;
}
.error-page p {
  color: var(--muted);
  font-size: 14px;
}

/* ---------- toast / fx ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 300;
  transform: translate(-50%, 16px);
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-grid {
    gap: 36px;
  }
  .about-hero {
    gap: 36px;
  }
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: 40px;
  }
}
@media (max-width: 900px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 20px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -30px rgba(28, 36, 75, 0.4);
  }
  .nav.is-open {
    display: flex;
  }
  .nav a {
    padding: 11px 14px;
    border-radius: 10px;
  }
  .nav-toggle {
    display: grid;
    margin-left: auto;
  }
  .header-actions {
    margin-left: auto;
  }
  .header-actions .btn-ghost {
    display: none;
  }
  .hero {
    padding: 44px 0 60px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-media {
    order: -1;
    max-width: 620px;
  }
  .hero::before {
    top: -420px;
    right: -400px;
  }
  .hero-meta {
    max-width: none;
  }
  .about-hero,
  .about-body {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .about-photo {
    max-width: 480px;
  }
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .toc {
    display: none;
  }
  .cloud-layout {
    grid-template-columns: 1fr;
  }
  .cloud-side {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    overflow-x: auto;
    padding: 10px;
  }
  .cloud-side .side-title,
  .cloud-side .storage {
    display: none;
  }
  .cloud-side .share-box {
    flex: 1 1 100%;
    margin-top: 6px;
    padding: 12px;
    background: #fff;
  }
  .cloud-side .share-box p {
    margin-bottom: 8px;
  }
  .side-link {
    white-space: nowrap;
    padding: 7px 12px;
    border: 1px solid var(--line);
  }
  .side-link .count {
    display: none;
  }
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-side {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    overflow-x: auto;
  }
  .admin-brand {
    padding: 0 12px 0 0;
    margin: 0;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }
  .admin-brand span {
    display: none;
  }
  .admin-nav {
    flex-direction: row;
  }
  .admin-nav .divider,
  .admin-user {
    display: none;
  }
  .admin-nav a {
    white-space: nowrap;
    padding: 8px 10px;
  }
  .editor-layout,
  .admin-cloud-grid {
    grid-template-columns: 1fr;
  }
  .md-editor {
    grid-template-columns: 1fr;
  }
  .md-preview {
    border-left: 0;
    border-top: 1px solid var(--line);
    max-height: 420px;
  }
}
@media (max-width: 760px) {
  .section {
    padding: 62px 0;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 26px;
  }
  .post-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .post-card.is-featured,
  .blog-grid .post-card.is-featured {
    grid-column: auto;
    display: flex;
    flex-direction: column;
  }
  .post-card.is-featured .post-media {
    min-height: 0;
    aspect-ratio: 16 / 10;
    height: auto;
  }
  .post-card.is-featured .post-body {
    padding: 20px;
  }
  .post-card.is-featured .post-body h3 {
    font-size: 18.5px;
  }
  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 26px;
    border-radius: 22px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .hero-meta {
    gap: 26px;
  }
  .facts {
    grid-template-columns: 1fr 1fr;
  }
  .article-cover {
    aspect-ratio: 16 / 10;
  }
  .page-head-row {
    align-items: flex-start;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .admin-content {
    padding: 18px 16px 50px;
  }
  .admin-top {
    padding: 10px 16px;
  }
  .admin-top .search {
    display: none;
  }
  .data-table th:nth-child(3),
  .data-table td:nth-child(3),
  .data-table th:nth-child(4),
  .data-table td:nth-child(4) {
    display: none;
  }
  .file-table th:nth-child(3),
  .file-table td:nth-child(3),
  .file-table th:nth-child(4),
  .file-table td:nth-child(4) {
    display: none;
  }
  .file-table td {
    padding: 11px 14px;
  }
  .file-table th {
    padding: 10px 14px;
  }
  .file-table {
    table-layout: fixed;
    width: 100%;
  }
  .file-table th:nth-child(2),
  .file-table td:nth-child(2) {
    display: none;
  }
  .file-table th:nth-child(5),
  .file-table td:nth-child(5) {
    width: 88px;
  }
  .file-table td,
  .file-table th {
    padding-left: 12px;
    padding-right: 8px;
  }
  .file-table .icon-btn {
    width: 30px;
  }
  .cloud-toolbar {
    padding: 12px 14px;
  }
  .cloud-toolbar .search {
    margin-left: 0;
    flex: 1 1 100%;
    max-width: none;
  }
  .cloud-foot {
    padding: 12px 14px;
  }
  .article-head {
    padding-top: 34px;
  }
  .article-head h1 {
    font-size: 1.9rem;
  }
  .prose {
    font-size: 15.5px;
  }
  .auth-card {
    padding: 26px 22px;
  }
}
@media (max-width: 480px) {
  .wrap {
    padding: 0 18px;
  }
  .hero h1 {
    font-size: 2.35rem;
  }
  .hero .lead {
    font-size: 16px;
  }
  .hero-meta b {
    font-size: 19px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .facts {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .article-meta {
    gap: 8px;
  }
  .post-nav {
    grid-template-columns: 1fr;
  }
  .post-nav a:last-child {
    text-align: left;
  }
  .header-actions .btn {
    padding: 8px 13px;
    font-size: 12.5px;
  }
  .brand span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   WordPress integration
   ========================================================================== */

body.admin-bar .site-header {
  top: 32px;
}
@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}
.site-header {
  z-index: 100;
}

/* nav menu output */
.nav {
  margin: 0 auto;
}
.nav li {
  list-style: none;
}
.nav .current-menu-item > a,
.nav .current_page_item > a,
.nav .current-menu-ancestor > a,
.nav .current_page_ancestor > a {
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 500;
}
.nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: none;
}
.nav li:hover > .sub-menu {
  display: block;
}
.nav .sub-menu a {
  display: block;
  padding: 8px 10px;
}

/* pagination */
.pager .page-numbers {
  min-width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13.5px;
  color: var(--ink-2);
  background: #fff;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.pager .page-numbers:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}
.pager .page-numbers.current {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.pager .dots {
  border-color: transparent;
  background: transparent;
}

/* post cards without a cover */
.post-media.no-thumb {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1c244b 0%, #324a6d 60%, #467ff7 140%);
  color: #fff;
}
.post-media.no-thumb span {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.04em;
  opacity: 0.92;
}

/* single without TOC */
.article-layout.no-toc {
  grid-template-columns: minmax(0, 1fr);
}

/* generic page content */
.page-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 0 76px;
}
.page-content .prose {
  max-width: none;
}

/* search form */
.search-form {
  position: relative;
  display: flex;
  gap: 8px;
  width: 100%;
}
.search-form input[type="search"] {
  width: 100%;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13.5px;
  outline: 0;
}
.search-form input[type="search"]:focus {
  border-color: #b9ccf7;
  box-shadow: 0 0 0 4px rgba(70, 127, 247, 0.1);
}
.search-form button {
  display: none;
}

/* WordPress core content */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.wp-block-image img {
  border-radius: 16px;
}
.alignleft {
  float: left;
  margin: 0 1.4em 1em 0;
}
.alignright {
  float: right;
  margin: 0 0 1em 1.4em;
}
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.alignwide {
  margin-left: -60px;
  margin-right: -60px;
  max-width: calc(100% + 120px);
}
.alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
  width: 100vw;
}
.wp-caption {
  max-width: 100%;
}
.wp-caption-text {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}
.sticky {
  position: relative;
}
.bypostauthor {
  display: block;
}
.post-password-form input[type="password"] {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.post-password-form input[type="submit"] {
  padding: 10px 16px;
  border: 0;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
}
.wp-block-quote {
  border-left: 3px solid var(--accent);
  padding-left: 22px;
}
.wp-block-code {
  background: #1c244b;
  color: #dfe7ff;
  border-radius: 14px;
  padding: 18px 20px;
}
.wp-block-separator {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2em 0;
}

/* footer menu */
.footer-col .menu-item {
  list-style: none;
}

@media (max-width: 1024px) {
  .alignwide {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }
}
@media (max-width: 760px) {
  .alignleft,
  .alignright {
    float: none;
    margin: 1em 0;
  }
  .alignfull {
    margin-left: -18px;
    margin-right: -18px;
    width: calc(100% + 36px);
    max-width: none;
  }
}
/* no-cover cards: category mark + subtle dot pattern */
.post-media.no-thumb {
  position: relative;
}
.post-media.no-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.65;
  pointer-events: none;
}
.post-media.no-thumb span {
  position: relative;
  z-index: 1;
  font-size: 38px;
  letter-spacing: 0.04em;
}
/* ==========================================================================
   Manage console / cloud admin
   ========================================================================== */

.editor-body {
  padding: 0 22px 20px;
}
.editor-body .wp-editor-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.editor-body .wp-editor-container {
  border: 0;
}
.editor-body .wp-editor-area {
  border: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.8;
}
.editor-body .mce-tinymce {
  border: 0 !important;
}
.editor-body .wp-media-buttons {
  padding: 6px 8px 0;
}
.notice {
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 16px;
}
.notice-success {
  background: #e9f7ef;
  border-color: #c9ebd8;
  color: #1f8a5b;
}
.notice-error {
  background: #ffecec;
  border-color: #f5c9c9;
  color: #c33b3b;
}
.row-actions form {
  display: inline-flex;
}
.admin-content .row-actions {
  gap: 0;
}
.admin-content .data-table .file-name small a {
  color: var(--accent-ink);
}
.side-card .field input[type="file"] {
  max-width: 100%;
  font-size: 11.5px;
}
.admin-cloud-grid .panel {
  min-width: 0;
}
.cloud-main .notice {
  margin: 14px 18px;
}
.cloud-side .side-link .count {
  min-width: 16px;
  text-align: right;
}
.cloud-main .file-table form {
  display: inline-flex;
}
.cloud-main .file-table .row-actions {
  gap: 0;
}
.auth-card .auth-foot a {
  color: var(--accent-ink);
}