@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700&family=Noto+Serif+TC:wght@400;500;600;700&display=swap');

/* ===== 变量 ===== */
:root {
  --green: #87ff71;
  --yellow: #ffce5c;
  --dark: #192617;
  --dark2: #1e2e1a;
  --dark3: #243320;
  --text: #e8f5e2;
  --text-muted: #a8c4a0;
  --border: #87ff71;
  --radius: 0;
  --header-h: 64px;
  --font-serif: 'Noto Serif TC', serif;
  --font-sans: 'Noto Sans TC', sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--dark);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== Site Wrap ===== */
.site-wrap { display: flex; flex-direction: column; min-height: 100vh; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--dark);
  border-bottom: 2px solid var(--green);
  height: var(--header-h);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--green);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
  min-height: 40px;
}
.brand:hover { text-decoration: none; color: var(--yellow); }
.brand-logo { width: 32px; height: 32px; }

/* Main Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}
.nav-link {
  color: var(--text);
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  min-height: 40px;
  display: flex;
  align-items: center;
}
.nav-link:hover { color: var(--green); text-decoration: none; }

/* Nav Group Dropdown */
.nav-group { position: relative; }
.nav-group-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  padding: 0.5rem 0.75rem;
  min-height: 40px;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-group-btn:hover,
.nav-group-btn[aria-expanded="true"] {
  color: var(--green);
  border-color: var(--green);
}
.nav-arr { font-size: 0.75rem; transition: transform 0.2s; }
.nav-group-btn[aria-expanded="true"] .nav-arr { transform: rotate(180deg); }

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  background: var(--dark2);
  border: 2px solid var(--green);
  min-width: 260px;
  z-index: 300;
  flex-direction: column;
}
.nav-dropdown.open { display: flex; }
.nav-dropdown a {
  color: var(--text);
  font-size: 0.875rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--dark3);
  min-height: 40px;
  display: flex;
  align-items: center;
}
.nav-dropdown a:hover { background: var(--dark3); color: var(--green); text-decoration: none; }

/* CTA Button */
.cta-btn {
  margin-left: auto;
  background: var(--green);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  min-height: 40px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  border: 2px solid var(--green);
  transition: background 0.2s, color 0.2s;
}
.cta-btn:hover { background: var(--yellow); border-color: var(--yellow); color: var(--dark); text-decoration: none; }

/* Nav Toggle (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  min-height: 40px;
  min-width: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--green);
  transition: transform 0.2s, opacity 0.2s;
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--dark2);
  border-bottom: 2px solid var(--green);
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 190;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--text);
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--dark3);
  font-size: 0.95rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.mobile-nav a:hover { color: var(--green); text-decoration: none; }

/* ===== Wrap ===== */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
}

/* ===== Layout With Aside ===== */
.layout-with-aside {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}
.main-col { min-width: 0; }

/* ===== Hero ===== */
.hero-section {
  position: relative;
  min-height: 70vh;
  background: var(--dark2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-inner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 5rem;
  position: relative;
  z-index: 2;
  text-align: center;
  flex-direction: column;
  gap: 1.5rem;
}
.hero-content { max-width: 720px; }
.hero-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.3rem 0.9rem;
  letter-spacing: 0.1em;
  transform: rotate(-2deg);
  margin-bottom: 1rem;
}
.hero-h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1.25;
  margin-bottom: 1rem;
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--green);
  color: var(--dark);
  font-weight: 700;
  padding: 0.75rem 2rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--green);
  transition: background 0.2s, color 0.2s;
}
.btn-primary:hover { background: var(--yellow); border-color: var(--yellow); text-decoration: none; }
.btn-secondary {
  background: transparent;
  color: var(--green);
  font-weight: 700;
  padding: 0.75rem 2rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--green);
  transition: background 0.2s, color 0.2s;
}
.btn-secondary:hover { background: var(--green); color: var(--dark); text-decoration: none; }
.hero-cut {
  height: 60px;
  background: var(--dark);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  position: relative;
  z-index: 2;
}
.hero-media img { max-height: 300px; object-fit: cover; margin: 0 auto; }

