/* 一山知途品牌官网 - 主样式文件 */
/* 基于设计系统：Glassmorphism风格 */

/* ============================================
   字体导入
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&display=swap');

/* 字体加载优化 */
@font-face {
  font-family: 'Open Sans';
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  font-display: swap;
}

/* ============================================
   CSS变量定义
   ============================================ */
:root {
  /* 颜色系统 */
  --color-primary: #6474E5;        /* 主题色：联合国蓝色 */
  --color-secondary: #4EA1D3;     /* 辅助色：卡罗莱纳蓝 */
  --color-cta: #6474E5;            /* CTA按钮：使用主题色（联合国蓝色） */
  --color-accent-red-1: #F4A4A4;   /* 点缀色：粉红（仅用于点缀） */
  --color-accent-red-2: #F8C8C6;  /* 点缀色：差玫瑰（仅用于点缀） */
  --color-accent-2: #9AA4EC;       /* 辅助色：最大蓝紫色 */
  --color-background: #FFFFFF;     /* 背景色：白色 */
  --color-section-bg: #F8F9FA;    /* 区域背景色：浅灰色（用于区分区域） */
  --color-image-bg: #F0F4F8;      /* 图片区域背景色：浅蓝灰色 */
  --color-text: #090c11;
  --color-text-light: #64748B;
  --color-text-muted: #94A3B8;
  --color-border: #9AA4EC;         /* 边框色：最大蓝紫色 */
  --color-white: #FFFFFF;
  --color-dark: #0F172A;
  
  /* 间距系统 */
  --space-xs: 0.25rem;   /* 4px */
  --space-sm: 0.5rem;    /* 8px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.5rem;    /* 24px */
  --space-xl: 2rem;      /* 32px */
  --space-2xl: 3rem;     /* 48px */
  --space-3xl: 4rem;    /* 64px */
  
  /* 阴影系统 */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  
  /* 圆角 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* 过渡时间 */
  --transition-fast: 150ms;
  --transition-base: 200ms;
  --transition-slow: 300ms;
}

/* ============================================
   基础重置
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

/* 全屏section滚动 */
#fullpage-wrap {
  height: 100vh;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#fullpage-wrap::-webkit-scrollbar {
  display: none;
}

#fullpage-wrap .hero {
  padding-top: calc(64px + var(--space-3xl));
}

#fullpage-wrap .section,
#fullpage-wrap .cta-section {
  padding-top: 64px;
}

#fullpage-wrap .hero,
#fullpage-wrap .section,
#fullpage-wrap .cta-section {
  min-height: 100vh;
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--color-text);
  background-color: var(--color-background);
  line-height: 1.6;
  font-size: 16px;
  /* 子页面无 #fullpage-wrap 时需由 body 滚动；首页全屏模式在下面 :has 中锁定 */
  overflow-x: hidden;
  overflow-y: auto;
}

/* 仅首页：滚动发生在 #fullpage-wrap 内，避免双滚动条 */
body:has(#fullpage-wrap) {
  overflow: hidden;
}

/* ============================================
   字体系统
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.875rem; }
  h3 { font-size: 1.5rem; }
}

p {
  color: var(--color-text);
  line-height: 1.7;
}

.text-light {
  color: var(--color-text-light);
}

.text-muted {
  color: var(--color-text-muted);
}

/* ============================================
   Glassmorphism导航栏
   ============================================ */
.nav-glass {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base) ease;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--color-white);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  transition: opacity var(--transition-base) ease;
  cursor: pointer;
}

.nav-logo:hover {
  opacity: 0.8;
}

.nav-logo img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav-menu a {
  color: var(--color-white);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition-base) ease;
  cursor: pointer;
}

.nav-menu a:hover {
  color: var(--color-primary);
}

.nav-menu a.active {
  color: var(--color-primary);
}

.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  color: var(--color-white);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1001;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: var(--space-md);
  flex-direction: column;
  gap: var(--space-md);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: max-height var(--transition-slow) ease, opacity var(--transition-slow) ease, visibility var(--transition-slow) ease;
  /* 确保移动菜单在内容之上 */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.mobile-menu.active {
  max-height: 500px;
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .nav-glass {
    /* 确保导航栏在移动端也有足够的层级 */
    z-index: 1000;
  }
  
  .nav-menu {
    display: none;
  }
  
  .mobile-menu-button {
    display: block;
    z-index: 1002;
    position: relative;
  }
  
  .mobile-menu {
    display: flex;
    /* 确保移动菜单在内容之上 */
    z-index: 1001;
    background: #ffffff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    /* 未激活时完全隐藏 */
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    border-top: none;
    box-shadow: none;
    padding: 0;
  }
  
  .mobile-menu.active {
    opacity: 1;
    visibility: visible;
    max-height: 500px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    padding: var(--space-md);
  }
  
  /* 确保移动菜单项在内容之上，不被遮挡 */
  .mobile-menu a,
  .mobile-menu button {
    position: relative;
    z-index: 1;
    padding: var(--space-sm) 0;
    display: block;
    width: 100%;
  }
  
  /* 确保页面内容在导航栏下方，避免被遮挡 */
  .hero,
  .section:first-of-type {
    padding-top: calc(64px + var(--space-2xl));
  }
}

