﻿* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
}

.login-page {
  padding: 0;
  display: grid;
  place-items: center;
}

.login-shell {
  width: min(440px, calc(100vw - 32px));
  padding: 24px 0;
}

.login-panel {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
  padding: 34px;
}

.login-brand {
  margin-bottom: 28px;
}

.login-kicker {
  display: block;
  color: #667eea;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.login-brand h1 {
  color: #2f3342;
  font-size: 24px;
  line-height: 1.35;
  margin-bottom: 10px;
}

.login-brand p {
  color: #7a8194;
  font-size: 14px;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: #4b5565;
  font-size: 14px;
  font-weight: 600;
}

.login-form input {
  width: 100%;
  height: 44px;
  border: 1px solid #d9deea;
  border-radius: 8px;
  padding: 0 12px;
  color: #333;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-form input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.14);
}

.login-form button {
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.24);
}

.login-error {
  border: 1px solid #ffd5d5;
  border-radius: 8px;
  background: #fff4f4;
  color: #d93025;
  padding: 10px 12px;
  font-size: 13px;
}

.logout-form {
  margin-top: 8px;
}

.logout-btn {
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 12px;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 40px;
  text-align: center;
}

header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 1.2em;
  opacity: 0.9;
}

main {
  padding: 40px;
  overflow: hidden;
}

.analysis-section {
  margin-bottom: 60px;
  overflow: hidden;
}

.analysis-section h2 {
  color: #333;
  font-size: 1.8em;
  margin-bottom: 10px;
  border-left: 5px solid #667eea;
  padding-left: 15px;
}

.section-desc {
  color: #666;
  margin-bottom: 30px;
  padding-left: 20px;
}

/* 数据源标签样式 */
.data-source-tag {
  display: inline-block;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
  color: #667eea;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  margin-left: 20px;
  border: 1px solid rgba(102, 126, 234, 0.2);
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.1);
  transition: all 0.3s ease;
}

.data-source-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
  border-color: rgba(102, 126, 234, 0.3);
}

.chart-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 30px;
  overflow: hidden;
}

.chart-box {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  min-height: auto;
  overflow: visible;
  min-width: 0;
}

.chart-box h3 {
  color: #444;
  margin-bottom: 15px;
  font-size: 1.1em;
}

.chart-box > div:not(.dashboard-container):not(.table-controls):not(.summary-box):not(.table-wrapper):not(.matrix-legend):not(.brand-type-table-wrapper):not(.material-cards-container):not(.touch-summary):not(.data-source-tag):not(.content-structure-input-box):not(.jd-grass-toolbar):not(.jd-grass-summary):not(#suporRankingCards) {
  display: block;
  box-sizing: border-box;
  width: 100% !important;
  height: 400px;
}

/* 特殊处理：四象限图表需要更大的高度 */
.chart-box #authorQuadrantChart {
  height: 600px !important;
}

/* 图表标题样式优化 */
#authorQuadrantTitle {
  color: #333;
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8e8e8;
}

/* 达人量级分布看板标题 */
.chart-box h3 {
  position: relative;
  padding-left: 12px;
}

.chart-box h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

canvas {
  display: block;
}

/* ECharts容器特殊样式 */
#efficiencyChart,
#growthChart {
  width: 100% !important;
  height: 400px !important;
  min-height: 400px;
}

.ai-analysis {
  background: white;
  border-radius: 15px;
  padding: 30px;
  margin-top: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  box-sizing: border-box;
}

.ai-analysis h3 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.4em;
}

.analyze-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  margin-bottom: 20px;
}

.analyze-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.analyze-btn:active {
  transform: translateY(0);
}

.analysis-content {
  background: white;
  padding: 20px;
  min-height: 150px;
  width: 100%;
  line-height: 1.8;
  color: #333;
  font-size: 15px;
  box-sizing: border-box;
}

.analysis-placeholder {
  color: #999;
  font-style: italic;
  text-align: center;
  padding: 40px 20px;
  font-size: 14px;
}

.analysis-content h3 {
  color: #667eea;
  font-size: 1.2em;
  margin: 20px 0 12px 0;
  font-weight: bold;
}

