/* ===== 科幻风格 SEO周报系统 ===== */
:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.7);
  --neon-blue: #00d4ff;
  --neon-purple: #a855f7;
  --neon-pink: #ec4899;
  --neon-green: #10b981;
  --neon-red: #ef4444;
  --neon-yellow: #f59e0b;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-glow: rgba(0, 212, 255, 0.3);
  --glass-bg: rgba(15, 23, 42, 0.6);
  --glass-border: rgba(0, 212, 255, 0.15);
}

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

body {
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* 动态背景网格 */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* 光晕效果 */
body::after {
  content: '';
  position: fixed;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 70% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
  animation: glowPulse 8s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

#app { position: relative; z-index: 1; }

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

.login-box {
  width: 100%;
  max-width: 420px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 48px 40px;
  box-shadow: 0 0 60px rgba(0, 212, 255, 0.1), inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}

.login-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-blue), var(--neon-purple), transparent);
  animation: borderFlow 3s linear infinite;
}

@keyframes borderFlow {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.login-logo {
  text-align: center;
  margin-bottom: 36px;
}

.login-logo h1 {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}

.login-logo p {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 8px;
  letter-spacing: 1px;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.3s;
  outline: none;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--neon-blue);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
  background: rgba(0, 0, 0, 0.5);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
  font-family: monospace;
  font-size: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 1px;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: rgba(0, 212, 255, 0.1);
  color: var(--neon-blue);
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(0, 212, 255, 0.2);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--neon-red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
}

.btn-sm { padding: 8px 16px; font-size: 12px; }

.btn-block { width: 100%; }

.login-hint {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== 主布局 ===== */
.main-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--glass-border);
  padding: 24px 0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
}

.sidebar-logo {
  padding: 0 24px 24px;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 16px;
}

.sidebar-logo h2 {
  font-size: 18px;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-logo p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.nav-menu { list-style: none; }

.nav-item {
  padding: 14px 24px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 14px;
  border-left: 3px solid transparent;
}

.nav-item:hover {
  background: rgba(0, 212, 255, 0.05);
  color: var(--neon-blue);
}

.nav-item.active {
  background: rgba(0, 212, 255, 0.1);
  color: var(--neon-blue);
  border-left-color: var(--neon-blue);
}

.nav-item .icon { font-size: 18px; width: 24px; text-align: center; }

.sidebar-footer {
  position: absolute;
  bottom: 24px;
  left: 0; right: 0;
  padding: 0 24px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  margin-bottom: 12px;
}

.user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.user-details { flex: 1; min-width: 0; }

.user-name {
  font-size: 13px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 11px;
  color: var(--neon-blue);
}

.logout-btn {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--neon-red);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.3s;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* ===== 主内容区 ===== */
.main-content {
  margin-left: 240px;
  flex: 1;
  padding: 32px;
  min-height: 100vh;
}

.page-header {
  margin-bottom: 32px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 6px;
}

/* ===== 卡片 ===== */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
  opacity: 0.5;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title .title-text {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title .title-text::before {
  content: '';
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg, var(--neon-blue), var(--neon-purple));
  border-radius: 2px;
}

/* ===== 晨报「今日关注点」滚动条 ===== */
.brief-ticker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 10px 16px;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 10px;
}

.brief-ticker-label {
  flex-shrink: 0;
  color: var(--neon-blue);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.brief-ticker-viewport {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 22px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.brief-ticker-track {
  position: absolute;
  top: 0;
  left: 100%;
  line-height: 22px;
  white-space: nowrap;
  color: #ef4444;
  font-size: 14px;
  will-change: transform;
  animation: briefTickerScroll 20s linear infinite;
}

.brief-ticker:hover .brief-ticker-track {
  animation-play-state: paused;
}

.brief-ticker-anomaly {
  color: #ef4444;
  font-weight: 600;
}

@keyframes briefTickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - var(--ticker-vp, 100vw))); }
}

/* ===== 指标卡片 ===== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.metric-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.metric-card:hover {
  transform: translateY(-4px);
  border-color: var(--neon-blue);
  box-shadow: 0 10px 40px rgba(0, 212, 255, 0.15);
}

.metric-card::after {
  content: '';
  position: absolute;
  top: -50%; right: -50%;
  width: 100%; height: 100%;
  background: radial-gradient(circle, var(--metric-color, rgba(0,212,255,0.1)) 0%, transparent 70%);
  pointer-events: none;
}

.metric-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.metric-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.metric-change {
  margin-top: 12px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.metric-change.up { color: var(--neon-green); }
.metric-change.down { color: var(--neon-red); }

/* ===== 图表区 ===== */
.charts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 1200px) {
  .charts-grid { grid-template-columns: 1fr; }
}

