/* ==================== 全局重置 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html,
body {
    width: 100%;
    height: 100%;
    background: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 0;
}

/* ==================== 加载页样式 ==================== */
.loading-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f7f8fa;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-logo {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    width: 120px;
    height: auto;
    animation: logoBounce 0.8s ease-in-out infinite alternate;
}

@keyframes logoBounce {
    0% {
        transform: translateY(0) scale(1);
    }
    100% {
        transform: translateY(-18px) scale(1.08);
    }
}

.loading-title {
    font-size: 32px;
    font-weight: 600;
    color: #4080ff;
    margin-bottom: 12px;
    animation: fadeInUp 0.6s ease-out both;
    animation-delay: 0.2s;
}

.loading-subtitle {
    font-size: 16px;
    color: #666;
    animation: fadeInUp 0.6s ease-out both;
    animation-delay: 0.4s;
}

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

.loading-page.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ==================== 主容器 ==================== */
.app-wrapper {
    width: 375px;
    max-width: 375px;
    height: 812px;
    max-height: 90vh;
    background: #f7f8fa;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow 0.4s ease;
}

.app-wrapper:hover {
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
}

/* ==================== 顶部栏 ==================== */
.top-bar {
    background-color: #f0f1f3;
    display: flex;
    align-items: center;
    padding: 14px 16px;
    gap: 12px;
    flex-shrink: 0;
}

.tab-active {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    transition: color 0.3s ease;
}

.tab-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 16px;
    color: #666;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
    padding: 4px 0;
}

.tab-input:focus {
    color: #333;
    border-bottom: 2px solid #4080ff;
}

/* ==================== 顶部标签栏 ==================== */
.page-tabs {
    display: flex;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.page-tab {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    font-size: 16px;
    color: #999;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease, background-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.page-tab:hover {
    color: #5a9aff;
    background-color: #fafbff;
}

.page-tab:active {
    background-color: #f0f4ff;
    transition: background-color 0.05s ease;
}

.page-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 40%;
    height: 2px;
    background-color: #4080ff;
    border-radius: 1px;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1.2);
}

.page-tab.active {
    color: #4080ff;
    font-weight: 500;
}

.page-tab.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* ==================== 内容滚动区 ==================== */
.content-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* ==================== 页面容器 ==================== */
.page {
    display: none;
    width: 100%;
    height: 100%;
    animation: pageFadeIn 0.4s ease-out both;
}

.page.active {
    display: block;
}

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

/* ==================== 首页实时状态卡片 ==================== */
.nav-home {
    background-color: #fff;
    border-radius: 16px;
    padding: 18px 16px;
    margin-bottom: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: default;
}

