/* ==================== 全局基础 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 560px;
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.admin-container {
    max-width: 1100px;
    display: block;
    min-height: auto;
    padding: 40px 20px;
}

/* ==================== 卡片 ==================== */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 40px;
    width: 100%;
    animation: slideUp 0.6s ease-out;
}

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

.card-header {
    text-align: center;
    margin-bottom: 32px;
}

.card-header .logo-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.card-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    letter-spacing: 1px;
}

/* ==================== 提示信息 ==================== */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.alert-success {
    background: #f0fff4;
    color: #276749;
    border: 1px solid #9ae6b4;
}

/* ==================== 缴费信息 ==================== */
.info-section {
    background: #f7fafc;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 28px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.info-label {
    font-size: 14px;
    color: #718096;
    font-weight: 500;
}

.info-value {
    font-size: 15px;
    color: #2d3748;
    font-weight: 600;
}

.info-value.amount {
    font-size: 22px;
    color: #e53e3e;
    font-weight: 700;
}

/* ==================== 缴费状态 ==================== */
.status-section {
    text-align: center;
    padding: 28px 0;
    margin-bottom: 24px;
}

.status-icon {
    font-size: 52px;
    margin-bottom: 10px;
}

.status-text {
    font-size: 20px;
    font-weight: 700;
}

.status-section.paid .status-text {
    color: #38a169;
}

.status-section.unpaid .status-text {
    color: #d69e2e;
}

.trade-no {
    margin-top: 8px;
    font-size: 13px;
    color: #a0aec0;
    word-break: break-all;
}

/* ==================== 按钮 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-pay {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #1677ff, #0958d9);
    color: #fff;
    font-size: 18px;
    border-radius: 14px;
}

.btn-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(22, 119, 255, 0.4);
}

.btn-pay .alipay-logo {
    height: 22px;
    filter: brightness(0) invert(1);
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 17px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.btn-export {
    background: linear-gradient(135deg, #38a169, #2f855a);
    color: #fff;
    padding: 10px 20px;
    font-size: 14px;
}

.btn-export:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(56, 161, 105, 0.4);
}

.btn-logout {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 10px 20px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.25);
}

.btn-page {
    background: rgba(255, 255, 255, 0.9);
    color: #4a5568;
    padding: 8px 18px;
    font-size: 14px;
    border: 1px solid #e2e8f0;
}

.btn-page:hover:not(.disabled) {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-page.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ==================== 登录表单 ==================== */
.login-card {
    max-width: 420px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.3s ease;
    outline: none;
}

.form-group input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

/* ==================== 管理后台 ==================== */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
    color: #fff;
}

.admin-header h1 {
    font-size: 26px;
    font-weight: 700;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.total-info {
    font-size: 14px;
    opacity: 0.85;
}

/* ==================== 表格 ==================== */
.table-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.data-table th {
    padding: 16px 18px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 14px 18px;
    font-size: 14px;
    color: #4a5568;
    border-bottom: 1px solid #edf2f7;
}

.data-table tbody tr:hover {
    background: #f7fafc;
}

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

.data-table .amount {
    color: #e53e3e;
    font-weight: 600;
}

.empty-row {
    text-align: center;
    padding: 40px !important;
    color: #a0aec0;
    font-size: 16px;
}

/* ==================== 徽章 ==================== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #c6f6d5;
    color: #276749;
}

.badge-warning {
    background: #fefcbf;
    color: #975a16;
}

/* ==================== 分页 ==================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.page-info {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

/* ==================== 缴费页 - Web 端（参考 payment.png） ==================== */
.payment-page {
    background: #f5f6f8;
    min-height: 100vh;
    padding-bottom: 80px;
}

.payment-alert.alert-error {
    max-width: 1200px;
    margin: 0 auto 16px;
    padding: 12px 24px;
}

.payment-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 24px 0;
}

.payment-title {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    font-size: 22px;
    font-weight: 700;
    color: #1d2129;
}

.payment-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.payment-notice {
    background: #e8f3ff;
    border: 1px solid #b3d8ff;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.payment-notice-tag {
    flex-shrink: 0;
    background: #1677ff;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 2px;
}

