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

/* ============================================================
   CSS 自定义属性 & 基础重置
   ============================================================ */
:root {
  --c-black: #000000;
  --c-white: #ffffff;
  --c-accent: #000000;
  --c-gray-50: #f7f7f7;
  --c-gray-100: #eeeeee;
  --c-gray-200: #cccccc;
  --c-gray-400: #888888;
  --c-gray-600: #444444;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', Helvetica, Arial, sans-serif;

  --base: 8px;
  --gap: 1rem;
  --cols: 12;

  --radius-card: 28px;
  --radius-pill: 9999px;

  --nav-height-brand: 64px;
  --nav-height-menu: 52px;
  --nav-total: calc(var(--nav-height-brand) + var(--nav-height-menu));

  --transition-fast: 160ms ease;
  --transition-mid: 280ms ease;
}

*, *::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: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--c-black);
  background: var(--c-white);
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* ============================================================
   滚动边距（固定导航补偿）
   ============================================================ */
section[id] {
  scroll-margin-top: calc(var(--nav-total) + 16px);
}

/* ============================================================
   页面骨架
   ============================================================ */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ============================================================
   顶部 aside（两行导航）
   ============================================================ */
.site-aside {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-black);
  color: var(--c-white);
  width: 100%;
}

/* 品牌行 */
.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height-brand);
  padding: 0 clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

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

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

.brand-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--c-white);
}

.brand-contact {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-tel {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.03em;
  padding: 0.5rem 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: color var(--transition-fast);
}

.contact-tel:hover {
  color: var(--c-white);
}

/* 菜单行 */
.main-nav {
  height: var(--nav-height-menu);
  display: flex;
  align-items: center;
  padding: 0 clamp(1rem, 4vw, 3rem);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav ul {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  align-items: center;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 1.125rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.25);
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  letter-spacing: 0.02em;
}

.nav-pill:hover,
.nav-pill:focus-visible {
  background: var(--c-white);
  color: var(--c-black);
  border-color: var(--c-white);
  outline: none;
}

/* ============================================================
   Hero
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 45vh;
  background: var(--c-black);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: center;
  min-height: 45vh;
  padding: clamp(3rem, 8vh, 6rem) clamp(1rem, 4vw, 3rem) clamp(4rem, 10vh, 7rem);
}

.hero-bg-number {
  position: absolute;
  right: -0.05em;
  bottom: -0.2em;
  font-family: var(--font-display);
  font-size: clamp(8rem, 22vw, 18rem);
  font-weight: 700;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

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

.hero-media .hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
}

.hero-content {
  grid-column: 1 / 8;
  position: relative;
  z-index: 3;
  color: var(--c-white);
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.75rem;
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--c-white);
  margin-bottom: 1.25rem;
}

.hero-desc {
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  max-width: 52ch;
  margin-bottom: 2rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 2rem;
  background: var(--c-white);
  color: var(--c-black);
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.hero-cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* 斜切底边 */
.hero-clip {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--c-white);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
  z-index: 4;
}

/* ============================================================
   主内容区（结构：main > article.wrap > section > div）
   ============================================================ */
.site-main {
  flex: 1;
  padding: 0;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem);
}

.content-section {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}

.content-article {
  grid-column: 1 / -1;
}

/* ============================================================
   正文内容样式（page.content 注入的 HTML）
   ============================================================ */
.content-article h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--c-black);
  margin-top: 3.5rem;
  margin-bottom: 1rem;
}

.content-article h2:first-child {
  margin-top: 0;
}

.content-article h3 {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--c-black);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.content-article p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-gray-600);
  margin-bottom: 1.25rem;
  max-width: 72ch;
}

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

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

.content-article li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-gray-600);
  margin-bottom: 0.5rem;
}

.content-article a {
  color: var(--c-black);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-article a:hover {
  opacity: 0.65;
}

.content-article strong,
.content-article b {
  font-weight: 600;
  color: var(--c-black);
}

.content-article blockquote {
  border-left: 3px solid var(--c-black);
  padding: 0.75rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--c-gray-50);
  font-style: italic;
  color: var(--c-gray-600);
}

.content-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

.content-article th,
.content-article td {
  border: 1px solid var(--c-gray-100);
  padding: 0.625rem 0.875rem;
  text-align: left;
}

.content-article th {
  background: var(--c-black);
  color: var(--c-white);
  font-weight: 600;
}

.content-article tr:nth-child(even) td {
  background: var(--c-gray-50);
}

/* Section 区块分隔（单页锚点 section） */
.content-article section {
  border-top: 1px solid var(--c-gray-100);
  padding-top: 3rem;
  margin-top: 3rem;
}

.content-article section:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

/* h2 前的 small 眉题 */
small + h2,
small + h3 {
  margin-top: 0.375rem;
}

.content-article small,
small.eyebrow {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-gray-400);
  margin-bottom: 0.25rem;
}

/* 卡片 */
.content-article .card {
  background: var(--c-gray-50);
  border-radius: var(--radius-card);
  padding: 2rem;
  margin: 1.5rem 0;
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  background: var(--c-black);
  color: var(--c-white);
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
}

.footer-cta-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 1.5rem;
}

.footer-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  font-weight: 700;
  color: var(--c-white);
  max-width: 36ch;
  line-height: 1.3;
  margin: 0;
}

.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 2rem;
  background: var(--c-white);
  color: var(--c-black);
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
  flex-shrink: 0;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  min-height: 40px;
}

.footer-cta-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.375rem;
  line-height: 1.6;
}

.footer-legal {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.6;
}

/* ============================================================
   动效（stagger + parallax）
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .hero-content {
    animation: fadeSlideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .hero-bg-number {
    animation: fadeIn 1.2s ease both 0.3s;
  }

  @keyframes fadeSlideUp {
    from {
      opacity: 0;
      transform: translateY(24px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  /* Stagger list items */
  .content-article section {
    animation: fadeSlideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
  }
}

/* ============================================================
   响应式断点
   ============================================================ */

/* 平板 768px */
@media (max-width: 900px) {
  .hero-content {
    grid-column: 1 / -1;
  }

  .content-section {
    grid-template-columns: 1fr;
  }

  .content-article {
    grid-column: 1 / -1;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }
}

/* 手机 375px */
@media (max-width: 600px) {
  :root {
    --nav-height-brand: 56px;
    --nav-height-menu: 48px;
  }

  .brand-bar {
    padding: 0 1rem;
  }

  .main-nav {
    padding: 0 0.75rem;
  }

  .nav-pill {
    font-size: 0.75rem;
    padding: 0 0.875rem;
    height: 40px;
  }

  .hero-section {
    min-height: 50vh;
  }

  .hero-inner {
    min-height: 50vh;
    padding: 2.5rem 1rem 4.5rem;
  }

  .hero-h1 {
    font-size: clamp(1.625rem, 7vw, 2.25rem);
  }

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

  .hero-clip {
    height: 40px;
  }

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

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

  .content-article p {
    max-width: 100%;
  }

  .wrap {
    padding: 2rem 1rem;
  }
}

/* 超大屏 */
@media (min-width: 1400px) {
  .wrap {
    max-width: 1320px;
  }
}
