/* ====================
   字体与基础设定
==================== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative&display=swap');

body, html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  height: 100%;
  font-family: 'Cinzel Decorative', serif;
  color: white;
  background-color: #0f0c29;
  background-image: url('https://www.transparenttextures.com/patterns/stardust.png');
  background-repeat: repeat;
}

/* ====================
   星点背景和炫光效果
==================== */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  overflow-x: hidden;
  z-index: -1;
  background: radial-gradient(circle at center, #0b0b1e 0%, #000000 100%);
}


@keyframes starsAnimation {
  from { transform: translate(0, 0); }
  to   { transform: translate(-10%, -10%); }
}

.glow-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  mix-blend-mode: screen;
  filter: blur(20px);
  animation: flow 10s infinite alternate ease-in-out;
}

@keyframes flow {
  0%   { transform: scale(1) translateY(0); }
  100% { transform: scale(1.05) translateY(-2%); }
}

/* ====================
   标题样式
==================== */
h1, h2, .magical-title {
  font-family: 'Cinzel Decorative', serif;
}

h1 {
  color: #fff;
  text-shadow: 0 0 10px #cba6ff, 0 0 20px #a583ff;
  letter-spacing: 2px;
  font-size: 2em;
}

.aberration-text {
  text-shadow: 1px 0 red, -1px 0 cyan;
  font-weight: bold;
}

/* ====================
   Header 区域
==================== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
}

/* ====================
   主内容布局
==================== */
.divination-section {
  padding: 2rem;
  min-height: 100vh;
  animation: fadeIn 1.2s ease;
}

.input-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 12px;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

/* ====================
   输入表单样式
==================== */
.input-card input,
.input-card button {
  width: 100%;
  margin: 0.4rem 0;
  padding: 0.6rem;
  border: none;
  border-radius: 6px;
}

.input-card input {
  background: rgba(255, 255, 255, 0.07);
  color: white;
  font-size: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 5px rgba(165, 120, 255, 0.4);
  backdrop-filter: blur(5px);
}

.input-card input:focus {
  box-shadow: 0 0 12px rgba(190, 150, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.4);
}

.input-card button {
  background: #8a4fff;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.input-card button:hover {
  background: #b084ff;
}

/* ====================
   Label 和按钮
==================== */
label {
  display: block;
  font-family: 'Cinzel Decorative', serif;
  margin-top: 12px;
  color: #eee;
  text-shadow: 0 0 6px #c9f;
}

button {
  background: linear-gradient(45deg, #8e44ad, #3498db);
  border: none;
  color: white;
  padding: 0.8em 1.5em;
  font-size: 1.2em;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* ====================
   动画效果
==================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(50px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ====================
   历史记录
==================== */
.history {
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  max-height: 300px;
  overflow-y: auto;
  font-family: 'Cinzel Decorative', serif;
}
.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.clear-history-button {
  font-size: 0.8rem;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.clear-history-button:hover {
  background: rgba(255,255,255,0.2);
}

.history-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.history-time {
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 4px;
}

.history-task {
  font-size: 1rem;
  color: #fff;
  font-weight: bold;
  margin-bottom: 2px;
}

.history-suggestion {
  font-size: 0.9rem;
  color: #ccc;
  margin-left: 12px;
  font-style: italic;
}

#historyList {
  list-style: none;
  padding-left: 0;
}

/* ====================
   团队介绍
==================== */
.slider-container {
  display: flex;
  width: 200vw; /* 2页横排 */
  transition: transform 0.7s ease-in-out;
}

.slide-page {
  width: 100vw;
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 40px;
}
.team-section {
  position: relative;
  min-height: 100vh;
  max-width: 100vw;
  overflow-y: auto;
  overflow-x: auto;
  padding: 60px 16px 100px;
  box-sizing: border-box;
}

.floating-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0; left: 0;
  z-index: 2;
}

.fixed-lineup {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  margin-top: 25vh;
  position: relative;
  z-index: 2;
}

.horizontal-team {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  min-width: 320px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}


.team-card {
  width: 220px;
  max-width: 90vw;
  min-height: 220px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  box-sizing: border-box;
  text-align: center;
  font-family: 'Cinzel Decorative', serif;
  color: #fff;
  box-shadow: 0 0 12px rgba(255,255,255,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: floatUpDown 5s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.team-card h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.team-card .role {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 6px;
}

.team-card hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.2);
  margin: 8px 0;
}

.team-card .traits {
  font-size: 0.75rem;
  color: #ddd;
  margin-bottom: 4px;
}

.team-card .motto {
  font-size: 0.7rem;
  font-style: italic;
  color: #aaa;
}

.team-card pre.ascii {
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  line-height: 1.2;
  color: #ccc;
  margin: 6px 0;
}

.team-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255,255,255,0.6);
}

@media screen and (max-width: 768px) {
  .team-card {
    width: 90%;
    min-width: unset;
    max-width: 300px;
  }

  .horizontal-team {
    gap: 24px;
    margin-top: 80px;
    padding: 0 12px;
  }

  .team-card .motto {
    font-size: 0.75rem;
  }

  .team-card .traits {
    font-size: 0.8rem;
  }

  .team-card pre.ascii {
    font-size: 0.7rem;
  }

  .back-button {
    top: 12px;
    left: 12px;
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .team-section h2 {
    font-size: 1.2rem;
  }

  .team-section p {
    font-size: 0.9rem;
  }
}


@keyframes floatUpDown {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
  100% { transform: translateY(0) rotate(-1deg); }
}

.back-button {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1000;
  background: rgba(255,255,255,0.1);
  color: #fff;
  padding: 10px 20px;
  font-family: 'Cinzel Decorative', serif;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 10px;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  transform-origin: center center; /* 避免缩放偏移 */
}

.back-button:hover {
  box-shadow: 0 0 10px rgba(255,255,255,0.6);
  transform: scale(1.1); /* 原地放大，不偏移 */
}



/* ====================
   魔法时钟
==================== */
.magic-clock {
  width: 100px;
  height: 100px;
  margin: 20px auto;
  filter: drop-shadow(0 0 8px #fff5);
}

.magic-clock img {
  width: 100%;
  transition: transform 1s ease;
}
