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

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --c-green: #80ff00;
  --c-green2: #00ff00;
  --c-dark: #1f2617;
  --c-dark2: #2a331e;
  --c-dark3: #374428;
  --c-text: #e8f5d0;
  --c-text-dim: #a8c870;
  --c-border: #3a4a28;
  --c-card-bg: #242e18;
  --c-white: #f0ffe0;
  --radius: 18px;
  --radius-sm: 10px;
  --font-main: 'Lexend', 'Source Sans 3', system-ui, sans-serif;
  --header-h: 60px;
  --marquee-h: 36px;
}

html {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-dark);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--c-dark);
}

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

a {
  color: var(--c-green);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--c-green2);
  text-decoration: underline;
}

ul, menu {
  list-style: none;
}

/* ===== MARQUEE BAR ===== */
.marquee-bar {
  background: var(--c-green);
  color: var(--c-dark);
  height: var(--marquee-h);
  overflow: hidden;
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  position: relative;
  z-index: 100;
}

.marquee-inner {
  display: flex;
  white-space: nowrap;
  animation: marquee-scroll 24s linear infinite;
  will-change: transform;
}

.marquee-inner span {
  display: inline-block;
  padding-right: 2rem;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--c-dark);
  border-bottom: 2px solid var(--c-green);
  height: var(--header-h);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.brand-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-green);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.logo-mark {
  height: 36px;
  width: auto;
}

/* ===== NAV (details > summary + menu > li > a) ===== */
.nav-details {
  position: relative;
}

.nav-details[open] .nav-overlay {
  display: flex;
}

.nav-details[open] .ham-bar {
  opacity: 0;
}

.nav-details[open] .ham-close {
  display: block;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  list-style: none;
  padding: 8px;
  border: 2px solid var(--c-green);
  border-radius: var(--radius-sm);
  background: transparent;
  position: relative;
  z-index: 300;
}

.hamburger::-webkit-details-marker { display: none; }

.ham-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-green);
  border-radius: 2px;
  transition: opacity 0.2s;
}

.ham-close {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  color: var(--c-green);
  font-weight: 700;
  line-height: 1;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(31, 38, 23, 0.97);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  max-height: 80vh;
  overflow-y: auto;
}

.nav-menu li a {
  display: block;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  color: var(--c-text);
  padding: 0.75rem 2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-border);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  min-height: 44px;
  line-height: 1.3;
}

.nav-menu li a:hover {
  background: var(--c-green);
  color: var(--c-dark);
  border-color: var(--c-green);
}

/* ===== PAGE WRAP ===== */
.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-wrap > main {
  flex: 1;
}

/* ===== EYEBROW / SMALL ===== */
small.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-green);
  margin-bottom: 0.4rem;
}

/* ===== HERO (home) ===== */
.hero-section {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.hero-figure {
  position: relative;
  background: var(--c-dark2);
  overflow: hidden;
  min-height: 60vh;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(140%);
}

.hero-placeholder {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: linear-gradient(135deg, var(--c-dark2) 0%, var(--c-dark3) 50%, var(--c-dark) 100%);
  position: relative;
}

.hero-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(128, 255, 0, 0.05) 20px,
    rgba(128, 255, 0, 0.05) 22px
  );
}

.badge-float {
  position: absolute;
  background: var(--c-green);
  color: var(--c-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  box-shadow: 2px 2px 0 var(--c-dark);
  animation: jitter 3s ease-in-out infinite;
}

.badge-1 {
  top: 15%;
  left: 10%;
  transform: rotate(-8deg);
  animation-delay: 0s;
}

.badge-2 {
  top: 40%;
  right: 8%;
  transform: rotate(5deg);
  animation-delay: 0.8s;
}

.badge-3 {
  bottom: 20%;
  left: 20%;
  transform: rotate(-3deg);
  animation-delay: 1.5s;
}

@keyframes jitter {
  0%, 100% { transform: rotate(-8deg) translate(0, 0); }
  25% { transform: rotate(-6deg) translate(2px, -2px); }
  50% { transform: rotate(-10deg) translate(-1px, 1px); }
  75% { transform: rotate(-7deg) translate(1px, -1px); }
}

.badge-2 {
  animation-name: jitter2;
}
@keyframes jitter2 {
  0%, 100% { transform: rotate(5deg) translate(0, 0); }
  33% { transform: rotate(7deg) translate(-2px, 1px); }
  66% { transform: rotate(3deg) translate(1px, -2px); }
}

.badge-3 {
  animation-name: jitter3;
}
@keyframes jitter3 {
  0%, 100% { transform: rotate(-3deg) translate(0, 0); }
  40% { transform: rotate(-5deg) translate(2px, 1px); }
  80% { transform: rotate(-1deg) translate(-1px, -1px); }
}

.hero-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3rem 4rem 4rem;
  text-align: right;
  position: relative;
}

.hero-h1 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--c-white);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--c-text-dim);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--c-green);
  color: var(--c-dark);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 2px solid var(--c-green);
  transition: background 0.2s, color 0.2s, transform 0.15s;
  min-height: 44px;
  line-height: 1.4;
  cursor: pointer;
  font-family: var(--font-main);
}