.payment-notice-text {
    font-size: 14px;
    color: #1d2129;
}

.payment-notice-text-highlight {
    color: #f53f3f;
    font-weight: 600;
}

.payment-notice-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.payment-required-star {
    color: #f53f3f;
}

.payment-notice-highlight {
    color: #f53f3f;
}

.payment-detail-section {
    margin-bottom: 24px;
}

.payment-detail-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d2129;
    margin-bottom: 12px;
    padding-left: 12px;
    border-left: 4px solid #1677ff;
}

.payment-detail-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.payment-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 48px;
    padding: 0 20px;
    font-size: 14px;
    border-bottom: 1px solid #f2f3f5;
}

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

.payment-detail-label {
    color: #86909c;
    flex-shrink: 0;
    margin-right: 16px;
}

.payment-detail-value {
    color: #1d2129;
    font-weight: 500;
    text-align: right;
    word-break: break-all;
}

.payment-trade-no {
    font-size: 13px;
    color: #86909c;
}

.payment-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.payment-status-paid {
    background: #e8ffea;
    color: #00b42a;
}

.payment-status-unpaid {
    background: #fff7e8;
    color: #ff7d00;
}

.payment-summary-row {
    background: #fafafa;
    font-weight: 600;
}

.payment-amount {
    font-size: 16px;
    font-weight: 700;
    color: #f53f3f;
}

/* 底部操作栏 */
.payment-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
}

.payment-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.payment-footer-amount {
    font-size: 15px;
    color: #1d2129;
}

.payment-footer-amount-num {
    font-size: 20px;
    font-weight: 700;
    color: #f53f3f;
    margin-left: 4px;
}

.payment-footer-form {
    flex-shrink: 0;
}

.btn-payment-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 28px;
    background: #1677ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-payment-submit:hover {
    background: #4096ff;
}

.btn-payment-submit .btn-payment-icon {
    height: 20px;
    filter: brightness(0) invert(1);
}

/* 底部按钮组（支付宝 + 微信并排） */
.payment-footer-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

/* 微信支付按钮 */
.btn-payment-wechat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 28px;
    background: #07c160;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-payment-wechat:hover {
    background: #06ad56;
}

/* ==================== 微信支付二维码弹窗 ==================== */
.wechat-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.wechat-modal {
    background: #fff;
    border-radius: 12px;
    width: 320px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.25s ease-out;
}

.wechat-modal-header {
    background: #07c160;
    color: #fff;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
}

.wechat-modal-title {
    letter-spacing: 0.5px;
}

.wechat-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.wechat-modal-close:hover {
    color: #fff;
}

.wechat-modal-body {
    padding: 24px;
    text-align: center;
}

.wechat-qr-container {
    margin-bottom: 14px;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wechat-qr-img {
    width: 240px;
    height: 240px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
}

.wechat-modal-hint {
    font-size: 13px;
    color: #86909c;
    margin-bottom: 8px;
}

.wechat-pay-status {
    font-size: 13px;
    font-weight: 600;
    color: #07c160;
}

.qr-loading {
    font-size: 14px;
    color: #86909c;
}

.qr-error {
    font-size: 14px;
    color: #f53f3f;
    padding: 0 12px;
}

/* 移动端弹窗适配 */
@media (max-width: 480px) {
    .wechat-modal {
        width: 90vw;
    }

    .payment-footer-buttons {
        gap: 8px;
    }

    .btn-payment-submit,
    .btn-payment-wechat {
        font-size: 16px;
        padding: 10px 16px;
    }
}

/* ==================== 首页 ==================== */
.index-container {
    padding-bottom: 80px;
}

.index-card {
    max-width: 480px;
    text-align: center;
}

.index-desc {
    font-size: 15px;
    color: #718096;
    margin-top: 8px;
    font-weight: 400;
}

.index-actions {
    margin: 28px 0 20px;
}

.index-btn {
    display: inline-block;
    width: auto;
    min-width: 160px;
    text-decoration: none;
}

.index-hint {
    font-size: 13px;
    color: #a0aec0;
    line-height: 1.6;
}

/* 全站底部备案号 */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
}

