:root {
  --primary: #6d28d9;
  --primary-light: #8b5cf6;
  --primary-dark: #4c1d95;
  --accent: #fbbf24;
  --accent-soft: #fcd34d;
  --bg: #f8f7ff;
  --bg-elevated: #ffffff;
  --bg-muted: #f1eefe;
  --text: #1e1b2e;
  --text-soft: #4b4763;
  --text-muted: #6b6780;
  --border: rgba(109, 40, 217, 0.12);
  --border-strong: rgba(109, 40, 217, 0.22);
  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.55);
  --shadow-sm: 0 2px 8px rgba(76, 29, 149, 0.06);
  --shadow-md: 0 8px 28px rgba(76, 29, 149, 0.1);
  --shadow-lg: 0 18px 50px rgba(76, 29, 149, 0.16);
  --grad-hero: linear-gradient(135deg, #4c1d95 0%, #6d28d9 42%, #a855f7 76%, #f472b6 100%);
  --grad-accent: linear-gradient(135deg, #fbbf24 0%, #f472b6 100%);
  --grad-card: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(241, 238, 254, 0.72));
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #a78bfa;
    --primary-light: #c4b5fd;
    --primary-dark: #7c3aed;
    --accent: #fbbf24;
    --accent-soft: #fcd34d;
    --bg: #0d0a1a;
    --bg-elevated: #17122b;
    --bg-muted: #1e1836;
    --text: #f3f0ff;
    --text-soft: #cfc8ea;
    --text-muted: #9d95bd;
    --border: rgba(167, 139, 250, 0.16);
    --border-strong: rgba(167, 139, 250, 0.3);
    --glass-bg: rgba(23, 18, 43, 0.6);
    --glass-border: rgba(167, 139, 250, 0.18);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.42);
    --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.55);
    --grad-hero: linear-gradient(135deg, #1a1030 0%, #2e1065 40%, #5b21b6 74%, #9d174d 100%);
    --grad-card: linear-gradient(160deg, rgba(30, 24, 54, 0.92), rgba(23, 18, 43, 0.7));
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.78;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(139, 92, 246, 0.1), transparent 42%),
    radial-gradient(circle at 88% 24%, rgba(244, 114, 182, 0.08), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(251, 191, 36, 0.06), transparent 46%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.28s var(--ease), opacity 0.28s var(--ease);
}

a:hover {
  color: var(--primary-light);
}

strong {
  color: var(--primary-dark);
  font-weight: 700;
}

@media (prefers-color-scheme: dark) {
  strong {
    color: var(--primary-light);
  }
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}

li {
  margin-bottom: 0.5rem;
}

p {
  margin: 0 0 1rem;
  color: var(--text-soft);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.75rem;
  line-height: 1.32;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.7rem, 4.4vw, 2.9rem);
}

h2 {
  font-size: clamp(1.45rem, 3.2vw, 2.1rem);
  position: relative;
  padding-bottom: 0.6rem;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: var(--grad-accent);
}

h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  margin-top: 1.8rem;
}

h4 {
  font-size: 1.02rem;
  color: var(--primary);
  margin-top: 1.2rem;
}

@media (prefers-color-scheme: dark) {
  h4 {
    color: var(--primary-light);
  }
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.brand-logo {
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(109, 40, 217, 0.35);
  transition: transform 0.45s var(--ease);
}

.brand:hover .brand-logo {
  transform: rotate(-8deg) scale(1.06);
}

.brand-name {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(120deg, var(--primary-dark), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@media (prefers-color-scheme: dark) {
  .brand-name {
    background: linear-gradient(120deg, var(--primary-light), #f0abfc);
    -webkit-background-clip: text;
    background-clip: text;
  }
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
}

.main-nav li {
  margin: 0;
}

.main-nav a {
  display: inline-block;
  padding: 0.4rem 0.7rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  border-radius: 999px;
  position: relative;
  transition: color 0.28s var(--ease), background 0.28s var(--ease),
    transform 0.28s var(--ease);
}

.main-nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--grad-hero);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: -1;
}

.main-nav a:hover {
  color: #fff;
  transform: translateY(-1px);
}

.main-nav a:hover::before {
  opacity: 1;
  transform: scale(1);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--grad-hero);
  color: #fff;
  padding: clamp(2.6rem, 7vw, 5.4rem) 1.25rem clamp(3rem, 8vw, 6rem);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  margin-bottom: 1.5rem;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  z-index: -1;
  animation: floatBlob 14s ease-in-out infinite;
}

.hero::before {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #fbbf24, transparent 68%);
  top: -160px;
  right: -80px;
}

.hero::after {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #f472b6, transparent 68%);
  bottom: -180px;
  left: -100px;
  animation-delay: -7s;
}

@keyframes floatBlob {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(24px, -26px, 0) scale(1.12);
  }
}