.chart-container {
  width: 100%;
  height: 300px;
}

/* ===== 表格 ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  padding: 14px 16px;
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--glass-border);
}

/* 表头名词解释tooltip */
.data-table th.tip {
  position: relative;
  cursor: help;
  border-bottom: 1px dashed var(--text-secondary);
}
.data-table th.tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 15, 30, 0.95);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: normal;
  text-transform: none;
  letter-spacing: normal;
  white-space: nowrap;
  border: 1px solid var(--neon-blue);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 100;
  pointer-events: none;
}
.data-table th.tip:hover::after {
  opacity: 1;
  visibility: visible;
}

.data-table td {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(0, 212, 255, 0.05);
}

.data-table tr:hover td {
  background: rgba(0, 212, 255, 0.03);
}

/* ===== 状态标签 ===== */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.badge-success { background: rgba(16, 185, 129, 0.15); color: var(--neon-green); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: var(--neon-yellow); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: var(--neon-red); }
.badge-info { background: rgba(0, 212, 255, 0.15); color: var(--neon-blue); }
.badge-muted { background: rgba(100, 116, 139, 0.15); color: var(--text-muted); }

/* ===== 报告详情 ===== */
.report-content {
  line-height: 1.8;
  color: var(--text-primary);
}

.report-content h1, .report-content h2, .report-content h3 {
  color: var(--neon-blue);
  margin: 24px 0 12px;
}

.report-content h2 {
  font-size: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--glass-border);
}

.report-content h3 { font-size: 17px; }

.report-content p { margin-bottom: 12px; color: var(--text-secondary); }

.report-content ul, .report-content ol {
  margin: 12px 0;
  padding-left: 24px;
}

.report-content li { margin-bottom: 8px; color: var(--text-secondary); }

.report-content strong { color: var(--neon-blue); }

.report-content code {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--neon-purple);
}

/* ===== 设置页 ===== */
.settings-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--glass-border);
  flex-wrap: wrap;
}

.settings-tab {
  padding: 12px 20px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 14px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}

.settings-tab:hover { color: var(--neon-blue); }

.settings-tab.active {
  color: var(--neon-blue);
  border-bottom-color: var(--neon-blue);
}

.settings-panel { display: none; }
.settings-panel.active { display: block; }

.setting-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.setting-row .form-group { flex: 1; margin-bottom: 0; }

.setting-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
}

/* ===== 提示消息 ===== */
.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  padding: 16px 24px;
  border-radius: 10px;
  font-size: 14px;
  z-index: 9999;
  animation: slideIn 0.3s ease;
  backdrop-filter: blur(10px);
}

.toast-success {
  background: rgba(16, 185, 129, 0.9);
  color: #fff;
  border: 1px solid var(--neon-green);
}

.toast-error {
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  border: 1px solid var(--neon-red);
}

.toast-info {
  background: rgba(0, 212, 255, 0.9);
  color: #fff;
  border: 1px solid var(--neon-blue);
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ===== 加载动画 ===== */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 212, 255, 0.2);
  border-top-color: var(--neon-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state .icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state p { font-size: 14px; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.3s; }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; padding: 20px; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .login-box { padding: 32px 24px; }
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(0, 212, 255, 0.5); }

/* ===== 周报卡片 ===== */
.report-card:hover {
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
  transform: translateY(-2px);
}

.report-content h1, .report-content h2, .report-content h3 {
  color: var(--neon-blue);
  margin-top: 24px;
  margin-bottom: 12px;
}

.report-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.report-content th, .report-content td {
  border: 1px solid rgba(255,255,255,0.1);
  padding: 10px 14px;
  text-align: left;
}

.report-content th {
  background: rgba(0, 212, 255, 0.1);
  color: var(--neon-blue);
}

.report-content ul, .report-content ol {
  padding-left: 24px;
  margin: 12px 0;
}

.report-content li {
  margin: 6px 0;
  line-height: 1.7;
}

.report-content p {
  line-height: 1.8;
  margin: 10px 0;
}

.report-content strong {
  color: var(--neon-purple);
}

.report-content code {
  background: rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

.report-content blockquote {
  border-left: 3px solid var(--neon-blue);
  padding-left: 16px;
  margin: 16px 0;
  color: var(--text-secondary);
}

/* ===== 周报详情页 ===== */
.report-detail-header {
  margin-bottom: 20px;
}

.report-detail-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.report-detail-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px 0;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.report-detail-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--text-primary);
}

.meta-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.report-detail-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.report-detail-card {
  padding: 32px 40px;
}

