/* =====================================================
   预约记录页面样式 - 独立模块命名空间: jlmuseum-records
   ===================================================== */
/* Page Banner Styles */
.page-banner {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-image: url('/images/bowuguan/banner-records.png');
    background-size: cover;
    background-position: center;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.banner-title {
    position: relative;
    z-index: 10;
    font-size: 48px;
    font-weight: bold;
    color: white;
    font-family: "Noto Serif SC", serif;
}
/* Main Content Styles */
.main-content {
    flex: 1;
    background-color: white;
    max-width: 1920px;
}

.content-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 48px 16px;
}
/* 模块根容器 - 样式隔离 */
.jlmuseum-records {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #1f2937;
    background-color: #ffffff;
    box-sizing: border-box;
}

.jlmuseum-records *,
.jlmuseum-records *::before,
.jlmuseum-records *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.jlmuseum-records a {
    text-decoration: none;
}

.jlmuseum-records ul {
    list-style: none;
}

.jlmuseum-records button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.jlmuseum-records input {
    font-family: inherit;
}

/* 主容器 */
.jlmuseum-records__container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Search Section */
.jlmuseum-records__search {
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 32px;
}

.jlmuseum-records__search-form {
    max-width: 704px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 16px;
}

.jlmuseum-records__input-wrapper {
    position: relative;
    height: 56px;
    max-width: 704px;
    width: 100%;
}

.jlmuseum-records__input {
    width: 100%;
    height: 100%;
    padding: 12px 130px 12px 24px;
    font-size: 18px;
    border: 1px solid #d1d5db;
    outline: none;
    transition: border-color 0.15s ease;
}

.jlmuseum-records__input:focus {
    border-color: #b91c1c;
}

.jlmuseum-records__input::placeholder {
    color: #9ca3af;
}

.jlmuseum-records .jlmuseum-records__btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 40px;
    background-color: #b91c1c;
    color: #ffffff;
    font-size: 18px;
    transition: background-color 0.15s ease;
}

.jlmuseum-records .jlmuseum-records__btn:hover {
    background-color: #991b1b;
}

.jlmuseum-records__hint {
    margin-top: 12px;
    text-align: center;
}

.jlmuseum-records__hint-text {
    font-size: 12px;
    color: #6b7280;
}

/* Filter Tabs */
.jlmuseum-records__filter {
    padding: 24px;
    background-color: #ffffff;
}

.jlmuseum-records__filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.jlmuseum-records .jlmuseum-records__filter-tab {
    padding: 0 16px;
    height: 32px;
    line-height: 32px;
    border-radius: 9999px;
    font-size: 16px;
    transition: all 0.15s ease;
    background-color: #f9fafb;
    color: #374151;
}

.jlmuseum-records .jlmuseum-records__filter-tab:hover {
    background-color: #e5e7eb;
}

.jlmuseum-records .jlmuseum-records__filter-tab--active {
    background-color: #b91c1c;
    color: #ffffff;
}

.jlmuseum-records .jlmuseum-records__filter-tab--active:hover {
    background-color: #991b1b;
}

/* Records Table */
.jlmuseum-records__table-wrapper {
    padding: 0 24px;
    overflow-x: auto;
}

