/* ========== 基础变量 ========== */
:root {
	--primary: #0d9488;
	--primary-light: #14b8a6;
	--primary-dark: #0f766e;
	--bg-dark: #f8fafc;
	--bg-darker: #f1f5f9;
	--bg-card: #ffffff;
	--text-primary: #1e293b;
	--text-secondary: #475569;
	--text-muted: #94a3b8;
	--border-color: #e2e8f0;
	--hover-bg: rgba(13, 148, 136, 0.08);
	--active-bg: rgba(13, 148, 136, 0.12);
	--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== 重置样式 ========== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	background: var(--bg-darker);
	color: var(--text-primary);
	min-height: 100vh;
	overflow-x: hidden;
}
a{
	text-decoration: none;
}
/* ========== 顶部导航栏 ========== */
.top-navbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 64px;
	background: var(--bg-card);
	border-bottom: 1px solid var(--border-color);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 32px;
	z-index: 1000;
	transition: var(--transition);
}

.navbar-left {
	display: flex;
	align-items: center;
	gap: 12px;
}

.navbar-logo {
	display: flex;
	align-items: center;
	gap: 12px;
}

.logo-icon {
	width: 36px;
	height: 36px;
	background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	color: white;
	box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.navbar-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--text-primary);
}

.navbar-right {
	display: flex;
	align-items: center;
	gap: 20px;
}

.back-link {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--text-secondary);
	text-decoration: none;
	font-size: 14px;
	padding: 8px 12px;
	border-radius: 8px;
	transition: var(--transition);
}

.back-link:hover {
	background: var(--hover-bg);
	color: var(--primary);
}

.back-link i {
	font-size: 12px;
}

.navbar-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 16px;
	cursor: pointer;
	transition: var(--transition);
	box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}

.navbar-avatar:hover {
	transform: scale(1.05);
	box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
}

/* ========== 主内容区 ========== */
.main-content {
	margin-left: 0;
	min-height: 100vh;
	transition: var(--transition);
	background: linear-gradient(135deg, #f8fafc 0%, #f0fdfa 50%, #f8fafc 100%);
}

/* ========== 个人中心内容区 ========== */
.profile-section {
	padding: 96px 48px 40px;
	max-width: 1400px;
	margin: 0 auto;
}

.section-header {
	margin-bottom: 32px;
}

.section-title {
	font-size: 28px;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 8px;
}

.section-subtitle {
	font-size: 14px;
	color: var(--text-secondary);
}

/* ========== 用户信息卡片 ========== */
.user-info-card {
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: 16px;
	padding: 32px;
	margin-bottom: 24px;
	transition: var(--transition);
}

.user-info-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 32px rgba(13, 148, 136, 0.12);
}

.user-info-main {
	display: flex;
	gap: 24px;
	margin-bottom: 24px;
}

/* 头像区域 */
.avatar-section {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.user-avatar {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 40px;
	color: white;
	box-shadow: 0 4px 16px rgba(13, 148, 136, 0.3);
}

.change-avatar-btn {
	padding: 8px 16px;
	background: var(--bg-darker);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	font-size: 12px;
	color: var(--text-secondary);
	cursor: pointer;
	transition: var(--transition);
}

.change-avatar-btn:hover {
	border-color: var(--primary);
	color: var(--primary);
}

/* 用户信息区域 */
.user-details {
	flex: 1;
}

.user-name {
	font-size: 24px;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 8px;
}

.user-email {
	font-size: 14px;
	color: var(--text-secondary);
	margin-bottom: 12px;
}

.user-meta {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.user-role {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	background: var(--active-bg);
	color: var(--primary);
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
}

.user-join-date {
	font-size: 13px;
	color: var(--text-muted);
}

/* 编辑按钮 */
.edit-profile-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
	border: none;
	border-radius: 10px;
	color: white;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: var(--transition);
	box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

.edit-profile-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(13, 148, 136, 0.35);
}

/* 统计信息行 */
.user-stats {
	display: flex;
	padding-top: 24px;
	border-top: 1px solid var(--border-color);
}

.stat-box {
	flex: 1;
	text-align: center;
	padding: 0 16px;
	position: relative;
}

.stat-box:not(:last-child)::after {
	content: '';
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	height: 40px;
	width: 1px;
	background: var(--border-color);
}

.stat-value {
	font-size: 28px;
	font-weight: 700;
	background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 4px;
}

.stat-name {
	font-size: 12px;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* ========== 双列布局 ========== */
.content-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 24px;
	margin-bottom: 24px;
}

/* 通用卡片样式 */
.card {
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: 16px;
	padding: 24px;
	transition: var(--transition);
}

.card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 32px rgba(13, 148, 136, 0.12);
}

