﻿/* ==========================================================================
   My4uBook 智能预约系统 - 全局超大字号无障碍样式表 (style.css)
   设计风格：现代简约 / 移动端优先 / 极致长辈关怀（特大字号版）
   ========================================================================== */

/* 1. 全局设计变量定义 */
:root {
    --primary: #0b9b8a; /* 核心主题色：清爽蓝绿 */
    --primary-hover: #098072; /* 核心悬停色 */
    --warning: #dd6b20; /* 警告/等待状态色 */
    --warning-bg: #fffaf0; /* 等待状态背景 */
    --danger: #e53e3e; /* 危险/取消状态色 */
    --danger-hover: #c53030; /* 取消状态悬停色 */
    --text-main: #2d3748; /* 主文本色 */
    --text-muted: #718096; /* 次要/提示文本色 */
    --bg-main: #f7fafc; /* 全局大背景 */
    --bg-card: #ffffff; /* 卡片纯白背景 */
    --transition: all 0.25s ease; /* 全局平滑过渡动画 */
}

/* 2. 基础重置与全局排版 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.7; /* 进一步增大行高至 1.7，提供更舒展的视线留白，完全防止串行 */
}

/* 3. 顶部导航栏 (Top Navbar) */
.top-navbar {
    background: var(--bg-card);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid #edf2f7;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-weight: 800;
    font-size: 22px; /* 放大导航栏 Logo */
    color: var(--primary);
    letter-spacing: 0.5px;
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid #cbd5e0; /* 加粗边框使其更明显 */
    padding: 8px 16px; /* 加大语言选择器触控范围 */
    border-radius: 24px;
    background: #ffffff;
    transition: var(--transition);
}

    .lang-selector:focus-within {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(11, 155, 138, 0.15);
    }

.globe-icon {
    width: 18px; /* 放大图标 */
    height: 18px;
    color: var(--text-muted);
}

#langSelect {
    border: none;
    outline: none;
    font-size: 16px; /* 放大选择框文字 */
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    background: transparent;
}

/* 4. 主容器布局 */
.main-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 16px;
}

/* 5. 核心业务卡片 (Booking Card) */
.booking-card {
    background: var(--bg-card);
    width: 100%;
    max-width: 500px; /* 略微拓宽卡片承载大字号 */
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    padding: 36px 24px;
    text-align: center;
    animation: fadeIn 0.4s ease-out;
}

/* 动态状态标签 (Status Badge) */
.status-wrapper {
    margin-bottom: 24px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px; /* 加大状态标签气泡 */
    border-radius: 30px;
    font-size: 16px; /* 状态文字放大 */
    font-weight: 800;
}

    .status-badge.pending {
        background-color: var(--warning-bg);
        color: var(--warning);
        border: 2px solid rgba(221, 107, 32, 0.2);
    }

    .status-badge.confirmed {
        background-color: #e6f6f4;
        color: var(--primary);
        border: 2px solid rgba(11, 155, 138, 0.2);
    }

.status-dot {
    width: 10px; /* 放大呼吸圆点 */
    height: 10px;
    border-radius: 50%;
    background-color: currentColor;
}

.status-badge.pending .status-dot {
    animation: blink 1.5s infinite ease-in-out;
}

h2 {
    font-size: 28px; /* 核心标题放大到 28px */
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 12px;
}

.subtitle {
    font-size: 16px; /* 副标题放大 */
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* 6. 预约详情面板 (Details Panel) */
.details-panel {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 20px 24px;
    text-align: left;
    margin-bottom: 28px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px 0; /* 加大条目上下间距 */
    border-bottom: 1px dashed #cbd5e0;
}

    .detail-row:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .detail-row:first-child {
        padding-top: 0;
    }

.label {
    font-size: 16px; /* 详情标签放大到 16px */
    color: var(--text-muted);
    white-space: nowrap;
    margin-top: 2px;
}

.value {
    font-size: 18px; /* 详情核心内容放大到 18px 粗体 */
    font-weight: 800;
    color: var(--text-main);
    text-align: right;
}

/* 排列式多服务标签排版 (Service Tags) */
.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    max-width: 300px;
}

.tag {
    background: #e6f6f4;
    color: var(--primary);
    font-size: 14px; /* 标签内文字放大 */
    font-weight: 700;
    padding: 6px 12px; /* 加大服务气泡大小 */
    border-radius: 8px;
    border: 1px solid rgba(11, 155, 138, 0.15);
}

/* 7. 客人确认表单与选项列表 (Form & Options) */
.form-group {
    margin-bottom: 28px;
}

