/* ==========================================================================
   全市高中学生论坛 - 前台样式
   ========================================================================== */

.sf-notice {
	border-radius: 6px;
	padding: 14px 18px;
	margin: 0 0 20px;
	font-size: 14px;
	line-height: 1.7;
	border-left: 4px solid #2271b1;
	background: #f0f6fc;
	color: #1d2327;
}

.sf-notice-warn {
	border-left-color: #dba617;
	background: #fcf9e8;
}

.sf-notice-error {
	border-left-color: #d63638;
	background: #fcf0f1;
}

.sf-notice-info {
	border-left-color: #2271b1;
	background: #f0f6fc;
}

.sf-notice-link {
	margin-left: 8px;
	font-weight: 600;
}

/* 卡片 */
.sf-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 24px 26px;
	margin: 0 0 24px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}

.sf-card h3 {
	margin: 0 0 16px;
	font-size: 19px;
	font-weight: 600;
}

.sf-card h4 {
	margin: 22px 0 12px;
	font-size: 15px;
	font-weight: 600;
}

.sf-card-success {
	border-left: 4px solid #00a32a;
}

.sf-hint {
	color: #6b7280;
	font-size: 13px;
	line-height: 1.7;
}

.sf-hint b {
	color: #1f2937;
}

.sf-admin-verify-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 18px;
}

.sf-btn-ghost-dark {
	background: #fff;
	color: #2271b1;
	border: 1px solid #b9d3f2;
}

.sf-btn-ghost-dark:hover {
	background: #f2f8ff;
	color: #164a8a;
}

.sf-notice-info b {
	color: #1e5aa8;
}

/* 表单 */
.sf-form .sf-field {
	margin-bottom: 16px;
}

.sf-form label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	margin-bottom: 6px;
}

.sf-req {
	color: #d63638;
}

.sf-form input[type="text"],
.sf-form select,
.sf-form textarea {
	width: 100%;
	max-width: 520px;
	padding: 9px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	box-sizing: border-box;
	background: #fff;
}

.sf-form input[type="text"]:focus,
.sf-form select:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 3px rgba(34, 113, 177, .12);
}

.sf-field-half {
	display: inline-block;
	width: 48%;
	vertical-align: top;
}

.sf-field-half:first-of-type {
	margin-right: 3%;
}

@media (max-width: 640px) {
	.sf-field-half {
		display: block;
		width: 100%;
		margin-right: 0 !important;
	}
}

.sf-btn {
	display: inline-block;
	padding: 10px 24px;
	border-radius: 6px;
	border: none;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	line-height: 1.5;
}

.sf-btn-primary {
	background: #2271b1;
	color: #fff;
}

.sf-btn-primary:hover {
	background: #135e96;
	color: #fff;
}

/* 表格 */
.sf-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.sf-table th,
.sf-table td {
	padding: 10px 12px;
	text-align: left;
	border-bottom: 1px solid #f0f0f1;
}

.sf-table th {
	background: #f9fafb;
	font-weight: 600;
	color: #374151;
	width: 120px;
}

.sf-table-rank th {
	width: auto;
}

/* 学校导航 */
.sf-schools {
	margin: 0 0 24px;
}

.sf-district {
	margin-bottom: 22px;
}

.sf-district-title {
	font-size: 14px;
	font-weight: 600;
	color: #1f2937;
	margin: 0 0 10px;
	padding-left: 10px;
	border-left: 3px solid #2271b1;
}

.sf-school-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 10px;
}

.sf-school-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 16px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	text-decoration: none;
	color: #1f2937;
	transition: all .15s;
}

.sf-school-item:hover {
	border-color: #2271b1;
	box-shadow: 0 2px 8px rgba(34, 113, 177, .12);
	transform: translateY(-1px);
}

.sf-school-name {
	font-weight: 500;
	font-size: 14px;
}

.sf-school-meta {
	font-size: 12px;
	color: #9ca3af;
}

/* 分类版块 */
.sf-sections {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 14px;
	margin-bottom: 24px;
}

