* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    width: 100%;
    min-height: 100vh;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    padding: 15px;
    max-width: 500px;
    margin: 0 auto;
}

/* ========== 容器 ========== */
.container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 5px 10px;
    margin-bottom: 10px;
}

h1, h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 5px;
}

#ticketQueryContainer h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 5px;
    padding-bottom: 3px;
}

/* ========== 用户信息 ========== */
.user-info {
    background: #e8f4fc;
    padding: 5px;
    border-radius: 8px;
    margin-bottom: 5px;
    text-align: center;
}

.user-name {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0px;
}

.ride-count {
    font-size: 18px;
    color: #e74c3c;
    font-weight: bold;
}

/* ========== 使用指南 ========== */
.guide-section {
    background: #fff8e1;
    padding: 1px 15px;
    border-radius: 8px;
    margin-top: 10px;
    border-left: 4px solid #ffc107;
}

.guide-title {
    font-size: 16px;
    font-weight: bold;
    color: #e65100;
    margin-bottom: 10px;
}

.guide-step {
    margin-bottom: 3px;
    padding-left: 15px;
    position: relative;
    font-size: 14px;
}

.guide-step:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ff9800;
    font-weight: bold;
}

.guide-step strong.highlight {
    color: #e65100;
    background-color: #fff3cd;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 700;
}

/* ========== 表单 ========== */
.form-group {
    margin-bottom: 8px;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 10px;
    align-items: center;
}

label {
    display: block;
    margin-bottom: 0;
    font-weight: 600;
    color: #555;
    text-align: right;
    padding-right: 10px;
    white-space: nowrap;
    font-size: 16px;
    line-height: 1.4;
}

input, select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border 0.3s;
    margin: 0;
}

input:focus, select:focus {
    border-color: #3498db;
    outline: none;
}

.time-suggestion {
    display: flex;
    gap: 8px;
    margin-top: 0;
    grid-column: 2;
}

.time-btn {
    flex: 1;
    background: #ecf0f1;
    border: none;
    padding: 6px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}

.time-btn:hover {
    background: #d5dbdb;
}

.form-notice {
    grid-column: 1 / span 2;
    background-color: #fff8e1;
    border: 1px solid #ffd54f;
    border-radius: 8px;
    padding: 6px 6px;
    margin: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #ff8f00;
    font-size: 14px;
    line-height: 1.5;
}

.notice-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.form-button-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.form-button-group .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    padding: 14px;
}

.btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
    margin-top: 10px;
}

.btn:hover {
    background: #2980b9;
}

.btn-success {
    background: #2ecc71;
}

.btn-success:hover {
    background: #27ae60;
}

.btn-danger {
    background: #e74c3c;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-save {
    background: #2ecc71 !important;
    color: white !important;
}

.btn-save:hover {
    background: #27ae60 !important;
}

.btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

#startStation::placeholder {
    color: #ff6b6b;
    font-size: 14px;
    font-style: italic;
    opacity: 0.8;
}

/* ========== 搜索建议 ========== */
.search-container {
    position: relative;
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 0 0 8px 8px;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    grid-column: 2;
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.suggestion-item:hover {
    background-color: #f5f5f5;
}

.suggestion-item.highlighted {
    background-color: #e8f4fc;
    font-weight: bold;
}

/* ========== 票卡显示 ========== */
.card-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 12px;
    margin: 12px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 16px;
    margin-bottom: 12px;
    opacity: 0.9;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.info-label {
    font-size: 14px;
    opacity: 0.9;
    min-width: 80px;
    text-align: left;
}

.info-value {
    font-size: 16px;
    font-weight: bold;
    font-family: monospace;
    flex: 1;
    text-align: center;
    margin: 0 10px;
}

/* ========== 当前使用中 ========== */
.ticket-info {
    margin-bottom: 15px;
}

.ticket-info p {
    margin-bottom: 8px;
    padding: 5px 0;
}

.card-details {
    background: #e8f4fc;
    padding: 12px;
    border-radius: 8px;
    margin: 10px 0;
}

.status {
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

.status-in-use {
    background: #fff3cd;
    color: #856404;
}

/* ========== 倒计时 ========== */
.countdown-timer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px;
    border-radius: 10px;
    margin: 10px 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.countdown-label {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
    backdrop-filter: blur(2px);
    display: inline-block;
}

.countdown-display {
    font-size: 24px;
    font-weight: 800;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    margin: 6px 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.15);
    padding: 8px 14px;
    border-radius: 8px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
    min-width: 100px;
}

.countdown-note {
    font-size: 11px;
    font-weight: 500;
    margin-top: 5px;
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.85);
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    display: inline-block;
}

