/* ==================== 全局运动纹理 ==================== */
body {
  background: #f5f7fa;
  /* 球场地板纹理 */
  background-image: 
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 40px,
      rgba(255,107,53,0.015) 40px,
      rgba(255,107,53,0.015) 42px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 120px,
      rgba(0,0,0,0.01) 120px,
      rgba(0,0,0,0.01) 121px
    );
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: #2c3e50;
  line-height: 1.8;
  margin: 0;
  padding: 20px;
  position: relative;
}

/* 球场边线装饰 - 左右两侧 */
body::before,
body::after {
  content: '';
  position: fixed;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, 
    transparent 0%,
    #ff6b35 15%,
    #ff6b35 85%,
    transparent 100%
  );
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}
body::before { left: 12px; }
body::after { right: 12px; }

/* ==================== 顶部状态栏 - 记分牌风格 ==================== */
topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 
    0 2px 12px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}
/* 记分牌红色LED光晕 */
topbar::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    ellipse at center,
    rgba(255,107,53,0.08) 0%,
    transparent 70%
  );
  animation: scoreboard-glow 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scoreboard-glow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.tb-item {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  color: #e8e8e8;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
  position: relative;
}
.tb-item:hover {
  background: rgba(255,107,53,0.2);
  border-color: rgba(255,107,53,0.4);
  color: #ffab76;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,107,53,0.2);
}

/* ==================== 正文区 - 战术板风格 ==================== */
text {
  display: block;
  background: #ffffff;
  border-radius: 14px;
  padding: 32px 36px;
  margin-bottom: 24px;
  box-shadow: 
    0 1px 6px rgba(0,0,0,0.04),
    0 0 0 1px rgba(0,0,0,0.02);
  border-left: 4px solid #ff6b35;
  position: relative;
  transition: all 0.3s ease;
}
/* 战术板夹子 */
text::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 12px;
  background: linear-gradient(180deg, #d1d5db 0%, #9ca3af 100%);
  border-radius: 4px 4px 0 0;
  box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}
text:hover {
  box-shadow: 
    0 4px 20px rgba(0,0,0,0.08),
    0 0 0 1px rgba(255,107,53,0.15);
}

text p {
  margin: 0 0 16px 0;
  text-indent: 2em;
  font-size: 15px;
  color: #3a3f47;
  transition: all 0.2s ease;
  position: relative;
}
/* 段落悬停 - 传球路线动画 */
text p:hover {
  background: linear-gradient(90deg, 
    rgba(255,107,53,0.03) 0%,
    rgba(255,107,53,0.06) 50%,
    transparent 100%
  );
  padding-left: 8px;
  border-radius: 0 6px 6px 0;
}
text p:last-child {
  margin-bottom: 0;
}

/* ==================== 选项区 - 球员上场动画 ==================== */
choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}
.ch-item {
  padding: 14px 18px 14px 40px;
  background: #ffffff;
  border-radius: 10px;
  border: 1.5px solid #e8ecf1;
  font-size: 14px;
  color: #2c3e50;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  /* 入场动画 */
  animation: player-check-in 0.5s ease-out both;
  overflow: hidden;
}
.ch-item:nth-child(1) { animation-delay: 0s; }
.ch-item:nth-child(2) { animation-delay: 0.1s; }
.ch-item:nth-child(3) { animation-delay: 0.2s; }
.ch-item:nth-child(4) { animation-delay: 0.3s; }

@keyframes player-check-in {
  0% { 
    opacity: 0; 
    transform: translateX(-20px) scale(0.95); 
  }
  60% {
    transform: translateX(3px) scale(1.01);
  }
  100% { 
    opacity: 1; 
    transform: translateX(0) scale(1); 
  }
}

/* 选项编号 - 球衣号码风格 */
.ch-item::before {
  content: attr(data-letter);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background: #ff6b35;
  color: #fff;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.3s ease;
  /* 球衣号码字体风格 */
  font-style: italic;
  letter-spacing: 1px;
  box-shadow: 0 2px 4px rgba(255,107,53,0.3);
}

.ch-item:hover {
  border-color: #ff6b35;
  background: #fff9f6;
  box-shadow: 
    0 4px 16px rgba(255,107,53,0.15),
    inset 0 0 0 1px rgba(255,107,53,0.1);
  transform: translateX(4px) translateY(-1px);
}
.ch-item:hover::before {
  background: #e55d2b;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 8px rgba(255,107,53,0.4);
}
/* 点击反馈 */
.ch-item:active {
  transform: translateX(4px) scale(0.98);
  transition: all 0.1s ease;
}

