html, body { background: linear-gradient(180deg, #eef2f9 0%, #dde3ef 100%) !important; min-height: 100vh !important; margin: 0 !important; }
html { background: #e6ebf3; min-height: 100%; }
html { background: #e6ebf3; min-height: 100%; }
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
    background: linear-gradient(180deg, #eef2f9 0%, #dde3ef 100%); min-height: 100vh; margin: 0;
    background: linear-gradient(180deg, #f2f6fc 0%, #dde3ee 100%); min-height: 100vh; margin: 0;
    background: linear-gradient(180deg, #f6f8fb 0%, #e9edf3 100%);
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    height: 100vh; height: 100dvh; overflow: hidden;
    animation: fadeIn 0.4s ease;
}

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

/* 容器适配 */
.container {
    max-width: 750px;
    margin: 0 auto;
    padding: 24px 16px;
}

/* 进入页滑块遮罩 */
.slider-mask {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}
.slider-card {
    width: 100%;
    max-width: 360px;
    background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 48px 28px 36px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.4s ease;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.slider-card h2 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #111;
    font-weight: 600;
}
.slider-card p {
    color: #666;
    margin-bottom: 36px;
    font-size: 14px;
}

    color: #fff; 
    font-weight: 500;
}
.slider-success .slider-btn {
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* 首页模块 - 标题居中 */
.home-section { margin-bottom: 32px; }
.section-title {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #111;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* 分类按钮网格 */
.category-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.category-card {
    background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 28px 16px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}
.category-card:active {
    transform: scale(0.96);
    border-color: #667eea;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
}
.category-card h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 6px;
    font-weight: 500;
}
.category-card span {
    font-size: 12px;
    color: #999;
}

/* 查询模块 */
.query-card {
    background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.query-input {
    width: 100%;
    height: 52px;
    padding: 0 18px;
    border: 1px solid #e4e7ed;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    margin-bottom: 16px;
    transition: all 0.25s ease;
    background: rgba(250, 251, 252, 0.8);
}
.query-input:focus { 
    border-color: #667eea; 
    background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.query-btn {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}
.query-btn:active { 
    opacity: 0.9; 
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

/* 菜品简略页 */
.dish-intro {
    background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 28px 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.dish-intro h1 {
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}
.step-list { padding: 0 4px; }
.step-item {
    display: flex;
    padding: 14px 0;
    border-bottom: 1px dashed #f0f2f5;
    transition: background 0.2s ease;
}
.step-item:last-child { border-bottom: none; }
.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    margin-right: 14px;
    font-weight: 500;
}
.step-text { flex: 1; color: #555; padding-top: 5px; font-size: 15px; }

/* 步骤浏览页 */
.step-page {
    height: 100vh; height: 100dvh; overflow: hidden;
    background: transparent;
    display: flex;
    flex-direction: column;
}
.step-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.step-back {
    font-size: 14px;
    color: #667eea;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s ease;
}
.step-back:active { background: #f0f2ff; }
.step-progress {
    flex: 1;
    height: 8px;
    background: #f0f2f5;
    border-radius: 4px;
    margin: 0 16px;
    overflow: hidden;
}
.step-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.35s ease;
}
.step-index {
    font-size: 13px;
    color: #999;
    min-width: 50px;
    text-align: right;
}
.step-content {
    flex: 1;
    padding: 24px 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.block-wrap { margin-bottom: 24px; animation: fadeIn 0.3s ease; background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 16px; padding: 16px; }
.block-wrap img {
    height: auto;
    width: 100%;
    border-radius: 12px;
    display: block;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.block-wrap video {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.block-text {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    padding: 8px 0;
}
.copy-box {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    margin-bottom: 16px;
    border: 1px solid #f0f2f5;
    transition: all 0.2s ease;
}
.copy-box:active { border-color: #667eea; }
.copy-box p {
    font-size: 15px;
    color: #333;
    line-height: 1.7;
    margin-bottom: 16px;
    word-break: break-all;
}
.copy-btn {
    display: inline-block;
    padding: 8px 18px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.copy-btn:active { transform: scale(0.96); opacity: 0.9; }
.step-footer {
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    padding: 16px 20px;
    border-top: 1px solid #f0f2f5;
    display: flex;
    gap: 14px;
    flex-shrink: 0;
}
.step-footer button {
    flex: 1;
    height: 50px;
    border-radius: 10px;
    border: none;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-prev { 
    background: #f3f4f6; 
    color: #333; 
}
.btn-prev:active { background: #e5e7eb; transform: scale(0.98); }
.btn-next { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: #fff; 
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}
.btn-next:active { 
    transform: scale(0.98); 
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

/* 弹窗 */
.modal-mask {
    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;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}
.modal-box {
    width: 100%;
    max-width: 320px;
    background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    animation: slideUp 0.3s ease;
}
.modal-box h3 {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
}
.modal-box p {
    color: #666;
    margin-bottom: 24px;
    line-height: 1.6;
}
.modal-box button {
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.modal-box button:active { transform: scale(0.98); opacity: 0.9; }

/* 倒计时 */
.countdown {
    text-align: center;
    padding: 48px 24px;
    background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.countdown-time {
    font-size: 36px;
    font-weight: 600;
    color: #667eea;
    margin: 20px 0;
    font-family: monospace;
    letter-spacing: 2px;
}
.countdown-tip { color: #999; font-size: 14px; }

/* 评价内容 */
.review-content {
    background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.review-content img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 16px;
}
.review-content video {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 16px;
}
.review-text {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 16px;
}

/* 工具类 */
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none; }

/* 平板适配 */
@media (min-width: 768px) {
    .container { padding: 32px 24px; }
    .category-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(102, 126, 234, 0.12);
    }
}

/* 桌面端适配 */
@media (min-width: 1024px) {
    .query-btn:hover { box-shadow: 0 6px 18px rgba(102, 126, 234, 0.3); }
}

    background: linear-gradient(180deg, #eef2f9 0%, #dde3ef 100%);
    background: linear-gradient(180deg, #f2f6fc 0%, #dde3ee 100%);
    background: linear-gradient(180deg, #f6f8fb 0%, #e9edf3 100%);
    background-attachment: fixed;
}

.category-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.08);
    animation: slideUp 0.5s ease backwards;
}

/* 错落延迟 - 支持最多8个卡片 */
.category-card:nth-child(1) { animation-delay: 0.08s; }
.category-card:nth-child(2) { animation-delay: 0.16s; }
.category-card:nth-child(3) { animation-delay: 0.24s; }
.category-card:nth-child(4) { animation-delay: 0.32s; }
.category-card:nth-child(5) { animation-delay: 0.4s; }
.category-card:nth-child(6) { animation-delay: 0.48s; }
.category-card:nth-child(7) { animation-delay: 0.56s; }
.category-card:nth-child(8) { animation-delay: 0.64s; }

/* PC端悬浮增强 */
@media (min-width: 768px) {
    .category-card:hover {
        background: rgba(255, 255, 255, 0.85);
        transform: translateY(-3px);
        box-shadow: 0 8px 28px rgba(102, 126, 234, 0.12);
    }
}


/* 苹果风格滑块 - iOS原生质感 */
.slider-track {
    position: relative;
    width: 100%;
    height: 60px;
    background: rgba(240, 242, 245, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    overflow: hidden;
    user-select: none;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.06);
}
.slider-fill {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 60px;
    background: linear-gradient(135deg, #7c8aff 0%, #9d7aff 100%);
    border-radius: 30px;
    transition: width 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
    opacity: 0.95;
}
.slider-btn {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    z-index: 2;
    transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.2s ease;
}
.slider-btn::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid #c7c9d1;
    border-bottom: 2px solid #c7c9d1;
    transform: rotate(-45deg);
    margin-left: -2px;
}
.slider-btn:active {
    transform: scale(0.94);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.slider-btn.dragging { cursor: grabbing; }
.slider-text {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 20px;
    color: #9ca3af;
    font-size: 15px;
    font-weight: 500;
    z-index: 0;
    pointer-events: none;
    letter-spacing: 0.5px;
}
.slider-success .slider-text { color: #fff; }
.slider-success .slider-fill { 
    width: 100% !important; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.slider-success .slider-btn { left: calc(100% - 55px) !important; }
.slider-success .slider-btn::after { border-color: #667eea; }

/* 小屏手机优化 */
@media (max-width: 380px) {
    .block-text { font-size: 14px; line-height: 1.7; }
    .step-footer button { font-size: 14px; height: 46px; }
    .step-header { padding: 12px 16px; }
    .step-content { padding: 16px; }
    .copy-box { padding: 14px; }
}

    width: 20px;
    border-radius: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

/* 纵向全内容布局 - 按钮常驻 */
.step-content {
    flex: 1;
    padding: 20px 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.block-wrap { margin-bottom: 20px; animation: fadeIn 0.3s ease; background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 16px; padding: 14px; }
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
}
.block-wrap img {
    width: 100%;
    border-radius: 12px;
    display: block;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.block-wrap video {
    width: 100%;
    border-radius: 12px;
}
.block-text {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    padding: 4px 0;
}
.copy-box {
    background: #f9fafb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #f0f2f5;
}
.copy-box p {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 12px;
    word-break: break-all;
}
.copy-btn {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
}

/* 文字块毛玻璃效果 */
.block-text {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.copy-box {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* 图片置顶自适应 */
.block-wrap img {
    max-height: 38vh;
    width: auto !important;
    max-width: 100%;
    margin: 0 auto 16px;
    border-radius: 12px;
    cursor: zoom-in;
    transition: transform 0.2s ease;
}
.block-wrap img:active { transform: scale(0.98); }

/* 手指引导动画 */
.finger-guide {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    z-index: 10;
    pointer-events: none;
    animation: fingerTap 1.6s ease-in-out infinite;
}
.finger-guide::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
    animation: fingerRipple 1.6s ease-out infinite;
}
.finger-guide::after {
    content: '👆';
    font-size: 32px;
    position: absolute;
    top: 6px;
    left: 9px;
}
@keyframes fingerTap {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(0.85); }
}
@keyframes fingerRipple {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); }
    100% { box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); }
}

    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* 紧凑布局优化 */
.step-content { padding: 16px; }
.block-wrap { margin-bottom: 14px; }
.step-content h2 {
    font-size: 18px;
    margin-bottom: 14px;
    font-weight: 600;
    text-align: center;
}

/* 大图预览 - 优化关闭体验 */
.image-preview-mask {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.25s ease;
    cursor: zoom-out;
}
.image-preview-mask img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    animation: zoomIn 0.3s ease;
    pointer-events: none;
}
@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.preview-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.preview-close:active { transform: scale(0.92); }
.preview-tip {
    position: absolute;
    bottom: 40px;
    left: 0; right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    pointer-events: none;
}

/* 毛玻璃文字块加深 - 提升可读性 */
.block-text {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: blur(16px) !important;
    color: #2a2d34;
    font-weight: 500;
    line-height: 1.8;
}
.copy-box {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
}
.copy-box p {
    color: #2a2d34;
    font-weight: 500;
    margin-bottom: 12px;
}
