/* 任务卡片样式 - 固定大小 */





/* 翻转卡片 */




* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #ff6b35;
  --bg: #0a0a0a;
  --card: #1a1a2e;
  --text: #eee;
  --border: #333;
  --success: #00cc66;
  --warning: #ffaa00;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* 登录页面 */
.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.login-box {
  background: var(--card);
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  max-width: 400px;
  width: 100%;
}

.logo { font-size: 60px; margin-bottom: 20px; }
.title { font-size: 28px; margin-bottom: 30px; color: var(--primary); }

input {
  width: 100%;
  padding: 15px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  margin-bottom: 20px;
}

input:focus {
  outline: none;
  border-color: var(--primary);
}

.btn {
  padding: 12px 30px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn:hover { transform: scale(1.05); }
.btn-sm { padding: 8px 15px; font-size: 14px; background: var(--border); }
.btn-success { background: var(--success); }
.btn-danger { background: #ff4444; }

.error { color: #ff4444; margin-top: 15px; }

/* 主应用 */
.app-container { display: none; }

.header {
  background: var(--card);
  padding: 20px 30px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.header-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.header-logo { font-size: 30px; }
.header-title { font-size: 24px; color: var(--primary); }

.header-user {
  position: absolute;
  right: 30px;
  top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-bar { 
  display: flex; 
  gap: 10px; 
  justify-content: center;
}

.nav-item {
  padding: 8px 20px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--text);
}

.nav-item:hover, .nav-item.active {
  background: rgba(255, 107, 53, 0.2);
  color: var(--primary);
}

.main { 
  min-height: calc(100vh - 120px); 
  position: relative;
  z-index: 1;
}

.page { display: none; }
.page.active { display: block; }

.page-content { padding: 30px; max-width: 1400px; margin: 0 auto; }

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.page-header h1 { font-size: 24px; }

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.page-title { font-size: 24px; }

/* 统计卡片 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}

.stat-value { font-size: 36px; color: var(--primary); }
.stat-label { color: #888; margin-top: 5px; }

/* 任务卡片 */
.task-list { display: flex; flex-direction: column; gap: 15px; }


/* 光柱填充效果 */


/* 待处理 - 灰色光柱 */

/* 进行中 - 橙色光柱 */

/* 已完成 - 绿色光柱 */


/* 光柱填充动画 */
@keyframes lightFillPending {
  0%, 100% { width: 0; opacity: 0.3; }
  50% { width: 30%; opacity: 0.6; }
}

@keyframes lightFillProgress {
  0%, 100% { width: 0; opacity: 0.5; }
  50% { width: 50%; opacity: 0.8; }
}

@keyframes lightFillComplete {
  0%, 100% { width: 0; opacity: 0.2; }
  50% { width: 100%; opacity: 0.4; }
}

@keyframes borderGlowOrange {
  0%, 100% { 
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.4);
    filter: brightness(1);
  }
  50% { 
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.7);
    filter: brightness(1.2);
  }
}

.task-title { font-size: 18px; margin-bottom: 5px; }
.task-meta { color: #888; font-size: 14px; }

.task-actions { display: flex; gap: 10px; }

/* 团队卡片 */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  position: relative;
  z-index: 1;
}

.team-card {
  background: var(--card);
  padding: 25px 20px;
  border-radius: 16px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  min-height: 200px;
}

/* 经验值条 */
.team-card .exp-bar {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  margin: 15px 0 10px;
  overflow: hidden;
}

.team-card .exp-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.team-card .exp-text {
  font-size: 12px;
  color: #888;
  margin-bottom: 10px;
}

/* 在线状态指示 */
.team-card .status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  margin-top: 10px;
}

.team-card .status-indicator.online {
  background: rgba(0, 204, 102, 0.2);
  color: #00cc66;
}

.team-card .status-indicator.offline {
  background: rgba(136, 136, 136, 0.2);
  color: #888;
}

.team-card .status-indicator.working {
  background: rgba(255, 170, 0, 0.2);
  color: #ffaa00;
}

.team-card .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: statusPulse 2s ease-in-out infinite;
}