.sf-section-item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px 20px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	text-decoration: none;
	color: #1f2937;
	transition: all .15s;
}

.sf-section-item:hover {
	border-color: #2271b1;
	box-shadow: 0 3px 12px rgba(34, 113, 177, .14);
	transform: translateY(-2px);
}

.sf-section-name {
	font-size: 16px;
	font-weight: 600;
}

.sf-section-desc {
	font-size: 13px;
	color: #6b7280;
	line-height: 1.6;
}

.sf-section-meta {
	font-size: 12px;
	color: #9ca3af;
	margin-top: 4px;
}

/* 成长档案 */
.sf-growth-head {
	display: flex;
	align-items: center;
	gap: 16px;
	padding-bottom: 18px;
	border-bottom: 1px solid #f0f0f1;
}

.sf-avatar {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	flex-shrink: 0;
}

.sf-growth-head h3 {
	margin: 0;
	font-size: 18px;
}

.sf-growth-level {
	margin: 4px 0 0;
	font-size: 13px;
	color: #2271b1;
	font-weight: 600;
}

.sf-growth-points {
	margin-left: auto;
	text-align: right;
}

.sf-points-num {
	display: block;
	font-size: 28px;
	font-weight: 700;
	color: #d97706;
	line-height: 1.1;
}

.sf-points-label {
	font-size: 12px;
	color: #9ca3af;
}

.sf-progress {
	height: 10px;
	background: #f0f0f1;
	border-radius: 5px;
	overflow: hidden;
	margin: 18px 0 10px;
}

.sf-progress-bar {
	height: 100%;
	background: linear-gradient(90deg, #2271b1, #4f94d4);
	border-radius: 5px;
	transition: width .4s;
}

.sf-progress-text {
	font-size: 13px;
	color: #6b7280;
	margin: 0 0 20px;
}

.sf-progress-text strong {
	color: #2271b1;
}

.sf-stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin-bottom: 8px;
}

.sf-stat {
	text-align: center;
	padding: 14px 8px;
	background: #f9fafb;
	border-radius: 8px;
}

.sf-stat-num {
	display: block;
	font-size: 22px;
	font-weight: 700;
	color: #1f2937;
	line-height: 1.2;
}

.sf-stat-label {
	font-size: 12px;
	color: #9ca3af;
}

/* 勋章 */
.sf-badges {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 10px;
}

.sf-badge {
	padding: 12px 14px;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
	text-align: center;
}

.sf-badge-name {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 4px;
}

.sf-badge-desc {
	display: block;
	font-size: 11px;
	line-height: 1.5;
}

.sf-badge-owned {
	background: linear-gradient(135deg, #fef3c7, #fde68a);
	border-color: #f59e0b;
	color: #92400e;
}

.sf-badge-locked {
	background: #f9fafb;
	color: #9ca3af;
}

/* 等级徽章（用户名后） */
.sf-level-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	padding: 1px 6px;
	border-radius: 4px;
	margin-left: 5px;
	background: #e5e7eb;
	color: #4b5563;
	vertical-align: middle;
	line-height: 1.6;
}

.sf-level-1 { background: #f3f4f6; color: #6b7280; }
.sf-level-2 { background: #dbeafe; color: #1e40af; }
.sf-level-3 { background: #d1fae5; color: #065f46; }
.sf-level-4 { background: #fef3c7; color: #92400e; }
.sf-level-5 { background: #fed7aa; color: #9a3412; }
.sf-level-6 { background: #e9d5ff; color: #6b21a8; }
.sf-level-7 { background: linear-gradient(135deg, #fda4af, #f472b6); color: #fff; }

/* 排行榜 */
.sf-rank-1 { color: #d4a017; font-weight: 700; }
.sf-rank-2 { color: #9ca3af; font-weight: 700; }
.sf-rank-3 { color: #b87333; font-weight: 700; }

@media (max-width: 640px) {
	.sf-stats-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.sf-growth-head {
		flex-wrap: wrap;
	}

	.sf-growth-points {
		margin-left: 0;
		text-align: left;
		width: 100%;
	}
}