.btn-primary:hover {
  background: var(--c-dark);
  color: var(--c-green);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--c-green);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 2px solid var(--c-green);
  transition: background 0.2s, color 0.2s;
  min-height: 44px;
  line-height: 1.4;
}

.btn-outline:hover {
  background: var(--c-green);
  color: var(--c-dark);
  text-decoration: none;
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.875rem;
  min-height: 40px;
}

/* ===== CONTENT SECTION (main > article > figure/aside) ===== */
.content-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

.content-main {
  min-width: 0;
}

.content-aside {
  position: sticky;
  top: calc(var(--header-h) + var(--marquee-h) + 1.5rem);
  background: var(--c-card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  border-left: 4px solid var(--c-green);
}

.aside-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 1rem;
}

.aside-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.aside-links li a {
  display: block;
  color: var(--c-text-dim);
  font-size: 0.9rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--c-border);
  transition: color 0.2s;
  min-height: 40px;
  line-height: 2.2;
}

.aside-links li a:hover {
  color: var(--c-green);
  text-decoration: none;
}

.aside-contact-block {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-border);
}

.aside-contact-block h3 {
  font-size: 0.95rem;
  color: var(--c-white);
  margin-bottom: 0.75rem;
}

/* ===== PROSE ===== */
.prose {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-text);
}

.prose h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-white);
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--c-green);
}

.prose h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--c-text);
  margin: 1.5rem 0 0.5rem;
}

.prose p {
  margin-bottom: 1rem;
}

.prose ul, .prose ol {
  margin: 0.75rem 0 1rem 1.5rem;
  list-style: disc;
}

.prose ol { list-style: decimal; }

.prose li {
  margin-bottom: 0.4rem;
}

.prose a {
  color: var(--c-green);
  text-decoration: underline;
}

.prose strong { color: var(--c-white); font-weight: 700; }
.prose em { color: var(--c-text-dim); }

.prose blockquote {
  border-left: 4px solid var(--c-green);
  padding: 0.75rem 1rem;
  background: var(--c-card-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1rem 0;
}

/* ===== META DATE ===== */
.meta-date {
  font-size: 0.875rem;
  color: var(--c-text-dim);
  margin-top: 1.5rem;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  font-size: 0.875rem;
  color: var(--c-text-dim);
  margin-top: 0.5rem;
}
.breadcrumb a {
  color: var(--c-text-dim);
}

/* ===== PAGE HERO (non-home) ===== */
.page-hero-section,
.faq-header-section,
.contact-hero-section,
.privacy-header-section {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 280px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  gap: 2rem;
  align-items: center;
}

.page-hero-fig,
.faq-deco-fig,
.contact-deco-fig,
.privacy-deco-fig {
  position: relative;
  min-height: 220px;
  background: var(--c-dark2);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero-placeholder {
  width: 100%;
  height: 100%;
  min-height: 220px;
  background: linear-gradient(135deg, var(--c-dark2), var(--c-dark3));
}

.about-img, .page-hero-fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.page-hero-aside,
.faq-header-aside,
.contact-hero-aside,
.privacy-header-aside {
  padding: 1rem 0;
}

.page-h1 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.2;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.page-lead {
  font-size: 1.05rem;
  color: var(--c-text-dim);
  line-height: 1.7;
}

/* ===== FAQ / CONTACT / PRIVACY BADGES ===== */
.faq-badge, .contact-badge, .privacy-badge {
  background: var(--c-green);
  color: var(--c-dark);
  font-size: 2.5rem;
  font-weight: 700;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  animation: jitter 4s ease-in-out infinite;
}

.faq-badge-a {
  background: var(--c-dark3);
  color: var(--c-green);
  border: 2px solid var(--c-green);
  bottom: 15%;
  right: 10%;
  animation-delay: 1s;
  font-size: 2rem;
}

.faq-badge-q {
  top: 15%;
  left: 10%;
}

.contact-badge-2 {
  bottom: 15%;
  right: 8%;
  background: var(--c-dark3);
  color: var(--c-green2);
  border: 2px solid var(--c-green2);
  animation-delay: 0.7s;
}

/* ===== FAQ TABLE (table > tbody > tr > td) ===== */
.faq-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.faq-section h2,
.faq-list-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 1.5rem;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
}

.faq-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--c-card-bg);
}

.faq-table tbody tr {
  border-bottom: 1px solid var(--c-border);
  transition: background 0.15s;
}

.faq-table tbody tr:last-child {
  border-bottom: none;
}

.faq-table tbody tr:hover {
  background: var(--c-dark3);
}

.card-cell {
  padding: 0;
  width: 80%;
}

.faq-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  border-left: 4px solid transparent;
  transition: border-color 0.2s;
}

.faq-card:hover {
  border-left-color: var(--c-green);
  text-decoration: none;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-white);
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.card-desc {
  font-size: 0.875rem;
  color: var(--c-text-dim);
  line-height: 1.5;
}

