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

/* ===== 重置与基础 ===== */
*, *::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', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: #F5F5F5;
  color: #1A2340;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

/* ===== 站点容器 ===== */
.site-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 140px;
}

/* ===== 点阵底纹 ===== */
.dot-grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(245,245,245,0.18) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

/* ===== Hero ===== */
.hero-header {
  position: relative;
  background: #1A2340;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  padding: 48px 5% 64px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 32px;
  text-align: right;
  max-width: 760px;
  margin-left: auto;
}

.hero-icon-wrap {
  flex-shrink: 0;
}

.hero-icon {
  display: block;
  border-radius: 18px;
}

.hero-text {
  flex: 1;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #FF4D4F;
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 600;
  color: #F5F5F5;
  line-height: 1.15;
  margin-bottom: 16px;
  word-break: break-all;
}

.hero-sub {
  font-size: 1rem;
  color: rgba(245,245,245,0.72);
  line-height: 1.7;
  max-width: 440px;
  margin-left: auto;
}

/* ===== 底部固定导航 aside ===== */
.bottom-nav-aside {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: #1A2340;
  border-top: 2px solid #FF4D4F;
}

.bottom-nav {
  width: 100%;
}

.bottom-nav-list {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.bottom-nav-list::-webkit-scrollbar {
  display: none;
}

.nav-item {
  flex: 1;
  min-width: 0;
  display: flex;
}

/* 导航链接：移动端保证 ≥40px 高，用 padding 撑开 */
.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 4px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(245,245,245,0.78);
  white-space: nowrap;
  min-height: 48px;
  width: 100%;
  transition: color 150ms ease, background 150ms ease;
  text-align: center;
  line-height: 1.3;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #FF4D4F;
  background: rgba(255,77,79,0.08);
  outline: none;
}

.nav-brand-center {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.nav-brand-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  min-height: 48px;
}

.nav-brand-text {
  font-size: 13px;
  font-weight: 600;
  color: #FF4D4F;
  white-space: nowrap;
}

.logo-img {
  height: 32px;
  width: auto;
}

/* 搜索栏 */
.nav-search-bar {
  border-top: 1px solid rgba(245,245,245,0.1);
  padding: 6px 16px;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,245,245,0.08);
  border-radius: 6px;
  padding: 4px 10px;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #F5F5F5;
  font-family: inherit;
  font-size: 13px;
  padding: 6px 0;
  min-width: 0;
  min-height: 40px;
}

.search-input::placeholder {
  color: rgba(245,245,245,0.4);
}

.search-btn {
  background: none;
  border: none;
  color: rgba(245,245,245,0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  min-height: 40px;
  min-width: 40px;
  transition: color 150ms ease;
}

.search-btn:hover {
  color: #FF4D4F;
}

/* ===== 主内容 main > section > div ===== */
.main-content {
  flex: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 5% 32px;
}

.content-article {
  width: 100%;
}

.content-section {
  width: 100%;
}

/* ===== page.content 内部样式 ===== */
.page-content-section h2 {
  font-size: clamp(1.3rem, 3.5vw, 1.9rem);
  font-weight: 600;
  color: #1A2340;
  margin-top: 48px;
  margin-bottom: 8px;
}

.page-content-section h2 + hr,
.page-content-section h3 + hr {
  border: none;
  border-top: 2px solid #FF4D4F;
  margin-bottom: 20px;
}

.page-content-section hr {
  border: none;
  border-top: 1px solid rgba(26,35,64,0.15);
  margin: 32px 0;
}

.page-content-section h3 {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: #1A2340;
  margin-top: 32px;
  margin-bottom: 8px;
}

.page-content-section p {
  font-size: 1rem;
  line-height: 1.75;
  color: #2a3450;
  margin-bottom: 16px;
}

.page-content-section ul,
.page-content-section ol {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: 16px;
}

.page-content-section ol {
  list-style: decimal;
}

.page-content-section li {
  font-size: 1rem;
  line-height: 1.7;
  color: #2a3450;
  margin-bottom: 6px;
}

.page-content-section a {
  color: #FF4D4F;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 150ms ease;
}

.page-content-section a:hover {
  color: #c93636;
}

.page-content-section strong {
  font-weight: 600;
  color: #1A2340;
}

.page-content-section div {
  margin-bottom: 48px;
  scroll-margin-top: 140px;
}

.page-content-section .card,
.page-content-section [class*="card"] {
  border-radius: 18px;
  border-bottom: 3px solid #FF4D4F;
  background: #fff;
  padding: 20px 24px;
  margin-bottom: 16px;
}

/* ===== 页脚 ===== */
.site-footer {
  background: #1A2340;
  color: #F5F5F5;
  padding: 56px 5% 32px;
}

.footer-brand-block {
  margin-bottom: 40px;
  border-bottom: 2px solid #FF4D4F;
  padding-bottom: 24px;
}

.footer-mega-brand {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #F5F5F5;
  line-height: 1;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.footer-dl {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-dt {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #FF4D4F;
  margin-bottom: 4px;
}

.footer-dd {
  font-size: 14px;
  color: rgba(245,245,245,0.7);
  line-height: 1.6;
}

.footer-link {
  color: rgba(245,245,245,0.7);
  transition: color 150ms ease;
  font-size: 14px;
}

.footer-link:hover {
  color: #FF4D4F;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(245,245,245,0.12);
  padding-top: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 13px;
  color: rgba(245,245,245,0.45);
}

.footer-bottom-links {
  display: flex;
  gap: 16px;
}

.footer-bottom-links .footer-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
}

/* ===== 滚动锚点偏移 ===== */
div[id] {
  scroll-margin-top: 140px;
}

/* ===== 滚动动效 ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ===== 断点：平板 ===== */
@media (min-width: 768px) {
  .hero-header {
    padding: 64px 8% 80px;
  }

  .hero-inner {
    gap: 48px;
  }

  .nav-link {
    font-size: 13px;
    padding: 12px 10px;
    min-height: 52px;
  }

  .nav-brand-link {
    min-height: 52px;
    padding: 12px 14px;
  }

  .main-content {
    padding: 64px 6% 48px;
  }
}

/* ===== 断点：桌面 ===== */
@media (min-width: 1024px) {
  .main-content {
    max-width: 960px;
    padding: 72px 48px 56px;
  }

  .nav-link {
    font-size: 14px;
    padding: 14px 14px;
    min-height: 52px;
  }

  .search-form {
    max-width: 320px;
    margin: 0 auto;
  }
}

/* ===== 移动端 375px 修正 ===== */
@media (max-width: 480px) {
  .hero-header {
    min-height: 70vh;
    padding: 36px 5% 48px;
    justify-content: center;
  }

  .hero-inner {
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 20px;
  }

  .footer-cols {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-mega-brand {
    font-size: 2.5rem;
  }

  .nav-link {
    font-size: 11px;
    padding: 12px 3px;
    min-height: 48px;
  }

  .nav-brand-link {
    padding: 12px 10px;
    min-height: 48px;
  }
}

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