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

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: #0a0e27;
  color: #e5e7eb;
  line-height: 1.6;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  display: block;
  border-radius: inherit;
}

/* ========== Background Decorations ========== */
.bg-decoration {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-gradient-1 {
  position: absolute;
  width: 800px;
  height: 800px;
  top: -400px;
  left: -400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15), transparent 70%);
  animation: float 20s ease-in-out infinite;
}

.bg-gradient-2 {
  position: absolute;
  width: 600px;
  height: 600px;
  bottom: -300px;
  right: -300px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.12), transparent 70%);
  animation: float 25s ease-in-out infinite reverse;
}

.bg-gradient-3 {
  position: absolute;
  width: 500px;
  height: 500px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08), transparent 70%);
  animation: pulse 15s ease-in-out infinite;
}

.bg-particles {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.1), transparent),
    radial-gradient(2px 2px at 60% 70%, rgba(255,255,255,0.08), transparent),
    radial-gradient(1px 1px at 50% 50%, rgba(255,255,255,0.1), transparent),
    radial-gradient(1px 1px at 80% 10%, rgba(255,255,255,0.08), transparent),
    radial-gradient(2px 2px at 90% 60%, rgba(255,255,255,0.1), transparent);
  background-size: 200% 200%;
  animation: particles 30s linear infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(30px, 30px) rotate(180deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes particles {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

/* ========== Page Layout ========== */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.page-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  position: relative;
  z-index: 2;
  padding-top: calc(2rem + 100px); /* 为固定导航栏留出空间 */
}

/* ========== Header ========== */
.header-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.95) 100%);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

.header-inner {
  margin: 0 auto;
  max-width: 1280px;
  padding: 0.75rem 1.25rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.95));
  border: 1px solid rgba(51, 65, 85, 0.6);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(37, 99, 235, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  position: relative;
}

.header-inner:hover {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 
    0 25px 70px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(37, 99, 235, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* 滚动时的导航栏样式 */
.header-scrolled {
  padding-top: 1rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.99) 0%, rgba(15, 23, 42, 0.98) 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-inner-scrolled {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.99), rgba(30, 41, 59, 0.98));
  border-color: rgba(51, 65, 85, 0.8);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(37, 99, 235, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
  transition: all 0.3s ease;
}

.brand-logo:hover {
  transform: translateY(-2px) rotate(5deg);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.6);
}

.brand-text-main {
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 1rem;
  background: linear-gradient(135deg, #e5e7eb, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-text-sub {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 0.15rem;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.3s ease;
}

.nav-link i {
  font-size: 0.85rem;
}

.nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(249, 115, 22, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-link:hover {
  color: #e5e7eb;
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateY(-2px);
}

.nav-link:hover::before {
  opacity: 1;
}

.nav-link-strong {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(59, 130, 246, 0.1));
  border-color: rgba(37, 99, 235, 0.4);
  color: #cbd5e1;
}

.nav-link-strong:hover {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(51, 65, 85, 0.6);
  background: rgba(15, 23, 42, 0.8);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-toggle:hover {
  border-color: rgba(37, 99, 235, 0.5);
  background: rgba(15, 23, 42, 0.95);
}

.nav-toggle-line {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #e5e7eb;
  position: relative;
  transition: all 0.3s ease;
}

.nav-toggle-line::before,
.nav-toggle-line::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #e5e7eb;
  transition: all 0.3s ease;
}

.nav-toggle-line::before {
  top: -6px;
}

.nav-toggle-line::after {
  top: 6px;
}

.nav-open .nav-links {
  display: flex;
}

.nav-open .nav-toggle-line {
  background: transparent;
}

.nav-open .nav-toggle-line::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-open .nav-toggle-line::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ========== Hero Section ========== */
.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
  position: relative;
}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(34, 197, 94, 0.3);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.05));
  color: #86efac;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  animation: slideInLeft 0.6s ease-out;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-title-line {
  background: linear-gradient(135deg, #e5e7eb, #cbd5e1, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #94a3b8;
  max-width: 36rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-highlights {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #cbd5e1;
}

.hero-check-icon {
  color: #22c55e;
  margin-top: 0.2rem;
  font-size: 0.9rem;
  animation: check-bounce 0.5s ease;
}

@keyframes check-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-primary,
.btn-ghost {
  border-radius: 14px;
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.6);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary i,
.btn-primary span {
  position: relative;
  z-index: 1;
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #cbd5e1;
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: #f97316;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
}

.hero-visual {
  position: relative;
  animation: fadeInRight 0.8s ease-out;
}

.floating-card {
  animation: float-card 6s ease-in-out infinite;
}

@keyframes float-card {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.hero-card {
  border-radius: 24px;
  padding: 1.75rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
  border: 1px solid rgba(51, 65, 85, 0.5);
  box-shadow: 
    0 25px 70px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(37, 99, 235, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
}

.hero-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(37, 99, 235, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.hero-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #e5e7eb;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.hero-card-title i {
  color: #3b82f6;
}

.hero-card-subtitle {
  font-size: 0.85rem;
  color: #94a3b8;
}

.hero-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.badge {
  font-size: 0.75rem;
  border-radius: 8px;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.8);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.badge i {
  font-size: 0.7rem;
}

.hero-card-main-image {
  margin-top: 1rem;
  border-radius: 16px;
  border: 1px dashed rgba(148, 163, 184, 0.4);
  padding: 0.5rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(139, 92, 246, 0.05));
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-card-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.hero-card-tagline {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.hero-card-tagline i {
  color: #3b82f6;
  margin-top: 0.2rem;
}

.hero-card-metrics {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.metric {
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(51, 65, 85, 0.5);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
}

.metric:hover {
  border-color: rgba(37, 99, 235, 0.4);
  background: rgba(15, 23, 42, 0.95);
  transform: translateY(-2px);
}

.metric-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(59, 130, 246, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  font-size: 1rem;
}

.metric-content {
  flex: 1;
}

.metric-label {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-bottom: 0.2rem;
}

.metric-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e5e7eb;
}

.chip-row {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.75rem;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.3s ease;
}

.chip:hover {
  border-color: rgba(37, 99, 235, 0.5);
  color: #cbd5e1;
  transform: translateY(-2px);
}

.chip i {
  font-size: 0.7rem;
}

/* ========== Profile Card Styles ========== */
.profile-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-header-section {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 16px;
  border: 1px solid rgba(51, 65, 85, 0.5);
}

.profile-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
  width: 116px; /* 100px头像 + 8px*2光晕空间 */
  height: 116px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(37, 99, 235, 0.5);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2; /* 确保头像在光晕之上 */
  background: #fff; /* 确保头像有背景 */
}

.profile-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.5);
}

.profile-avatar-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  z-index: 1; /* 在头像下方 */
  background: conic-gradient(from 0deg, #3b82f6, #8b5cf6, #ec4899, #3b82f6);
  animation: rotate-ring 3s linear infinite;
  opacity: 0.8;
  pointer-events: none; /* 不阻挡鼠标事件 */
  /* 使用box-shadow创建内部遮罩，让中心透明 */
  box-shadow: inset 0 0 0 8px rgba(15, 23, 42, 0.95);
}

@keyframes rotate-ring {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.profile-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.profile-contact-item i {
  color: #3b82f6;
  font-size: 1.1rem;
}

.profile-email {
  color: #60a5fa;
  text-decoration: none;
  transition: all 0.3s ease;
}

.profile-email:hover {
  color: #93c5fd;
  text-decoration: underline;
}

.profile-blog-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  text-decoration: none;
}

.profile-blog-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.6);
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.profile-blog-btn i:last-child {
  font-size: 0.75rem;
  opacity: 0.8;
}