.jlmuseum-records__table {
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.jlmuseum-records__table th {
    padding: 16px 24px;
    text-align: left;
    font-size: 16px;
    font-weight: 500;
    color: #374151;
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.jlmuseum-records__table td {
    padding: 20px 24px;
    font-size: 16px;
    white-space: nowrap;
    border-bottom: 1px solid #e5e7eb;
}

.jlmuseum-records__table tbody tr {
    transition: background-color 0.15s ease;
}

.jlmuseum-records__table tbody tr:hover {
    background-color: #f9fafb;
}

.jlmuseum-records__table tbody tr:last-child td {
    border-bottom: none;
}

.jlmuseum-records__table-text--muted {
    color: #6b7280;
}

/* Loading Overlay */
.jlmuseum-records__loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.jlmuseum-records__loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #b91c1c;
    font-size: 16px;
}

.jlmuseum-records__loading-spinner i {
    font-size: 32px;
}

.jlmuseum-records__loading-row td {
    color: #6b7280;
}

.jlmuseum-records__loading-row i {
    color: #b91c1c;
    margin-right: 8px;
}

/* Status Badge */
.jlmuseum-records__status {
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    height: 28px;
    font-size: 14px;
    border-radius: 9999px;
}

.jlmuseum-records__status--pending {
    background-color: rgba(241, 140, 26, 0.1);
    color: #F18C1A;
}

.jlmuseum-records__status--confirmed {
    background-color: rgba(29, 78, 216, 0.1);
    color: #1d4ed8;
}

.jlmuseum-records__status--used {
    background-color: rgba(21, 128, 61, 0.1);
    color: #15803d;
}

.jlmuseum-records__status--cancelled {
    background-color: #f3f4f6;
    color: #374151;
}

/* Action Links */
.jlmuseum-records__actions {
    display: flex;
    gap: 8px;
}

.jlmuseum-records__action {
    font-size: 16px;
    transition: color 0.15s ease;
    background: none;
    border: none;
    cursor: pointer;
}

.jlmuseum-records__action--view {
    color: #2563eb;
}

.jlmuseum-records__action--view:hover {
    color: #1e40af;
}

.jlmuseum-records__action--cancel {
    color: #dc2626;
}

.jlmuseum-records__action--cancel:hover {
    color: #991b1b;
}

/* Empty State */
.jlmuseum-records__empty {
    padding: 128px 32px;
    text-align: center;
}

.jlmuseum-records__empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 9999px;
    background-color: #f3f4f6;
    margin-bottom: 16px;
}

.jlmuseum-records__empty-icon i {
    font-size: 20px;
    color: #9ca3af;
}

.jlmuseum-records__empty-title {
    font-size: 18px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 8px;
}

.jlmuseum-records__empty-text {
    color: #6b7280;
    margin-bottom: 24px;
}

.jlmuseum-records__empty-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: #b91c1c;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: background-color 0.15s ease;
}

.jlmuseum-records__empty-btn:hover {
    background-color: #991b1b;
}

.jlmuseum-records__empty-btn i {
    margin-right: 8px;
    color: #ffffff;
}

/* Initial State (Before Search) */
.jlmuseum-records__initial {
    padding: 80px 32px;
    text-align: center;
}

.jlmuseum-records__initial-img {
    width: 192px;
    height: 192px;
    margin: 0 auto 24px;
    opacity: 0.5;
}

.jlmuseum-records__initial-title {
    font-size: 20px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 8px;
}

.jlmuseum-records__initial-text {
    color: #6b7280;
    margin-bottom: 16px;
}

.jlmuseum-records__initial-hint {
    display: inline-block;
    padding: 12px;
    background-color: #f9fafb;
    border-radius: 8px;
}

.jlmuseum-records__initial-hint-text {
    font-size: 12px;
    color: #6b7280;
}

.jlmuseum-records__initial-hint-text i {
    color: #eab308;
    margin-right: 4px;
}

/* Info Section */
.jlmuseum-records__info {
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 32px;
}

.jlmuseum-records__info-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #111827;
}

.jlmuseum-records__info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jlmuseum-records__info-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #374151;
}

