/* ========== Hero Section ========== */
.hero-section {
  position: relative;
}

.hero-card {
  padding: var(--card-padding);
  background: linear-gradient(135deg, #E3F2FD 0%, #B3E5FC 50%, #81D4FA 100%);
  position: relative;
  overflow: hidden;
}

.hero-content-right {
  position: absolute;
  right: 60px;
  bottom: 0;
  width: 320px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.hero-content-right img {
  max-height: 420px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
  animation: heroFloat 4s ease-in-out infinite;
}

.hero-deco-circle {
  position: absolute;
  border-radius: 50%;
  animation: floatCircle 8s ease-in-out infinite;
}

.hero-deco-circle.top-right {
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.4);
}

.hero-deco-circle.bottom-left {
  bottom: -60px;
  left: -60px;
  width: 220px;
  height: 220px;
  background: rgba(255, 255, 255, 0.3);
  animation-delay: -3s;
}

.hero-deco-circle.mid {
  top: 25%;
  left: 8%;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.2);
  animation-delay: -5s;
}

@keyframes floatCircle {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(12px, -18px); }
  66% { transform: translate(-8px, 10px); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

.hero-content-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content-right {
  width: 320px;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.hero-content-right img {
  max-height: 360px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
  animation: heroFloat 4s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-title {
  font-size: 36px;
  color: var(--primary-dark);
  margin-bottom: 10px;
  font-weight: 800;
}

.brand-highlight {
  background: linear-gradient(135deg, var(--primary-dark), #0277BD);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-typing {
  font-size: 17px;
  color: var(--text-light);
  margin-bottom: 24px;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.typing-cursor {
  display: inline-block;
  color: var(--primary);
  font-weight: 300;
  animation: cursorBlink 1s step-end infinite;
  margin-left: 2px;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 28px;
  font-size: 16px;
  color: var(--text);
}

.hero-stats strong {
  font-size: 28px;
  color: var(--primary-dark);
  font-weight: 800;
}

.hero-btn {
  font-size: 16px;
  padding: 14px 40px;
  border-radius: 12px;
}

.hero-hint {
  font-size: 16px;
  color: var(--text-light);
  margin-top: 16px;
  line-height: 1.7;
}

.scroll-hint {
  margin-top: 24px;
  font-size: 22px;
  color: var(--text-light);
  opacity: 0.5;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ========== Features Row ========== */
.features-row {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-dark);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(77, 182, 232, 0.2);
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.feature-chip .feature-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.feature-chip:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(77, 182, 232, 0.2);
}

.feature-chip .emoji {
  font-size: 16px;
}

/* ========== Section Spacing ========== */
.section-characters {
  margin-top: 32px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 16px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(77,182,232,0.3);
}

.view-all-link:hover {
  box-shadow: 0 4px 16px rgba(77,182,232,0.4);
  transform: translateY(-1px);
}

.section-support {
  margin-top: 48px;
}

/* ========== Skeleton Loading ========== */
.skeleton-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.skeleton-avatar {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
}

.skeleton-info {
  padding: var(--card-padding);
}

.skeleton-line {
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
  margin-bottom: 10px;
}

.skeleton-line:last-child {
  margin-bottom: 0;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========== Card Enhancements ========== */
.ai-card {
  position: relative;
}

.ai-card .avatar-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.ai-card:hover .avatar-wrap::after {
  opacity: 1;
}

.ai-card:hover .name {
  color: var(--primary);
  transition: color 0.3s ease;
}

.ai-grid-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: var(--text-light);
}

.live2d-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 6px var(--primary-glow);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ========== Live2D in Index Cards ========== */
.live2d-canvas-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  z-index: 1;
}

.live2d-canvas-wrap canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.live2d-canvas-wrap.loaded {
  opacity: 1;
  pointer-events: auto;
}

.live2d-canvas-wrap.loaded ~ img {
  opacity: 0;
}

.live2d-canvas-wrap .live2d-loading-bar {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 10px;
  pointer-events: none;
}

.live2d-canvas-wrap .live2d-loading-bar .spinner {
  width: 10px;
  height: 10px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.placeholder-card {
  cursor: default;
}

.placeholder-avatar {
  background: linear-gradient(135deg, rgba(227, 242, 253, 0.6), rgba(187, 222, 251, 0.4));
}

.placeholder-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px dashed var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.placeholder-circle span {
  font-size: 28px;
  color: var(--primary);
}

.placeholder-name {
  color: var(--text-light);
}

.like-count-wrap {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: transform 0.2s;
  user-select: none;
}

.like-count-wrap:not([style*="cursor: default"]):hover {
  transform: scale(1.1);
}

.like-count-wrap.animate {
  animation: heartBeat 0.5s ease;
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  25% { transform: scale(1.3); }
  50% { transform: scale(1); }
  75% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* ========== Hero Right Panel (Announcements) ========== */
.hero-announcements {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  z-index: 2;
}

.hero-announcements .section-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.announcement-card {
  background: rgba(255,255,255,0.85);
  border-radius: 10px;
  padding: 12px 14px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(77,182,232,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
  opacity: 0;
  transform: translateX(20px);
  animation: annSlideIn 0.4s ease forwards;
  cursor: pointer;
}

.announcement-card:nth-child(2) { animation-delay: 0.12s; }
.announcement-card:nth-child(3) { animation-delay: 0.24s; }
.announcement-card:nth-child(4) { animation-delay: 0.36s; }

@keyframes annSlideIn {
  to { opacity: 1; transform: translateX(0); }
}

.announcement-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(77,182,232,0.15);
}

.announcement-card .ann-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.announcement-card .ann-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.announcement-card .ann-type {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  flex-shrink: 0;
}

.ann-type.update { background: #E3F2FD; color: #1565C0; }
.ann-type.notice { background: #FFF3E0; color: #E65100; }
.ann-type.event  { background: #E8F5E9; color: #2E7D32; }

.announcement-card .ann-content {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.announcement-card .ann-date {
  font-size: 11px;
  color: #bbb;
  margin-top: 4px;
}

.hero-announcements .view-more-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  margin-top: 2px;
  transition: color 0.2s;
}

.hero-announcements .view-more-link:hover {
  color: var(--primary-dark);
}

/* ========== Features Section ========== */
.section-features {
  margin-top: 32px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
  opacity: 0;
  transform: translateY(16px);
  animation: cardFadeUp 0.5s ease forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.18s; }
.feature-card:nth-child(3) { animation-delay: 0.26s; }
.feature-card:nth-child(4) { animation-delay: 0.34s; }
.feature-card:nth-child(5) { animation-delay: 0.42s; }
.feature-card:nth-child(6) { animation-delay: 0.5s; }

@keyframes cardFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(77,182,232,0.18);
}

.feature-card .feature-icon-lg {
  font-size: 36px;
  margin-bottom: 10px;
  line-height: 1;
}

.feature-card .feature-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.feature-card .feature-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
}

/* ========== Support / Donate Section ========== */
.support-card {
  padding: var(--card-padding);
  background: linear-gradient(135deg, #E1F5FE, #B3E5FC);
  position: relative;
  overflow: hidden;
}

.support-inner {
  position: relative;
  z-index: 1;
}

.support-top {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.support-info {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.support-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.support-header .emoji {
  font-size: 26px;
}

.support-header h2 {
  font-size: 24px;
  color: var(--primary-dark);
  margin: 0;
  font-weight: 700;
}

.support-desc {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
}

.support-subcards {
  display: flex;
  gap: var(--card-gap);
  flex-wrap: wrap;
}

.subcard {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  flex: 1;
  min-width: 140px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.subcard .title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.subcard .desc {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.5;
}

.contact-box {
  background: #fff;
  border-radius: 12px;
  padding: var(--card-padding);
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 200px;
  align-self: stretch;
}

.contact-box .title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.contact-box .desc {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 14px;
}

.contact-email {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(77, 182, 232, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-email:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(77, 182, 232, 0.4);
}

.support-bottom {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.donate-box {
  background: #fff;
  border-radius: 12px;
  padding: var(--card-padding);
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.donate-box .title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 14px;
}

.qrcode-wrap {
  width: 140px;
  height: 140px;
  background: var(--bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--primary-light);
  overflow: hidden;
}

.qrcode-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.donate-box .thanks {
  font-size: 16px;
  color: var(--text-light);
  margin-top: 12px;
}

/* Footer styles moved to style.css */

/* ========== Scroll Reveal ========== */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate="fade-left"] {
  transform: translateX(-30px);
}

[data-animate="fade-right"] {
  transform: translateX(30px);
}

[data-animate="scale"] {
  transform: scale(0.92);
}

[data-animate].revealed {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* ========== Character Tags in Grid ========== */
.ai-card .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .hero-content-right {
    right: 20px;
  }
  .hero-content-right img {
    max-height: 300px;
  }
  .hero-announcements {
    position: static;
    transform: none;
    width: 100%;
    text-align: center;
    margin-top: 16px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .features-grid > * {
    min-width: 0;
  }

  .support-subcards {
    flex-direction: column;
  }
  .subcard {
    min-width: 0;
  }
  .donate-box {
    margin: 0 auto;
  }
  .hero-announcements {
    position: static;
    transform: none;
    width: 100%;
    text-align: center;
    margin-top: 16px;
  }
}
