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

:root {
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --secondary-color: #764ba2;
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --danger-color: #f56565;
    --text-color: #2d3748;
    --text-light: #718096;
    --bg-color: #f7fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --radius-sm: 8px;
}

html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

/* ==================== 容器布局 ==================== */
.container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--card-bg);
    position: relative;
    box-shadow: var(--shadow-lg);
}

/* ==================== 头部导航 ==================== */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 16px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.header-title a {
    color: white;
    text-decoration: none;
}

.header-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.header-nav::-webkit-scrollbar {
    display: none;
}

.nav-item {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.15);
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

/* ==================== 主内容区 ==================== */
.main-content {
    padding: 20px;
    padding-bottom: 80px;
}

/* ==================== 提示消息 ==================== */
.flash-messages {
    margin-bottom: 20px;
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s ease;
}

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

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

.alert-error {
    background: #fed7d7;
    color: #c53030;
}



.alert-info {
    background: #bee3f8;
    color: #2b6cb0;
}

/* 在 .alert-info 后面添加 */

.alert-warning {
    background: #feebc8;
    color: #c05621;
}

.alert-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.6;
    padding: 0 4px;
}

.alert-close:hover {
    opacity: 1;
}

/* ==================== 首页样式 ==================== */
.index-page {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.welcome-section {
    margin-bottom: 24px;
}

.welcome-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 32px 24px;
    border-radius: var(--radius);
    text-align: center;
}

.welcome-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.welcome-subtitle {
    opacity: 0.9;
    font-size: 15px;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.action-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px 12px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.action-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.action-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.action-desc {
    font-size: 12px;
    color: var(--text-light);
}

.info-section {
    margin-top: 24px;
}

.info-card {
    background: #f8f9fa;
    border-radius: var(--radius);
    padding: 20px;
}

.info-card h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text-color);
}

.info-card p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 6px;
}

/* ==================== 服务手册样式 ==================== */
.guide-page {
    animation: fadeIn 0.5s ease;
}

.guide-header {
    text-align: center;
    margin-bottom: 24px;
}

.guide-header h2 {
    font-size: 22px;
    margin-bottom: 8px;
}

.guide-subtitle {
    color: var(--text-light);
    font-size: 14px;
}

.guide-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-btn {
    flex: 1;
    min-width: 100px;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.tab-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

.intro-card {
    background: #f8f9fa;
    border-radius: var(--radius);
    padding: 24px;
}

.intro-card h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.intro-card > p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.intro-details {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
}

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

.detail-label {
    color: var(--text-light);
}

.detail-value {
    font-weight: 500;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-item {
    display: flex;
    gap: 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px;
}

.service-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.service-info h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.service-info p {
    font-size: 13px;
    color: var(--text-light);
}

.service-time {
    color: var(--primary-color) !important;
    font-weight: 500;
    margin-top: 4px;
}

.around-list h3 {
    font-size: 16px;
    margin-bottom: 16px;
}

.around-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 12px;
}

.around-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.around-desc {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.map-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 13px;
}

.map-link:hover {
    text-decoration: underline;
}

/* ==================== 入住登记样式 ==================== */
.register-page {
    animation: fadeIn 0.5s ease;
}

.register-header {
    text-align: center;
    margin-bottom: 24px;
}

.register-header h2 {
    font-size: 22px;
    margin-bottom: 8px;
}

.register-header p {
    color: var(--text-light);
    font-size: 14px;
}

/* 步骤指示器 */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--border-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.step.active .step-num {
    background: var(--primary-color);
    color: white;
}

.step-text {
    font-size: 12px;
    color: var(--text-light);
}

.step.active .step-text {
    color: var(--primary-color);
    font-weight: 500;
}

/* 步骤内容 */
.step-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.step-content.active {
    display: block;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}

/* 房间选择 */
.room-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.room-item {
    aspect-ratio: 1;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--card-bg);
}

.room-item:hover {
    border-color: var(--primary-color);
}

.room-item.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* 服务类型选择 */
.service-type-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.service-type-btn {
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--card-bg);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.service-type-btn.active {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

.type-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
}

.type-name {
    font-size: 14px;
    font-weight: 500;
}

/* 服务表单 */
.service-form {
    display: none;
    animation: fadeIn 0.3s ease;
}

.service-form.active {
    display: block;
}

