/**
 * MLSTAT 2026 注册系统自定义样式
 * 使用 .custom- 前缀避免与主题冲突
 */

/* Material Icons（主题未包含） */
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

/* ==================== 颜色变量 ==================== */
:root {
    --custom-primary: #3f51b5;
    --custom-primary-dark: #303f9f;
    --custom-accent: #ff4081;
    --custom-success: #2e7d32;
    --custom-warning: #f57c00;
    --custom-error: #c62828;
    --custom-info: #1565c0;
}

/* ==================== 全局辅助样式 ==================== */
.grey-text {
    color: #666;
}

/* ==================== 用户导航 ==================== */
.custom-auth-nav {
    background: #f5f5f5;
    padding: 8px 12px;
    margin-bottom: 12px;
    border-radius: 4px;
    font-size: 14px;
    text-align: right;
}

.custom-auth-nav a {
    color: var(--custom-primary);
    text-decoration: none;
    margin: 0 4px;
}

.custom-auth-nav a:hover {
    text-decoration: underline;
}

/* ==================== 状态标签 ==================== */
.custom-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
}

.custom-chip.custom-status-pending {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffcc80;
}

.custom-chip.custom-status-submitted {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}

.custom-chip.custom-status-confirmed,
.custom-chip.custom-status-accepted {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.custom-chip.custom-status-rejected {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.custom-chip.custom-status-revision_required {
    background: #fff8e1;
    color: #f57c00;
    border: 1px solid #ffcc80;
}

/* ==================== 统计卡片 ==================== */
.custom-stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.custom-stat-card {
    flex: 1;
    min-width: 120px;
    padding: 20px;
    text-align: center;
    color: #fff;
    border-radius: 4px;
}

.custom-stat-card h3 {
    font-size: 32px;
    margin: 8px 0 4px;
    font-weight: 500;
}

.custom-stat-card p {
    margin: 0;
    font-size: 12px;
    opacity: .9;
}

/* ==================== Dashboard 样式 ==================== */
.dash-row {
    display: flex;
    gap: 16px;
}
.dash-row > .dash-section {
    flex: 1;
}
@media (max-width: 640px) {
    .dash-row {
        flex-direction: column;
        gap: 0;
    }
}
.dash-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 12px 14px;
    margin-bottom: 12px;
}
.dash-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--custom-primary);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}
.dash-title .material-icons {
    font-size: 18px;
}
.dash-title .dash-link-small {
    margin-left: auto;
    font-size: 12px;
    font-weight: normal;
}
.dash-info {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    border-bottom: 1px solid #f5f5f5;
}
.dash-info:last-child {
    border-bottom: none;
}
/* 海报项样式 */
.dash-poster-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.dash-poster-item:last-child {
    border-bottom: none;
}
.dash-poster-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.dash-poster-title {
    color: #333;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dash-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.dash-view-btn:hover {
    background: var(--custom-primary);
    border-color: var(--custom-primary);
    color: #fff;
}
.dash-view-btn i {
    font-size: 16px;
}
.dash-info span:first-child {
    color: #888;
}
.dash-info span:last-child {
    color: #333;
}
.dash-status {
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}
.dash-status-pending {
    background: #fff3e0;
    color: #e65100;
}
.dash-status-confirmed, .dash-status-accepted {
    background: #e8f5e9;
    color: #2e7d32;
}
.dash-status-submitted {
    background: #e3f2fd;
    color: #1565c0;
}
.dash-status-rejected {
    background: #ffebee;
    color: #c62828;
}
.dash-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--custom-primary);
    font-size: 13px;
}
.dash-empty {
    color: #999;
    font-size: 14px;
    padding: 8px 0;
}

/* ==================== 会议信息卡片 ==================== */
.conf-info-box {
    background: linear-gradient(135deg, #3f51b5 0%, #5c6bc0 100%);
    color: #fff;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 20px;
}
.conf-info-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.3);
}
.conf-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
}
.conf-info-row .material-icons {
    font-size: 18px;
    opacity: .8;
}
.conf-info-row span:first-of-type {
    width: 100px;
    opacity: .8;
}
.conf-info-row span:last-of-type {
    flex: 1;
}