.analysis-content h3:first-child {
  margin-top: 0;
}

.analysis-content h4 {
  color: #764ba2;
  font-size: 1.1em;
  margin: 15px 0 10px 0;
  font-weight: bold;
}

.analysis-content p {
  margin: 12px 0;
  color: #333;
}

.analysis-content .key-point {
  color: #ff6b6b;
  font-weight: bold;
  padding: 0 4px;
}

.analysis-content ul {
  margin: 10px 0;
  padding-left: 30px;
}

.analysis-content ul li {
  margin: 8px 0;
  color: #333;
}

.analysis-content.loading {
  color: #667eea;
  font-style: italic;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
}

.loading {
  text-align: center;
  color: #667eea;
  font-style: italic;
}

.matrix-legend {
  margin-top: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.matrix-legend p {
  margin: 0 0 15px 0;
  font-weight: bold;
  color: #333;
}

.matrix-legend ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.matrix-legend li {
  margin: 10px 0;
  display: flex;
  align-items: center;
  color: #666;
  line-height: 1.6;
}

.legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .chart-container {
    grid-template-columns: 1fr;
  }
  
  header h1 {
    font-size: 1.8em;
  }
  
  main {
    padding: 20px;
  }
}

/* 第四部分：KFS样式 */
.kfs-input-box {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 15px;
  padding: 20px 25px;
  margin-bottom: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 15px;
}

.metrics-cards-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0;
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.metric-card-small {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  padding: 8px 6px;
  color: white;
  text-align: center;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  min-height: 60px;
}

.metric-card-small::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.metric-card-small:hover::before {
  opacity: 1;
}