.footer-icp {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.footer-icp:hover {
    color: #fff;
    text-decoration: underline;
}

/* ==================== 订单页：商品信息 ==================== */
.order-product-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
}

.order-product-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: #f5f6f8;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

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

.order-product-name {
    font-size: 15px;
    font-weight: 600;
    color: #1d2129;
    margin-bottom: 6px;
}

.order-product-meta {
    font-size: 13px;
    color: #86909c;
    margin-bottom: 3px;
}

.order-product-right {
    flex-shrink: 0;
    text-align: right;
}

.order-product-price {
    font-size: 16px;
    font-weight: 600;
    color: #f53f3f;
}

.order-product-qty {
    font-size: 13px;
    color: #86909c;
    margin-top: 4px;
}

/* 缴费页人数选择：一行并排，checkbox 样式的 radio */
.order-product-qty-wrap {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 16px;
    margin-top: 8px;
    align-items: center;
}

.payment-person-option {
    margin: 0;
}

.payment-person-label {
    margin-left: 6px;
    font-size: 14px;
    color: #1d2129;
}

.order-product-subtotal {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 20px;
    border-top: 1px solid #f2f3f5;
    font-size: 14px;
    color: #4e5969;
    gap: 6px;
}

.order-product-subtotal-amount {
    font-size: 16px;
    font-weight: 700;
    color: #f53f3f;
}

/* ==================== 订单页：底部买家信息 ==================== */
.order-buyer-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.order-buyer-row {
    display: flex;
    align-items: center;
    font-size: 14px;
    line-height: 1.5;
}

.order-buyer-label {
    color: #86909c;
    flex-shrink: 0;
    min-width: 58px;
}

.order-buyer-value {
    color: #1d2129;
    font-weight: 500;
}

/* ==================== 错误页 ==================== */
.error-container {
    padding-bottom: 80px;
}

.error-card {
    max-width: 480px;
    text-align: center;
}

.error-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: bounceIn 0.8s ease-out;
}

@keyframes bounceIn {
    0%   { transform: scale(0.5); opacity: 0; }
    70%  { transform: scale(1.1); }
    100% { transform: scale(1);   opacity: 1; }
}

.error-code {
    font-size: 72px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 12px;
}

.error-title {
    font-size: 22px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 12px;
}

.error-desc {
    font-size: 15px;
    color: #718096;
    line-height: 1.7;
    margin-bottom: 28px;
}

.error-actions {
    margin-bottom: 20px;
}

.error-btn {
    display: inline-block;
    width: auto;
    min-width: 160px;
    text-decoration: none;
}

.error-path {
    font-size: 12px;
    color: #a0aec0;
    word-break: break-all;
    margin-top: 8px;
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
    .container {
        padding: 30px 16px;
    }

    .card {
        padding: 28px 20px;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-actions {
        flex-wrap: wrap;
    }

    .table-wrapper {
        overflow-x: auto;
    }

    .data-table th, .data-table td {
        padding: 10px 12px;
        font-size: 13px;
        white-space: nowrap;
    }
}

/* ==================== 酒店预订页 ==================== */
.hotel-container {
    max-width: 900px;
}

.hotel-card {
    max-width: 100%;
}

.hotel-room-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hotel-room-item {
    background: #f7fafc;
    border-radius: 14px;
    padding: 24px;
    border: 1px solid #e2e8f0;
}

.hotel-room-main {
    margin-bottom: 20px;
}

.hotel-room-name {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
}

.hotel-room-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: #718096;
    margin-bottom: 6px;
}

.hotel-room-price {
    color: #e53e3e;
    font-weight: 600;
}

.hotel-room-location,
.hotel-room-contact {
    font-size: 13px;
    color: #4a5568;
    margin-top: 4px;
}