/* ==================== 支付页面 ==================== */
.payment-box {
    max-width: 400px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
}
.payment-amount {
    margin-bottom: 20px;
}
.payment-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}
.payment-price {
    font-size: 36px;
    font-weight: 600;
    color: #e53935;
}
.payment-qr {
    margin: 20px 0;
}
.payment-qr img {
    width: 180px;
    height: 180px;
    border: 1px solid #eee;
    border-radius: 4px;
}
.payment-tip {
    margin-top: 8px;
    font-size: 13px;
    color: #666;
}
.payment-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #fff8e1;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 20px;
    text-align: left;
    font-size: 13px;
    color: #f57c00;
}
.payment-note .material-icons {
    font-size: 20px;
}
.payment-status-msg {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    text-align: left;
}
.payment-status-msg .material-icons {
    font-size: 32px;
}
.payment-status-pending {
    background: #e3f2fd;
    color: #1565c0;
}
.payment-status-success {
    background: #e8f5e9;
    color: #2e7d32;
}
.payment-info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-top: 1px solid #eee;
    font-size: 14px;
}
.payment-info-row span:last-child {
    font-weight: 600;
}

/* ==================== 注册费用提示 ==================== */
.reg-fee-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e3f2fd;
    color: #1565c0;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}
.reg-fee-notice .material-icons {
    font-size: 20px;
}
.reg-fee-notice strong {
    color: #e53935;
}

/* ==================== 通用卡片（其他页面用） ==================== */
.custom-card {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,.1);
    border: 1px solid #e0e0e0;
    padding: 12px;
    margin-bottom: 12px;
}
.custom-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--custom-primary);
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}
.custom-card a {
    color: var(--custom-primary);
}

/* ==================== Hotel 卡片 ==================== */
.custom-hotel-cards {
    display: flex;
    flex-wrap: wrap;
    margin: -12px;
}

.custom-hotel-cards > .card,
.custom-hotel-cards > .custom-card {
    flex: 1;
    min-width: 280px;
    margin: 12px;
}

/* ==================== 表单容器 ==================== */
.form-container,
.custom-form-container {
    max-width: 420px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ==================== 表单样式（简洁学术风格） ==================== */
.form-container .card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.form-container .card-content {
    padding: 32px;
}

.form-container .input-field {
    position: relative;
    margin-bottom: 20px;
}

.form-container .input-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.form-container .input-field label .material-icons {
    font-size: 18px;
    color: #757575;
}

.form-container .input-field input,
.form-container .input-field textarea,
.form-container .input-field select {
    width: 100%;
    height: 42px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    box-sizing: border-box;
    font-family: inherit;
}

.form-container .input-field select {
    background: #fff;
    cursor: pointer;
}

.form-container .input-field textarea {
    min-height: 80px;
    resize: vertical;
}

/* 删除旧的 prefix 绝对定位样式，改用 label 内联图标 */

.form-container .input-field .helper-text {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #888;
}

.form-container .input-field input:focus,
.form-container .input-field textarea:focus,
.form-container .input-field select:focus {
    outline: none;
    border-color: var(--custom-primary);
}

/* File input 样式 */
.form-container .input-field input[type="file"] {
    padding: 10px 12px;
    background: #fafafa;
    cursor: pointer;
}

.form-container .btn-large,
.form-container .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 12px 24px;
    background: var(--custom-primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

.form-container .btn-large:hover,
.form-container .btn:hover {
    background: var(--custom-primary-dark);
}

.form-container .divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 24px 0;
}

.form-container .center-align {
    text-align: center;
}

.form-container .grey-text {
    color: #666;
    font-size: 14px;
}

.form-container a {
    color: var(--custom-primary);
    text-decoration: none;
}

.form-container a:hover {
    text-decoration: underline;
}

.form-container .helper-text {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #888;
}

/* Row 布局 */
.form-container .row {
    display: flex;
    gap: 16px;
    margin: 0 0 8px 0;
}

.form-container .row .col,
.form-container .row [class*="col"],
.form-container .row > .input-field {
    flex: 1 1 0;
    min-width: 0;
    width: 0;
}

@media (max-width: 768px) {
    .form-container .row {
        flex-direction: column;
        gap: 0;
    }
    .form-container .row .col,
    .form-container .row [class*="col"],
    .form-container .row > .input-field {
        flex: none;
        width: 100%;
        min-width: 100%;
    }
    .form-container .row .input-field {
        margin-bottom: 20px;
    }
    .form-container {
        padding: 0 12px;
    }
    .form-container .card-content {
        padding: 24px 16px;
    }
    .form-container .input-field {
        margin-bottom: 24px;
    }
    .form-container .input-field label {
        font-size: 15px;
        margin-bottom: 10px;
        line-height: 1.4;
    }
    .form-container .input-field input,
    .form-container .input-field select,
    .form-container .input-field textarea {
        font-size: 16px;
        height: 48px;
        padding: 12px 14px;
    }
    .form-container .input-field .helper-text {
        font-size: 13px;
        margin-top: 6px;
        line-height: 1.4;
    }
}

/* Select 样式 */
.form-container select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    box-sizing: border-box;
}