.metric-card-small:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.metric-icon {
  font-size: 14px;
  margin-bottom: 2px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.metric-label {
  font-size: 9px;
  opacity: 0.95;
  margin-bottom: 2px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.metric-value {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.metric-detail {
  font-size: 8px;
  opacity: 0.85;
  font-weight: 400;
}

.data-table-container {
  padding: 8px;
  overflow-x: auto;
  max-height: 350px;
  overflow-y: auto;
}

/* 贡献因子表格紧凑样式 */
.data-table-container .data-table th,
.data-table-container .data-table td {
  padding: 8px 6px;
  font-size: 12px;
  white-space: nowrap;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

.data-table thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.data-table th {
  padding: 12px 15px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
}

.data-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 13px;
}

.data-table tbody tr:hover {
  background: #f5f7fa;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.rank-badge {
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  font-weight: bold;
  font-size: 12px;
  color: white;
}

.rank-badge.rank-1 {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.rank-badge.rank-2 {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.rank-badge.rank-3 {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

@media (max-width: 1200px) {
  .metrics-cards-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .metrics-cards-container {
    grid-template-columns: 1fr;
  }
}

/* 第五部分：消费者搜索路径样式 */
.strategy-input-box {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.strategy-input-box h3 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.3em;
}

.input-group {
  display: inline-block;
  margin-right: 20px;
  margin-bottom: 15px;
}

.input-group label {
  display: inline-block;
  margin-right: 8px;
  color: #555;
  font-weight: 500;
  font-size: 14px;
}

.input-group input {
  padding: 8px 12px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  width: 120px;
  transition: border-color 0.3s;
}

.input-group input:focus {
  outline: none;
  border-color: #667eea;
}

.input-group input[type="month"] {
  width: 160px;
}

.load-btn {
  padding: 10px 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 10px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.load-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.load-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.load-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.weight-total {
  display: inline-block;
  margin-left: 20px;
  padding: 8px 16px;
  background: white;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #52c41a;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 第六部分：苏泊尔进店数动态目标线样式 */
.store-visit-input-box {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 15px;
  padding: 20px 25px;
  margin-bottom: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 15px;
}

/* 进度条样式 */
.progress-bars-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 20px;
}

.progress-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.progress-label {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.progress-value {
  font-size: 14px;
  color: #666;
}

.progress-bar-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
}

.progress-bar-bg {
  flex: 1;
  height: 30px;
  background: #f0f0f0;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 15px;
  transition: width 0.6s ease;
  position: relative;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.progress-bar-fill.complete {
  background: linear-gradient(90deg, #52c41a 0%, #73d13d 100%);
}

.progress-percentage {
  font-size: 16px;
  font-weight: 600;
  color: #667eea;
  min-width: 60px;
  text-align: right;
}

.progress-percentage.complete {
  color: #52c41a;
}

/* 关键指标对比样式 */
.metrics-comparison-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px;
}

@media (max-width: 1200px) {
  .metrics-comparison-wrapper {
    grid-template-columns: 1fr;
  }
}

.metric-comparison-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid #e8e8e8;
  transition: all 0.3s ease;
  min-width: 0;
}

.metric-comparison-card.good {
  border-color: #52c41a;
  background: linear-gradient(135deg, #f6ffed 0%, #ffffff 100%);
}

.metric-comparison-card.bad {
  border-color: #ff4d4f;
  background: linear-gradient(135deg, #fff1f0 0%, #ffffff 100%);
}

.metric-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  text-align: center;
}

.metric-values {
  display: flex;
  justify-content: space-around;
  margin-bottom: 15px;
}

.metric-value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.metric-label {
  font-size: 12px;
  color: #999;
}

.metric-number {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.metric-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  font-weight: 600;
}

.metric-status.good {
  background: #f6ffed;
  color: #52c41a;
}

.metric-status.bad {
  background: #fff1f0;
  color: #ff4d4f;
}

.status-icon {
  font-size: 18px;
  font-weight: bold;
}

.status-text {
  font-size: 14px;
}

/* 表格样式优化 */
.note-title {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-table .highlight {
  color: #667eea;
  font-weight: 600;
}

/* 表格容器滚动优化 */
.data-table-container {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 500px;
  padding: 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: white;
}

.data-table thead {
  position: sticky;
  top: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  z-index: 10;
}

.data-table th {
  color: white;
  padding: 14px 10px;
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
  font-size: 13px;
}

.data-table td {
  padding: 12px 10px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
}

.data-table tbody tr:hover {
  background: #f5f7fa;
  transition: background 0.2s ease;
}

.data-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.data-table tbody tr:nth-child(even):hover {
  background: #f5f7fa;
}

/* 苏泊尔品牌状态表格样式 */
.brand-type-table-wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
}

.brand-type-note {
  background: linear-gradient(135deg, #f5f7fa 0%, #e3e7f0 100%);
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
}

.supor-type-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 16px;
  color: white;
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
}

.supor-ranks {
  color: #666;
  font-size: 12px;
}

.brand-type-table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
  font-size: 13px;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.brand-type-table thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.brand-type-table th {
  color: white;
  padding: 12px 10px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

.brand-type-table td {
  padding: 10px;
  border-bottom: 1px solid #f0f0f0;
  line-height: 1.5;
  vertical-align: top;
  font-size: 12px;
}

.brand-type-table tbody tr:hover {
  background: #f5f7fa;
  transition: background 0.2s ease;
}

.brand-type-table tbody tr.supor-row {
  background: #fff7e6;
  border-left: 4px solid #faad14;
}

.brand-type-table tbody tr.supor-row:hover {
  background: #ffe7ba;
}

.brand-type-table tbody tr.supor-row td:first-child {
  color: #d46b08;
  font-weight: 600;
}

.table-sort-btn {
  margin-left: 6px;
  padding: 2px 6px !important;
  min-width: 24px;
  height: 22px;
  border-radius: 5px !important;
  font-size: 12px !important;
  line-height: 1 !important;
  vertical-align: middle;
  cursor: pointer;
}

/* 第八部分：聚光投流低成本素材探究样式 */
.multi-touch-input-box {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 15px;
  padding: 20px 25px;
  margin-bottom: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 15px;
}

.material-cards-container {
  padding: 10px 0;
  overflow: hidden;
  width: 100%;
}

.touch-cards-wrapper {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-behavior: smooth;
  width: 100%;
}

.touch-cards-wrapper::-webkit-scrollbar {
  height: 6px;
}

.touch-cards-wrapper::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.touch-cards-wrapper::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 3px;
}

.touch-cards-wrapper::-webkit-scrollbar-thumb:hover {
  background: #5568d3;
}

.touch-card {
  flex: 0 0 180px;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #e8e8e8;
  position: relative;
}

.touch-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  border-color: #667eea;
}

.touch-card-rank {
  position: absolute;
  top: 6px;
  right: 6px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.touch-card-cover {
  width: 100%;
  height: 120px;
  background-color: #f5f5f5;
  position: relative;
  overflow: hidden;
}

.touch-card-link {
  color: inherit;
  text-decoration: none;
}

.touch-card-cover-link {
  display: block;
  cursor: pointer;
}

.touch-card-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.touch-card-no-cover {
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 11px;
}

.touch-card-content {
  padding: 10px;
}

.touch-card-id {
  font-size: 9px;
  color: #666;
  font-family: 'Courier New', monospace;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.touch-card-id-link {
  display: block;
  cursor: pointer;
}

.touch-card-id-link:hover {
  color: #1677ff;
  text-decoration: underline;
}

.touch-card-cost {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  background: #f8f9fa;
  border-radius: 6px;
  margin-bottom: 8px;
}

.cost-label {
  font-size: 10px;
  color: #666;
}

.cost-value {
  font-size: 14px;
  font-weight: 700;
  color: #667eea;
}

.touch-card-cpuv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.cpuv-item {
  text-align: center;
  padding: 5px 3px;
  background: white;
  border: 1px solid #e8e8e8;
  border-radius: 5px;
}

.cpuv-name {
  font-size: 8px;
  color: #666;
  margin-bottom: 3px;
}

.cpuv-val {
  font-size: 11px;
  font-weight: 600;
  color: #333;
}

.cpuv-val.good {
  color: #10b981;
}

.cpuv-val.normal {
  color: #f59e0b;
}

.cpuv-val.bad {
  color: #ef4444;
}

/* 触点汇总样式 */
.touch-summary {
  margin-top: 12px;
}

.touch-summary-box {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
}

.touch-summary-title {
  font-size: 15px;
  font-weight: 600;
  color: white;
  margin-bottom: 14px;
  text-align: center;
}

.touch-list-title {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  text-align: left;
  margin: 0 0 14px 0;
}

.touch-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.touch-summary-item {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.touch-summary-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.touch-summary-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
  font-weight: 500;
}

.touch-summary-value {
  font-size: 20px;
  font-weight: 700;
  color: white;
}

.touch-summary-value.main {
  font-size: 24px;
}

.touch-summary-value.good {
  color: #86efac;
}

.touch-summary-value.normal {
  color: #fde047;
}

.touch-summary-value.bad {
  color: #fca5a5;
}


/* 品牌状态类型对照表样式 */
.brand-status-legend {
  margin-top: 20px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 8px;
}

.brand-status-legend h4 {
  margin-bottom: 12px;
  font-size: 14px;
  color: #333;
  font-weight: 600;
}

.status-legend-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.status-legend-table thead tr {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.status-legend-table th {
  padding: 10px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
}

.status-legend-table th:first-child {
  border-radius: 4px 0 0 0;
}

.status-legend-table th:last-child {
  border-radius: 0 4px 0 0;
}

.status-legend-table tbody tr {
  transition: all 0.2s ease;
}

.status-legend-table tbody tr:hover {
  background: rgba(102, 126, 234, 0.05) !important;
  transform: translateX(2px);
}

.status-legend-table td {
  padding: 10px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

.status-legend-table tbody tr:last-child td {
  border-bottom: none;
}

.status-legend-table td strong {
  font-weight: 600;
}

/* 颜色圆点 */
.status-legend-table .color-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

/* 内容结构分析样式 */
.content-structure-input-box {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.content-structure-input-box select {
  padding: 8px 12px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  min-width: 150px;
  transition: border-color 0.3s;
}

.content-structure-input-box select:focus {
  outline: none;
  border-color: #667eea;
}

.jd-grass-section {
  padding: 14px 16px;
  background: #fbfcff;
}

.jd-grass-section > h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.jd-grass-section .chart-subtitle {
  margin: 0 0 10px 12px;
  color: #777;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
}

.jd-grass-section > .data-source-tag {
  display: inline-block;
  margin: 0 0 10px 12px;
  padding: 3px 9px;
  font-size: 11px;
  line-height: 1.4;
}

.jd-grass-input-box {
  display: grid;
  grid-template-columns: max-content minmax(280px, 1fr) auto;
  align-items: center;
  margin-top: 8px;
  margin-bottom: 12px;
  gap: 10px;
  padding: 12px 14px;
}

.jd-grass-input-box .input-group {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.jd-grass-input-box label,
.jd-grass-toolbar label {
  font-size: 13px;
}

.jd-grass-input-box input[type="date"] {
  padding: 7px 10px;
  font-size: 13px;
}

.multi-select-group {
  align-items: center;
}

.multi-select-group select {
  min-width: 260px;
  max-width: 360px;
  padding: 7px 10px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
}

.jd-grass-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(102, 126, 234, 0.12);
  border-radius: 8px;
  background: #fff;
}

.sub-chart-heading {
  margin-top: 6px;
  margin-bottom: 8px;
  font-size: 13px !important;
  text-align: left !important;
}

.jd-grass-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.jd-grass-section > .data-source-tag,
.jd-grass-section > .content-structure-input-box,
.jd-grass-section > .jd-grass-toolbar,
.jd-grass-section > .jd-grass-summary {
  height: auto !important;
  min-height: 0;
}

.jd-grass-section > #jdGrassTrendChart {
  height: 360px !important;
}

@media (max-width: 900px) {
  .jd-grass-input-box {
    grid-template-columns: 1fr;
  }

  .jd-grass-input-box .input-group,
  .jd-grass-toolbar .input-group {
    flex-wrap: wrap;
  }

  .multi-select-group select {
    width: 100%;
    min-width: 0;
  }
}

.jd-grass-group-card {
  border: 1px solid rgba(102, 126, 234, 0.14);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.06);
}

.jd-grass-group-title {
  font-size: 12px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.jd-grass-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 7px;
}

.jd-grass-metric-card {
  border-radius: 7px;
  background: #f8f9ff;
  padding: 8px 9px;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.jd-grass-metric-label {
  font-size: 10px;
  color: #666;
  margin-bottom: 4px;
}

.jd-grass-metric-value {
  font-size: 15px;
  font-weight: 800;
  color: #4f63d7;
  line-height: 1.2;
  word-break: break-word;
}



.quadrant-controls {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.quadrant-controls .input-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quadrant-controls select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  min-width: 150px;
}

.quadrant-controls .load-btn {
  margin-left: auto;
}

/* 第四部分：达人结构分析样式 */
.author-structure-input-box {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 15px;
  padding: 20px 25px;
  margin-bottom: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.author-structure-input-box .input-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-structure-input-box label {
  font-weight: 600;
  color: #555;
  font-size: 14px;
}

.author-structure-input-box input[type="month"] {
  padding: 10px 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.author-structure-input-box input[type="month"]:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.dashboard-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 15px;
  min-height: auto;
}

.dashboard-item {
  background: #ffffff;
  padding: 24px 20px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.08);
  border: 1px solid rgba(102, 126, 234, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.dashboard-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(102,126,234,0.05) 0%, rgba(118,75,162,0.05) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.dashboard-item::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.dashboard-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(102, 126, 234, 0.15);
  border-color: rgba(102, 126, 234, 0.2);
}

.dashboard-item:hover::before,
.dashboard-item:hover::after {
  opacity: 1;
}

.dashboard-item .label {
  font-size: 14px;
  color: #555;
  margin-bottom: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.dashboard-item .value {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
  line-height: 1.2;
}

.dashboard-item .unit {
  font-size: 14px;
  color: #888;
  -webkit-text-fill-color: initial;
  margin-left: 4px;
  font-weight: 600;
}

.dashboard-item .sub-value {
  font-size: 13px;
  color: #666;
  margin-top: 10px;
  padding: 6px 14px;
  background: #f8f9fa;
  border-radius: 20px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.dashboard-item:hover .sub-value {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
}

.quadrant-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  padding: 0 10px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 28px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #666;
  flex: 1;
  min-width: 120px;
  text-align: center;
}

.tab-btn:hover {
  border-color: #667eea;
  color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.2);
}

.tab-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  transform: translateY(-2px);
}

.table-controls {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  padding: 18px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.table-controls .input-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-controls .input-group label {
  font-weight: 600;
  color: #555;
  font-size: 14px;
  white-space: nowrap;
}

.table-controls select {
  padding: 10px 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  min-width: 150px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.table-controls select:hover {
  border-color: #667eea;
}

.table-controls select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.summary-box {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.summary-box .summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.summary-box .summary-item {
  text-align: center;
  padding: 18px 12px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.summary-box .summary-item:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.summary-box .summary-label {
  font-size: 12px;
  opacity: 0.95;
  margin-bottom: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.summary-box .summary-value {
  font-size: 26px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  line-height: 1.2;
}

.summary-box .summary-value .unit {
  font-size: 14px;
  opacity: 0.9;
  margin-left: 4px;
  font-weight: 500;
}

.table-wrapper {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 600px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-top: 15px;
  background: white;
}

.table-wrapper .data-table {
  min-width: 1000px;
  margin: 0;
}

.table-wrapper .data-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

.table-wrapper .data-table tbody tr {
  transition: background 0.2s ease;
}

.table-wrapper .data-table tbody tr:nth-child(odd) {
  background: white;
}

.table-wrapper .data-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.table-wrapper .data-table tbody tr:hover {
  background: #f0f4ff !important;
}

.level-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: white;
}

.level-badge.头部 {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.level-badge.腰部 {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.level-badge.尾部 {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.level-badge.素人KOC {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.loading-cell {
  text-align: center;
  padding: 40px;
  color: #999;
  font-style: italic;
}

/* 四象限图表容器 */
#authorQuadrantChart {
  width: 100% !important;
  height: 600px !important;
  min-height: 600px;
}

/* 达人量级分布容器 */
#authorLevelDistribution {
  min-height: auto;
}

#authorLevelDistribution .loading {
  padding: 40px;
  text-align: center;
  color: #999;
  font-style: italic;
}

/* 汇总数据容器 */
#authorSummary .loading {
  padding: 40px;
  text-align: center;
  color: white;
  font-style: italic;
}

/* 达人表格特殊样式 */
#authorEfficiencyTable {
  font-size: 13px;
}

#authorEfficiencyTable th {
  font-size: 13px;
  padding: 14px 12px;
  white-space: nowrap;
}

#authorEfficiencyTable td {
  padding: 12px;
  text-align: center;
}

#authorEfficiencyTable td:first-child {
  text-align: left;
  font-weight: 500;
  color: #333;
}

#authorEfficiencyTable .level-badge {
  display: inline-block;
  min-width: 50px;
}

.content-type-badge {
  display: inline-block;
  max-width: 180px;
  padding: 3px 8px;
  border: 1px solid #d9e2f5;
  border-radius: 6px;
  background: #f4f7fc;
  color: #40557a;
  line-height: 1.35;
  white-space: normal;
}

.author-note-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 86px;
}

.author-note-links a {
  color: #1677ff;
  text-decoration: none;
  white-space: nowrap;
}

.author-note-links a:hover {
  text-decoration: underline;
}

/* 数值高亮 */
#authorEfficiencyTable .highlight-good {
  color: #52c41a;
  font-weight: 600;
}

#authorEfficiencyTable .highlight-bad {
  color: #ff4d4f;
  font-weight: 600;
}

#authorEfficiencyTable .highlight-normal {
  color: #1890ff;
  font-weight: 600;
}

/* 加载动画 */
.loading {
  position: relative;
}

.loading::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 空状态样式 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state-text {
  font-size: 16px;
  color: #666;
  margin-bottom: 8px;
}

.empty-state-hint {
  font-size: 14px;
  color: #999;
}

/* 数据卡片动画 */
.dashboard-item,
.summary-box .summary-item {
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 表格行动画 */
#authorEfficiencyTable tbody tr {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 滚动条美化 */
.table-wrapper::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
  background: #5568d3;
}

/* 工具提示样式 */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 200px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 12px;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* 数据高亮闪烁效果 */
@keyframes highlight {
  0%, 100% {
    background-color: transparent;
  }
  50% {
    background-color: rgba(102, 126, 234, 0.1);
  }
}

.data-highlight {
  animation: highlight 1s ease-in-out;
}

@media (max-width: 1200px) {
  .dashboard-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .summary-box .summary-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .quadrant-tabs {
    gap: 8px;
  }
  
  .tab-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .dashboard-container {
    grid-template-columns: 1fr;
  }
  
  .summary-box .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .quadrant-tabs {
    flex-direction: column;
  }
  
  .table-controls {
    flex-direction: column;
    gap: 10px;
  }
  
  .table-controls .input-group {
    width: 100%;
  }
  
  .table-controls select {
    width: 100%;
  }
}

/* 四象限剖析表格样式 */
.quadrant-guide {
  padding: 10px 0;
}

.quadrant-analysis-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.quadrant-analysis-table thead tr {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.quadrant-analysis-table th {
  color: white;
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
}

.quadrant-analysis-table td {
  padding: 14px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
  line-height: 1.6;
  font-size: 12px;
  color: #444;
}

.quadrant-analysis-table tbody tr:hover {
  background: #fafafa;
}

.quadrant-analysis-table tbody tr:last-child td {
  border-bottom: none;
}

.quadrant-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: white;
}

.quadrant-badge.q1 {
  background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
}

.quadrant-badge.q2 {
  background: linear-gradient(135deg, #faad14 0%, #ffc53d 100%);
}

.quadrant-badge.q3 {
  background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%);
}

.quadrant-badge.q4 {
  background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
}

.quadrant-analysis-table td small {
  color: #999;
  font-size: 11px;
}

@media (max-width: 480px) {
  .summary-box .summary-grid {
    grid-template-columns: 1fr;
  }
  
  .dashboard-container {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .dashboard-item {
    padding: 16px;
  }
  
  .dashboard-item .value {
    font-size: 24px;
  }
  
  .tab-btn {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .author-structure-input-box {
    flex-direction: column;
    align-items: stretch;
  }
  
  .author-structure-input-box .input-group {
    width: 100%;
  }
  
  .author-structure-input-box input[type="month"] {
    width: 100%;
  }
  
  .author-structure-input-box .load-btn {
    width: 100%;
  }
}


/* 排名表格样式 - 浅色主题 */
.ranking-table-wrapper-light {
  background: #fff;
  border-radius: 8px;
  overflow-y: auto;
  overflow-x: hidden;
  height: auto;
  max-height: 350px;
  min-height: 0;
  border: 1px solid #e8e8e8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ranking-table-wrapper-light::-webkit-scrollbar {
  width: 6px;
}

.ranking-table-wrapper-light::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.ranking-table-wrapper-light::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.ranking-table-wrapper-light::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

.ranking-table-light {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ranking-table-light thead {
  background: #fafafa;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 10;
}

.ranking-table-light th {
  padding: 8px 12px;
  text-align: left;
  font-weight: 600;
  color: #999;
  font-size: 12px;
}

.ranking-table-light td {
  padding: 8px 12px;
  border-bottom: 1px solid #f5f5f5;
  color: #333;
}

.ranking-table-light tbody tr:last-child td {
  border-bottom: none;
}

.ranking-table-light tbody tr:hover {
  background: #fafafa;
}

.ranking-table-light tbody tr.supor-row-light {
  background: #fff9e6;
}

.ranking-table-light tbody tr.supor-row-light td {
  color: #fa8c16;
  font-weight: 600;
}

.rank-change-light {
  font-size: 12px;
  font-weight: 600;
}

.rank-change-light.up {
  color: #52c41a;
}

.rank-change-light.down {
  color: #ff4d4f;
}

.rank-change-light.same {
  color: #d9d9d9;
}

/* 苏泊尔排名卡片样式 - 浅色主题 */
.supor-rank-card-light {
  background: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 0;
  height: auto;
}

.supor-rank-card-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  border-color: #e8e8e8;
}

.supor-rank-card-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #fa8c16 0%, #ffc53d 100%);
}

.supor-rank-card-light .label {
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
  font-weight: 500;
  margin-top: 2px;
}

.supor-rank-card-light .rank {
  font-size: 24px;
  font-weight: 700;
  color: #fa8c16;
  margin-bottom: 4px;
  line-height: 1.1;
}

.supor-rank-card-light .change {
  font-size: 11px;
  font-weight: 600;
  color: #52c41a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  background: rgba(82, 196, 26, 0.1);
  border-radius: 10px;
}

/* 排名表格样式 */
.ranking-table-wrapper {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ranking-table thead {
  background: rgba(255, 255, 255, 0.08);
}

.ranking-table th {
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: #ccc;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ranking-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #ddd;
}

.ranking-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.ranking-table tbody tr.supor-row {
  background: rgba(255, 193, 7, 0.15);
  font-weight: 600;
}

.ranking-table tbody tr.supor-row td {
  color: #ffc107;
}

.rank-change {
  font-size: 11px;
  font-weight: 600;
  margin-left: 4px;
}

.rank-change.up {
  color: #52c41a;
}

.rank-change.down {
  color: #ff4d4f;
}

.rank-change.same {
  color: #999;
}

/* 苏泊尔排名卡片样式 */
.supor-rank-card {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 152, 0, 0.1) 100%);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.supor-rank-card .label {
  font-size: 12px;
  color: #ccc;
  margin-bottom: 8px;
}

.supor-rank-card .rank {
  font-size: 32px;
  font-weight: 700;
  color: #ffc107;
  margin-bottom: 4px;
}

.supor-rank-card .change {
  font-size: 12px;
  font-weight: 600;
}


/* 生命周期预警仪表盘样式 */
.lifecycle-table-container {
  padding: 20px;
  background: #fafafa;
  border-radius: 10px;
  overflow-x: auto;
}

.lifecycle-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-size: 13px;
}

.lifecycle-table thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.lifecycle-table th {
  color: white;
  padding: 14px 12px;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

.lifecycle-table td {
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
  text-align: center;
  font-size: 13px;
}

.lifecycle-table tbody tr:hover {
  background: #f5f7fa;
  transition: background 0.2s ease;
}

.lifecycle-table tbody tr:last-child td {
  border-bottom: none;
}

.lifecycle-table .direction-cell {
  text-align: left;
  font-weight: 500;
  color: #333;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lifecycle-table .number-cell {
  font-weight: 600;
  color: #666;
}

.lifecycle-table .warning-cell {
  color: #faad14;
  font-weight: 700;
}

.lifecycle-table .info-cell {
  color: #1890ff;
  font-weight: 700;
}

.lifecycle-table .danger-cell {
  color: #ff4d4f;
  font-weight: 700;
}

.lifecycle-table .status-cell {
  text-align: center;
}

.lifecycle-table .status-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.lifecycle-table .status-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 空状态样式 */
.lifecycle-table-container .empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #999;
  font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .lifecycle-table-container {
    padding: 12px;
  }
  
  .lifecycle-table {
    font-size: 11px;
  }
  
  .lifecycle-table th,
  .lifecycle-table td {
    padding: 8px 6px;
  }
  
  .lifecycle-table .status-badge {
    padding: 4px 10px;
    font-size: 11px;
  }
}

/* ========== 项目执行概况（MODULE 01 之前） ========== */
.overview-section {
  border-top: 4px solid #667eea;
}

.overview-update-times {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.overview-update-item {
  background: #f5f6fb;
  border: 1px solid rgba(102, 126, 234, 0.15);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  color: #555;
  flex: 1 1 200px;
}

.overview-update-item span {
  font-weight: 700;
  color: #667eea;
}

.overview-date-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0 20px;
}

.overview-date-box input[type="date"] {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #d9d9d9;
}

.overview-date-box input[type="date"]:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 目标值标注 */
.dashboard-item .ov-target {
  margin-top: 6px;
  font-size: 11px;
  color: #999;
  font-weight: 500;
}

/* 修复：概况区 chart-box 内的非图表元素不应被全局 400px 规则撑高 */
.overview-section .chart-box > div:not(.dashboard-container) {
  height: auto !important;
}

/* 第一部分：苏泊尔三维排名日趋势折线图 */
.rank-trend-grid {
  height: auto !important;
}
.rank-trend-chart {
  width: 100%;
  height: 220px;
}

