@import url('https://fonts.googleapis.com/css2?family=Didact+Gothic&family=Poiret+One&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green: #00ff80;
  --blue: #0000ff;
  --black: #000000;
  --white: #ffffff;
  --border: 3px solid var(--black);
  --border-thin: 2px solid var(--black);
  --font-display: 'Poiret One', 'Didact Gothic', system-ui, sans-serif;
  --font-body: 'Didact Gothic', system-ui, sans-serif;
  --nav-h: 64px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  padding-bottom: calc(var(--nav-h) + 16px);
  min-height: 100vh;
}

a {
  color: var(--black);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  background: var(--green);
  color: var(--black);
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }

/* ─── 底部固定导航条 ─── */
.site-nav-wrap {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--black);
  border-top: var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  gap: 8px;
  overflow: hidden;
}

.site-nav-wrap nav {
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav-wrap nav::-webkit-scrollbar { display: none; }

.site-nav-wrap nav ul {
  display: flex;
  gap: 6px;
  list-style: none;
  align-items: center;
  white-space: nowrap;
  padding: 8px 0;
}

.site-nav-wrap nav ul li a {
  display: inline-block;
  padding: 8px 14px;
  background: transparent;
  color: var(--white);
  border: 2px solid var(--green);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  min-height: 40px;
  line-height: 1.3;
  transition: none;
  white-space: nowrap;
}

.site-nav-wrap nav ul li a:hover {
  background: var(--green);
  color: var(--black);
}

.brand-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--green);
  border-radius: 0;
  text-decoration: none;
  color: var(--green);
}

.brand-icon:hover {
  background: var(--green);
  color: var(--black);
}

.brand-glyph {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
}

/* ─── HERO 区块（首页） ─── */
.hero-section {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  border-bottom: var(--border);
  padding: 48px 24px 40px;
  position: relative;
  background: var(--black);
  text-align: right;
  overflow: hidden;
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-text h1 {
  color: var(--green);
  margin-bottom: 16px;
}

.hero-desc {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 20px;
  max-width: 560px;
  margin-left: auto;
}

.hero-badge {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  border: 2px solid var(--green);
  padding: 6px 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.hero-figure {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  display: block;
}

.hero-figure--empty {
  pointer-events: none;
}

.hero-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    var(--blue) 0px,
    var(--blue) 2px,
    transparent 2px,
    transparent 18px
  );
  opacity: 0.18;
}

/* ─── eyebrow 眉题 ─── */
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--green);
  color: var(--black);
  padding: 3px 10px;
  margin-bottom: 8px;
}

/* ─── 内容双栏 ─── */
.content-section {
  display: grid;
  grid-template-columns: 1fr 260px;
  grid-template-areas: "body aside";
  gap: 0;
  border-bottom: var(--border-thin);
}

.content-body {
  grid-area: body;
  padding: 40px 32px 48px;
  border-right: var(--border-thin);
}

.content-body h2 {
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: var(--border-thin);
}

.content-body small.eyebrow {
  margin-bottom: 12px;
}

.content-aside {
  grid-area: aside;
  padding: 40px 20px 48px;
  background: #f5f5f5;
  border-left: var(--border-thin);
}

.content-aside h3 {
  margin-bottom: 16px;
  font-family: var(--font-display);
}

.content-aside small.eyebrow {
  margin-bottom: 10px;
}

.aside-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aside-list li a {
  display: block;
  padding: 8px 10px;
  border: var(--border-thin);
  font-size: 0.88rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  transition: none;
}

.aside-list li a:hover {
  background: var(--green);
  color: var(--black);
}

.aside-list--extra {
  margin-top: 16px;
  padding-top: 16px;
  border-top: var(--border-thin);
}

/* ─── 子页卡片列表 ─── */
.children-section {
  padding: 40px 24px 48px;
  border-bottom: var(--border-thin);
  position: relative;
}

.children-section > small.eyebrow {
  display: block;
  margin-bottom: 10px;
}

.children-section > h2 {
  margin-bottom: 24px;
}

.section-aside {
  position: absolute;
  top: 40px;
  right: 24px;
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--blue);
  border-left: 2px solid var(--blue);
  padding-left: 6px;
  pointer-events: none;
}

.aside-label {
  opacity: 0.7;
}

.card-list, .faq-sublist {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  counter-reset: card-counter;
}

.card-list li, .faq-sublist li {
  counter-increment: card-counter;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 18px;
  border: var(--border);
  border-radius: 18px;
  text-decoration: none;
  background: var(--white);
  position: relative;
  transition: none;
}

.card::before {
  content: counter(card-counter, decimal-leading-zero);
  position: absolute;
  top: 12px;
  right: 14px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}

.card:hover {
  background: var(--green);
  color: var(--black);
}

.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  padding-right: 40px;
}

.card-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #444;
}

