@import url('https://fonts.googleapis.com/css2?family=Cormorant+Infant:wght@300;400;500;600;700&family=Great+Vibes&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: #192617;
  color: #e8f5e2;
}

body {
  font-family: 'Cormorant Infant', 'Noto Serif SC', Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.75;
  background: #192617;
  color: #e8f5e2;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Layout Root ── */
.site-root {
  display: flex;
  min-height: 100vh;
}

/* ── Left Fixed Nav ── */
.side-nav-footer {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100vh;
  background: #0e1a0c;
  border-right: 2.5px dashed #87ff71;
  display: flex;
  flex-direction: column;
  z-index: 100;
  padding: 2rem 1.2rem 1.5rem;
  overflow-y: auto;
  overflow-x: hidden;
}

.nav-brand {
  margin-bottom: 2rem;
  text-align: left;
}

.brand-link {
  text-decoration: none;
  display: inline-block;
}

.brand-script {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  color: #87ff71;
  letter-spacing: 0.02em;
  line-height: 1.2;
  display: block;
  text-shadow: 0 0 16px #87ff71aa, 0 0 40px #87ff7144;
  transition: text-shadow 0.3s;
}

.brand-link:hover .brand-script {
  text-shadow: 0 0 24px #ffce5c, 0 0 60px #ffce5c88;
  color: #ffce5c;
}

.side-nav { flex: 1; }

.nav-dl { list-style: none; }

.nav-dl dt {
  margin-bottom: 0.25rem;
}

.nav-dl dt a {
  display: block;
  color: #c8e8c0;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  border-left: 3px solid transparent;
  transition: all 0.22s;
  letter-spacing: 0.03em;
  min-height: 40px;
  line-height: 1.4;
  display: flex;
  align-items: center;
}

.nav-dl dt a:hover,
.nav-dl dt a:focus {
  color: #192617;
  background: #87ff71;
  border-left-color: #ffce5c;
  padding-left: 1.1rem;
}

.nav-deco {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
}

.deco-tri {
  display: block;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 24px solid #ffce5c;
  opacity: 0.5;
  transform: rotate(15deg);
}

.deco-dot-grid {
  display: block;
  width: 48px;
  height: 24px;
  background-image: radial-gradient(circle, #87ff71 1.5px, transparent 1.5px);
  background-size: 8px 8px;
  opacity: 0.35;
}

/* ── Main Wrapper ── */
.main-wrapper {
  margin-left: 220px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ── Hero ── */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 5rem 4rem 3rem 3rem;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, #1e2e1a 0px, #1e2e1a 2px, transparent 2px, transparent 28px),
    repeating-linear-gradient(45deg, #22331e 0px, #22331e 1px, transparent 1px, transparent 20px),
    linear-gradient(160deg, #192617 60%, #0e1a0c 100%);
  scroll-margin-top: 0;
}

.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  font-family: 'Great Vibes', cursive;
  font-size: clamp(6rem, 20vw, 18rem);
  color: #87ff71;
  opacity: 0.05;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: 0.05em;
  mix-blend-mode: screen;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: right;
  max-width: 640px;
}

.hero-eyebrow {
  font-size: 0.88rem;
  letter-spacing: 0.2em;
  color: #ffce5c;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  font-family: 'Cormorant Infant', serif;
  font-weight: 600;
}

.hero-title {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3rem, 9vw, 7rem);
  color: #87ff71;
  line-height: 1.1;
  text-shadow: 0 0 30px #87ff7166, 0 0 80px #87ff7122;
  margin-bottom: 1.2rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: #b8d8b0;
  line-height: 1.7;
  font-style: italic;
}

/* Hero Shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape { position: absolute; display: block; }

.shape-tri-1 {
  top: 12%;
  left: 6%;
  width: 0; height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 70px solid #ffce5c;
  opacity: 0.6;
  transform: rotate(18deg);
  animation: floatA 6s ease-in-out infinite;
}

.shape-circle-1 {
  bottom: 18%;
  left: 18%;
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 4px dotted #87ff71;
  opacity: 0.4;
  animation: spin 18s linear infinite;
}

.shape-wave {
  top: 60%;
  left: 5%;
  width: 120px; height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 30'%3E%3Cpath d='M0,15 Q30,0 60,15 Q90,30 120,15' stroke='%2387ff71' stroke-width='3' fill='none'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: 0.5;
  animation: floatB 8s ease-in-out infinite;
}

.shape-tri-2 {
  top: 30%;
  right: 3%;
  width: 0; height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 36px solid #87ff71;
  opacity: 0.35;
  transform: rotate(-20deg);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  animation: floatA 10s ease-in-out infinite reverse;
}

.shape-dot {
  bottom: 10%;
  right: 10%;
  width: 60px; height: 60px;
  background-image: radial-gradient(circle, #ffce5c 2px, transparent 2px);
  background-size: 10px 10px;
  opacity: 0.4;
  animation: floatB 12s ease-in-out infinite;
}

@keyframes floatA {
  0%, 100% { transform: translateY(0) rotate(18deg); }
  50% { transform: translateY(-16px) rotate(22deg); }
}
@keyframes floatB {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(12px); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── Page Main ── */
.page-main {
  flex: 1;
  padding: 3rem 3rem 4rem;
}

.content-with-aside {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 3rem;
  align-items: start;
  max-width: 1200px;
}

/* ── Article & Content ── */
.page-article { min-width: 0; }

.content-section {
  /* page.content 的直接容器 */
}

/* Content 内部样式（page.content 的 HTML） */
.content-section article {
  scroll-margin-top: 90px;
  padding: 2.8rem 0 2.2rem;
  border-bottom: 1.5px solid #2e4a28;
  position: relative;
}

.content-section article:last-child {
  border-bottom: none;
}

.content-section h2 {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #87ff71;
  margin-bottom: 1.2rem;
  line-height: 1.2;
  text-shadow: 0 0 18px #87ff7133;
}

.content-section h2 span {
  display: inline;
}

.content-section h3 {
  font-family: 'Cormorant Infant', serif;
  font-size: 1.4rem;
  color: #ffce5c;
  margin: 1.6rem 0 0.8rem;
  font-weight: 600;
}

.content-section h3 span {
  display: inline;
}

.content-section p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #cce0c4;
  margin-bottom: 1rem;
}

.content-section ul,
.content-section ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
  color: #cce0c4;
}

