/**
 * Pijelly - 哒可记账官方網站主样式系统
 * ========================================
 * 基础设计与 CSS 变量系统
 * 成都派水姆科技有限公司 © 2026
 */

/* ==================== CSS 变量系统 ==================== */
:root {
  /* === 色彩体系 === */
  
  /* 主色调 - 科技蓝 */
  --color-primary: #2563EB;
  --color-primary-dark: #1E40AF;
  --color-primary-light: #3B82F6;
  --color-primary-fade: #60A5FA;
  
  /* 辅助色 - 深空紫 */
  --color-secondary: #7C3AED;
  --color-secondary-dark: #6D28D9;
  --color-secondary-light: #8B5CF6;
  
  /* 中性色 - 灰色系 */
  --color-gray-50: #F9FAFB;
  --color-gray-100: #F3F4F6;
  --color-gray-200: #E5E7EB;
  --color-gray-300: #D1D5DB;
  --color-gray-400: #9CA3AF;
  --color-gray-500: #6B7280;
  --color-gray-600: #4B5563;
  --color-gray-700: #374151;
  --color-gray-800: #1F2937;
  --color-gray-900: #111827;
  
  /* 语义色 */
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;
  --color-info: #3B82F6;
  
  /* 背景色 */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F9FAFB;
  --bg-tertiary: #F3F4F6;
  --bg-dark: #111827;
  --bg-gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --bg-gradient-primary: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
  
  /* 文字色 */
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-tertiary: #6B7280;
  --text-inverse: #FFFFFF;
  --text-link: #2563EB;
  --text-link-hover: #1E40AF;
  
  /* 边框色 */
  --border-color: #E5E7EB;
  --border-color-dark: #D1D5DB;
  
  /* === 排版系统 === */
  
  /* 字体族 */
  --font-family-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-family-mono: 'SF Mono', 'Monaco', 'Consolas', monospace;
  
  /* 字体大小 */
  --font-size-xs: 0.75rem;     /* 12px */
  --font-size-sm: 0.875rem;    /* 14px */
  --font-size-base: 1rem;      /* 16px */
  --font-size-lg: 1.125rem;    /* 18px */
  --font-size-xl: 1.25rem;     /* 20px */
  --font-size-2xl: 1.5rem;     /* 24px */
  --font-size-3xl: 1.875rem;   /* 30px */
  --font-size-4xl: 2.25rem;    /* 36px */
  --font-size-5xl: 3rem;       /* 48px */
  --font-size-6xl: 3.75rem;    /* 60px */
  
  /* 字重 */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* 行高 */
  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;
  
  /* 字母间距 */
  --letter-spacing-tighter: -0.05em;
  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.025em;
  --letter-spacing-wider: 0.05em;
  
  /* === 间距系统 (基于 8px 网格) === */
  --spacing-0: 0;
  --spacing-1: 0.25rem;   /* 4px */
  --spacing-2: 0.5rem;    /* 8px */
  --spacing-3: 0.75rem;   /* 12px */
  --spacing-4: 1rem;      /* 16px */
  --spacing-5: 1.25rem;   /* 20px */
  --spacing-6: 1.5rem;    /* 24px */
  --spacing-8: 2rem;      /* 32px */
  --spacing-10: 2.5rem;   /* 40px */
  --spacing-12: 3rem;     /* 48px */
  --spacing-16: 4rem;     /* 64px */
  --spacing-20: 5rem;     /* 80px */
  --spacing-24: 6rem;     /* 96px */
  
  /* === 边界与圆角 === */
  --radius-none: 0;
  --radius-sm: 0.25rem;   /* 4px */
  --radius-md: 0.375rem;  /* 6px */
  --radius-lg: 0.5rem;    /* 8px */
  --radius-xl: 0.75rem;   /* 12px */
  --radius-2xl: 1rem;     /* 16px */
  --radius-full: 9999px;
  
  /* === 阴影系统 === */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  
  /* 彩色阴影 */
  --shadow-primary: 0 10px 40px rgba(37, 99, 235, 0.3);
  --shadow-secondary: 0 10px 40px rgba(124, 58, 237, 0.3);
  
  /* === 过渡动画 === */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  --transition-slower: 500ms ease;
  --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* === Z-index 层级 === */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  
  /* === 布局约束 === */
  --container-max-width: 1280px;
  --container-padding: var(--spacing-6);
}

