/* SmartPackPro - 统一样式文件 */

/* ========== CSS 变量 ========== */
:root {
  /* 颜色 */
  --primary: #1a1a1a;
  --primary-light: #333333;
  --accent: #0071e3;
  --accent-hover: #0056b3;
  --text-dark: #1d1d1f;
  --text-gray: #86868b;
  --text-light: #a1a1a6;
  --bg-white: #ffffff;
  --bg-light: #f5f5f7;
  --bg-lighter: #fafafa;
  --border-color: #e5e5e5;
  --success: #34c759;
  --error: #ff3b30;

  /* 字体 */
  --font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 17px;
  --font-size-lg: 20px;
  --font-size-xl: 24px;
  --font-size-2xl: 32px;
  --font-size-3xl: 40px;
  --font-size-4xl: 56px;
  --font-size-5xl: 72px;

  /* 间距 */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-2xl: 64px;
  --spacing-3xl: 96px;

  /* 圆角 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* 阴影 */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);

  /* 过渡 */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);

  /* 容器 */
  --container-max: 1200px;
  --header-height: 72px;
}

/* ========== 重置样式 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ========== 工具类 ========== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

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

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

.section-title h2 {
  font-size: var(--font-size-3xl);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

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

.text-center {
  text-align: center;
}

/* ========== 按钮样式 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: var(--font-size-base);
  font-weight: 500;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  cursor: pointer;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

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

.btn-outline:hover {
  background: var(--accent);
  color: white;
}

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

.btn-white:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
}

/* ========== 导航栏 ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--primary);
}

.logo span {
  color: var(--accent);
}

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

.nav a {
  font-size: var(--font-size-base);
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-base);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

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

.nav-cta {
  background: var(--accent);
  color: white !important;
  padding: 10px 24px;
  border-radius: var(--radius-full);
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: var(--accent-hover);
}

/* 语言选择器 */
.lang-selector {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-left: var(--spacing-md);
  padding: 6px 12px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.lang-selector select {
  background: transparent;
  border: none;
  font-size: var(--font-size-sm);
  color: var(--text-dark);
  cursor: pointer;
}

/* 移动端菜单 */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: all var(--transition-base);
}

/* ========== Hero 区域 ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-height);
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  text-align: center;
  color: white;
  max-width: 900px;
  padding: var(--spacing-xl);
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-lg);
  animation: fadeInUp 0.6s ease-out;
}

.hero h1 {
  font-size: clamp(36px, 6vw, var(--font-size-5xl));
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  font-size: clamp(16px, 2vw, var(--font-size-lg));
  color: rgba(255, 255, 255, 0.7);
  max-width: 700px;
  margin: 0 auto var(--spacing-xl);
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--spacing-2xl);
  margin-top: var(--spacing-3xl);
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: white;
}

.hero-stat-label {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.6);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== 特性区域 ========== */
.features {
  background: var(--bg-light);
}

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

.feature-card {
  background: var(--bg-white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-base);
}

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

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--spacing-md);
  background: linear-gradient(135deg, var(--accent), #00a0ff);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.feature-card h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-xs);
}

.feature-card p {
  color: var(--text-gray);
  font-size: var(--font-size-sm);
}

