/* Apple-style Minimalist Design - 深圳冒个泡科技有限公司官网 */

/* CSS变量定义 - 苹果极简风格 */
:root {
  /* 极简色彩方案 */
  --primary-color: #007AFF;
  --secondary-color: #5856D6;
  --text-primary: #1d1d1f;
  --text-secondary: #86868b;
  --text-muted: #a1a1a6;
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f7;
  --bg-accent: #fbfbfd;
  --border-color: #d2d2d7;
  --shadow-light: rgba(0, 0, 0, 0.04);
  --shadow-medium: rgba(0, 0, 0, 0.08);
  --shadow-hover: rgba(0, 0, 0, 0.12);
}

/* 深色模式 */
[data-theme="dark"] {
  --primary-color: #0a84ff;
  --secondary-color: #5e5ce6;
  --text-primary: #f5f5f7;
  --text-secondary: #86868b;
  --text-muted: #6e6e73;
  --bg-primary: #000000;
  --bg-secondary: #1d1d1f;
  --bg-accent: #2c2c2e;
  --border-color: #424245;
  --shadow-light: rgba(255, 255, 255, 0.04);
  --shadow-medium: rgba(255, 255, 255, 0.08);
  --shadow-hover: rgba(255, 255, 255, 0.12);
}

/* 基础重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 17px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, SF Pro Display, SF Pro Icons, Helvetica Neue, Helvetica, Arial, sans-serif;
  line-height: 1.47;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color 0.4s ease, color 0.4s ease;
  font-weight: 400;
  letter-spacing: -0.022em;
}

/* 容器和布局 */
.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 22px;
}

.section {
  padding: 120px 0;
}

.section-title {
  font-size: 3.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-primary);
  letter-spacing: -0.003em;
  line-height: 1.05;
}

.section-subtitle {
  font-size: 1.4rem;
  font-weight: 400;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 80px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

/* 导航栏 - Apple风格 */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

[data-theme="dark"] header {
  background: rgba(29, 29, 31, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  height: 48px;
}

.logo {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo i {
  font-size: 1.2rem;
  color: var(--primary-color);
  font-weight: 400;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0;
  align-items: center;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.94rem;
  padding: 0 22px;
  height: 48px;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
  border-radius: 0;
}

.nav-link:hover {
  color: var(--text-secondary);
}

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

/* 主题切换按钮 - Apple风格 */
.theme-toggle {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all 0.2s ease;
  font-size: 0.85rem;
}

.theme-toggle:hover {
  background-color: var(--bg-secondary);
}

/* 汉堡菜单 */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  width: 18px;
  height: 1px;
  background-color: var(--text-primary);
  margin: 2px 0;
  transition: 0.3s;
  border-radius: 1px;
}

/* Hero部分 - Apple风格 */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  text-align: center;
  position: relative;
  padding-top: 48px;
}

.hero-content {
  max-width: 800px;
  padding: 0 22px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 600;
  margin-bottom: 28px;
  color: var(--text-primary);
  letter-spacing: -0.003em;
  line-height: 1.05;
}

.hero-subtitle {
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.3;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.4;
  font-weight: 400;
}

/* 按钮 - Apple风格 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 400;
  text-decoration: none;
  border-radius: 980px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  min-height: 44px;
  white-space: nowrap;
  gap: 8px;
}

.btn i {
  font-size: 0.9rem;
  font-weight: 400;
}

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

.btn-primary:hover {
  background-color: #0056CC;
  transform: translateY(-1px);
}

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

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

.btn-white {
  background-color: white;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-white:hover {
  background-color: var(--bg-secondary);
  transform: translateY(-1px);
}

/* 卡片 - Apple极简风格 */
.card {
  background: var(--bg-primary);
  border-radius: 18px;
  padding: 40px 32px;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  text-align: center;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px var(--shadow-hover);
}
.card-img{
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--text-secondary);
  font-size: 1.4rem;
  transition: all 0.3s ease;
}
.card-img img{
  width: 100%;
  height: 100%;
}

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--text-secondary);
  font-size: 1.4rem;
  transition: all 0.3s ease;
}