.card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.card-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	font-weight: 600;
	color: var(--text-primary);
}

.card-title-icon {
	width: 32px;
	height: 32px;
	background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	color: white;
}

/* ========== 最近活动时间线 ========== */
.activity-timeline {
	margin-bottom: 24px;
}

.timeline-item {
	display: flex;
	gap: 16px;
	padding: 16px 0;
	position: relative;
}

.timeline-item:not(:last-child)::before {
	content: '';
	position: absolute;
	left: 15px;
	top: 48px;
	bottom: 0;
	width: 2px;
	background: var(--border-color);
}

.timeline-icon {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	flex-shrink: 0;
}

.timeline-icon.doc {
	background: #eff6ff;
	color: #2563eb;
}

.timeline-icon.download {
	background: #fce7f3;
	color: #db2777;
}

.timeline-icon.api {
	background: #ecfdf5;
	color: #059669;
}

.timeline-icon.star {
	background: #fef3c7;
	color: #d97706;
}

.timeline-content {
	flex: 1;
}

.timeline-title {
	font-size: 14px;
	font-weight: 500;
	color: var(--text-primary);
	margin-bottom: 4px;
}

.timeline-desc {
	font-size: 13px;
	color: var(--text-secondary);
	margin-bottom: 4px;
}

.timeline-time {
	font-size: 12px;
	color: var(--text-muted);
}

/* ========== 收藏列表 ========== */
.favorite-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	background: var(--bg-darker);
	border-radius: 10px;
	margin-bottom: 12px;
	transition: var(--transition);
}

.favorite-item:hover {
	background: var(--hover-bg);
}

.favorite-icon {
	width: 36px;
	height: 36px;
	background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	color: white;
	flex-shrink: 0;
}

.favorite-info {
	flex: 1;
	min-width: 0;
}

.favorite-title {
	font-size: 14px;
	font-weight: 500;
	color: var(--text-primary);
	margin-bottom: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.favorite-meta {
	display: flex;
	align-items: center;
	gap: 8px;
}

.favorite-tag {
	padding: 2px 8px;
	background: var(--active-bg);
	color: var(--primary);
	border-radius: 4px;
	font-size: 11px;
	font-weight: 500;
}

.favorite-date {
	font-size: 11px;
	color: var(--text-muted);
}

.favorite-remove {
	padding: 8px;
	background: transparent;
	border: none;
	color: var(--text-muted);
	cursor: pointer;
	transition: var(--transition);
	border-radius: 6px;
}

.favorite-remove:hover {
	background: #fef2f2;
	color: #dc2626;
}

/* ========== 安全设置卡片 ========== */
.security-card {
	margin-bottom: 16px;
}

.security-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px;
	background: var(--bg-darker);
	border-radius: 10px;
	margin-bottom: 12px;
}

.security-info {
	display: flex;
	align-items: center;
	gap: 12px;
}

.security-icon {
	width: 40px;
	height: 40px;
	background: var(--active-bg);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	color: var(--primary);
}

.security-label h4 {
	font-size: 14px;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 2px;
}