.nav-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.home-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-title::before {
    content: "🏠";
    font-size: 20px;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.home-card {
    padding: 10px 8px;
    border-radius: 12px;
    transition: background-color 0.25s ease, transform 0.2s ease;
    cursor: default;
}

.home-card:hover {
    background-color: #fafbfc;
    transform: scale(1.03);
}

.home-card:active {
    transform: scale(0.97);
    transition: transform 0.08s ease;
}

.home-card h4 {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    margin-bottom: 6px;
    transition: color 0.25s ease;
}

.home-card .num {
    font-size: 24px;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.home-card:hover .num {
    transform: scale(1.06);
}

.num-green { color: #22c55e; }
.num-orange { color: #f59e0b; }
.num-black { color: #1a1a1a; }

/* ==================== 导航页 ==================== */
.nav-map {
    background-color: #fff;
    border-radius: 16px;
    padding: 18px 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-map:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.map-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-title::before {
    content: "🧭";
    font-size: 20px;
}

.location-card,
.route-card {
    margin-bottom: 16px;
    transition: transform 0.2s ease;
}

.location-card:hover,
.route-card:hover {
    transform: translateX(3px);
}

.location-card h3,
.route-card h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.location-card p,
.route-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.reposition-btn {
    background-color: #1d4ed8;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.reposition-btn:hover {
    background-color: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}

.reposition-btn:active {
    transform: scale(0.95);
    transition: transform 0.08s ease;
}

.reposition-btn::after {
    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 ease-out, height 0.6s ease-out, opacity 0.6s ease-out;
    pointer-events: none;
}

.reposition-btn:active::after {
    width: 300px;
    height: 300px;
    opacity: 0;
    transition: width 0s, height 0s, opacity 0.4s ease-out;
}

.map-area {
    width: 100%;
    height: 160px;
    background-color: #f3f4f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #999;
    margin-top: 12px;
    transition: box-shadow 0.3s ease;
    overflow: hidden;
}

.map-area:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* ==================== 预测页 - 仪表盘样式 ==================== */
.predict-header {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.predict-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: default;
    animation: cardSlideUp 0.5s ease-out both;
}

.predict-card:nth-child(1) { animation-delay: 0.05s; }
.predict-card:nth-child(2) { animation-delay: 0.15s; }
.predict-card:nth-child(3) { animation-delay: 0.25s; }

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

.predict-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
}

.predict-card:active {
    transform: scale(0.96);
    transition: transform 0.08s ease;
}

.predict-card h4 {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    margin-bottom: 6px;
}

.predict-card .time {
    font-size: 18px;
    font-weight: 600;
}

.time-red { color: #ef4444; }
.time-green { color: #22c55e; }
.time-blue { color: #1d4ed8; }

/* 图表容器 */
.chart-container {
    background-color: #fff;
    border-radius: 16px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: cardSlideUp 0.5s ease-out both;
    animation-delay: 0.3s;
}

.chart-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.chart-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-title::before {
    content: "📈";
    font-size: 20px;
}

/* 仪表盘容器 */
.dashboard {
    position: relative;
    width: 220px;
    height: 220px;
    margin-bottom: 20px;
}

/* 圆形进度环 */
.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, #f0fdf4 0%, #dcfce7 100%) center/85% 85% no-repeat,
                conic-gradient(#22c55e 0%, transparent 0%) 0 0/100% 100% no-repeat;
    mask: radial-gradient(transparent 68%, black 68%);
    -webkit-mask: radial-gradient(transparent 68%, black 68%);
    transition: none;
}

.progress-ring::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    border-radius: 50%;
    border: 2px solid #dcfce7;
    z-index: 1;
    pointer-events: none;
}

.progress-ring::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border-radius: 50%;
    border: 1px solid #f0fdf4;
    z-index: 2;
    pointer-events: none;
}

/* 百分比文字 */
.percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    font-weight: 600;
    color: #22c55e;
    z-index: 3;
    transition: none;
    pointer-events: none;
}

/* 进度点 */
.progress-dot {
    position: absolute;
    top: 6px;
    left: 50%;
    width: 12px;
    height: 12px;
    background-color: #22c55e;
    border-radius: 50%;
    transform: translateX(-50%) rotate(0deg);
    transform-origin: 50% 104px;
    z-index: 4;
    pointer-events: none;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
    transition: none;
}

/* 等待时间提示 */
.wait-time {
    background-color: #f0fdf4;
    border-radius: 30px;
    padding: 10px 24px;
    font-size: 16px;
    color: #16a34a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: default;
}

.wait-time:hover {
    transform: scale(1.03);
    box-shadow: 0 3px 12px rgba(34, 197, 94, 0.12);
}

.wait-time span:first-child {
    animation: iconPulse 2s ease-in-out infinite;
}

/* 进入洗浴按钮 */
.enter-btn {
    background-color: #1d4ed8;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 14px 60px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.enter-btn:hover {
    background-color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(29, 78, 216, 0.35);
}

.enter-btn:active {
    transform: scale(0.94);
    transition: transform 0.08s ease;
}

.enter-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out, opacity 0.6s ease-out;
    pointer-events: none;
}

.enter-btn:active::after {
    width: 400px;
    height: 400px;
    opacity: 0;
    transition: width 0s, height 0s, opacity 0.4s ease-out;
}

/* ==================== 浴室独立页 ==================== */
.bath-page {
    padding: 12px;
}

.bathroom-detail {
    background-color: #fff;
    border-radius: 16px;
    padding: 18px 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bathroom-detail:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.detail-title {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin-bottom: 14px;
}

.sub-title {
    font-size: 15px;
    color: #666;
    margin-bottom: 14px;
}

.seat-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.seat-item {
    aspect-ratio: 1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    border: 2px solid #e6f2ff;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.3s ease, background-color 0.3s ease;
    cursor: default;
    animation: seatPopIn 0.35s ease-out both;
    user-select: none;
}

@keyframes seatPopIn {
    from {
        opacity: 0;
        transform: scale(0.7);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.seat-item:nth-child(5n+1) { animation-delay: 0.02s; }
.seat-item:nth-child(5n+2) { animation-delay: 0.07s; }
.seat-item:nth-child(5n+3) { animation-delay: 0.12s; }
.seat-item:nth-child(5n+4) { animation-delay: 0.17s; }
.seat-item:nth-child(5n+5) { animation-delay: 0.22s; }
.seat-item:nth-child(n+6):nth-child(-n+10) { animation-delay: 0.1s; }
.seat-item:nth-child(n+11):nth-child(-n+15) { animation-delay: 0.18s; }
.seat-item:nth-child(n+16):nth-child(-n+20) { animation-delay: 0.26s; }
.seat-item:nth-child(n+21):nth-child(-n+25) { animation-delay: 0.34s; }

.seat-item:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.seat-item:active {
    transform: scale(0.92);
    transition: transform 0.08s ease;
}

.seat-free {
    background-color: #e6f2ff;
    color: #4080ff;
}

.seat-free:hover {
    border-color: #4080ff;
    background-color: #d6eaff;
}

.seat-occupied {
    background-color: #ffe6e6;
    color: #ff6b6b;
    border-color: #ffcccc;
}

.seat-occupied:hover {
    border-color: #ff6b6b;
    background-color: #ffd6d6;
}

.seat-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
    transition: transform 0.2s ease;
    cursor: default;
}

.legend-item:hover {
    transform: scale(1.05);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    transition: transform 0.25s ease;
}

.legend-item:hover .legend-color {
    transform: rotate(15deg) scale(1.2);
}

.bath-actions {
    display: flex;
}

.action-btn {
    flex: 1;
    padding: 12px 0;
    border: none;
    background-color: #4080ff;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background-color 0.25s ease, transform 0.15s ease, letter-spacing 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.action-btn:hover {
    background-color: #3570e0;
    letter-spacing: 0.5px;
}

.action-btn:active {
    transform: scale(0.94);
    transition: transform 0.06s ease;
}

.action-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease-out, height 0.5s ease-out, opacity 0.5s ease-out;
    pointer-events: none;
}

.action-btn:active::after {
    width: 350px;
    height: 350px;
    opacity: 0;
    transition: width 0s, height 0s, opacity 0.35s ease-out;
}

.action-btn:first-child { border-radius: 20px 0 0 20px; }
.action-btn:last-child { border-radius: 0 20px 20px 0; }
.action-btn:nth-child(2) {
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
}

/* ==================== 我的页 ==================== */
.my-page {
    padding: 12px;
}

.user-card {
    background-color: #fff;
    border-radius: 16px;
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: default;
}

.user-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.user-card:hover .avatar {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(64, 128, 255, 0.2);
}

.user-name {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    transition: color 0.25s ease;
}

.user-card:hover .user-name {
    color: #4080ff;
}

.my-menu {
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.my-menu:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, padding-left 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background-color: #f8faff;
    padding-left: 20px;
}

.menu-item:active {
    background-color: #eef3ff;
    transform: scale(0.98);
    transition: background-color 0.05s ease, transform 0.06s ease;
}

.menu-left {
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.25s ease;
}

.menu-item:hover .menu-left {
    transform: translateX(2px);
}

.menu-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-item:hover .menu-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.menu-text h3 {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    transition: color 0.25s ease;
}

.menu-item:hover .menu-text h3 {
    color: #4080ff;
}

.menu-right {
    font-size: 13px;
    color: #999;
    transition: color 0.25s ease, transform 0.25s ease;
}

.menu-item:hover .menu-right {
    color: #4080ff;
    transform: translateX(-3px);
}

/* ==================== 关于我们弹窗样式 ==================== */
.about-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.about-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 320px;
    background-color: #fff;
    border-radius: 16px;
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.about-modal.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.team-item {
    margin-bottom: 16px;
    transition: transform 0.25s ease, background-color 0.25s ease;
    padding: 10px 12px;
    border-radius: 10px;
}

.team-item:hover {
    transform: translateX(4px);
    background-color: #f8faff;
}

.team-item h3 {
    font-size: 16px;
    color: #4080ff;
    margin-bottom: 6px;
    transition: color 0.25s ease;
}

.team-item:hover h3 {
    color: #1d4ed8;
}

.team-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.close-modal {
    width: 100%;
    background-color: #4080ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 0;
    font-size: 16px;
    margin-top: 10px;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
}

.close-modal:hover {
    background-color: #3570e0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(64, 128, 255, 0.3);
}

.close-modal:active {
    transform: scale(0.95);
    transition: transform 0.08s ease;
}

.close-modal::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease-out, height 0.5s ease-out, opacity 0.5s ease-out;
    pointer-events: none;
}

.close-modal:active::after {
    width: 350px;
    height: 350px;
    opacity: 0;
    transition: width 0s, height 0s, opacity 0.35s ease-out;
}

/* ==================== 使用码设置页面样式 ==================== */
.code-setting-page {
    display: none;
    width: 100%;
    height: 100%;
    padding: 12px;
    background-color: #f7f8fa;
    animation: pageFadeIn 0.4s ease-out both;
}

.code-setting-page.active {
    display: block;
}

.setting-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.back-btn {
    font-size: 20px;
    color: #333;
    margin-right: 16px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.25s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.back-btn:hover {
    background-color: #e8ecf1;
    transform: scale(1.08);
}

.back-btn:active {
    transform: scale(0.9);
    transition: transform 0.08s ease;
}

.setting-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    flex: 1;
    text-align: center;
    margin-right: 36px;
}

.code-card {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 16px;
    padding: 20px;
    color: #fff;
    margin-bottom: 24px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.code-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.35);
}

.code-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.code-right-action {
    display: flex;
    align-items: center;
    gap: 8px;
}

.eye-icon {
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.25s ease;
    user-select: none;
}

.eye-icon:hover {
    transform: scale(1.2);
}

.toggle-switch {
    width: 44px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.35s ease;
    -webkit-tap-highlight-color: transparent;
}

.toggle-switch:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.toggle-dot {
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    right: 2px;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.toggle-switch.off {
    background-color: rgba(255, 255, 255, 0.2);
}

.toggle-switch.off .toggle-dot {
    right: 22px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.code-numbers {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 600;
    transition: letter-spacing 0.3s ease;
}

.code-card:hover .code-numbers {
    letter-spacing: 1px;
}

.code-plus {
    font-size: 24px;
    margin: 0 8px;
}

.code-right {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.code-right:hover {
    background-color: rgba(255, 255, 255, 0.32);
}

.code-desc {
    background-color: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.code-desc:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.desc-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 12px;
    font-weight: 500;
}

.desc-list {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.desc-list li {
    margin-bottom: 8px;
    list-style: decimal;
    margin-left: 20px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.desc-list li:hover {
    transform: translateX(3px);
    color: #333;
}

.modify-btn {
    width: 100%;
    background-color: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.modify-btn:hover {
    background-color: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}

.modify-btn:active {
    transform: scale(0.94);
    transition: transform 0.08s ease;
}

.modify-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease-out, height 0.5s ease-out, opacity 0.5s ease-out;
    pointer-events: none;
}

.modify-btn:active::after {
    width: 400px;
    height: 400px;
    opacity: 0;
    transition: width 0s, height 0s, opacity 0.35s ease-out;
}

/* ==================== 底部导航 ==================== */
.bottom-nav {
    display: flex;
    background-color: #fff;
    border-top: 1px solid #eee;
    padding: 10px 0;
    flex-shrink: 0;
}

.nav-item {
    flex: 1;
    text-align: center;
    font-size: 14px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease, font-weight 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    padding: 4px 0;
    position: relative;
}

.nav-item:hover {
    color: #5a9aff;
    transform: translateY(-1px);
}

.nav-item:active {
    transform: scale(0.9);
    transition: transform 0.08s ease;
}

.nav-item.active {
    color: #4080ff;
    font-weight: 500;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background-color: #4080ff;
    border-radius: 2px;
    animation: navIndicatorIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes navIndicatorIn {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 30px;
        opacity: 1;
    }
}

/* ==================== 移动端触摸反馈优化 ==================== */
@media (hover: none) and (pointer: coarse) {
    .page-tab:hover,
    .nav-item:hover,
    .menu-item:hover,
    .action-btn:hover,
    .enter-btn:hover,
    .reposition-btn:hover,
    .modify-btn:hover,
    .close-modal:hover {
        transform: none;
        box-shadow: none;
    }
    .seat-item:hover {
        transform: scale(1.03);
    }
}

/* ==================== 滚动条美化 ==================== */
.content-scroll::-webkit-scrollbar {
    width: 4px;
}

.content-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.content-scroll::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.content-scroll::-webkit-scrollbar-thumb:hover {
    background: #b0b7c3;
}

.modal-content::-webkit-scrollbar {
    width: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}