.hotel-room-form-wrap {
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

.hotel-book-form .form-group {
    margin-bottom: 16px;
}

.form-row-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.form-row-inline label {
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
}

.form-row-inline input {
    width: 80px;
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
}

.btn-book {
    margin-top: 8px;
}

/* ==================== 后台左侧导航 ==================== */
.admin-layout {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 24px 20px;
    min-height: 100vh;
}

.admin-sidebar {
    width: 200px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 20px 0;
    margin-right: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.admin-sidebar a {
    display: block;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #4a5568;
    text-decoration: none;
    transition: background 0.2s;
}

.admin-sidebar a:hover {
    background: #edf2f7;
    color: #2d3748;
}

.admin-sidebar a.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

/* ==================== 酒店预订页（与 pay 同风格） ==================== */
.hotel-table-card {
    overflow-x: auto;
}

.hotel-data-table {
    width: 100%;
    border-collapse: collapse;
}

.hotel-data-table th,
.hotel-data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #f2f3f5;
    font-size: 14px;
}

.hotel-data-table thead th {
    background: #fafafa;
    color: #4e5969;
    font-weight: 600;
}

/* 位置列缩小宽度 */
.hotel-data-table th:nth-child(2),
.hotel-data-table td:nth-child(2) {
    max-width: 210px;
    width: 210px;
}

/* 价格列缩小宽度 */
.hotel-data-table th:nth-child(5),
.hotel-data-table td:nth-child(5) {
    max-width: 180px;
    width: 180px;
}

/* 选择列缩小宽度 */
.hotel-data-table th:nth-child(6),
.hotel-data-table td:nth-child(6) {
    max-width: 140px;
    width: 140px;
}

.hotel-data-table tbody tr:hover {
    background: #fafafa;
}

/* 不同酒店之间灰色间隔 */
.hotel-data-table tbody tr.hotel-row-divider td {
    border-top: 2px solid #e5e7eb;
    padding-top: 14px;
}
.hotel-data-table tbody tr.hotel-row-divider td:first-child {
    padding-top: 14px;
}

.hotel-qty-cell {
    white-space: nowrap;
}

.hotel-qty-input {
    width: 70px;
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 14px;
}

.hotel-qty-text {
    font-weight: 600;
    color: #1d2129;
}

.hotel-remain-hint {
    margin-left: 6px;
    font-size: 12px;
    color: #86909c;
}

/* 房型选择：radio 用 checkbox 打勾样式 */
.hotel-room-checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}
.hotel-room-checkbox .hotel-room-radio {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    margin: 0;
    pointer-events: none;
}
.hotel-room-checkbox-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1px solid #86909c;
    border-radius: 2px;
    background: #fff;
    flex-shrink: 0;
}
.hotel-room-checkbox-box::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translateY(-1px);
    opacity: 0;
}
.hotel-room-checkbox-checked .hotel-room-checkbox-box {
    background: #165dff;
    border-color: #165dff;
}
.hotel-room-checkbox-checked .hotel-room-checkbox-box::after {
    opacity: 1;
}
.hotel-room-checkbox-readonly {
    cursor: default;
}
/* 已缴费场景下，未选中的 radio 选项置灰 */
.order-product-qty-wrap.payment-person-readonly .payment-person-option:not(.hotel-room-checkbox-checked) {
    opacity: 0.5;
    color: #999;
}
.order-product-qty-wrap.payment-person-readonly .payment-person-option:not(.hotel-room-checkbox-checked) .hotel-room-checkbox-box {
    border-color: #ccc;
    background: #f5f5f5;
}
.hotel-qty-hidden {
    display: none;
}

.hotel-reserve-link {
    color: #165dff;
    text-decoration: none;
    margin-right: 8px;
}
.hotel-reserve-link:hover {
    text-decoration: underline;
}

.hotel-inline-input {
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 14px;
    width: 220px;
}

.hotel-edit-bar,
.hotel-submit-bar {
    margin-top: 24px;
}

.hotel-submit-bar .btn-payment-submit {
    padding: 12px 32px;
    font-size: 16px;
}

/* 预订人信息区块：key 与 value 左对齐 */
#section-booker .payment-detail-card .payment-detail-row {
    justify-content: flex-start;
    gap: 8px 16px;
}
#section-booker .payment-detail-card .payment-detail-label {
    flex-shrink: 0;
}
#section-booker .payment-detail-card .payment-detail-value {
    text-align: left;
}

