/* 课程班报名系统 - 主样式文件 */

:root {
    --primary-color: #1e88e5;
    --primary-dark: #1565c0;
    --primary-light: #64b5f6;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --info-color: #2196f3;
    --text-color: #333;
    --text-light: #666;
    --text-muted: #999;
    --border-color: #e0e0e0;
    --bg-color: #f5f7fa;
    --white: #fff;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --radius: 8px;
    --radius-lg: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

/* 精致滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 模态框滚动条 */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(30,136,229,0.3);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(30,136,229,0.5);
}

/* textarea滚动条 */
textarea::-webkit-scrollbar {
    width: 6px;
}

textarea::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}

textarea::-webkit-scrollbar-thumb {
    background: rgba(30,136,229,0.4);
    border-radius: 3px;
}

textarea::-webkit-scrollbar-thumb:hover {
    background: rgba(30,136,229,0.6);
}

/* layui下拉框美化 */
.layui-form-select dl {
    border-radius: 10px !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12) !important;
    border: 2px solid rgba(30,136,229,0.15) !important;
    margin-top: 4px !important;
}

.layui-form-select dl dd {
    padding: 12px 18px !important;
    transition: all 0.2s !important;
    font-size: 14px !important;
}

.layui-form-select dl dd:hover {
    background: rgba(30,136,229,0.1) !important;
    padding-left: 22px !important;
}

.layui-form-select dl dd.layui-this {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    color: white !important;
    font-weight: 600 !important;
}

.layui-form-select .layui-edge {
    border-top-color: var(--primary-color) !important;
    border-width: 6px !important;
}

.layui-form-select .layui-input {
    border: 2px solid var(--border-color) !important;
    border-radius: 10px !important;
    padding: 14px 18px !important;
    background: #fafbfc !important;
    transition: all 0.3s !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.layui-form-select .layui-input:hover {
    border-color: var(--primary-light) !important;
    background: var(--white) !important;
}

.layui-form-select.layui-form-selected .layui-input {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.12) !important;
    background: var(--white) !important;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-dark);
}

/* 头部导航 */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 28px;
}

.nav-menu {
    display: flex;
    gap: 15px;
    list-style: none;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    padding: 10px 20px;
    border-radius: var(--radius);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.nav-menu a i {
    font-size: 16px;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    transform: translateY(-1px);
}

.nav-menu a.active {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
}

/* 主容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 页面标题 */
.page-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-title i {
    color: var(--primary-color);
}

/* 卡片样式 */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s;
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 18px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-body {
    padding: 20px;
}

/* 课程卡片 */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.course-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.05);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(30,136,229,0.15);
    border-color: var(--primary-light);
}

.course-card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 24px;
    position: relative;
}

.course-card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(255,255,255,0.3), rgba(255,255,255,0));
}

.course-card-header h3 {
    font-size: 19px;
    margin-bottom: 10px;
    line-height: 1.4;
    font-weight: 600;
}

.course-card-header .category {
    font-size: 13px;
    opacity: 0.95;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
}

.course-card-body {
    padding: 24px;
    background: linear-gradient(to bottom, #fafbfc, var(--white));
}

.course-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 14px;
    color: var(--text-light);
    padding: 8px 12px;
    background: rgba(30,136,229,0.04);
    border-radius: 8px;
    transition: all 0.2s;
}

.course-info-item:hover {
    background: rgba(30,136,229,0.08);
}

