/* 惟尔软件 - 苹果风格设计 */
/* 简洁、现代、优雅的苹果设计风格 */

:root {
  /* 苹果风格色彩系统 */
  --apple-white: #ffffff;
  --apple-light-gray: #f5f5f7;
  --apple-gray: #86868b;
  --apple-dark-gray: #1d1d1f;
  --apple-blue: #007aff;
  --apple-blue-light: #5ac8fa;
  --apple-blue-dark: #0056b3;
  --apple-green: #34c759;
  --apple-orange: #ff9500;
  --apple-purple: #af52de;
  --apple-gradient: linear-gradient(135deg, #007aff 0%, #5ac8fa 100%);
  
  /* 中性色 */
  --bg-primary: var(--apple-white);
  --bg-secondary: var(--apple-light-gray);
  --text-primary: var(--apple-dark-gray);
  --text-secondary: var(--apple-gray);
  --border-color: #d2d2d7;
  
  /* 阴影系统 - 苹果风格的柔和阴影 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
  
  /* 圆角 - 苹果风格的圆角 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* 间距系统 */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  
  /* 字体系统 */
  --font-sf: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-sf-chinese: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-heading: var(--font-sf-chinese);
  --font-body: var(--font-sf-chinese);
  
  /* 动画曲线 */
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
}

/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  overflow-x: hidden;
}

  /* 苹果风格头部导航 */
  .apple-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(245, 245, 247, 0.9);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s var(--ease-in-out);
  }

.apple-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(30px);
  -webkit-backdrop-filter: saturate(180%) blur(30px);
  box-shadow: var(--shadow-sm);
}

.apple-header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.apple-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}

.apple-logo img {
  height: 32px;
  width: auto;
  transition: transform 0.3s var(--ease-in-out);
}

.apple-logo:hover img {
  transform: scale(1.05);
}

.apple-logo-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* 苹果风格导航菜单 */
.apple-nav {
  display: flex;
  gap: var(--space-xl);
}

.apple-nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 400;
  padding: var(--space-xs) 0;
  position: relative;
  transition: all 0.3s var(--ease-in-out);
  letter-spacing: -0.01em;
}

.apple-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--apple-blue);
  transition: width 0.3s var(--ease-in-out);
  border-radius: 1px;
}

.apple-nav-link:hover {
  color: var(--text-primary);
}

.apple-nav-link:hover::after {
  width: 100%;
}

.apple-nav-link.active {
  color: var(--text-primary);
}

.apple-nav-link.active::after {
  width: 100%;
}

/* 移动菜单切换按钮 */
.apple-mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 20px;
  z-index: 1001;
}

.apple-mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all 0.3s var(--ease-in-out);
}

.apple-mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.apple-mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.apple-mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* 苹果风格英雄区域 */
.apple-hero {
  min-height: 100vh;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 64px;
}

.apple-hero-content {
  max-width: 800px;
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  position: relative;
  z-index: 2;
}

.apple-hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  line-height: 1.14286;
  letter-spacing: -0.02em;
}

.apple-hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  line-height: 1.47059;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.apple-hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* 苹果风格按钮 */
.apple-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: var(--apple-blue);
  color: var(--apple-white);
  text-decoration: none;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 1.0625rem;
  transition: all 0.3s var(--ease-in-out);
  border: none;
  cursor: pointer;
  letter-spacing: -0.01em;
}

.apple-button:hover {
  background: var(--apple-blue-dark);
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.apple-button.secondary {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.apple-button.secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--text-primary);
}

/* 苹果风格卡片 */
.apple-section {
  padding: var(--space-3xl) var(--space-lg);
}

.apple-section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  line-height: 1.14286;
  letter-spacing: -0.02em;
}

.apple-section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.47059;
}

/* 苹果风格卡片网格 */
.apple-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
}

.apple-card {
  background: var(--apple-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s var(--ease-in-out);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.apple-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--apple-blue-light);
}

.apple-card-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.apple-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-in-out);
}

.apple-card:hover .apple-card-image img {
  transform: scale(1.05);
}

.apple-card-content {
  padding: var(--space-xl);
}

.apple-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.33333;
  letter-spacing: -0.01em;
}