/* 周报详情布局：左侧目录 + 右侧内容 */
.report-detail-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.report-toc {
  position: sticky;
  top: 20px;
  width: 220px;
  flex-shrink: 0;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 12px;
  padding: 16px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.toc-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--neon-blue);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.toc-item {
  display: block;
  padding: 6px 10px;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
  cursor: pointer;
}

.toc-item:hover {
  background: rgba(0, 212, 255, 0.1);
  color: var(--neon-blue);
}

.toc-level-3 {
  padding-left: 20px;
  font-size: 11px;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .report-detail-layout {
    flex-direction: column;
  }
  .report-toc {
    position: static;
    width: 100%;
    max-height: none;
  }
}

.report-content {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-primary);
}

.report-content h1 {
  font-size: 22px;
  color: var(--neon-blue);
  border-bottom: 2px solid rgba(0, 212, 255, 0.2);
  padding-bottom: 10px;
  margin: 32px 0 18px 0;
}

.report-content h2 {
  font-size: 19px;
  color: var(--neon-blue);
  margin: 28px 0 14px 0;
  padding-left: 12px;
  border-left: 4px solid var(--neon-blue);
}

.report-content h3 {
  font-size: 16px;
  color: var(--neon-purple);
  margin: 22px 0 12px 0;
}

.report-content h4 {
  font-size: 15px;
  color: var(--neon-pink);
  margin: 18px 0 10px 0;
}

.report-content p {
  margin: 12px 0;
  line-height: 1.9;
}

.report-content strong {
  color: var(--neon-purple);
  font-weight: 600;
}

.report-content em {
  color: var(--neon-pink);
  font-style: normal;
}

.report-content ul, .report-content ol {
  padding-left: 28px;
  margin: 14px 0;
}

.report-content li {
  margin: 8px 0;
  line-height: 1.8;
}

.report-content ul li::marker {
  color: var(--neon-blue);
}

.report-content ol li::marker {
  color: var(--neon-purple);
  font-weight: 600;
}

.report-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 13px;
  border-radius: 8px;
  overflow: hidden;
}

.report-content th {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(168, 85, 247, 0.1));
  color: var(--neon-blue);
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid rgba(0, 212, 255, 0.3);
  white-space: nowrap;
}

.report-content td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.report-content tr:hover td {
  background: rgba(0, 212, 255, 0.04);
}

.report-content blockquote {
  border-left: 4px solid var(--neon-purple);
  background: rgba(168, 85, 247, 0.06);
  padding: 14px 20px;
  margin: 18px 0;
  border-radius: 0 8px 8px 0;
  color: var(--text-secondary);
}

.report-content code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--neon-green);
  font-family: 'Courier New', monospace;
}

.report-content pre {
  background: rgba(0, 0, 0, 0.3);
  padding: 16px 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.report-content pre code {
  background: none;
  padding: 0;
  color: var(--text-primary);
}

.report-content hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 28px 0;
}

.report-content a {
  color: var(--neon-blue);
  text-decoration: none;
  border-bottom: 1px dashed rgba(0, 212, 255, 0.4);
}

.report-content a:hover {
  color: var(--neon-purple);
  border-bottom-color: var(--neon-purple);
}

.error-box {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--neon-red);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  font-size: 15px;
}