.service-form h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

/* 菜单分类 */
.menu-category {
    margin-bottom: 24px;
}

.category-title {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 12px;
    padding-left: 8px;
    border-left: 3px solid var(--primary-color);
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.menu-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--primary-color);
}

.menu-item-content {
    flex: 1;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
    transition: all 0.2s;
}

.menu-item input:checked + .menu-item-content {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

.menu-item-name {
    font-weight: 500;
    margin-bottom: 4px;
}

.menu-item-desc {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.menu-item-price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

/* 表单组件 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* 单选按钮组 */
.radio-group {
    display: flex;
    gap: 16px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-item input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

/* 时间选择器 */
.time-selector {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.preset-times {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.time-btn {
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    background: var(--card-bg);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.time-btn:hover {
    border-color: var(--primary-color);
}

.time-btn.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.time-input {
    margin-top: 8px;
}

/* 乘客计数器 */
.passenger-counter {
    display: flex;
    align-items: center;
    gap: 12px;
}

.counter-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    background: var(--card-bg);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.counter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.passenger-counter input {
    width: 60px;
    text-align: center;
    border: none;
    font-size: 20px;
    font-weight: 600;
}

/* 车辆信息 */
.vehicle-info {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.vehicle-info h4 {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.vehicle-card {
    background: #f8f9fa;
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 8px;
    font-size: 13px;
}

.vehicle-name {
    font-weight: 600;
    margin-bottom: 4px;
}

/* 确认页面 */
.confirm-section {
    background: #f8f9fa;
    border-radius: var(--radius);
    padding: 24px;
}

.confirm-section h3 {
    font-size: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.confirm-item {
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color);
}

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

/* 步骤导航 */
.step-nav {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    flex: 1;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-success {
    background: var(--success-color);
    color: white;
    flex: 1;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* ==================== 便签页面样式 ==================== */
.note-page {
    animation: fadeIn 0.5s ease;
}

.note-header {
    text-align: center;
    margin-bottom: 24px;
}

.note-header h2 {
    font-size: 22px;
    margin-bottom: 8px;
}

.note-header p {
    color: var(--text-light);
    font-size: 14px;
}

.note-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.note-submit-card {
    background: #f8f9fa;
    border-radius: var(--radius);
    padding: 24px;
}

.note-textarea {
    min-height: 120px;
}

.note-list-section h3 {
    font-size: 16px;
    margin-bottom: 16px;
}

.note-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.note-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px;
    border-left: 4px solid var(--border-color);
}

.note-card.status-pending {
    border-left-color: var(--warning-color);
}

.note-card.status-processing {
    border-left-color: var(--primary-color);
}

.note-card.status-completed {
    border-left-color: var(--success-color);
}

.note-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

.note-room {
    font-weight: 600;
    color: var(--primary-color);
}

.note-time {
    color: var(--text-light);
}

.note-content {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.note-status {
    margin-bottom: 8px;
}

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

.status-badge.pending {
    background: #feebc8;
    color: #c05621;
}

.status-badge.processing {
    background: #bee3f8;
    color: #2b6cb0;
}

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

.note-reply {
    background: #f0f4f8;
    border-radius: var(--radius-sm);
    padding: 12px;
    font-size: 13px;
    margin-top: 12px;
}

/* ==================== 页脚 ==================== */
.footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 12px 20px;
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
}

/* ==================== 空状态 ==================== */
.empty-tip {
    text-align: center;
    color: var(--text-light);
    padding: 40px 20px;
    font-size: 14px;
}

/* ==================== 响应式适配 ==================== */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        max-width: 100%;
    }
    
    .room-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .quick-actions {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .action-card {
        padding: 16px 8px;
    }
    
    .action-icon {
        font-size: 24px;
    }
}

/* 大屏幕居中显示 */
@media (min-width: 481px) {
    body {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        padding: 20px;
    }
    
    .container {
        border-radius: 16px;
        overflow: hidden;
    }
    
    .footer {
        border-radius: 0 0 16px 16px;
    }
}
/* ==================== 页面底部备案 ==================== */
.site-footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: rgba(255, 255, 255, 0.92);
    text-align: center;
    padding: 16px 20px;
    font-size: 13px;
    line-height: 1.6;
}
.site-footer p {
    margin: 0;
}
