
/* game_guild/frontend/css/style.css */
@import url('https://fonts.loli.net/css?family=Noto+Serif+SC|Roboto&display=swap');

:root {
  --primary: #6366f1;
  --primary-light: #818cf8;
  --secondary: #4b5563;
  --accent: #d946ef;
  --light: #f8fafc;
  --dark: #0f172a;
  --gray: #e2e8f0;
  --gray-dark: #94a3b8;
}

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

body {
  font-family: 'Roboto', sans-serif;
  background-color: #0f172a;
  color: #e2e8f0;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Serif SC', serif;
  font-weight: 600;
  color: var(--light);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 游戏主题卡片样式 */
.card {
  background: #1e293b;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #334155;
}

.card:hover {
  box-shadow: 0 10px 15px rgba(99, 102, 241, 0.2);
  transform: translateY(-3px);
}

/* 游戏主题按钮样式 */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

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

.btn-primary:hover {
  background-color: #4f46e5;
}

.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

/* 游戏主题表单元素 */
.form-control {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid var(--gray-dark);
  border-radius: 4px;
  transition: border-color 0.3s ease;
  background-color: #1e293b;
  color: white;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* 导航链接 */
.nav-link {
  position: relative;
  color: var(--gray-dark);
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link.active {
  color: var(--primary);
  font-weight: 500;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
}

/* 面包屑导航 */
.breadcrumb {
  font-size: 0.875rem;
  color: var(--gray-dark);
}

.breadcrumb a {
  color: var(--gray-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.breadcrumb .separator {
  margin: 0 8px;
  color: var(--gray-dark);
}

/* 游戏主题表格样式 */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #334155;
}

.table th {
  background-color: #1e293b;
  font-weight: 600;
}

.table tr:hover {
  background-color: rgba(99, 102, 241, 0.05);
}

/* 响应式媒体查询 */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .table-responsive {
    overflow-x: auto;
  }
  
  .table th,
  .table td {
    padding: 8px 10px;
  }
}

/* 游戏主题工具提示 */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: 120px;
  background-color: var(--dark);
  color: white;
  text-align: center;
  border-radius: 4px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* 动画效果 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

/* 游戏主题页脚样式 */
.footer {
  background-color: var(--dark);
  color: white;
  padding: 40px 0;
}

.footer a {
  color: var(--gray-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: white;
}

.footer-title {
  font-size: 1.25rem;
  margin-bottom: 20px;
  color: white;
}

.footer-list {
  list-style: none;
}

.footer-list li {
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--gray-dark);
}

/* 游戏主题特殊效果 */
.text-gradient {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

/* 游戏主题粒子效果 */
.particles-js-canvas-el {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.3;
}

/* 游戏主题卡片悬停效果 */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

/* 游戏图标特效 */
.game-icon {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
