/* ============================================
   可爱风个人网站 - 样式文件
   主色：奶油白、浅粉、浅橙、浅蓝
   ============================================ */

/* ---------- 全局重置 & 基础样式 ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family:
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #fffaf5;
  color: #5a4a42;
  line-height: 1.8;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ---------- 通用容器 ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 通用区块样式 ---------- */
.section {
  padding: 80px 0;
}

.section-alt {
  background: linear-gradient(180deg, #fff5f0 0%, #fef0e8 100%);
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #e8836b;
  margin-bottom: 8px;
}

.section-desc {
  text-align: center;
  color: #b0897a;
  font-size: 1rem;
  margin-bottom: 48px;
}

/* ---------- 滚动淡入动画（初始隐藏） ---------- */
.card-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.card-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   导航栏
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 250, 245, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(200, 160, 140, 0.1);
  z-index: 1000;
  padding: 0 24px;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: #e8836b;
}

.nav-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 0.9rem;
  color: #8a6d60;
  transition: color 0.3s;
  padding: 4px 0;
}

.nav-links a:hover {
  color: #e8836b;
}

/* ============================================
   Hero 区域
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background: linear-gradient(160deg, #fff5f0 0%, #fde8e0 30%, #e8f0fe 70%, #fff5f0 100%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #d4735e;
  line-height: 1.5;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #b0897a;
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #f8a488, #e8836b);
  color: #fff;
  box-shadow: 0 4px 16px rgba(232, 131, 107, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(232, 131, 107, 0.45);
}

.btn-secondary {
  background: #fff;
  color: #e8836b;
  border: 2px solid #f8a488;
  box-shadow: 0 4px 12px rgba(200, 160, 140, 0.15);
}

.btn-secondary:hover {
  box-shadow: 0 6px 20px rgba(200, 160, 140, 0.25);
}

/* Hero 装饰圆球 */
.hero-decoration {
  position: absolute;
  border-radius: 50%;
  opacity: 0.35;
  z-index: 1;
}

.hero-deco-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #ffd6e0, #ffabc4);
  top: 10%;
  left: -80px;
}

.hero-deco-2 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #c9e8fc, #a3d1f5);
  bottom: 15%;
  right: -50px;
}

.hero-deco-3 {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, #ffecd2, #fcb69f);
  top: 20%;
  right: 15%;
}

/* ============================================
   关于我
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.about-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 4px 20px rgba(200, 160, 140, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(200, 160, 140, 0.18);
}

.about-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
}

.about-card h3 {
  font-size: 1.15rem;
  color: #d4735e;
  margin-bottom: 8px;
}

.about-card p {
  font-size: 0.95rem;
  color: #8a6d60;
  line-height: 1.7;
}

/* ============================================
   时间线（真实经历）
   ============================================ */
.timeline {
  position: relative;
  padding-left: 40px;
}

/* 时间线竖线 */
.timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #ffd6e0, #c9e8fc, #ffecd2);
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