/* 极简扁平化图标样式 */
.card-icon i {
  font-weight: 300;
  opacity: 0.8;
}

/* 几何图标特殊样式 */
.card-icon .fa-circle {
  font-size: 1rem;
}

.card-icon .fa-square {
  font-size: 0.9rem;
}

.card-icon .fa-triangle {
  font-size: 0.9rem;
}

.card-icon .fa-hexagon {
  font-size: 0.9rem;
}

.card-icon .fa-circle-dot {
  font-size: 1.1rem;
}

.card-icon .fa-comment {
  font-size: 1.2rem;
}

.card-icon .fa-laptop {
  font-size: 1.1rem;
}

.card-icon .fa-cog {
  font-size: 1.2rem;
}

.card-icon .fa-wifi {
  font-size: 1.1rem;
}

.card-icon .fa-home {
  font-size: 1.1rem;
}

.card-icon .fa-mobile {
  font-size: 1.3rem;
}

.card-icon .fa-shield {
  font-size: 1.2rem;
}

.card-icon .fa-phone {
  font-size: 1.1rem;
}

/* 卡片悬停时图标效果 */
.card:hover .card-icon {
  background: var(--bg-primary);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.card:hover .card-icon i {
  opacity: 1;
}

/* 深色模式下的图标优化 */
[data-theme="dark"] .card-icon {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .card:hover .card-icon {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

[data-theme="dark"] .card:hover .card-icon i {
  opacity: 1;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.card-description {
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: 1rem;
}

/* 网格布局 */
.grid {
  display: grid;
  gap: 40px;
  margin-top: 60px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* 页脚 - Apple风格 */
footer {
  background-color: var(--bg-secondary);
  padding: 60px 0 40px;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-section h3 i {
  font-size: 1rem;
  color: var(--primary-color);
  font-weight: 400;
}

.footer-section p,
.footer-section a {
  color: var(--text-secondary);
  margin-bottom: 12px;
  text-decoration: none;
  font-size: 0.94rem;
  line-height: 1.4;
}

.footer-section a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: var(--bg-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  border: 1px solid var(--border-color);
}

.social-links a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: scale(1.05);
}

/* 动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* 表单 - Apple风格 */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.94rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 1rem;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

/* 团队成员 */
.team-member {
  text-align: center;
  padding: 32px 24px;
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 20px;
  object-fit: cover;
  border: 3px solid var(--border-color);
}

.team-name {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.team-role {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 16px;
}

.team-bio {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.5;
}

/* 时间线 */
.timeline {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  width: 2px;
  background-color: var(--border-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 20px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-content {
  padding: 24px;
  background-color: var(--bg-primary);
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.timeline-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  right: -8px;
  background-color: var(--primary-color);
  border: 2px solid var(--bg-primary);
  top: 32px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -8px;
}

.timeline-year {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.timeline-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.timeline-description {
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: 0.94rem;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .section-title {
    font-size: 3rem;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 22px;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 48px;
    flex-direction: column;
    background-color: var(--bg-primary);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px var(--shadow-medium);
    border-top: 1px solid var(--border-color);
  }

  .nav-menu.active {
    left: 0;
  }

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

  .nav-link {
    padding: 20px;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.4rem;
  }

  .section {
    padding: 80px 0;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .grid {
    gap: 24px;
  }

  .card {
    padding: 32px 24px;
  }

  .timeline::before {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item:nth-child(even) {
    left: 0%;
  }

  .timeline-dot {
    left: 24px;
  }

  .timeline-item:nth-child(even) .timeline-dot {
    left: 24px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 60px 0;
  }

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

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .card {
    padding: 24px 20px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.94rem;
  }
} 