.card-date-cell {
  padding: 1.25rem 1.5rem;
  white-space: nowrap;
  vertical-align: middle;
  width: 20%;
}

.card-date {
  font-size: 0.8rem;
  color: var(--c-text-dim);
}

/* ===== FAQ INDEX TABLE ===== */
.faq-list-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.faq-index-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--c-card-bg);
}

.faq-index-table tbody tr {
  border-bottom: 1px solid var(--c-border);
  transition: background 0.15s;
}

.faq-index-table tbody tr:last-child {
  border-bottom: none;
}

.faq-index-table tbody tr:hover,
.faq-index-table tbody tr.active-row {
  background: var(--c-dark3);
}

.faq-index-table tbody tr.active-row .fi-title a {
  color: var(--c-green);
}

.fi-num {
  padding: 1rem 1rem 1rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--c-green);
  width: 40px;
  vertical-align: middle;
}

.fi-title {
  padding: 1rem 1rem;
  vertical-align: middle;
}

.fi-title a {
  color: var(--c-text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.fi-title a:hover {
  color: var(--c-green);
  text-decoration: none;
}

.fi-desc {
  padding: 1rem 1.5rem 1rem 1rem;
  font-size: 0.85rem;
  color: var(--c-text-dim);
  vertical-align: middle;
}

/* ===== CONTACT FORM ===== */
.contact-form-block {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--c-border);
}

.contact-form-block h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 1.25rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-text-dim);
}

.form-row input,
.form-row textarea {
  background: var(--c-dark2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  color: var(--c-text);
  font-size: 1rem;
  font-family: var(--font-main);
  padding: 0.75rem 1rem;
  line-height: 1.5;
  transition: border-color 0.2s;
  min-height: 44px;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--c-green);
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===== FOOTER (footer 单行: footer > div/nav 直接子层) ===== */
.site-footer {
  background: var(--c-dark2);
  border-top: 2px solid var(--c-green);
  padding: 2.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 100%;
}

.footer-brand {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.brand-text-sm {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-green);
  white-space: nowrap;
  text-decoration: none;
  min-width: 160px;
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--c-text-dim);
  line-height: 1.6;
  max-width: 500px;
}

.footer-nav {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--c-border);
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--c-text-dim);
  text-decoration: none;
  padding: 0.3rem 0;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--c-green);
}

.footer-copy {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: var(--c-text-dim);
}

/* ===== STAGGER ANIMATION ===== */
@keyframes stagger-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.faq-table tbody tr,
.faq-index-table tbody tr {
  animation: stagger-in 0.4s ease both;
}

.faq-table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.faq-table tbody tr:nth-child(2) { animation-delay: 0.1s; }
.faq-table tbody tr:nth-child(3) { animation-delay: 0.15s; }
.faq-table tbody tr:nth-child(4) { animation-delay: 0.2s; }
.faq-table tbody tr:nth-child(5) { animation-delay: 0.25s; }
.faq-table tbody tr:nth-child(6) { animation-delay: 0.3s; }
.faq-table tbody tr:nth-child(7) { animation-delay: 0.35s; }
.faq-table tbody tr:nth-child(8) { animation-delay: 0.4s; }

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .marquee-inner { animation: none; }
  .badge-float, .faq-badge, .contact-badge, .privacy-badge { animation: none; }
  .faq-table tbody tr, .faq-index-table tbody tr { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-figure {
    min-height: 50vw;
    max-height: 60vw;
  }

  .hero-aside {
    text-align: left;
    padding: 2rem 1.5rem;
  }

  .hero-cta {
    justify-content: flex-start;
  }

  .content-section {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.25rem;
  }

  .content-aside {
    position: static;
  }

  .page-hero-section,
  .faq-header-section,
  .contact-hero-section,
  .privacy-header-section {
    grid-template-columns: 1fr;
    padding: 2rem 1.25rem 1.5rem;
  }

  .page-hero-fig,
  .faq-deco-fig,
  .contact-deco-fig,
  .privacy-deco-fig {
    min-height: 150px;
    max-height: 180px;
  }

  .footer-brand {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 600px) {
  :root {
    --header-h: 56px;
    --marquee-h: 30px;
  }

  .hero-h1 {
    font-size: 1.6rem;
  }

  .hero-aside {
    padding: 1.5rem 1.25rem;
  }

  .hero-figure {
    min-height: 55vw;
  }

  .faq-section,
  .faq-list-section {
    padding: 2rem 1.25rem 3rem;
  }

  .card-date-cell {
    display: none;
  }

  .fi-desc {
    display: none;
  }

  .nav-menu li a {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }

  .footer-nav {
    gap: 0.5rem 1rem;
  }

  .contact-form-block h2 {
    font-size: 1.1rem;
  }
}

@media (max-width: 375px) {
  html {
    font-size: 16px;
  }

  .brand-text {
    font-size: 0.9rem;
  }

  .hero-h1, .page-h1 {
    font-size: 1.4rem;
  }

  .btn-primary, .btn-outline {
    font-size: 0.9rem;
    padding: 0.7rem 1.25rem;
  }
}