.content-section li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
}

.content-section a {
  color: #87ff71;
  text-decoration: underline wavy #ffce5c;
  transition: color 0.2s;
}

.content-section a:hover {
  color: #ffce5c;
}

.content-section strong {
  color: #ffce5c;
  font-weight: 700;
}

.content-section blockquote {
  border-left: 4px solid #87ff71;
  padding: 0.8rem 1.2rem;
  margin: 1.2rem 0;
  background: #1e2e1a;
  border-radius: 0 10px 10px 0;
  color: #b8d8b0;
  font-style: italic;
}

/* ── Aside Sidebar ── */
.sidebar-aside {
  position: sticky;
  top: 2rem;
  min-width: 0;
}

.aside-inner {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(135, 255, 113, 0.18);
  border-radius: 18px;
  padding: 1.6rem 1.4rem;
  position: relative;
  overflow: hidden;
}

.aside-inner::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 70px;
  height: 70px;
  background: #ffce5c;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  opacity: 0.12;
  transform: rotate(30deg);
}

.aside-title {
  font-family: 'Cormorant Infant', serif;
  font-size: 1rem;
  color: #ffce5c;
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aside-title span { display: inline; }

.aside-list {
  list-style: none;
  padding: 0;
}

.aside-list li {
  margin-bottom: 0.3rem;
}

.aside-list a {
  display: block;
  color: #b8d8b0;
  text-decoration: none;
  font-size: 0.93rem;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: all 0.2s;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.aside-list a:hover,
.aside-list a:focus {
  color: #192617;
  background: #87ff71;
  border-left-color: #ffce5c;
}

.aside-deco {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-top: 1rem;
  opacity: 0.7;
}

/* ── Footer ── */
.page-footer {
  background: #0e1a0c;
  border-top: 2.5px dashed #87ff71;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.footer-section {
  padding: 2.4rem 2rem;
  position: relative;
}

.footer-section + .footer-section {
  border-left: 1px solid #2e4a28;
}

.footer-brand-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer-brand-script {
  font-family: 'Great Vibes', cursive;
  font-size: 2.4rem;
  color: #87ff71;
  text-shadow: 0 0 20px #87ff7155;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.88rem;
  color: #7a9e72;
  line-height: 1.6;
  font-style: italic;
}

.footer-shapes {
  margin-top: 1rem;
  opacity: 0.6;
}

.footer-links-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer-nav-dl {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-nav-dl dd {
  margin: 0;
}

.footer-nav-dl dd a {
  display: flex;
  align-items: center;
  color: #8fbf88;
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.42rem 0.6rem;
  border-radius: 5px;
  transition: all 0.2s;
  min-height: 40px;
  border-left: 2px solid transparent;
}

.footer-nav-dl dd a:hover,
.footer-nav-dl dd a:focus {
  color: #192617;
  background: #87ff71;
  border-left-color: #ffce5c;
}

.footer-copy-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.footer-copy {
  font-size: 0.88rem;
  color: #5a7a54;
  margin-bottom: 0.5rem;
}

.footer-note {
  font-size: 0.8rem;
  color: #4a6645;
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.footer-deco {
  display: flex;
  justify-content: center;
}

/* ── Scroll Margin for Sections ── */
article[id] {
  scroll-margin-top: 80px;
}

/* ── Stagger Reveal Animation ── */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes revealLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: translateX(0); }
}

.js-reveal {
  opacity: 0;
}

.js-reveal.revealed {
  animation: revealUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.js-reveal-left.revealed {
  animation: revealLeft 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* stagger delays */
.js-stagger-1 { animation-delay: 0.08s; }
.js-stagger-2 { animation-delay: 0.16s; }
.js-stagger-3 { animation-delay: 0.24s; }
.js-stagger-4 { animation-delay: 0.32s; }
.js-stagger-5 { animation-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .js-reveal, .js-reveal.revealed, .js-reveal-left.revealed {
    animation: none;
    opacity: 1;
    transform: none;
  }
  html { scroll-behavior: auto; }
  .shape-tri-1, .shape-circle-1, .shape-wave, .shape-tri-2, .shape-dot {
    animation: none;
  }
}

/* ── Memphis Card Style for content blocks ── */
.content-section article {
  background: rgba(30, 46, 26, 0.5);
  border-radius: 18px;
  padding: 2.2rem 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(135, 255, 113, 0.1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.content-section article::after {
  content: '';
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 50px;
  height: 50px;
  background-image: radial-gradient(circle, #ffce5c 2px, transparent 2px);
  background-size: 8px 8px;
  opacity: 0.18;
  pointer-events: none;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .side-nav-footer {
    width: 180px;
  }
  .main-wrapper {
    margin-left: 180px;
  }
  .content-with-aside {
    grid-template-columns: 1fr 220px;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .side-nav-footer {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    max-height: 48px;
    border-right: none;
    border-top: 2px solid #87ff71;
    flex-direction: row;
    align-items: center;
    padding: 0 1rem;
    overflow: visible;
    z-index: 200;
    background: #0e1a0c;
    transition: max-height 0.3s;
  }

  .side-nav-footer.nav-open {
    max-height: 70vh;
    overflow-y: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    height: auto;
  }

  .nav-brand {
    margin-bottom: 0;
    margin-right: auto;
    display: flex;
    align-items: center;
  }

  .side-nav-footer:not(.nav-open) .side-nav,
  .side-nav-footer:not(.nav-open) .nav-deco {
    display: none;
  }

  .side-nav-footer.nav-open .nav-brand {
    margin-bottom: 1rem;
    margin-right: 0;
  }

  .brand-script { font-size: 1.5rem; }

  .main-wrapper {
    margin-left: 0;
    padding-bottom: 60px;
  }

  .hero-section {
    min-height: 70vh;
    padding: 3rem 1.5rem 2.5rem;
    justify-content: flex-end;
    align-items: flex-end;
  }

  .hero-content {
    text-align: right;
  }

  .content-with-aside {
    grid-template-columns: 1fr;
  }

  .sidebar-aside {
    position: static;
    margin-top: 2rem;
  }

  .page-main {
    padding: 2rem 1.2rem 3rem;
  }

  .page-footer {
    grid-template-columns: 1fr;
  }

  .footer-section + .footer-section {
    border-left: none;
    border-top: 1px solid #2e4a28;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #87ff71;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.5rem;
    min-height: 40px;
    min-width: 40px;
  }
}

@media (min-width: 769px) {
  .nav-toggle { display: none; }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.6rem;
  }

  .content-section h2 {
    font-size: 1.7rem;
  }

  .content-section article {
    padding: 1.5rem 1rem;
  }
}