.apple-card-description {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.47059;
  margin-bottom: var(--space-lg);
}

.apple-card-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  background: var(--apple-blue);
  color: var(--apple-white);
  text-decoration: none;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: all 0.3s var(--e-out);
}

.apple-card-button:hover {
  background: var(--apple-blue-dark);
  transform: translateX(4px);
}

/* 苹果风格关于我们区域 */
.apple-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.apple-about-content {
  padding-right: var(--space-xl);
}

.apple-about-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  line-height: 1.14286;
  letter-spacing: -0.02em;
}

.apple-about-text {
  color: var(--text-secondary);
  line-height: 1.47059;
  margin-bottom: var(--space-xl);
}

.apple-about-text p {
  margin-bottom: var(--space-md);
}

.apple-about-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.apple-about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s var(--ease-in-out);
}

.apple-about-image:hover img {
  transform: scale(1.05);
}

/* 苹果风格合作伙伴区域 */
.apple-partners {
  background: var(--bg-secondary);
  padding: var(--space-3xl) var(--space-lg);
}

.apple-partners-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2xl);
  line-height: 1.14286;
  letter-spacing: -0.02em;
}

.apple-partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
}

.apple-partner-logo {
  background: var(--apple-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-in-out);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  height: 140px;
}

.apple-partner-logo:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--apple-blue-light);
}

.apple-partner-logo img {
  max-width: 90%;
  max-height: 90%;
  height: auto;
  opacity: 0.9;
  transition: all 0.3s var(--ease-in-out);
}

.apple-partner-logo:hover img {
  opacity: 1;
  transform: scale(1.15);
}

/* 苹果风格页脚 */
.apple-footer {
  background: var(--apple-dark-gray);
  color: var(--apple-white);
  padding: var(--space-3xl) var(--space-lg) var(--space-xl);
}

.apple-footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.apple-footer-section h3 {
  font-size: 1.0625rem;
  margin-bottom: var(--space-lg);
  color: var(--apple-white);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.apple-footer-links {
  list-style: none;
}

.apple-footer-links li {
  margin-bottom: var(--space-sm);
}

.apple-footer-links a {
  color: var(--apple-gray);
  text-decoration: none;
  transition: color 0.3s var(--ease-in-out);
  font-size: 0.9375rem;
}

.apple-footer-links a:hover {
  color: var(--apple-white);
}

.apple-contact-info {
  color: var(--apple-gray);
  line-height: 1.47059;
  font-size: 0.9375rem;
}

.apple-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: var(--apple-gray);
  font-size: 0.8125rem;
}

.apple-footer-bottom a {
  color: var(--apple-blue-light);
  text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .apple-header-container {
    padding: 0 var(--space-md);
    height: 56px;
  }
  
  .apple-nav {
    position: fixed;
    top: 56px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    flex-direction: column;
    align-items: center;
    padding: var(--space-xl) 0;
    gap: var(--space-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-in-out);
    box-shadow: var(--shadow-md);
    z-index: 999;
  }
  
  .apple-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .apple-nav-link {
    font-size: 1.0625rem;
    padding: var(--space-sm) var(--space-xl);
    width: 100%;
    text-align: center;
  }
  
  .apple-mobile-menu-toggle {
    display: flex;
  }
  
  .apple-hero-title {
    font-size: 2.5rem;
  }
  
  .apple-hero-subtitle {
    font-size: 1.0625rem;
  }
  
  .apple-hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .apple-button {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .apple-section {
    padding: var(--space-2xl) var(--space-md);
  }
  
  .apple-section-title {
    font-size: 2rem;
  }
  
  .apple-about {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .apple-about-content {
    padding-right: 0;
  }
  
  .apple-grid {
    grid-template-columns: 1fr;
  }
  
  .apple-partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .apple-hero-title {
    font-size: 2rem;
  }
  
  .apple-hero-subtitle {
    font-size: 1rem;
  }
  
  .apple-section-title {
    font-size: 1.75rem;
  }
  
  .apple-nav {
    top: 52px;
  }
  
  .apple-nav-link {
    font-size: 1rem;
  }
  
  .apple-partners-grid {
    grid-template-columns: 1fr;
  }
}

/* 响应式增强 */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