.profile-skills-section,
.profile-map-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #e5e7eb;
}

.profile-section-title i {
  color: #3b82f6;
}

.profile-skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  cursor: default;
}

.skill-tag i {
  font-size: 0.9rem;
}

.skill-tag-blue {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.15));
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.4);
}

.skill-tag-green {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.15));
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.4);
}

.skill-tag-purple {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(124, 58, 237, 0.15));
  color: #a78bfa;
  border-color: rgba(139, 92, 246, 0.4);
}

.skill-tag-orange {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(234, 88, 12, 0.15));
  color: #fb923c;
  border-color: rgba(249, 115, 22, 0.4);
}

.skill-tag-red {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.15));
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

.skill-tag-cyan {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(8, 145, 178, 0.15));
  color: #22d3ee;
  border-color: rgba(6, 182, 212, 0.4);
}

.skill-tag-yellow {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(202, 138, 4, 0.15));
  color: #fbbf24;
  border-color: rgba(234, 179, 8, 0.4);
}

.skill-tag-pink {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(219, 39, 119, 0.15));
  color: #f472b6;
  border-color: rgba(236, 72, 153, 0.4);
}

.skill-tag-teal {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(15, 118, 110, 0.15));
  color: #2dd4bf;
  border-color: rgba(20, 184, 166, 0.4);
}

.skill-tag-indigo {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(79, 70, 229, 0.15));
  color: #818cf8;
  border-color: rgba(99, 102, 241, 0.4);
}