.security-label p {
	font-size: 12px;
	color: var(--text-muted);
}

.security-btn {
	padding: 8px 16px;
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	font-size: 13px;
	color: var(--text-secondary);
	cursor: pointer;
	transition: var(--transition);
}

.security-btn:hover {
	border-color: var(--primary);
	color: var(--primary);
}

/* ========== Toggle 开关 ========== */
.toggle-switch {
	position: relative;
	width: 44px;
	height: 24px;
	cursor: pointer;
}

.toggle-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.toggle-slider {
	position: absolute;
	inset: 0;
	background: var(--border-color);
	border-radius: 24px;
	transition: var(--transition);
}

.toggle-slider::before {
	content: '';
	position: absolute;
	width: 18px;
	height: 18px;
	left: 3px;
	bottom: 3px;
	background: white;
	border-radius: 50%;
	transition: var(--transition);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch input:checked + .toggle-slider {
	background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
	transform: translateX(20px);
}

/* ========== 通知设置 ========== */
.notification-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 0;
	border-bottom: 1px solid var(--border-color);
}

.notification-item:last-child {
	border-bottom: none;
}

.notification-label {
	display: flex;
	align-items: center;
	gap: 10px;
}

.notification-icon {
	width: 32px;
	height: 32px;
	background: var(--bg-darker);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	color: var(--text-secondary);
}

.notification-text h4 {
	font-size: 14px;
	font-weight: 500;
	color: var(--text-primary);
	margin-bottom: 2px;
}

.notification-text p {
	font-size: 12px;
	color: var(--text-muted);
}

/* ========== 许可证信息 ========== */
.license-card {
	background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
	color: white;
	margin-top: 16px;
}

.license-card:hover {
	box-shadow: 0 8px 32px rgba(13, 148, 136, 0.3);
}

.license-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.license-type {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 18px;
	font-weight: 700;
}

.license-badge {
	padding: 4px 10px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 20px;
	font-size: 11px;
}

