:root {
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.1);
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --background: #f6f3ef;
  --blue: #2f6fbb;
  --blue-dark: #1f5596;
  --warm: #d79a54;
  --warm-soft: #f2dcc2;
  --mist: #dce5ee;
  --radius-lg: 34px;
  --radius-md: 24px;
  --shadow: 0 24px 70px rgba(56, 42, 30, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at 18% 0%, rgba(215, 154, 84, 0.18), transparent 24rem),
    radial-gradient(circle at 82% 4%, rgba(47, 111, 187, 0.14), transparent 28rem),
    linear-gradient(180deg, #fffaf5 0%, var(--background) 46%, #ffffff 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.38), transparent 34%),
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.55), transparent 18rem);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 250, 245, 0.76);
  backdrop-filter: saturate(180%) blur(22px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1080px, calc(100% - 36px));
  min-height: 54px;
  margin: 0 auto;
}

.logo,
.nav-links {
  display: flex;
  align-items: center;
}

.logo {
  gap: 9px;
  font-size: 0.95rem;
  font-weight: 700;
}

.logo-dot {
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, var(--blue), #86a6c8);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.nav-links {
  gap: 4px;
}

.nav-links a {
  padding: 8px 13px;
  color: var(--muted);
  font-size: 0.9rem;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(47, 111, 187, 0.09);
}

.menu-button {
  display: none;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 5px auto;
  background: var(--text);
  transition: transform 0.2s ease;
}

.menu-button.is-open span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-button.is-open span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

main,
.footer {
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  padding: clamp(58px, 9vw, 112px) 0 48px;
  text-align: center;
}

.kicker,
.section-title span,
.feature-card span,
.newsletter span {
  display: inline-block;
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin: 0 auto 20px;
  font-size: clamp(2.15rem, 5vw, 4.35rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.hero-subtitle {
  max-width: 660px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 1.68;
  letter-spacing: -0.015em;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 28px 0 46px;
}

.button,
.newsletter button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
}

.button-dark,
.newsletter button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), #4d84c0);
  transition: background 0.2s ease, transform 0.2s ease;
}

.button-dark:hover,
.newsletter button:hover {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  transform: translateY(-1px);
}

.button-light {
  color: #80552b;
  background: rgba(215, 154, 84, 0.16);
}

.hero-panel {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.95), transparent 20rem),
    radial-gradient(circle at 86% 24%, rgba(215, 154, 84, 0.28), transparent 18rem),
    linear-gradient(135deg, #edf4fb 0%, #fff7ed 50%, #eef2f5 100%);
  border-radius: 40px;
  box-shadow: var(--shadow);
}

.panel-glow {
  position: absolute;
  right: 10%;
  bottom: -22%;
  width: 390px;
  height: 390px;
  background:
    radial-gradient(circle, rgba(47, 111, 187, 0.34), transparent 58%),
    radial-gradient(circle at 72% 70%, rgba(215, 154, 84, 0.28), transparent 42%),
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), transparent 38%);
  border-radius: 50%;
  filter: blur(4px);
}

.panel-content {
  position: relative;
  max-width: 560px;
  padding: clamp(30px, 5.4vw, 58px);
  text-align: left;
}