/* ==================== 全局重置 ==================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--text-link-hover);
}

ul,
ol {
  list-style: none;
}

/* ==================== 排版样式 ==================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--text-primary);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
  margin-bottom: var(--spacing-4);
  color: var(--text-secondary);
}

/* ==================== 容器 ==================== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ==================== 通用工具类 ==================== */

/* 文本对齐 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* 文本颜色 */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-white { color: var(--text-inverse); }
.text-brand { color: var(--color-primary); }

/* 背景色 */
.bg-primary { background-color: var(--bg-primary); }
.bg-secondary { background-color: var(--bg-secondary); }
.bg-tertiary { background-color: var(--bg-tertiary); }
.bg-dark { background-color: var(--bg-dark); }

/* 间距工具类 */
.mt-4 { margin-top: var(--spacing-4); }
.mt-8 { margin-top: var(--spacing-8); }
.mb-4 { margin-bottom: var(--spacing-4); }
.mb-8 { margin-bottom: var(--spacing-8); }
.p-4 { padding: var(--spacing-4); }
.p-8 { padding: var(--spacing-8); }

/* 显示 */
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }

/* Flexbox */
.flex-center { align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-column { flex-direction: column; }

/* 隐藏 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ==================== 按钮组件 ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-3) var(--spacing-6);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
  text-align: center;
  white-space: nowrap;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--text-inverse);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: var(--text-inverse);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:active {
  background: var(--color-primary-dark);
  color: var(--text-inverse);
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--color-secondary);
  color: var(--text-inverse);
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  background: var(--color-secondary-dark);
  color: var(--text-inverse);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary:active {
  background: var(--color-secondary-dark);
  color: var(--text-inverse);
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--text-inverse);
}

.btn-outline:active {
  background: var(--color-primary-dark);
  color: var(--text-inverse);
}

.btn-lg {
  padding: var(--spacing-4) var(--spacing-8);
  font-size: var(--font-size-lg);
}

.btn-glass {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-3);
  padding: var(--spacing-4) var(--spacing-6);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-xl);
  color: var(--text-primary);
  font-weight: var(--font-weight-medium);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 
    0 8px 30px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.btn-glass:active {
  transform: translateY(0);
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-glass .btn-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  font-size: 32px;
}

.btn-glass .btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.btn-glass .btn-label {
  font-size: var(--font-size-xs);
  opacity: 0.8;
  line-height: 1.2;
}

.btn-glass .btn-title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
}

.btn-apple {
  color: #000;
}

.btn-android {
  color: #34A853;
}

.btn-sm {
  padding: var(--spacing-2) var(--spacing-4);
  font-size: var(--font-size-sm);
}

/* ==================== 卡片组件 ==================== */
.card {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  padding: var(--spacing-6);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

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

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

/* 移动设备：<= 767px */
@media (max-width: 767px) {
  :root {
    --font-size-5xl: 2.5rem;
    --font-size-4xl: 2rem;
    --font-size-3xl: 1.5rem;
  }
  
  .container {
    padding: 0 var(--spacing-4);
  }
}

/* 平板设备：768px - 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --font-size-5xl: 3rem;
    --font-size-4xl: 2.25rem;
  }
  
  .container {
    padding: 0 var(--spacing-6);
  }
}

/* 桌面设备：>= 1024px */
@media (min-width: 1024px) {
  .container {
    padding: 0 var(--spacing-8);
  }
}

/* ==================== 暗色模式支持（未来扩展）==================== */
@media (prefers-color-scheme: dark) {
  /* 预留暗色模式样式接口 */
}

/* ==================== 导航栏 ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 4px 30px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all var(--transition-base);
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.nav {
  padding: 1%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-4) 0;
}

.nav-brand .logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
}

.logo-text {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  background: var(--bg-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-6);
}

.nav-link {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  padding: var(--spacing-2) var(--spacing-4);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-link:hover {
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--spacing-2);
  background: transparent;
  border: none;
  cursor: pointer;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all var(--transition-base);
}

.nav-toggle.active .hamburger:nth-child(1) {
  transform: rotate(45deg) translateY(6px);
}

.nav-toggle.active .hamburger:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .hamburger:nth-child(3) {
  transform: rotate(-45deg) translateY(-6px);
}

.nav-toggle::before,
.nav-toggle::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all var(--transition-base);
}

.nav-toggle.active::before {
  transform: rotate(45deg) translateY(6px);
}

.nav-toggle.active::after {
  transform: rotate(-45deg) translateY(-8px);
}

/* ==================== Hero 区域 ==================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-gradient-hero);
  opacity: 0.03;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-12);
  align-items: center;
  min-height: calc(100vh - 80px);
}

.hero-text {
  text-align: left;
      padding: 10%;
}

.hero-title {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--text-primary);
  margin-bottom: var(--spacing-6);
}

.hero-title .highlight {
  background: var(--bg-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-8);
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: var(--spacing-4);
  flex-wrap: wrap;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-phones {
  display: flex;
  gap: -80px;
  position: relative;
}

.hero-phone {
  position: relative;
}

.hero-phone .phone-frame {
  width: 280px;
  height: 560px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 40px;
  padding: 4%;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-phone:hover .phone-frame {
  transform: translateY(-10px);
  box-shadow: 
    0 35px 60px rgba(0, 0, 0, 0.15),
    0 12px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.phone-primary {
  z-index: 2;
}

.phone-secondary {
  position: absolute;
  top: 80px;
  right: -160px;
  z-index: 1;
}

.phone-secondary .phone-frame {
  width: 240px;
  height: 480px;
  opacity: 0.85;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 平板端响应式 */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-phone .phone-frame {
    width: 220px;
    height: 440px;
  }
  
  .phone-secondary {
    top: 60px;
    right: -120px;
  }
  
  .phone-secondary .phone-frame {
    width: 190px;
    height: 380px;
  }
}

/* 移动端响应式 */
@media (max-width: 767px) {
  .logo-image {
        border-radius: 15px;
    width: 115px;
    margin: 27px auto;
    padding: 1%;
  }

  .hero-phones {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-4);
  }
  
  .hero-phone .phone-frame {
    width: 200px;
    height: 400px;
  }
  
  .phone-secondary {
    position: static;
    opacity: 0.9;
  }
  
  .phone-secondary .phone-frame {
    width: 180px;
    height: 360px;
  }
}