.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
  animation: fadeUp 0.9s var(--ease) both;
}

.hero h1 {
  color: #fff;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.28);
  margin-bottom: 1.2rem;
}

.hero-lead {
  max-width: 860px;
  margin: 0 auto 1rem;
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.9;
}

.hero-lead strong {
  color: var(--accent);
  font-weight: 800;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 999px;
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease),
    background 0.32s var(--ease), color 0.32s var(--ease);
  will-change: transform;
}

.btn-primary {
  background: var(--grad-accent);
  color: #3b1d00;
  box-shadow: 0 10px 30px rgba(251, 191, 36, 0.4);
}

.btn-primary:hover {
  color: #3b1d00;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 40px rgba(251, 191, 36, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.26);
  transform: translateY(-3px) scale(1.03);
}

/* ============ Breadcrumb ============ */
.breadcrumb {
  max-width: var(--maxw);
  margin: 0 auto 1rem;
  padding: 0 1.25rem;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.6rem 1rem;
  font-size: 0.86rem;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  width: fit-content;
  box-shadow: var(--shadow-sm);
}

.breadcrumb li {
  margin: 0;
  color: var(--text-muted);
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 0.4rem;
  color: var(--primary);
  font-weight: 700;
}

.breadcrumb a {
  color: var(--text-soft);
  font-weight: 600;
}

.breadcrumb a:hover {
  color: var(--primary);
}

/* ============ Sections ============ */
.section {
  max-width: var(--maxw);
  margin: 0 auto 1.6rem;
  padding: clamp(1.6rem, 3.6vw, 2.8rem) clamp(1.1rem, 3vw, 2.2rem);
  background: var(--grad-card);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
    border-color 0.45s var(--ease);
  animation: fadeUp 0.8s var(--ease) both;
}

.section:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.section > h2:first-child {
  margin-top: 0;
}

.section p:last-child,
.section ul:last-child,
.section ol:last-child,
.section dl:last-child {
  margin-bottom: 0;
}

/* ============ Timeline ============ */
.timeline {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 2px;
  opacity: 0.5;
}

.timeline li {
  position: relative;
  padding: 0.5rem 0 0.5rem 2.2rem;
  margin: 0;
  color: var(--text-soft);
  border-radius: var(--radius-sm);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 1.05rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.12);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.timeline li:hover {
  background: rgba(139, 92, 246, 0.08);
  transform: translateX(4px);
}

.timeline li:hover::before {
  background: var(--accent);
  transform: scale(1.2);
}

.timeline strong {
  color: var(--primary);
  margin-right: 0.4rem;
}

/* ============ Definition lists ============ */
.team dt,
.scenarios dt,
.contact-info dt {
  font-weight: 800;
  color: var(--primary);
  margin-top: 1rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.team dt::before,
.scenarios dt::before,
.contact-info dt::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--grad-accent);
  flex-shrink: 0;
}

@media (prefers-color-scheme: dark) {
  .team dt,
  .scenarios dt,
  .contact-info dt {
    color: var(--primary-light);
  }
}

.team dd,
.scenarios dd,
.contact-info dd {
  margin: 0.25rem 0 0 1.4rem;
  color: var(--text-soft);
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.4rem 1.6rem;
  margin: 1rem 0 1.4rem;
}

.contact-info dt {
  margin-top: 0.6rem;
}