/* ============================================
   按钮组件
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base) ease;
  font-family: 'Open Sans', sans-serif;
}

.btn-primary {
  background: #FFC107;
  color: #1E293B;
}

.btn-primary:hover {
  background: #FFD54F;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:focus {
  outline: 2px solid #FFC107;
  outline-offset: 2px;
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-secondary:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn-white {
  background: var(--color-white);
  color: var(--color-text);
}

.btn-white:hover {
  background: var(--color-section-bg);
}

/* ============================================
   卡片组件
   ============================================ */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base) ease;
  border: 1px solid var(--color-border);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base) ease;
}

.card-glass:hover {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* ============================================
   容器和布局
   ============================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-3xl) 0;
}

#fullpage-wrap .section .container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 左下角区块导航（仅PC端） */
.section-nav {
  display: none;
  position: fixed;
  left: 24px;
  bottom: 32px;
  z-index: 999;
}

.section-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-nav-list li {
  display: block;
}

.section-nav-list .nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 6px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: opacity var(--transition-base) ease;
}

.section-nav-list .nav-item:hover {
  opacity: 0.9;
}

.section-nav-list .nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.3);
  flex-shrink: 0;
  transition: all var(--transition-base) ease;
}

.section-nav-list .nav-item:hover .nav-dot {
  background: var(--color-primary);
  transform: scale(1.2);
}

.section-nav-list .nav-item.active .nav-dot {
  background: var(--color-primary);
  width: 10px;
  height: 10px;
}

.section-nav-list .nav-label {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  white-space: nowrap;
}

.section-nav-list .nav-item.active .nav-label {
  color: var( --color-white);
  font-weight: 500;
}

@media (min-width: 769px) {
  .section-nav {
    display: block;
  }
}

@media (max-width: 768px) {
  .section-nav {
    display: none !important;
  }
}

/* 产品式 section：底图 + 标题 + 描述 + 底部亮点 */
.product-section {
  position: relative;
  background: var(--color-section-bg);
  transition: opacity 0.2s ease-in-out;
}

.product-section.is-fading {
  opacity: 0.9;
}

.product-section-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.product-section-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.4) 50%, transparent 100%);
}

.product-section-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  color: var(--color-white);
}

.product-section-tag {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.875rem;
  margin-bottom: var(--space-md);
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.2);
}

.product-section-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--color-white);
  line-height: 1.3;
}

.product-section-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-xl);
}

.product-section-cta {
  font-size: 1rem;
  padding: 12px 32px;
}

.product-highlights {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  padding: var(--space-lg) var(--space-md) var(--space-xl);
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
}

.product-highlight-item {
  background: none;
  border: none;
  padding: 12px 16px;
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  position: relative;
  transition: color var(--transition-base) ease;
  font-family: inherit;
}

.product-highlight-item:hover {
  color: var(--color-white);
}

.product-highlight-item.active {
  color: var(--color-white);
  font-weight: 500;
}

.product-highlight-item.active::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 2px;
  background: var(--color-white);
}

@media (max-width: 768px) {
  .product-section-overlay {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.3), rgba(15, 23, 42, 0.85) 40%);
  }
  .product-section-content {
    max-width: 100%;
  }
  .product-section-title {
    font-size: 1.5rem;
  }
  .product-section-desc {
    font-size: 0.9375rem;
  }
  .product-highlights {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4px;
  }
  .product-highlight-item {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
  .product-highlight-item.active::after {
    left: 12px;
    right: 12px;
  }
}

.section-sm {
  padding: var(--space-2xl) 0;
}

/* ============================================
   Hero区域
   ============================================ */
