/* ====================
   1. 全局变量与重置
   ==================== */
:root {
  /* 现代配色：蓝紫色调，更有科技感 */
  --primary: #4f46e5;
  --primary-light: #818cf8;
  --accent: #06b6d4;
  --bg-blob-1: #c084fc;
  --bg-blob-2: #6366f1;
  --bg-blob-3: #38bdf8;
 
  /* 字体 */
  --font-stack: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
 
  /* 毛玻璃参数 */
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
  --blur-amt: 20px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
body {
  font-family: var(--font-stack);
  line-height: 1.6;
  color: #1f2937;
  min-height: 100vh;
  padding: 20px;
  background-color: #f3f4f6;
  overflow-x: hidden;
  position: relative;
}
/* ====================
   2. 动态背景 (流体光斑)
   ==================== */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  background: #f0f2f5;
}
.shape {
  position: absolute;
  filter: blur(80px);
  opacity: 0.6;
  animation: float 10s infinite ease-in-out;
  border-radius: 50%;
}
.shape-1 {
  top: -10%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: var(--bg-blob-1);
  animation-delay: 0s;
}
.shape-2 {
  bottom: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: var(--bg-blob-2);
  animation-delay: -2s;
}
.shape-3 {
  top: 40%;
  left: 40%;
  width: 300px;
  height: 300px;
  background: var(--bg-blob-3);
  animation-delay: -4s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}
/* ====================
   3. 毛玻璃容器
   ==================== */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-amt));
  -webkit-backdrop-filter: blur(var(--blur-amt));
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--glass-shadow);
}
.resume-container {
  max-width: 1000px;
  margin: 20px auto;
  overflow: hidden;
  position: relative;
}
/* ====================
   4. 头部样式
   ==================== */
.header {
  padding: 60px 40px;
  background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 100%);
  text-align: center;
}
.profile-img {
  width: 140px;
  height: 140px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}
.profile-img:hover {
  transform: scale(1.1) rotate(3deg);
}
.profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}
/* 加载状态样式 */
.profile-img img[data-real-src] {
  opacity: 0.7;
}
.name {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1e1b4b 0%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 15px;
  letter-spacing: 1px;
}
.title {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tag {
  padding: 6px 16px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(79, 70, 229, 0.2);
  transition: all 0.3s ease;
}
.tag:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}
/* ====================
   5. 内容区域
   ==================== */
.content {
  padding: 0 40px 40px;
}
.section {
  margin-bottom: 40px;
}
.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  border-bottom: 2px solid rgba(0,0,0,0.05);
  padding-bottom: 10px;
}
.section-header .icon {
  font-size: 1.8rem;
  margin-right: 15px;
}
.section-title {
  font-size: 1.5rem;
  color: #374151;
  font-weight: 700;
}
/* 基本信息卡片网格 */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}
.info-card {
  background: rgba(255,255,255,0.5);
  padding: 15px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.6);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.info-card:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  border-color: var(--primary-light);
}
.info-card .label {
  display: block;
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 5px;
}
.info-card .value {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  word-break: break-all;
}
/* 荣誉区域 */
.honor-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.category-title {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}
.category-title::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 10px;
}
.honor-list {
  list-style: none;
}
.honor-item {
  background: rgba(255,255,255,0.4);
  padding: 12px 15px;
  margin-bottom: 10px;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #4b5563;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  cursor: zoom-in;
}
.honor-item:hover {
  background: white;
  border-left-color: var(--accent);
  padding-left: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
/* ====================
  6. 底部 & 备案
   ==================== */
.footer {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.05);
  text-align: center;
}
.beian-info {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.85rem;
  color: #6b7280;
  background: rgba(255,255,255,0.4);
  padding: 8px 20px;
  border-radius: 50px;
}
.beian-info a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.beian-info a:hover {
  color: var(--primary);
}
.beian-info img {
  height: 16px;
  width: 16px;
}
/* ====================
  7. 动画 & 模态框
   ==================== */
/* 入场动画 */
.fade-in-up {
  animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
/* 滚动显现 Scroll Reveal 类 */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}
/* 通知弹窗 */
.glass-notice {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  padding: 12px 30px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  color: var(--primary);
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  animation: noticeSlideIn 0.4s forwards;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid white;
}
@keyframes noticeSlideIn {
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.glass-notice.fade-out {
  animation: noticeSlideOut 0.3s forwards;
}
@keyframes noticeSlideOut {
  to { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}
/* 图片模态框 */
.photo-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: fadeIn 0.3s forwards;
}
.modal-content {
  background: white;
  padding: 10px;
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
  max-width: 90vw;
  max-height: 90vh;
  transform: scale(0.9);
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes popIn {
  to { transform: scale(1); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}
/* ====================
  8. 响应式适配
   ==================== */
@media (max-width: 768px) {
  .header { padding: 40px 20px; }
  .profile-img { width: 120px; height: 120px; }
  .name { font-size: 2rem; }
  .content { padding: 0 20px 30px; }
  .honor-container { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr 1fr; }
}