/* AI生成式引擎 - GEO地理监控平台 统一样式 */

/* 全局样式 - 科技感基底 */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  /* 深色科技渐变背景 */
  background: radial-gradient(circle at top right, #0a102a 0%, #050a1a 100%);
  font-family: 'Segoe UI', Roboto, 'Inter', sans-serif;
  font-size: 14px;
  color: #e0efff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* 科技感背景网格（轻微） */
  background-image:
    linear-gradient(rgba(22, 93, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 93, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  background-attachment: fixed;
}
input[type="date"] {
    background: rgba(10, 18, 40, 0.8) !important;
    color: #e0efff !important;
    border: 1px solid rgba(22, 93, 255, 0.2) !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    transition: all 0.3s ease;
  }
  
  input[type="date"]:focus {
    outline: none;
    border-color: #00ccff !important;
    box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.15) !important;
  }
  
  input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.8) sepia(1) saturate(5) hue-rotate(180deg);
    cursor: pointer;
  }
/* 页面容器 */
.page-container {
  padding: 24px;
  min-height: 100vh;
}

/* 标题样式 - 科技发光字 */
.page-title {
  font-size: 24px;
  font-weight: 700;
  color: #1d2129;
  margin-bottom: 8px;
  line-height: 1.2;
  text-shadow: 0 0 12px rgba(22, 93, 255, 0.4);
  letter-spacing: 0.5px;
}

.page-desc {
  font-size: 14px;
  color: rgba(14, 22, 48, 0.7);
  margin-bottom: 24px;
  opacity: 0.8;
}