.hero {
  padding-top: calc(64px + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  text-align: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  line-height: 1.1;
  font-family: 'Noto Serif SC', 'STSong', 'SimSun', '宋体', serif;
  letter-spacing: 0.05em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-2xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-video-wrap {
  max-width: 900px;
  margin: 0 auto var(--space-xl);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-lg);
}

.hero-cover {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto var(--space-xl);
  padding: var(--space-lg) var(--space-md);
  background: rgba(15, 23, 42, 0.75);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-highlight-item {
  flex: 1;
  min-width: 140px;
  padding: var(--space-sm) var(--space-md);
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-highlight-item:first-child {
  border-left: none;
}

.hero-highlight-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: opacity var(--transition-base) ease;
}

.hero-highlight-link:hover {
  opacity: 0.9;
}

.hero-highlight-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 4px;
}

.hero-highlight-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

@media (max-width: 768px) {
  .hero-tag-pc {
    display: none !important;
  }

  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-video-wrap {
    margin-left: calc(-1 * var(--space-md));
    margin-right: calc(-1 * var(--space-md));
    border-radius: 0;
  }

  .hero-highlights {
    flex-direction: column;
    text-align: left;
  }

  .hero-highlight-item {
    min-width: 0;
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: var(--space-sm) 0;
  }

  .hero-highlight-item:last-child {
    border-bottom: none;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-cta .btn {
    width: 100%;
  }
}

/* ============================================
   功能展示区域
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.feature-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base) ease;
  border: 1px solid var(--color-border);
  cursor: pointer;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--color-white);
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.feature-description {
  color: var(--color-text-light);
  line-height: 1.7;
}

/* 功能特性响应式布局 */
.feature-grid-responsive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 400px;
}

.feature-content {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-image {
  background: var(--color-image-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  min-height: 300px;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* 移动端响应式 */
@media (max-width: 768px) {
  .feature-grid-responsive {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  
  .feature-content {
    padding: 32px 24px;
    order: 2;
  }
  
  .feature-image {
    padding: 24px;
    min-height: 250px;
    order: 1;
  }
  
  .feature-image img {
    max-height: 300px;
    object-fit: contain;
  }
}

/* 品牌理念网格布局 */
.philosophy-principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
}

.philosophy-differentiation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

@media (max-width: 768px) {
  .philosophy-principles-grid {
    grid-template-columns: 1fr;
  }
  
  .philosophy-differentiation-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   FAQ组件
   ============================================ */
.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-md);
  overflow: hidden;
  transition: all var(--transition-base) ease;
}

.faq-question {
  width: 100%;
  padding: var(--space-lg);
  text-align: left;
  background: none;
  border: none;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color var(--transition-base) ease;
}

.faq-question:hover {
  background: var(--color-section-bg);
}

.faq-icon {
  transition: transform var(--transition-base) ease;
  color: var(--color-primary);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow) ease;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
}

.faq-content {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ============================================
   CTA区域
   ============================================ */
.cta-section {
  background: var(--color-dark);
  color: var(--color-white);
  padding: var(--space-3xl) 0;
  text-align: center;
}

.cta-title {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.cta-description {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-2xl);
  font-size: 1.125rem;
}

/* ============================================
   页脚
   ============================================ */
.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-section h4 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
  font-size: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-base) ease;
  cursor: pointer;
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  text-align: center;
  font-size: 0.875rem;
}

/* ============================================
   模态框
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: var(--space-md);
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-section-bg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-base) ease;
}

.modal-close:hover {
  background: var(--color-border);
}

.image-modal-content {
  max-width: min(720px, 100%);
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.image-modal-main {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal-img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  background: #000;
}

.image-modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: #111827;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.image-modal-arrow-prev {
  left: 12px;
}

.image-modal-arrow-next {
  right: 12px;
}

.image-modal-close-btn {
  margin-top: var(--space-md);
  padding: 8px 20px;
  border-radius: 999px;
  border: none;
  background: #ffffff;
  color: #111827;
  cursor: pointer;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.image-modal-close-btn:hover {
  background: #f3f4f6;
}

/* ============================================
   工具类
   ============================================ */
.text-center {
  text-align: center;
}

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

/* ============================================
   响应式工具
   ============================================ */
/* 响应式优化 - 移动端 */
@media (max-width: 375px) {
  .container {
    padding: 0 var(--space-sm);
  }
  
  .section {
    padding: var(--space-2xl) 0;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .card {
    padding: var(--space-md);
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* 响应式优化 - 平板 */
@media (min-width: 376px) and (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .pricing-table-container {
    overflow-x: visible;
    box-shadow: none;
  }

  .pricing-table {
    display: block;
    width: 100%;
  }

  .pricing-table thead {
    display: none;
  }

  .pricing-table tbody {
    display: block;
  }

  .pricing-table tr {
    display: block;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    overflow: hidden;
  }

  .pricing-table td {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: var(--space-md);
    border: none;
    border-bottom: 1px solid #eee;
    background: transparent;
  }

  .pricing-table td:last-child {
    border-bottom: none;
  }

  .pricing-table td::before {
    content: attr(data-label);
    font-size: 0.75rem;
    color: var(--color-text-light);
  }

  .pricing-table td div {
    text-align: left;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1025px) {
  .container {
    max-width: 1280px;
  }
}
