/* ==================== CSS变量定义 ==================== */
/* 定义全局颜色变量 */
:root {
  /* 主色调 - 青色系 */
  --primary: #14b8a6;
  --primary-light: #5eead4;
  --primary-dark: #0d9488;

  /* 背景色 - 深色主题 */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: rgba(30, 41, 59, 0.7);

  /* 文字颜色 */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* 边框和分割线 */
  --border: rgba(148, 163, 184, 0.2);

  /* 玻璃态效果 */
  --glass-bg: rgba(30, 41, 59, 0.6);
  --glass-border: rgba(148, 163, 184, 0.1);

  /* 渐变色 */
  --gradient-primary: linear-gradient(135deg, #14b8a6 0%, #0ea5e9 100%);
  --gradient-bg: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);

  /* 阴影效果 */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4);

  /* 动画时长 */
  --transition-fast: 0.2s;
  --transition-normal: 0.3s;
  --transition-slow: 0.5s;
}

/* ==================== 基础样式 ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
   /* 添加滚动条隐藏 */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}
/* 针对Webkit浏览器隐藏滚动条 */
*::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}
/* 平滑滚动行为 */
html {
  scroll-behavior: smooth;
}

/* 页面主体样式 */
body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--gradient-bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  /* 为body添加相对定位，用于背景动画层 */
  position: relative;
}

/* ==================== 背景动画层 ==================== */
/* 固定在页面底层的动画背景容器 */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0; /* 放在最底层 */
  pointer-events: none; /* 不影响页面交互 */
  overflow: hidden;
}

/* 发光圆形基础样式 - 移除CSS动画，改用JS物理模拟控制位置 */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px); /* 模糊发光 */
  opacity: 0.6;
  will-change: transform;
  /* 初始位置设为左上角，由JS控制实际位置 */
  top: 0;
  left: 0;
}

/* 第一个发光圆 - 青色，只保留大小和颜色 */
.glow-orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.6) 0%, rgba(20, 184, 166, 0) 70%);
}

/* 第二个发光圆 - 蓝色 */
.glow-orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.5) 0%, rgba(14, 165, 233, 0) 70%);
}

/* 第三个发光圆 - 紫蓝色 */
.glow-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, rgba(99, 102, 241, 0) 70%);
}

/* 第四个发光圆 - 粉红色 */
.glow-orb-4 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.35) 0%, rgba(236, 72, 153, 0) 70%);
}

/* 第五个发光圆 - 橙黄色 */
.glow-orb-5 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.3) 0%, rgba(251, 191, 36, 0) 70%);
}

/* ==================== 导航栏样式 ==================== */
/* 顶部导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 2rem;
  transition: all var(--transition-normal) ease;
}

/* 导航栏内部布局 - 使用Flexbox */
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 网站Logo样式 */
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: pointer;
  transition: transform var(--transition-fast) ease;
  
}

.logo:hover {
  transform: scale(1.05);
}

/* 导航链接容器 */
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

/* 单个导航链接样式 */
.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast) ease;
}

/* 导航链接悬停效果 */
.nav-link:hover {
  color: var(--text-primary);
}

/* 导航链接下划线动画 */
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-normal) ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* 当前激活的导航链接 */
.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  width: 100%;
}

/* 导航栏右侧按钮组 */
.nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* 语言切换按钮样式 */
.lang-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all var(--transition-fast) ease;
}

.lang-toggle:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--primary);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* ==================== 主要内容区域 ==================== */
.main-content {
  padding-top: 80px; /* 为固定导航栏留出空间 */
}

/* 通用区块样式 */
.section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* 区块标题样式 */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  cursor: default;
}

/* 区块标题装饰线 */
.section-title::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 3rem;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* ==================== 首页/个人信息区域 ==================== */
.hero {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* 个人信息卡片 - 玻璃态设计 */
.profile-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  padding: 3rem;
  max-width: 600px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.8s ease forwards;
}

