/* ===== 评分等级徽章 ===== */
.grade-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	height: 22px;
	padding: 0 6px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.5px;
	line-height: 1;
	vertical-align: middle;
	cursor: default;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.grade-badge:hover {
	transform: scale(1.1);
}

.grade-badge.grade-sss {
	background: linear-gradient(135deg, #FFD700 0%, #FFAA00 100%);
	color: #fff;
	box-shadow: 0 2px 8px rgba(255, 215, 0, 0.6);
	text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.grade-badge.grade-ss {
	background: linear-gradient(135deg, #FF4D00 0%, #FF6A2B 100%);
	color: #fff;
	box-shadow: 0 2px 8px rgba(255, 77, 0, 0.6);
}

.grade-badge.grade-s {
	background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
	color: #fff;
	box-shadow: 0 1px 4px rgba(124, 58, 237, 0.4);
}

.grade-badge.grade-a {
	background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
	color: #fff;
	box-shadow: 0 1px 4px rgba(37, 99, 235, 0.3);
}

.grade-badge.grade-b {
	background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
	color: #fff;
	box-shadow: 0 1px 4px rgba(107, 114, 128, 0.3);
}

/* ===== 大号徽章（详情页用） ===== */
.grade-badge.grade-large {
	min-width: 42px;
	height: 36px;
	padding: 0 12px;
	border-radius: 8px;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: 1px;
}

.grade-badge.grade-large:hover {
	transform: scale(1.05);
}

/* ===== 评级标签（详情页信息块） ===== */
.grade-label {
	display: flex;
	align-items: center;
	gap: 10px;
}

.grade-label .grade-text {
	font-size: 14px;
	font-weight: 600;
	color: #333;
}

/* ===== 透明度面板 ===== */
.transparency-panel {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 20px;
	margin-top: 16px;
}

.transparency-panel h4 {
	font-size: 15px;
	font-weight: 600;
	color: #111;
	margin: 0 0 12px 0;
	cursor: pointer;
	user-select: none;
}

.transparency-panel h4:hover {
	color: #6366f1;
}

.transparency-panel .stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 12px;
}

.transparency-panel .stat-item {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 12px;
	text-align: center;
}

.transparency-panel .stat-item .stat-value {
	font-size: 20px;
	font-weight: 700;
	color: #111;
}

.transparency-panel .stat-item .stat-label {
	font-size: 12px;
	color: #6b7280;
	margin-top: 4px;
}

/* ===== 星级评分按钮 ===== */
.rate-action {
	margin-top: 16px;
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.rate-stars {
	display: flex;
	gap: 4px;
}

.rate-star {
	width: 32px;
	height: 32px;
	border: none;
	background: transparent;
	color: #d1d5db;
	font-size: 22px;
	cursor: pointer;
	transition: all 0.15s ease;
	padding: 0;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rate-star:hover {
	color: #fbbf24;
	transform: scale(1.25);
}

/* hover 时，当前星左侧的所有星也高亮 */
.rate-stars:hover .rate-star {
	color: #fbbf24;
}

.rate-stars:hover .rate-star:hover ~ .rate-star {
	color: #d1d5db;
}

.rate-star.selected {
	color: #f59e0b;
}

.rate-star:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

/* 旧版数字按钮（兼容保留） */
.rate-btn-group {
	display: flex;
	gap: 6px;
}

.rate-btn {
	width: 36px;
	height: 36px;
	border: 2px solid #d1d5db;
	border-radius: 8px;
	background: #fff;
	color: #6b7280;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s ease;
}

.rate-btn:hover {
	border-color: #6366f1;
	color: #6366f1;
	background: #eef2ff;
	transform: scale(1.1);
}

.rate-btn.selected {
	border-color: #6366f1;
	background: #6366f1;
	color: #fff;
}

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

.rate-message {
	font-size: 13px;
	padding: 6px 12px;
	border-radius: 6px;
}

.rate-message.success {
	color: #059669;
	background: #ecfdf5;
}

.rate-message.error {
	color: #dc2626;
	background: #fef2f2;
}

.rate-message.info {
	color: #6b7280;
	background: #f3f4f6;
}

/* ===== 雷达图容器 ===== */
.radar-chart-container {
	width: 260px;
	height: 260px;
	margin: 0 auto;
	position: relative;
}

.radar-chart-container canvas {
	width: 100% !important;
	height: 100% !important;
}

/* ===== 四维度说明 ===== */
.dimension-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-top: 12px;
}

.dimension-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 12px;
	background: #f9fafb;
	border-radius: 6px;
	font-size: 13px;
}

.dimension-item .dim-label {
	color: #6b7280;
}

.dimension-item .dim-value {
	font-weight: 600;
	color: #111;
}

.dimension-item .dim-value.pending {
	color: #9ca3af;
}

/* ===== 分享按钮 ===== */
.share-actions {
	display: flex;
	gap: 8px;
	margin-top: 16px;
}

.btn-share {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #fff;
	color: #374151;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}

.btn-share:hover {
	border-color: #6366f1;
	color: #6366f1;
	background: #eef2ff;
}

.btn-share:active {
	transform: scale(0.97);
}

.share-url-box {
	display: flex;
	gap: 8px;
	margin-top: 8px;
}

.share-url-box input {
	flex: 1;
	padding: 8px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 13px;
	color: #374151;
	background: #f9fafb;
}

.share-url-box .btn-copy {
	padding: 8px 16px;
	background: #6366f1;
	color: #fff;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 13px;
}

.share-url-box .btn-copy:hover {
	background: #4f46e5;
}

/* ===== 推荐/新徽章与评级并排 ===== */
.rating-row {
	display: flex;
	align-items: center;
	gap: 6px;
}
