/* 动手实验室首页样式 */
/* ============================================
   CSS Variables - Design System
   ============================================ */
:root {
  /* Colors */
  --primary-color: #FFA461;
  --primary-dark: #D67935;
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-placeholder: #AFB3B7;
  --bg-white: #FFFFFF;
  --bg-gray-light: #FBFBFB;
  --bg-gray: #F0F0F0;
  --border-gray: #E9E9E9;

  /* Spacing */
  --border-radius: 8px;
  --section-padding: 80px 0;
  --card-gap: 20px;

  /* Shadows */
  --card-shadow: 0px 10px 12px 0px rgba(0, 0, 0, 0.05);

  /* Typography */
  --font-primary: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  --font-title: 'YouSheBiaoTiHei', 'PingFang SC', sans-serif;

  /* Font Sizes */
  --fs-10: 10px;
  --fs-11: 11px;
  --fs-12: 12px;
  --fs-13: 13px;
  --fs-14: 14px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-20: 20px;
  --fs-24: 24px;
  --fs-28: 28px;
  --fs-48: 48px;
  --fs-50: 50px;
  --fs-54: 54px;
}

/* ============================================
   Base Styles
   ============================================ */
.hand-lab-home {
  font-family: var(--font-primary);
  color: var(--text-primary);
  background: var(--bg-white);
}

.hand-lab-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* ============================================
   Hero Section - 首屏区域
   ============================================ */
.hero-section {
  position: relative;
  min-height: 400px;
  padding: 40px 0 0 0;
  background: var(--bg-white);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
}

.hero-left {
  flex: 1;
  max-width: 85vw;
  text-align: center;
}

.hero-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-logo-icon {
  width: 48px;
  height: 48px;
}

.hero-logo-text {
  font-family: var(--font-title);
  font-size: var(--fs-28);
  color: var(--primary-color);
  font-weight: 400;
  line-height: 1;
}

.hero-title {
  font-family: var(--font-primary);
  font-size: var(--fs-28);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.232;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: var(--fs-18);
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 50px;
}

.hero-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: stretch;
  width: 100%;
}

.hero-input-wrapper {
  position: relative;
  flex: 1;
  max-width: 100%;
  width: 100%;
}

.hero-input {
  width: 100%;
  height: 36px;
  padding: 0 70px 0 16px;
  border: 1px solid var(--primary-color);
  border-radius: var(--border-radius);
  font-size: var(--fs-11);
  color: var(--text-primary);
  outline: none;
  transition: all 0.3s ease;
}

.hero-input::placeholder {
  color: var(--text-placeholder);
}

.hero-input:focus {
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 3px rgba(255, 164, 97, 0.1);
}

.hero-input-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 6px;
  height: 32px;
  background: transparent;
  border: none;
  font-size: var(--fs-11);
  font-weight: 600;
  color: var(--primary-dark);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-input-btn:hover {
  color: var(--primary-color);
}

.hero-btn-primary {
  height: 36px;
  padding: 0 6px;
  background: var(--primary-color);
  color: var(--bg-white);
  border: none;
  border-radius: var(--border-radius);
  font-size: var(--fs-12);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.hero-btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(255, 164, 97, 0.3);
}

.hero-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
}

.hero-3d-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: contain;
  animation: float 6s ease-in-out infinite;
}

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

/* ============================================
   Features Section - 产品特性卡片
   ============================================ */
.features-section {
  padding: 40px 0;
  background: var(--bg-white);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 30px;
}

.feature-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 36px 24px;
  background: var(--bg-white);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0px 16px 20px 0px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}

.feature-content {
  flex: 1;
}

.feature-title {
  font-size: var(--fs-16);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.4;
}