.form-container select:focus {
    outline: none;
    border-color: var(--custom-primary);
}

/* ==================== 登录卡片 ==================== */
.custom-login-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,.12);
    padding: 48px 40px;
    border: 1px solid rgba(0,0,0,.05);
}

.custom-login-card h3 {
    text-align: center;
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 600;
    color: #1a1a2e;
    letter-spacing: -0.5px;
}

.custom-login-card .custom-subtitle {
    text-align: center;
    color: #8e8e9e;
    margin-bottom: 36px;
    font-size: 15px;
    letter-spacing: 0.3px;
}

/* ==================== 表单输入 ==================== */
.custom-input-field {
    margin-bottom: 24px;
    position: relative;
}

.custom-input-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.custom-input-field input,
.custom-input-field select,
.custom-input-field textarea {
    width: 100%;
    padding: 12px 16px;
    padding-left: 44px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.custom-input-field input:focus,
.custom-input-field select:focus,
.custom-input-field textarea:focus {
    outline: none;
    border-color: var(--custom-primary);
    box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.1);
}

.custom-input-field .custom-icon {
    position: absolute;
    left: 14px;
    top: 38px;
    color: #9e9e9e;
    font-size: 20px;
    pointer-events: none;
}

.custom-input-field input:focus + .custom-icon,
.custom-input-field input:focus ~ .custom-icon {
    color: var(--custom-primary);
}

/* 无图标的输入框 */
.custom-input-field.no-icon input,
.custom-input-field.no-icon select,
.custom-input-field.no-icon textarea {
    padding-left: 16px;
}

/* ==================== 复选框 ==================== */
.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.custom-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--custom-primary);
}

/* ==================== 表单 ==================== */
.custom-form-group {
    margin-bottom: 1.5rem;
}

.custom-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.custom-form-group input[type="text"],
.custom-form-group input[type="email"],
.custom-form-group input[type="password"],
.custom-form-group input[type="file"],
.custom-form-group textarea,
.custom-form-group select {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.custom-form-group input:focus,
.custom-form-group textarea:focus,
.custom-form-group select:focus {
    outline: none;
    border-color: var(--custom-primary);
    box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.1);
}

.custom-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.custom-form-group .helper-text {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 6px;
}

.custom-form-group .required {
    color: #f44336;
}

/* ==================== 按钮 ==================== */
.custom-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--custom-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

.custom-btn:hover {
    background: var(--custom-primary-dark);
    box-shadow: 0 4px 12px rgba(63, 81, 181, 0.3);
}

.custom-btn:active {
    transform: scale(0.98);
}

.custom-btn-large {
    padding: 14px 32px;
    font-size: 16px;
    width: 100%;
}

.custom-btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

.custom-btn-secondary {
    background: #757575;
}

.custom-btn-secondary:hover {
    background: #616161;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ==================== 链接 ==================== */
.custom-link {
    color: var(--custom-primary);
    text-decoration: none;
    font-weight: 500;
}

.custom-link:hover {
    text-decoration: underline;
}

.custom-text-muted {
    color: #666;
    font-size: 14px;
}

.custom-text-center {
    text-align: center;
}

.custom-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 24px 0;
}

/* ==================== 表单网格 ==================== */
.custom-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 0;
}

.custom-form-row > .custom-input-field {
    flex: 1;
    min-width: 0;
}

