/* ===== 启动界面样式 ===== */

/* 启动界面容器 */
.start-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  overflow: hidden;
}

.start-screen.hidden {
  display: none;
}

/* 内容容器 */
.start-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 20px;
  max-width: 600px;
}

/* 标题 */
.start-title {
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title-main {
  font-family: 'Noto Serif SC', 'SimSun', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: #d4c4b0;
  letter-spacing: 0.3em;
  text-shadow:
    0 0 20px rgba(100, 30, 30, 0.5),
    0 0 40px rgba(100, 30, 30, 0.3),
    0 0 60px rgba(100, 30, 30, 0.15);
  animation: title-fade-in 1s ease-out forwards, title-float 4s ease-in-out infinite 1s;
  opacity: 0;
}

.title-sub {
  font-family: 'ZCOOL XiaoWei', 'KaiTi', serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: #8a7a6a;
  letter-spacing: 0.5em;
  margin-top: 10px;
  text-shadow: 0 0 15px rgba(100, 30, 30, 0.3);
  animation: title-fade-in 1s ease-out 0.3s forwards, title-pulse 3s ease-in-out infinite 1.3s;
  opacity: 0;
}

/* 标题动画 */
@keyframes title-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes title-pulse {
  0%, 100% {
    text-shadow:
      0 0 20px rgba(100, 30, 30, 0.5),
      0 0 40px rgba(100, 30, 30, 0.3);
  }
  50% {
    text-shadow:
      0 0 30px rgba(100, 30, 30, 0.7),
      0 0 60px rgba(100, 30, 30, 0.5),
      0 0 80px rgba(100, 30, 30, 0.2);
  }
}

/* 副标题 */
.start-subtitle {
  font-size: 1rem;
  color: #8a7a6a;
  letter-spacing: 0.3em;
  margin: 0 0 50px 0;
  animation: subtitle-fade-in 1s ease-out 0.5s forwards;
  opacity: 0;
}

@keyframes subtitle-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 按钮容器 */
.start-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

/* 按钮基础样式 */
.start-btn {
  width: 280px;
  padding: 15px 30px;
  font-family: 'Noto Serif SC', 'SimSun', serif;
  font-size: 1.1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  animation: btn-fade-in 0.6s ease-out forwards;
}

/* 主按钮 */
.start-btn-primary {
  background: linear-gradient(135deg, #8b3a3a 0%, #5c2828 100%);
  color: #f5f5f5;
  border: 1px solid #a04545;
  animation-delay: 0.7s;
  position: relative;
  overflow: hidden;
}

.start-btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid #c96060;
  border-radius: 4px;
  animation: btn-pulse 2s ease-in-out infinite;
  pointer-events: none;
}

.start-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(139, 58, 58, 0.5);
}

.start-btn-primary:active {
  transform: translateY(0);
}

/* 次按钮 */
.start-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #c9b8a8;
  border: 1px solid rgba(201, 184, 168, 0.3);
  animation-delay: 0.85s;
}

.start-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(201, 184, 168, 0.5);
  transform: translateY(-2px);
  color: #f5f5f5;
}

/* 辅助按钮 */
.start-btn-tertiary {
  background: transparent;
  color: #6a5a4a;
  border: 1px solid transparent;
  font-size: 0.95rem;
  padding: 10px 20px;
  animation-delay: 1s;
}

.start-btn-tertiary:nth-child(3) {
  animation-delay: 1s;
}

.start-btn-tertiary:nth-child(4) {
  animation-delay: 1.1s;
}

.start-btn-tertiary:hover {
  color: #8a7a6a;
  border-color: rgba(106, 90, 74, 0.3);
}

/* 按钮动画 */
@keyframes btn-fade-in {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes btn-pulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

/* 制作信息 */
.start-credits {
  margin-top: 60px;
  animation: subtitle-fade-in 1s ease-out 1.2s forwards;
  opacity: 0;
}

.start-credits p {
  font-size: 0.85rem;
  color: #4a4035;
  margin: 0;
  letter-spacing: 0.1em;
}

/* 响应式 */
@media (max-width: 600px) {
  .title-main {
    font-size: 2.5rem;
    letter-spacing: 0.2em;
  }

  .title-sub {
    font-size: 1.3rem;
  }

  .start-btn {
    width: 240px;
    font-size: 1rem;
  }
}

/* ===== 故事背景过渡界面 ===== */
.intro-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  overflow: hidden;
}

.intro-screen.hidden {
  display: none;
}

/* 内容容器 */
.intro-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 20px;
  max-width: 600px;
}

/* 标题（缩小到顶部） */
.intro-title {
  position: absolute;
  top: -280px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intro-title .title-main {
  font-size: 2rem;
  animation: title-fade-in 1s ease-out forwards;
}

.intro-title .title-sub {
  font-size: 1.2rem;
  animation: title-fade-in 1s ease-out 0.3s forwards;
}

/* 故事文字 */
.intro-story {
  margin: 60px 0;
}

.intro-line {
  font-family: 'Noto Serif SC', 'SimSun', serif;
  font-size: 1.3rem;
  color: #a09080;
  letter-spacing: 0.2em;
  margin: 15px 0;
  opacity: 0;
  animation: intro-line-fade 1s ease-out forwards;
}

.intro-line:nth-child(1) { animation-delay: 0.5s; }
.intro-line:nth-child(2) { animation-delay: 1s; }
.intro-line:nth-child(3) { animation-delay: 1.5s; }
.intro-line:nth-child(4) { animation-delay: 2s; }
.intro-line:nth-child(5) { animation-delay: 2.8s; }
.intro-line:nth-child(6) { animation-delay: 3.3s; }
.intro-line:nth-child(7) { animation-delay: 3.8s; }

.intro-blank {
  height: 20px;
}

@keyframes intro-line-fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 继续按钮 */
.intro-continue-btn {
  font-family: 'Noto Serif SC', 'SimSun', serif;
  font-size: 1rem;
  color: #6a5a4a;
  background: transparent;
  border: 1px solid transparent;
  padding: 12px 30px;
  cursor: pointer;
  opacity: 0;
  animation: intro-btn-fade 0.8s ease-out 4.5s forwards;
  transition: all 0.3s ease;
}

.intro-continue-btn:hover {
  color: #8a7a6a;
  border-color: rgba(106, 90, 74, 0.3);
  transform: translateX(5px);
}

@keyframes intro-btn-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