.countdown-timer.warning {
    background: linear-gradient(135deg, #ff9800 0%, #ff8f00 100%);
    animation: warningPulse 1.5s infinite;
}

.countdown-timer.danger {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    animation: dangerPulse 1s infinite;
}

@keyframes warningPulse {
    0% { box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4); }
    50% { box-shadow: 0 6px 25px rgba(255, 152, 0, 0.7); }
    100% { box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4); }
}

@keyframes dangerPulse {
    0% { box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4); transform: scale(1); }
    50% { box-shadow: 0 6px 30px rgba(255, 0, 0, 0.8); transform: scale(1.02); }
    100% { box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4); transform: scale(1); }
}

/* ========== 对话框通用样式 ========== */
.confirm-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.dialog-content {
    background: white;
    border-radius: 12px;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.dialog-title {
    color: #e74c3c;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dialog-message {
    color: #333;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.dialog-timer {
    background: #fff3cd;
    border: 1px solid #ffd54f;
    border-radius: 8px;
    padding: 12px;
    margin: 12px 0;
}

.timer-display {
    font-size: 22px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: #e74c3c;
    margin-bottom: 6px;
}

.timer-text {
    font-size: 13px;
    color: #856404;
}

.dialog-buttons {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.dialog-btn {
    flex: 1;
    padding: 12px;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.dialog-btn.confirm {
    background: #2ecc71;
}

.dialog-btn.confirm:hover {
    background: #27ae60;
}

.dialog-btn.cancel {
    background: #e74c3c;
}

.dialog-btn.cancel:hover {
    background: #c0392b;
}

/* ========== 复制功能 ========== */
.click-to-copy {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    user-select: none;
    padding: 10px;
    border-radius: 8px;
}

.click-to-copy:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.click-to-copy:active {
    background-color: #e8f4fc;
    transform: translateY(0);
}

.click-to-copy::after {
    content: '轻点复制卡号';
    position: absolute;
    top: -25px;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.click-to-copy:hover::after {
    opacity: 1;
}

.click-to-copy.copied {
    background-color: #d4edda !important;
    animation: copyPulse 0.5s ease;
}

@keyframes copyPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* ========== 常用路线 ========== */
.quick-routes-section {
    background: white;
    border-radius: 8px;
    padding: 3px 15px;
    margin: 10px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.quick-routes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.quick-routes-title {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 6px;
}

.manage-route-btn {
    background: transparent;
    border: 1px solid #3498db;
    color: #3498db;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.manage-route-btn:hover {
    background: #3498db;
    color: white;
}

.quick-route-tags {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.quick-route-tag {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 6px 4px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 36px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}

.quick-route-tag:hover {
    background: #e8f4fc;
    border-color: #3498db;
    transform: translateY(-1px);
    box-shadow: 0 1px 4px rgba(52, 152, 219, 0.15);
}

.quick-route-tag.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
    font-weight: 500;
}

.quick-route-tag.default-route {
    background: #fff8e1;
    border-color: #ffc107;
    font-weight: 500;
}

.route-name {
    font-weight: 500;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0;
    margin: 0;
    font-size: 15px;
}

.default-badge {
    margin-left: 4px;
    font-size: 11px;
    opacity: 0.9;
}

/* ========== 路线管理对话框 ========== */
.route-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.route-dialog-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.route-dialog {
    background: white;
    border-radius: 12px;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s;
}

.route-dialog-overlay.active .route-dialog {
    transform: translateY(0);
}

.route-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.route-dialog-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.route-dialog-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #7f8c8d;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.route-dialog-close:hover {
    background: #f5f5f5;
}

.route-form-group {
    margin-bottom: 5px;
}

.route-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #555;
    font-size: 13px;
}

.route-form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.route-form-group input:focus {
    border-color: #3498db;
    outline: none;
}

.route-list {
    margin-top: 15px;
}

.route-list-title {
    font-size: 15px;
    color: #555;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.route-list-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.route-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.route-info {
    flex: 1;
    min-width: 0;
}

.route-actions {
    display: flex;
    gap: 8px;
}

.route-action-btn {
    background: none;
    border: 1px solid #dee2e6;
    color: #6c757d;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.route-action-btn.delete:hover {
    color: #e74c3c;
    border-color: #e74c3c;
}

.route-action-btn.edit:hover {
    color: #3498db;
    border-color: #3498db;
}

.route-dialog-footer {
    display: flex;
    gap: 8px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.route-dialog-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.route-dialog-btn.save {
    background: #3498db;
    color: white;
}

.route-dialog-btn.save:hover {
    background: #2980b9;
}

.route-dialog-btn.cancel {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.no-routes-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 16px 12px;
    color: #7f8c8d;
    background: #f8f9fa;
    border-radius: 6px;
    border: 2px dashed #dee2e6;
    margin: 4px 0;
    font-size: 13px;
}

/* ========== 客服悬浮按钮 ========== */
.customer-service-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    border: 3px solid white;
}

.customer-service-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #66BB6A, #388E3C);
}

.customer-service-btn .icon {
    color: white;
    font-size: 28px;
    font-weight: bold;
}

/* ========== 客服二维码弹窗 ========== */
.qr-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.qr-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.qr-modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 320px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
}

.qr-modal-overlay.show .qr-modal-content {
    transform: translateY(0);
}

.qr-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #7f8c8d;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.qr-modal-close:hover {
    background: #f5f5f5;
    color: #e74c3c;
}