/* 头像容器 */
.avatar-container {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 1.5rem;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  cursor: default;
}

/* 头像样式 */
.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid transparent;
  background: var(--gradient-primary);
  background-origin: border-box;
  background-clip: content-box, border-box;
  transition: transform var(--transition-normal) ease;
}

.avatar:hover {
  transform: scale(1.05);
}

/* 在线状态指示器 */
.status-indicator {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  background: #22c55e;
  border-radius: 50%;
  border: 3px solid var(--bg-secondary);
  animation: pulse 2s infinite;
}

/* 用户名样式 */
.profile-name {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  cursor: default;
}

/* 用户简介 */
.profile-bio {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  cursor: default;
}

/* 社交链接容器 */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  cursor: default;
}

/* 单个社交链接按钮 */
.social-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition-normal) ease;
  position: relative;
  overflow: hidden;
}

/* 社交链接悬停效果 */
.social-link:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

/* 社交链接背景光效 */
.social-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.1), transparent);
  transition: left var(--transition-slow) ease;
}

.social-link:hover::before {
  left: 100%;
}

/* 社交图标样式 */
.social-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* 社交链接文字 */
.social-text {
  flex: 1;
  text-align: left;
}

.social-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.social-id {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.toast-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    z-index: 9999;
    font-size: 0.875rem;
    animation: slideInOut 3s ease forwards;
    max-width: 300px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    /* 添加渐变边框效果 */
    border-image: var(--gradient-primary);
    border-image-slice: 1;
}

/* 提示消息图标 */
.toast-message::before {
    content: "✓";
    background: var(--gradient-primary);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

/* 复制成功时使用绿色主题 */
.toast-message.success::before {
    content: "✓";
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* 复制失败时使用红色主题 */
.toast-message.error::before {
    content: "!";
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* ==================== 作品展示区域 ==================== */
#works {
  background: var(--bg-secondary);
}

/* 作品网格布局 */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  
}

/* 单个作品卡片 */
.work-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  overflow: hidden;
  transition: all var(--transition-normal) ease;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* 为每个卡片设置不同的动画延迟 */
.work-card:nth-child(1) {
  animation-delay: 0.1s;
}
.work-card:nth-child(2) {
  animation-delay: 0.2s;
}
.work-card:nth-child(3) {
  animation-delay: 0.3s;
}
.work-card:nth-child(4) {
  animation-delay: 0.4s;
}
.work-card:nth-child(5) {
  animation-delay: 0.5s;
}
.work-card:nth-child(6) {
  animation-delay: 0.6s;
}

.work-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

/* 作品图片容器 */
.work-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow) ease;
}

.work-card:hover .work-image img {
  transform: scale(1.1);
}

/* 作品信息区域 */
.work-info {
  padding: 1.5rem;
}

.work-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.work-description {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* 作品标签 */
.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.work-tag {
  background: rgba(20, 184, 166, 0.1);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
}

/* 查看作品链接 */
.work-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: gap var(--transition-fast) ease;
}

.work-link:hover {
  gap: 0.75rem;
}

.work-link-arrow {
  transition: transform var(--transition-fast) ease;
}

.work-link:hover .work-link-arrow {
  transform: translateX(4px);
}