@media (max-width: 600px) {
    .custom-form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* 宽表单容器 */
.custom-form-container.wide {
    max-width: 560px;
}

/* 辅助文字 */
.custom-helper-text {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #9e9e9e;
}

/* ==================== 消息提示 ==================== */
.custom-message-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.custom-message-box.custom-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.custom-message-box.custom-warning {
    background: #fff3e0;
    color: #e65100;
}

.custom-message-box.custom-error {
    background: #ffebee;
    color: #c62828;
}

.custom-message-box.custom-info {
    background: #e3f2fd;
    color: #1565c0;
}

/* ==================== 信息表格 ==================== */
.custom-info-table {
    width: 100%;
    border-collapse: collapse;
}

.custom-info-table th {
    text-align: left;
    padding: 6px 8px;
    background: #f8f8f8;
    font-weight: 500;
    font-size: 13px;
    color: #666;
    border-bottom: 1px solid #e0e0e0;
}

.custom-info-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    vertical-align: middle;
}

.custom-info-table tr:last-child td {
    border-bottom: none;
}

.custom-info-table td:first-child {
    color: #888;
    font-size: 13px;
    width: 100px;
}

.custom-info-table td:last-child {
    color: #333;
}

/* ==================== Modal ==================== */
.custom-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.custom-modal-overlay.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.custom-modal-box {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 24px 48px rgba(0,0,0,.2);
    padding: 24px;
    max-width: 400px;
    width: 90%;
}

.custom-modal-box h3 {
    margin: 0 0 20px;
    font-size: 18px;
}

.custom-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

/* ==================== Tabs ==================== */
.custom-tab-nav {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 24px;
}

.custom-tab-nav button {
    flex: 1;
    padding: 16px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: rgba(0,0,0,.54);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.custom-tab-nav button:hover {
    color: var(--custom-primary);
}

.custom-tab-nav button.active {
    color: var(--custom-primary);
    border-bottom-color: var(--custom-primary);
}

.custom-tab-content {
    display: none;
}

.custom-tab-content.active {
    display: block;
}

/* ==================== Admin 页面容器 ==================== */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--custom-primary);
}

.admin-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #1a1a2e;
}

.admin-header .material-icons {
    font-size: 28px;
    color: var(--custom-primary);
}