.screen-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #f5f5f5 0%, #e8e8e8 100%);
  border-radius: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-4);
}

.screen-placeholder::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 24px;
  background: var(--color-gray-900);
  border-radius: 12px;
}

.placeholder-text {
  font-size: var(--font-size-sm);
  color: var(--color-gray-400);
  text-align: center;
}

/* 装饰性背景圆球 */
.hero-bg-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  animation: float 8s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--color-primary);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: var(--color-secondary);
  bottom: -50px;
  left: -50px;
  animation-delay: -3s;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: var(--color-primary-fade);
  top: 50%;
  right: 20%;
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.05);
  }
}

/* ==================== 功能特点区域 ==================== */
.features {
  padding: var(--spacing-20) 0;
  background: var(--bg-secondary);
}

.feature-section {
  margin-bottom: var(--spacing-12);
}

.section-label {
  display: inline-block;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
  color: var(--color-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  padding: var(--spacing-2) var(--spacing-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--spacing-6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-12);
}

.section-title {
  font-size: var(--font-size-4xl);
  color: var(--text-primary);
  margin-bottom: var(--spacing-4);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-8);
}

.features-toggle {
  text-align: center;
  margin-top: var(--spacing-8);
}

.features-toggle .btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-2);
}

.toggle-icon {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-base);
}

.toggle-icon.rotated {
  transform: rotate(180deg);
}

.feature-card {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  padding: var(--spacing-8);
  text-align: center;
  transition: all var(--transition-base);
  border: 1px solid var(--border-color);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--spacing-6);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: var(--font-size-2xl);
  transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
  background: var(--bg-gradient-primary);
  color: var(--text-inverse);
  transform: scale(1.1);
}

.feature-card.hidden-feature {
  display: none;
}

.feature-card.hidden-feature.visible {
  display: block;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-3);
}

.feature-description {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

/* ==================== 产品界面展示区域 ==================== */
.app-showcase {
  padding: var(--spacing-20) 0;
  background: linear-gradient(135deg, #fafafa 0%, #f5f7fa 50%, #eff2f7 100%);
  position: relative;
  overflow: hidden;
}

.app-showcase::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -15%;
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(59, 130, 246, 0.05) 100%);
  border-radius: 50%;
  filter: blur(50px);
}

.app-showcase::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.05) 0%, rgba(59, 130, 246, 0.03) 50%, rgba(34, 197, 94, 0.03) 100%);
  border-radius: 50%;
  filter: blur(60px);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-6);
  position: relative;
  z-index: 1;
}

