* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans SC', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  min-height: 100vh;
  color: #333;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: width 0.3s ease;
}

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

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

.main-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  margin-top: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1, h2, h3 {
  margin-bottom: 20px;
  color: #333;
}

h1 {
  font-size: 36px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 28px;
  margin-top: 30px;
}

.btn {
  padding: 12px 30px;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-danger {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(245, 87, 108, 0.4);
}

.btn-success {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(79, 172, 254, 0.4);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.file-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.file-item {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.file-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.file-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.file-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.file-info {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
}

.file-actions {
  display: flex;
  gap: 10px;
}

.message-list {
  max-height: 600px;
  overflow-y: auto;
}

.message-item {
  background: white;
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #667eea;
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.message-nickname {
  font-weight: 600;
  color: #667eea;
  font-size: 16px;
}

.message-time {
  color: #999;
  font-size: 12px;
}

.message-content {
  color: #555;
  line-height: 1.6;
}

.alert {
  padding: 15px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 10px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: width 0.3s ease;
}

.admin-panel {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
}

.admin-sidebar {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.admin-menu {
  list-style: none;
}

.admin-menu li {
  padding: 12px 15px;
  margin-bottom: 5px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #555;
}

.admin-menu li:hover,
.admin-menu li.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.admin-content {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

.upload-area {
  border: 2px dashed #667eea;
  border-radius: 15px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-area:hover {
  background: rgba(102, 126, 234, 0.05);
}

.upload-area.dragover {
  background: rgba(102, 126, 234, 0.1);
  border-color: #764ba2;
}

.password-display {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  font-family: monospace;
  font-size: 18px;
  text-align: center;
  margin-bottom: 20px;
}

footer {
  text-align: center;
  padding: 30px 20px;
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .admin-panel {
    grid-template-columns: 1fr;
  }
  
  .file-list {
    grid-template-columns: 1fr;
  }
  
  .main-content {
    padding: 20px;
  }
}

.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.hero-title h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 64px;
  font-weight: 900;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  position: relative;
}

.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glitch::before {
  left: 2px;
  text-shadow: -2px 0 #ff00c1;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: -2px 0 #00fff9;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% {
    clip: rect(32px, 9999px, 11px, 0);
  }
  5% {
    clip: rect(72px, 9999px, 86px, 0);
  }
  10% {
    clip: rect(4px, 9999px, 86px, 0);
  }
  15% {
    clip: rect(86px, 9999px, 4px, 0);
  }
  20% {
    clip: rect(16px, 9999px, 63px, 0);
  }
  25% {
    clip: rect(2px, 9999px, 95px, 0);
  }
  30% {
    clip: rect(66px, 9999px, 33px, 0);
  }
  35% {
    clip: rect(96px, 9999px, 52px, 0);
  }
  40% {
    clip: rect(36px, 9999px, 76px, 0);
  }
  45% {
    clip: rect(56px, 9999px, 16px, 0);
  }
  50% {
    clip: rect(86px, 9999px, 46px, 0);
  }
  55% {
    clip: rect(26px, 9999px, 86px, 0);
  }
  60% {
    clip: rect(6px, 9999px, 66px, 0);
  }
  65% {
    clip: rect(76px, 9999px, 36px, 0);
  }
  70% {
    clip: rect(46px, 9999px, 96px, 0);
  }
  75% {
    clip: rect(16px, 9999px, 56px, 0);
  }
  80% {
    clip: rect(86px, 9999px, 26px, 0);
  }
  85% {
    clip: rect(36px, 9999px, 76px, 0);
  }
  90% {
    clip: rect(66px, 9999px, 46px, 0);
  }
  95% {
    clip: rect(6px, 9999px, 86px, 0);
  }
  100% {
    clip: rect(56px, 9999px, 16px, 0);
  }
}

@keyframes glitch-anim2 {
  0% {
    clip: rect(66px, 9999px, 26px, 0);
  }
  5% {
    clip: rect(16px, 9999px, 66px, 0);
  }
  10% {
    clip: rect(86px, 9999px, 46px, 0);
  }
  15% {
    clip: rect(36px, 9999px, 96px, 0);
  }
  20% {
    clip: rect(56px, 9999px, 16px, 0);
  }
  25% {
    clip: rect(26px, 9999px, 86px, 0);
  }
  30% {
    clip: rect(6px, 9999px, 66px, 0);
  }
  35% {
    clip: rect(76px, 9999px, 36px, 0);
  }
  40% {
    clip: rect(46px, 9999px, 96px, 0);
  }
  45% {
    clip: rect(16px, 9999px, 56px, 0);
  }
  50% {
    clip: rect(86px, 9999px, 26px, 0);
  }
  55% {
    clip: rect(36px, 9999px, 76px, 0);
  }
  60% {
    clip: rect(66px, 9999px, 46px, 0);
  }
  65% {
    clip: rect(6px, 9999px, 86px, 0);
  }
  70% {
    clip: rect(56px, 9999px, 16px, 0);
  }
  75% {
    clip: rect(26px, 9999px, 66px, 0);
  }
  80% {
    clip: rect(86px, 9999px, 46px, 0);
  }
  85% {
    clip: rect(36px, 9999px, 96px, 0);
  }
  90% {
    clip: rect(66px, 9999px, 26px, 0);
  }
  95% {
    clip: rect(6px, 9999px, 86px, 0);
  }
  100% {
    clip: rect(56px, 9999px, 16px, 0);
  }
}

.hero-subtitle {
  font-size: 20px;
  color: #a0a0a0;
  margin-bottom: 30px;
  letter-spacing: 2px;
}

.hero-description p {
  font-size: 18px;
  color: #888;
  line-height: 1.8;
  margin-bottom: 10px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn-glow:hover::before {
  left: 100%;
}

.btn-glow span {
  margin-right: 8px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  top: -50px;
  right: -50px;
  animation-delay: 0s;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  bottom: -30px;
  left: -30px;
  animation-delay: 2s;
}

.shape-3 {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 4s;
}

.shape-4 {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  top: 20%;
  right: 20%;
  animation-delay: 1s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

.avatar-container {
  position: relative;
  z-index: 2;
}

.avatar-ring {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  position: relative;
  z-index: 3;
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
}

.about-section,
.skills-section,
.hobbies-section,
.stats-section,
.contact-section {
  padding: 60px 0;
  animation: fadeInUp 1s ease;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 42px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.about-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s ease;
}

.about-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.1);
}

.card-glow:hover {
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.about-icon {
  font-size: 60px;
  margin-bottom: 20px;
}

.about-card h3 {
  font-size: 24px;
  color: #fff;
  margin-bottom: 15px;
}

.about-card p {
  color: #aaa;
  line-height: 1.8;
  font-size: 16px;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.skill-category {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
}

.skill-category h3 {
  font-size: 22px;
  color: #fff;
  margin-bottom: 20px;
  font-family: 'Orbitron', sans-serif;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-tag {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: default;
}

.skill-tag:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.hobbies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.hobby-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 35px 25px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.hobby-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hobby-card:hover::before {
  opacity: 1;
}

.hobby-card:hover {
  transform: translateY(-10px);
  border-color: rgba(102, 126, 234, 0.3);
}

.hobby-icon {
  font-size: 50px;
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
}

.hobby-card h3 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.hobby-card p {
  color: #aaa;
  line-height: 1.6;
  font-size: 14px;
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.stat-item {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px 20px;
  text-align: center;
  transition: all 0.4s ease;
}

.stat-item:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.stat-number {
  font-family: 'Orbitron', sans-serif;
  font-size: 48px;
  font-weight: 900;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.stat-label {
  color: #aaa;
  font-size: 16px;
  font-weight: 500;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.contact-item {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 35px 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.4s ease;
}

.contact-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

.contact-icon {
  font-size: 40px;
}

.contact-info h3 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 5px;
}

.contact-info p {
  color: #aaa;
  font-size: 14px;
}

@media (max-width: 968px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-title h1 {
    font-size: 48px;
  }
  
  .avatar-container {
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .admin-panel {
    grid-template-columns: 1fr;
  }
  
  .file-list {
    grid-template-columns: 1fr;
  }
  
  .main-content {
    padding: 20px;
  }
  
  .hero-title h1 {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .stat-number {
    font-size: 36px;
  }
}

/* ================================
   下载密码弹窗样式 (核心修改)
   ================================ */

/* 1. 遮罩层设置：全屏覆盖、半透明、模糊背景 */
.modal {
  display: none; /* 默认隐藏，由 JS 控制 */
  position: fixed; /* 关键：固定定位，脱离文档流 */
  z-index: 2000; /* 关键：确保在所有内容之上 */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6); /* 黑色半透明背景 */
  backdrop-filter: blur(5px); /* 背景高斯模糊效果 */
  
  /* 关键：使用 Flexbox 实现水平垂直居中 */
  justify-content: center;
  align-items: center;
  
  /* 淡入动画 */
  animation: fadeIn 0.3s ease;
}

/* 2. 弹窗卡片内容：白色背景、圆角、阴影 */
.modal .modal-content {
  background: #ffffff;
  margin: auto;
  padding: 35px;
  border-radius: 20px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  position: relative;
  text-align: center;
  
  /* 下滑动画初始状态 */
  transform: translateY(-30px);
  opacity: 0;
  animation: slideDown 0.3s ease forwards;
}

/* 3. 标题样式 */
.modal .modal-content h2 {
  margin-top: 0;
  color: #333;
  font-size: 24px;
  margin-bottom: 25px;
  font-weight: 700;
}

/* 4. 表单组样式 */
.modal .form-group {
  margin-bottom: 25px;
  text-align: left;
}

.modal .form-group label {
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-size: 14px;
  font-weight: 600;
}

.modal .form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s;
  box-sizing: border-box; /* 防止padding撑大宽度 */
}

.modal .form-group input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* 5. 按钮区域样式 */
.modal .modal-content div[style*="justify-content"] {
  display: flex !important; /* 强制覆盖内联样式 */
  gap: 15px !important;
  justify-content: center !important; /* 强制居中按钮 */
  margin-top: 10px;
}

/* 6. 动画定义 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 7. 移动端适配 */
@media (max-width: 480px) {
  .modal .modal-content {
    width: 85%;
    padding: 25px;
  }
}