body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    background-color: #f5f5ff;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: linear-gradient(135deg, #6c63ff, #2ac9ff);
}

.banner-container {
    max-width: 480px;
    width: 100%;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.banner-image {
    width: 100%;
    display: block;
    cursor: pointer;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    padding: 16px;
    z-index: 1000;
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #ff8a00, #e52e71);
    color: #fff;
}

.modal-header h2 {
    font-size: 18px;
    margin: 0;
}

.modal-close {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.modal-body {
    padding: 18px 20px 20px;
}

.modal-description {
    margin: 0 0 12px;
    color: #555;
    font-size: 14px;
}

.form-label {
    display: block;
    font-size: 14px;
    margin-bottom: 12px;
    color: #333;
}

.form-label input,
.form-label textarea {
    width: 100%;
    margin-top: 4px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #d0d0ff;
    font-size: 14px;
    box-sizing: border-box;
}

.form-label textarea {
    resize: vertical;
}

.primary-btn {
    width: 100%;
    padding: 10px 0;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #6c63ff, #2ac9ff);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
}

.primary-btn:hover {
    opacity: 0.92;
}

.success-text {
    margin-top: 10px;
    color: #16a34a;
    font-size: 14px;
}

.admin-body {
    background: #f3f4f6;
}

.admin-login-wrapper {
    max-width: 360px;
    margin: 60px auto;
    background: #fff;
    padding: 24px 24px 28px;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.admin-login-wrapper h1 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
}

.hint {
    font-size: 12px;
    color: #888;
    margin-top: 10px;
}

.admin-header {
    background: #111827;
    color: #fff;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-header h1 {
    margin: 0;
    font-size: 18px;
}

.admin-header nav a {
    color: #e5e7eb;
    margin-left: 12px;
    font-size: 14px;
    text-decoration: none;
}

.admin-header nav a:hover {
    color: #fff;
}

.admin-main {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 16px 30px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.data-table th,
.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
}

.data-table th {
    background: #f9fafb;
    text-align: left;
}

.message-cell {
    max-width: 260px;
    white-space: pre-wrap;
    word-break: break-all;
}

.template-form {
    max-width: 600px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.flash-container {
    margin-bottom: 12px;
}

.flash {
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 6px;
}

.flash-success {
    background: #dcfce7;
    color: #166534;
}

.flash-danger {
    background: #fee2e2;
    color: #b91c1c;
}

.clickable-row {
    cursor: pointer;
}

.clickable-row:hover {
    background-color: #f3f4ff;
}

.detail-card {
    max-width: 640px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.detail-row {
    display: flex;
    margin-bottom: 10px;
    font-size: 14px;
}

.detail-label {
    width: 90px;
    color: #6b7280;
    flex-shrink: 0;
}

.detail-value {
    color: #111827;
}

.detail-value.multiline {
    white-space: pre-wrap;
    word-break: break-all;
}

.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 13px;
}

.toolbar-hint {
    color: #6b7280;
}

.danger-btn {
    padding: 6px 12px;
    border-radius: 999px;
    border: none;
    background: #dc2626;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

.danger-btn:hover {
    background: #b91c1c;
}

.link-button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: #dc2626;
    cursor: pointer;
    font-size: 13px;
}

.link-button:hover {
    text-decoration: underline;
}

.stat-bar {
    margin-bottom: 10px;
    font-size: 14px;
    color: #4b5563;
}

.stat-label {
    margin-right: 6px;
}

.stat-value {
    font-weight: 600;
    color: #111827;
}

/* 移动端适配 */
@media (max-width: 640px) {
    .page-wrapper {
        padding: 12px;
    }

    .banner-container {
        max-width: 100%;
        border-radius: 12px;
    }

    .modal-dialog {
        max-width: 95%;
        border-radius: 14px;
    }

    .modal-header h2 {
        font-size: 16px;
    }

    .modal-body {
        padding: 14px 16px 16px;
    }

    .form-label {
        font-size: 13px;
    }

    .form-label input,
    .form-label textarea {
        font-size: 13px;
    }

    .primary-btn {
        font-size: 15px;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .admin-main {
        padding-inline: 10px;
    }

    .data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}



