/* 牵手婚恋 - 更新日志样式（粉色浪漫主题） */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #fff5f8 0%, #ffe6ed 100%);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  padding: 76px 1rem 2rem;
  color: var(--color-text-primary);
}

/* ===== 顶部标题栏（与聊天窗口风格完全一致） ===== */
.page-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 60px;
  background-color: var(--color-primary, #c0392b);
  display: flex;
  align-items: center;
  padding: 0 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 返回按钮 - 与聊天窗口完全一致（absolute + 40px + 300 weight） */
.page-header .back-btn {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  z-index: 102;
}

.page-header .back-btn:active {
  background: rgba(255,255,255,0.2);
}

/* 标题文字 - 水平居中（相对整个 header，不受左右按钮影响） */
.page-header .header-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  flex: none;
  width: auto;
  white-space: nowrap;
  pointer-events: none;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  z-index: 101;
}

/* 分享按钮 */
.page-header .share-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s;
}

.page-header .share-btn:active {
  background: rgba(255,255,255,0.2);
}

/* 首页按钮（汉字「首页」样式，与征婚资料页一致） */
.page-header .share-btn.header-home-text {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  height: auto;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 3px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  text-decoration: none;
  z-index: 102;
}

/* ===== 内容容器 ===== */
.container {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px rgba(255, 105, 180, 0.1);
  padding: 2rem;
  backdrop-filter: blur(5px);
}

.version {
  margin-bottom: 1rem;
  padding: 1.2rem;
  background: var(--color-white);
  border-radius: 1rem;
  border-left: 1.5px solid #ffb6c1;
  box-shadow: 0 3px 10px rgba(255, 182, 193, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.version:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 182, 193, 0.15);
}

.version-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.version-number {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ff6b9d;
}

.release-date {
  font-size: 0.9rem;
  color: #999;
  font-weight: normal;
}

.version p {
  margin-bottom: 0.8rem;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 0.5rem 0;
}

.version ul {
  padding-left: 0;
  list-style: none;
}

.version ul li {
  margin: 0.4rem 0;
  padding: 0.6rem 0.8rem;
  background: #f9f9f9;
  border-radius: 0.6rem;
  border-left: 1.5px solid #ffd1dc;
  transition: background 0.2s ease;
}

.version ul li:hover {
  background: #f0f0f0;
}

.update-indicator {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 0.6rem;
  color: var(--color-white);
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 新增 - 粉色 */
.added {
  background: linear-gradient(90deg, #ff7b9c 0%, #ff6b9d 100%);
}

/* 修复 - 红色 */
.fixed {
  background: linear-gradient(90deg, #ff6b6b 0%, #ff5252 100%);
}

/* 改进 - 紫色 */
.improved {
  background: linear-gradient(90deg, #9c89ff 0%, #7b6bff 100%);
}

code {
  font-family: 'Courier New', Monaco, Consolas, monospace;
  font-size: 0.85rem;
  color: #ff4081;
  background: #fff0f7;
  padding: 0.1rem 0.3rem;
  border-radius: 0.3rem;
  border: 1px solid #ffc0cd;
}

/* 移动端优化 */
@media (max-width: 768px) {
  body {
    padding: 66px 0.5rem 1.5rem;
  }

  .container {
    padding: 1.2rem;
    border-radius: 1rem;
  }

  .version {
    padding: 1rem;
    margin-bottom: 0.8rem;
  }

  .version-header {
    display: flex;
    align-items: center;
    gap: 0.3rem;
  }

  .version-number {
    font-size: 1.1rem;
  }

  .release-date {
    font-size: 0.8rem;
  }

  .version p {
    font-size: 0.875rem;
    line-height: 1.6;
  }

  .version ul li {
    padding: 0.5rem 0.7rem;
    margin: 0.3rem 0;
    font-size: 0.875rem;
    line-height: 1.6;
  }

  .update-indicator {
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
    margin-right: 0.4rem;
  }
}

/* 小屏幕手机优化 */
@media (max-width: 480px) {
  body {
    padding: 60px 0.5rem 1rem;
  }

  .container {
    padding: 1rem;
  }

  .version {
    padding: 0.8rem;
  }

  /* 更新内容：缩小字号、紧凑行高，提升移动端可读性 */
  .version p {
    font-size: 0.8125rem;
    line-height: 1.6;
  }

  .version ul li {
    padding: 0.4rem 0.6rem;
    font-size: 0.8125rem;
    line-height: 1.6;
  }

  .version-number {
    font-size: 1rem;
  }

  .release-date {
    font-size: 0.75rem;
  }
}