.showcase-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.iphone-frame {
     width: 283px;
    height: 588px;
  background: linear-gradient(145deg, #f8f8f8, #e8e8e8);
  border-radius: 38px;
  padding: 10px;
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.08),
    0 2px 10px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  margin-bottom: var(--spacing-4);
  transition: all var(--transition-base);
}

.showcase-item:hover .iphone-frame {
  transform: translateY(-6px);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.12),
    0 5px 20px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.iphone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 24px;
  background: #1a1a1a;
  border-radius: 0 0 12px 12px;
  z-index: 2;
}

.iphone-notch::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 7px;
  background: #0d0d0d;
  border-radius: 4px;
}

.iphone-screen {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.iphone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.iphone-home-indicator {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 2px;
  z-index: 2;
}

.showcase-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-2);
}

.showcase-description {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  margin: 0;
  max-width: 220px;
}

/* ==================== 下载引导区域 ==================== */
.download {
  padding: var(--spacing-20) 0;
  background: var(--bg-gradient-hero);
}

.download-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-12);
  align-items: center;
}

.download-info {
  text-align: left;
      padding: 0 10%;
}

.download-title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-inverse);
  margin-bottom: var(--spacing-4);
}

.download-subtitle {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-8);
}

.download-platforms {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
}

.download-btn {
  display: flex;
  align-items: center;
  gap: var(--spacing-4);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--spacing-4);
  text-decoration: none;
  transition: all var(--transition-base);
  max-width: 320px;
}

.download-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(4px);
}

.platform-icon {
  width: 48px;
  height: 48px;
  color: var(--text-inverse);
}

.btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.btn-small-text {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-large-text {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--text-inverse);
}

.download-qrcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-4);
}

.qrcode-container {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  padding: var(--spacing-6);
  box-shadow: var(--shadow-xl);
}

.qrcode-placeholder {
  width: 180px;
  height: 180px;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-2);
  color: var(--color-gray-400);
}

.qrcode-placeholder svg {
  width: 64px;
  height: 64px;
}

.qrcode-placeholder span {
  font-size: var(--font-size-xs);
  text-align: center;
}

.qrcode-tip {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.8);
}

/* ==================== 页脚 ==================== */
.footer {
  background: var(--bg-dark);
  padding: var(--spacing-12) 0 var(--spacing-6);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--spacing-12);
  margin-bottom: var(--spacing-8);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  margin-bottom: var(--spacing-4);
}

.footer-tagline {
  font-size: var(--font-size-sm);
  color: var(--color-gray-400);
  margin-bottom: var(--spacing-4);
}

.copyright {
  font-size: var(--font-size-xs);
  color: var(--color-gray-500);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-8);
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
}

.footer-title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--text-inverse);
  margin-bottom: var(--spacing-2);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3);
}

.footer-nav li {
  font-size: var(--font-size-sm);
  color: var(--color-gray-400);
}

.footer-nav li a {
  color: var(--color-gray-400);
  transition: color var(--transition-fast);
}

.footer-nav li a:hover {
  color: var(--text-inverse);
}

.footer-nav li:not(:last-child) {
  margin-bottom: var(--spacing-1);
}

.footer-bottom {
  border-top: 1px solid var(--color-gray-800);
  padding-top: var(--spacing-6);
  text-align: center;
}

.footer-bottom p {
  font-size: var(--font-size-xs);
  color: var(--color-gray-500);
  margin: 0;
}

/* ==================== 响应式调整 ==================== */