.team-card .status-indicator.online .status-dot {
  background: #00cc66;
}

.team-card .status-indicator.offline .status-dot {
  background: #888;
  animation: none;
}

.team-card .status-indicator.working .status-dot {
  background: #ffaa00;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

/* 工作中状态 - 光效脉冲 + 自动hover效果 */
.team-card.working {
  animation: workingPulse 2s ease-in-out infinite;
  transform: translateY(-8px);
  box-shadow: 0 0 30px rgba(255, 170, 0, 0.5);
}

@keyframes workingPulse {
  0%, 100% { 
    box-shadow: 0 0 30px rgba(255, 170, 0, 0.5), inset 0 0 20px rgba(255, 170, 0, 0.1);
  }
  50% { 
    box-shadow: 0 0 40px rgba(255, 170, 0, 0.7), inset 0 0 25px rgba(255, 170, 0, 0.15);
  }
}

/* 流光边框 - 使用伪元素和渐变 */
.team-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 18px;
  z-index: -1;
  opacity: 0.6;
}

/* 小齐 - 蓝色 */
.team-card:nth-child(1) {
  border-color: #3366cc;
}
.team-card:nth-child(1)::before {
  background: linear-gradient(90deg, #3366cc, #5599ff, #3366cc);
  animation: borderGlow 3s ease-in-out infinite;
}
.team-card:nth-child(1) .exp-fill {
  background: linear-gradient(90deg, #3366cc, #5599ff);
}

/* 李槐 - 绿色 */
.team-card:nth-child(2) {
  border-color: #339966;
}
.team-card:nth-child(2)::before {
  background: linear-gradient(90deg, #339966, #66cc99, #339966);
  animation: borderGlow 3s ease-in-out infinite 0.5s;
}
.team-card:nth-child(2) .exp-fill {
  background: linear-gradient(90deg, #339966, #66cc99);
}

/* 陈灵均 - 橙色 */
.team-card:nth-child(3) {
  border-color: #cc6600;
}
.team-card:nth-child(3)::before {
  background: linear-gradient(90deg, #cc6600, #ff9933, #cc6600);
  animation: borderGlow 3s ease-in-out infinite 1s;
}
.team-card:nth-child(3) .exp-fill {
  background: linear-gradient(90deg, #cc6600, #ff9933);
}

/* 陈如初 - 紫色 */
.team-card:nth-child(4) {
  border-color: #9933cc;
}
.team-card:nth-child(4)::before {
  background: linear-gradient(90deg, #9933cc, #cc66ff, #9933cc);
  animation: borderGlow 3s ease-in-out infinite 1.5s;
}
.team-card:nth-child(4) .exp-fill {
  background: linear-gradient(90deg, #9933cc, #cc66ff);
}

/* 边框发光动画 - 更柔和 */
@keyframes borderGlow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

/* 内部背景遮罩 */
/* 从左往右流光动画 */
.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
}

.team-avatar { 
  font-size: 50px; 
  margin-bottom: 10px;
  animation: float 3s ease-in-out infinite;
}

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

.team-card:nth-child(1) .team-avatar { animation-delay: 0s; }
.team-card:nth-child(2) .team-avatar { animation-delay: 0.5s; }
.team-card:nth-child(3) .team-avatar { animation-delay: 1s; }
.team-card:nth-child(4) .team-avatar { animation-delay: 1.5s; }

.team-name { font-size: 18px; margin-bottom: 5px; font-weight: bold; }
.team-role { color: var(--primary); margin-bottom: 8px; font-size: 14px; }
.team-skills { color: #888; font-size: 12px; margin-bottom: 10px; }

.team-mood {
  font-size: 24px;
  margin: 10px 0;
  padding: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  margin-top: 5px;
}

.status-idle { background: #333; }
.status-working { background: var(--warning); }
.status-offline { background: #666; }

/* 看板布局 */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.kanban-column {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 15px;
  min-height: 400px;
  position: relative;
  overflow: hidden;
}

/* 看板列边框光效 */
.kanban-column::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 15px;
  z-index: -1;
  background-size: 200% 100%;
  animation: columnFlow 4s linear infinite, columnBreathe 3s ease-in-out infinite;
}

/* 待认领 - 灰色 */
.kanban-column:nth-child(1)::before {
  background: linear-gradient(90deg, 
    #1a1a2e 0%, 
    #555 20%, 
    #777 50%, 
    #555 80%, 
    #1a1a2e 100%);
  box-shadow: 0 0 10px rgba(100, 100, 100, 0.25);
}

/* 进行中 - 橙色 */
.kanban-column:nth-child(2)::before {
  background: linear-gradient(90deg, 
    #1a1a2e 0%, 
    #cc5500 20%, 
    #ff8800 50%, 
    #cc5500 80%, 
    #1a1a2e 100%);
  box-shadow: 0 0 12px rgba(255, 136, 0, 0.35);
}

/* 已完成 - 绿色 */
.kanban-column:nth-child(3)::before {
  background: linear-gradient(90deg, 
    #1a1a2e 0%, 
    #009955 20%, 
    #33cc77 50%, 
    #009955 80%, 
    #1a1a2e 100%);
  box-shadow: 0 0 10px rgba(0, 153, 85, 0.3);
}

.kanban-column::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  border-radius: 9px;
  background: rgba(26, 26, 46, 0.95);
  z-index: 0;
}

.kanban-column > * {
  position: relative;
  z-index: 1;
}

@keyframes columnFlow {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes columnBreathe {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.kanban-header {
  font-size: 16px;
  font-weight: bold;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 8px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* 标题脉冲光效 */
.kanban-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: headerPulse 3s ease-in-out infinite;
}

@keyframes headerPulse {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

.kanban-column:nth-child(1) .kanban-header { background: rgba(102, 102, 102, 0.3); color: #ccc; }
.kanban-column:nth-child(2) .kanban-header { background: rgba(255, 102, 0, 0.3); color: #ffaa00; }
.kanban-column:nth-child(3) .kanban-header { background: rgba(0, 204, 102, 0.3); color: #66ff99; }

.kanban-list { display: flex; flex-direction: column; gap: 10px; }

.kanban-empty {
  text-align: center;
  color: #666;
  padding: 20px;
  font-size: 14px;
}

.kanban-card {
  background: var(--card);
  padding: 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  perspective: 1000px;
  min-height: 100px;
}

.kanban-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* 卡片翻转效果 */
.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.kanban-card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card-front {
  position: relative;
}

.card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--card);
  border-radius: 8px;
  padding: 15px;
  transform: rotateY(180deg);
  box-sizing: border-box;
  overflow-y: auto;
}

.card-back-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 12px;
  color: var(--primary);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.card-back-content {
  font-size: 13px;
  line-height: 1.8;
}

.card-back-content p {
  margin-bottom: 6px;
}

.card-back-desc {
  background: rgba(255,255,255,0.05);
  padding: 10px;
  border-radius: 6px;
  margin-top: 8px;
  max-height: 80px;
  overflow-y: auto;
  font-size: 12px;
  color: #aaa;
}

.card-back-hint {
  text-align: center;
  font-size: 11px;
  color: #666;
  margin-top: 10px;
}

.kanban-card-title { font-size: 14px; margin-bottom: 8px; }
.kanban-card-meta { font-size: 12px; color: #888; }
.kanban-card-actions { margin-top: 10px; display: flex; gap: 5px; }

@media (max-width: 768px) {
  .kanban-board {
    grid-template-columns: 1fr;
  }
}

/* 令牌板块 */
.token-section {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

.token-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tab-btn {
  padding: 10px 20px;
  background: var(--card);
  border: none;
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active {
  background: var(--primary);
  color: white;
}

.tab-btn:hover {
  opacity: 0.8;
}

.token-content {
  min-height: 300px;
}

.report-form {
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.report-form h3 {
  margin-bottom: 15px;
  font-size: 16px;
}

.report-list, .log-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.report-item, .log-item {
  background: var(--card);
  padding: 15px;
  border-radius: 8px;
}

.report-item-header, .log-item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  color: #888;
}

.report-item-content, .log-item-content {
  font-size: 14px;
  line-height: 1.6;
}

.empty-state {
  text-align: center;
  color: #666;
  padding: 40px;
  font-size: 14px;
}

/* 天象页面 */
.tianxiang-section {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

.strategy-form {
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.strategy-form h3 {
  margin-bottom: 15px;
  font-size: 16px;
}

.strategy-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.strategy-item {
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid var(--primary);
}

.strategy-item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  color: #888;
}

.strategy-item-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
}

.strategy-item-content {
  font-size: 14px;
  line-height: 1.6;
  color: #ccc;
}

.strategy-item-meta {
  margin-top: 10px;
  font-size: 12px;
  color: #666;
}

/* 天象页面 */
.tianxiang-section {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

.strategy-form {
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.strategy-form h3 {
  margin-bottom: 15px;
  font-size: 16px;
}

.strategy-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.strategy-item {
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid var(--primary);
}

.strategy-item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  color: #888;
}

.strategy-item-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
}

.strategy-item-content {
  font-size: 14px;
  line-height: 1.6;
  color: #ccc;
}

.strategy-item-meta {
  margin-top: 10px;
  font-size: 12px;
  color: #666;
}

/* 模态框 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: var(--card);
  padding: 30px;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  z-index: 1001;
  position: relative;
}

.modal-title { font-size: 20px; margin-bottom: 20px; }
.form-group { margin-bottom: 15px; }

label { display: block; margin-bottom: 5px; color: #888; }

select {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}

textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  resize: vertical;
  min-height: 100px;
}

/* 幻境页面 */
.huanjing-section {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

.dream-form {
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.dream-form h3 {
  margin-bottom: 15px;
  font-size: 16px;
}

.dream-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.dream-item {
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #9b59b6;
}

.dream-item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  color: #888;
}

.dream-item-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
}

.dream-item-content {
  font-size: 14px;
  line-height: 1.6;
  color: #ccc;
}

/* 心声页面 */
.xinsheng-section {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

.diary-form {
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.diary-form h3 {
  margin-bottom: 15px;
  font-size: 16px;
}

.diary-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.diary-item {
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #e91e63;
}

.diary-item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  color: #888;
}

.diary-item-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
}

.diary-item-content {
  font-size: 14px;
  line-height: 1.6;
  color: #ccc;
}

/* 大道碑页面 - 升级版 */
.stele-temple {
  background: radial-gradient(ellipse at center, #1a1a3e 0%, #0a0a1e 50%, #050510 100%);
  border-radius: 20px;
  padding: 60px 40px;
  margin-top: 20px;
  min-height: 800px;
  position: relative;
  overflow: hidden;
}

/* 粒子背景 */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: radial-gradient(circle, #ffd700 0%, transparent 70%);
  border-radius: 50%;
  animation: floatUp 8s ease-in-out infinite;
  opacity: 0;
}

@keyframes floatUp {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) scale(1.5);
    opacity: 0;
  }
}

.stele-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 40px;
  justify-items: center;
  align-items: start;
  position: relative;
  z-index: 1;
}

/* 主碑（老齐）- 居中放大 */
.stele-main {
  grid-column: 2;
  grid-row: 1;
  width: 320px !important;
  height: 480px !important;
}

.stele-main .stele-avatar {
  font-size: 56px !important;
}

.stele-main .stele-name {
  font-size: 26px !important;
}

/* 其他碑排列 */
.stele:not(.stele-main):nth-child(2) { grid-column: 1; grid-row: 2; }
.stele:not(.stele-main):nth-child(3) { grid-column: 2; grid-row: 2; }
.stele:not(.stele-main):nth-child(4) { grid-column: 3; grid-row: 2; }
.stele:not(.stele-main):nth-child(5) { grid-column: 1; grid-row: 1; }

.stele {
  background: linear-gradient(180deg, #2a2a4a 0%, #1a1a2e 50%, #151528 100%);
  border: 3px solid #4a4a7a;
  border-radius: 16px;
  width: 280px;
  height: 420px;
  position: relative;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-shadow: 
    0 15px 50px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.1),
    inset 0 -1px 0 rgba(0,0,0,0.3);
}

/* 发光效果 */
.stele-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.stele:hover .stele-glow {
  opacity: 1;
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* 悬停效果 */
.stele:hover {
  transform: translateY(-15px) scale(1.02);
  border-color: #ffd700;
  box-shadow: 
    0 25px 60px rgba(255, 215, 0, 0.3),
    0 0 100px rgba(255, 215, 0, 0.2),
    inset 0 1px 0 rgba(255,255,255,0.2);
}

/* 碑文内部 */
.stele-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.stele-header {
  background: linear-gradient(180deg, #3a3a5a 0%, #2a2a4a 100%);
  padding: 20px;
  text-align: center;
  border-bottom: 2px solid #4a4a7a;
}

.stele-avatar {
  font-size: 48px;
  margin-bottom: 10px;
  animation: float 3s ease-in-out infinite;
}

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

.stele-name {
  font-size: 22px;
  font-weight: bold;
  color: #ffd700;
  text-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
  margin-bottom: 5px;
}

.stele-title {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.stele-content {
  flex: 1;
  padding: 25px 20px;
  overflow-y: auto;
  font-size: 15px;
  line-height: 2;
  color: #ddd;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="50" y="50" font-size="120" text-anchor="middle" fill="rgba(255,215,0,0.03)">道</text></svg>');
  background-size: 150px;
  background-position: center;
  background-repeat: no-repeat;
}

.stele-content::-webkit-scrollbar {
  width: 4px;
}

.stele-content::-webkit-scrollbar-track {
  background: transparent;
}

.stele-content::-webkit-scrollbar-thumb {
  background: #4a4a7a;
  border-radius: 2px;
}

.stele-placeholder {
  color: #666;
  font-style: italic;
  font-size: 14px;
}

.stele-footer {
  padding: 15px;
  text-align: center;
  border-top: 1px solid #3a3a5a;
  background: rgba(0,0,0,0.2);
}

.stele-date {
  font-size: 11px;
  color: #666;
}

/* 符文装饰 */
.stele-runes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  opacity: 0.1;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><circle cx="25" cy="25" r="20" stroke="%23ffd700" stroke-width="0.5" fill="none"/><circle cx="25" cy="25" r="15" stroke="%23ffd700" stroke-width="0.3" fill="none"/><circle cx="25" cy="25" r="10" stroke="%23ffd700" stroke-width="0.2" fill="none"/></svg>');
  background-size: 100px;
  background-position: center;
}

/* 不同成员的颜色主题 */
.stele[data-member="老齐"] {
  --stele-color: #ffd700;
}

.stele[data-member="小齐"] {
  --stele-color: #4da6ff;
}

.stele[data-member="李槐"] {
  --stele-color: #33cc77;
}

.stele[data-member="陈灵均"] {
  --stele-color: #ff9933;
}

.stele[data-member="陈如初"] {
  --stele-color: #cc66ff;
}

.stele:hover {
  border-color: var(--stele-color);
  box-shadow: 
    0 25px 60px rgba(0,0,0,0.5),
    0 0 80px color-mix(in srgb, var(--stele-color) 30%, transparent);
}

.stele:hover .stele-name {
  color: var(--stele-color);
  text-shadow: 0 0 20px var(--stele-color);
}

/* 编辑面板 */
.stele-editor {
  background: linear-gradient(135deg, var(--card) 0%, #252545 100%);
  padding: 30px;
  border-radius: 16px;
  margin-top: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  border: 2px solid #4a4a7a;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.stele-editor h3 {
  margin-bottom: 20px;
  text-align: center;
  color: #ffd700;
  font-size: 20px;
}

/* 响应式 */
@media (max-width: 1200px) {
  .stele-container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, auto);
  }
  
  .stele-main {
    grid-column: 1 / 3;
    grid-row: 1;
  }
  
  .stele:not(.stele-main):nth-child(2) { grid-column: 1; grid-row: 2; }
  .stele:not(.stele-main):nth-child(3) { grid-column: 2; grid-row: 2; }
  .stele:not(.stele-main):nth-child(4) { grid-column: 1; grid-row: 3; }
  .stele:not(.stele-main):nth-child(5) { grid-column: 2; grid-row: 3; }
}

@media (max-width: 768px) {
  .stele-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  
  .stele, .stele-main {
    grid-column: 1 !important;
    width: 100% !important;
    max-width: 320px;
  }
  
  .stele-temple {
    padding: 30px 20px;
  }
}

/* 纪年页面 */
.jinian-section {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

.event-form {
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
}

.event-form h3 {
  margin-bottom: 15px;
  font-size: 16px;
}

.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary) 0%, #333 100%);
}

.timeline-item {
  position: relative;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--card);
  border-radius: 12px;
  border-left: 3px solid var(--primary);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 25px;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  border: 2px solid var(--bg);
}

.timeline-date {
  font-size: 14px;
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: bold;
}

.timeline-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.timeline-content {
  font-size: 14px;
  line-height: 1.6;
  color: #ccc;
}

.timeline-meta {
  margin-top: 10px;
  font-size: 12px;
  color: #666;
}

/* 谱碟页面 */
.pudie-section {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

.member-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.member-card {
  background: var(--card);
  border-radius: 12px;
  padding: 25px;
  border: 2px solid #3a3a5a;
  cursor: pointer;
  transition: all 0.3s ease;
}

.member-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.member-card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #3a3a5a;
}

.member-avatar {
  font-size: 50px;
}

.member-info h3 {
  font-size: 20px;
  margin-bottom: 5px;
  color: var(--primary);
}

.member-info p {
  font-size: 14px;
  color: #888;
}

.member-card-body {
  font-size: 14px;
  line-height: 1.8;
}

.member-card-body p {
  margin-bottom: 10px;
}

.member-card-body strong {
  color: #aaa;
}

.member-card-body span {
  color: #ccc;
}

.pudie-editor {
  background: var(--card);
  padding: 30px;
  border-radius: 12px;
  margin-top: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.pudie-editor h3 {
  margin-bottom: 20px;
  text-align: center;
  color: var(--primary);
}

/* 宝藏页面 */
.treasure-section {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

.treasure-upload {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .treasure-upload {
    grid-template-columns: 1fr;
  }
}

.upload-area {
  background: var(--card);
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.upload-area:hover,
.upload-area.dragover {
  border-color: var(--primary);
  background: rgba(255, 107, 53, 0.1);
}

.upload-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.upload-area p {
  margin-bottom: 10px;
  color: #ccc;
}

.upload-hint {
  font-size: 12px;
  color: #666;
}

.upload-info {
  background: var(--card);
  border-radius: 12px;
  padding: 20px;
  font-size: 14px;
  line-height: 1.8;
  color: #888;
}

.upload-info p {
  margin-bottom: 10px;
}

.treasure-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.treasure-item {
  background: var(--card);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.treasure-item:hover {
  border-color: var(--primary);
  transform: translateX(5px);
}

.treasure-icon {
  font-size: 32px;
  min-width: 50px;
  text-align: center;
}

.treasure-info {
  flex: 1;
  min-width: 0;
}

.treasure-name {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
  word-break: break-all;
}

.treasure-meta {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: #888;
  flex-wrap: wrap;
}

.treasure-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.treasure-actions a {
  text-decoration: none;
}

/* 任务卡片高度限制 */




.kanban-list {
  max-height: 500px;
  overflow-y: auto;
  padding-right: 5px;
}

.kanban-list::-webkit-scrollbar {
  width: 6px;
}

.kanban-list::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
}

.kanban-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
}

.kanban-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.5);
}
/* 任务卡片容器 */
.task-card-wrapper {
  perspective: 1000px;
}

/* 任务卡片 - 翻转效果 */
.task-card {
  background: var(--card);
  padding: 15px;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  min-height: 70px;
}

.task-card.flipped {
  transform: rotateY(180deg);
}

/* 正面和背面 */
.task-card-front, .task-card-back {
  backface-visibility: hidden;
}

.task-card-front {
  position: relative;
}

.task-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 15px;
  transform: rotateY(180deg);
  overflow-y: auto;
  background: var(--card);
  border-radius: 12px;
}

/* 标题样式 */
.task-card-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 摘要信息 */
.task-card-meta {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: #888;
}

/* 操作按钮 - 悬停显示 */
.task-card-actions {
  display: none;
  margin-top: 10px;
  gap: 5px;
}

.task-card:hover .task-card-actions {
  display: flex;
}

/* 详情样式 */
.task-detail {
  font-size: 13px;
}

.task-detail-item {
  margin-bottom: 10px;
}

.task-detail-label {
  font-weight: 500;
  color: #888;
  margin-bottom: 4px;
}

/* 光柱效果 */
.task-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
}

.task-card.pending::before {
  background: linear-gradient(180deg, #888, #aaa);
}

.task-card.in_progress::before {
  background: linear-gradient(180deg, #ff6600, #ffcc00);
}

.task-card.completed::before {
  background: linear-gradient(180deg, #00cc66, #99ff99);
}

/* ===== 谱碟页面样式 ===== */
.member-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.member-card {
  background: linear-gradient(135deg, var(--card) 0%, #252545 100%);
  border-radius: 16px;
  padding: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.member-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #ff9966);
}

.member-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
}

.member-card.active {
  border-color: var(--primary);
  background: linear-gradient(135deg, #252545 0%, var(--card) 100%);
}

.member-avatar {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), #ff9966);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 15px;
}

.member-card .member-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.member-card .member-motto {
  font-size: 13px;
  color: #888;
  font-style: italic;
  line-height: 1.4;
}

/* 成员详情面板 */
.member-detail-panel {
  background: var(--card);
  border-radius: 16px;
  padding: 30px;
  margin-top: 20px;
}

.member-detail-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.member-detail-header .member-avatar {
  width: 80px;
  height: 80px;
  font-size: 36px;
}

.member-detail-header .member-info {
  flex: 1;
}

.member-detail-header h2 {
  font-size: 24px;
  margin-bottom: 5px;
}

.member-motto-display {
  color: #888;
  font-style: italic;
}

.member-detail-body {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-bottom: 30px;
}

.detail-section {
  background: rgba(255,255,255,0.02);
  padding: 20px;
  border-radius: 12px;
}

.detail-section h4 {
  font-size: 14px;
  color: var(--primary);
  margin-bottom: 10px;
}

.detail-section p {
  font-size: 15px;
  line-height: 1.6;
  color: #ccc;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  background: linear-gradient(135deg, var(--primary), #ff9966);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
}

/* 大事记样式 */
.member-events {
  background: rgba(255,255,255,0.02);
  padding: 25px;
  border-radius: 12px;
}

.events-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.events-header h4 {
  font-size: 16px;
  color: var(--primary);
}

.events-timeline {
  position: relative;
  padding-left: 30px;
}

.events-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.event-item {
  position: relative;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.event-item:last-child {
  border-bottom: none;
}

.event-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 20px;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  border: 2px solid var(--bg);
}

.event-date {
  font-size: 12px;
  color: #888;
  margin-bottom: 5px;
}

.event-title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 5px;
}

.event-desc {
  font-size: 13px;
  color: #aaa;
  line-height: 1.5;
}

/* 编辑面板 */
.pudie-editor, .event-editor {
  background: var(--card);
  border-radius: 16px;
  padding: 30px;
  margin-top: 20px;
  border: 1px solid var(--primary);
}

.pudie-editor h3, .event-editor h3 {
  margin-bottom: 20px;
  color: var(--primary);
}

@media (max-width: 768px) {
  .member-detail-body {
    grid-template-columns: 1fr;
  }
  
  .member-cards {
    grid-template-columns: 1fr;
  }
}
