@charset "UTF-8";
* {
  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: #0d1117;
  color: #e6edf3;
  min-height: 100vh;
}

a,
a:visited {
  color: #58a6ff;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px;
}

/* 标题 */
.header {
  text-align: center;
  margin-bottom: 32px;
}
.header h1 {
  font-size: 28px;
  font-weight: 600;
}

.subtitle {
  color: #8b949e;
  margin-top: 8px;
  font-size: 14px;
}

/* 搜索栏 */
.search-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 24px;
}
.search-bar input {
  flex: 1;
  padding: 12px 16px;
  font-size: 15px;
  color: #e6edf3;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
}
.search-bar input:focus {
  border-color: #58a6ff;
}
.search-bar button {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  color: #0d1117;
  background: #58a6ff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.search-bar button:hover:not(:disabled) {
  background: #79b8ff;
}
.search-bar button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.token-field {
  grid-column: 1/-1;
  display: grid;
  gap: 6px;
  color: #8b949e;
  font-size: 12px;
}

.repo-limit-field {
  grid-column: 1/-1;
  display: grid;
  gap: 6px;
  color: #8b949e;
  font-size: 12px;
}

@media (max-width: 480px) {
  .search-bar {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}
/* 状态消息 */
.status {
  text-align: center;
  padding: 16px;
  border-radius: 8px;
  font-size: 14px;
  max-width: 480px;
  margin: 0 auto 24px;
}
.status.loading {
  background: #161b22;
  color: #8b949e;
}
.status.error {
  background: rgba(248, 81, 73, 0.12);
  color: #f85149;
  border: 1px solid rgba(248, 81, 73, 0.4);
}

/* 结果布局 */
.result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.chart-card,
.legend-card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 24px;
  min-height: 360px;
}

.chart-card {
  position: relative;
}

#user-title {
  font-size: 16px;
  margin-bottom: 16px;
  color: #e6edf3;
}

/* 语言列表 */
.lang-list {
  list-style: none;
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px solid #30363d;
  font-size: 14px;
}
.lang-item:last-child {
  border-bottom: none;
}

.lang-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.lang-name {
  flex: 1;
}

.lang-pct {
  color: #8b949e;
  font-variant-numeric: tabular-nums;
}

/* 页脚 */
.footer {
  text-align: center;
  margin-top: 48px;
  color: #8b949e;
  font-size: 12px;
}

/* 响应式 */
@media (max-width: 720px) {
  .result {
    grid-template-columns: 1fr;
  }
}

/*# sourceMappingURL=styles.css.map */