/* ==================== Admin 统计卡片 ==================== */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.admin-stat-card {
    background: linear-gradient(135deg, var(--stat-color) 0%, var(--stat-color-light) 100%);
    border-radius: 12px;
    padding: 20px 24px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.admin-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.admin-stat-card::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.admin-stat-card .stat-icon {
    font-size: 32px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.admin-stat-card .stat-value {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
}

.admin-stat-card .stat-label {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 4px;
}

.admin-stat-card.stat-users {
    --stat-color: #1565c0;
    --stat-color-light: #42a5f5;
}

.admin-stat-card.stat-registrations {
    --stat-color: #2e7d32;
    --stat-color-light: #66bb6a;
}

.admin-stat-card.stat-pending-payments {
    --stat-color: #ef6c00;
    --stat-color-light: #ffa726;
}

.admin-stat-card.stat-pending-posters {
    --stat-color: #00897b;
    --stat-color-light: #4db6ac;
}

/* 收入汇总卡片 */
.admin-summary-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-summary-card .summary-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2e7d32 0%, #66bb6a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.admin-summary-card .summary-icon .material-icons {
    font-size: 24px;
}

.admin-summary-card .summary-content {
    flex: 1;
}

.admin-summary-card .summary-label {
    font-size: 14px;
    color: #666;
}

.admin-summary-card .summary-value {
    font-size: 24px;
    font-weight: 600;
    color: #2e7d32;
}

.admin-summary-card .summary-detail {
    font-size: 13px;
    color: #888;
    margin-top: 2px;
}

/* ==================== Admin 主内容区 ==================== */
.admin-main-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* ==================== Admin Tab 样式 ==================== */
.admin-tab-nav {
    display: flex;
    background: #fafafa;
    border-bottom: 1px solid #e0e0e0;
    overflow-x: auto;
    padding: 0 8px;
}

.admin-tab-nav button {
    padding: 14px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-tab-nav button .material-icons {
    font-size: 18px;
}

.admin-tab-nav button:hover {
    color: var(--custom-primary);
    background: rgba(63, 81, 181, 0.04);
}

.admin-tab-nav button.active {
    color: var(--custom-primary);
    border-bottom-color: var(--custom-primary);
    font-weight: 600;
    background: #fff;
}

.admin-tab-content {
    padding: 20px;
}

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

.admin-table th {
    text-align: left;
    padding: 12px 16px;
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #e0e0e0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.admin-table tr:hover {
    background: #fafafa;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table .user-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-table .user-name {
    font-weight: 600;
    color: #333;
}

.admin-table .user-email {
    font-size: 12px;
    color: #888;
}

/* ==================== Admin 按钮 ==================== */
.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    background: var(--custom-primary);
    color: #fff;
    transition: all 0.2s;
    text-decoration: none;
}

.admin-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.admin-btn .material-icons {
    font-size: 18px;
}

.admin-btn-success {
    background: #2e7d32;
}

.admin-btn-warning {
    background: #f57c00;
}

.admin-btn-danger {
    background: #c62828;
}

.admin-btn-secondary {
    background: #757575;
}

.admin-btn-icon {
    padding: 8px;
    border-radius: 8px;
}

.admin-btn-text {
    padding: 8px 16px;
}

/* 操作按钮组 */
.admin-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ==================== Admin 工具栏 ==================== */
.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.admin-toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-count {
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 4px;
}

.admin-count .material-icons {
    font-size: 16px;
}

/* ==================== Admin 空状态 ==================== */
.admin-empty {
    text-align: center;
    padding: 48px 24px;
    color: #888;
}

.admin-empty .material-icons {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 12px;
}

.admin-empty p {
    margin: 0;
    font-size: 15px;
}

.admin-empty small {
    color: #aaa;
}

/* ==================== Admin Badge ==================== */
.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.admin-badge-admin {
    background: #e3f2fd;
    color: #1565c0;
}

/* ==================== Admin 子标签 ==================== */
.admin-sub-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.admin-sub-tabs button {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    transition: all 0.2s;
}

.admin-sub-tabs button:hover {
    border-color: var(--custom-primary);
    color: var(--custom-primary);
}

.admin-sub-tabs button.active {
    background: var(--custom-primary);
    border-color: var(--custom-primary);
    color: #fff;
}

/* ==================== Admin 分页 ==================== */
.admin-pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.admin-pagination button {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.admin-pagination button:hover {
    background: #f5f5f5;
    border-color: var(--custom-primary);
    color: var(--custom-primary);
}

.admin-pagination button.active {
    background: var(--custom-primary);
    border-color: var(--custom-primary);
    color: #fff;
}

/* ==================== Admin 筛选 ==================== */
.admin-filter {
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
}

.admin-filter:focus {
    outline: none;
    border-color: var(--custom-primary);
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-stat-card .stat-value {
        font-size: 28px;
    }

    .admin-tab-nav button {
        padding: 12px 14px;
        font-size: 13px;
    }

    .admin-table th,
    .admin-table td {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== 文档列表 ==================== */
.custom-doc-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.custom-doc-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
}

.custom-doc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--custom-primary);
}

.custom-doc-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.custom-doc-icon.invoice {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.custom-doc-icon.invitation {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.custom-doc-icon.other {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.custom-doc-icon i {
    color: #fff;
    font-size: 28px;
}

.custom-doc-card h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.custom-doc-card p {
    margin: 0 0 16px 0;
    font-size: 13px;
    color: #888;
}

.custom-doc-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--custom-primary);
    color: #fff !important;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.custom-doc-download-btn:hover {
    background: var(--custom-primary-dark);
    box-shadow: 0 4px 12px rgba(63, 81, 181, 0.3);
}

.custom-doc-download-btn i {
    font-size: 18px;
}

/* 保持旧样式兼容 */
.custom-doc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.custom-doc-item:last-child {
    border-bottom: none;
}

/* ==================== 响应式 ==================== */
@media (max-width: 600px) {
    .custom-dashboard-grid > .custom-card,
    .custom-hotel-cards > .custom-card {
        min-width: 100%;
    }

    .custom-stat-card {
        min-width: calc(50% - 8px);
    }

    .custom-stat-card h3 {
        font-size: 24px;
    }
}

/* ==================== 海报列表 ==================== */
.poster-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.poster-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: all 0.2s ease;
}

.poster-item:hover {
    border-color: var(--custom-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.poster-info {
    flex: 1;
    min-width: 0;
}

.poster-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.poster-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}

.poster-meta span {
    margin-right: 16px;
}

.poster-status-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.poster-comment {
    font-size: 12px;
    color: #ff9800;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: help;
}

.poster-comment i {
    font-size: 16px;
}

.poster-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 16px;
}

.custom-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #ddd;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.custom-btn-icon:hover {
    background: var(--custom-primary);
    border-color: var(--custom-primary);
    color: #fff;
}

