/* ============================================
   ASTteam Vtuber Production - ASVP
   紫色主题 | 亮暗模式 | 简约风格
   ============================================ */

/* ========== CSS 变量 ========== */
:root {
  --bg-primary: #faf7fd;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f5f0fa;
  --text-primary: #2c1b4d;
  --text-secondary: #5e4b73;
  --text-muted: #8b7a9e;
  --border-color: #e0d0f0;
  --purple-primary: #7b3fba;
  --purple-deep: #3a1e6e;
  --purple-light: #e5d5f5;
  --purple-surface: #f0e8f8;
  --shadow-sm: 0 2px 8px rgba(70, 30, 110, 0.06);
  --shadow-md: 0 8px 24px rgba(70, 30, 110, 0.1);
  --header-bg: rgba(255, 255, 255, 0.9);
}

body.dark-mode {
  --bg-primary: #1a1028;
  --bg-secondary: #231836;
  --bg-tertiary: #2d1f42;
  --text-primary: #e8ddf5;
  --text-secondary: #c4b3d9;
  --text-muted: #9a87b0;
  --border-color: #3d2d55;
  --purple-primary: #9b6fd4;
  --purple-deep: #6b4aa0;
  --purple-light: #3d2d55;
  --purple-surface: #2d1f42;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --header-bg: rgba(26, 16, 40, 0.9);
}

/* ========== 全局重置 ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ========== Splash Screen ========== */
.splash-screen {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, #f5f0fa 0%, #e3d4f0 100%);
  z-index: 10000; display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease; opacity: 1;
}
.splash-screen.hide { opacity: 0; pointer-events: none; }
.splash-logo { width: min(400px, 60%); animation: logoGlow 1.6s ease-out forwards; }
.splash-logo img { width: 100%; filter: drop-shadow(0 8px 16px rgba(80, 40, 130, 0.2)); }

@keyframes logoGlow {
  0% { opacity: 0; transform: scale(0.7); filter: blur(6px); }
  40% { opacity: 1; transform: scale(1.05); filter: blur(0); }
  100% { opacity: 1; transform: scale(1); }
}

/* ========== 主容器 ========== */
#Wrap {
  opacity: 0;
  animation: contentFadeIn 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
  animation-delay: 0.2s;
}
@keyframes contentFadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== 头部导航 ========== */
.l-header {
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky; top: 0; z-index: 1000;
  padding: 0.6rem 1.5rem;
  transition: background 0.3s ease;
}

.l-header__inner {
  max-width: 1300px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}

.sitettl img { height: 90px; width: auto; }

.nav_box {
  display: flex; align-items: center; gap: 1.5rem;
}

.nav_list {
  display: flex; gap: 1.5rem;
  font-weight: 600; font-size: 0.9rem; color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.nav_list a {
  position: relative; padding: 0.25rem 0; transition: color 0.2s;
}
.nav_list a:hover { color: var(--purple-primary); }
.nav_list a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--purple-primary); border-radius: 1px;
  transition: width 0.25s ease;
}
.nav_list a:hover::after { width: 100%; }

.nav_actions { display: flex; align-items: center; gap: 0.6rem; }

/* 语言按钮包装器 (相对定位容器) */
.lang_wrapper {
  position: relative;
}

/* 语言按钮 */
.lang_btn {
  background: var(--purple-light); color: var(--purple-deep);
  padding: 0.35rem 0.8rem; border-radius: 20px;
  font-weight: 700; font-size: 0.8rem; cursor: pointer;
  display: flex; align-items: center; gap: 0.3rem;
  user-select: none; transition: background 0.2s;
}
.lang_btn:hover { background: var(--purple-primary); color: #fff; }
.lang_arrow { font-size: 0.65rem; transition: transform 0.2s; }
.lang_btn.open .lang_arrow { transform: rotate(180deg); }

/* 语言下拉 - 现在相对于 .lang_wrapper 定位 */
.lang_dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  min-width: 120px;
}
.lang_dropdown.active { opacity: 1; visibility: visible; transform: translateY(0); }
.lang_dropdown ul { padding: 0.4rem 0; }
.lang_dropdown li {
  padding: 0.5rem 1.5rem; cursor: pointer; font-weight: 600;
  font-size: 0.9rem; color: var(--text-primary); white-space: nowrap;
  transition: background 0.15s;
}
.lang_dropdown li:hover { background: var(--purple-light); }
.lang_dropdown li.active { color: var(--purple-primary); background: var(--purple-surface); }