/* 时间线圆点 */
.timeline-dot {
  position: absolute;
  left: -33px;
  top: 20px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dot-pink { background: #f8a488; }
.dot-orange { background: #fcb69f; }
.dot-blue { background: #a3d1f5; }

.timeline-card {
  background: #fff;
  border-radius: 18px;
  padding: 24px 28px;
  box-shadow: 0 4px 16px rgba(200, 160, 140, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(200, 160, 140, 0.18);
}

.timeline-tag {
  display: inline-block;
  background: #fef0e8;
  color: #e8836b;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.timeline-card h3 {
  font-size: 1.1rem;
  color: #d4735e;
  margin-bottom: 8px;
}

.timeline-card p {
  font-size: 0.95rem;
  color: #8a6d60;
  line-height: 1.7;
}

/* ============================================
   我的优势
   ============================================ */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.strength-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(200, 160, 140, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.strength-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(200, 160, 140, 0.2);
}

.strength-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
  display: block;
}

.strength-card h3 {
  font-size: 1.05rem;
  color: #d4735e;
  margin-bottom: 8px;
}

.strength-card p {
  font-size: 0.88rem;
  color: #8a6d60;
  line-height: 1.6;
}

/* ============================================
   摄影作品
   ============================================ */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(200, 160, 140, 0.1);
  transition: transform 0.35s, box-shadow 0.35s;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(200, 160, 140, 0.22);
}

/*
  作品图片占位区域
  替换为真实图片时，可以修改内联 style 中的 background
  或者改为 <img> 标签
*/
.work-image {
  width: 100%;
  height: 200px;
  /* background 由内联 style 提供渐变色 */
}

.work-info {
  padding: 18px 20px;
}

.work-info h3 {
  font-size: 1rem;
  color: #d4735e;
  margin-bottom: 4px;
}

.work-info p {
  font-size: 0.85rem;
  color: #b0897a;
  line-height: 1.5;
}

/* ============================================
   行动盲点
   ============================================ */
.blindspot-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
}

.blindspot-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 3px 14px rgba(200, 160, 140, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.blindspot-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(200, 160, 140, 0.16);
}

.blindspot-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.blindspot-card h3 {
  font-size: 1rem;
  color: #d4735e;
  margin-bottom: 4px;
}

.blindspot-card p {
  font-size: 0.9rem;
  color: #8a6d60;
  line-height: 1.6;
}

/* 高亮卡片（最适合我的方式） */
.blindspot-highlight {
  background: linear-gradient(135deg, #fff5f0, #fde8e0);
  border: 2px solid #f8a488;
}

/* ============================================
   AI 协作方式
   ============================================ */
.collab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.collab-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(200, 160, 140, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.collab-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(200, 160, 140, 0.18);
}

.collab-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.collab-header h3 {
  font-size: 1.05rem;
  color: #fff;
}

.collab-icon {
  font-size: 1.6rem;
}

.collab-header-blue {
  background: linear-gradient(135deg, #a3d1f5, #7eb8e8);
}

.collab-header-pink {
  background: linear-gradient(135deg, #f8a488, #e8836b);
}

.collab-header-orange {
  background: linear-gradient(135deg, #fcb69f, #f0956e);
}

.collab-list {
  padding: 20px 24px;
}

.collab-list li {
  font-size: 0.92rem;
  color: #8a6d60;
  padding: 6px 0;
  padding-left: 18px;
  position: relative;
  line-height: 1.6;
}

/* 列表小圆点 */
.collab-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f8a488;
}

/* ============================================
   协作契约
   ============================================ */
.contract-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
}

.contract-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 16px;
  padding: 22px 28px;
  box-shadow: 0 3px 14px rgba(200, 160, 140, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.contract-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(200, 160, 140, 0.16);
}

.contract-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: #f8a488;
  flex-shrink: 0;
  min-width: 40px;
  text-align: center;
}

.contract-card p {
  font-size: 0.95rem;
  color: #5a4a42;
  line-height: 1.6;
}

/* ============================================
   页脚
   ============================================ */
.footer {
  text-align: center;
  padding: 48px 24px;
  background: linear-gradient(180deg, #fff5f0, #fde8e0);
  color: #d4735e;
  font-size: 1.1rem;
  font-weight: 500;
}

.footer-small {
  margin-top: 12px;
  font-size: 0.85rem;
  color: #b0897a;
  font-weight: 400;
}

/* ============================================
   响应式适配
   ============================================ */

/* 平板（<=900px） */
@media (max-width: 900px) {
  .strengths-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .collab-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

/* 手机（<=600px） */
@media (max-width: 600px) {
  .section {
    padding: 56px 0;
  }

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

  .hero {
    padding: 100px 20px 60px;
    min-height: auto;
  }

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

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

  /* 导航栏手机端：缩小间距，允许换行 */
  .nav-container {
    flex-direction: column;
    height: auto;
    padding: 10px 0;
    gap: 6px;
  }

  .nav-links {
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    padding-bottom: 4px;
  }

  .nav-links a {
    font-size: 0.82rem;
  }

  /* 关于我：单列 */
  .about-grid {
    grid-template-columns: 1fr;
  }

  /* 优势卡片：单列 */
  .strengths-grid {
    grid-template-columns: 1fr;
  }

  /* 作品集：单列 */
  .works-grid {
    grid-template-columns: 1fr;
  }

  /* 时间线：减少左偏移 */
  .timeline {
    padding-left: 32px;
  }

  .timeline-dot {
    left: -25px;
    width: 12px;
    height: 12px;
  }

  /* 契约卡片 */
  .contract-card {
    padding: 18px 20px;
    gap: 14px;
  }

  .contract-number {
    font-size: 1.3rem;
  }
}