.jlmuseum-records__info-item i {
    color: #b91c1c;
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 1024px) {
    .navbar .nav-menu {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-content {
        min-width: auto;
        width: 100%;
    }
    
    .content-container {
        padding: 24px 16px;
        width: 100%;
    }
    
    .jlmuseum-records__container {
        width: 100%;
        padding: 0;
    }
    
    .navbar .nav-menu {
        display: none;
    }
    
    .page-banner {
        height: 250px;
    }
    
    .banner-title {
        font-size: 32px;
    }
    
    .jlmuseum-records__search-form {
        padding: 24px 16px;
    }
    
    .jlmuseum-records__input-wrapper {
        height: 48px;
    }
    
    .jlmuseum-records__input {
        font-size: 16px;
        padding: 10px 110px 10px 16px;
    }
    
    .jlmuseum-records .jlmuseum-records__btn {
        padding: 0 24px;
        font-size: 16px;
    }
    
    .jlmuseum-records__hint-text {
        font-size: 11px;
    }
    
    .jlmuseum-records__filter {
        padding: 16px;
    }
    
    .jlmuseum-records .jlmuseum-records__filter-tab {
        font-size: 14px;
        padding: 0 12px;
        height: 28px;
        line-height: 28px;
    }
    
    .jlmuseum-records__table-wrapper {
        padding: 0 16px 16px;
    }
    
    .jlmuseum-records__table th,
    .jlmuseum-records__table td {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .jlmuseum-records__status {
        font-size: 12px;
    }
    
    .jlmuseum-records__action {
        font-size: 14px;
    }
    
    .jlmuseum-records__initial {
        padding: 60px 20px;
    }
    
    .jlmuseum-records__initial-img {
        width: 160px;
        height: 160px;
    }
    
    .jlmuseum-records__initial-title {
        font-size: 18px;
    }
    
    .jlmuseum-records__empty {
        padding: 80px 20px;
    }
    
    .jlmuseum-records__info {
        padding: 24px 16px;
    }
    
    .jlmuseum-records__info-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .main-content {
        width: 100%;
    }
    
    .content-container {
        padding: 16px;
        width: 100%;
    }
    
    .jlmuseum-records__container {
        width: 100%;
        padding: 0;
    }
    
    .page-banner {
        height: 200px;
    }
    
    .banner-title {
        font-size: 24px;
    }
    
    .jlmuseum-records__search-form {
        padding: 20px 12px;
    }
    
    .jlmuseum-records__input-wrapper {
        height: 44px;
    }
    
    .jlmuseum-records__input {
        font-size: 14px;
        padding: 8px 90px 8px 12px;
    }
    
    .jlmuseum-records .jlmuseum-records__btn {
        padding: 0 16px;
        font-size: 14px;
    }
    
    .jlmuseum-records__hint-text {
        font-size: 10px;
    }
    
    .jlmuseum-records__filter {
        padding: 12px;
    }
    
    .jlmuseum-records .jlmuseum-records__filter-tab {
        font-size: 13px;
        padding: 0 10px;
        height: 26px;
        line-height: 26px;
    }
    
    .jlmuseum-records__table-wrapper {
        padding: 0 12px 12px;
    }
    
    .jlmuseum-records__table th,
    .jlmuseum-records__table td {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .jlmuseum-records__status {
        font-size: 11px;
        padding: 0 6px;
        height: 24px;
    }
    
    .jlmuseum-records__action {
        font-size: 13px;
    }
    
    .jlmuseum-records__initial {
        padding: 40px 16px;
    }
    
    .jlmuseum-records__initial-img {
        width: 120px;
        height: 120px;
    }
    
    .jlmuseum-records__initial-title {
        font-size: 16px;
    }
    
    .jlmuseum-records__initial-text {
        font-size: 13px;
    }
    
    .jlmuseum-records__initial-hint-text {
        font-size: 11px;
    }
    
    .jlmuseum-records__empty {
        padding: 60px 16px;
    }
    
    .jlmuseum-records__empty-icon {
        width: 48px;
        height: 48px;
    }
    
    .jlmuseum-records__empty-icon i {
        font-size: 16px;
    }
    
    .jlmuseum-records__empty-title {
        font-size: 16px;
    }
    
    .jlmuseum-records__empty-text {
        font-size: 13px;
    }
    
    .jlmuseum-records__empty-btn {
        font-size: 13px;
        padding: 6px 14px;
    }
    
    .jlmuseum-records__info {
        padding: 20px 12px;
    }
    
    .jlmuseum-records__info-title {
        font-size: 18px;
    }
    
    .jlmuseum-records__info-item {
        font-size: 13px;
    }
}
