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

.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-bar {
  width: 200px;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.loader-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: loader-shimmer 1.5s infinite;
}

.loader-text {
  color: #fff;
  font-size: 14px;
  margin-top: 20px;
  letter-spacing: 3px;
  animation: pulse 1.5s infinite;
}

@keyframes loader-shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

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

@page {
  size: A4;
  margin: 0;
}

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

@keyframes float-particle {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-20px) translateX(10px);
    opacity: 1;
  }
}

@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.8);
  }
}

@keyframes rotate-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes wave {
  0%, 100% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(3deg);
  }
}

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(220, 38, 38, 0.4); }
  50% { box-shadow: 0 0 40px rgba(220, 38, 38, 0.7); }
}

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

@keyframes border-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-10deg);
  }
  to {
    opacity: 1;
    transform: rotate(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

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

body {
  font-family: 'Microsoft YaHei', 'PingFang SC', -apple-system, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 50%, #f0f4f8 100%);
  background-attachment: fixed;
  background-size: 400% 400%;
  animation: gradient-shift 15s ease infinite;
  color: #333;
  line-height: 1.6;
  padding: 20px;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.resume-container {
  display: flex;
  max-width: 1200px;
  margin: 30px auto;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,.15), 0 0 100px rgba(30, 58, 138, 0.1);
  overflow: hidden;
  position: relative;
  border-radius: 20px;
}

.resume-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #dc2626, #ef4444, #f97316, #dc2626);
  background-size: 300% 100%;
  animation: shimmer 4s linear infinite;
  border-radius: 16px 16px 0 0;
}

.sidebar {
  width: 340px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #1e3a8a 0%, #1e40af 30%, #2563eb 70%, #3b82f6 100%);
  color: #fff;
  padding: 30px 25px;
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 20px 0 0 20px;
}

.sidebar::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite;
}

.sidebar::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -30%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 60%);
  animation: float 10s ease-in-out infinite reverse;
}

.avatar-wrapper {
  text-align: center;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.avatar {
  width: 140px;
  height: 170px;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,.9);
  box-shadow: 0 10px 30px rgba(0,0,0,.4), 0 0 0 2px rgba(255,255,255,.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
}

.avatar:hover {
  transform: scale(1.08) rotate(2deg);
  box-shadow: 0 15px 45px rgba(0,0,0,.5), 0 0 40px rgba(59, 130, 246, 0.4);
}

.name-section {
  text-align: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,.2);
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.name {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 5px;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #fff, #e0e7ff, #c7d2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: scaleIn 0.8s ease-out;
  text-shadow: 0 0 30px rgba(255,255,255,0.3);
}

.title {
  font-size: 14px;
  color: rgba(255,255,255,.85);
  letter-spacing: 3px;
  font-weight: 500;
}

.sidebar-section {
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.sidebar-title {
  font-size: 14px;
  font-weight: 700;
  color: #ff6b6b;
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 4px solid #ff6b6b;
  position: relative;
  transition: all 0.3s ease;
}

.sidebar-title::after {
  content: '';
  position: absolute;
  left: -4px;
  top: 50%;
  width: 8px;
  height: 8px;
  background: #ff6b6b;
  border-radius: 50%;
  transform: translateY(-50%) translateX(-10px);
  opacity: 0;
  transition: all 0.3s ease;
}

.sidebar-section:hover .sidebar-title::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.info-list {
  padding-left: 12px;
}

.info-item {
  display: flex;
  font-size: 12.5px;
  line-height: 2.1;
  padding: 5px 0;
  transition: all 0.3s ease;
}

.info-item:hover {
  transform: translateX(8px);
  padding-left: 10px;
}

.info-label {
  color: rgba(255,255,255,.6);
  min-width: 50px;
  font-weight: 500;
}

.info-value {
  color: rgba(255,255,255,.98);
}

.contact-link {
  color: rgba(255,255,255,.95);
  text-decoration: none;
  position: relative;
}

.contact-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ff6b6b;
  transition: width 0.3s ease;
}

.contact-link:hover {
  color: #fff;
}

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

.summary-text {
  font-size: 12px;
  line-height: 1.8;
  color: rgba(255,255,255,.88);
  padding-left: 12px;
  text-align: justify;
  background: rgba(255,255,255,.06);
  padding: 15px;
  border-radius: 10px;
  border-left: 4px solid #ff6b6b;
}

.qr-code {
  padding-left: 12px;
  margin-top: 12px;
}

.qr-img {
  width: 125px;
  height: 125px;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,.6);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.qr-img:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}

