@charset "UTF-8";
.geo-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e6eb;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  margin-right: 40px;
  flex-shrink: 0;
}

.logo .logo-text {
  font-size: 20px;
  font-weight: 700;
  color: #1677ff;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-item {
  padding: 6px 16px;
  font-size: 14px;
  color: #4e5969;
  border-radius: 4px;
  transition: all 0.2s;
}

.nav-item:hover {
  color: #1677ff;
  background: #e6f4ff;
}

.nav-item.active {
  color: #1677ff;
  background: #e6f4ff;
  font-weight: 500;
}

.geo-container {
  width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 16px;
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f2f3f5;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: #1d2129;
  line-height: 1;
}

.card-body {
  padding: 20px;
}

.tab-group {
  display: flex;
  background: #f5f6fa;
  border-radius: 4px;
  padding: 2px;
}

.tab-item {
  padding: 6px 14px;
  font-size: 13px;
  color: #4e5969;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.tab-item:hover {
  color: #1d2129;
}

.tab-item.active {
  background: #ffffff;
  color: #1677ff;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.search-card .card-body {
  padding: 24px;
}

.search-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.search-group {
  flex: 1;
}

.search-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #1d2129;
  margin-bottom: 8px;
}

.search-textarea {
  width: 100%;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: #1d2129;
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
  transition: border-color 0.2s;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

.search-textarea:focus {
  outline: none;
  border-color: #1677ff;
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.1);
}

.search-textarea::placeholder {
  color: #86909c;
}

.platform-section {
  margin-bottom: 20px;
}

.platform-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.platform-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  font-size: 13px;
  color: #4e5969;
  background: #f5f6fa;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.platform-tag input[type="checkbox"] {
  display: none;
}

.platform-tag:hover {
  background: #e6f4ff;
  color: #1677ff;
}

.platform-tag.selected {
  background: #1677ff;
  color: #fff;
}

.action-row {
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: #1677ff;
  color: #fff;
  border-color: #1677ff;
}

.btn-primary:hover {
  background: #0958d9;
  border-color: #0958d9;
}

.btn-outline {
  background: #ffffff;
  color: #4e5969;
  border-color: #e5e6eb;
}

.btn-outline:hover {
  color: #1677ff;
  border-color: #1677ff;
}

.btn-icon {
  margin-right: 4px;
}

.stats-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.stats-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 20px;
  text-align: center;
}

.stats-card.highlight {
  background: linear-gradient(135deg, #1677ff, #4096ff);
}

.stats-card.highlight .stats-value {
  color: #fff;
}

.stats-card.highlight .stats-label {
  color: rgba(255, 255, 255, 0.85);
}

.stats-value {
  font-size: 32px;
  font-weight: 700;
  color: #1d2129;
  line-height: 1.2;
  margin-bottom: 6px;
}

.stats-label {
  font-size: 13px;
  color: #86909c;
}

.table-wrap {
  margin: 0 -20px;
  overflow-x: auto;
}

.geo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.geo-table thead th {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #86909c;
  background: #fafafa;
  border-bottom: 1px solid #e5e6eb;
  text-align: center;
  white-space: nowrap;
}

.geo-table tbody tr {
  transition: background 0.15s;
}

.geo-table tbody tr:hover {
  background: #f7f8fc;
}

.geo-table tbody tr:not(:last-child) td {
  border-bottom: 1px solid #f2f3f5;
}

.geo-table tbody td {
  padding: 12px 16px;
  text-align: center;
  color: #1d2129;
}

.geo-table .col-rank {
  width: 80px;
}

.geo-table .col-brand {
  width: 140px;
  text-align: left;
  font-weight: 500;
}

.geo-table .col-weight {
  width: 120px;
}

.geo-table .col-change {
  width: 90px;
}

.geo-table .col-detail {
  width: 110px;
}

.geo-table .empty-row td {
  padding: 40px 16px;
  color: #86909c;
  font-size: 14px;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: #86909c;
}

.rank-badge.rank-1 {
  background: linear-gradient(135deg, #f5a623, #ff7d00);
}

.rank-badge.rank-2 {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.rank-badge.rank-3 {
  background: linear-gradient(135deg, #f093fb, #f5576c);
}

.weight-value {
  font-size: 16px;
  font-weight: 700;
  color: #1677ff;
}

.weight-value.high {
  color: #00b365;
}

.weight-value.low {
  color: #86909c;
}

.change-up {
  color: #f53f3f;
}

.change-up::before {
  content: "▲ ";
}

.change-down {
  color: #00b365;
}

.change-down::before {
  content: "▼ ";
}

.change-zero {
  color: #86909c;
}

.progress-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-bar {
  flex: 1;
  height: 6px;
  background: #f2f3f5;
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar .progress-fill {
  height: 100%;
  border-radius: 3px;
  background: #1677ff;
  transition: width 0.4s ease;
}

.progress-text {
  font-size: 12px;
  color: #86909c;
  min-width: 36px;
}

.loading-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  color: #86909c;
}

.loading-overlay .loading-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1677ff;
  margin: 0 4px;
  animation: loadingDot 1.4s infinite ease-in-out both;
}

.loading-overlay .loading-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.loading-overlay .loading-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes loadingDot {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.3;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.brand-link {
  color: #1677ff;
  font-weight: 500;
}

.brand-link:hover {
  text-decoration: underline;
}

@media (max-width: 1240px) {
  .geo-container,
  .header-inner {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }
  .search-row {
    flex-direction: column;
    gap: 16px;
  }
  .stats-section {
    grid-template-columns: repeat(2, 1fr);
  }
}

.content {
  width: 100%;
}

.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 15px;
  background: rgba(0, 0, 0, 0.5);
  font-size: 14px;
  color: #fff;
  border-radius: 5px;
}

.geo-footer {
  border-top: 1px solid #f2f3f5;
  background: #ffffff;
  padding: 20px 0;
  text-align: center;
}

.footer-inner {
  font-size: 13px;
  color: #86909c;
}

.footer-inner a {
  color: #86909c;
}

.footer-inner a:hover {
  color: #1677ff;
}

.footer-divider {
  margin: 0 10px;
  color: #e5e6eb;
}
