@import url('https://fonts.googleapis.com/css2?family=Newsreader:wght@400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

/* ── 变量 ── */
:root {
  --c-green: #00ff80;
  --c-blue: #0000ff;
  --c-black: #000000;
  --c-white: #ffffff;
  --c-yellow: #ffff00;
  --border-w: 3px;
  --border: var(--border-w) solid var(--c-black);
  --font-news: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-body: 'Roboto', system-ui, Arial, sans-serif;
  --nav-h: 44px;
  --header-h: 100px;
  --scroll-offset: 100px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 17px;
  background: var(--c-white);
  color: var(--c-black);
}

body.body-root {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul, ol {
  list-style: none;
}

/* ── 屏幕阅读器工具 ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── 站点容器 ── */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ══════════════════════════════
   顶部 HEADER
══════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-black);
  border-bottom: var(--border-w) solid var(--c-green);
}

/* 品牌行 */
.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  border-bottom: 2px solid var(--c-blue);
  gap: 12px;
}

.brand-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-link {
  display: flex;
  align-items: center;
}

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

.brand-text {
  font-family: var(--font-news);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-green);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.brand-tagline {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
  letter-spacing: 0.05em;
  display: none;
}

.header-contact {
  display: flex;
  align-items: center;
}

.contact-tel,
.contact-email {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-yellow);
  padding: 6px 14px;
  border: 2px solid var(--c-yellow);
  letter-spacing: 0.04em;
  transition: none;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.contact-tel:hover,
.contact-email:hover {
  background: var(--c-yellow);
  color: var(--c-black);
}

/* 导航行 */
.main-nav {
  background: var(--c-blue);
}

.main-nav ol {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  padding: 0 20px;
}

.main-nav ol li {
  display: flex;
}

.main-nav ol li a {
  display: flex;
  align-items: center;
  padding: 0 16px;
  min-height: var(--nav-h);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: 0.06em;
  text-transform: none;
  border-right: 1px solid rgba(255,255,255,0.2);
  transition: none;
}

.main-nav ol li:first-child a {
  border-left: 1px solid rgba(255,255,255,0.2);
}

.main-nav ol li a:hover,
.main-nav ol li a:focus {
  background: var(--c-green);
  color: var(--c-black);
  outline: none;
}

/* ══════════════════════════════
   HERO
══════════════════════════════ */
.hero-section {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 380px;
  max-height: 700px;
  overflow: hidden;
  background: var(--c-black);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-figure {
  position: absolute;
  inset: 0;
  margin: 0;
}

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

.hero-placeholder {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    var(--c-black) 0px,
    var(--c-black) 20px,
    #111 20px,
    #111 40px
  );
}

.hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.62);
  padding: 24px;
}

.hero-content {
  text-align: center;
  max-width: 700px;
}

.hero-h1 {
  font-family: var(--font-news);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--c-green);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.85);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--c-green);
  color: var(--c-black);
  border: 3px solid var(--c-green);
  min-height: 52px;
  transition: none;
  text-transform: uppercase;
}

.hero-cta:hover,
.hero-cta:focus {
  background: var(--c-black);
  color: var(--c-green);
  outline: 2px solid var(--c-green);
  outline-offset: 2px;
}

/* ══════════════════════════════
   MAIN 内容区
══════════════════════════════ */
.main-content {
  flex: 1;
  background: var(--c-white);
}

.content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.content-with-aside {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
  align-items: start;
}

/* 正文 */
.content-body {
  border-right: var(--border);
  padding-right: 40px;
  padding-top: 8px;
}

.content-body > h2 {
  font-family: var(--font-news);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--c-black);
  border-left: 6px solid var(--c-green);
  padding-left: 14px;
}

.accent-dot {
  color: var(--c-green);
  margin: 0 4px;
}

.content-body > .subtitle {
  font-size: 0.95rem;
  color: #444;
  font-weight: 400;
  margin-bottom: 36px;
  padding-left: 20px;
  letter-spacing: 0.03em;
}

/* page.content 里的区块样式 */
.content-body h2,
.content-body h3 {
  font-family: var(--font-news);
  font-weight: 700;
}

.content-body h2 {
  font-size: 1.6rem;
  margin-top: 48px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--c-black);
}

.content-body h3 {
  font-size: 1.15rem;
  margin-top: 28px;
  margin-bottom: 8px;
  color: var(--c-blue);
}

.content-body p {
  font-size: 1rem;
  line-height: 1.75;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.content-body ul,
.content-body ol {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 20px;
}

.content-body ol {
  list-style: decimal;
}

.content-body li {
  margin-bottom: 8px;
  line-height: 1.65;
}

.content-body a {
  color: var(--c-blue);
  text-decoration: underline;
  font-weight: 500;
}

.content-body a:hover {
  color: var(--c-black);
  background: var(--c-green);
}

.content-body strong {
  font-weight: 700;
  color: var(--c-black);
}

.content-body blockquote {
  border-left: 5px solid var(--c-green);
  margin: 24px 0;
  padding: 12px 20px;
  background: #f5f5f5;
  font-style: italic;
}

.content-body div {
  border-top: 2px solid var(--c-black);
  padding-top: 32px;
  margin-top: 40px;
}

.content-body div:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

/* scroll-margin for anchors */
.content-body div[id] {
  scroll-margin-top: var(--scroll-offset);
}

/* ══════════════════════════════
   ASIDE 侧边栏
══════════════════════════════ */
.content-aside {
  position: sticky;
  top: calc(var(--scroll-offset) + 8px);
  padding-left: 30px;
  padding-top: 8px;
}

.aside-inner {
  border: var(--border);
  background: var(--c-black);
  color: var(--c-white);
}

.aside-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-green);
  padding: 12px 16px 8px;
  border-bottom: 2px solid var(--c-green);
  margin: 0;
}

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