.skill-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.amap-container {
  width: 100%;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ========== Sections ========== */
.section {
  margin-bottom: 5rem;
  animation: fadeInUp 0.8s ease-out;
}

.section-interactive {
  margin-bottom: 5rem;
}

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.section-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(59, 130, 246, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #e5e7eb, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1rem;
  color: #94a3b8;
  line-height: 1.6;
}

/* ========== Skill Showcase Cards ========== */
.skill-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.skill-showcase-card {
  border-radius: 20px;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
  border: 1px solid rgba(51, 65, 85, 0.5);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ssc-gradient-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

.skill-showcase-card:hover {
  transform: translateY(-8px);
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.skill-showcase-card:hover .ssc-gradient-bg {
  opacity: 1;
}

/* 不同颜色的卡片主题 */
.ssc-card-blue {
  border-color: rgba(59, 130, 246, 0.3);
}

.ssc-card-blue .ssc-gradient-bg {
  background: linear-gradient(90deg, transparent, #3b82f6, #60a5fa, transparent);
}

.ssc-card-orange {
  border-color: rgba(249, 115, 22, 0.3);
}

.ssc-card-orange .ssc-gradient-bg {
  background: linear-gradient(90deg, transparent, #f97316, #fb923c, transparent);
}

.ssc-card-green {
  border-color: rgba(34, 197, 94, 0.3);
}

.ssc-card-green .ssc-gradient-bg {
  background: linear-gradient(90deg, transparent, #22c55e, #4ade80, transparent);
}

.ssc-card-purple {
  border-color: rgba(139, 92, 246, 0.3);
}

.ssc-card-purple .ssc-gradient-bg {
  background: linear-gradient(90deg, transparent, #8b5cf6, #a78bfa, transparent);
}

.ssc-card-cyan {
  border-color: rgba(6, 182, 212, 0.3);
}

.ssc-card-cyan .ssc-gradient-bg {
  background: linear-gradient(90deg, transparent, #06b6d4, #22d3ee, transparent);
}

.ssc-card-pink {
  border-color: rgba(236, 72, 153, 0.3);
}

.ssc-card-pink .ssc-gradient-bg {
  background: linear-gradient(90deg, transparent, #ec4899, #f472b6, transparent);
}

.ssc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.ssc-left {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
}

.ssc-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.skill-showcase-card:hover .ssc-icon {
  transform: scale(1.05);
}

.ssc-icon-blue {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(96, 165, 250, 0.2));
  color: #60a5fa;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.ssc-icon-orange {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.3), rgba(251, 146, 60, 0.2));
  color: #fb923c;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.4);
}

.ssc-icon-green {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(74, 222, 128, 0.2));
  color: #4ade80;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.4);
}

.ssc-icon-purple {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(167, 139, 250, 0.2));
  color: #a78bfa;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

.ssc-icon-cyan {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(34, 211, 238, 0.2));
  color: #22d3ee;
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.4);
}

.ssc-icon-pink {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(244, 114, 182, 0.2));
  color: #f472b6;
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.4);
}

.ssc-title {
  font-size: 1rem;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 0.3rem;
}

.ssc-subtitle {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.4;
}

.ssc-desc {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0.5rem 0;
}

.ssc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ssc-badge {
  padding: 0.3rem 0.7rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  backdrop-filter: blur(10px);
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.ssc-badge-blue {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(96, 165, 250, 0.1));
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.3);
}

.ssc-badge-green {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(74, 222, 128, 0.1));
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.3);
}

.ssc-badge-purple {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(167, 139, 250, 0.1));
  color: #a78bfa;
  border-color: rgba(139, 92, 246, 0.3);
}

.ssc-badge-orange {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(251, 146, 60, 0.1));
  color: #fb923c;
  border-color: rgba(249, 115, 22, 0.3);
}

.ssc-badge-red {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(248, 113, 113, 0.1));
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

.ssc-badge-yellow {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(251, 191, 36, 0.1));
  color: #fbbf24;
  border-color: rgba(234, 179, 8, 0.3);
}

.ssc-badge-cyan {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(34, 211, 238, 0.1));
  color: #22d3ee;
  border-color: rgba(6, 182, 212, 0.3);
}

.ssc-badge-teal {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(45, 212, 191, 0.1));
  color: #2dd4bf;
  border-color: rgba(20, 184, 166, 0.3);
}

.ssc-badge-indigo {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(129, 140, 248, 0.1));
  color: #818cf8;
  border-color: rgba(99, 102, 241, 0.3);
}

.ssc-badge-pink {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(244, 114, 182, 0.1));
  color: #f472b6;
  border-color: rgba(236, 72, 153, 0.3);
}


.ssc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  margin-top: auto; /* 保证标签在底部对齐 */
  position: relative;
  z-index: 1;
}

.ssc-pill {
  padding: 0.5rem 0.9rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  backdrop-filter: blur(10px);
}

.ssc-pill-blue {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(96, 165, 250, 0.1));
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.4);
}

.ssc-pill-green {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(74, 222, 128, 0.1));
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.4);
}

.ssc-pill-purple {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(167, 139, 250, 0.1));
  color: #a78bfa;
  border-color: rgba(139, 92, 246, 0.4);
}

.ssc-pill-orange {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(251, 146, 60, 0.1));
  color: #fb923c;
  border-color: rgba(249, 115, 22, 0.4);
}

.ssc-pill-red {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(248, 113, 113, 0.1));
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

.ssc-pill-yellow {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(251, 191, 36, 0.1));
  color: #fbbf24;
  border-color: rgba(234, 179, 8, 0.4);
}

.ssc-pill-cyan {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(34, 211, 238, 0.1));
  color: #22d3ee;
  border-color: rgba(6, 182, 212, 0.4);
}

.ssc-pill-teal {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(45, 212, 191, 0.1));
  color: #2dd4bf;
  border-color: rgba(20, 184, 166, 0.4);
}

.ssc-pill-indigo {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(129, 140, 248, 0.1));
  color: #818cf8;
  border-color: rgba(99, 102, 241, 0.4);
}

.ssc-pill-pink {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(244, 114, 182, 0.1));
  color: #f472b6;
  border-color: rgba(236, 72, 153, 0.4);
}

.ssc-pill:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.ssc-pill i {
  font-size: 0.85rem;
}

/* ========== Interactive Card ========== */
.interactive-card {
  border-radius: 24px;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
  border: 1px solid rgba(51, 65, 85, 0.5);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: visible;
}

.interactive-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.interactive-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e5e7eb;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.interactive-card-title i {
  color: #3b82f6;
}

.interactive-card-subtitle {
  font-size: 0.9rem;
  color: #94a3b8;
}

.interactive-card-meta {
  font-size: 0.8rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.interactive-card-meta i {
  color: #3b82f6;
}

/* ========== Neural Network Canvas ========== */
.nn-canvas-wrap {
  margin-top: 1rem;
  border-radius: 16px;
  border: 1px dashed rgba(51, 65, 85, 0.6);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(139, 92, 246, 0.05));
  padding: 1rem;
}

.nn-visual-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding-right: 0;
  width: 100%;
  overflow: hidden;
}