/* 打印样式 */
@media print {
  .sidebar, .report-detail-actions { display: none !important; }
  .report-detail-card { padding: 0; box-shadow: none; border: none; }
  .report-content { color: #000; }
  .report-content h1, .report-content h2, .report-content h3 { color: #000; }
}

/* ===== 周报表格优化 ===== */
.report-content table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.report-content table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}
.report-content table td:first-child,
.report-content table th:first-child {
  font-weight: 600;
  color: var(--neon-blue);
}
.report-content table td:nth-child(n+2),
.report-content table th:nth-child(n+2) {
  text-align: center;
}
.report-content table th {
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.report-content table td {
  font-size: 13px;
  vertical-align: middle;
}
.report-content table th:first-child,
.report-content table td:first-child {
  text-align: left !important;
}

/* ===== 利润核算 ===== */
.profit-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(0, 200, 255, 0.2);
  padding-bottom: 0;
}
.profit-tab {
  padding: 10px 24px;
  background: transparent;
  border: none;
  color: #8899aa;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.3s;
}
.profit-tab:hover { color: #00c8ff; }
.profit-tab.active {
  color: #00c8ff;
  border-bottom-color: #00c8ff;
  font-weight: 600;
}
.profit-filters {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.profit-filters label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #aabbcc;
  font-size: 13px;
}
.profit-filters input, .profit-filters select {
  padding: 8px 12px;
  background: rgba(0, 30, 60, 0.6);
  border: 1px solid rgba(0, 200, 255, 0.3);
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
}
.profit-summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.profit-card {
  background: linear-gradient(135deg, rgba(0, 50, 100, 0.4), rgba(0, 30, 60, 0.6));
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}
.profit-card-profit {
  background: linear-gradient(135deg, rgba(0, 100, 50, 0.4), rgba(0, 50, 30, 0.6));
  border-color: rgba(0, 255, 150, 0.3);
}
.profit-card-label {
  font-size: 12px;
  color: #8899aa;
  margin-bottom: 8px;
}
.profit-card-value {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}
.profit-card-sub {
  font-size: 12px;
  color: #00ff96;
  margin-top: 4px;
}
.profit-positive { color: #00ff96 !important; }
.profit-negative { color: #ff6b6b !important; }
.warning-badge {
  background: rgba(255, 180, 0, 0.2);
  color: #ffb400;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  white-space: nowrap;
}
.success-badge {
  background: rgba(0, 255, 150, 0.2);
  color: #00ff96;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
}
.info-badge {
  background: rgba(0, 200, 255, 0.2);
  color: #00c8ff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  margin-left: 4px;
}
.profit-note {
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(0, 30, 60, 0.4);
  border-radius: 8px;
  border-left: 3px solid #00c8ff;
}
.profit-note p { margin: 0 0 8px; color: #aabbcc; font-size: 13px; }
.profit-note ul { margin: 0; padding-left: 20px; }
.profit-note li { color: #8899aa; font-size: 12px; margin-bottom: 4px; }
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-content {
  background: linear-gradient(135deg, #0a1628, #0d1f3c);
  border: 1px solid rgba(0, 200, 255, 0.3);
  border-radius: 16px;
  padding: 30px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-content h3 {
  margin: 0 0 20px;
  color: #00c8ff;
  font-size: 18px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  color: #aabbcc;
  font-size: 13px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px 12px;
  background: rgba(0, 30, 60, 0.6);
  border: 1px solid rgba(0, 200, 255, 0.3);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  box-sizing: border-box;
}
.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}
.btn-sm {
  padding: 4px 12px;
  font-size: 12px;
}
.btn-danger {
  background: linear-gradient(135deg, #ff4444, #cc0000);
}
.text-muted { color: #667788; }

/* ===== 周报店铺Tab导航 ===== */
.report-shop-tabs {
  display: flex;
  gap: 0;
  margin-top: 20px;
  border-bottom: 2px solid rgba(0, 200, 255, 0.2);
  padding-bottom: 0;
  overflow-x: auto;
}
.shop-tab {
  padding: 12px 28px;
  background: transparent;
  border: none;
  color: #8899aa;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.3s;
  white-space: nowrap;
  font-weight: 500;
}
.shop-tab:hover {
  color: #00c8ff;
  background: rgba(0, 200, 255, 0.05);
}
.shop-tab.active {
  color: #00c8ff;
  border-bottom-color: #00c8ff;
  font-weight: 700;
  background: rgba(0, 200, 255, 0.08);
}

/* ===== 左侧栏子菜单 ===== */
.nav-parent {
  display: block !important;
  padding: 0 !important;
}
.nav-parent-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.3s;
  color: #aabbcc;
  font-size: 14px;
  border-left: 3px solid transparent;
}
.nav-parent-header:hover {
  background: rgba(0, 200, 255, 0.08);
  color: #00c8ff;
}
.nav-parent.expanded > .nav-parent-header {
  color: #00c8ff;
  background: rgba(0, 200, 255, 0.05);
}
.nav-arrow {
  margin-left: auto;
  font-size: 10px;
  color: #667788;
}
.nav-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
  background: rgba(0, 10, 25, 0.5);
}
.nav-subitem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 10px 44px;
  cursor: pointer;
  transition: all 0.3s;
  color: #8899aa;
  font-size: 13px;
  border-left: 3px solid transparent;
}
.nav-subitem:hover {
  background: rgba(0, 200, 255, 0.06);
  color: #00c8ff;
}
.nav-subitem.active {
  background: rgba(0, 200, 255, 0.12);
  color: #00c8ff;
  border-left-color: #00c8ff;
  font-weight: 600;
}

/* ===== 付费 AI 按钮角标（调用 Kimi/DeepSeek 会产生 API 费用） ===== */
.btn-paid { position: relative; }
.btn-paid::after {
  content: '找吴总报销';
  position: absolute;
  top: -13px;
  right: -8px;
  height: 25px;
  line-height: 25px;
  padding: 0 9px;
  background: linear-gradient(135deg, #ff6a00, #f74c25);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  white-space: nowrap;
  z-index: 5;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(247, 76, 37, .4);
}