.qr-image-container {
    text-align: center;
    margin-bottom: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.qr-image-placeholder {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    margin: 0 auto;
}

.qr-image-placeholder .icon {
    font-size: 48px;
    margin-bottom: 10px;
    color: #3498db;
}

.qr-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qr-download-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.qr-download-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1c6ea4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* ========== 公告滚动区域 ========== */
.announcement-container {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3d6 100%);
    border-radius: 12px;
    margin: 15px 12px;
    padding: 8px 12px;
    border-left: 4px solid #ff9800;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.announcement-header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 243, 214, 0.95);
    padding: 4px 8px;
    border-radius: 20px;
    z-index: 2;
    white-space: nowrap;
    width: 32px;
    height: 32px;
}

.announcement-icon {
    font-size: 18px;
}

.announcement-scroll {
    flex: 1;
    overflow: hidden;
    height: 44px;
    position: relative;
    margin-left: 8px;
}

.announcement-list {
    display: inline-block;
    white-space: nowrap;
    animation: scrollAnnouncement 20s linear infinite;
}

.announcement-list.paused {
    animation-play-state: paused;
}

.announcement-item {
    display: inline-block;
    padding: 12px 20px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: color 0.2s;
}

.announcement-item .title {
    font-weight: 600;
    color: #e67e22;
    margin-right: 8px;
}

.announcement-item .content {
    color: #666;
}

@keyframes scrollAnnouncement {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 公告详情弹窗 */
.announcement-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.announcement-modal-content {
    background: white;
    border-radius: 16px;
    width: 85%;
    max-width: 320px;
    max-height: 70vh;
    overflow: auto;
    padding: 20px;
    position: relative;
}

.announcement-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.announcement-modal-header h3 {
    font-size: 16px;
    color: #333;
    margin: 0;
}

.announcement-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.announcement-modal-body {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    white-space: pre-wrap;
}

/* ========== 资源悬浮按钮 ========== */
.resource-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 100;
    animation: slideInLeft 0.5s ease;
    display: none;
}

.resource-wrapper.show {
    display: flex;
}

.resource-service-btn {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.4);
    transition: all 0.3s ease;
}

.resource-service-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(155, 89, 182, 0.6);
}

.resource-service-btn .icon {
    font-size: 28px;
    color: white;
    transition: transform 0.3s ease;
}

.resource-service-btn:hover .icon {
    transform: rotate(5deg);
}

.resource-label {
    font-size: 14px;
    font-weight: 500;
    color: #8e44ad;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 10px;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    white-space: normal;
    text-align: center;
    letter-spacing: 1px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(155, 89, 182, 0.3);
    transition: all 0.3s ease;
    line-height: 1.3;
    width: 60px;
}

.resource-wrapper:hover .resource-label {
    background: #8e44ad;
    color: white;
    border-color: #8e44ad;
}

