﻿/* 全局样式 */
:root {
    --primary-color: #2575fc;
    --secondary-color: #6a11cb;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
}*/

/* 布局样式 */
/*.page {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
}

.navbar {
    padding: 20px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 30px;
}

    .navbar-brand i {
        margin-right: 10px;
        font-size: 1.8rem;
    }

.nav-menu {
    list-style: none;
}

.nav-item {
    margin-bottom: 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
}

    .nav-link:hover, .nav-link.active {
        background: rgba(255, 255, 255, 0.1);
    }

    .nav-link i {
        margin-right: 10px;
        width: 20px;
        text-align: center;
    }

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.top-row {
    background-color: white;
    border-bottom: 1px solid #dee2e6;
    padding: 10px 0;
}

.content {
    flex: 1;
    padding: 20px;
}*/

/* 通用组件样式 */
.banner {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.banner-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.banner-desc {
    font-size: 1.1rem;
    opacity: 0.9;
}

.section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.section-title {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}

    .section-title i {
        margin-right: 10px;
    }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .btn:active {
        transform: translateY(0);
    }

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-secondary {
    background: var(--dark-color);
    color: white;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-outline-light {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

    .btn-outline-light:hover {
        background: rgba(255, 255, 255, 0.1);
    }

.btn-lg {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* 业务类型选择 */
.business-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.business-type {
    background: var(--light-color);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

    .business-type:hover {
        background: #e9ecef;
        border-color: var(--primary-color);
    }

    .business-type.active {
        background: var(--primary-color);
        color: white;
    }

.type-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.business-type.active .type-icon {
    color: white;
}

.business-type h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

/* 票号信息 */
.ticket-info {
    text-align: center;
    padding: 20px;
    background: #e7f3ff;
    border-radius: 10px;
    margin: 20px 0;
}

.ticket-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 10px 0;
}

/* 排队状态 */
.queue-status {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.status-item {
    text-align: center;
    flex: 1;
}

.status-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.status-label {
    font-size: 0.9rem;
    color: #6c757d;
}

/* 排队列表 */
.queue-list {
    max-height: 400px;
    overflow-y: auto;
}

.queue-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

    .queue-item:last-child {
        border-bottom: none;
    }

    .queue-item.current {
        background: #e7f3ff;
        border-radius: 8px;
    }

.ticket-number {
    font-size: 1.2rem;
    font-weight: bold;
}

.business-name {
    color: #6c757d;
}

.status-tag {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

    .status-tag.waiting {
        background: #f0f0f0;
        color: #666;
    }

    .status-tag.serving {
        background: #d4edda;
        color: #155724;
    }

    .status-tag.completed {
        background: #d1ecf1;
        color: #0c5460;
    }

/* 管理界面样式 */
.management-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.menu-item {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

    .menu-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

    .menu-item.active {
        border-color: var(--primary-color);
        background: #e7f3ff;
    }

.menu-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.menu-title {
    display: block;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.menu-desc {
    display: block;
    color: #6c757d;
}

/* 卡片样式 */
.counter-card, .business-type-card {
    background: var(--light-color);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color);
}

    .counter-card.inactive, .business-type-card.inactive {
        opacity: 0.6;
        border-left-color: #6c757d;
    }

.counter-header, .business-type-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.counter-name, .type-name {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.counter-desc, .type-prefix, .type-wait {
    color: #6c757d;
}

.counter-stats, .business-type-stats {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 15px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
}

    .modal-content.large {
        max-width: 700px;
    }

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: bold;
}

.modal-close {
    font-size: 2rem;
    color: #6c757d;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #dee2e6;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 1rem;
}

    .form-input:focus {
        border-color: var(--primary-color);
        outline: none;
        box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.25);
    }

.switch-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

    .checkbox-item.checked {
        border-color: var(--primary-color);
        background: #e7f3ff;
    }

.checkbox-icon {
    width: 20px;
    height: 20px;
    border: 1px solid #ced4da;
    border-radius: 3px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.checkbox-item.checked .checkbox-icon {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    /*.page {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }*/

    .business-types {
        grid-template-columns: 1fr;
    }

    .queue-status {
        flex-direction: column;
        gap: 20px;
    }

    .management-menu {
        grid-template-columns: 1fr;
    }

    .counter-stats, .business-type-stats {
        flex-direction: column;
        gap: 15px;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 20px;
    }
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-text {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.empty-desc {
    display: block;
    font-size: 0.9rem;
}

/* 验证样式 */
.validation-message {
    color: var(--danger-color);
    font-size: 0.8rem;
    margin-top: 5px;
}

.field-validation-error {
    border-color: var(--danger-color) !important;
}

.field-validation-valid {
    border-color: var(--success-color) !important;
}

/* 业务类型标签容器 */
.business-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 25px;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

    .business-tabs::-webkit-scrollbar {
        display: none; /* Chrome, Safari and Opera */
    }

    /* 单个标签样式 */
    .business-tabs .tab {
        flex: 1;
        min-width: 120px;
        text-align: center;
        padding: 16px 12px;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 500;
        color: #6c757d;
        background: transparent;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

        .business-tabs .tab:hover {
            background: rgba(37, 117, 252, 0.05);
            color: #2575fc;
            transform: translateY(-1px);
        }

        .business-tabs .tab.active {
            background: white;
            color: #2575fc;
            font-weight: 600;
            box-shadow: 0 4px 12px rgba(37, 117, 252, 0.15);
            border: 1px solid rgba(37, 117, 252, 0.2);
        }

            .business-tabs .tab.active::before {
                content: '';
                position: absolute;
                top: -1px;
                left: 50%;
                transform: translateX(-50%);
                width: 30px;
                height: 3px;
                background: #2575fc;
                border-radius: 0 0 2px 2px;
            }

        /* 标签图标样式 */
        .business-tabs .tab i {
            font-size: 20px;
            margin-bottom: 4px;
            transition: all 0.3s ease;
        }

        .business-tabs .tab.active i {
            transform: scale(1.1);
            color: #2575fc;
        }

        /* 标签文字样式 */
        .business-tabs .tab span {
            font-size: 13px;
            font-weight: inherit;
            line-height: 1.2;
        }

/* 窗口选择区域 */
.counter-selection {
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

/* 窗口选择标题 */
.counter-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f3f4;
}

/* 窗口网格容器 */
.counters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

/* 窗口项样式 */
.counter-item {
    background: #f8fbff;
    border: 2px solid #e7f3ff;
    border-radius: 10px;
    padding: 18px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

    .counter-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(37, 117, 252, 0.1);
        border-color: #2575fc;
    }

    .counter-item.active {
        background: white;
        border-color: #2575fc;
        box-shadow: 0 4px 16px rgba(37, 117, 252, 0.15);
    }

    .counter-item.disabled {
        opacity: 0.5;
        pointer-events: none;
        background: #f8f9fa;
        border-color: #e9ecef;
    }

        .counter-item.disabled::after {
            content: '不支持此业务';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 6px 12px;
            border-radius: 16px;
            font-size: 11px;
            font-weight: 600;
        }

    /* 窗口项内部布局 */
    .counter-item .counter-icon {
        font-size: 32px;
        color: #2575fc;
        margin-bottom: 12px;
        text-align: center;
    }

    .counter-item .counter-name {
        font-size: 16px;
        font-weight: 600;
        color: #2c3e50;
        margin-bottom: 6px;
        text-align: center;
    }

    .counter-item .counter-desc {
        font-size: 13px;
        color: #6c757d;
        text-align: center;
        margin-bottom: 12px;
        line-height: 1.4;
    }

    .counter-item .counter-status {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
        padding-top: 12px;
        border-top: 1px solid #f1f3f4;
    }

    .counter-item .status-tag {
        padding: 4px 10px;
        border-radius: 12px;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
    }

        .counter-item .status-tag.idle {
            background: #d4edda;
            color: #155724;
        }

        .counter-item .status-tag.busy {
            background: #f8d7da;
            color: #721c24;
        }

    .counter-item .waiting-count {
        font-size: 12px;
        color: #6c757d;
        font-weight: 500;
    }

    .counter-item .supported-types {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
    }

    .counter-item .type-tag {
        background: #e7f3ff;
        color: #2575fc;
        padding: 3px 8px;
        border-radius: 6px;
        font-size: 11px;
        font-weight: 600;
        border: 1px solid rgba(37, 117, 252, 0.2);
    }

/* 响应式设计 */
@media (max-width: 768px) {
    .business-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 6px;
    }

        .business-tabs .tab {
            min-width: 100px;
            padding: 12px 8px;
            font-size: 13px;
        }

            .business-tabs .tab i {
                font-size: 18px;
            }

    .counters-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .counter-selection {
        padding: 16px;
        margin-bottom: 20px;
    }

    .counter-label {
        font-size: 15px;
        margin-bottom: 14px;
    }
}

@media (max-width: 480px) {
    .business-tabs {
        gap: 4px;
    }

        .business-tabs .tab {
            min-width: 90px;
            padding: 10px 6px;
        }

            .business-tabs .tab i {
                font-size: 16px;
                margin-bottom: 2px;
            }

            .business-tabs .tab span {
                font-size: 12px;
            }

    .counter-item {
        padding: 14px;
    }
}

/* 动画效果 */
@keyframes tabSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.business-tabs .tab {
    animation: tabSlideIn 0.3s ease-out;
}

    .business-tabs .tab:nth-child(1) {
        animation-delay: 0.05s;
    }

    .business-tabs .tab:nth-child(2) {
        animation-delay: 0.1s;
    }

    .business-tabs .tab:nth-child(3) {
        animation-delay: 0.15s;
    }

    .business-tabs .tab:nth-child(4) {
        animation-delay: 0.2s;
    }

@keyframes counterSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.counter-item {
    animation: counterSlideIn 0.4s ease-out;
}

    .counter-item:nth-child(1) {
        animation-delay: 0.1s;
    }

    .counter-item:nth-child(2) {
        animation-delay: 0.2s;
    }

    .counter-item:nth-child(3) {
        animation-delay: 0.3s;
    }

    .counter-item:nth-child(4) {
        animation-delay: 0.4s;
    }

    /* 特殊状态样式 */
    .counter-item:has(.status-tag.busy) {
        border-left: 4px solid #dc3545;
    }

    .counter-item:has(.status-tag.idle) {
        border-left: 4px solid #28a745;
    }

    .counter-item.active:has(.status-tag.busy) {
        border-left: 4px solid #dc3545;
        background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    }

    .counter-item.active:has(.status-tag.idle) {
        border-left: 4px solid #28a745;
        background: linear-gradient(135deg, #f0fff4 0%, #fff 100%);
    }

/* 空状态样式 */
.business-tabs:empty::before {
    content: '暂无业务类型';
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #6c757d;
    font-size: 14px;
    grid-column: 1 / -1;
    text-align: center;
}

.counters-grid:empty::after {
    content: '暂无可用窗口';
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #6c757d;
    font-size: 14px;
    grid-column: 1 / -1;
    text-align: center;
}

/* 加载状态 */
.business-tabs.loading .tab,
.counter-item.loading {
    position: relative;
    overflow: hidden;
}

    .business-tabs.loading .tab::before,
    .counter-item.loading::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
        animation: loading 1.5s infinite;
    }

@keyframes loading {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .business-tabs .tab {
        border: 1px solid #000;
    }

        .business-tabs .tab.active {
            border: 2px solid #000;
            background: #000;
            color: #fff;
        }

    .counter-item {
        border: 2px solid #000;
    }

        .counter-item.active {
            border: 3px solid #000;
        }
}

/* 减少动画模式 */
@media (prefers-reduced-motion: reduce) {
    .business-tabs .tab,
    .counter-item {
        animation: none;
        transition: none;
    }

        .business-tabs .tab:hover,
        .counter-item:hover {
            transform: none;
        }
}

/* 打印样式 */
@media print {
    .business-tabs {
        border: 1px solid #000;
        box-shadow: none;
        break-inside: avoid;
    }

    .counter-selection {
        box-shadow: none;
        border: 1px solid #000;
        break-inside: avoid;
    }

    .counter-item {
        break-inside: avoid;
        border: 1px solid #000;
    }
}

/* 票务容器样式 */
.ticket-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* 票卡样式 */
.ticket-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    border-left: 6px solid #2575fc;
}

    .ticket-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
    }

/* 票卡头部 */
.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f3f4;
}

.business-name {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.status-tag {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .status-tag.waiting {
        background: #fff3cd;
        color: #856404;
        border: 1px solid #ffeaa7;
    }

    .status-tag.serving {
        background: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
    }

    .status-tag.completed {
        background: #d1ecf1;
        color: #0c5460;
        border: 1px solid #b8daff;
    }

    .status-tag.skipped {
        background: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
    }

/* 票号显示 */
.ticket-number {
    text-align: center;
    font-size: 64px;
    font-weight: 800;
    color: #2575fc;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

    .ticket-number::before,
    .ticket-number::after {
        content: '••••••••';
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        font-size: 20px;
        color: #ddd;
        letter-spacing: 4px;
    }

    .ticket-number::before {
        left: 10px;
    }

    .ticket-number::after {
        right: 10px;
    }

/* 票务信息 */
.ticket-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

    .info-item:last-child {
        border-bottom: none;
    }

.info-label {
    font-size: 16px;
    color: #6c757d;
    font-weight: 500;
}

.info-value {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}

/* 进度条部分 */
.progress-section {
    margin-top: 30px;
}

.progress-title {
    display: block;
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

.progress-inner {
    height: 100%;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    border-radius: 6px;
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

    .progress-inner::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        width: 30px;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        animation: shimmer 2s infinite;
    }

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(400%);
    }
}

.progress-text {
    display: block;
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    color: #28a745;
    text-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 60px 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.empty-icon {
    font-size: 80px;
    color: #6c757d;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-text {
    display: block;
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.empty-state .btn {
    margin-top: 20px;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 25px;
}

/* 历史记录部分 */
.history-section {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section-title {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f3f4;
}

    .section-title i {
        margin-right: 12px;
        color: #2575fc;
    }

.history-list {
    max-height: 400px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.3s ease;
}

    .history-item:hover {
        background: #f8f9fa;
        border-radius: 8px;
        padding-left: 15px;
        padding-right: 15px;
        margin: 0 -15px;
    }

    .history-item:last-child {
        border-bottom: none;
    }

.history-info {
    flex: 1;
}

.history-number {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 4px;
}

.history-business {
    display: block;
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 2px;
}

.history-time {
    display: block;
    font-size: 12px;
    color: #adb5bd;
}

.history-status {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .history-status.waiting {
        background: #fff3cd;
        color: #856404;
    }

    .history-status.serving {
        background: #d4edda;
        color: #155724;
    }

    .history-status.completed {
        background: #d1ecf1;
        color: #0c5460;
    }

    .history-status.skipped {
        background: #f8d7da;
        color: #721c24;
    }

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    gap: 8px;
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .btn:active {
        transform: translateY(0);
    }

.btn-primary {
    background: linear-gradient(135deg, #2575fc 0%, #6a11cb 100%);
    color: white;
}

    .btn-primary:hover {
        background: linear-gradient(135deg, #1a68e8 0%, #5a0cb0 100%);
        box-shadow: 0 6px 20px rgba(37, 117, 252, 0.3);
    }

/* 响应式设计 */
@media (max-width: 768px) {
    .ticket-container {
        padding: 15px;
    }

    .ticket-card {
        padding: 20px;
        border-radius: 15px;
    }

    .ticket-number {
        font-size: 48px;
    }

        .ticket-number::before,
        .ticket-number::after {
            display: none; /* 在小屏幕上隐藏装饰线 */
        }

    .ticket-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .business-name {
        font-size: 20px;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .history-status {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .ticket-number {
        font-size: 36px;
    }

    .empty-icon {
        font-size: 60px;
    }

    .empty-text {
        font-size: 20px;
    }

    .section-title {
        font-size: 18px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ticket-card {
    animation: fadeInUp 0.6s ease-out;
}

.history-item {
    animation: fadeInUp 0.4s ease-out;
}

    .history-item:nth-child(1) {
        animation-delay: 0.1s;
    }

    .history-item:nth-child(2) {
        animation-delay: 0.2s;
    }

    .history-item:nth-child(3) {
        animation-delay: 0.3s;
    }

    .history-item:nth-child(4) {
        animation-delay: 0.4s;
    }

/* 加载状态 */
.ticket-card.loading {
    position: relative;
    overflow: hidden;
}

    .ticket-card.loading::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
        animation: loading 1.5s infinite;
    }

@keyframes loading {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .ticket-card {
        border: 2px solid #000;
    }

    .status-tag {
        border: 1px solid #000;
    }

    .progress-bar {
        border: 1px solid #000;
    }
}

/* 减少动画模式 */
@media (prefers-reduced-motion: reduce) {
    .ticket-card,
    .history-item {
        animation: none;
    }

    .progress-inner {
        transition: none;
    }

    .btn:hover {
        transform: none;
    }
}

/* 滚动条样式 */
.history-list::-webkit-scrollbar {
    width: 6px;
}

.history-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.history-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

    .history-list::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }

/* 打印样式 */
@media print {
    .ticket-container {
        background: white !important;
        padding: 0;
    }

    .ticket-card {
        box-shadow: none;
        border: 2px solid #000;
        break-inside: avoid;
    }

    .btn {
        display: none;
    }

    .history-section {
        box-shadow: none;
        border: 1px solid #000;
        break-inside: avoid;
    }
}