* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 链接按钮去除下划线 */
a.btn {
    text-decoration: none;
}

a.btn:hover {
    text-decoration: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    background: linear-gradient(135deg, rgba(102, 126, 234, 1) 0%, rgba(118, 75, 162, 1) 50%, rgba(240, 147, 251, 1) 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* 背景动画粒子效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(240, 147, 251, 0.1) 0%, transparent 50%);
    animation: gradientShift 15s ease infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gradientShift {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.invoice-request-container {
    max-width: 720px;
    margin: 10px auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset,
        0 8px 32px rgba(102, 126, 234, 0.2);
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.invoice-request-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 16px;
}

.invoice-request-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.invoice-request-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 32px;
    line-height: 1.6;
}

.form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1 1 48%;
    margin-bottom: 24px;
    position: relative;
}

.form-group.full {
    flex-basis: 100%;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

label span.required {
    color: #ef4444;
    margin-left: 4px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    box-sizing: border-box;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    color: #1e293b;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #cbd5e1;
    background: rgba(255, 255, 255, 0.95);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
    background: #ffffff;
    box-shadow:
        0 0 0 4px rgba(102, 126, 234, 0.1),
        0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

select {
    cursor: pointer;
    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='%23667eea' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.helper-text {
    font-size: 13px;
    color: #64748b;
    margin-top: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-radius: 12px;
    border-left: 4px solid #667eea;
    line-height: 1.6;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 15px rgba(102, 126, 234, 0.4),
        0 0 0 0 rgba(102, 126, 234, 0.5);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(102, 126, 234, 0.5),
        0 0 0 4px rgba(102, 126, 234, 0.1);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary:disabled::before {
    display: none;
}

.result-message {
    margin-top: 20px;
    font-size: 14px;
    padding: 16px 20px;
    border-radius: 12px;
    font-weight: 500;
    animation: slideDown 0.4s ease-out;
    border-left: 4px solid;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3) 0%, rgba(5, 150, 105, 0.3) 100%) !important;
    color: #064e3b !important;
    border-left: 6px solid #10b981 !important;
    border-radius: 16px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    padding: 26px 30px !important;
    box-shadow: 0 8px 28px rgba(16, 185, 129, 0.4), 0 0 0 2px rgba(16, 185, 129, 0.2) inset !important;
    position: relative;
    margin-top: 24px !important;
    display: flex !important;
    align-items: center;
}

.result-success::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 16px;
    font-size: 20px;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.5);
    flex-shrink: 0;
}

.result-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
    color: #991b1b;
    border-left-color: #ef4444;
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .form-group {
        flex-basis: 100%;
    }

    .invoice-request-container {
        padding: 24px;
        border-radius: 20px;
    }

    .invoice-request-title {
        font-size: 24px;
    }

    .btn-primary {
        width: 100%;
        padding: 14px 24px;
    }
}

/* 加载状态动画 */
.btn-primary.loading {
    position: relative;
    color: transparent;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-toggle-fields {
    width: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px dashed rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}

.btn-toggle-fields:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border-color: rgba(102, 126, 234, 0.5);
    color: #5568d3;
}

.btn-toggle-fields.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border-color: rgba(102, 126, 234, 0.5);
}

.toggle-icon {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 12px;
}

.btn-toggle-fields.active .toggle-icon {
    transform: rotate(180deg);
}

.toggle-text {
    flex: 1;
    text-align: center;
}

#email-input:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

#email-input:valid:not(:placeholder-shown) {
    border-color: #10b981;
}

/* 凭证上传区域（沿用美工图片上传风格） */
.image-upload-area {
    border: 1px dashed #cbd5e1;
    padding: 16px;
    border-radius: 14px;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.25s ease;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.image-upload-area:hover,
.image-upload-area.dragover {
    border-color: #4f46e5;
    background: #eef2ff;
    box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.2);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.upload-placeholder span {
    font-size: 32px;
}

.upload-main-text {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
}

.upload-hint {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
}

.upload-preview {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    justify-content: flex-start;
}

.upload-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.65);
    background: rgba(15, 23, 42, 0.8);
}

.upload-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: none;
    background: rgba(15, 23, 42, 0.85);
    color: #e5e7eb;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
    padding: 0;
}

.upload-remove:hover {
    background: rgba(239, 68, 68, 0.95);
}

.proof-thumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.proof-thumb-btn {
    border: none;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.proof-thumb {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
}

/* 凭证预览弹层 */
.proof-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.proof-modal.active {
    display: flex;
}

.proof-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 80vh;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.proof-modal-content img {
    display: block;
    max-width: 100%;
    max-height: 80vh;
}

.proof-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: none;
    background: rgba(15, 23, 42, 0.8);
    color: #e5e7eb;
    cursor: pointer;
    font-size: 18px;
    line-height: 28px;
    text-align: center;
}

.proof-modal-close:hover {
    background: rgba(248, 250, 252, 0.9);
    color: #111827;
}

.proof-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: none;
    background: rgba(15, 23, 42, 0.7);
    color: #f9fafb;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.proof-modal-prev {
    left: 8px;
}

.proof-modal-next {
    right: 8px;
}