/* ==================== 折叠面板 - 更衣室储物柜风格 ==================== */
details {
  background: #ffffff;
  border-radius: 10px;
  margin-bottom: 10px;
  border: 1px solid #eef1f5;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
details[open] {
  border-color: #dde3ea;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  /* 展开动画 */
  animation: locker-open 0.3s ease-out;
}
@keyframes locker-open {
  0% { transform: scaleY(0.98); opacity: 0.9; }
  100% { transform: scaleY(1); opacity: 1; }
}

summary {
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fafbfc;
  user-select: none;
  transition: all 0.25s ease;
  position: relative;
}
summary::-webkit-details-marker {
  display: none;
}
/* 箭头 - 运球节奏 */
summary::before {
  content: '▸';
  display: inline-block;
  font-size: 11px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #ff6b35;
  width: 16px;
}
details[open] > summary::before {
  transform: rotate(90deg);
}

/* 储物柜编号条纹悬停 */
summary:hover {
  background: linear-gradient(90deg, 
    #fafbfc 0%,
    #fff5f0 50%,
    #fafbfc 100%
  );
  background-size: 200% 100%;
  animation: stripe-slide 0.6s ease;
}
@keyframes stripe-slide {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

details p {
  padding: 6px 20px;
  margin: 0;
  font-size: 13px;
  color: #5a6270;
  transition: all 0.2s ease;
}
details p:hover {
  background: rgba(255,107,53,0.02);
}
details hr {
  margin: 8px 20px;
  border: none;
  border-top: 1px dashed #e8ecf1;
}

/* ==================== 面板左边框 - 球场位置配色 ==================== */
/* 你的档案 - 控卫蓝 */
details:nth-of-type(1) { 
  border-left: 3px solid #3498db; 
  position: relative;
}
details:nth-of-type(1) summary { background: #fafbfc; }

/* 郭子月 - 得分后卫橙 */
details:nth-of-type(2) { 
  border-left: 3px solid #ff6b35;
}
details:nth-of-type(2) summary { background: #fffaf7; }
details:nth-of-type(2)::after {
  content: '🦊';
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 16px;
  opacity: 0.4;
  pointer-events: none;
  transition: all 0.3s ease;
}
details:nth-of-type(2)[open]::after {
  opacity: 0.8;
  transform: scale(1.2) rotate(-5deg);
}

/* 沈祁 - 小前锋绿 */
details:nth-of-type(3) { 
  border-left: 3px solid #2ecc71;
}
details:nth-of-type(3) summary { background: #f8fdf9; }

/* 记忆区 - 战术本紫 */
details.memory-panel { 
  border-left: 3px solid #9b59b6;
}
details.memory-panel summary { background: #fdfaff; }

/* 事件链 - 比赛时钟黄 */
details:nth-of-type(5) { 
  border-left: 3px solid #f39c12;
}
details:nth-of-type(5) summary { background: #fffdf7; }

/* ==================== 记忆区表格 ==================== */
.memory-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 14px;
  font-size: 12px;
}
.memory-table th {
  background: #f5f6f8;
  padding: 8px 12px;
  text-align: left;
  font-weight: 600;
  color: #4a5568;
  border-bottom: 2px solid #e2e6ed;
}
.memory-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #f0f2f5;
  color: #5a6270;
  vertical-align: top;
  transition: all 0.2s ease;
}
.memory-table tr:hover td {
  background: #faf5ff;
  border-left: 2px solid #9b59b6;
}
.memory-title {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a2e;
  padding: 10px 0 4px 0;
}
.memory-info {
  font-size: 11px;
  color: #9b59b6;
  padding: 4px 0 8px;
  font-style: italic;
}

/* ==================== 数值跳动动画 ==================== */
@keyframes score-bounce {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.15); color: #ff6b35; }
  60% { transform: scale(0.95); }
}

/* ==================== 对话颜色 + 投篮弧线悬停 ==================== */
span[style*="color:#E91E63"] {
  color: #e91e63 !important;
  font-weight: 500;
  transition: all 0.2s ease;
}
span[style*="color:#E91E63"]:hover {
  text-shadow: 0 0 8px rgba(233,30,99,0.2);
}
span[style*="color:#1E88E5"] {
  color: #1e88e5 !important;
  font-weight: 500;
  transition: all 0.2s ease;
}
span[style*="color:#1E88E5"]:hover {
  text-shadow: 0 0 8px rgba(30,136,229,0.2);
}
span[style*="color:#9C27B0"] {
  color: #9c27b0 !important;
  font-style: italic;
  transition: all 0.2s ease;
}

/* ==================== 响应式 ==================== */
@media (max-width: 600px) {
  body { padding: 8px; }
  body::before, body::after { display: none; }
  text { padding: 20px 18px; }
  text::before { width: 40px; height: 8px; top: -5px; }
  choices { grid-template-columns: 1fr; }
  topbar { gap: 4px; padding: 10px 12px; }
  .tb-item { font-size: 11px; padding: 4px 10px; }
  .ch-item { 
    padding: 12px 12px 12px 34px; 
    animation: none;
  }
}