/* Memphis Shapes */
.shape { position: absolute; }
.shape-tri1 {
  width: 0; height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 100px solid var(--green);
  opacity: 0.12;
  top: 10%; left: 5%;
  transform: rotate(15deg);
}
.shape-circle1 {
  width: 120px; height: 120px;
  border: 8px solid var(--yellow);
  border-radius: 50%;
  opacity: 0.15;
  top: 20%; right: 8%;
}
.shape-sq1 {
  width: 60px; height: 60px;
  background: var(--yellow);
  opacity: 0.1;
  bottom: 20%; left: 10%;
  transform: rotate(30deg);
}
.shape-squig1 {
  width: 80px; height: 80px;
  border: 6px dashed var(--green);
  border-radius: 50% 20% 50% 20%;
  opacity: 0.15;
  bottom: 15%; right: 12%;
  transform: rotate(-20deg);
}
.shape-tri2 {
  width: 0; height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 70px solid var(--yellow);
  opacity: 0.12;
  top: 15%; right: 5%;
  transform: rotate(-10deg);
}
.shape-dot-grid {
  width: 100px; height: 100px;
  background-image: radial-gradient(var(--green) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  opacity: 0.2;
  bottom: 20%; left: 5%;
}
.shape-circle2 {
  width: 90px; height: 90px;
  border: 6px solid var(--green);
  border-radius: 50%;
  opacity: 0.13;
  top: 20%; left: 8%;
}
.shape-tri3 {
  width: 0; height: 0;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-bottom: 80px solid var(--yellow);
  opacity: 0.12;
  bottom: 10%; right: 8%;
  transform: rotate(20deg);
}

/* ===== Page Banner (non-home) ===== */
.page-banner {
  position: relative;
  background: var(--dark2);
  border-bottom: 2px solid var(--green);
  overflow: hidden;
  padding: 3rem 1.5rem;
}
.banner-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.banner-h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1.3;
  margin: 0.5rem 0 0.75rem;
}
.banner-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.banner-shapes { position: absolute; inset: 0; pointer-events: none; }

/* ===== Eyebrow Tags ===== */
.eyebrow-tag {
  display: inline-block;
  background: var(--green);
  color: var(--dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.eyebrow-yellow { background: var(--yellow); }

/* ===== Content Sections ===== */
.content-section { margin-bottom: 2rem; }
.page-article { }

/* ===== Prose ===== */
.prose { font-size: 1rem; line-height: 1.8; color: var(--text); }
.prose h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--green);
  margin: 2rem 0 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--dark3);
}
.prose h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--yellow);
  margin: 1.5rem 0 0.4rem;
}
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { margin: 0.75rem 0 1rem 1.5rem; }
.prose li { margin-bottom: 0.4rem; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.prose th {
  background: var(--dark3);
  color: var(--green);
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--dark3);
  text-align: left;
  font-family: var(--font-serif);
}
.prose td {
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--dark3);
  vertical-align: top;
}
.prose tr:nth-child(even) td { background: var(--dark2); }
.prose a { color: var(--green); border-bottom: 1px solid currentColor; }
.prose a:hover { color: var(--yellow); }
.prose strong { color: var(--yellow); font-weight: 700; }
.prose blockquote {
  border-left: 4px solid var(--green);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--dark2);
  color: var(--text-muted);
}
.prose-narrow { max-width: 720px; }

/* ===== Subtitle ===== */
.subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* ===== h1 inside article (non-banner pages) ===== */
.about-h1, .privacy-h1, .review-h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1.3;
  margin: 0.5rem 0 0.75rem;
}

/* ===== Dates ===== */
.art-date, .art-date-mod {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-right: 0.75rem;
  margin-bottom: 1rem;
}

/* ===== Aside ===== */
.site-aside {
  background: var(--dark2);
  border: 2px solid var(--dark3);
  border-left: 4px solid var(--green);
  padding: 1.25rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.site-aside h2 {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--yellow);
  margin-bottom: 0.25rem;
  margin-top: 1rem;
}
.site-aside h2:first-child { margin-top: 0; }
.site-aside .subtitle { font-size: 0.8rem; margin-bottom: 0.5rem; }
.aside-link {
  display: block;
  color: var(--text);
  font-size: 0.875rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--dark3);
  min-height: 36px;
  display: flex;
  align-items: center;
}
.aside-link:hover { color: var(--green); text-decoration: none; }