/* ========== 产品网格 ========== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.product-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  cursor: pointer;
}

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

.product-image {
  height: 220px;
  background: linear-gradient(135deg, var(--bg-light) 0%, #e8e8ed 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  top: var(--spacing-sm);
  left: var(--spacing-sm);
  background: var(--accent);
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 500;
}

.product-info {
  padding: var(--spacing-md);
}

.product-info h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-xs);
}

.product-info p {
  color: var(--text-gray);
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-sm);
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--accent);
  font-weight: 500;
  font-size: var(--font-size-sm);
}

.product-link:hover {
  gap: var(--spacing-sm);
}

/* 产品详情弹窗 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 1;
  transition: all var(--transition-fast);
}

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

.modal-body {
  padding: var(--spacing-xl);
}

.modal-image {
  width: 100%;
  height: 350px;
  background: linear-gradient(135deg, var(--bg-light), #e8e8ed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-lg);
}
  justify-content: center;
  font-size: 80px;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-lg);
}

.modal h2 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--spacing-sm);
}

.modal-category {
  color: var(--accent);
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin-bottom: var(--spacing-md);
}

.modal-description {
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: var(--spacing-lg);
}

.modal-specs {
  background: var(--bg-light);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
}

.modal-specs h4 {
  font-size: var(--font-size-base);
  margin-bottom: var(--spacing-sm);
}

.modal-specs ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xs);
}

.modal-specs li {
  font-size: var(--font-size-sm);
  color: var(--text-gray);
}

.modal-specs li::before {
  content: '✓';
  color: var(--success);
  margin-right: var(--spacing-xs);
}

/* ========== 用户案例 ========== */
.cases {
  background: var(--bg-light);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-lg);
}

.case-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

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

.case-image {
  height: 200px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.case-content {
  padding: var(--spacing-md);
}

.case-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  margin-bottom: var(--spacing-sm);
}

.case-content h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-xs);
}

.case-content p {
  color: var(--text-gray);
  font-size: var(--font-size-sm);
}

/* ========== 合作伙伴 ========== */
.partners {
  padding: var(--spacing-2xl) 0;
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-xl);
}

.partner-logo {
  width: 150px;
  height: 60px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
  color: var(--text-gray);
  font-weight: 600;
  transition: all var(--transition-base);
}

.partner-logo:hover {
  background: var(--border-color);
  color: var(--text-dark);
}

/* ========== 关于我们 ========== */
.about-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: calc(var(--header-height) + var(--spacing-3xl)) 0 var(--spacing-3xl);
  color: white;
}

.about-hero h1 {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--spacing-md);
}

.about-hero p {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.7);
  max-width: 700px;
}

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

.about-text h2 {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--spacing-md);
}

.about-text p {
  color: var(--text-gray);
  margin-bottom: var(--spacing-md);
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

.about-feature-icon {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  flex-shrink: 0;
}

.about-feature h4 {
  font-size: var(--font-size-base);
  margin-bottom: 4px;
}

.about-feature p {
  font-size: var(--font-size-sm);
  margin: 0;
}

.about-image {
  height: 500px;
  background: linear-gradient(135deg, var(--bg-light) 0%, #e8e8ed 100%);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
}

/* 时间线 */
.timeline {
  background: var(--bg-light);
}

.timeline-items {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

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

.timeline-item {
  display: flex;
  margin-bottom: var(--spacing-xl);
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-year {
  flex: 1;
  text-align: right;
  padding-right: var(--spacing-xl);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--accent);
}

.timeline-item:nth-child(odd) .timeline-year {
  text-align: left;
  padding-left: var(--spacing-xl);
  padding-right: 0;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  border: 4px solid var(--bg-light);
  flex-shrink: 0;
  z-index: 1;
}

.timeline-content {
  flex: 1;
  padding-left: var(--spacing-xl);
}

.timeline-item:nth-child(odd) .timeline-content {
  padding-left: 0;
  padding-right: var(--spacing-xl);
  text-align: right;
}

.timeline-content h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-xs);
}

.timeline-content p {
  color: var(--text-gray);
  font-size: var(--font-size-sm);
}

/* 能力展示 */
.capabilities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

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

.capability-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.capability-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-md);
  background: linear-gradient(135deg, var(--accent), #00a0ff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.capability-card h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-xs);
}

.capability-card p {
  color: var(--text-gray);
  font-size: var(--font-size-sm);
}

/* ========== Blog ========== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--spacing-lg);
}

.blog-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

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

.blog-image {
  height: 200px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-video-badge {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
}

.blog-content {
  padding: var(--spacing-md);
}

.blog-meta {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-xs);
  color: var(--text-gray);
}

.blog-tag {
  color: var(--accent);
  font-weight: 500;
}

.blog-content h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-xs);
  line-height: 1.4;
}

.blog-content p {
  color: var(--text-gray);
  font-size: var(--font-size-sm);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--accent);
  font-weight: 500;
  font-size: var(--font-size-sm);
  margin-top: var(--spacing-sm);
}

/* ========== 联系表单 ========== */
.contact-section {
  background: var(--bg-light);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
}