/* 卡片样式 - 科技玻璃态 + 霓虹边框 */
.card {
  background: rgba(14, 22, 48, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(22, 93, 255, 0.15);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(22, 93, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  /* AI科技蓝渐变 */
  background: linear-gradient(180deg, #00ccff 0%, #165dff 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  box-shadow: 0 0 8px rgba(22, 93, 255, 0.6);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.3),
    0 0 18px rgba(22, 93, 255, 0.15);
  border-color: rgba(0, 204, 255, 0.3);
}

.card:hover::before {
  opacity: 1;
}

/* 卡片头部 */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(22, 93, 255, 0.15);
}

.card-title {
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(22, 93, 255, 0.2);
}

/* 按钮样式 - 霓虹科技按钮 */
.btn {
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.btn:hover::before {
  width: 350px;
  height: 350px;
}

.btn-primary {
  background: linear-gradient(135deg, #165dff 0%, #00ccff 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(22, 93, 255, 0.3);
  text-shadow: 0 0 4px rgba(255,255,255,0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0d4ed2 0%, #00a0e9 100%);
  box-shadow: 0 6px 24px rgba(22, 93, 255, 0.45);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(28, 40, 77, 0.6);
  color: #b8cfff;
  border: 1px solid rgba(22, 93, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(40, 55, 100, 0.7);
  border-color: rgba(0, 204, 255, 0.4);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(22, 93, 255, 0.15);
}

/* 表单样式 - 科技输入框 */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #a0c4ff;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(10, 18, 40, 0.6);
  border: 1px solid rgba(22, 93, 255, 0.2);
  border-radius: 10px;
  font-size: 14px;
  color: #e0efff;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.form-control:focus {
  outline: none;
  border-color: #00ccff;
  box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.2);
  background: rgba(14, 24, 52, 0.8);
}

/* 表格样式 - 数据面板风格 */
.table-container {
  border: 1px solid rgba(22, 93, 255, 0.15);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  background: rgba(12, 18, 40, 0.5);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th {
  background: rgba(22, 35, 71, 0.8);
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: #b8cfff;
  border-bottom: 2px solid rgba(22, 93, 255, 0.25);
  position: sticky;
  top: 0;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 13px;
}

.table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(22, 93, 255, 0.08);
 
  transition: background-color 0.2s ease;
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover {
  background: rgba(22, 35, 71, 0.4);
}

/* 筛选区域 - 科技控制台 */
.filter-section {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  padding: 20px;
  background: rgba(14, 22, 48, 0.6);
  border-radius: 16px;
  border: 1px solid rgba(22, 93, 255, 0.15);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-label {
  font-size: 14px;
  color: #a0c4ff;
  font-weight: 500;
}

/* 平台按钮组 */
.platform-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.platform-btn {
  padding: 8px 16px;
  border: 1px solid rgba(22, 93, 255, 0.2);
  border-radius: 10px;
  background: rgba(18, 28, 58, 0.6);
  font-size: 14px;
  color: #a0c4ff;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.platform-btn:hover {
  border-color: #00ccff;
  color: #ffffff;
  background: rgba(22, 35, 71, 0.6);
  box-shadow: 0 0 8px rgba(0,204,255,0.2);
}

.platform-btn.active {
  background: linear-gradient(135deg, #165dff 0%, #00ccff 100%);
  color: #fff;
  border-color: #00ccff;
  box-shadow: 0 4px 16px rgba(22, 93, 255, 0.4);
}

/* 日期选择器 */
.date-selector {
  display: flex;
  align-items: center;
  gap: 12px;
}

.date-input {
  padding: 8px 12px;
  border: 1px solid rgba(22, 93, 255, 0.2);
  border-radius: 10px;
  font-size: 14px;
  background: rgba(10, 18, 40, 0.6);
  color: #e0efff;
  transition: all 0.3s ease;
}

.date-input:focus {
  outline: none;
  border-color: #00ccff;
  box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.15);
}

/* 统计卡片 - GEO数据看板 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  background: rgba(14, 22, 48, 0.7);
  border: 1px solid rgba(22, 93, 255, 0.15);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  border-color: rgba(0,204,255,0.3);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #165dff 0%, #00ccff 100%);
  box-shadow: 0 0 12px rgba(22, 93, 255, 0.4);
}

.stat-value {
  font-size: 30px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(22, 93, 255, 0.3);
}

.stat-label {
  font-size: 14px;
  color: #8cb6ff;
  font-weight: 500;
  opacity: 0.9;
}

/* 图表容器 */
.chart-container {
  position: relative;
  height: 340px;
  margin-bottom: 20px;
  background: rgba(10, 16, 36, 0.4);
  border-radius: 12px;
  padding: 12px;
}

/* 评价标签 - AI情感分析风格 */
.evaluation-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.evaluation-tab {
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.evaluation-tab.positive {
  background: rgba(14, 159, 110, 0.15);
  color: #4ade80;
  border: 1px solid rgba(14, 159, 110, 0.3);
}

.evaluation-tab.neutral {
  background: rgba(100, 116, 139, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

.evaluation-tab.negative {
  background: rgba(207, 19, 34, 0.15);
  color: #f87171;
  border: 1px solid rgba(207, 19, 34, 0.3);
}

.evaluation-tab.active.positive {
  background: #10b981;
  color: #fff;
  box-shadow: 0 0 10px rgba(14, 159, 110, 0.4);
}

.evaluation-tab.active.neutral {
  background: #64748b;
  color: #fff;
  box-shadow: 0 0 10px rgba(100, 116, 139, 0.4);
}

.evaluation-tab.active.negative {
  background: #ef4444;
  color: #fff;
  box-shadow: 0 0 10px rgba(207, 19, 34, 0.4);
}

/* 关键词列表 */
.keywords-list {
  border: 1px solid rgba(22, 93, 255, 0.15);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(12, 18, 40, 0.5);
}

.keyword-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(22, 93, 255, 0.08);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.keyword-item:last-child {
  border-bottom: none;
}

.keyword-item:hover {
  background: rgba(22, 35, 71, 0.3);
}

.keyword-item.active {
  background: rgba(22, 35, 71, 0.5);
  border-left: 3px solid #165dff;
}

.keyword-name {
  font-size: 13px;
  color: #d0e0ff;
}

.keyword-count {
  font-size: 12px;
  color: #8cb6ff;
}

/* 平台引用 */
.platform-references {
  border: 1px solid rgba(22, 93, 255, 0.15);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(12, 18, 40, 0.5);
}

.reference-item {
  border-bottom: 1px solid rgba(22, 93, 255, 0.08);
}

.reference-item:last-child {
  border-bottom: none;
}

.reference-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(22, 35, 71, 0.5);
  border-bottom: 1px solid rgba(22, 93, 255, 0.15);
}

.reference-platform {
  font-size: 13px;
  font-weight: 500;
  color: #b8cfff;
}

.reference-content {
  padding: 16px;
  font-size: 13px;
  color: #d0e0ff;
  line-height: 1.5;
}

/* 分页样式 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 20px 0;
}

.pagination-item {
  padding: 8px 14px;
  border: 1px solid rgba(22, 93, 255, 0.2);
  border-radius: 8px;
  background: rgba(14, 22, 48, 0.6);
  font-size: 13px;
  color: #a0c4ff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination-item:hover {
  border-color: #00ccff;
  color: #ffffff;
  background: rgba(22, 35, 71, 0.6);
}

.pagination-item.active {
  background: linear-gradient(135deg, #165dff 0%, #00ccff 100%);
  color: #fff;
  border-color: #00ccff;
  box-shadow: 0 0 10px rgba(22, 93, 255, 0.3);
}

/* 状态标签 */
.status-tag {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.status-active {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.status-pending {
  background: rgba(250, 204, 21, 0.15);
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.3);
}

.status-inactive {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* 加载动画 - 科技感旋转 */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: #8cb6ff;
}

.loading::after {
  content: '';
  width: 22px;
  height: 22px;
  border: 2px solid rgba(22, 93, 255, 0.2);
  border-top: 2px solid #00ccff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 10px;
  box-shadow: 0 0 8px rgba(0,204,255,0.3);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 登录页面 - 科技感登录 */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #0d132e 0%, #050a1a 100%);
}

.login-container {
  width: 100%;
  max-width: 420px;
  padding: 20px;
}

.login-card {
  background: rgba(14, 22, 48, 0.8);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(22, 93, 255, 0.2);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 15px 45px rgba(0,0,0,0.3);
  transition: box-shadow 0.4s ease;
}

.login-card:hover {
  box-shadow: 0 20px 60px rgba(22, 93, 255, 0.15);
}

.card-header-custom {
  text-align: center;
  margin-bottom: 30px;
}

.card-header-custom h4 {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  text-shadow: 0 0 12px rgba(22, 93, 255, 0.4);
}

.card-header-custom p {
  font-size: 14px;
  color: #8cb6ff;
  opacity: 0.9;
}

/* 登录注册标签页 */
.nav-tabs {
  border-bottom: 1px solid rgba(22, 93, 255, 0.15);
  margin-bottom: 24px;
}

.nav-tabs .nav-item {
  flex: 1;
}

.nav-tabs .nav-link {
  position: relative;
  padding: 12px 0;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: #8cb6ff;
  border: none;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  background: transparent;
  border-radius: 0;
}

.nav-tabs .nav-link:hover {
  color: #00ccff;
  border-bottom-color: rgba(0, 204, 255, 0.3);
}

.nav-tabs .nav-link.active {
  color: #165dff;
  border-bottom-color: #165dff;
  font-weight: 600;
}

/* 错误提示 */
.invalid-feedback {
  font-size: 12px;
  color: #f87171;
  margin-top: 4px;
  display: none;
}

.is-invalid + .invalid-feedback {
  display: block;
}

.is-invalid {
  border-color: #ef4444 !important;
}

.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .page-container {
    padding: 16px;
  }
  
  .filter-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .platform-buttons {
    flex-wrap: wrap;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .chart-container {
    height: 280px;
  }
  
  .login-container {
    padding: 16px;
  }
  
  .login-card {
    padding: 24px;
  }
}