/* 移动端菜单按钮 */
.l-navtrigger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.bars { width: 24px; height: 16px; position: relative; }
.bar1 span, .bar2 span {
  display: block; width: 100%; height: 2px; background: var(--text-primary);
  position: absolute; left: 0; transition: transform 0.3s ease;
}
.bar1 span { top: 0; }
.bar2 span { bottom: 0; }

/* 手机全屏菜单 */
.l-spnav {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--bg-secondary); z-index: 2000;
  transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.l-spnav[data-status="visible"] { transform: translateX(0); }
.l-spnav__inner { padding: 5rem 2rem 2rem; height: 100%; display: flex; align-items: center; }
.gnav ul li { margin-bottom: 1.2rem; }
.gnav ul li a { font-size: 1.3rem; font-weight: 600; color: var(--text-primary); }
.sns { margin-top: 2rem; }
.l-sns__links { display: flex; gap: 1.5rem; }
.l-sns__links a { font-weight: 600; color: var(--purple-primary); }

/* ========== 主题切换滑块 (左下角) ========== */
.theme-switch-wrapper {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 6px 14px;
  box-shadow: var(--shadow-sm);
  transition: background 0.3s, border-color 0.3s;
}

.theme-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  user-select: none;
  transition: color 0.3s;
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 22px;
}

.slider::before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--purple-primary);
}

input:checked + .slider::before {
  transform: translateX(18px);
}

/* ========== Hero ========== */
.vtuber-hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 80px 20px;
}

/* 图片横向滚动 */
.hero-slider {
  width: 100%;
  max-width: 500px;
  overflow: hidden;
  margin-bottom: 48px;
  border-radius: 16px;
}

.hero-slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

.hero-slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide img {
  max-width: 280px;
  width: 90%;
  height: auto;
  object-fit: contain;
}

/* 滑动指示点 */
.hero-slider-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.hero-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: background 0.3s;
}

.hero-slider-dot.active {
  background: var(--purple-primary);
}

.vtuber-title {
  font-size: 48px; font-weight: 600; letter-spacing: 2px;
  margin-bottom: 24px; color: var(--text-primary);
}
.vtuber-slogan { margin-bottom: 32px; }
.slogan-text { font-size: 20px; font-weight: 500; color: var(--text-secondary); letter-spacing: 2px; }
.vtuber-description { max-width: 560px; margin: 0 auto; }
.vtuber-description p { font-size: 16px; line-height: 1.8; color: var(--text-secondary); margin-bottom: 8px; }

.scroll-hint {
  margin-top: 60px; text-align: center; color: var(--text-muted);
  font-size: 12px; letter-spacing: 1px; cursor: pointer;
  animation: bounceHint 2s ease-in-out infinite;
}
.scroll-hint::after { content: '↓'; display: block; font-size: 16px; margin-top: 6px; }
@keyframes bounceHint {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ========== 通用 ========== */
.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.top_tit {
  font-size: 2rem; font-weight: 700; color: var(--purple-deep);
  margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.6rem;
}
.top_tit::before {
  content: ''; display: block; width: 4px; height: 26px;
  background: var(--purple-primary); border-radius: 2px;
}
.btn_outwrap { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.5rem; }
.btn_outwrap.center { justify-content: center; }
.btn_primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--purple-primary); color: #fff;
  padding: 0.6rem 1.6rem; border-radius: 24px;
  font-weight: 600; font-size: 0.9rem;
  transition: background 0.2s, transform 0.15s;
}
.btn_primary:hover { background: var(--purple-deep); transform: translateY(-1px); }
.large_txt { font-weight: 600; color: var(--purple-primary); }

/* ========== ABOUT ========== */
#top_about { padding: 80px 0; text-align: center; }
#top_about p { color: var(--text-secondary); margin-bottom: 0.4rem; }

