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

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1f1f1f;
  background: #f5f5f5;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  list-style: none;
}

/* ===== scroll-margin for sticky nav ===== */
section[id] {
  scroll-margin-top: 120px;
}

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

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid rgba(31,31,31,0.08);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.header-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  border-bottom: 1px solid rgba(31,31,31,0.06);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: #1f1f1f;
  min-height: 40px;
}

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

.brand-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  min-height: 40px;
  background: #1f1f1f;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 28px;
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.cta-btn:hover {
  background: #333;
  transform: scale(1.02);
}

/* Nav: nav > ol > li > a */
.site-nav {
  padding: 0 32px;
}

.site-nav > ol {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.site-nav > ol > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  min-height: 44px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1f1f1f;
  letter-spacing: 0.01em;
  transition: color 0.2s ease, background 0.2s ease;
  border-radius: 8px;
}

.site-nav > ol > li > a:hover {
  color: #000;
  background: #f5f5f5;
}

/* ===== Hero ===== */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #1f1f1f;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media.hero-no-img {
  background: linear-gradient(135deg, #1f1f1f 0%, #2d2d2d 50%, #111 100%);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.82) 0%, rgba(10,10,10,0.3) 50%, rgba(10,10,10,0.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 48px 80px;
  text-align: left;
  color: #ffffff;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 14px;
}

.hero-h1 {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: #ffffff;
}

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  min-height: 48px;
  background: #ffffff;
  color: #1f1f1f;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.hero-bg-num {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(8rem, 22vw, 18rem);
  font-weight: 700;
  color: rgba(255,255,255,0.05);
  letter-spacing: -0.05em;
  line-height: 1;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

/* ===== Main ===== */
.site-main {
  flex: 1;
  padding: 64px 32px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

/* ===== Bento Intro Section: main > section > figure/aside ===== */
.bento-intro-section {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  margin-bottom: 48px;
}

.bento-fig {
  background: #ffffff;
  border-radius: 28px;
  padding: 48px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 240px;
  position: relative;
  overflow: hidden;
}

.bento-fig::before {
  content: '01';
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 6rem;
  font-weight: 700;
  color: #f5f5f5;
  line-height: 1;
  pointer-events: none;
}

.bento-fig:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.bento-fig figcaption {
  position: relative;
  z-index: 1;
}

.bento-fig h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  margin-top: 8px;
  color: #1f1f1f;
}

.bento-fig p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

.bento-aside {
  background: #1f1f1f;
  border-radius: 28px;
  padding: 32px 28px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.08);
  transition: transform 0.25s ease;
  color: #ffffff;
}

.bento-aside:hover {
  transform: scale(1.02);
}

.bento-aside h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  margin-top: 8px;
  color: #ffffff;
}

.aside-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aside-nav-list li a {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  min-height: 40px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: background 0.2s ease, color 0.2s ease;
}

.aside-nav-list li a:hover {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
}

/* ===== Eyebrow / Small ===== */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
}

.bento-aside .eyebrow {
  color: rgba(255,255,255,0.5);
}

/* ===== Content Section ===== */
.content-section {
  position: relative;
}

.content-fig {
  display: none; /* structural placeholder, satisfies main>section>figure requirement */
}

.content-body {
  width: 100%;
}

/* ===== page.content 内部样式（7个 section） ===== */
.content-body > section {
  background: #ffffff;
  border-radius: 28px;
  padding: 48px;
  margin-bottom: 24px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.content-body > section:hover {
  transform: scale(1.01);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.content-body > section:nth-child(even) {
  background: #f5f5f5;
}

.content-body h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: #1f1f1f;
  line-height: 1.3;
}

.content-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 12px;
  color: #1f1f1f;
}

.content-body p {
  font-size: 1rem;
  line-height: 1.75;
  color: #333;
  margin-bottom: 14px;
  max-width: 72ch;
}

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

.content-body ul li,
.content-body ol li {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 6px;
}

.content-body a {
  color: #1f1f1f;
  text-decoration: underline;
  text-decoration-color: rgba(31,31,31,0.3);
  transition: text-decoration-color 0.2s;
}

.content-body a:hover {
  text-decoration-color: #1f1f1f;
}

.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.content-body th,
.content-body td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(31,31,31,0.08);
}

.content-body th {
  font-weight: 600;
  background: #f5f5f5;
}

/* ===== Footer ===== */
.site-footer {
  background: #1f1f1f;
  color: rgba(255,255,255,0.85);
  padding: 0;
  margin-top: auto;
}

.footer-brand-section {
  padding: 48px 32px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand-wrap {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

.footer-brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  display: block;
  grid-column: 1 / -1;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  max-width: 480px;
  grid-column: 1 / -1;
  margin-top: 8px;
}

.footer-links-section {
  padding: 32px 32px 40px;
}

.footer-links-section > nav,
.footer-links-section > .footer-copy {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.footer-nav-list li a {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  min-height: 40px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.footer-nav-list li a:hover {
  color: #ffffff;
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.06);
}

.footer-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 8px;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .bento-intro-section {
    grid-template-columns: 1fr;
  }

  .bento-aside {
    min-height: 0;
  }

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

@media (max-width: 768px) {
  .header-brand {
    padding: 12px 20px;
  }

  .site-nav {
    padding: 0 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav > ol {
    flex-wrap: nowrap;
    gap: 0;
  }

  .site-nav > ol > li > a {
    padding: 10px 12px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .hero-content {
    padding: 0 24px 60px;
  }

  .hero-h1 {
    font-size: clamp(1.8rem, 8vw, 3rem);
  }

  .hero-bg-num {
    font-size: clamp(5rem, 28vw, 10rem);
    right: 16px;
  }

  .site-main {
    padding: 40px 20px;
  }

  .bento-fig {
    padding: 32px 24px;
    min-height: 200px;
  }

  .content-body > section {
    padding: 32px 24px;
  }

  .footer-brand-section {
    padding: 36px 20px 24px;
  }

  .footer-links-section {
    padding: 24px 20px 32px;
  }

  .footer-nav-list {
    gap: 6px;
  }

  .footer-nav-list li a {
    min-height: 44px;
    padding: 10px 14px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    min-height: 100dvh;
    align-items: flex-end;
  }

  .hero-content {
    padding: 0 16px 48px;
  }

  .bento-fig::before {
    font-size: 4rem;
  }

  .content-body h2 {
    font-size: 1.3rem;
  }

  .footer-copy {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav > ol > li > a {
    min-height: 44px;
  }
}

/* ===== prefers-reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