.license-info {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.license-expire {
	font-size: 13px;
	opacity: 0.9;
}

.renew-btn {
	padding: 10px 20px;
	background: white;
	border: none;
	border-radius: 8px;
	color: var(--primary);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: var(--transition);
}

.renew-btn:hover {
	transform: scale(1.05);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ========== 授权记录表格 ========== */
.license-record-card {
	margin-bottom: 24px;
}

.table-container {
	overflow-x: auto;
	margin: 0 -24px;
	padding: 0 24px;
}

.license-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.license-table th {
	background: var(--bg-darker);
	color: var(--text-secondary);
	font-weight: 600;
	text-align: left;
	padding: 14px 16px;
	border-bottom: 2px solid var(--border-color);
	white-space: nowrap;
}

.license-table td {
	padding: 16px;
	border-bottom: 1px solid var(--border-color);
	vertical-align: middle;
}

.license-table tbody tr {
	transition: var(--transition);
}

.license-table tbody tr:nth-child(even) {
	background: var(--bg-darker);
}

.license-table tbody tr:hover {
	background: var(--hover-bg);
}

.license-table tbody tr:last-child td {
	border-bottom: none;
}

/* 表格内的标签样式 */
.license-tag {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 500;
}

.license-tag.trial {
	background: #dbeafe;
	color: #1d4ed8;
}

.license-tag.official {
	background: #d1fae5;
	color: #047857;
}

.license-tag.enterprise {
	background: #ede9fe;
	color: #6d28d9;
}

.license-tag.active {
	background: #d1fae5;
	color: #047857;
}

.license-tag.expired {
	background: #fee2e2;
	color: #dc2626;
}

.license-tag.pending {
	background: #fef3c7;
	color: #d97706;
}

.license-id {
	font-family: 'Consolas', 'Monaco', monospace;
	color: var(--text-muted);
	font-size: 13px;
}

.license-product {
	font-weight: 500;
	color: var(--text-primary);
}

.license-date {
	color: var(--text-secondary);
	white-space: nowrap;
}

.renew-license-btn {
	padding: 6px 14px;
	background: var(--primary);
	border: none;
	border-radius: 6px;
	color: white;
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	transition: var(--transition);
}

.renew-license-btn:hover {
	background: var(--primary-dark);
	transform: translateY(-1px);
}

/* ========== 授权申请表单 ========== */
.license-apply-card {
	margin-bottom: 24px;
}

.apply-form {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.form-group {
	margin-bottom: 0;
}

.form-group.full-width {
	grid-column: 1 / -1;
}

.form-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
	width: 100%;
	padding: 12px 16px;
	background: var(--bg-darker);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	font-size: 14px;
	color: var(--text-primary);
	outline: none;
	transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
	color: var(--text-muted);
}

.form-select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 40px;
	cursor: pointer;
}

.form-textarea {
	min-height: 100px;
	resize: vertical;
	font-family: inherit;
}

/* 单选按钮组 */
.radio-group {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.radio-item {
	position: relative;
}

.radio-item input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.radio-label {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	background: var(--bg-darker);
	border: 1px solid var(--border-color);
	border-radius: 24px;
	font-size: 14px;
	color: var(--text-secondary);
	cursor: pointer;
	transition: var(--transition);
}

.radio-item input:checked + .radio-label {
	background: var(--primary);
	border-color: var(--primary);
	color: white;
}

.radio-item:hover .radio-label {
	border-color: var(--primary);
	color: var(--primary);
}

.radio-item input:checked + .radio-label:hover {
	color: white;
}

.form-actions {
	grid-column: 1 / -1;
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	margin-top: 8px;
}

.btn-submit {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 28px;
	background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
	border: none;
	border-radius: 10px;
	color: white;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: var(--transition);
	box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

.btn-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(13, 148, 136, 0.35);
}

.btn-reset {
	padding: 12px 24px;
	background: var(--bg-darker);
	border: 1px solid var(--border-color);
	border-radius: 10px;
	font-size: 14px;
	color: var(--text-secondary);
	cursor: pointer;
	transition: var(--transition);
}

.btn-reset:hover {
	border-color: var(--text-muted);
}

/* ========== 成功提示 Toast ========== */
.toast {
	position: fixed;
	top: 80px;
	left: 50%;
	transform: translateX(-50%) translateY(-20px);
	background: #10b981;
	color: white;
	padding: 14px 24px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 500;
	box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	z-index: 2000;
	display: flex;
	align-items: center;
	gap: 10px;
}

.toast.show {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

.toast i {
	font-size: 16px;
}

/* ========== 模态框 ========== */
.modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	opacity: 0;
	visibility: hidden;
	transition: var(--transition);
}

.modal-overlay.show {
	opacity: 1;
	visibility: visible;
}

.modal {
	background: var(--bg-card);
	border-radius: 16px;
	width: 90%;
	max-width: 500px;
	max-height: 90vh;
	overflow-y: auto;
	transform: scale(0.9);
	transition: var(--transition);
}

.modal-overlay.show .modal {
	transform: scale(1);
}

.modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	border-bottom: 1px solid var(--border-color);
}

.modal-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--text-primary);
}

.modal-close {
	width: 32px;
	height: 32px;
	background: var(--bg-darker);
	border: none;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: var(--transition);
	color: var(--text-secondary);
}

.modal-close:hover {
	background: var(--primary);
	color: white;
}

.modal-body {
	padding: 24px;
}

.modal-body .form-group {
	margin-bottom: 20px;
}

.modal-body .form-group:last-child {
	margin-bottom: 0;
}

.modal-body .form-input {
	width: 100%;
	padding: 12px 16px;
	background: var(--bg-darker);
	border: 1px solid var(--border-color);
	border-radius: 10px;
	font-size: 14px;
	color: var(--text-primary);
	outline: none;
	transition: var(--transition);
}