/* ========== TALENT ========== */
#top_talent { padding: 80px 0; }
.talent-container { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.talent-title {
  font-size: 48px; font-weight: 700; letter-spacing: 4px;
  text-align: center; margin-bottom: 60px; color: var(--text-primary);
}
.talent-list { margin: 0; padding: 0; list-style: none; }
.talent-item {
  position: relative; display: flex; align-items: center;
  justify-content: space-between; padding: 40px 0;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}
.talent-item:hover { transform: translateX(15px); border-bottom-color: var(--purple-primary); }
.talent-item.right:hover { transform: translateX(-15px); }
.talent-logo { width: 200px; height: 200px; flex-shrink: 0; transition: transform 0.4s ease; }
.talent-item:hover .talent-logo { transform: scale(1.05); }
.talent-logo img { width: 100%; height: 100%; object-fit: contain; }
.talent-status {
  font-size: 20px; font-weight: 500; color: var(--text-secondary);
  letter-spacing: 3px; transition: all 0.3s ease; white-space: nowrap;
}
.talent-item:hover .talent-status { color: var(--purple-primary); transform: translateX(5px); }
.talent-item.right:hover .talent-status { transform: translateX(-5px); }

/* 四点装饰 */
.deco {
  position: absolute; width: 8px; height: 8px;
  background: var(--purple-primary); opacity: 0;
  transition: all 0.3s ease; pointer-events: none; border-radius: 1px;
}
.talent-item:hover .deco { opacity: 1; }
.d_01 { top: 15px; left: 0; }
.talent-item:hover .d_01 { transform: scale(1) rotate(45deg); }
.d_02 { top: 15px; right: 0; }
.talent-item:hover .d_02 { transform: scale(1) rotate(45deg); }
.d_03 { bottom: 15px; left: 0; }
.talent-item:hover .d_03 { transform: scale(1) rotate(45deg); }
.d_04 { bottom: 15px; right: 0; }
.talent-item:hover .d_04 { transform: scale(1) rotate(45deg); }

/* ========== NEWS ========== */
#top_news { padding: 80px 0; }
.news_list { margin: 0; }
.news_item { border-bottom: 1px solid var(--border-color); }
.news_item:last-child { border-bottom: none; }
.news_link {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.9rem 0; transition: background 0.15s; flex-wrap: wrap;
}
.news_link:hover {
  background: var(--purple-surface);
  margin: 0 -0.5rem; padding: 0.9rem 0.5rem; border-radius: 8px;
}
.news_date {
  font-weight: 700; color: var(--purple-primary); font-size: 0.8rem;
  background: var(--purple-light); padding: 0.2rem 0.7rem; border-radius: 14px; white-space: nowrap;
}
.news_category {
  font-weight: 600; font-size: 0.75rem; color: var(--purple-deep);
  background: var(--purple-surface); padding: 0.2rem 0.6rem; border-radius: 14px; white-space: nowrap;
}
.news_title { font-weight: 500; font-size: 0.95rem; color: var(--text-primary); }

/* ========== AUDITION ========== */
#top_audition { padding: 80px 0; }
.a_contents {
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
}
.audition_logo { width: 140px; height: auto; }
.a_contents .right { flex: 1; min-width: 260px; }
.a_contents .right p { color: var(--text-secondary); margin-bottom: 0.8rem; line-height: 1.7; }

/* ========== More to Come ========== */
.coming-soon-section {
  min-height: 60vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 40px 20px;
}
.coming-soon-title { font-size: 36px; font-weight: 500; margin-bottom: 24px; color: var(--text-primary); }
.coming-soon-text { font-size: 16px; color: var(--text-secondary); line-height: 1.8; }

/* ========== 页脚 ========== */
.l-footer {
  background: var(--purple-deep); color: #d4c0f0;
  padding: 1.5rem; text-align: center;
}
.social_links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 0.8rem; }
.social_icon { color: #d4c0f0; font-weight: 600; font-size: 0.9rem; transition: color 0.2s; }
.social_icon:hover { color: #fff; }
.copyright { font-size: 0.8rem; color: #b499d9; display: block; }

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .nav_list, .nav_actions { display: none; }
  .l-navtrigger { display: block; }
  .sitettl img { height: 40px; }
  .vtuber-title { font-size: 32px; }
  .slogan-text { font-size: 16px; }
  .vtuber-description p { font-size: 14px; }
  .hero-slider { max-width: 350px; }
  .hero-slide img { max-width: 200px; }
  .talent-title { font-size: 32px; margin-bottom: 40px; }
  .talent-logo { width: 100px; height: 100px; }
  .talent-status { font-size: 14px; letter-spacing: 2px; }
  .talent-item { padding: 25px 0; }
  .deco { width: 5px; height: 5px; }
  .top_tit { font-size: 1.5rem; }
  .a_contents { flex-direction: column; text-align: center; }
  .audition_logo { width: 100px; margin: 0 auto; }
}

@media (max-width: 480px) {
  .talent-logo { width: 70px; height: 70px; }
  .talent-status { font-size: 12px; }
}