.main-content {
  flex: 1;
  padding: 0;
  position: relative;
  border-radius: 0 20px 20px 0;
}

.content-section {
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.content-section::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #dc2626, #ef4444, #f97316);
  transform: scaleY(0);
  transition: transform 0.4s ease;
}

.content-section:hover::before {
  transform: scaleY(1);
}

.content-section:hover {
  background: linear-gradient(90deg, #fef2f2 0%, #fff 15%);
}

.content-section.collapsed .section-body {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  transform: scaleY(0.95);
}

.section-header {
  background: linear-gradient(90deg, #dc2626 0%, #ef4444 50%, #f97316 100%);
  background-size: 200% 100%;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.section-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.8s ease;
}

.content-section:hover .section-header::before {
  transform: translateX(100%);
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  text-shadow: 0 1px 3px rgba(0,0,0,.3);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255,255,255,.5);
}

.expand-icon {
  font-size: 16px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: rgba(255,255,255,.95);
  text-shadow: 0 1px 2px rgba(0,0,0,.2);
}

.section-body {
  padding: 22px 28px;
  max-height: 2000px;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, padding 0.4s ease, transform 0.4s ease;
}

.edu-item {
  margin-bottom: 22px;
  padding: 20px;
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  border-radius: 14px;
  border-left: 5px solid #1e3a8a;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.edu-item:hover {
  background: #fff;
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
  transform: translateX(8px) translateY(-2px);
}

.edu-header {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 12px;
}

.edu-school {
  font-weight: 700;
  color: #1e3a8a;
  font-size: 15px;
}

.edu-major {
  font-weight: 600;
  color: #333;
  font-size: 13px;
}

.edu-date {
  color: #666;
  font-size: 12.5px;
}

.edu-detail {
  font-size: 12.5px;
  color: #444;
  line-height: 1.7;
  padding-left: 8px;
  text-align: justify;
}

.award-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.award-item {
  display: flex;
  align-items: flex-start;
  font-size: 12.5px;
  line-height: 1.7;
  padding: 12px 15px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #f0f0f0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.award-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  background: #dc2626;
  border-radius: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.3s ease;
}

.award-item:hover {
  background: #fef2f2;
  border-color: #fecaca;
  transform: translateX(10px);
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.1);
}

.award-item:hover::before {
  opacity: 1;
}

.award-dot {
  color: #dc2626;
  font-weight: 700;
  margin-right: 12px;
  margin-top: 4px;
  font-size: 13px;
}

.award-text {
  color: #333;
  flex: 1;
}

.tag {
  color: #dc2626;
  font-weight: 700;
  font-size: 11px;
  margin-left: 8px;
  padding: 3px 10px;
  background: #fef2f2;
  border-radius: 12px;
}

.exp-item {
  margin-bottom: 22px;
  padding: 22px;
  background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,.07);
  border: 1px solid #f0f0f0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.exp-item:last-child {
  margin-bottom: 0;
}

.exp-item:hover {
  box-shadow: 0 14px 45px rgba(0,0,0,.15);
  transform: translateY(-6px);
  border-color: #1e3a8a;
}

.exp-header {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 10px;
}

.exp-company {
  font-weight: 700;
  color: #1e3a8a;
  font-size: 15px;
}

.exp-position {
  color: #dc2626;
  font-weight: 600;
  font-size: 13px;
}

.exp-date {
  color: #666;
  font-size: 12.5px;
}

.exp-desc {
  font-size: 12.5px;
  color: #444;
  line-height: 1.7;
  padding-left: 8px;
}