.nn-canvas {
  width: 100%;
  height: 380px;
  display: block;
  max-width: 100%;
}

.nn-legend {
  margin-top: 1rem;
  margin-left: 1rem; /* 与Input标签左侧对齐：interactive-card的padding(2rem) + nn-canvas-wrap的padding(1rem) = 3rem，但nn-legend在interactive-card内，所以只需要加1rem来匹配nn-canvas-wrap的padding */
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

.nn-icon {
  margin-right: 0.5rem;
  display: inline-block;
  vertical-align: middle;
}

/* 方块图标：卷积/池化层 */
.nn-icon-square {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: #3b82f6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* 横向长条图标：Flatten层 */
.nn-icon-bar {
  width: 20px;
  height: 8px;
  border-radius: 4px;
  background: #64748b;
  box-shadow: 0 0 8px rgba(100, 116, 139, 0.4);
}

/* 圆形图标：全连接层 */
.nn-icon-circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f97316;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
}

.cnn-thumb-row {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.cnn-thumb {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  border: 2px solid rgba(51, 65, 85, 0.6);
  background: rgba(15, 23, 42, 0.8);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.cnn-thumb:hover {
  border-color: rgba(37, 99, 235, 0.6);
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.cnn-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cnn-flow-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.nn-visual-board {
  display: flex;
  gap: 1.4rem;
  align-items: stretch;
  overflow: visible;
}

.cnn-layer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
  /* 使用clamp实现响应式缩放 */
  font-size: clamp(0.65rem, 1.2vw, 0.8rem);
}

.cnn-layer-tag {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.25rem, 0.5vw, 0.35rem);
  padding: clamp(0.25rem, 0.5vw, 0.35rem) clamp(0.6rem, 1.2vw, 0.8rem);
  border-radius: 999px;
  border: 1px solid rgba(51, 65, 85, 0.7);
  background: rgba(15, 23, 42, 0.85);
  font-size: inherit;
  color: #cbd5e1;
}

.cnn-layer-tag i {
  color: #60a5fa;
  font-size: clamp(0.7rem, 1.3vw, 0.85rem);
}

.cnn-info-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 300px;
  flex-shrink: 0;
}

.cnn-prob-card {
  border-radius: 14px;
  border: 1px solid rgba(51, 65, 85, 0.6);
  background: rgba(15, 23, 42, 0.9);
  padding: 1.25rem 1rem 1.25rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.cnn-prob-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(59, 130, 246, 0.5), 
    rgba(34, 197, 94, 0.5), 
    transparent);
  animation: cardGlow 3s ease-in-out infinite;
}

@keyframes cardGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.cnn-prob-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  gap: 0.6rem;
}

.cnn-prob-title {
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cnn-prob-title i {
  color: #3b82f6;
}

.cnn-prob-sub {
  font-size: 0.78rem;
  color: #94a3b8;
}

.cnn-prob-badge {
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(59, 130, 246, 0.15));
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cnn-prob-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cnn-prob-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.25rem;
  border-top: 1px solid rgba(51, 65, 85, 0.4);
  border-bottom: 1px solid rgba(51, 65, 85, 0.4);
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cnn-prob-stat-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  color: #94a3b8;
  flex: 1;
  min-width: 0;
  justify-content: center;
}

.cnn-prob-stat-item i {
  color: #60a5fa;
  font-size: 0.75rem;
}

.cnn-prob-stat-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cnn-prob-rows {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cnn-prob-bar {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.82rem;
  padding: 0.5rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(51, 65, 85, 0.3);
  transition: all 0.3s ease;
}

.cnn-prob-bar:hover {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateX(2px);
}

.cnn-prob-bar[data-class="cat"] {
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(34, 197, 94, 0.3);
}

.cnn-prob-bar[data-class="cat"]:hover {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
}

.cnn-thumb.mini {
  width: 66px;
  height: 66px;
  border-radius: 10px;
  position: relative;
  flex-shrink: 0;
  border: 2px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.cnn-prob-bar:hover .cnn-thumb.mini {
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
  transform: scale(1.05);
}

.cnn-thumb.mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.cnn-thumb-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.65rem;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.5);
  border: 2px solid rgba(15, 23, 42, 0.9);
}

.cnn-prob-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.cnn-prob-track-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.cnn-prob-track {
  flex: 1;
  height: 16px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(31, 41, 55, 0.9));
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.6);
  display: flex;
  align-items: center;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cnn-prob-track.vertical {
  height: 16px;
}