/* ===== Featured Cards (home) ===== */
.featured-section { margin-top: 2rem; }
.featured-section h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--green);
  margin-bottom: 0.25rem;
}
.feat-card {
  display: flex;
  gap: 1rem;
  border: 2px solid var(--dark3);
  border-left: 4px solid var(--yellow);
  padding: 1rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}
.feat-card:hover { border-left-color: var(--green); }
.card-thumb { flex-shrink: 0; width: 120px; }
.card-thumb img { width: 120px; height: 80px; object-fit: cover; }
.card-body { flex: 1; min-width: 0; }
.card-title { font-family: var(--font-serif); font-size: 1rem; margin-bottom: 0.4rem; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--green); text-decoration: none; }
.card-desc { font-size: 0.875rem; margin-bottom: 0.4rem; }
.card-date { font-size: 0.78rem; color: var(--text-muted); }

/* ===== Related Cards ===== */
.related-section { margin-top: 2rem; border-top: 2px solid var(--dark3); padding-top: 1.5rem; }
.related-section h2 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--green);
  margin-bottom: 0.25rem;
}
.rel-card {
  border: 1px solid var(--dark3);
  border-left: 3px solid var(--green);
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s;
}
.rel-card:hover { border-left-color: var(--yellow); }
.rel-card h3 { font-family: var(--font-serif); font-size: 0.95rem; margin-bottom: 0.3rem; }
.rel-card h3 a { color: var(--text); }
.rel-card h3 a:hover { color: var(--green); text-decoration: none; }
.rel-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.rel-card time { font-size: 0.78rem; color: var(--text-muted); }

/* ===== About / Review / Privacy Specific ===== */
.about-header, .privacy-header { margin-bottom: 1.5rem; }
.about-lead, .privacy-lead, .review-lead { font-size: 1.05rem; }
.review-meta-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.review-hero-wrap { margin: 1rem 0 1.5rem; }
.review-hero-img { width: 100%; max-height: 400px; object-fit: cover; }

/* ===== Footer Nav Block ===== */
.footer-nav-block {
  background: var(--dark2);
  border-top: 2px solid var(--dark3);
  padding: 2.5rem 1.5rem;
}
.footer-nav-block nav { max-width: 1280px; margin: 0 auto; }
.footer-dl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem 2rem;
}
.footer-dl dt {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--yellow);
  font-size: 0.85rem;
  margin-top: 0.75rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--dark3);
  grid-column: span 1;
}
.footer-dl dt:first-child { margin-top: 0; }
.footer-dl dd { margin: 0; }
.footer-dl dd a {
  color: var(--text-muted);
  font-size: 0.825rem;
  line-height: 1.8;
  display: block;
  min-height: 28px;
}
.footer-dl dd a:hover { color: var(--green); text-decoration: none; }

/* ===== Footer ===== */
.site-footer {
  background: var(--dark);
  border-top: 1px solid var(--dark3);
  padding: 1.25rem 1.5rem;
  text-align: center;
}
.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.footer-small {
  font-size: 0.78rem;
  color: var(--dark3);
  color: #4a6644;
}

/* ===== About Layout ===== */
.about-section, .privacy-section { width: 100%; }

/* ===== Animations ===== */
@media (prefers-reduced-motion: no-preference) {
  .feat-card { animation: fadeUp 0.4s ease both; }
  .feat-card:nth-child(1) { animation-delay: 0.05s; }
  .feat-card:nth-child(2) { animation-delay: 0.1s; }
  .feat-card:nth-child(3) { animation-delay: 0.15s; }
  .feat-card:nth-child(4) { animation-delay: 0.2s; }
  .feat-card:nth-child(5) { animation-delay: 0.25s; }
  .feat-card:nth-child(6) { animation-delay: 0.3s; }
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .layout-with-aside {
    grid-template-columns: 1fr;
  }
  .site-aside {
    position: static;
  }
  .footer-dl {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .cta-btn { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .hero-inner { padding: 4rem 1rem 3rem; }
  .hero-h1 { font-size: 1.6rem; }
  .banner-h1 { font-size: 1.4rem; }
  .feat-card { flex-direction: column; }
  .card-thumb { width: 100%; }
  .card-thumb img { width: 100%; height: 160px; }
}

@media (max-width: 480px) {
  .footer-dl { grid-template-columns: 1fr; }
  .wrap { padding: 1.25rem 1rem; }
  .page-banner { padding: 2rem 1rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}