/* 预订人信息：第一行 用户ID:姓名:单位 = 3:2:5 */
.payment-detail-row-third {
    display: flex;
    flex-wrap: nowrap;
}
.payment-detail-third {
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 8px;
}
.payment-detail-row-third .payment-detail-third:nth-child(1) { flex: 3 1 0; }
.payment-detail-row-third .payment-detail-third:nth-child(2) { flex: 2 1 0; }
.payment-detail-row-third .payment-detail-third:nth-child(3) { flex: 5 1 0; }
.payment-detail-third .payment-detail-label {
    flex-shrink: 0;
}
.payment-detail-third .payment-detail-value {
    flex: 1;
    min-width: 0;
}

/* 预订人信息：左右各 50% */
.payment-detail-row-half {
    display: flex;
    flex-wrap: nowrap;
}
.payment-detail-half {
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 8px;
}
.payment-detail-half .payment-detail-label {
    flex-shrink: 0;
}
.payment-detail-half .payment-detail-value {
    flex: 1;
    min-width: 0;
}
/* 第三行备注：右侧输入框铺满 */
.payment-detail-row-remark .payment-detail-value {
    flex: 1;
    min-width: 0;
}
#section-booker .hotel-remark-input {
    width: 100%;
    box-sizing: border-box;
}

/* 预订人信息：第一行 用户ID+姓名，第三行 手机/电话+备注 */
.payment-detail-row-line {
    flex-wrap: wrap;
    gap: 8px 0;
}
.payment-detail-row-line .payment-detail-label,
.payment-detail-row-line .payment-detail-value {
    flex: 0 0 auto;
}
.payment-detail-gap {
    flex: 0 0 24px;
    min-width: 24px;
}

/* 酒店预订二次确认弹窗 */
.hotel-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.hotel-modal {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 560px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: slideUp 0.25s ease-out;
}
.hotel-modal-header {
    background: #1677ff;
    color: #fff;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
}
.hotel-modal-title {
    letter-spacing: 0.5px;
}
.hotel-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 22px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}
.hotel-modal-close:hover {
    color: #fff;
}
.hotel-modal-body {
    padding: 20px;
}
.hotel-confirm-content {
    font-size: 14px;
    color: #1d2129;
    margin-bottom: 20px;
}
/* 确认弹窗两列布局 */
.hotel-confirm-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
}
.hotel-confirm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f2f3f5;
}
.hotel-confirm-row.hotel-confirm-row-full {
    grid-column: 1 / -1;
}
.hotel-confirm-row:last-child {
    border-bottom: none;
}
.hotel-confirm-label {
    color: #86909c;
    margin-right: 12px;
    flex-shrink: 0;
}
.hotel-confirm-value {
    color: #1d2129;
    font-weight: 500;
    text-align: right;
}
.hotel-confirm-divider {
    height: 0;
    border: none;
    margin: 8px 0;
    border-top: 1px solid #e5e7eb;
    grid-column: 1 / -1;
}
.hotel-confirm-room-title {
    grid-column: 1 / -1;
}
.hotel-confirm-room-title .hotel-confirm-label {
    font-weight: 600;
    color: #1d2129;
}
.hotel-confirm-notice {
    grid-column: 1 / -1;
    margin-top: 12px;
    padding: 12px 14px;
    background: #f7f8fa;
    border-radius: 8px;
    font-size: 13px;
    color: #4e5969;
    line-height: 1.6;
}
.hotel-confirm-notice strong {
    color: #1d2129;
}
.hotel-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
}
.hotel-modal-btn-cancel {
    padding: 10px 24px;
    background: #f2f3f5;
    color: #4e5969;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}
.hotel-modal-btn-cancel:hover {
    background: #e5e7eb;
}

/* 酒店页 Toast 提示 */
#hotel-toast-wrap {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.hotel-toast {
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    max-width: 90vw;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: hotel-toast-in 0.25s ease-out;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.hotel-toast-success {
    background: #00b42a;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 180, 42, 0.35);
}
.hotel-toast-icon {
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
}
.hotel-toast-hide {
    animation: hotel-toast-out 0.3s ease-out forwards;
}
@keyframes hotel-toast-in {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes hotel-toast-out {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-8px); }
}