.proof-modal-nav:hover {
    background: rgba(55, 65, 81, 0.9);
}

.proof-thumb-link {
    background: transparent;
    border: none;
    padding: 0;
    margin-right: 8px;
    font-size: 13px;
    color: #2563eb;
    cursor: pointer;
    text-decoration: underline;
}

.proof-thumb-link:hover {
    color: #1d4ed8;
}

/* 确认页面样式 */
.confirmation-container {
    display: none;
}

.confirmation-container.active {
    display: block;
}

.confirmation-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.confirmation-info {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    border: 2px solid rgba(102, 126, 234, 0.1);
}

.info-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #475569;
    width: 160px;
    flex-shrink: 0;
    font-size: 14px;
}

.info-value {
    flex: 1;
    color: #1e293b;
    font-size: 14px;
    word-break: break-word;
}

.confirmation-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
}

.btn-secondary {
    background: #ffffff;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.btn-secondary:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.info-value.empty {
    color: #94a3b8;
    font-style: italic;
}

/* 提交成功嵌入块样式（仅在未跳到成功页前使用） */
.success-container {
    display: none;
    text-align: center;
    padding: 60px 40px;
}

.success-container.active {
    display: block;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon {
    margin-bottom: 32px;
    animation: scaleIn 0.5s ease-out 0.2s both;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-title {
    font-size: 32px;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.success-message {
    font-size: 16px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.success-tips {
    background: rgba(16, 185, 129, 0.08);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.tip-item {
    font-size: 14px;
    color: #475569;
    margin-bottom: 8px;
    line-height: 1.6;
}

.tip-item:last-child {
    margin-bottom: 0;
}

#submit-another-btn {
    min-width: 200px;
}

/* 返回后台链接 */
.admin-back-link {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.admin-back-link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.admin-back-link a:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25);
    color: #5a6fd6;
}

/* ========== 审核详情中的凭证图片预览（后台管理页面使用） ========== */

/* 审核详情中的凭证图片缩略图 */
.review-proof-list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    vertical-align: middle;
}

.review-proof-btn {
    border: none;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.review-proof-thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease;
}

.review-proof-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 审核详情凭证大图预览弹层 */
.review-image-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.review-image-modal.active {
    display: flex;
}

.review-image-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.review-image-modal-content img {
    display: block;
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
}

.review-image-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    cursor: pointer;
    font-size: 20px;
    line-height: 36px;
    text-align: center;
    z-index: 100000;
    transition: all 0.2s ease;
}

.review-image-close:hover {
    background: #fff;
    transform: scale(1.1);
}

.review-image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    transition: all 0.2s ease;
}

.review-image-prev {
    left: 15px;
}

.review-image-next {
    right: 15px;
}

.review-image-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

/* ========== 开票信息管理页面按钮和状态样式 ========== */

/* 已开票状态徽章 */
.badge-status.invoiced {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    color: #fff;
    font-weight: 500;
}

/* 操作按钮通用样式 */
.action-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 查看/编辑按钮 */
.action-btn.edit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.action-btn.edit:hover {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.35);
}

/* 复制公司和税号按钮 */
.copy-info-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.copy-info-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.35);
}

/* ========== 自定义提示框样式 ========== */
.custom-alert {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.custom-alert.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.custom-alert-content {
    background: #fff;
    border-radius: 16px;
    padding: 32px 40px;
    text-align: center;
    max-width: 360px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.custom-alert-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.custom-alert-message {
    font-size: 16px;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 24px;
    font-weight: 500;
}

.custom-alert-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 48px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.custom-alert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

/* ========== 管理员预览提示条 ========== */
.admin-preview-notice {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    animation: slideDown 0.4s ease-out;
}

.admin-preview-notice .notice-icon {
    font-size: 18px;
}

.admin-preview-notice .notice-text {
    flex: 1;
    text-align: center;
}

.admin-preview-notice .notice-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    transition: background 0.2s;
}

.admin-preview-notice .notice-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 显示提示条时，页面内容下移 */
body.has-admin-notice {
    padding-top: 50px;
}

body.has-admin-notice .admin-back-link {
    top: 70px;
}

/* ========== Token验证相关样式 ========== */

/* Token验证中加载状态 */
.token-loading-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1000;
}

.token-loading-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.token-loading-text {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Token无效/过期提示页面 */
.token-invalid-container {
    max-width: 480px;
    margin: 60px auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 60px 40px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    position: relative;
    z-index: 1;
    text-align: center;
    animation: slideUp 0.6s ease-out;
}

.token-invalid-icon {
    margin-bottom: 24px;
}

.token-invalid-title {
    font-size: 28px;
    font-weight: 700;
    color: #ef4444;
    margin-bottom: 16px;
}

.token-invalid-message {
    font-size: 16px;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 32px;
}

.token-invalid-tips {
    background: rgba(239, 68, 68, 0.08);
    border-radius: 12px;
    padding: 16px 24px;
    margin-top: 24px;
}

.token-invalid-tips p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .token-invalid-container {
        margin: 30px 15px;
        padding: 40px 24px;
    }

    .token-invalid-title {
        font-size: 24px;
    }

    .token-invalid-message {
        font-size: 15px;
    }
}