/* 移动设备：<= 767px */
@media (max-width: 767px) {
  .nav-menu {
   position: fixed;
        top: 57px;
        right: 16px;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(24px) saturate(200%);
        -webkit-backdrop-filter: blur(24px) saturate(200%);
        border: 1px solid rgba(255, 255, 255, 0.6);
        border-radius: 20px;
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu .nav-item {
    width: 100%;
  }

  .nav-menu .nav-link {
    display: block;
    width: 100%;
    padding: 14px 16px;
    margin: 2px 0;
    border-radius: 12px;
    color: #374151;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: left;
    backdrop-filter: none;
  }

  .nav-menu .nav-link:hover,
  .nav-menu .nav-link:active {
    background: rgba(37, 99, 235, 0.08);
    color: var(--color-primary);
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    padding: 5%;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding: var(--spacing-8) 0;
  }

  .hero-title {
    font-size: var(--font-size-4xl);
        text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .phone-mockup {
    width: 200px;
    height: 400px;
    border-radius: 36px;
    padding: 16px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .iphone-frame {
    width: 180px;
    height: 360px;
  }

  .download-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .download-btn {
    margin: 0 auto;
    width: 100%;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .footer-brand {
    max-width: 100%;
  }
}

/* 平板设备：768px - 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-8);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .iphone-frame {
    width: 200px;
    height: 400px;
  }

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

/* ==================== 法律页面样式 ==================== */
.page-header {
  padding: var(--spacing-12) 0;
  background: var(--bg-gradient-hero);
  text-align: center;
}

.page-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-inverse);
  margin-bottom: var(--spacing-3);
}

.page-subtitle {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.content-section {
  padding: var(--spacing-8) 0;
  background: var(--bg-secondary);
  min-height: calc(100vh - 200px);
}

.agreement-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  padding: var(--spacing-8);
  box-shadow: var(--shadow-md);
}

.agreement-intro {
  margin-bottom: var(--spacing-8);
  padding-bottom: var(--spacing-6);
  border-bottom: 1px solid var(--border-color);
}

.agreement-intro p {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-4);
}

.agreement-intro p:last-child {
  margin-bottom: 0;
}

.agreement-section {
  margin-bottom: var(--spacing-8);
}

.agreement-section h2 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-4);
  padding-left: var(--spacing-4);
  border-left: 4px solid var(--color-primary);
}

.section-content,
.agreement-text {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--text-secondary);
}

.section-content ol,
.agreement-text ul {
  padding-left: var(--spacing-6);
  margin-bottom: var(--spacing-4);
}

.section-content ol li,
.agreement-text ul li {
  margin-bottom: var(--spacing-3);
  position: relative;
}

.agreement-text h3 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-top: var(--spacing-6);
  margin-bottom: var(--spacing-3);
}

.agreement-text h3:first-child {
  margin-top: 0;
}

.agreement-footer {
  margin-top: var(--spacing-8);
  padding-top: var(--spacing-6);
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.agreement-footer p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-2);
}

.agreement-footer p:last-child {
  margin-bottom: 0;
}

.back-home {
  display: flex;
  justify-content: center;
  margin-top: var(--spacing-8);
}

.back-home .btn {
  min-width: 160px;
  text-align: center;
}

/* 手机端优化 */
@media (max-width: 767px) {
  .page-header {
    padding: var(--spacing-8) 0;
  }

  .page-title {
    font-size: var(--font-size-2xl);
  }

  .content-section {
    padding: var(--spacing-4) 0;
  }

  .agreement-content {
    margin: 0 var(--spacing-4);
    padding: var(--spacing-4);
    border-radius: var(--radius-lg);
  }

  .agreement-intro p {
    font-size: var(--font-size-sm);
  }

  .agreement-section h2 {
    font-size: var(--font-size-lg);
    padding-left: var(--spacing-3);
  }

  .section-content,
  .agreement-text {
    font-size: var(--font-size-sm);
  }

  .section-content ol,
  .agreement-text ul {
    padding-left: var(--spacing-4);
  }

  .agreement-text h3 {
    font-size: var(--font-size-base);
  }

  .footer-bottom {
    padding: var(--spacing-4);
    text-align: center;
  }

  .footer-bottom p {
    font-size: var(--font-size-xs);
  }
}

.agreement-table {
  overflow-x: auto;
  margin: var(--spacing-4) 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.agreement-table table {
  width: 100%;
  border-collapse: collapse;
}

.agreement-table th,
.agreement-table td {
  padding: var(--spacing-3);
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: var(--font-size-sm);
}

.agreement-table th {
  background: var(--bg-secondary);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

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

.agreement-table a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* 平板端优化 */
@media (min-width: 768px) and (max-width: 1023px) {
  .agreement-content {
    margin: 0 var(--spacing-6);
    padding: var(--spacing-6);
  }
}

/* 手机端表格优化 */
@media (max-width: 767px) {
  .agreement-table {
    border: none;
  }
  
  .agreement-table table {
    display: block;
    overflow-x: auto;
  }
  
  .agreement-table th,
  .agreement-table td {
    white-space: nowrap;
    padding: var(--spacing-2);
    font-size: var(--font-size-xs);
  }
}

/* ==================== 可访问性增强 ==================== */

/* 焦点可见性 */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
  
  .gradient-orb {
    animation: none;
  }
}