.proj-item {
  margin-bottom: 22px;
  padding: 24px;
  background: #fff;
  border-radius: 14px;
  border: 2px solid #e5e7eb;
  box-shadow: 0 4px 15px rgba(0,0,0,.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.proj-item:hover {
  border-color: #1e3a8a;
  box-shadow: 0 12px 40px rgba(30, 58, 138, 0.2);
  transform: translateY(-4px);
}

.proj-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.proj-title {
  font-weight: 700;
  color: #1e3a8a;
  font-size: 15px;
}

.proj-tag {
  color: #fff;
  font-weight: 600;
  font-size: 11px;
  padding: 4px 12px;
  background: linear-gradient(135deg, #dc2626, #ef4444);
  border-radius: 15px;
}

.proj-date {
  color: #666;
  font-size: 12.5px;
  margin-bottom: 10px;
}

.proj-desc {
  font-size: 12.5px;
  color: #444;
  line-height: 1.7;
  padding-left: 8px;
  text-align: justify;
}

.skill-section {
  margin-bottom: 18px;
  padding: 15px;
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.skill-section:last-child {
  margin-bottom: 0;
}

.skill-section:hover {
  background: #fff;
  box-shadow: 0 5px 20px rgba(0,0,0,.08);
}

.skill-title {
  font-size: 14px;
  font-weight: 700;
  color: #dc2626;
  margin-bottom: 10px;
}

.skill-desc {
  font-size: 12.5px;
  color: #444;
  line-height: 1.7;
  padding-left: 8px;
}

.skill-desc b {
  color: #1e3a8a;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 0;
}

.skill-tag {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.tag-solid {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #fff;
}

.tag-gradient {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #fff;
}

.skill-tag:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.tag-description-box {
  margin-top: 15px;
  padding: 15px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
}

.tag-description-box.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  max-height: 200px;
}

.tag-desc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #cbd5e1;
}

.tag-desc-title {
  font-size: 14px;
  font-weight: 600;
  color: #1e3a8a;
}

.tag-desc-close {
  width: 24px;
  height: 24px;
  border: none;
  background: #e2e8f0;
  border-radius: 50%;
  font-size: 16px;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tag-desc-close:hover {
  background: #dc2626;
  color: white;
}

.tag-desc-content {
  font-size: 13px;
  line-height: 1.7;
  color: #475569;
  margin: 0;
}

.hobby-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.hobby-item {
  font-size: 14px;
  color: #444;
  padding: 10px 22px;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-radius: 25px;
  border: 1px solid #fecaca;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hobby-item:hover {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  color: #fff;
  border-color: #dc2626;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.view-icon {
  margin-left: 12px;
  font-size: 12px;
  color: #1e3a8a;
  opacity: 0;
  transition: all 0.3s ease;
}

.award-item:hover .view-icon {
  opacity: 1;
}

.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 16px;
  max-width: 90%;
  max-height: 90%;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
  animation: scaleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 45px;
  height: 45px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close:hover {
  background: rgba(220, 38, 38, 0.95);
  transform: rotate(90deg);
}

.modal-prev,
.modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 55px;
  height: 55px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-prev {
  left: 15px;
}

.modal-next {
  right: 15px;
}

.modal-prev:hover,
.modal-next:hover {
  background: rgba(220, 38, 38, 0.95);
  transform: translateY(-50%) scale(1.15);
}

.modal-nav-info {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 20px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
}

.modal-header {
  padding: 18px 28px;
  background: linear-gradient(90deg, #dc2626 0%, #ef4444 100%);
  color: #fff;
}

.modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
}

.modal-body {
  padding: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 70vh;
  overflow: auto;
}

.modal-body img {
  max-width: 100%;
  max-height: 60vh;
  border-radius: 10px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.modal-body img:hover {
  transform: scale(1.03);
}

.modal-footer {
  padding: 18px 28px;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  text-align: center;
}

.modal-btn {
  padding: 12px 35px;
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.5);
}

.skill-progress-list {
  padding: 12px 0;
}

.skill-progress-item {
  margin-bottom: 18px;
}

.skill-progress-item:last-child {
  margin-bottom: 0;
}

.skill-progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.skill-name {
  font-size: 14px;
  font-weight: 600;
  color: #1e3a8a;
}

.skill-percent {
  font-size: 14px;
  font-weight: 700;
  color: #dc2626;
}

.skill-progress-bar {
  height: 12px;
  background: #e5e7eb;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.1);
}

.skill-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #dc2626 0%, #ef4444 50%, #f97316 100%);
  background-size: 200% 100%;
  border-radius: 20px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

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

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
  z-index: 1500;
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-nav.show {
  transform: translateY(0);
}

.top-nav-content {
  max-width: 210mm;
  margin: 0 auto;
  padding: 14px 25px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-item {
  padding: 8px 20px;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  border-radius: 25px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.nav-item:hover {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 15px;
  right: 15px;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #dc2626, #ef4444);
  border-radius: 10px;
  z-index: 1600;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
  transition: all 0.3s ease;
}

.mobile-menu-toggle span {
  width: 22px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
}

.mobile-menu-header {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #fff;
}

.mobile-menu-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}

.mobile-menu-close {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.top-nav.show ~ .mobile-menu-toggle span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.top-nav.show ~ .mobile-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.top-nav.show ~ .mobile-menu-toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1550;
}

.menu-overlay.show {
  display: block;
}

.award-stats {
  display: flex;
  gap: 15px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.stat-item {
  padding: 15px 25px;
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border-radius: 12px;
  text-align: center;
  min-width: 110px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.2);
}

.stat-value {
  font-size: 28px;
  font-weight: 900;
  color: #dc2626;
}

.stat-label {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

@media print {
  body {
    background: #fff;
    padding: 0;
  }
  .resume-container {
    box-shadow: none;
    width: 100%;
    margin: 0;
    border-radius: 0;
  }
  .resume-container::before {
    display: none;
  }
  .sidebar::before,
  .sidebar::after {
    display: none;
  }
  .top-nav {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  body {
    padding: 0;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .top-nav {
    position: fixed;
    top: 0;
    left: auto;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: #fff;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
    z-index: 1600;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    flex-direction: column;
    display: flex;
    transform: none;
    backdrop-filter: none;
  }

  .top-nav.show {
    right: 0;
    transform: none;
  }

  .mobile-menu-header {
    display: flex;
  }

  .top-nav-content {
    padding: 15px;
    overflow-y: auto;
    flex: 1;
  }

  .top-nav-content .nav-item {
    display: block;
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 8px;
    text-align: left;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 14px;
  }

  .top-nav-content .nav-item:hover {
    background: linear-gradient(135deg, #dc2626, #ef4444);
  }

  .resume-container {
    flex-direction: column;
    border-radius: 12px;
    margin: 10px;
  }

  .sidebar {
    width: 100%;
    min-height: auto;
    border-radius: 12px 12px 0 0;
    padding: 20px 15px;
  }

  .avatar-wrapper {
    text-align: center;
    margin-bottom: 15px;
  }

  .avatar {
    width: 100px;
    height: 120px;
  }

  .name {
    font-size: 26px;
    letter-spacing: 3px;
  }

  .title {
    font-size: 12px;
  }

  .sidebar-section {
    margin-bottom: 18px;
  }

  .info-item {
    font-size: 11px;
    line-height: 1.8;
  }

  .summary-text {
    font-size: 11px;
    padding: 12px;
  }

  .qr-img {
    width: 100px;
    height: 100px;
  }

  .top-nav-content {
    padding: 10px 15px;
    gap: 8px;
  }

  .top-nav-content .nav-item {
    padding: 8px 12px;
    font-size: 13px;
  }

  .section-header {
    padding: 10px 15px;
  }

  .section-title {
    font-size: 14px;
    letter-spacing: 1px;
  }

  .section-body {
    padding: 15px;
  }

  .edu-header,
  .exp-header,
  .proj-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .edu-school,
  .exp-company,
  .proj-title {
    font-size: 13px;
  }

  .edu-major,
  .exp-position,
  .proj-tag {
    font-size: 11px;
  }

  .edu-date,
  .exp-date,
  .proj-date {
    font-size: 11px;
  }

  .edu-detail,
  .exp-desc,
  .proj-desc {
    font-size: 11px;
    line-height: 1.6;
  }

  .award-item {
    font-size: 11px;
    padding: 10px 12px;
  }

  .award-dot {
    font-size: 11px;
    margin-right: 8px;
  }

  .tag {
    font-size: 10px;
    padding: 2px 8px;
    margin-left: 5px;
  }

  .view-icon {
    display: none;
  }

  .stat-item {
    min-width: 90px;
    padding: 10px 15px;
  }

  .stat-value {
    font-size: 22px;
  }

  .stat-label {
    font-size: 11px;
  }

  .skill-section {
    padding: 12px;
    margin-bottom: 12px;
  }

  .skill-title {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .skill-desc {
    font-size: 11px;
  }

  .skill-tag {
    padding: 6px 12px;
    font-size: 11px;
  }

  .tag-description-box {
    padding: 12px;
  }

  .tag-desc-title {
    font-size: 12px;
  }

  .tag-desc-content {
    font-size: 11px;
  }

  .skill-progress-header {
    margin-bottom: 5px;
  }

  .skill-name,
  .skill-percent {
    font-size: 12px;
  }

  .hobby-item {
    font-size: 12px;
    padding: 8px 16px;
  }

  .exp-item,
  .edu-item,
  .proj-item {
    padding: 15px;
    margin-bottom: 15px;
  }

  .modal-content {
    max-width: 95%;
    max-height: 85%;
  }

  .modal-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  .modal-prev,
  .modal-next {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .modal-prev {
    left: 8px;
  }

  .modal-next {
    right: 8px;
  }

  .modal-header {
    padding: 12px 18px;
  }

  .modal-header h3 {
    font-size: 14px;
  }

  .modal-body {
    padding: 15px;
    max-height: 60vh;
  }

  .modal-body img {
    max-height: 50vh;
  }

  .modal-footer {
    padding: 12px 18px;
  }

  .modal-btn {
    padding: 10px 28px;
    font-size: 13px;
  }

  .modal-nav-info {
    bottom: 15px;
    padding: 6px 12px;
    font-size: 12px;
  }
}

@media screen and (max-width: 480px) {
  .sidebar {
    padding: 15px 12px;
  }

  .avatar {
    width: 80px;
    height: 100px;
  }

  .name {
    font-size: 22px;
    letter-spacing: 2px;
  }

  .title {
    font-size: 11px;
    letter-spacing: 2px;
  }

  .sidebar-title {
    font-size: 12px;
    padding-left: 10px;
  }

  .info-item {
    font-size: 10px;
    line-height: 1.6;
  }

  .info-label {
    min-width: 40px;
  }

  .summary-text {
    font-size: 10px;
  }

  .qr-img {
    width: 80px;
    height: 80px;
  }

  .section-title {
    font-size: 13px;
  }

  .section-body {
    padding: 12px;
  }

  .edu-item,
  .exp-item,
  .proj-item {
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 10px;
  }

  .edu-school,
  .exp-company,
  .proj-title {
    font-size: 12px;
  }

  .edu-detail,
  .exp-desc,
  .proj-desc {
    font-size: 10px;
  }

  .award-item {
    font-size: 10px;
    padding: 8px 10px;
  }

  .award-dot {
    font-size: 10px;
  }

  .stat-item {
    min-width: 70px;
    padding: 8px 10px;
  }

  .stat-value {
    font-size: 18px;
  }

  .stat-label {
    font-size: 10px;
  }

  .skill-tag {
    padding: 5px 10px;
    font-size: 10px;
  }

  .skill-progress-name {
    font-size: 11px;
  }

  .hobby-item {
    font-size: 11px;
    padding: 6px 12px;
  }

  .modal-content {
    max-width: 98%;
    max-height: 80%;
  }

  .modal-body img {
    max-height: 45vh;
  }
}