.modal-body .form-input:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	padding: 20px 24px;
	border-top: 1px solid var(--border-color);
}

.btn-cancel {
	padding: 12px 24px;
	background: var(--bg-darker);
	border: 1px solid var(--border-color);
	border-radius: 10px;
	font-size: 14px;
	color: var(--text-secondary);
	cursor: pointer;
	transition: var(--transition);
}

.btn-cancel:hover {
	border-color: var(--text-muted);
}

.btn-primary {
	padding: 12px 24px;
	background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
	border: none;
	border-radius: 10px;
	font-size: 14px;
	color: white;
	font-weight: 600;
	cursor: pointer;
	transition: var(--transition);
	box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(13, 148, 136, 0.35);
}

/* ========== 确认弹窗 ========== */
.confirm-dialog {
	position: fixed;
	background: var(--bg-card);
	border-radius: 12px;
	padding: 24px;
	width: 320px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
	z-index: 10001;
	opacity: 0;
	visibility: hidden;
	transform: scale(0.9);
	transition: var(--transition);
}

.confirm-dialog.show {
	opacity: 1;
	visibility: visible;
	transform: scale(1);
}

.confirm-icon {
	width: 48px;
	height: 48px;
	background: #fef2f2;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	color: #dc2626;
	margin: 0 auto 16px;
}

.confirm-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--text-primary);
	text-align: center;
	margin-bottom: 8px;
}

.confirm-message {
	font-size: 14px;
	color: var(--text-secondary);
	text-align: center;
	margin-bottom: 20px;
}

.confirm-actions {
	display: flex;
	gap: 12px;
}

.confirm-actions button {
	flex: 1;
	padding: 10px 16px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: var(--transition);
}

.confirm-cancel {
	background: var(--bg-darker);
	border: 1px solid var(--border-color);
	color: var(--text-secondary);
}

.confirm-cancel:hover {
	background: var(--hover-bg);
}

.confirm-ok {
	background: #dc2626;
	border: none;
	color: white;
}

.confirm-ok:hover {
	background: #b91c1c;
}

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
	.profile-section {
		padding: 96px 32px 40px;
	}

	.content-grid {
		grid-template-columns: 1fr;
	}

	.apply-form {
		grid-template-columns: 1fr;
	}

	.form-group.full-width {
		grid-column: 1;
	}
}

@media (max-width: 768px) {
	.top-navbar {
		padding: 0 16px;
	}

	.navbar-title {
		font-size: 16px;
	}

	.back-link span {
		display: none;
	}

	.profile-section {
		padding: 80px 16px 32px;
	}

	.user-info-main {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.user-details {
		order: 2;
	}

	.avatar-section {
		order: 1;
	}

	.edit-profile-btn {
		order: 3;
		margin-top: 16px;
		width: 100%;
		justify-content: center;
	}

	.user-stats {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}

	.stat-box {
		padding: 12px;
	}

	.stat-box:not(:last-child)::after {
		display: none;
	}

	.stat-box:nth-child(1),
	.stat-box:nth-child(2) {
		border-bottom: 1px solid var(--border-color);
		padding-bottom: 16px;
	}

	.card {
		padding: 20px;
	}

	.table-container {
		margin: 0 -20px;
		padding: 0 20px;
	}

	.license-table {
		font-size: 13px;
	}

	.license-table th,
	.license-table td {
		padding: 12px 10px;
	}

	.form-actions {
		flex-direction: column;
	}

	.btn-submit,
	.btn-reset {
		width: 100%;
		justify-content: center;
	}

	.modal {
		width: 95%;
		margin: 16px;
	}

	.toast {
		width: calc(100% - 32px);
		left: 16px;
		right: 16px;
		transform: translateX(0) translateY(-20px);
	}

	.toast.show {
		transform: translateX(0) translateY(0);
	}
}