.cnn-prob-fill {
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, #22c55e 0%, #3b82f6 50%, #60a5fa 100%);
  box-shadow: 
    0 0 12px rgba(59, 130, 246, 0.6),
    0 0 6px rgba(34, 197, 94, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform-origin: left center;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 4px;
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.cnn-prob-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.3) 50%, 
    transparent 100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.cnn-prob-glow {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, 
    rgba(59, 130, 246, 0.4), 
    rgba(34, 197, 94, 0.4));
  border-radius: 8px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.cnn-prob-percent {
  min-width: 42px;
  text-align: right;
  font-size: 0.75rem;
  font-weight: 700;
  color: #60a5fa;
  display: flex;
  align-items: baseline;
  gap: 1px;
}

.cnn-prob-percent-value {
  font-size: 0.9rem;
}

.cnn-prob-percent-symbol {
  font-size: 0.7rem;
  opacity: 0.8;
}

.cnn-prob-label {
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.85rem;
}

.cnn-prob-label i {
  font-size: 0.9rem;
  color: #60a5fa;
}

.cnn-prob-value {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  color: #cbd5e1;
  font-size: 0.8rem;
}

.cnn-prob-value-label {
  color: #94a3b8;
  font-weight: 500;
  font-size: 0.75rem;
}

.cnn-prob-value-number {
  color: #60a5fa;
  font-weight: 700;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.cnn-prob-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* ========== Skills Grid ========== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.skill-card {
  border-radius: 20px;
  padding: 1.75rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
  border: 1px solid rgba(51, 65, 85, 0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(249, 115, 22, 0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.skill-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

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

.skill-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.skill-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(59, 130, 246, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.skill-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e5e7eb;
}

.skill-list {
  margin-top: 0.5rem;
  list-style: none;
}

.skill-item {
  font-size: 0.9rem;
  color: #cbd5e1;
  padding-left: 0;
  padding: 0.5rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  line-height: 1.6;
}

.skill-item-icon {
  color: #22c55e;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* ========== Editor Layout ========== */
.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: 1.5rem;
  margin-top: 1rem;
  align-items: stretch;
}

.editor-window {
  border-radius: 16px;
  background: #020617;
  border: 1px solid rgba(51, 65, 85, 0.6);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  height: 520px;
}

.editor-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(15, 23, 42, 1);
  border-bottom: 1px solid rgba(31, 41, 55, 1);
}

.editor-dots {
  display: flex;
  gap: 0.4rem;
}

.editor-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.editor-dot.red {
  background: #ef4444;
}

.editor-dot.amber {
  background: #f59e0b;
}

.editor-dot.green {
  background: #22c55e;
}

.editor-filename {
  font-size: 0.8rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.editor-filename i {
  color: #3b82f6;
}

.editor-body {
  padding: 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.85rem;
  color: #e5e7eb;
  overflow-x: auto;
  overflow-y: auto;
  flex: 1;
  scroll-behavior: smooth;
  /* Firefox 滚动条样式 */
  scrollbar-width: thin;
  scrollbar-color: rgba(51, 65, 85, 0.8) rgba(15, 23, 42, 0.8);
}

/* 美化编辑器滚动条 - Webkit浏览器 */
.editor-body::-webkit-scrollbar {
  width: 8px;
}

.editor-body::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 4px;
}

.editor-body::-webkit-scrollbar-thumb {
  background: rgba(51, 65, 85, 0.8);
  border-radius: 4px;
  transition: background 0.3s ease;
}

.editor-body::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.6);
}

.editor-line {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.3rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.editor-line.active {
  background-color: rgba(59, 130, 246, 0.15);
  border-left: 2px solid rgba(59, 130, 246, 0.6);
  padding-left: calc(0.5rem - 2px);
}

.editor-line-number {
  width: 2rem;
  text-align: right;
  color: #4b5563;
  flex-shrink: 0;
}

.editor-line-code {
  white-space: pre;
  color: #e5e7eb;
}

/* ========== Phone Frame ========== */
.phone-frame {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.phone-screen {
  width: 100%;
  max-width: 300px;
  height: 520px;
  border-radius: 20px;
  background: #020617;
  border: 2px solid rgba(31, 41, 55, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.phone-statusbar {
  height: 24px;
  background: rgba(15, 23, 42, 1);
  border-bottom: 1px solid rgba(31, 41, 55, 1);
}

.phone-header {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(31, 41, 55, 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #cbd5e1;
}

.phone-header i {
  color: #3b82f6;
}

.phone-body {
  flex: 1;
  padding: 0.75rem;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: visible;
}

.phone-tag {
  font-size: 0.7rem;
  border-radius: 8px;
  padding: 0.3rem 0.6rem;
  background: rgba(15, 23, 42, 1);
  border: 1px solid rgba(55, 65, 81, 1);
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #94a3b8;
}

.phone-tag i {
  color: #3b82f6;
}

.phone-title {
  font-size: 1rem;
  font-weight: 600;
  color: #e5e7eb;
}

.phone-desc {
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.5;
}

.phone-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.3rem;
}

.phone-pill {
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 1);
  border: 1px solid rgba(55, 65, 81, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #94a3b8;
}

.phone-pill i {
  font-size: 0.65rem;
}

.phone-section-title {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 0.5rem;
  font-weight: 500;
}

.phone-card {
  margin-top: 0.5rem;
  border-radius: 12px;
  border: 1px solid rgba(31, 41, 55, 1);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(59, 130, 246, 0.05));
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.phone-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e5e7eb;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.phone-card-title i {
  color: #3b82f6;
}

.phone-card-desc {
  font-size: 0.7rem;
  color: #94a3b8;
  line-height: 1.5;
}

.phone-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #64748b;
  margin-top: 0.3rem;
}

.phone-card-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.phone-card-meta i {
  font-size: 0.65rem;
}

/* ========== Phone Charts ========== */
.phone-charts-container {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  animation: fadeInUp 0.5s ease-out;
}

.phone-chart-item {
  border-radius: 10px;
  border: 1px solid rgba(31, 41, 55, 1);
  background: rgba(15, 23, 42, 0.9);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
}

.phone-chart-title {
  font-size: 0.65rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 500;
}

.phone-chart-title i {
  color: #3b82f6;
  font-size: 0.7rem;
}

.phone-charts-container canvas {
  width: 100%;
  height: auto;
  max-height: 100px;
  display: block;
}

/* ========== Projects Grid ========== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

/* ========== New Projects Grid (2x2 Layout) ========== */
.projects-grid-new {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.project-card-new {
  position: relative;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
  border: 1px solid rgba(51, 65, 85, 0.5);
  padding: 1.5rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  min-height: 140px;
}

.project-card-new::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(37, 99, 235, 0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.project-card-new:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.6);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.project-card-new:hover::before {
  opacity: 1;
}

.project-logo-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.project-logo {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.5;
  transform: scale(1.1);
  transition: transform 0.5s ease, opacity 0.4s ease;
  
  /* 自右上向左下透明度减淡的遮罩 - 使用更平滑的渐变 */
  mask-image: 
    radial-gradient(ellipse 140% 120% at 85% 15%, 
      rgba(0,0,0,1) 0%, 
      rgba(0,0,0,0.9) 15%, 
      rgba(0,0,0,0.7) 30%, 
      rgba(0,0,0,0.4) 50%, 
      rgba(0,0,0,0.2) 70%, 
      rgba(0,0,0,0) 100%);
  -webkit-mask-image: 
    radial-gradient(ellipse 140% 120% at 85% 15%, 
      rgba(0,0,0,1) 0%, 
      rgba(0,0,0,0.9) 15%, 
      rgba(0,0,0,0.7) 30%, 
      rgba(0,0,0,0.4) 50%, 
      rgba(0,0,0,0.2) 70%, 
      rgba(0,0,0,0) 100%);
  
  /* 油墨过渡效果 - 增强对比度和轻微模糊 */
  filter: blur(0.8px) contrast(1.15) brightness(0.95);
}

.project-card-new:hover .project-logo {
  opacity: 0.5;
  transform: scale(1.15);
}

/* 添加油墨边缘效果 - 多层渐变实现更自然的过渡 */
.project-logo-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse 140% 120% at 85% 15%, 
      transparent 0%, 
      transparent 35%, 
      rgba(15, 23, 42, 0.2) 45%, 
      rgba(15, 23, 42, 0.4) 55%, 
      rgba(15, 23, 42, 0.65) 70%, 
      rgba(15, 23, 42, 0.85) 85%, 
      rgba(15, 23, 42, 0.95) 100%);
  pointer-events: none;
  z-index: 1;
}

/* 添加额外的油墨扩散效果 */
.project-logo-wrapper::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: 
    radial-gradient(circle at center, 
      rgba(15, 23, 42, 0.1) 0%, 
      rgba(15, 23, 42, 0.3) 40%, 
      transparent 70%);
  pointer-events: none;
  z-index: 1;
  filter: blur(8px);
}

.project-content-new {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 55%;
}

.project-title-new {
  font-size: 1.25rem;
  font-weight: 600;
  color: #e5e7eb;
  margin: 0;
  line-height: 1.3;
}

.project-summary-new {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 1024px) {
  .projects-grid-new {
    grid-template-columns: 1fr;
  }
  
  .project-card-new {
    min-height: 160px;
  }
  
  .project-logo-wrapper {
    width: 40%;
  }
  
  .project-content-new {
    max-width: 60%;
  }
}

@media (max-width: 768px) {
  .project-card-new {
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
    padding: 1.25rem;
  }
  
  .project-logo-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    margin-bottom: 1rem;
  }
  
  .project-content-new {
    max-width: 100%;
  }
  
  .project-logo {
    position: relative;
    opacity: 0.6;
    mask-image: 
      radial-gradient(ellipse 100% 80% at center, 
        rgba(0,0,0,1) 0%, 
        rgba(0,0,0,0.6) 50%, 
        rgba(0,0,0,0) 100%);
    -webkit-mask-image: 
      radial-gradient(ellipse 100% 80% at center, 
        rgba(0,0,0,1) 0%, 
        rgba(0,0,0,0.6) 50%, 
        rgba(0,0,0,0) 100%);
  }
  
  .project-logo-wrapper::after {
    background: 
      radial-gradient(ellipse 100% 80% at center, 
        transparent 0%, 
        transparent 50%, 
        rgba(15, 23, 42, 0.4) 70%, 
        rgba(15, 23, 42, 0.8) 100%);
  }
}

.project-card {
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
  border: 1px solid rgba(51, 65, 85, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(37, 99, 235, 0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(249, 115, 22, 0.6);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

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

.project-image-wrapper {
  position: relative;
  overflow: hidden;
}

.project-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.75rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 2;
}

.project-tag i {
  font-size: 0.7rem;
}

.project-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(139, 92, 246, 0.05));
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.project-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e5e7eb;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-title i {
  color: #f97316;
}

.project-summary {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.project-highlights {
  margin-top: 0.5rem;
  list-style: none;
}

.project-highlights li {
  font-size: 0.85rem;
  color: #94a3b8;
  padding-left: 0;
  padding: 0.4rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.5;
}

.project-highlights li i {
  color: #22c55e;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ========== Business Contact Section ========== */
.contact-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.contact-card-simple {
  width: 100%;
  border-radius: 24px;
  padding: 3rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
  border: 1px solid rgba(51, 65, 85, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.contact-card-simple::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(249, 115, 22, 0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.contact-card-simple:hover {
  transform: translateY(-8px);
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.contact-card-simple:hover::before {
  opacity: 1;
}

.contact-icon-wrapper-simple {
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.contact-icon-bg {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(59, 130, 246, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  font-size: 2.5rem;
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.4);
  transition: all 0.4s ease;
  position: relative;
}

.contact-icon-bg::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.5), rgba(59, 130, 246, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.contact-card-simple:hover .contact-icon-bg {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.5);
}

.contact-card-simple:hover .contact-icon-bg::after {
  opacity: 1;
}

.contact-content-simple {
  position: relative;
  z-index: 1;
  width: 100%;
}

.contact-title-simple {
  font-size: 1.5rem;
  font-weight: 600;
  color: #e5e7eb;
  margin: 0 0 1.5rem 0;
}

.contact-link-simple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #e5e7eb;
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(37, 99, 235, 0.4);
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: visible;
}

.contact-link-simple::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(59, 130, 246, 0.2));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-link-simple:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
  color: #fff;
}

.contact-link-simple:hover::before {
  opacity: 1;
}

.contact-link-simple i:first-child {
  font-size: 1.2rem;
  color: #60a5fa;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.contact-link-simple:hover i:first-child {
  transform: scale(1.2);
}

.contact-link-simple span {
  position: relative;
  z-index: 1;
  font-weight: 600;
}

.contact-link-simple i.copy-icon {
  font-size: 0.9rem;
  opacity: 0.7;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
}

.contact-link-simple:hover i.copy-icon {
  opacity: 1;
  background: rgba(37, 99, 235, 0.2);
}

.contact-link-simple i.copy-icon:hover {
  transform: scale(1.2);
  background: rgba(37, 99, 235, 0.3);
}

.copy-tooltip {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(59, 130, 246, 0.9));
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.copy-tooltip::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(37, 99, 235, 0.95);
}

.copy-tooltip.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.contact-desc-simple {
  font-size: 1rem;
  color: #94a3b8;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 768px) {
  .contact-card-simple {
    padding: 2rem 1.5rem;
  }
  
  .contact-icon-bg {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }
  
  .contact-title-simple {
    font-size: 1.25rem;
  }
  
  .contact-link-simple {
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
  }
  
  .contact-desc-simple {
    font-size: 0.9rem;
  }
}

/* ========== Footer ========== */
.footer {
  margin-top: 6rem;
  border-top: 1px solid rgba(31, 41, 55, 0.8);
  padding: 2.5rem 1.5rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
}

.footer-title {
  font-weight: 600;
  font-size: 1rem;
  color: #e5e7eb;
}

.footer-subtitle {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 0.2rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.85rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #cbd5e1;
  transform: translateY(-2px);
}

.footer-links a i {
  font-size: 0.8rem;
}

/* ========== Animations ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* ========== Responsive Design ========== */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .skill-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editor-layout {
    grid-template-columns: 1fr;
  }

  .nn-visual-board {
    flex-direction: column;
  }

  .cnn-info-panel {
    width: 100%;
  }
}

/* 在文字换行之前就显示汉堡菜单 */
@media (max-width: 1200px) {
  .nav-links {
    position: absolute;
    right: 1rem;
    top: 60px;
    padding: 1rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(31, 41, 55, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    flex-direction: column;
    align-items: flex-start;
    min-width: 200px;
    display: none;
    z-index: 1000;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

/* 当检测到换行时，也显示汉堡菜单（即使宽度大于1200px） */
.nav-wrap-detected .nav-links {
  position: absolute;
  right: 1rem;
  top: 60px;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(31, 41, 55, 1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  flex-direction: column;
  align-items: flex-start;
  min-width: 200px;
  display: none;
  z-index: 1000;
}

.nav-wrap-detected .nav-toggle {
  display: inline-flex;
}

@media (max-width: 768px) {
  .page-inner {
    padding: 1.5rem 1rem 3rem;
    padding-top: calc(1.5rem + 100px); /* 为固定导航栏留出空间 */
  }

  .header-inner {
    border-radius: 16px;
    padding: 0.6rem 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .nav-main {
    gap: 0.5rem;
  }

  .hero-section {
    margin-bottom: 3rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }

  .section-header {
    flex-direction: column;
    gap: 1rem;
  }

  .section-icon {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }

  .skill-showcase-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .cnn-flow-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-card-metrics {
    grid-template-columns: 1fr;
  }

  .phone-screen {
    width: 200px;
    height: 350px;
  }
}

/* ========== Admin Styles ========== */
.admin-main {
  max-width: 1200px;
  margin: 2rem auto 4rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
  border-radius: 24px;
  border: 1px solid rgba(51, 65, 85, 0.5);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 0.8s ease-out;
}

.admin-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.admin-header-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(59, 130, 246, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  font-size: 1.8rem;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.admin-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #e5e7eb, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.admin-note {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 0;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-password-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-label {
  font-size: 0.9rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.admin-label i {
  color: #3b82f6;
}

.admin-input {
  width: 100%;
  max-width: 400px;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(51, 65, 85, 0.6);
  background: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.admin-input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.6);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.admin-textarea-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-textarea-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #cbd5e1;
  font-weight: 500;
}

.admin-textarea-header i {
  color: #3b82f6;
}

.admin-textarea {
  width: 100%;
  min-height: 500px;
  background: #020617;
  border-radius: 16px;
  border: 1px solid rgba(51, 65, 85, 0.6);
  color: #e5e7eb;
  padding: 1.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  outline: none;
  resize: vertical;
  transition: all 0.3s ease;
}

.admin-textarea:focus {
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: #010a1a;
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(51, 65, 85, 0.5);
}

.admin-form-actions .btn-primary,
.admin-form-actions .btn-ghost {
  margin: 0;
}

.admin-status {
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(51, 65, 85, 0.5);
}

.admin-status i {
  font-size: 0.85rem;
}

.admin-success {
  color: #86efac;
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
}

.admin-success i {
  color: #22c55e;
}

.admin-error {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
}

.admin-error i {
  color: #ef4444;
}

@media (max-width: 768px) {
  .admin-main {
    padding: 1.5rem;
  }

  .admin-header {
    flex-direction: column;
    gap: 1rem;
  }

  .admin-header-icon {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }

  .admin-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-form-actions .btn-primary,
  .admin-form-actions .btn-ghost {
    width: 100%;
    justify-content: center;
  }
}

/* ========== Server Monitoring Panel ========== */
.server-monitoring-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1rem;
}

.server-loading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem;
  color: #94a3b8;
  font-size: 1rem;
}

.server-loading i {
  font-size: 1.5rem;
  color: #3b82f6;
}

.server-card {
  border-radius: 16px;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
  border: 1px solid rgba(51, 65, 85, 0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.server-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(249, 115, 22, 0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.server-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

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

.server-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
  margin-bottom: 0.25rem;
}

.server-card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.server-flag {
  width: 24px;
  height: 18px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.server-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e5e7eb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  flex-shrink: 0;
}

.server-status.online {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.server-status.offline {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.server-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.server-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  position: relative;
  z-index: 1;
  min-height: 72px;
}

.server-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.server-info-label {
  font-size: 0.7rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.server-info-label i {
  font-size: 0.65rem;
  color: #64748b;
  flex-shrink: 0;
}

.server-info-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e5e7eb;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  flex-wrap: nowrap;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-info-unit {
  font-size: 0.7rem;
  font-weight: 400;
  color: #94a3b8;
  white-space: nowrap;
}

.server-progress {
  position: relative;
  z-index: 1;
}

.server-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.3rem;
  font-size: 0.7rem;
  color: #cbd5e1;
}

.server-progress-label i {
  font-size: 0.65rem;
  margin-right: 0.25rem;
}

.server-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(51, 65, 85, 0.5);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.server-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.server-progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.server-progress-fill.warning {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.server-progress-fill.danger {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.server-charts {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
  position: relative;
  z-index: 1;
  overflow-x: auto;
  overflow-y: hidden;
  /* 平滑滚动 */
  scroll-behavior: smooth;
  /* 默认隐藏滚动条（Firefox） */
  scrollbar-width: none;
  /* 默认隐藏滚动条（Webkit浏览器） */
  -ms-overflow-style: none;
}

/* 当需要滚动时显示滚动条 */
.server-charts.scrollable {
  padding-bottom: 4px;
  /* 显示滚动条（Firefox） */
  scrollbar-width: thin;
  scrollbar-color: rgba(59, 130, 246, 0.5) rgba(15, 23, 42, 0.4);
  /* 显示滚动条（Webkit浏览器） */
  -ms-overflow-style: auto;
}

/* Webkit浏览器滚动条样式（仅在需要滚动时显示） */
.server-charts.scrollable::-webkit-scrollbar {
  height: 6px;
}

.server-charts.scrollable::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.4);
  border-radius: 3px;
  margin: 0 2px;
}

.server-charts.scrollable::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.5), rgba(37, 99, 235, 0.6));
  border-radius: 3px;
  transition: background 0.3s ease;
  border: 1px solid rgba(15, 23, 42, 0.2);
}

.server-charts.scrollable::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.7), rgba(37, 99, 235, 0.8));
  box-shadow: 0 0 4px rgba(59, 130, 246, 0.4);
}

.server-chart-container {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 8px;
  padding: 0.5rem;
  border: 1px solid rgba(51, 65, 85, 0.3);
  transition: all 0.3s ease;
  flex: 0 0 auto;
  min-width: 120px;
  width: calc(25% - 0.375rem);
}

.server-chart-container:hover {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.server-chart-title {
  font-size: 0.65rem;
  color: #94a3b8;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem;
}

.server-chart-title i {
  font-size: 0.6rem;
  color: #64748b;
  flex-shrink: 0;
}

.server-chart-title span:not(.server-chart-value) {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-chart-value {
  font-size: 0.7rem;
  font-weight: 600;
  color: #60a5fa;
  flex-shrink: 0;
}

.server-chart-canvas {
  width: 100%;
  height: 70px;
  display: block;
  max-width: 100%;
  object-fit: contain;
}

/* 服务器更新错误提示横幅（不影响现有数据显示） */
.server-update-error-banner {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fca5a5;
  font-size: 0.85rem;
  animation: slideDown 0.3s ease-out;
}

.server-update-error-banner i {
  color: #ef4444;
  font-size: 0.9rem;
}

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

.server-error {
  grid-column: 1 / -1;
  padding: 2rem;
  text-align: center;
  color: #f87171;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 16px;
}

.server-error i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

@media (max-width: 1024px) {
  .server-chart-container {
    width: calc(50% - 0.25rem);
    min-width: 140px;
  }
}

@media (max-width: 768px) {
  .server-monitoring-container {
    grid-template-columns: 1fr;
  }
  
  .server-chart-container {
    width: calc(50% - 0.25rem);
    min-width: 140px;
  }
  
  .server-chart-canvas {
    height: 80px;
  }
}

@media (max-width: 480px) {
  .server-chart-container {
    width: 100%;
    min-width: 100%;
  }
  
  .server-chart-canvas {
    height: 90px;
  }
}