.aside-nav-list li {
  border-bottom: 1px solid #222;
}

.aside-nav-list li a {
  display: block;
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--c-white);
  transition: none;
  line-height: 1.4;
}

.aside-nav-list li a:hover,
.aside-nav-list li a:focus {
  background: var(--c-green);
  color: var(--c-black);
  outline: none;
}

.aside-brand-block {
  padding: 16px;
  border-top: 2px solid var(--c-blue);
  background: var(--c-blue);
}

.aside-brand-name {
  font-family: var(--font-news);
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 4px;
}

.aside-brand-desc {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  margin: 0;
}

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.site-footer {
  background: var(--c-black);
  color: var(--c-white);
  border-top: 4px solid var(--c-green);
}

/* 大 CTA 块 */
.footer-cta-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 40px;
  background: var(--c-green);
  border-bottom: 3px solid var(--c-black);
  flex-wrap: wrap;
}

.footer-cta-text {
  font-family: var(--font-news);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--c-black);
  letter-spacing: -0.02em;
}

.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--c-black);
  color: var(--c-green);
  border: 3px solid var(--c-black);
  min-height: 50px;
  text-transform: uppercase;
  transition: none;
  white-space: nowrap;
}

.footer-cta-btn:hover,
.footer-cta-btn:focus {
  background: var(--c-white);
  color: var(--c-black);
  outline: 2px solid var(--c-black);
}

/* 两栏主体 */
.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 40px;
  border-bottom: 2px solid #222;
}

.footer-brand-col {
  padding-right: 40px;
  border-right: 2px solid #333;
}

.footer-brand-name {
  font-family: var(--font-news);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-green);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.footer-brand-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-address {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-style: normal;
}

.footer-contact-item {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}

/* 链接栏 */
.footer-links-col {
  padding-left: 40px;
}

.footer-col-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-green);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #333;
}

.footer-links-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-col ul li {
  border-bottom: 1px solid #1a1a1a;
}

.footer-links-col ul li a {
  display: block;
  padding: 9px 0;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  transition: none;
}

.footer-links-col ul li a:hover,
.footer-links-col ul li a:focus {
  color: var(--c-green);
  padding-left: 8px;
  outline: none;
}

/* 版权行 */
.footer-bottom {
  padding: 16px 40px;
  background: #0a0a0a;
  border-top: 1px solid #1a1a1a;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.04em;
}

/* ══════════════════════════════
   SCROLL REVEAL
══════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
  .reveal-block {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.45s ease, transform 0.45s ease;
  }

  .reveal-block.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-block {
    opacity: 1;
    transform: none;
  }
}

/* ══════════════════════════════
   div scroll-margin
══════════════════════════════ */
div[id] {
  scroll-margin-top: var(--scroll-offset);
}

/* ══════════════════════════════
   h2 + p.subtitle 标题装饰
══════════════════════════════ */
h2 + p.subtitle,
h2 + p.subhead,
h2 + p.desc,
h2 + p.lead {
  font-size: 0.95rem;
  color: #555;
  margin-top: 4px;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

/* ══════════════════════════════
   内容区卡片（若 page.content 含卡片）
══════════════════════════════ */
.card {
  border: var(--border);
  border-bottom: 5px solid var(--c-green);
  border-radius: 4px;
  padding: 20px;
  background: var(--c-white);
  margin-bottom: 16px;
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 900px) {
  .content-with-aside {
    grid-template-columns: 1fr;
  }

  .content-body {
    border-right: none;
    border-bottom: var(--border);
    padding-right: 0;
    padding-bottom: 32px;
    margin-bottom: 32px;
  }

  .content-aside {
    position: static;
    padding-left: 0;
  }

  .footer-main {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 32px;
  }

  .footer-brand-col {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid #333;
    padding-bottom: 28px;
  }

  .footer-links-col {
    padding-left: 0;
  }

  .footer-cta-block {
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .brand-row {
    padding: 8px 14px;
    flex-wrap: wrap;
  }

  .brand-tagline {
    display: none;
  }

  .main-nav ol {
    padding: 0 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav ol li a {
    padding: 0 10px;
    font-size: 0.75rem;
    min-height: 44px;
    white-space: nowrap;
  }

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

  .content-section {
    padding: 40px 14px;
  }

  .footer-bottom {
    padding: 14px 20px;
  }

  .footer-cta-block {
    padding: 20px 14px;
  }

  .footer-main {
    padding: 28px 14px;
  }

  .hero-cta {
    width: 100%;
    justify-content: center;
  }

  .footer-cta-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 375px) {
  .brand-text {
    font-size: 1.2rem;
  }

  .hero-section {
    min-height: 320px;
    height: 65vh;
  }

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

button[aria-expanded]{min-width:44px;min-height:44px}
