/* ============================================================
   自定义样式（纯 CSS 实现，离线 file:// 打开也 100% 生效）
   主题：白色 ins 风 —— 奶白底 + 纯白卡片 + 柔和阴影
   想调整配色：优先改 index.html 里 tailwind.config 的 colors，
   或改本文件中的色值（与 tailwind.config 保持一致）
   ============================================================ */

/* Vue 挂载前隐藏模板，避免闪烁 */
[v-cloak] { display: none; }

html { scroll-behavior: auto; } /* 平滑滚动统一交给 GSAP ScrollToPlugin */

body { overflow-x: hidden; }

/* ---------- 通用区块 ---------- */
.section-wrap {
  position: relative;
  max-width: 72rem;
  margin: 0 auto;
  padding: 6rem 1.5rem;
}
@media (min-width: 768px) {
  .section-wrap { padding: 8rem 1.5rem; }
}

.section-title {
  font-size: 1.875rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 3.5rem;
  letter-spacing: 0.025em;
  color: #1e293b;
}
@media (min-width: 768px) {
  .section-title { font-size: 3rem; }
}

.title-dot { color: #06b6d4; }

/* 渐变文字（Hero 姓名等） */
.text-gradient {
  background: linear-gradient(120deg, #6366f1, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Hero 小胶囊标签 ---------- */
.chip {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.85);
  color: #64748b;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

/* ---------- 按钮 ---------- */
.btn-primary {
  display: inline-block;
  padding: 0.625rem 1.75rem;
  border-radius: 9999px;
  background: #6366f1;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background: #06b6d4;
  color: #fff;
  box-shadow: 0 10px 20px -6px rgba(6, 182, 212, 0.4);
  transform: translateY(-2px);
}
.btn-ghost {
  display: inline-block;
  padding: 0.625rem 1.75rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  font-weight: 700;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}
.btn-ghost:hover {
  border-color: #06b6d4;
  color: #06b6d4;
  transform: translateY(-2px);
}
@media (min-width: 768px) {
  .btn-primary, .btn-ghost { font-size: 1rem; }
}

/* ---------- 信息卡片（关于我 / 联系方式） ---------- */
.info-card {
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  transition: all 0.3s ease;
}
@media (min-width: 768px) {
  .info-card { padding: 1.75rem; }
}
.info-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 16px 32px -12px rgba(99, 102, 241, 0.18);
}

/* ---------- 兴趣爱好大卡片 ---------- */
.hobby-card {
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  transition: all 0.3s ease;
}
@media (min-width: 768px) {
  .hobby-card { padding: 2.5rem; }
}
.hobby-card:hover {
  transform: translateY(-8px);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 20px 40px -14px rgba(6, 182, 212, 0.2);
}

/* ---------- 技能标签（入场弹动由 GSAP 驱动） ---------- */
.skill-tag {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  color: #334155;
  cursor: default;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: color 0.3s ease, border-color 0.3s ease;
}
@media (min-width: 768px) {
  .skill-tag { font-size: 1rem; }
}
.skill-tag:hover {
  border-color: #06b6d4;
  color: #06b6d4;
}

/* 滚动入场动画初始状态（GSAP 会接管为可见） */
.reveal { opacity: 0; }

/* 回到顶部按钮出现态 */
#back-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* 隐藏横向滚动条（移动端导航） */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* 全局滚动条美化（浅色版） */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #6366f1; }

/* 降低动态效果偏好：尊重系统设置 */
@media (prefers-reduced-motion: reduce) {
  .animate-bounce { animation: none; }
}
