/**
 * 学术会议缴费系统样式表
 * Conference Payment System Stylesheet
 */

/* === 基础样式 === */
:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --danger-color: #ef4444;
    --danger-hover: #dc2626;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --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, "Noto Sans SC", sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--gray-800);
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* === 语言切换 === */
.language-switch {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    font-size: 14px;
}

.language-switch a {
    color: var(--gray-500);
    padding: 4px 8px;
    transition: color 0.2s;
}

.language-switch a:hover,
.language-switch a.active {
    color: var(--primary-color);
    text-decoration: none;
}

.language-switch .divider {
    color: var(--gray-300);
    margin: 0 4px;
}

.language-switch.center {
    position: static;
    display: inline-block;
    margin-top: 20px;
}

.header-right .language-switch {
    position: static;
    background: transparent;
    padding: 4px 8px;
    box-shadow: none;
    border-radius: 0;
}

/* === 前端页面 === */
.frontend .container {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 20px 40px;
}

.error-page {
    text-align: center;
    background: white;
    padding: 60px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.error-page i {
    font-size: 64px;
    color: var(--warning-color);
    margin-bottom: 20px;
}

.error-page h2 {
    color: var(--gray-700);
    margin-bottom: 10px;
}

.error-page p {
    color: var(--gray-500);
}

.conference-header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.conference-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.conference-header .description {
    font-size: 15px;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
}

.payment-form {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 30px;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === 二维码区域 === */
.qrcode-section {
    text-align: center;
    padding: 24px;
    background: var(--gray-50);
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.qrcode-section h3 {
    font-size: 16px;
    color: var(--gray-700);
    margin-bottom: 16px;
}

.qrcode-section h3 i {
    margin-right: 8px;
    color: var(--primary-color);
}

.qrcode-container {
    display: inline-block;
    padding: 16px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.qrcode-image {
    max-width: 200px;
    height: auto;
    display: block;
}

.qrcode-caption {
    margin-top: 16px;
    font-size: 14px;
    color: var(--gray-600);
}

/* === 表单元素 === */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-group label .required {
    color: var(--danger-color);
    margin-left: 2px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

/* Placeholder 统一样式 */
.form-group input::placeholder,
.form-group textarea::placeholder,
.form-group select::placeholder {
    color: var(--gray-400);
    opacity: 1;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    font-size: inherit;
}

.form-divider {
    display: flex;
    align-items: center;
    margin: 28px 0 20px;
    color: var(--gray-500);
    font-size: 14px;
    font-weight: 500;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.form-divider span {
    padding: 0 16px;
}

.form-description {
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--gray-700);
    margin-bottom: 20px;
}

.form-description--amber {
    background: #fef3c7;
    border-color: #fcd34d;
    color: #92400e;
}

.form-description--indigo {
    background: #e0e7ff;
    border-color: #a5b4fc;
    color: #3730a3;
}

.form-description--purple {
    background: #f3e8ff;
    border-color: #c084fc;
    color: #6b21a8;
}

.form-description--emerald {
    background: #d1fae5;
    border-color: #6ee7b7;
    color: #065f46;
}

.form-description--rose {
    background: #ffe4e6;
    border-color: #fda4af;
    color: #9f1239;
}

.form-description--sky {
    background: #e0f2fe;
    border-color: #7dd3fc;
    color: #075985;
}

.form-description--gray {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: var(--gray-600);
}

/* Description background color select */
.desc-bg-select-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 240px;
}

.desc-bg-dot {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid var(--gray-300);
    flex-shrink: 0;
}

.desc-bg-select {
    flex: 1;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--gray-700);
}

.radio-label input,
.checkbox-label input {
    margin-right: 10px;
    accent-color: var(--primary-color);
}

/* === 按钮 === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none !important;
    box-sizing: border-box;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}

.btn-outline:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: var(--danger-hover);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.submit-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    margin-top: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* === 成功消息 === */
.success-message {
    text-align: center;
    background: white;
    padding: 60px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.4s ease;
}

.success-message i {
    font-size: 64px;
    color: var(--success-color);
    margin-bottom: 20px;
}

.success-message p {
    font-size: 18px;
    color: var(--gray-700);
}

/* === 后台登录 === */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-box h1 {
    font-size: 24px;
    color: var(--gray-800);
    margin-bottom: 30px;
}

.login-box h1 i {
    margin-right: 10px;
    color: var(--primary-color);
}

.login-form .form-group {
    text-align: left;
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* === 后台管理 === */
.admin {
    background: var(--gray-100);
}

.admin-wrapper {
    min-height: 100vh;
}

.admin-header {
    background: white;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-left h1 {
    font-size: 20px;
    color: var(--gray-800);
}

.header-left h1 i {
    margin-right: 10px;
    color: var(--primary-color);
}

.back-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: var(--radius);
    color: var(--gray-600);
    transition: all 0.2s;
}

.back-link:hover {
    background: var(--gray-200);
    text-decoration: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-main {
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 24px;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.record-count {
    font-size: 14px;
    color: var(--gray-500);
}

/* === 会议列表 === */
.conference-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.conference-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.conference-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.card-header h3 {
    font-size: 18px;
    color: var(--gray-800);
    flex: 1;
    margin-right: 12px;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.status-badge.active {
    background: #dcfce7;
    color: #166534;
}

.status-badge.closed {
    background: #fee2e2;
    color: #991b1b;
}

.card-desc {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 16px;
    line-height: 1.5;
}

.card-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 16px;
}

.card-meta i {
    margin-right: 6px;
}

.card-actions {
    display: flex;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
}

/* === 空状态 === */
.empty-state {
    text-align: center;
    padding: 80px 40px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.empty-state i {
    font-size: 64px;
    color: var(--gray-300);
    margin-bottom: 20px;
}

.empty-state p {
    color: var(--gray-500);
    font-size: 15px;
}

/* === 会议表单 === */
.conference-form {
    max-width: 900px;
}

.form-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.form-section h2 {
    font-size: 16px;
    color: var(--gray-800);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
}

.form-section h2 i {
    margin-right: 10px;
    color: var(--primary-color);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
}

.section-header h2 {
    margin: 0;
    padding: 0;
    border: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* === 字段编辑器 === */
.fields-container {
    min-height: 100px;
}

.field-item {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.field-item.dragging {
    opacity: 0.5;
}

.field-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: white;
    cursor: move;
    gap: 12px;
}

.field-type-badge {
    padding: 2px 8px;
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.field-title {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
}

.field-actions {
    display: flex;
    gap: 4px;
}

.field-body {
    padding: 16px;
    display: none;
}

.field-item.expanded .field-body {
    display: block;
}

.field-item.expanded .toggle-field i {
    transform: rotate(180deg);
}

.toggle-field i {
    transition: transform 0.2s;
}

/* === 条件显示配置 === */
.condition-group {
    background: var(--gray-50);
    border: 1px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: 12px;
    margin-bottom: 16px;
}

.condition-group > label {
    color: var(--primary-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.condition-hint {
    display: block;
    color: var(--gray-500);
    font-size: 12px;
    margin-bottom: 10px;
}

.condition-regex-hint {
    display: block;
    color: var(--primary);
    font-size: 11px;
    margin-top: 4px;
    font-style: italic;
}

.condition-config {
    margin-top: 8px;
}

.condition-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.condition-row .form-group {
    flex: 1;
    min-width: 150px;
}

.condition-row .form-group label {
    font-size: 12px;
    color: var(--gray-600);
}

.condition-row select,
.condition-row input {
    font-size: 13px;
    padding: 6px 10px;
}

/* 前端条件隐藏的字段 */
.condition-hidden {
    display: none !important;
}

/* === 下拉菜单 === */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    padding: 8px;
    z-index: 1000;
    display: none;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--gray-700);
    text-align: left;
    background: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: var(--gray-100);
    text-decoration: none;
}

.dropdown-item i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.add-field-dropdown {
    position: relative;
}

.add-field-dropdown .dropdown-menu {
    right: 0;
    max-height: 300px;
    overflow-y: auto;
}

/* === 数据表格 === */
.data-table-wrapper {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
}

.data-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
    white-space: nowrap;
}

.data-table td {
    border-top: 1px solid var(--gray-100);
    color: var(--gray-600);
}

.data-table tbody tr:hover {
    background: var(--gray-50);
}

.data-table th:last-child,
.data-table td:last-child {
    position: sticky;
    right: 0;
    z-index: 1;
    background: white;
    box-shadow: -2px 0 4px rgba(0, 0, 0, 0.05);
}

.data-table th:last-child {
    background: var(--gray-50);
}

.data-table tbody tr:hover td:last-child {
    background: var(--gray-50);
}

/* === 模态框 === */
.modal {
    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: 1000;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 400px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}

.modal-content h3 {
    font-size: 18px;
    color: var(--gray-800);
    margin-bottom: 12px;
}

.modal-content p {
    color: var(--gray-600);
    margin-bottom: 24px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* === Toast提示 === */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 24px;
    background: var(--gray-800);
    color: white;
    border-radius: var(--radius);
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s;
    z-index: 2000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    background: var(--success-color);
}

.toast.error {
    background: var(--danger-color);
}

/* === 二维码上传 === */
.qrcode-upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.qrcode-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.05);
}

.qrcode-upload-area.has-image {
    padding: 16px;
}

.qrcode-upload-area img {
    max-width: 150px;
    max-height: 150px;
    margin-bottom: 10px;
}

.qrcode-upload-area i {
    font-size: 32px;
    color: var(--gray-400);
    margin-bottom: 10px;
}

.qrcode-upload-area p {
    font-size: 14px;
    color: var(--gray-500);
}

/* === 响应式设计 === */
@media (max-width: 768px) {
    .frontend .container {
        padding: 50px 16px 30px;
    }

    .conference-header h1 {
        font-size: 22px;
    }

    .payment-form {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .conference-list {
        grid-template-columns: 1fr;
    }

    .admin-header {
        padding: 12px 16px;
    }

    .admin-header h1 {
        font-size: 16px;
    }

    .admin-main {
        padding: 16px;
    }

    .toolbar {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .toolbar-right {
        justify-content: flex-end;
    }

    .data-table-wrapper {
        overflow-x: auto;
    }

    .data-table {
        min-width: 600px;
    }

    .language-switch {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* === 文件上传区域（前端用户表单） === */
.file-upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--gray-50);
    position: relative;
}

.file-upload-area:hover,
.file-upload-area.drag-over {
    border-color: var(--primary-color);
    background: #eef2ff;
}

.file-upload-area .file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: -1;
}

.file-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.file-upload-placeholder i {
    font-size: 2rem;
    color: var(--gray-400);
}

.file-upload-placeholder p {
    color: var(--gray-600);
    margin: 0;
    font-size: 0.95rem;
}

.file-upload-btn {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius);
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.2s;
}

.file-upload-btn:hover {
    background: var(--primary-hover);
}

.file-accept-info,
.file-size-info {
    color: var(--gray-400);
    font-size: 0.8rem;
}

.file-selected-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    justify-content: center;
}

.file-selected-info i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.file-selected-info .file-name {
    color: var(--gray-700);
    font-size: 0.95rem;
    word-break: break-all;
}

.file-remove-btn {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 1rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.file-remove-btn:hover {
    background: #fef2f2;
}

/* === 文件链接（管理后台数据表） === */
.file-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary-color);
    font-size: 0.85rem;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.2s;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-link:hover {
    background: #eef2ff;
    text-decoration: underline;
}

.file-link i {
    flex-shrink: 0;
}