/* ==================== 评论区域 ==================== */
.comments-section {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* 评论表单 */
.comment-form {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.comment-form textarea {
  width: 100%;
  min-height: 100px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  transition: border-color var(--transition-fast) ease;
}

.comment-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.comment-form textarea::placeholder {
  color: var(--text-muted);
}

/* 评论列表 */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* 单条评论 */
.comment-item {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  padding: 1rem;
  animation: fadeIn 0.3s ease;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
}

.comment-author {
  font-weight: 600;
  color: var(--text-primary);
}

.comment-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.comment-content {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 登录提示 */
.login-prompt {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
}

.login-prompt-btn {
  color: var(--primary);
  cursor: pointer;
  text-decoration: underline;
  background: none;
  border: none;
  font-size: inherit;
}

/* ==================== 登录/注册弹窗 ==================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal) ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* 弹窗内容 */
.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 2rem;
  width: 90%;
  max-width: 400px;
  transform: scale(0.9) translateY(20px);
  transition: transform var(--transition-normal) ease;
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

/* 弹窗头部 */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color var(--transition-fast) ease;
}

.modal-close:hover {
  color: var(--text-primary);
}

/* 表单样式 */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color var(--transition-fast) ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
}

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

/* 按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast) ease;
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.4);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--primary);
  color: var(--text-primary);
}

.btn-full {
  width: 100%;
}

/* 表单切换链接 */
.form-switch {
  text-align: center;
  margin-top: 1rem;
  color: var(--text-secondary);
}

.form-switch-link {
  color: var(--primary);
  cursor: pointer;
  text-decoration: none;
}

.form-switch-link:hover {
  text-decoration: underline;
}

/* 用户信息显示 */
.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
}

.user-name {
  color: var(--text-primary);
  font-weight: 500;
}

.logout-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.875rem;
  margin-left: 0.5rem;
  transition: color var(--transition-fast) ease;
}

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

/* ==================== 页脚样式 ==================== */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-heart {
  color: #ef4444;
  animation: heartbeat 1.5s infinite;
}

/* ==================== 动画关键帧 ==================== */
/* 淡入上移动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 淡入动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 脉冲动画 - 用于状态指示器 */
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

/* 心跳动画 - 用于页脚 */
@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* 滑动进出动画 - 用于提示消息 */
@keyframes slideInOut {
    0% { 
        opacity: 0; 
        transform: translateX(100%) translateY(-10px); 
    }
    10% { 
        opacity: 1; 
        transform: translateX(0) translateY(0); 
    }
    90% { 
        opacity: 1; 
        transform: translateX(0) translateY(0); 
    }
    100% { 
        opacity: 0; 
        transform: translateX(100%) translateY(-10px); 
    }
}

/* 淡入淡出动画 - 备用 */
@keyframes fadeInOut {
    0% { 
        opacity: 0; 
        transform: translateY(-20px); 
    }
    15% { 
        opacity: 1; 
        transform: translateY(0); 
    }
    85% { 
        opacity: 1; 
        transform: translateY(0); 
    }
    100% { 
        opacity: 0; 
        transform: translateY(-20px); 
    }
}

/* ==================== 响应式设计 ==================== */
/* 平板设备适配 */
@media (max-width: 768px) {
  /* 隐藏桌面导航，显示移动菜单按钮 */
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal) ease;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links .nav-link {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    width: 100%;
    text-align: center;
  }

  .mobile-menu-btn {
    display: block;
  }

  /* 作品网格单列显示 */
  .works-grid {
    grid-template-columns: 1fr;
  }

  /* 减小区块内边距 */
  .section {
    padding: 3rem 1rem;
  }

  .profile-card {
    padding: 2rem 1.5rem;
  }

  /* 提示消息适配 */
  .toast-message {
    top: 80px; /* 在移动端显示在导航栏下方 */
    right: 1rem;
    left: 1rem;
    max-width: none;
    width: calc(100% - 2rem);
  }
  @keyframes slideInOut {
    0% { 
      opacity: 0; 
      transform: translateY(-20px); 
    }
    10% { 
      opacity: 1; 
      transform: translateY(0); 
    }
    90% { 
      opacity: 1; 
      transform: translateY(0); 
    }
    100% { 
      opacity: 0; 
      transform: translateY(-20px); 
    }
  }
}

/* 手机设备适配 */
@media (max-width: 480px) {
  .profile-name {
    font-size: 1.5rem;
  }

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

  .avatar-container {
    width: 120px;
    height: 120px;
  }
}

/* ==================== 工具类 ==================== */
.hidden {
  display: none !important;
}

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