.contact-info h2 {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--spacing-md);
}

.contact-info > p {
  color: var(--text-gray);
  margin-bottom: var(--spacing-xl);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: var(--font-size-base);
  margin-bottom: 4px;
}

.contact-item p {
  color: var(--text-gray);
  font-size: var(--font-size-sm);
}

.social-links {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
}

.social-link {
  width: 44px;
  height: 44px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all var(--transition-base);
}

.social-link:hover {
  background: var(--accent);
  color: white;
}

/* 表单样式 */
.contact-form {
  background: var(--bg-white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin-bottom: var(--spacing-xs);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  transition: all var(--transition-fast);
}

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

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

.form-success {
  display: none;
  text-align: center;
  padding: var(--spacing-xl);
}

.form-success.active {
  display: block;
}

.form-success-icon {
  width: 64px;
  height: 64px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
  margin: 0 auto var(--spacing-md);
}

.form-success h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-xs);
}

.form-success p {
  color: var(--text-gray);
}

/* ========== 页脚 ========== */
.footer {
  background: var(--primary);
  color: white;
  padding: var(--spacing-3xl) 0 var(--spacing-md);
}

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

.footer-brand .logo {
  color: white;
  margin-bottom: var(--spacing-md);
  display: inline-block;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-md);
}

.footer h4 {
  font-size: var(--font-size-base);
  margin-bottom: var(--spacing-md);
  color: white;
}

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--font-size-sm);
}

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

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

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .about-image {
    height: 300px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-lg);
    gap: var(--spacing-sm);
  }

  .nav.active {
    display: flex;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--spacing-md);
  }

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

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

  .timeline-items::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(odd) {
    flex-direction: row;
    padding-left: 50px;
  }

  .timeline-year,
  .timeline-item:nth-child(odd) .timeline-year {
    display: none;
  }

  .timeline-dot {
    position: absolute;
    left: 12px;
  }

  .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content {
    padding: 0;
    text-align: left;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .social-links {
    justify-content: center;
  }

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

@media (max-width: 480px) {
  .hero h1 {
    font-size: var(--font-size-3xl);
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .products-grid,
  .blog-grid,
  .cases-grid {
    grid-template-columns: 1fr;
  }

  .modal-specs ul {
    grid-template-columns: 1fr;
  }
}

/* ========== Mobile UX Improvements ========== */

/* Touch-friendly buttons */
@media (pointer: coarse) {
  .btn {
    min-height: 48px;
    padding: 14px 28px;
  }

  .nav a,
  .filter-btn,
  .category-item {
    min-height: 44px;
    padding: 10px 16px;
  }

  /* Larger touch targets for form elements */
  input,
  select,
  textarea {
    min-height: 48px;
    font-size: 16px; /* Prevents iOS zoom on focus */
  }

  select {
    padding: 12px 16px;
  }
}

/* Prevent text selection on buttons */
.btn,
.nav a,
.filter-btn,
.category-item,
.product-card,
.blog-card {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Smooth scroll for anchor links */
html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Improve scrolling performance */
* {
  -webkit-overflow-scrolling: touch;
}

/* Hide elements that don't work well on mobile */
@media (max-width: 768px) {
  /* Adjust hero section */
  .hero {
    min-height: auto;
    padding: 80px 16px 60px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 24px;
  }

  .hero-stat {
    flex: 1 1 45%;
  }

  /* Better spacing for sections */
  .section {
    padding: 48px 0;
  }

  /* Improve form readability */
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* Prevents iOS zoom */
  }

  /* Larger CTA button on mobile */
  .btn-primary {
    padding: 16px 32px;
  }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    padding: 60px 16px 40px;
  }

  .hero h1 {
    font-size: 28px;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Optimize for retina displays if needed */
}

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