.panel-label,
.article-meta {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.panel-content h2 {
  margin-bottom: 18px;
  font-size: clamp(1.65rem, 3vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.panel-content p {
  max-width: 500px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.66;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  padding: 28px 0 76px;
}

.feature-card,
.article-card,
.topic,
.newsletter {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 42px rgba(56, 42, 30, 0.07);
}

.feature-card {
  min-height: 360px;
  padding: clamp(28px, 4vw, 48px);
}

.feature-card.dark {
  color: #ffffff;
  background:
    radial-gradient(circle at 78% 18%, rgba(215, 154, 84, 0.42), transparent 16rem),
    linear-gradient(135deg, #17212d, #2d3845);
}

.feature-card:not(.dark) {
  background:
    radial-gradient(circle at 86% 10%, rgba(47, 111, 187, 0.12), transparent 15rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(242, 220, 194, 0.45));
}

.feature-card h2 {
  max-width: 650px;
  margin-bottom: 18px;
  font-size: clamp(1.65rem, 3.1vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.feature-card p,
.article-card p,
.topic p,
.newsletter p {
  color: var(--muted);
  line-height: 1.65;
}

.feature-card.dark p {
  color: rgba(255, 255, 255, 0.72);
}

.section {
  padding: 20px 0 80px;
}

.section-title {
  margin-bottom: 22px;
}

.section-title h2 {
  margin-bottom: 0;
  font-size: clamp(1.95rem, 3.8vw, 3.55rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.article-list {
  display: grid;
  gap: 14px;
}

.article-card {
  display: grid;
  grid-template-columns: 1fr 0.9fr auto;
  gap: 28px;
  align-items: center;
  padding: 28px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.article-card:nth-child(1) {
  background:
    linear-gradient(90deg, rgba(47, 111, 187, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.78);
}

.article-card:nth-child(2) {
  background:
    linear-gradient(90deg, rgba(215, 154, 84, 0.13), transparent 34%),
    rgba(255, 255, 255, 0.78);
}

.article-card:nth-child(3) {
  background:
    linear-gradient(90deg, rgba(47, 111, 187, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.78);
}

.article-card:hover,
.topic:hover {
  transform: translateY(-3px);
  background: var(--surface-solid);
}

.article-card h3 {
  margin-bottom: 0;
  font-size: clamp(1.18rem, 1.6vw, 1.48rem);
  line-height: 1.28;
  letter-spacing: -0.025em;
}

.article-card a {
  color: var(--blue);
  font-weight: 700;
  white-space: nowrap;
}

.topics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.topic {
  min-height: 260px;
  padding: 28px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.topic strong {
  display: inline-block;
  margin-bottom: 72px;
  color: var(--blue);
  font-size: 2.2rem;
  letter-spacing: -0.04em;
}

.topic:nth-child(1) {
  background:
    radial-gradient(circle at 85% 18%, rgba(47, 111, 187, 0.14), transparent 12rem),
    rgba(255, 255, 255, 0.76);
}

.topic:nth-child(2) {
  background:
    radial-gradient(circle at 85% 18%, rgba(215, 154, 84, 0.18), transparent 12rem),
    rgba(255, 255, 255, 0.76);
}

.topic:nth-child(2) strong {
  color: var(--warm);
}

.topic:nth-child(3) {
  background:
    radial-gradient(circle at 85% 18%, rgba(47, 111, 187, 0.1), transparent 12rem),
    rgba(255, 255, 255, 0.76);
}

.topic:nth-child(3) strong {
  color: #6f8293;
}

.topic h3 {
  margin-bottom: 10px;
  font-size: 1.38rem;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  margin: 8px 0 48px;
  padding: clamp(30px, 5vw, 58px);
  background:
    radial-gradient(circle at 82% 12%, rgba(47, 111, 187, 0.14), transparent 18rem),
    radial-gradient(circle at 20% 82%, rgba(215, 154, 84, 0.15), transparent 16rem),
    #ffffff;
}

.newsletter h2 {
  margin-bottom: 14px;
  font-size: clamp(1.65rem, 3.1vw, 2.85rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.newsletter form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.newsletter input {
  flex: 1 1 240px;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(247, 243, 238, 0.88);
  color: var(--text);
  font: inherit;
  outline: none;
}

.newsletter input:focus {
  border-color: rgba(0, 113, 227, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.newsletter button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.form-tip {
  flex-basis: 100%;
  min-height: 1.5em;
  margin: 0;
  font-size: 0.94rem;
}

.footer {
  padding: 24px 0 46px;
  color: var(--muted);
  font-size: 0.92rem;
}

.schema-page {
  padding-top: 56px;
}

.schema-hero {
  max-width: 820px;
  padding: 38px 0 34px;
}

.schema-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 4.8vw, 4.1rem);
  text-align: left;
}

.schema-hero p:not(.kicker) {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.72;
}

.schema-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 58px;
}

.schema-summary article,
.schema-module,
.schema-table,
.schema-relations {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 42px rgba(56, 42, 30, 0.07);
}

.schema-summary article {
  padding: 24px;
}

.schema-summary strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: clamp(1.85rem, 3vw, 2.7rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.schema-summary span {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.schema-modules {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.schema-module {
  min-height: 190px;
  padding: 24px;
}

.schema-module h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.schema-module p,
.table-heading p,
.schema-relations li {
  color: var(--muted);
  line-height: 1.65;
}

.schema-table-list {
  display: grid;
  gap: 18px;
}

.schema-table {
  overflow: hidden;
}

.table-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) 1fr;
  gap: 24px;
  align-items: end;
  padding: 26px 28px 20px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(47, 111, 187, 0.08), transparent 36%),
    rgba(255, 255, 255, 0.62);
}

.table-heading span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 700;
}

.table-heading h3 {
  margin-bottom: 0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  letter-spacing: -0.03em;
}

.table-heading p {
  margin-bottom: 0;
}

.table-scroll {
  overflow-x: auto;
}

.schema-table table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.72);
}

.schema-table th,
.schema-table td {
  padding: 13px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  text-align: left;
  vertical-align: top;
}

.schema-table th {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 760;
  background: rgba(242, 220, 194, 0.28);
}

.schema-table td {
  color: #2e2e32;
  font-size: 0.93rem;
  line-height: 1.45;
}

.schema-table td:first-child,
.schema-table td:nth-child(2),
.schema-table td:nth-child(3) {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.schema-table tr:last-child td {
  border-bottom: 0;
}

.schema-relations {
  margin: 8px 0 48px;
  padding: clamp(26px, 4vw, 42px);
}

.schema-relations ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 28px;
  margin: 0;
  padding-left: 20px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 820px) {
  .menu-button {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 54px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 250, 245, 0.96);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 13px 14px;
  }

  .hero {
    padding-top: 58px;
  }

  .hero-actions,
  .newsletter form {
    flex-direction: column;
  }

  .button,
  .newsletter button {
    width: 100%;
  }

  .feature-grid,
  .article-card,
  .topics,
  .newsletter,
  .schema-summary,
  .schema-modules,
  .table-heading,
  .schema-relations ul {
    grid-template-columns: 1fr;
  }

  .article-card {
    align-items: start;
  }
}

@media (max-width: 520px) {
  main,
  .footer,
  .nav {
    width: min(100% - 28px, 1080px);
  }

  h1 {
    font-size: clamp(1.95rem, 9.4vw, 3rem);
    letter-spacing: -0.045em;
  }

  .hero-panel {
    min-height: 330px;
    border-radius: 32px;
  }

  .feature-card,
  .article-card,
  .topic,
  .newsletter {
    border-radius: var(--radius-md);
  }
}

/* ===== Blog Page Styles ===== */

.blog-page {
  padding-top: 56px;
}

.blog-hero {
  max-width: 820px;
  padding: 38px 0 34px;
}

.blog-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 4.8vw, 4.1rem);
  text-align: left;
}

.blog-hero p:not(.kicker) {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.72;
}

.blog-content {
  padding: 0 0 80px;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.filter-tag {
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tag:hover {
  color: var(--text);
  background: var(--surface-solid);
  border-color: rgba(0, 0, 0, 0.15);
}

.filter-tag.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), #4d84c0);
  border-color: transparent;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.blog-card {
  display: grid;
  grid-template-rows: auto minmax(4.8rem, auto) 5rem auto;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  min-height: 300px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  background: var(--surface-solid);
}

.blog-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.read-time {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.blog-card h2 {
  margin: 0 0 14px;
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  line-height: 1.28;
  letter-spacing: -0.025em;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.blog-card p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-self: end;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.blog-tags {
  display: flex;
  gap: 8px;
}

.blog-tag {
  padding: 4px 10px;
  background: rgba(47, 111, 187, 0.09);
  border-radius: 999px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 650;
}

.read-more {
  color: var(--blue);
  font-weight: 700;
  font-size: 0.94rem;
  transition: color 0.2s ease;
}

.read-more:hover {
  color: var(--blue-dark);
}

.load-more {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* ===== Article Detail Page Styles ===== */

.article-page {
  padding-top: 56px;
}

.article-detail {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 0 80px;
}

.article-hero {
  padding: 38px 0 34px;
}

.article-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 4.8vw, 4.1rem);
  text-align: left;
}

.article-subtitle {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.72;
  margin-bottom: 28px;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #86a6c8);
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 700;
  font-size: 1rem;
}

.author-role {
  color: var(--muted);
  font-size: 0.9rem;
}

.article-content {
  padding: 36px 0;
}

.article-content h2 {
  margin: 48px 0 20px;
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content p {
  margin: 0 0 20px;
  color: #2e2e32;
  font-size: 1.06rem;
  line-height: 1.78;
}

.article-content img {
  display: block;
  width: auto;
  max-width: min(100%, 720px);
  height: auto;
  margin: 24px auto;
  border-radius: 20px;
  object-fit: contain;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}

.article-content ul,
.article-content ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 10px;
  color: #2e2e32;
  font-size: 1.06rem;
  line-height: 1.78;
}

.article-content code {
  padding: 2px 6px;
  background: rgba(47, 111, 187, 0.09);
  border-radius: 4px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.94rem;
  color: var(--blue-dark);
}

.article-content pre {
  margin: 0 0 24px;
  padding: 24px;
  background: #1d1d1f;
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.article-content pre code {
  padding: 0;
  background: transparent;
  color: #e8e8ed;
  font-size: 0.9rem;
  line-height: 1.6;
}

.article-content blockquote {
  margin: 0 0 24px;
  padding: 20px 24px;
  border-left: 4px solid var(--blue);
  background: rgba(47, 111, 187, 0.06);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.article-content blockquote p {
  margin: 0;
  color: var(--text);
  font-style: italic;
}

.article-footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.article-tag {
  padding: 6px 14px;
  background: rgba(47, 111, 187, 0.09);
  border-radius: 999px;
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 650;
}

.article-share {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}

.article-share span {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.share-btn {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-btn:hover {
  color: var(--text);
  background: var(--surface-solid);
  border-color: rgba(0, 0, 0, 0.15);
}

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.article-nav-prev,
.article-nav-next {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-md);
  transition: transform 0.2s ease, background 0.2s ease;
}

.article-nav-prev:hover,
.article-nav-next:hover {
  transform: translateY(-3px);
  background: var(--surface-solid);
}

.article-nav-next {
  text-align: right;
}

.article-nav-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.article-nav-title {
  color: var(--text);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.35;
}

.related-articles {
  padding: 20px 0 80px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

/* ===== About Page Styles ===== */

.about-page {
  padding-top: 56px;
}

.about-hero {
  max-width: 820px;
  padding: 38px 0 34px;
}

.about-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 4.8vw, 4.1rem);
  text-align: left;
}

.about-hero p:not(.kicker) {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.72;
}

.about-content {
  padding: 0 0 80px;
}

.about-intro {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 80px;
}

.about-avatar {
  position: sticky;
  top: 100px;
}

.avatar-placeholder {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.95), transparent 20rem),
    radial-gradient(circle at 86% 24%, rgba(215, 154, 84, 0.28), transparent 18rem),
    linear-gradient(135deg, #edf4fb 0%, #fff7ed 50%, #eef2f5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  box-shadow: var(--shadow);
}

.about-text h2 {
  margin: 0 0 20px;
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.about-text p {
  margin: 0 0 18px;
  color: #2e2e32;
  font-size: 1.06rem;
  line-height: 1.78;
}

.skills-section {
  margin-bottom: 80px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skill-category {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-lg);
}

.skill-category h3 {
  margin: 0 0 18px;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  padding: 8px 14px;
  background: rgba(47, 111, 187, 0.09);
  border-radius: 999px;
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 650;
}

.skill-tag.learning {
  background: rgba(215, 154, 84, 0.16);
  color: #80552b;
}

.timeline-section {
  margin-bottom: 80px;
}

.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -33px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #86a6c8);
  box-shadow: 0 0 0 4px rgba(47, 111, 187, 0.2);
}

.timeline-content {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-md);
}

.timeline-date {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 700;
}

.timeline-content h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.timeline-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.projects-section {
  margin-bottom: 80px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s ease, background 0.2s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  background: var(--surface-solid);
}

.project-image {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.project-placeholder {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.95), transparent 20rem),
    radial-gradient(circle at 86% 24%, rgba(47, 111, 187, 0.14), transparent 18rem),
    linear-gradient(135deg, #edf4fb 0%, #eef2f5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.project-content {
  padding: 24px;
}

.project-content h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.project-content p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.project-tech span {
  padding: 4px 10px;
  background: rgba(47, 111, 187, 0.09);
  border-radius: 999px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 650;
}

.project-links {
  display: flex;
  gap: 14px;
}

.project-link {
  color: var(--blue);
  font-weight: 700;
  font-size: 0.94rem;
  transition: color 0.2s ease;
}

.project-link:hover {
  color: var(--blue-dark);
}

.contact-preview {
  padding: clamp(48px, 7vw, 80px);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 12%, rgba(47, 111, 187, 0.14), transparent 18rem),
    radial-gradient(circle at 20% 82%, rgba(215, 154, 84, 0.15), transparent 16rem),
    #ffffff;
  border-radius: var(--radius-lg);
  text-align: center;
}

.contact-preview-content h2 {
  margin: 0 0 14px;
  font-size: clamp(1.65rem, 3.1vw, 2.85rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.contact-preview-content p {
  max-width: 500px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.65;
}

/* ===== Contact Page Styles ===== */

.contact-page {
  padding-top: 56px;
}

.contact-hero {
  max-width: 820px;
  padding: 38px 0 34px;
}

.contact-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 4.8vw, 4.1rem);
  text-align: left;
}

.contact-hero p:not(.kicker) {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.72;
}

.contact-content {
  padding: 0 0 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.contact-form-wrapper {
  padding: 36px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-lg);
}

.contact-form-wrapper h2 {
  margin: 0 0 28px;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 650;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(247, 243, 238, 0.88);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(0, 113, 227, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form .button {
  align-self: flex-start;
  margin-top: 8px;
}

.form-tip {
  min-height: 1.5em;
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
}

.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.contact-info {
  padding: 36px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-lg);
}

.contact-info h2 {
  margin: 0 0 24px;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-method {
  display: flex;
  gap: 16px;
  align-items: start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(47, 111, 187, 0.09);
  border-radius: 12px;
  flex-shrink: 0;
}

.contact-details h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.contact-details p,
.contact-details a {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.contact-details a {
  color: var(--blue);
  font-weight: 600;
  transition: color 0.2s ease;
}

.contact-details a:hover {
  color: var(--blue-dark);
}

.social-links {
  padding: 36px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-lg);
}

.social-links h2 {
  margin: 0 0 24px;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.social-link:hover {
  transform: translateY(-3px);
  background: var(--surface-solid);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon svg {
  width: 24px;
  height: 24px;
  color: var(--text);
}

.social-link span {
  font-weight: 650;
  font-size: 0.94rem;
}

.faq-section {
  padding: 36px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-lg);
}

.faq-section h2 {
  margin: 0 0 24px;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* ===== Responsive Styles for New Pages ===== */

@media (max-width: 820px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .article-nav {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .about-intro {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-avatar {
    position: static;
    max-width: 250px;
    margin: 0 auto;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .social-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .blog-hero,
  .article-hero,
  .about-hero,
  .contact-hero {
    padding: 28px 0 24px;
  }

  .blog-card {
    padding: 20px;
  }

  .article-content {
    padding: 24px 0;
  }

  .article-content h2 {
    margin: 36px 0 16px;
  }

  .article-content pre {
    padding: 16px;
    border-radius: var(--radius-md);
  }

  .about-intro {
    margin-bottom: 56px;
  }

  .skills-section,
  .timeline-section,
  .projects-section {
    margin-bottom: 56px;
  }

  .timeline {
    padding-left: 30px;
  }

  .timeline::before {
    left: 10px;
  }

  .timeline-marker {
    left: -28px;
  }

  .contact-form-wrapper,
  .contact-info,
  .social-links,
  .faq-section {
    padding: 24px;
  }
}

/* ===== Auth & Comments ===== */

.auth-page {
  padding: 56px 0 72px;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: stretch;
}

.auth-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 520px;
  padding: 24px 0;
}

.auth-copy h1 {
  margin: 0 0 18px;
  text-align: left;
}

.auth-copy p {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.auth-points {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  max-width: 560px;
}

.auth-point {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(18px);
}

.auth-point span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(47, 111, 187, 0.1);
  color: var(--blue-dark);
  font-weight: 700;
}

.auth-point h3 {
  margin: 2px 0 6px;
  font-size: 1rem;
}

.auth-point p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.65;
}

.auth-card {
  padding: 28px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.auth-card h2 {
  margin: 0 0 10px;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.auth-card .muted {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.auth-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font: inherit;
}

.auth-field input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: rgba(47, 111, 187, 0.45);
  box-shadow: 0 0 0 4px rgba(47, 111, 187, 0.1);
}

.auth-message {
  min-height: 22px;
  font-size: 0.94rem;
  color: var(--muted);
}

.auth-message[data-state="success"] {
  color: #1a7f37;
}

.auth-message[data-state="error"] {
  color: #d70015;
}

.auth-footer {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.auth-footer a {
  color: var(--blue);
  font-weight: 600;
}

.article-comments {
  margin-top: 42px;
  padding-top: 34px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.comments-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.comments-head h2 {
  margin: 0;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
}

.comments-count {
  color: var(--muted);
  font-size: 0.94rem;
}

.comment-guest {
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(47, 111, 187, 0.14);
  border-radius: 20px;
  background: rgba(47, 111, 187, 0.06);
  color: var(--muted);
}

.comment-guest strong {
  color: var(--text);
}

.comment-guest p {
  margin: 8px 0 0;
}

.comment-guest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.comment-composer {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  margin-bottom: 22px;
}

.comment-composer[hidden] {
  display: none;
}

.comment-composer-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.comment-current-user {
  color: var(--muted);
  font-size: 0.94rem;
}

.comment-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}

.comment-reply-label {
  color: var(--blue);
  font-weight: 600;
}

.comment-cancel-reply {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.comment-form {
  display: grid;
  gap: 12px;
}

.comment-form textarea {
  width: 100%;
  min-height: 130px;
  padding: 14px 16px;
  resize: vertical;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font: inherit;
  line-height: 1.7;
}

.comment-form-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.comment-hint {
  color: var(--muted);
  font-size: 0.88rem;
}

.comment-list {
  display: grid;
  gap: 16px;
}

.comment-item {
  padding: 18px 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
}

.comment-item-reply {
  margin-left: 28px;
  border-left: 2px solid rgba(47, 111, 187, 0.15);
  padding-left: 16px;
}

.comment-item-admin {
  border-left: 3px solid #1a7f37;
}

.comment-item-admin .comment-author {
  color: #1a7f37;
}

.comment-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.comment-author {
  font-weight: 700;
}

.comment-meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 4px;
}

.comment-body {
  color: var(--text);
  line-height: 1.75;
  white-space: normal;
}

.comment-replies {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.comment-reply-btn {
  border: 0;
  background: rgba(47, 111, 187, 0.1);
  color: var(--blue-dark);
  padding: 8px 12px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.comment-reply-btn:hover {
  background: rgba(47, 111, 187, 0.2);
}

/* 内联回复输入框 */
.comment-inline-reply {
  margin-top: 12px;
}

.inline-reply-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inline-reply-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  min-height: 60px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.inline-reply-textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 111, 187, 0.12);
}

.inline-reply-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.inline-reply-cancel,
.inline-reply-submit {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

.inline-reply-cancel {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
}

.inline-reply-cancel:hover {
  background: rgba(0, 0, 0, 0.1);
}

.inline-reply-submit {
  background: var(--blue);
  color: #fff;
}

.inline-reply-submit:hover {
  background: #2563b8;
  transform: translateY(-1px);
}

.comment-empty {
  padding: 30px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(0, 0, 0, 0.12);
  border-radius: 20px;
}

.nav-user-chip,
.nav-logout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-user-chip {
  background: rgba(47, 111, 187, 0.08);
  color: var(--blue-dark);
}

.nav-logout-button {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.nav-logout-button:hover {
  border-color: rgba(47, 111, 187, 0.22);
  transform: translateY(-1px);
}

/* 用户下拉菜单 */
.nav-user-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-user-dropdown .nav-user-chip {
  cursor: pointer;
  border: none;
  background: rgba(47, 111, 187, 0.08);
  color: var(--blue-dark);
  padding: 0 16px;
  min-height: 40px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  transition: background-color 0.2s ease;
}

.nav-user-dropdown .nav-user-chip:hover {
  background: rgba(47, 111, 187, 0.15);
}

.nav-user-dropdown .nav-user-chip::after {
  content: "▼";
  font-size: 0.6em;
  margin-left: 6px;
  opacity: 0.6;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 100;
}

.nav-user-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  transition: background-color 0.15s ease;
}

.nav-dropdown-item:hover {
  background: rgba(47, 111, 187, 0.08);
  color: var(--blue-dark);
}

.nav-dropdown-icon {
  font-size: 1em;
}

.nav-dropdown-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 6px 0;
}

.nav-dropdown-logout:hover {
  background: rgba(215, 0, 21, 0.08);
  color: #d70015;
}

.toast-stack {
  position: fixed;
  top: 92px;
  right: 24px;
  z-index: 1000;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
}

.toast {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px);
  transform: translateY(-6px);
  opacity: 0;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  border-color: rgba(26, 127, 55, 0.18);
  color: #1a7f37;
}

.toast-error {
  border-color: rgba(215, 0, 21, 0.18);
  color: #d70015;
}

@media (max-width: 820px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-copy {
    min-height: auto;
    padding: 0;
  }

  .comments-head,
  .comment-composer-top,
  .comment-form-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .comment-toolbar {
    justify-content: flex-start;
  }

  .comment-item-reply {
    margin-left: 16px;
  }

  .toast-stack {
    top: 84px;
    right: 16px;
  }
}