.card:hover .card-desc {
  color: var(--black);
}

.card-date {
  font-size: 0.75rem;
  color: #666;
  margin-top: 4px;
}

/* ─── FAQ 子页列表 ─── */
.faq-sublist {
  grid-template-columns: 1fr;
  gap: 10px;
}

.faq-sublist li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: var(--border-thin);
}

.faq-sublist li a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
}

.faq-sublist li a:hover {
  background: var(--green);
}

.faq-sublist li small {
  font-size: 0.82rem;
  color: #555;
}

/* ─── 页面 HERO（内页） ─── */
.page-hero-section,
.about-header-section,
.contact-header-section,
.privacy-header-section {
  padding: 48px 24px 32px;
  border-bottom: var(--border);
  background: var(--black);
  color: var(--white);
  position: relative;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.page-hero-section h1,
.about-header-section h1,
.contact-header-section h1,
.privacy-header-section h1 {
  color: var(--green);
  max-width: 800px;
}

.page-hero-figure,
.about-figure,
.contact-figure,
.privacy-figure {
  position: absolute;
  inset: 0;
  margin: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.page-hero-bar,
.contact-stripe,
.privacy-bar {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 100%;
  background: var(--blue);
}

.about-block-a {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 40%;
  height: 4px;
  background: var(--green);
}

.about-block-b {
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 20%;
  height: 4px;
  background: var(--blue);
}

.page-hero-aside,
.about-header-aside,
.contact-header-aside,
.privacy-header-aside {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.about-intro {
  color: var(--white);
  font-size: 1rem;
  max-width: 600px;
  text-align: right;
  position: relative;
  z-index: 1;
}

.contact-sub {
  color: var(--green);
  font-size: 0.85rem;
  font-family: var(--font-display);
}

.date-line {
  font-size: 0.8rem;
  color: #aaa;
}

/* ─── 正文排版 ─── */
.prose {
  font-size: 1rem;
  line-height: 1.8;
  max-width: 72ch;
}

.prose h2, .prose h3 {
  margin: 2em 0 0.8em;
  padding-bottom: 6px;
  border-bottom: var(--border-thin);
}

.prose p {
  margin-bottom: 1.2em;
}

.prose ul, .prose ol {
  padding-left: 1.4em;
  margin-bottom: 1.2em;
}

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

.prose a {
  color: var(--blue);
  font-weight: 700;
}

.prose a:hover {
  background: var(--green);
  color: var(--black);
}

.prose blockquote {
  border-left: 4px solid var(--green);
  padding: 12px 20px;
  background: #f5f5f5;
  margin: 1.5em 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
}

.prose th, .prose td {
  border: var(--border-thin);
  padding: 10px 14px;
  text-align: left;
}

.prose th {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-display);
}

/* ─── 页脚 ─── */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 20px;
  border-top: var(--border);
  background: var(--white);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
}

.footer-links a {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
}

.footer-links a:hover {
  background: var(--green);
}

/* ─── 时间标签 ─── */
time {
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: #555;
}

/* ─── 微交互 ─── */
@media (prefers-reduced-motion: no-preference) {
  .card {
    transition: background 0s, transform 0s;
  }

  .card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--black);
  }

  .site-nav-wrap nav ul li a:hover {
    transform: translateY(-1px);
  }

  .aside-list li a:hover {
    transform: translateX(3px);
  }
}

/* ─── 响应式 ─── */
@media (max-width: 768px) {
  .content-section {
    grid-template-columns: 1fr;
    grid-template-areas:
      "body"
      "aside";
  }

  .content-body {
    border-right: none;
    border-bottom: var(--border-thin);
    padding: 28px 16px 32px;
  }

  .content-aside {
    border-left: none;
    padding: 24px 16px 28px;
  }

  .hero-section {
    min-height: 70vh;
    padding: 32px 16px 32px;
  }

  .hero-text h1 {
    font-size: clamp(1.6rem, 8vw, 2.8rem);
  }

  .page-hero-section,
  .about-header-section,
  .contact-header-section,
  .privacy-header-section {
    padding: 36px 16px 28px;
  }

  .children-section {
    padding: 28px 16px 32px;
  }

  .section-aside {
    display: none;
  }

  .card-list, .faq-sublist {
    grid-template-columns: 1fr;
  }

  .footer-links {
    gap: 10px;
  }

  footer {
    padding: 20px 16px;
  }

  .site-nav-wrap {
    padding: 0 8px;
  }

  .site-nav-wrap nav ul li a {
    padding: 8px 10px;
    font-size: 0.72rem;
  }
}

@media (max-width: 480px) {
  .hero-text {
    max-width: 100%;
  }

  h1 {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }

  .content-body,
  .content-aside {
    padding: 20px 12px 24px;
  }
}

/* ─── 无横向滚动 ─── */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

main {
  overflow-x: hidden;
}