.course-info-item i {
    color: var(--primary-color);
    width: 20px;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.course-info-item span {
    flex: 1;
    line-height: 1.6;
}

.course-info-item:last-child {
    margin-bottom: 0;
}

.course-card-footer {
    padding: 20px 24px;
    background: linear-gradient(to top, #f8f9fa, var(--white));
    border-top: 1px solid rgba(0,0,0,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--danger-color);
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.course-price small {
    font-size: 14px;
    font-weight: normal;
    color: var(--text-muted);
}

.course-status {
    padding: 6px 16px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.status-open {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
}

.status-closed {
    background: linear-gradient(135deg, #f44336, #ef5350);
    color: white;
}

.status-full {
    background: #fff3e0;
    color: var(--warning-color);
}

/* 页面标题 */
.page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title i {
    color: var(--primary-color);
    font-size: 32px;
}

/* 筛选区域 */
.filter-section {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-item label {
    font-size: 14px;
    color: var(--text-light);
    white-space: nowrap;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group label .required {
    color: var(--danger-color);
    margin-left: 3px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
    background: #fafbfc;
}

.form-control:hover {
    border-color: var(--primary-light);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.12);
    background: var(--white);
}

.form-control:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #0d47a1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #388e3c);
    color: var(--white);
}

.btn-success:hover {
    background: linear-gradient(135deg, #388e3c, #2e7d32);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #d32f2f);
    color: var(--white);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #d32f2f, #c62828);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color), #f57c00);
    color: var(--white);
}

.btn-default {
    background: #f5f5f5;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-default:hover {
    background: #e0e0e0;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 15px 35px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* 表格样式 */
.table-wrapper {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
}

.data-table tr:hover {
    background: #f8f9fa;
}

.data-table .actions {
    white-space: nowrap;
}

.data-table .actions .btn {
    margin-right: 5px;
}

/* 状态标签 */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge-pending {
    background: #fff3e0;
    color: var(--warning-color);
}

.badge-paid {
    background: #e3f2fd;
    color: var(--info-color);
}

.badge-confirmed {
    background: #e8f5e9;
    color: var(--success-color);
}

.badge-rejected {
    background: #ffebee;
    color: var(--danger-color);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 25px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 18px;
    font-size: 14px;
    transition: all 0.3s;
}

.pagination a {
    background: var(--white);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.pagination a:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination .active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* 提示信息 */
.alert {
    padding: 18px 24px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.alert i {
    font-size: 20px;
    flex-shrink: 0;
}

.alert-info {
    background: linear-gradient(135deg, #e3f2fd, #f0f7ff);
    color: #1565c0;
}

.alert-success {
    background: linear-gradient(135deg, #e8f5e9, #f1f8f4);
    color: #2e7d32;
}

.alert-warning {
    background: linear-gradient(135deg, #fff8e1, #fffbf0);
    color: #f57c00;
}

.alert-danger {
    background: linear-gradient(135deg, #ffebee, #fff5f5);
    color: #c62828;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-light);
}

/* 页脚 */
.footer {
    background: transparent;
    color: var(--text-muted);
    padding: 30px 20px;
    text-align: center;
    margin-top: 50px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.footer p {
    font-size: 13px;
    font-weight: 400;
}

/* 统计卡片 */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
}

.stat-icon.blue { background: linear-gradient(135deg, #2196f3, #1976d2); }
.stat-icon.green { background: linear-gradient(135deg, #4caf50, #388e3c); }
.stat-icon.orange { background: linear-gradient(135deg, #ff9800, #f57c00); }
.stat-icon.purple { background: linear-gradient(135deg, #9c27b0, #7b1fa2); }
.stat-icon.red { background: linear-gradient(135deg, #f44336, #d32f2f); }

.stat-info h3 {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 5px;
}

.stat-info p {
    font-size: 14px;
    color: var(--text-muted);
}

/* 详情页布局 */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 32px;
}



.detail-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.detail-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 36px;
    position: relative;
}

.detail-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(255,255,255,0.4), rgba(255,255,255,0));
}

.detail-header h1 {
    font-size: 28px;
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 14px;
    opacity: 0.95;
}

.detail-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    padding: 6px 14px;
    border-radius: 20px;
}

.detail-meta span i {
    font-size: 16px;
}

.detail-content {
    padding: 36px;
    background: #fff;
}

.detail-section {
    margin-bottom: 36px;
}

.detail-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
    font-weight: 700;
    color: var(--text-color);
}

.detail-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.detail-stat-item {
    background: #ffffff;
    padding: 28px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid rgba(30,136,229,0.15);
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.detail-stat-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary-light);
    box-shadow: 0 8px 16px rgba(30,136,229,0.1);
}

.detail-stat-item .number {
    font-size: 40px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.detail-stat-item .label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
    font-weight: 500;
}

/* 支付页面 */
.payment-info {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 28px;
    border: 2px solid rgba(30,136,229,0.12);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.payment-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px dashed rgba(0,0,0,0.08);
}

.payment-info-row:last-child {
    border-bottom: none;
}

.payment-info-row .label {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

.payment-info-row .value {
    font-weight: 600;
    color: var(--text-color);
    font-size: 15px;
}

.qrcode-section {
    text-align: center;
    padding: 36px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 12px;
    margin-bottom: 28px;
    border: 2px solid rgba(30,136,229,0.1);
}

.qrcode-section img {
    max-width: 280px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 3px solid white;
}

.qrcode-section p {
    margin-top: 20px;
    color: var(--text-light);
    font-size: 15px;
    font-weight: 500;
}

.upload-section {
    border: 3px dashed rgba(30,136,229,0.3);
    border-radius: 16px;
    padding: 48px 30px;
    text-align: center;
    transition: all 0.3s;
    background: linear-gradient(to bottom, #fafbfc, #ffffff);
    cursor: pointer;
}

.upload-section:hover {
    border-color: var(--primary-color);
    background: linear-gradient(to bottom, #f0f7ff, #ffffff);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30,136,229,0.1);
}

.upload-section i {
    font-size: 64px;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.upload-section p {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 500;
}

/* 后台侧边栏 */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: linear-gradient(180deg, #1e3a5f, #0d2137);
    color: var(--white);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.admin-sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar-header h2 {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-menu {
    padding: 15px 0;
    list-style: none;
}

.admin-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 25px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
    font-size: 14px;
}

.admin-menu li a:hover,
.admin-menu li a.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-left: 3px solid var(--primary-light);
}

.admin-menu li a i {
    width: 20px;
    text-align: center;
}

.admin-main {
    flex: 1;
    margin-left: 250px;
    padding: 30px;
    background: var(--bg-color);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-header h1 {
    font-size: 24px;
    color: var(--text-color);
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-user span {
    color: var(--text-light);
}

/* 模态框 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: all 0.3s;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--text-color);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* 复制按钮 */
.copy-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px;
    font-size: 14px;
}

.copy-btn:hover {
    color: var(--primary-dark);
}

/* 图片预览 */
.img-preview {
    max-width: 100%;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.3s;
}

.img-preview:hover {
    transform: scale(1.02);
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--radius);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 36px;
    cursor: pointer;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 工具类 */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }
.text-warning { color: var(--warning-color); }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none !important; }