.custom-btn-icon.custom-btn-danger:hover {
    background: #f44336;
    border-color: #f44336;
}

.custom-btn-icon i {
    font-size: 18px;
}

/* ==================== 模态框 ==================== */
.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: 99999;
    padding: 20px;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    max-height: 90vh;
    overflow-y: auto;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 24px;
}

/* 详情组 */
.detail-group {
    margin-bottom: 16px;
}

.detail-group label {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.detail-group p {
    margin: 0;
    font-size: 15px;
    color: #333;
}

.detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.review-comment-box {
    padding: 12px;
    background: #fff8e1;
    border-radius: 6px;
    border-left: 4px solid #ff9800;
    white-space: pre-wrap;
}

/* 表单必填标记 */
.required {
    color: #f44336;
}

/* 响应式 */
@media (max-width: 600px) {
    .poster-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .poster-actions {
        margin-left: 0;
        margin-top: 12px;
    }

    .poster-title {
        white-space: normal;
    }
}

/* ==================== 审核历史 ==================== */
.review-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-history-item {
    padding: 12px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 3px solid #ddd;
}

.review-history-item.latest {
    background: #fff8e1;
    border-left-color: #ff9800;
}

.review-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.review-history-status {
    font-weight: 500;
    font-size: 13px;
    color: #333;
}

.review-history-meta {
    font-size: 12px;
    color: #888;
}

.review-history-comment {
    font-size: 14px;
    color: #555;
    white-space: pre-wrap;
    line-height: 1.5;
}

/* ==================== 详细变更记录（管理后台） ==================== */
.detailed-changes-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detailed-change-item {
    padding: 12px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 3px solid var(--custom-primary);
}

.change-field {
    font-weight: 600;
    font-size: 13px;
    color: #333;
    margin-bottom: 8px;
}

.change-values {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
}

.change-old, .change-new {
    flex: 1;
    padding: 8px;
    border-radius: 4px;
    word-break: break-all;
}

.change-old {
    background: #ffebee;
}

.change-old span, .change-new span {
    display: block;
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
}

.change-new {
    background: #e8f5e9;
}

.change-arrow {
    color: #888;
    font-size: 16px;
    padding-top: 20px;
}

.change-old em, .change-new em {
    color: #999;
    font-style: italic;
}

/* ==================== Session 页面覆盖主题默认值 ==================== */

/* 覆盖主题的红色标题和大字号，使 session 相关页面更符合学术规范 */
.session-page.article {
    font-size: 15px;
    line-height: 1.8;
}

.session-page.article h1 {
    font-size: 22px;
    line-height: 1.4;
    font-weight: 700;
    color: #1a1a1a;
    border-bottom: 2px solid var(--custom-primary-dark);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

/* 覆盖主题 .article a 的红色和下划线 */
.session-page.article a {
    color: var(--custom-primary-dark);
    border-bottom: none;
}

.session-page.article a:hover {
    color: var(--custom-primary);
}

/* ==================== Session 列表页样式 ==================== */
.session-list-item {
    padding: 14px 0;
    border-bottom: 1px solid #e8e8e8;
}

.session-list-item:last-child {
    border-bottom: none;
}

.session-list-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 3px;
    line-height: 1.4;
}

.session-list-title a {
    color: var(--custom-primary-dark);
    text-decoration: none;
    border-bottom: none;
}

.session-list-title a:hover {
    text-decoration: underline;
}

.session-list-speaker {
    font-size: 14px;
    color: #555;
}

.session-list-meta {
    font-size: 13px;
    color: #999;
    margin-top: 2px;
}

/* ==================== Session 详情页样式 ==================== */
.session-speaker-info {
    margin-bottom: 16px;
}

.session-speaker-name {
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.session-speaker-affiliation {
    font-size: 15px;
    color: #555;
}

.session-speaker-sep {
    color: #555;
}

.session-meta {
    display: flex;
    gap: 2rem;
    padding: 10px 16px;
    background: #f5f7fa;
    border-left: 3px solid var(--custom-primary-dark);
    border-radius: 0 3px 3px 0;
    font-size: 13px;
    color: #555;
    margin-bottom: 24px;
}

h3.session-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 18px 0 6px;
    padding-top: 0;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--custom-primary-dark);
}

p.session-text {
    font-size: 15px;
    line-height: 1.8;
    text-align: justify;
    color: #333;
    margin-top: 0;
    margin-bottom: 0;
}
