/* ========================================
   定神户外便携用品 - 进化柔性 UI 风格
   ======================================== */

:root {
  /* 核心色彩系统 */
  --bg: #E9EFF6;
  --card: #FBFDFF;
  --ink: #1F2A37;
  --ink-soft: #43566B;
  --line: #C9D7E4;
  --accent: #0F609B;
  --accent-deep: #0B4A73;
  --accent-soft: #D9EBF8;
  
  /* 辅助色 */
  --soft-blue: #87CEEB;
  --soft-pink: #FFB6C1;
  --soft-green: #90EE90;
  
  /* 圆角规范 */
  --radius: 10px;
  
  /* 阴影系统 - 新拟态双向柔和阴影 */
  --shadow-soft: 
    8px 8px 16px rgba(174, 184, 196, 0.3),
    -8px -8px 16px rgba(255, 255, 255, 0.8);
  --shadow-pressed: 
    inset 4px 4px 8px rgba(174, 184, 196, 0.4),
    inset -4px -4px 8px rgba(255, 255, 255, 0.7);
  --shadow-button: 
    4px 4px 8px rgba(174, 184, 196, 0.3),
    -4px -4px 8px rgba(255, 255, 255, 0.7);
  
  /* 间距系统 - 8px 模数 */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  
  /* 字体系统 */
  --font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* 顶部导航栏 */
.header {
  position: sticky;
  top: 0;
  background: var(--bg);
  box-shadow: 0 4px 12px rgba(174, 184, 196, 0.2);
  z-index: 1000;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.brand svg {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow-button);
  transition: all 0.2s;
}

.nav-cta:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 6px 6px 12px rgba(174, 184, 196, 0.3),
              -6px -6px 12px rgba(255, 255, 255, 0.7);
}

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: 0.3s;
}

/* Hero 区域 */
.hero {
  padding: var(--space-2xl) 0;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: var(--space-sm);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

.hero-buttons {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* 按钮系统 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  min-height: 44px;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 6px 6px 12px rgba(174, 184, 196, 0.3),
              -6px -6px 12px rgba(255, 255, 255, 0.7);
}

.btn-secondary {
  background: var(--card);
  color: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-button);
}

.btn-secondary:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  text-decoration: underline;
}

.btn-ghost:hover {
  color: var(--accent-deep);
}

/* 风格信息条 */
.style-chips {
  display: flex;
  gap: var(--space-xs);
  justify-content: center;
  flex-wrap: wrap;
  padding: var(--space-lg) 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: var(--card);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  box-shadow: var(--shadow-button);
}

/* 特性卡片区 */
.features {
  padding: var(--space-2xl) 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-lg);
  color: var(--ink);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.feature-card {
  background: var(--card);
  padding: var(--space-md);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 12px 12px 24px rgba(174, 184, 196, 0.35),
              -12px -12px 24px rgba(255, 255, 255, 0.85);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-sm);
  color: var(--accent);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--ink);
}

.feature-card p {
  color: var(--ink-soft);
  line-height: 1.6;
}

/* 产品卡片 */
.products {
  padding: var(--space-2xl) 0;
  background: var(--card);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-md);
}

.product-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 12px 12px 24px rgba(174, 184, 196, 0.35),
              -12px -12px 24px rgba(255, 255, 255, 0.85);
}

.product-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--accent-soft), var(--soft-blue));
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image svg {
  width: 80px;
  height: 80px;
  color: var(--accent);
}

.product-info {
  padding: var(--space-sm);
}

.product-info h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--ink);
}

.product-info p {
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: var(--space-sm);
}

.product-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.product-link:hover {
  color: var(--accent-deep);
}

/* 团队成员 */
.team {
  padding: var(--space-2xl) 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
}

.team-card {
  background: var(--card);
  padding: var(--space-md);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s;
}

.team-card:hover {
  transform: translateY(-4px);
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), var(--soft-blue));
  margin: 0 auto var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-button);
}

.team-avatar svg {
  width: 60px;
  height: 60px;
  color: var(--accent);
}

.team-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--ink);
}

.team-role {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.team-bio {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

/* 表单区域 */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--card);
  padding: var(--space-lg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.form-group {
  margin-bottom: var(--space-sm);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
  color: var(--ink);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-family);
  font-size: 16px;
  background: var(--bg);
  transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* 页脚 */
.footer {
  background: var(--ink);
  color: white;
  padding: var(--space-xl) 0 var(--space-md);
  margin-top: var(--space-2xl);
}

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

.footer-section h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: white;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: var(--space-xs);
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

/* 响应式 */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg);
    flex-direction: column;
    padding: var(--space-lg);
    transition: left 0.3s;
    box-shadow: 0 4px 12px rgba(174, 184, 196, 0.2);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .features-grid,
  .products-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

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

/* 减弱动效 */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
