/* ===================================
   Splatoon 3 Hub - 官方风格增强样式
   基于任天堂官方网站设计
   =================================== */

/* 官方风格Hero区域 */
.official-hero {
  position: relative;
  min-height: auto;
  padding: 60px 0;
  background: #000;
  overflow: hidden;
  width: 100%;
}

.official-hero .hero-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.official-hero-kv {
  position: absolute;
  inset: 0;
  background: url('../assets/images/official/hero/kv.jpg') no-repeat center center;
  background-size: cover;
  background-position: center;
  transform: rotate(-6deg) scale(1.5);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.official-hero.is-loaded .official-hero-kv {
  opacity: 1;
  transform: rotate(0deg) scale(1.05);
}

.official-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 60px;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.official-hero-logo {
  position: absolute;
  left: 2vw;
  bottom: 8vw;
  width: 45vw;
  max-width: 800px;
  opacity: 0;
  transform: scale(1.3);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.5s;
}

.official-hero.is-loaded .official-hero-logo {
  opacity: 1;
  transform: scale(1);
}

/* 官方风格导航 */
.official-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease;
}

.official-nav.scrolled {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.official-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.official-nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.official-nav-logo img {
  height: 40px;
  width: auto;
}

/* Grizzco Badge 特殊样式 */
.official-nav-logo .grizzco-badge {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(243, 152, 0, 0.6));
  transition: all 0.3s ease;
}

.official-nav-logo .grizzco-badge:hover {
  filter: drop-shadow(0 0 12px rgba(243, 152, 0, 0.9));
  transform: scale(1.05) rotate(5deg);
}

.official-nav-logo span {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.official-nav-menu {
  display: flex;
  gap: 20px;
  list-style: none;
}

.official-nav-menu a {
  position: relative;
  padding: 10px 16px;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: color 0.2s ease;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.official-nav-menu a:hover,
.official-nav-menu a.active {
  color: #fff;
}

.official-nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--splat-magenta);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.official-nav-menu a:hover::after,
.official-nav-menu a.active::after {
  width: 80%;
}

/* 官方风格卡片 */
.official-card {
  background: linear-gradient(135deg, rgba(107, 44, 145, 0.4), rgba(230, 0, 126, 0.3));
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.95);
}

/* 霓虹发光效果 */
.official-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, var(--neon-pink), var(--neon-cyan), var(--neon-yellow));
  border-radius: calc(var(--border-radius-lg) + 2px);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.official-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--splat-magenta), var(--splat-cyan), var(--splat-yellow));
  transform: scaleX(0);
  transition: transform 0.3s ease;
  z-index: 1;
}

.official-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(230, 0, 126, 0.3);
  border-color: rgba(255, 255, 255, 0.3);
}

.official-card:hover::before {
  opacity: 1;
  animation: neonGlow 1.5s ease-in-out infinite;
}

.official-card:hover::after {
  transform: scaleX(1);
}

@keyframes neonGlow {
  0%, 100% { filter: blur(0px); }
  50% { filter: blur(2px); }
}

/* 涂鸦装饰元素 */
.grunge-stamp {
  position: absolute;
  pointer-events: none;
  opacity: 0.15;
}

/* 官方风格按钮 */
.official-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--splat-magenta), var(--splat-purple));
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.official-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--splat-cyan), var(--splat-magenta));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.official-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 40px rgba(230, 0, 126, 0.4);
}

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

.official-btn span {
  position: relative;
  z-index: 1;
}

/* 官方风格模式图标 */
.mode-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.mode-item {
  position: relative;
  aspect-ratio: 1;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mode-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.mode-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(230, 0, 126, 0.4);
}

.mode-item:hover img {
  transform: scale(1.1);
}

.mode-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.mode-item-name {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

/* 官方风格新闻区域 */
.official-news {
  background: url('../assets/images/official/hero/bg_news.png') repeat-y center top;
  background-size: 100% auto;
  padding: 60px 20px;
  margin-top: -100px;
  position: relative;
}

.official-news-inner {
  max-width: 800px;
  margin: 0 auto;
}

.official-news-title {
  font-size: 32px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 40px;
  background: linear-gradient(135deg, var(--splat-yellow), var(--splat-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.official-news-item {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.official-news-item:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: var(--splat-magenta);
  transform: translateX(8px);
}

.official-news-date {
  color: var(--splat-cyan);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.official-news-text {
  color: rgba(255, 255, 255, 0.95);
  font-size: 16px;
  line-height: 1.6;
}

/* 官方风格页脚 */
.official-footer {
  background: #000;
  border-top: 4px solid var(--splat-magenta);
  padding: 60px 20px 30px;
  margin-top: 80px;
}

.official-footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.official-footer-section h4 {
  color: var(--splat-cyan);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.official-footer-links {
  list-style: none;
}

.official-footer-links li {
  margin-bottom: 12px;
}

.official-footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s ease;
}

.official-footer-links a:hover {
  color: var(--splat-pink);
}

.official-footer-bottom {
  text-align: center;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
}

/* 响应式 */
@media (max-width: 1023px) {
  .mode-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .official-footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .official-hero-logo {
    width: 80vw;
    bottom: 15vw;
  }

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

  .official-nav-menu {
    display: none;
  }

  .official-footer-content {
    grid-template-columns: 1fr;
  }
}

/* 加载动画增强 */
.loader-ink {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.loader-ink-logo {
  width: 200px;
  animation: logoBounce 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes logoBounce {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(10deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.loader-ink-bar {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin-top: 20px;
  overflow: hidden;
}

.loader-ink-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--splat-magenta), var(--splat-cyan), var(--splat-yellow));
  border-radius: 2px;
  animation: loadingProgress 2s ease-in-out infinite;
}

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

/* 墨汁飞溅效果 */
.ink-splash {
  position: absolute;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, var(--splat-magenta), transparent);
  border-radius: 50%;
  animation: splashAnim 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes splashAnim {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(10);
    opacity: 0;
  }
}