.instruction {
    font-size: 18px; /* 表单操作指南放大到 18px 粗体，非常醒目 */
    color: #1a202c;
    font-weight: 800;
    line-height: 1.6;
    margin-bottom: 18px;
    text-align: left;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 20px; /* 极大纵向间距，彻底杜绝手指误触 */
    text-align: left;
    border: 2px solid #e2e8f0;
    padding: 20px;
    border-radius: 14px;
    background: #ffffff;
}

.option-item {
    display: flex;
    align-items: center;
    font-size: 18px; /* 选项文本放大到 18px 黄金阅读字号 */
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    padding: 6px 0;
}

    /* 特大号复选框，极度方便长辈精准点击 */
    .option-item input[type="checkbox"] {
        width: 28px; /* 放大到 28px 特大触控热区 */
        height: 28px;
        margin-right: 14px;
        accent-color: var(--primary);
        cursor: pointer;
        flex-shrink: 0;
    }

.option-item-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 文本输入框 */
.text-input {
    width: 100%;
    padding: 12px 16px; /* 加大输入框内边距，方便点选输入 */
    font-size: 16px; /* 输入框内文字放大 */
    font-weight: 500;
    border: 2px solid #cbd5e0;
    border-radius: 8px;
    outline: none;
    transition: var(--transition);
}

    .text-input:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(11, 155, 138, 0.15);
    }

    .text-input:disabled {
        background-color: #f7fafc;
        border-color: #e2e8f0;
        cursor: not-allowed;
    }

/* 8. 店铺位置与地图卡片 (Location & Map) */
.location-box {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px;
    text-align: left;
}

.location-header {
    display: flex;
    gap: 14px;
    align-items: start;
    margin-bottom: 14px;
}

.map-icon {
    width: 22px;
    height: 22px;
    color: var(--text-main);
    margin-top: 2px;
    flex-shrink: 0;
}

.loc-title {
    font-size: 16px; /* 放大地址标题 */
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 4px;
}

.loc-text {
    font-size: 15px; /* 放大地址正文 */
    color: var(--text-muted);
    line-height: 1.5;
}

/* 地图自适应框架 */
.map-frame {
    width: 100%;
    height: 180px; /* 略微增高地图可视区域 */
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    margin-top: 10px;
}

    .map-frame iframe {
        width: 100%;
        height: 100%;
        border: none;
    }

/* 地图底部操作链接 */
.map-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    font-size: 15px; /* 放大操作链接字号 */
}

    .map-actions a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 800;
        transition: var(--transition);
    }

        .map-actions a:hover {
            color: var(--primary-hover);
            text-decoration: underline;
        }

/* 9. 操作按钮组样式 (Action Buttons) */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.btn {
    width: 100%;
    padding: 16px 24px; /* 极大触控面积，长辈极易点击 */
    border-radius: 12px;
    font-size: 19px; /* 按钮文字放大到 19px 强粗体 */
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    display: block;
}

/* 提交按钮 */
.btn-submit {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(11, 155, 138, 0.2);
}

    .btn-submit:hover {
        background: var(--primary-hover);
    }

/* 报错取消按钮 */
.btn-wrong-num {
    background: #ffffff;
    color: var(--danger);
    border: 2px solid #feb2b2; /* 加粗边框线 */
}

    .btn-wrong-num:hover {
        background: #fff5f5;
        color: var(--danger-hover);
        border-color: var(--danger-hover);
    }

    .btn-wrong-num:active, .btn-submit:active {
        transform: scale(0.97); /* 点击时明显的物理回馈 */
    }

/* 10. 页脚品牌版权 */
.footer-brand {
    text-align: center;
    padding: 24px;
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* ==========================================================================
   11. 动画特效定义 (Animations)
   ========================================================================== */
@keyframes blink {
    0% {
        transform: scale(0.95);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.4;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   12. 手机端响应式极致优化 (Mobile Viewport Reset)
   ========================================================================== */
@media (max-width: 480px) {
    body {
        background: #ffffff; /* 手机端取消背景色，保持纯白 */
    }

    .top-navbar {
        padding: 16px;
    }

    .main-container {
        align-items: flex-start; /* 顶部对齐，防软键盘弹出时挤压变形 */
        padding: 12px 8px;
    }

    .booking-card {
        box-shadow: none;
        padding: 12px 6px;
    }

    /* 强力锁定：利用 !important 确保手机端字号与触控组件维持大尺寸 */
    .option-item {
        font-size: 18px !important;
    }

        .option-item input[type="checkbox"] {
            width: 28px !important;
            height: 28px !important;
        }

    .value {
        font-size: 18px !important;
    }

    .instruction {
        font-size: 18px !important;
    }
}