.admin-main {
    flex: 1;
    min-width: 0;
}

/* ==================== 管理后台（与 /pay 同风格） ==================== */
.admin-page {
    background: #f5f6f8;
    min-height: 100vh;
}

.admin-page .admin-layout {
    width: 100%;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #f5f6f8;
}

.admin-page .admin-sidebar {
    width: 200px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 16px 0;
    margin-right: 24px;
    box-shadow: none;
}

.admin-page .admin-sidebar a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #4e5969;
    text-decoration: none;
    transition: background 0.2s;
}

.admin-page .admin-sidebar a:hover {
    background: #f2f3f5;
    color: #1d2129;
}

.admin-page .admin-sidebar a.active {
    background: #e8f3ff;
    color: #1677ff;
    font-weight: 600;
    border-left: 3px solid #1677ff;
    margin-left: 0;
    padding-left: 17px;
}

.admin-page .admin-container-inner {
    padding: 0 24px 24px;
}

.admin-page .admin-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 24px;
    margin: 0 0 24px 0;
    border-radius: 0;
    color: #1d2129;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-page .admin-header h1 {
    font-size: 20px;
    font-weight: 700;
    color: #1d2129;
}

.admin-page .total-info {
    font-size: 14px;
    color: #86909c;
    opacity: 1;
}

.admin-page .header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-page .btn-export {
    background: #1677ff;
    color: #fff;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
}

.admin-page .btn-export:hover {
    background: #4096ff;
    box-shadow: 0 2px 8px rgba(22, 119, 255, 0.3);
}

.admin-page .btn-logout {
    background: #fff;
    color: #4e5969;
    padding: 8px 16px;
    font-size: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
}

.admin-page .btn-logout:hover {
    background: #f2f3f5;
    color: #1d2129;
}

.admin-page .filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.admin-page .filter-total-amount {
    margin-left: auto;
    font-size: 14px;
    font-weight: 600;
    color: #f53f3f;
}

.admin-page .filter-label {
    font-size: 14px;
    color: #4e5969;
}

.admin-page .btn-filter {
    display: inline-block;
    padding: 5px 16px;
    font-size: 13px;
    color: #4e5969;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-page .btn-filter:hover {
    color: #1677ff;
    border-color: #1677ff;
}

.admin-page .btn-filter.active {
    color: #fff;
    background: #1677ff;
    border-color: #1677ff;
}

.admin-page .table-wrapper {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    box-shadow: none;
}

.admin-page .data-table thead {
    background: #fafafa;
}

.admin-page .data-table th {
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #4e5969;
    text-transform: none;
    letter-spacing: 0;
    border-bottom: 1px solid #e5e7eb;
}

.admin-page .data-table td {
    padding: 12px 20px;
    font-size: 14px;
    color: #1d2129;
    border-bottom: 1px solid #f2f3f5;
}

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

.admin-page .data-table .amount {
    color: #f53f3f;
    font-weight: 600;
}

.admin-page .empty-row {
    color: #86909c;
    padding: 40px 20px !important;
}

.admin-page .pagination {
    margin-top: 24px;
    gap: 16px;
}

.admin-page .page-info {
    font-size: 14px;
    color: #4e5969;
    font-weight: 500;
}

.admin-page .btn-page {
    background: #fff;
    color: #4e5969;
    padding: 8px 16px;
    font-size: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
}

.admin-page .btn-page:hover:not(.disabled) {
    background: #f2f3f5;
    color: #1d2129;
    box-shadow: none;
}

.admin-page .btn-page.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.admin-page .btn-small {
    display: inline-block;
    padding: 4px 12px;
    font-size: 13px;
    background: #fff;
    color: #165dff;
    border: 1px solid #165dff;
    border-radius: 4px;
    text-decoration: none;
}

.admin-page .btn-small:hover {
    background: #e8f3ff;
    color: #0e42d2;
}

.admin-page .badge-success {
    background: #e8ffea;
    color: #00b42a;
}

.admin-page .badge-warning {
    background: #fff7e8;
    color: #ff7d00;
}