.feature-desc {
  font-size: var(--fs-13);
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ============================================
   Introduction Section - 公司介绍
   ============================================ */
.intro-section {
  padding: 60px 0;
  background: var(--bg-gray-light);
}

.intro-header {
  text-align: left;
  margin-bottom: 40px;
}

.intro-subtitle {
  font-size: var(--fs-20);
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.intro-title {
  font-size: var(--fs-28);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.232;
}

.intro-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
  justify-content: flex-start;
  margin-top: 30px;
}

.intro-text {
  flex: 1;
  max-width: 520px;
}

.intro-paragraph {
  font-size: var(--fs-18);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

/* 左侧：4个小方格 (2x2 网格) */
.intro-images-left {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 15px;
  max-width: 100%;
}

.intro-image-item-small {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.intro-image-item-small:hover {
  transform: scale(1.02);
  box-shadow: 0px 16px 20px 0px rgba(0, 0, 0, 0.08);
}

.intro-image-item-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 右侧：1个大图 */
.intro-image-large {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 804 / 394;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.intro-image-large:hover {
  transform: scale(1.01);
  box-shadow: 0px 16px 24px 0px rgba(0, 0, 0, 0.1);
}

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

/* ============================================
   Philosophy Section - 设计理念
   ============================================ */
.philosophy-section {
  padding: 60px 0;
  background: var(--bg-white);
}

.philosophy-header {
  text-align: left;
  margin-bottom: 40px;
}

.philosophy-title {
  font-size: var(--fs-28);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.232;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}

.philosophy-card {
  position: relative;
  background: var(--bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--card-shadow);
}

.philosophy-card:hover {
  transform: translateY(-6px);
  box-shadow: 0px 16px 24px 0px rgba(0, 0, 0, 0.12);
}

/* 图片容器 - 带渐变背景 */
.philosophy-card > img.philosophy-image {
  position: relative;
  width: 100%;
  height: 211px;
  object-fit: cover;
  display: block;
}

/* 使用伪元素创建渐变遮罩层 */
.philosophy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 211px;
  background: linear-gradient(
    180deg,
    rgba(255, 164, 97, 0.15) 0%,
    rgba(255, 164, 97, 0.08) 50%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.philosophy-card:hover::before {
  opacity: 1;
}

.philosophy-content {
  position: relative;
  padding: 28px 20px;
  background: linear-gradient(
    135deg,
    rgba(255, 245, 239, 0.5) 0%,
    rgba(255, 250, 245, 0.3) 100%
  );
  z-index: 2;
}

.philosophy-card-title {
  font-size: var(--fs-20);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.232;
}

.philosophy-card-desc {
  font-size: var(--fs-14);
  color: var(--text-primary);
  line-height: 1.6;
}

/* ============================================
   Cases Section - 设计案例
   ============================================ */
.cases-section {
  padding: 60px 0;
  background: var(--bg-gray-light);
}

.cases-header {
  text-align: left;
  margin-bottom: 40px;
}

.cases-subtitle {
  font-size: var(--fs-20);
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.cases-title {
  font-size: var(--fs-28);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.232;
}

.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

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

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0px 16px 24px 0px rgba(0, 0, 0, 0.1);
}

.case-image {
  width: 100%;
  height: 252px;
  object-fit: cover;
}

.case-content {
  padding: 20px;
}

.case-title {
  font-size: var(--fs-24);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.case-desc {
  font-size: var(--fs-18);
  color: var(--text-secondary);
  line-height: 1.5;
}

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

.btn-more {
  display: inline-block;
  padding: 12px 40px;
  height: 40px;
  background: var(--primary-color);
  color: var(--bg-white);
  border: none;
  border-radius: var(--border-radius);
  font-size: var(--fs-16);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  line-height: 1;
}

.btn-more:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(255, 164, 97, 0.3);
}
.header-container {
  width: 100%;
}

/* ============================================
   Responsive Design - Mobile First (min-width)
   ============================================ */

/* ≥ 576px: 小平板 */
@media (min-width: 576px) {
  .hand-lab-container {
    max-width: 540px;
  }
}

/* ≥ 768px: 平板 */
@media (min-width: 768px) {
  .hand-lab-container {
    max-width: 720px;
  }

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

  .intro-images-left {
    grid-template-columns: repeat(2, minmax(150px, 187px));
    grid-template-rows: repeat(2, minmax(150px, 187px));
  }

  .intro-image-item-small {
    width: 100%;
    height: 100%;
    min-width: 150px;
    min-height: 150px;
    aspect-ratio: unset;
  }
}

/* ≥ 992px: 小桌面 */
@media (min-width: 992px) {
  .hand-lab-container {
    max-width: 960px;
  }

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

/* ≥ 1200px: 桌面 */
@media (min-width: 1200px) {
  .hand-lab-container {
    max-width: 1140px;
  }
  .header-container {
    max-width: 1140px;
  }

  .hero-left {
    text-align: left;
  }

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

  .philosophy-grid,
  .cases-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-content {
    flex-direction: row;
    gap: 60px;
  }

  .hero-actions {
    flex-direction: row;
    width: auto;
  }

  .hero-input-wrapper {
    max-width: 392px;
  }

  .hero-input {
    height: 72px;
    padding: 0 120px 0 20px;
    font-size: var(--fs-18);
  }

  .hero-input-btn {
    font-size: var(--fs-18);
  }

  .hero-btn-primary {
    height: 72px;
    padding: 0 32px;
    font-size: var(--fs-18);
  }

  .hero-right {
    flex: 1.2;
    max-width: 900px;
  }

  .hero-3d-image {
    max-width: 700px;
  }

  .intro-section {
    padding: 130px 0 80px 0;
  }

  .intro-content {
    flex-direction: row;
    gap: 20px;
  }

  .intro-images-left {
    grid-template-columns: repeat(2, 187px);
    grid-template-rows: repeat(2, 187px);
    gap: 20px;
  }

  .intro-image-item-small {
    width: 187px;
    height: 187px;
    min-width: unset;
    min-height: unset;
  }

  .intro-image-large {
    width: 804px;
    height: 394px;
    max-width: unset;
    aspect-ratio: unset;
  }

  .hero-section {
    padding: 0 0 80px 0;
  }
}

/* ≥ 1440px: 大桌面 */
@media (min-width: 1440px) {
  .hand-lab-container {
    max-width: 1220px;
  }
  .header-container {
    max-width: 1220px;
  }

  .hero-title {
    font-size: var(--fs-50);
  }

  .hero-3d-image {
    max-width: 800px;
  }

  .intro-title,
  .philosophy-title {
    font-size: 48px;
  }

  .cases-title {
    font-size: var(--fs-48);
  }
}