.contact-info dd {
  margin-left: 0;
  padding: 0.55rem 0.9rem;
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.contact-info dd:hover {
  transform: translateX(3px);
  box-shadow: var(--shadow-sm);
}

/* ============ Blockquote ============ */
blockquote {
  margin: 1rem 0;
  padding: 1.1rem 1.3rem 1.1rem 1.6rem;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

blockquote::before {
  content: "“";
  position: absolute;
  top: -0.2rem;
  left: 0.6rem;
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.35;
  font-family: Georgia, serif;
}

blockquote:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

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

/* ============ Article cards ============ */
.article-card {
  padding: 1.3rem 1.4rem;
  margin: 1rem 0;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.article-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(139, 92, 246, 0.12), transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
  pointer-events: none;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.article-card:hover::after {
  transform: translateX(120%);
}

.article-card h3 {
  margin-top: 0;
  font-size: 1.12rem;
  transition: color 0.3s var(--ease);
}

.article-card:hover h3 {
  color: var(--primary);
}

@media (prefers-color-scheme: dark) {
  .article-card:hover h3 {
    color: var(--primary-light);
  }
}

.article-card .meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  letter-spacing: 0.01em;
}

.article-card a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

.article-card a::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

.article-card a:hover::after {
  transform: translateX(4px);
}

/* ============ FAQ details ============ */
details {
  margin: 0.7rem 0;
  padding: 0;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease),
    transform 0.35s var(--ease);
}

details:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

details[open] {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

summary {
  padding: 1rem 1.2rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 3rem;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  user-select: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  transition: transform 0.35s var(--ease), color 0.35s var(--ease);
  line-height: 1;
}

details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}

summary:hover {
  background: rgba(139, 92, 246, 0.08);
  color: var(--primary);
}

@media (prefers-color-scheme: dark) {
  summary:hover {
    color: var(--primary-light);
  }
}

details > p {
  margin: 0;
  padding: 0 1.2rem 1.1rem;
  color: var(--text-soft);
  animation: fadeUp 0.45s var(--ease) both;
}

/* ============ Sitemap & links ============ */
.sitemap-list,
.friend-links {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.sitemap-list li,
.friend-links li {
  margin: 0;
}

.sitemap-list a,
.friend-links a {
  display: inline-block;
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
    color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.sitemap-list a:hover,
.friend-links a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(109, 40, 217, 0.3);
  border-color: transparent;
}

/* ============ Footer ============ */
.site-footer {
  margin-top: 2.5rem;
  padding: 2.4rem 1.25rem 1.6rem;
  background: var(--grad-hero);
  color: rgba(255, 255, 255, 0.86);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.35), transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-inner p {
  margin: 0.35rem 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
}

.footer-brand {
  font-size: 1.15rem !important;
  font-weight: 800;
  color: #fff !important;
  margin-bottom: 0.8rem !important;
  letter-spacing: 0.02em;
}

.footer-inner .copyright {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.62) !important;
}

.site-footer nav {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 0.6rem;
  font-size: 0.86rem;
}

.site-footer nav a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  transition: color 0.28s var(--ease), background 0.28s var(--ease);
}

.site-footer nav a:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
}

/* ============ Animations ============ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@supports (animation-timeline: view()) {
  .section {
    animation: fadeUp 0.9s var(--ease) both;
    animation-timeline: view();
    animation-range: entry 0% entry 32%;
  }

  .article-card {
    animation: fadeUp 0.8s var(--ease) both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
  }

  .brand {
    justify-content: center;
  }

  .main-nav ul {
    justify-content: center;
    gap: 0.1rem 0.2rem;
  }

  .main-nav a {
    padding: 0.35rem 0.6rem;
    font-size: 0.84rem;
  }

  .hero {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
    line-height: 1.72;
  }

  .section {
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    padding: 1.4rem 1rem;
  }

  .hero {
    padding: 2.2rem 1rem 2.6rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding: 0.8rem 1.4rem;
  }

  .breadcrumb ol {
    font-size: 0.8rem;
    padding: 0.5rem 0.85rem;
  }

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

  .timeline li {
    padding-left: 1.9rem;
  }

  .sitemap-list a,
  .friend-links a {
    font-size: 0.82rem;
    padding: 0.4rem 0.85rem;
  }

  summary {
    padding: 0.9rem 2.6rem 0.9rem 1rem;
    font-size: 0.95rem;
  }

  summary::after {
    right: 1rem;
  }

  details > p {
    padding: 0 1rem 1rem;
  }

  blockquote {
    padding: 1rem 1rem 1rem 1.3rem;
  }

  .site-footer {
    padding: 2rem 1rem 1.4rem;
  }
}

@media (max-width: 380px) {
  .main-nav a {
    padding: 0.3rem 0.5rem;
    font-size: 0.78rem;
  }

  .brand-name {
    font-size: 1.05rem;
  }
}

/* ============ Focus & selection ============ */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

::selection {
  background: var(--primary);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-muted);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--primary-light));
  border-radius: 999px;
  border: 2px solid var(--bg-muted);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}