/* 韩国漫画站样式 */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 韩国元素背景 */
.korean-element {
  position: absolute;
  width: 12px;
  height: 12px;
  background: linear-gradient(45deg, #dc2626, #ec4899, #8b5cf6);
  border-radius: 50%;
  animation: koreanFloat 10s ease-in-out infinite;
  opacity: 0.8;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.korean-element:nth-child(1) {
  top: 5%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 8s;
  background: linear-gradient(45deg, #dc2626, #ec4899);
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.korean-element:nth-child(2) {
  top: 15%;
  left: 85%;
  animation-delay: 1s;
  animation-duration: 9s;
  background: linear-gradient(45deg, #ec4899, #8b5cf6);
  width: 16px;
  height: 16px;
  border-radius: 8px;
}

.korean-element:nth-child(3) {
  top: 65%;
  left: 15%;
  animation-delay: 2s;
  animation-duration: 7s;
  background: linear-gradient(45deg, #8b5cf6, #2563eb);
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.korean-element:nth-child(4) {
  top: 75%;
  left: 75%;
  animation-delay: 3s;
  animation-duration: 10s;
  background: linear-gradient(45deg, #2563eb, #14b8a6);
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.korean-element:nth-child(5) {
  top: 25%;
  left: 55%;
  animation-delay: 4s;
  animation-duration: 6s;
  background: linear-gradient(45deg, #14b8a6, #dc2626);
  width: 14px;
  height: 14px;
  border-radius: 7px;
}

.korean-element:nth-child(6) {
  top: 85%;
  left: 90%;
  animation-delay: 5s;
  animation-duration: 8s;
  background: linear-gradient(45deg, #dc2626, #ec4899);
  width: 14px;
  height: 14px;
  border-radius: 7px;
}

.korean-element:nth-child(7) {
  top: 35%;
  left: 20%;
  animation-delay: 6s;
  animation-duration: 9s;
  background: linear-gradient(45deg, #ec4899, #8b5cf6);
  width: 12px;
  height: 12px;
  border-radius: 6px;
}

.korean-element:nth-child(8) {
  top: 95%;
  left: 45%;
  animation-delay: 7s;
  animation-duration: 7s;
  background: linear-gradient(45deg, #8b5cf6, #2563eb);
  width: 12px;
  height: 12px;
  border-radius: 6px;
}

.korean-element:nth-child(9) {
  top: 10%;
  left: 65%;
  animation-delay: 8s;
  animation-duration: 8s;
  background: linear-gradient(45deg, #2563eb, #14b8a6);
  width: 16px;
  height: 16px;
  border-radius: 8px;
}

.korean-element:nth-child(10) {
  top: 55%;
  left: 80%;
  animation-delay: 9s;
  animation-duration: 9s;
  background: linear-gradient(45deg, #14b8a6, #dc2626);
  width: 16px;
  height: 16px;
  border-radius: 8px;
}

@keyframes koreanFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.8;
  }
  25% {
    transform: translateY(-25px) rotate(90deg);
    opacity: 1;
  }
  50% {
    transform: translateY(-50px) rotate(180deg);
    opacity: 0.9;
  }
  75% {
    transform: translateY(-25px) rotate(270deg);
    opacity: 1;
  }
}

/* 3D韩国太极图展示 */
.korean-symbol-container {
  perspective: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

.korean-symbol {
  position: relative;
  width: 150px;
  height: 150px;
  transform-style: preserve-3d;
  animation: koreanRotate 25s linear infinite;
}

.symbol-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, #dc2626, #ec4899, #8b5cf6);
  border-radius: 20px;
  transform: translate(-50%, -50%);
  box-shadow: 
    0 0 40px rgba(220, 38, 38, 0.6),
    inset 0 0 40px rgba(236, 72, 153, 0.4);
  animation: koreanPulse 4s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  color: white;
}

.symbol-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 2px solid transparent;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: koreanRingRotate 18s linear infinite;
}

.ring-1 {
  width: 100px;
  height: 100px;
  border-top-color: #dc2626;
  border-right-color: #dc2626;
  animation-duration: 12s;
}

.ring-2 {
  width: 120px;
  height: 120px;
  border-bottom-color: #ec4899;
  border-left-color: #ec4899;
  animation-duration: 18s;
  animation-direction: reverse;
}

.ring-3 {
  width: 140px;
  height: 140px;
  border-top-color: #8b5cf6;
  border-bottom-color: #8b5cf6;
  animation-duration: 24s;
}

.symbol-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, transparent 40%, rgba(220, 38, 38, 0.1) 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: koreanGlowPulse 5s ease-in-out infinite;
}

.symbol-sparkle {
  position: absolute;
  font-size: 18px;
  animation: koreanSparkleFloat 7s ease-in-out infinite;
}

.sparkle-1 {
  top: 8%;
  left: 18%;
  animation-delay: 0s;
}

.sparkle-2 {
  top: 18%;
  right: 12%;
  animation-delay: 1.5s;
}

.sparkle-3 {
  bottom: 22%;
  left: 8%;
  animation-delay: 3s;
}

.sparkle-4 {
  bottom: 12%;
  right: 18%;
  animation-delay: 4.5s;
}

.sparkle-5 {
  top: 50%;
  right: 2%;
  animation-delay: 6s;
}

@keyframes koreanRotate {
  0% {
    transform: rotateY(0deg) rotateX(0deg);
  }
  100% {
    transform: rotateY(360deg) rotateX(360deg);
  }
}

@keyframes koreanPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 
      0 0 40px rgba(220, 38, 38, 0.6),
      inset 0 0 40px rgba(236, 72, 153, 0.4);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 
      0 0 60px rgba(220, 38, 38, 0.8),
      inset 0 0 60px rgba(236, 72, 153, 0.6);
  }
}

@keyframes koreanRingRotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes koreanGlowPulse {
  0%, 100% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1.3);
  }
}

@keyframes koreanSparkleFloat {
  0%, 100% {
    transform: translateY(0px) scale(1);
    opacity: 0.8;
  }
  25% {
    transform: translateY(-18px) scale(1.3);
    opacity: 1;
  }
  50% {
    transform: translateY(-35px) scale(0.9);
    opacity: 0.9;
  }
  75% {
    transform: translateY(-18px) scale(1.2);
    opacity: 1;
  }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #dc2626, #ec4899);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #b91c1c, #db2777);
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* 悬停效果增强 */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.15);
}

/* 渐变文字效果 */
.gradient-text {
  background: linear-gradient(45deg, #dc2626, #ec4899, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 按钮波纹效果 */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-ripple:hover::before {
  width: 300px;
  height: 300px;
}

/* 卡片悬停效果 */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(220, 38, 38, 0.1);
}

/* 韩国发光效果 */
.korean-glow-effect {
  position: relative;
}

.korean-glow-effect::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #dc2626, #ec4899, #8b5cf6, #2563eb);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.korean-glow-effect:hover::before {
  opacity: 0.8;
  animation: koreanGlowPulse 2s ease-in-out infinite;
}

@keyframes koreanGlowPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

/* 响应式优化 */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .text-3xl {
    font-size: 1.875rem;
  }
  
  .text-4xl {
    font-size: 2.25rem;
  }
  
  .korean-symbol {
    width: 120px;
    height: 120px;
  }
  
  .symbol-core {
    width: 60px;
    height: 60px;
    font-size: 16px;
  }
  
  .ring-1 {
    width: 80px;
    height: 80px;
  }
  
  .ring-2 {
    width: 100px;
    height: 100px;
  }
  
  .ring-3 {
    width: 120px;
    height: 120px;
  }
}

/* 加载动画 */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 表单样式增强 */
.form-input:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* 导航栏滚动效果 */
.navbar-scrolled {
  backdrop-filter: blur(10px);
  background: rgba(220, 38, 38, 0.95);
}

/* 图标动画 */
@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0, 0, 0);
  }
  40%, 43% {
    transform: translate3d(0, -8px, 0);
  }
  70% {
    transform: translate3d(0, -4px, 0);
  }
  90% {
    transform: translate3d(0, -2px, 0);
  }
}

.animate-bounce-slow {
  animation: bounce 2s infinite;
}

/* 渐变边框效果 */
.gradient-border {
  position: relative;
  background: white;
  border-radius: 0.5rem;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  background: linear-gradient(45deg, #dc2626, #ec4899, #8b5cf6);
  border-radius: inherit;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

/* 文字打字机效果 */
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

.typewriter {
  overflow: hidden;
  border-right: 2px solid #dc2626;
  white-space: nowrap;
  animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: #dc2626; }
}

/* 3D 卡片效果 */
.card-3d {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.card-3d:hover {
  transform: rotateY(5deg) rotateX(5deg);
}

/* 背景粒子效果增强 */
.particles-enhanced {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

/* 进度条动画 */
.progress-bar {
  position: relative;
  background: #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #dc2626, #ec4899);
  border-radius: inherit;
  transition: width 1s ease-in-out;
}

/* 模态框样式 */
.modal-overlay {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 工具提示 */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.tooltip:hover::after {
  opacity: 1;
}

/* 加载骨架屏 */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

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

/* 无障碍优化 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 焦点样式 */
.focus-visible:focus {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

/* 打印样式 */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .bg-gradient-to-r {
    background: #dc2626 !important;
  }
}