/* 海克斯大乱斗助手样式 */

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

body {
  font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  min-height: 100vh;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* 顶部导航 */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  font-size: 1.3rem;
  font-weight: 600;
  background: linear-gradient(90deg, #00d4ff, #7b2ff7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-link {
  color: #8892b0;
  text-decoration: none;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: #ccd6f6;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: #00d4ff;
  background: rgba(0, 212, 255, 0.1);
}

.top-nav .config-btn {
  position: static;
}

/* 页面切换 */
.page {
  display: none;
}

.page.active {
  display: block;
}

/* 头部 */
.header {
  text-align: center;
  padding: 30px 0;
  position: relative;
}

.header h1 {
  font-size: 2.5rem;
  background: linear-gradient(90deg, #00d4ff, #7b2ff7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.header p {
  color: #8892b0;
  font-size: 1.1rem;
}

.config-btn {
  position: absolute;
  top: 30px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.config-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 数据来源 */
.data-source {
  text-align: center;
  padding: 10px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  font-size: 0.85rem;
  color: #8892b0;
}

.data-source a {
  color: #00d4ff;
  text-decoration: none;
}

.data-source a:hover {
  text-decoration: underline;
}

/* 选择区域 */
.selection-info {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.selection-item {
  flex: 1;
  min-width: 250px;
}

.selection-label {
  color: #8892b0;
  font-size: 0.9rem;
  margin-right: 10px;
}

.selection-value {
  color: #00d4ff;
  font-weight: 500;
}

.selection-placeholder {
  color: #4a5568;
  font-style: italic;
}

/* 区块样式 */
.section {
  margin-bottom: 30px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.section-title {
  font-size: 1.3rem;
  color: #ccd6f6;
}

/* 搜索框 */
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-input {
  padding: 8px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: #fff;
  font-size: 0.9rem;
  width: 200px;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #00d4ff;
  background: rgba(255, 255, 255, 0.1);
}

.search-input::placeholder {
  color: #4a5568;
}

.count-badge {
  background: rgba(0, 212, 255, 0.2);
  color: #00d4ff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  min-width: 30px;
  text-align: center;
}

/* Tabs 容器 */
.tabs-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: #8892b0;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ccd6f6;
}

.tab-btn.active {
  background: rgba(0, 212, 255, 0.15);
  border-color: #00d4ff;
  color: #00d4ff;
}

.tab-icon {
  font-size: 1rem;
}

.tab-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.tab-name {
  font-weight: 500;
}

.tab-count {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* 英雄网格 */
.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.hero-card.selected {
  background: rgba(0, 212, 255, 0.15);
  border-color: #00d4ff;
}

.hero-avatar-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  margin: 0 auto 8px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-placeholder {
  font-size: 1.4rem;
  font-weight: bold;
  color: #8892b0;
}

.hero-name {
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-winrate {
  font-size: 0.65rem;
  color: #4ade80;
}

/* 海克斯区块 */
.augment-section {
  margin-bottom: 20px;
}

.augment-section-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tier-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* 海克斯图标网格 */
.augment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 12px;
}

.augment-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 8px;
  border-radius: 8px;
}

.augment-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.augment-card.selected {
  background: rgba(255, 255, 255, 0.08);
}

.augment-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  border: 2px solid transparent;
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  transition: border-color 0.3s ease;
}

.augment-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.augment-placeholder {
  font-size: 1.5rem;
  font-weight: bold;
  color: #8892b0;
}

.augment-check {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: #4ade80;
  color: #000;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
}

.augment-card .augment-name {
  font-size: 0.7rem;
  color: #ccd6f6;
  text-align: center;
  line-height: 1.3;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.augment-card.selected .augment-name {
  color: var(--tier-color, #00d4ff);
}

/* 推荐按钮 */
.recommend-section {
  text-align: center;
  margin: 30px 0;
}

.recommend-btn {
  background: linear-gradient(90deg, #00d4ff, #7b2ff7);
  color: #fff;
  border: none;
  padding: 15px 50px;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.recommend-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0, 212, 255, 0.4);
}

.recommend-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 加载状态 */
.loading {
  display: none;
  justify-content: center;
  align-items: center;
  padding: 30px;
  gap: 10px;
}

.loading-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #00d4ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  color: #8892b0;
  font-size: 1rem;
}

/* 结果区域 */
.result-area {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 30px;
  margin-top: 30px;
}

.result-area h3 {
  font-size: 1.2rem;
  color: #ccd6f6;
  margin-bottom: 20px;
}

.recommendation-item {
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
}

.rec-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.rec-rank {
  background: linear-gradient(90deg, #00d4ff, #7b2ff7);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 600;
}

.rec-augment {
  font-size: 1.1rem;
  font-weight: 600;
  color: #00d4ff;
}

.rec-reason {
  color: #ccd6f6;
  line-height: 1.6;
  font-size: 0.95rem;
}

.result-analysis {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.analysis-content {
  color: #ccd6f6;
  line-height: 1.8;
  font-size: 0.95rem;
}

.result-error {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px;
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.3);
  border-radius: 10px;
  color: #ff6b6b;
}

.error-icon {
  font-size: 1.5rem;
}

.result-raw pre {
  background: rgba(0, 0, 0, 0.3);
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.85rem;
  color: #8892b0;
}

/* 配置弹窗 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #1a1a2e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 30px;
  width: 90%;
  max-width: 450px;
}

.modal-title {
  font-size: 1.3rem;
  color: #ccd6f6;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: #8892b0;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #00d4ff;
}

.form-group input::placeholder {
  color: #4a5568;
}

.modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.btn {
  padding: 10px 25px;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(90deg, #00d4ff, #7b2ff7);
  color: #fff;
  border: none;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background: transparent;
  color: #8892b0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Checkbox 样式 */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #8892b0;
  font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #00d4ff;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .header h1 {
    font-size: 1.8rem;
  }

  .config-btn {
    position: static;
    margin-top: 15px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-input {
    width: 100%;
  }

  .tabs-container {
    gap: 6px;
  }

  .tab-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .hero-grid {
    grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
  }

  .augment-grid {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 8px;
  }

  .augment-icon-wrapper {
    width: 48px;
    height: 48px;
  }

  .selection-info {
    flex-direction: column;
  }

  .recommend-btn {
    padding: 12px 40px;
    font-size: 1rem;
  }

  .chat-messages {
    height: 300px;
  }
}

/* 对话框样式 */
.chat-section {
  margin-top: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
}

.chat-header {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-header .section-title {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.chat-area {
  display: flex;
  flex-direction: column;
}

.chat-messages {
  height: 400px;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.chat-message {
  display: flex;
  gap: 12px;
  max-width: 80%;
}

.chat-message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-message.system {
  align-self: center;
  max-width: 90%;
}

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.message-content {
  background: rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  border-radius: 12px;
  line-height: 1.6;
  font-size: 0.95rem;
}

.chat-message.user .message-content {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(123, 47, 247, 0.2));
}

.chat-message.system .message-content {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.2);
  text-align: center;
  font-size: 0.9rem;
}

.chat-input-area {
  display: flex;
  gap: 10px;
  padding: 15px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.chat-input {
  flex: 1;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.chat-input:focus {
  border-color: #00d4ff;
}

.chat-input::placeholder {
  color: #4a5568;
}

.chat-send {
  padding: 12px 25px;
  background: linear-gradient(90deg, #00d4ff, #7b2ff7);
  color: #fff;
  border: none;
  border-radius: 25px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chat-send:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* 滚动条样式 */
.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* 图鉴页面 */
.codex-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.codex-header .section-title {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.codex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.codex-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.codex-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--tier-color, #00d4ff);
  transform: translateY(-2px);
}

.codex-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: 2px solid;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.codex-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.codex-placeholder {
  font-size: 1.1rem;
  font-weight: bold;
  color: #8892b0;
}

.codex-info {
  width: 100%;
}

.codex-name {
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.codex-tier {
  font-size: 0.7rem;
  color: #8892b0;
}

/* 英雄图鉴网格 */
.codex-hero-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.codex-hero-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #00d4ff;
  transform: translateY(-2px);
}

.codex-hero-avatar {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.codex-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.codex-hero-avatar .placeholder {
  font-size: 1.3rem;
  font-weight: bold;
  color: #8892b0;
}

.codex-hero-name {
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.codex-hero-tags {
  font-size: 0.65rem;
  color: #8892b0;
}

.codex-hero-winrate {
  font-size: 0.7rem;
  color: #4ade80;
  margin-top: 2px;
}

/* 详情弹窗 */
.detail-modal-content {
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #8892b0;
  font-size: 1.5rem;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.detail-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.detail-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  border: 3px solid;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-icon-placeholder {
  font-size: 2.5rem;
  font-weight: bold;
  color: #8892b0;
}

.detail-title h2 {
  margin-bottom: 8px;
}

.detail-tier-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.detail-section {
  margin-bottom: 20px;
}

.detail-section h3 {
  font-size: 1rem;
  color: #ccd6f6;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-desc {
  color: #ccd6f6;
  line-height: 1.8;
  font-size: 0.95rem;
}

.detail-heroes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-hero-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  min-width: 70px;
}

.detail-hero-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.detail-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero-avatar .placeholder {
  font-size: 1.1rem;
  font-weight: bold;
  color: #8892b0;
}

.detail-hero-name {
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 2px;
  text-align: center;
}

.detail-hero-tags {
  font-size: 0.6rem;
  color: #8892b0;
}

.detail-tips {
  color: #ccd6f6;
  line-height: 1.6;
  font-size: 0.9rem;
}

/* 图鉴类型切换 */
.codex-type-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.codex-type-btn {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #8892b0;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.codex-type-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ccd6f6;
}

.codex-type-btn.active {
  background: rgba(0, 212, 255, 0.15);
  border-color: #00d4ff;
  color: #00d4ff;
}

.codex-section {
  display: none;
}

.codex-section.active {
  display: block;
}

/* 英雄详情大图 */
.detail-hero-large {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.detail-hero-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero-large .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: bold;
  color: #8892b0;
}

.detail-hero-info {
  display: flex;
  gap: 15px;
  align-items: center;
}

.detail-hero-role {
  color: #8892b0;
  font-size: 0.9rem;
}

.detail-hero-winrate {
  color: #4ade80;
  font-size: 0.9rem;
}

/* 推荐海克斯列表 */
.detail-augments {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-augment-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.detail-augment-card:hover {
  border-color: var(--tier-color, #00d4ff);
  background: rgba(255, 255, 255, 0.1);
}

.detail-augment-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 2px solid;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-augment-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-augment-icon span {
  font-size: 1rem;
  font-weight: bold;
  color: #8892b0;
}

.detail-augment-info {
  min-width: 0;
}

.detail-augment-name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-augment-tier {
  font-size: 0.7rem;
  color: #8892b0;
}

/* Tooltip 样式 */
.tooltip-wrapper {
  position: relative;
  cursor: pointer;
}

.tooltip {
  position: fixed;
  background: #1a1a2e;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px 15px;
  width: 280px;
  max-width: 90vw;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #ccd6f6;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  pointer-events: none;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* 响应式 */
@media (max-width: 768px) {
  .top-nav {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 15px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .codex-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .codex-type-tabs {
    flex-wrap: wrap;
  }

  .detail-header {
    flex-direction: column;
    text-align: center;
  }

  .detail-augments {
    justify-content: center;
  }
}