#ticketQueryContainer {
    position: relative;
}

@keyframes slideInLeft {
    from { left: -120px; opacity: 0; }
    to { left: 0; opacity: 1; }
}

/* ========== 资源弹窗 ========== */
.resource-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.resource-dialog-overlay.show {
    opacity: 1;
    visibility: visible;
}

.resource-dialog {
    background: white;
    border-radius: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: none;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.resource-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.resource-dialog-header h3 {
    margin: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.resource-dialog-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.resource-dialog-close:active {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0.95);
}

.resource-dialog-content {
    flex: 1;
    padding: 0;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
}

.resource-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
}

.resource-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    background: white;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 150px;
}

.resource-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #9b59b6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 12px;
}

.resource-loading .loading-text {
    color: #666;
    font-size: 13px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

body.resource-dialog-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* ========== 其他杂项 ========== */
.hidden {
    display: none !important;
}

.error {
    text-align: center;
    padding: 20px;
    color: #e74c3c;
    background: #fadbd8;
    border-radius: 8px;
    margin-bottom: 20px;
}

.history-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
	font-size: 14px;  /* 添加这行，调小字体 */
}

.history-item:hover {
    background: #f9f9f9;
}

.no-tickets {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
}

.debug-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px;
    margin-top: 10px;
    font-size: 12px;
    color: #6c757d;
}

iframe {
    width: 100%;
    height: 800px;
    border: none;
    border-radius: 8px;
    margin-top: 20px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: block;
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    .form-group {
        grid-template-columns: 80px 1fr;
        gap: 8px;
        margin-bottom: 8px;
    }
    
    .form-group label {
        text-align: right;
        padding-right: 8px;
        font-size: 14px;
        white-space: normal;
        line-height: 1.3;
    }
    
    .time-suggestion {
        grid-column: 2;
        margin-top: 3px;
    }
    
    .form-notice {
        padding: 6px;
        font-size: 13px;
        margin: 8px 0;
    }
    
    .resource-service-btn {
        width: 44px;
        height: 44px;
    }
    
    .resource-service-btn .icon {
        font-size: 22px;
    }
    
    .resource-label {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    .resource-wrapper {
        gap: 8px;
    }
    
    .resource-dialog {
        width: 95%;
        height: 90%;
    }
}

@media (max-width: 480px) {
    .form-button-group {
        flex-direction: row;
        gap: 8px;
        margin-top: 8px;
    }
    
    .form-button-group .btn {
        width: auto;
        flex: 1;
        padding: 12px 8px;
        font-size: 14px;
    }
    
    .quick-route-tags {
        gap: 6px;
    }
    
    .quick-route-tag {
        padding: 5px 3px;
        font-size: 13px;
        min-height: 34px;
    }
    
    .route-name {
        font-size: 13px;
    }
    
    .customer-service-btn {
        right: 15px;
        bottom: 15px;
        width: 55px;
        height: 55px;
    }
    
    .qr-modal-content {
        padding: 15px;
        max-width: 280px;
    }
    
    .announcement-container {
        margin: 10px;
        padding: 6px 10px;
    }
    
    .announcement-scroll {
        height: 38px;
    }
    
    .announcement-header {
        width: 28px;
        height: 28px;
        padding: 3px 6px;
    }
    
    .announcement-icon {
        font-size: 16px;
    }
    
    .announcement-item {
        padding: 8px 15px;
        font-size: 15px;
    }
}

@media (max-width: 380px) {
    .resource-label {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .resource-service-btn {
        width: 40px;
        height: 40px;
    }
    
    .resource-service-btn .icon {
        font-size: 20px;
    }
    
    .resource-wrapper {
        gap: 6px;
    }
}

@media (min-width: 768px) {
    .resource-dialog {
        border-radius: 16px;
        width: 90%;
        height: 85%;
        max-width: 500px;
        max-height: 85vh;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    }
    
    .resource-dialog-overlay {
        background: rgba(0, 0, 0, 0.7);
    }
    
    @keyframes slideUp {
        from { transform: translateY(50px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }
    
    .announcement-item .title,
    .announcement-item .content {
        font-size: 16px;
    }
}

/* 客服二维码图片自适应 – 解决手机端显示过大问题 */
#customerServiceModal .qr-image-container img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;  /* 与弹窗风格统一，可选 */
} 