:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --accent: #ff6d00;
    --bg: #f5f5f7;
    --card-bg: #ffffff;
    --text: #1f1f1f;
    --text-secondary: #5f6368;
    --border: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.13);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    --max-width: 1200px;
    --header-height: 56px;
    --bottom-nav-height: 64px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    min-height: 100dvh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-bottom: var(--bottom-nav-height);
    padding-top: var(--header-height);
    overflow-x: hidden;
}
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 12px;
}
.header .logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    letter-spacing: -0.5px;
}
.header .logo span {
    color: var(--accent);
}
.search-bar {
    flex: 1;
    position: relative;
    max-width: 700px;
}
.search-bar input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 2px solid var(--border);
    border-radius: 24px;
    font-size: 0.95rem;
    background: #f8f9fa;
    transition: var(--transition);
    font-family: var(--font);
    outline: none;
}
.search-bar input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1);
}
.search-bar .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    font-size: 1.1rem;
}
.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
.btn-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #f1f3f4;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-secondary);
}
.btn-icon:hover,
.btn-icon:active {
    background: #e8eaed;
    color: var(--primary);
}
.marquee-wrap {
    background: linear-gradient(135deg, #e8f4f8, #f0f8fb);
    padding: 0;
    overflow: hidden;
    border-bottom: 1px solid #b3d9e6;
    position: sticky;
    top: var(--header-height);
    z-index: 50;
    cursor: pointer;
    height: 32px;
    display: flex;
    align-items: center;
}
.marquee-inner {
    display: flex;
    white-space: nowrap;
    gap: 0;
    will-change: transform;
    width: auto;
    align-items: center;
    height: 100%;
}
.marquee-inner span {
    display: inline-block;
    padding: 0 24px;
    font-weight: 600;
    color: #0d47a1;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
    flex-shrink: 0;
    line-height: 1.5;
    height: 100%;
    display: flex;
    align-items: center;
}
.marquee-inner span::before {
    content: '🌟 ';
}
.marquee-wrap:hover .marquee-inner {
    animation-play-state: paused;
}
.anim-banner {
    margin: 12px 16px;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
    position: relative;
    aspect-ratio: 16/7;
    max-height: 280px;
    box-shadow: var(--shadow);
    display: none;
}
.anim-banner.active {
    display: block;
}
.anim-banner img,
.anim-banner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.anim-banner .anim-label {
    position: absolute;
    bottom: 8px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    pointer-events: none;
}
.main-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 8px 12px 20px;
}
.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 16px 0 10px;
    padding: 0 4px;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title::before {
    content: '';
    width: 4px;
    height: 22px;
    background: var(--primary);
    border-radius: 2px;
}
.region-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    padding: 0 4px;
}
@media (min-width: 600px) {
    .region-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }
}
.region-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
}
.region-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}
.region-card:active {
    transform: scale(0.97);
}
.region-card .card-img {
    flex: 1;
    background: #e8eaed;
    position: relative;
    overflow: hidden;
}
.region-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.region-card .card-img .placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #c4c7cc;
}
.region-card .card-body {
    padding: 10px 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    background: var(--card-bg);
}
.shop-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 4px;
}
.shop-card {
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: row;
    height: 100px;
    max-height: 110px;
}
.shop-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.shop-card:active {
    transform: scale(0.98);
}
.shop-card .shop-img {
    flex: 0 0 120px;
    min-width: 100px;
    height: 100%;
    background: #e8eaed;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}
.shop-card .shop-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.shop-card .shop-img .placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #c4c7cc;
}
.shop-card .shop-info {
    flex: 1;
    padding: 8px 12px 8px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
}
.shop-card .shop-name {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.shop-card .shop-tagline {
    font-size: 0.72rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.shop-card .shop-desc {
    font-size: 0.72rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}
.shop-card .shop-hours {
    font-size: 0.65rem;
    color: #888;
    margin-top: 2px;
}
@media (max-width: 480px) {
    .shop-card {
        height: 85px;
        max-height: 90px;
    }
    .shop-card .shop-img {
        flex: 0 0 90px;
        min-width: 75px;
    }
    .shop-card .shop-info {
        padding: 6px 10px 6px 8px;
    }
    .shop-card .shop-name {
        font-size: 0.8rem;
    }
    .shop-card .shop-tagline {
        font-size: 0.65rem;
    }
    .shop-card .shop-desc {
        font-size: 0.65rem;
        -webkit-line-clamp: 1;
    }
}
@media (max-width: 380px) {
    .shop-card {
        height: 75px;
        max-height: 80px;
    }
    .shop-card .shop-img {
        flex: 0 0 75px;
        min-width: 65px;
    }
    .shop-card .shop-name {
        font-size: 0.7rem;
    }
}
.region-layout {
    display: flex;
    gap: 12px;
    margin-top: 4px;
    align-items: stretch;
}
.cat-sidebar {
    flex: 0 0 80px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    max-height: 100%;
    height: 100%;
    padding-right: 4px;
    min-height: 300px;
}
.cat-sidebar .cat-tab {
    padding: 8px 6px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    background: #fff;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.7rem;
    transition: var(--transition);
    user-select: none;
    text-align: center;
    word-break: break-all;
    line-height: 1.2;
    flex-shrink: 0;
}
.cat-sidebar .cat-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.cat-sidebar .cat-tab:hover {
    border-color: var(--primary);
}
.cat-sidebar::-webkit-scrollbar {
    width: 2px;
}
.cat-sidebar::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
.shop-area {
    flex: 1;
    min-width: 0;
}
.shop-area .section-title {
    margin-top: 0;
    font-size: 1rem;
}
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    height: var(--bottom-nav-height);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 12px;
    transition: var(--transition);
    border: none;
    background: none;
    font-family: var(--font);
    font-size: 0.7rem;
    color: var(--text-secondary);
    min-width: 50px;
}
.bottom-nav .nav-item.active {
    color: var(--primary);
}
.bottom-nav .nav-item .nav-icon {
    font-size: 1.4rem;
}
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn 0.2s;
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.modal-sheet {
    background: #fff;
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    border-radius: 20px 20px 0 0;
    overflow-y: auto;
    animation: slideUp 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    padding: 0 0 24px;
}
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}
.modal-handle {
    width: 36px;
    height: 5px;
    background: #d0d0d0;
    border-radius: 3px;
    margin: 10px auto 0;
}
.modal-close {
    position: sticky;
    top: 8px;
    float: right;
    margin-right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f1f3f4;
    cursor: pointer;
    font-size: 1.1rem;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-content {
    padding: 8px 20px 20px;
}
.modal-content .detail-img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    background: #e8eaed;
    cursor: pointer;
}
.modal-content h2 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}
.modal-content .tagline-detail {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
}
.modal-content .info-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 8px 0;
}
.modal-content .info-chip {
    background: #f1f3f4;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
}
.contact-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #f8f9fa;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.85rem;
    border: 2px solid transparent;
    text-decoration: none;
    color: var(--text);
}
.contact-item:hover,
.contact-item:active {
    border-color: var(--primary);
    background: #e8f0fe;
}
.contact-item img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
}
.contact-item .contact-icon-placeholder {
    font-size: 1.3rem;
}
.btn-maps {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #34a853;
    color: #fff;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 8px;
    transition: var(--transition);
}
.btn-maps:hover {
    background: #2d8f47;
    box-shadow: 0 4px 12px rgba(52, 168, 83, 0.3);
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    margin-top: 12px;
}
.product-card {
    background: #fafafa;
    border-radius: var(--radius-sm);
    padding: 8px;
    text-align: center;
    border: 1px solid #eee;
    cursor: pointer;
    transition: var(--transition);
}
.product-card:active {
    transform: scale(0.96);
}
.product-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 6px;
    background: #e8eaed;
    cursor: pointer;
}
.product-card .prod-name {
    font-weight: 600;
    font-size: 0.82rem;
}
.product-card .prod-price {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
}
.search-results {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    z-index: 90;
    overflow-y: auto;
    padding: 16px;
    display: none;
}
.search-results.active {
    display: block;
}
.search-result-item {
    background: #fff;
    padding: 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.search-result-item:active {
    background: #f0f4ff;
}
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 0.85rem;
    z-index: 999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}
.toast.show {
    opacity: 1;
}
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    font-size: 2rem;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}
.empty-state .empty-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 12px;
}
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: none;
    background: #f1f3f4;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    transition: var(--transition);
    font-family: var(--font);
}
.back-btn:hover {
    background: #e0e0e0;
}
.vendor-page {
    padding: 12px 4px;
}
.vendor-page .vendor-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.vendor-page .vendor-desc {
    background: #fff;
    padding: 16px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    line-height: 1.7;
    font-size: 0.95rem;
    color: var(--text-secondary);
    white-space: pre-wrap;
}
.vendor-page .vendor-contact-title {
    font-weight: 600;
    font-size: 1rem;
    margin: 16px 0 10px;
}
.vendor-page .vendor-contact-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.vendor-page .vendor-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: default;
}
.vendor-page .vendor-contact-item .v-icon {
    font-size: 1.5rem;
    width: 36px;
    text-align: center;
    flex-shrink: 0;
}
.vendor-page .vendor-contact-item .v-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}
.vendor-page .vendor-contact-item .v-info {
    flex: 1;
}
.vendor-page .vendor-contact-item .v-name {
    font-weight: 600;
    font-size: 0.9rem;
}
.vendor-page .vendor-contact-item .v-value {
    color: var(--text-secondary);
    font-size: 0.85rem;
}
.vendor-page .vendor-contact-item .v-action {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 16px;
    background: #e8f0fe;
    border: none;
    text-decoration: none !important;
}
.vendor-page .vendor-contact-item .v-action:active {
    background: #d2e3fc;
}
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.25s;
    cursor: zoom-out;
}
.lightbox-overlay.active {
    display: flex;
}
.lightbox-overlay .lightbox-img {
    max-width: 92vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
    animation: zoomIn 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
.lightbox-overlay .lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}
.lightbox-overlay .lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}
.lightbox-overlay .lightbox-counter {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 18px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}
.lightbox-overlay .lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}
.lightbox-overlay .lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}
.lightbox-overlay .lightbox-nav.prev {
    left: 16px;
}
.lightbox-overlay .lightbox-nav.next {
    right: 16px;
}
@media (max-width: 480px) {
    .lightbox-overlay .lightbox-nav {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    .lightbox-overlay .lightbox-nav.prev {
        left: 8px;
    }
    .lightbox-overlay .lightbox-nav.next {
        right: 8px;
    }
    .lightbox-overlay .lightbox-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
}
.page-transition {
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.page-slide-out {
    transform: translateX(30%);
    opacity: 0.5;
}
.splash-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 1;
    transform: scale(1);
}
.splash-overlay.hide {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}
.splash-overlay .splash-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.splash-overlay .splash-skip {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 6px 18px;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
    z-index: 100000;
    letter-spacing: 0.3px;
}
.splash-overlay .splash-skip:hover {
    background: rgba(0, 0, 0, 0.75);
}
.splash-overlay .splash-skip:active {
    transform: scale(0.92);
}
.splash-overlay .splash-brand {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    z-index: 100000;
    letter-spacing: 0.5px;
}
.splash-overlay .splash-brand span {
    color: #ff6d00;
}
.splash-overlay .splash-image.error {
    display: none;
}
.splash-overlay .splash-fallback {
    display: none;
    font-size: 4rem;
    color: #ccc;
}
.splash-overlay .splash-image.error + .splash-fallback {
    display: block;
}
.search-result-item {
    background: #fff;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    overflow: hidden;
}
.search-result-item:active {
    background: #f0f4ff;
    transform: scale(0.98);
}
.search-result-item .result-img {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    background: #e8eaed;
    flex-shrink: 0;
}
.search-result-item .result-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.search-result-item .result-img .result-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #c4c7cc;
}
.search-result-item .result-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.search-result-item .result-info .result-name {
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-result-item .result-info .result-meta {
    font-size: 0.7rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-result-item .result-info .result-price {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    float: right;
    margin-left: 8px;
}
.shop-detail-page {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: var(--bottom-nav-height);
    background: var(--bg);
    z-index: 60;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: slideUp 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}
.shop-detail-page .shop-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 0 0 12px 0;
}
.shop-detail-page .shop-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #e8eaed;
    overflow: hidden;
    cursor: pointer;
}
.shop-detail-page .shop-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.shop-detail-page .shop-cover .cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #c4c7cc;
}
.shop-detail-page .shop-header-info {
    padding: 12px 16px 8px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.shop-detail-page .shop-header-info .shop-title-area {
    flex: 1;
    min-width: 0;
}
.shop-detail-page .shop-header-info .shop-title-area .shop-name {
    font-size: 1.2rem;
    font-weight: 700;
}
.shop-detail-page .shop-header-info .shop-title-area .shop-tagline {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 500;
    margin-top: 2px;
}
.shop-detail-page .shop-header-info .shop-status-area {
    text-align: right;
    flex-shrink: 0;
}
.shop-detail-page .shop-header-info .shop-status-area .status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
}
.shop-detail-page .shop-header-info .shop-status-area .status-badge.open {
    background: #e6f7e6;
    color: #1a7a3a;
}
.shop-detail-page .shop-header-info .shop-status-area .status-badge.closed {
    background: #fce8e8;
    color: #b71c1c;
}
.shop-detail-page .shop-header-info .shop-status-area .shop-hours {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 2px;
}
.shop-detail-page .shop-actions {
    padding: 0 16px 8px;
    display: flex;
    gap: 8px;
}
.shop-detail-page .shop-actions .btn-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border: none;
    border-radius: 12px;
    background: #34a853;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
    text-decoration: none;
}
.shop-detail-page .shop-actions .btn-nav:active {
    transform: scale(0.96);
}
.shop-detail-page .shop-actions .btn-nav.secondary {
    background: #f1f3f4;
    color: var(--text);
}
.shop-detail-page .shop-tabs {
    display: flex;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 0 8px;
    position: sticky;
    top: 0;
    z-index: 5;
}
.shop-detail-page .shop-tabs .tab-btn {
    flex: 1;
    padding: 12px 8px;
    border: none;
    background: none;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    border-bottom: 3px solid transparent;
}
.shop-detail-page .shop-tabs .tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.shop-detail-page .shop-tabs .tab-btn:active {
    transform: scale(0.96);
}
.shop-detail-page .tab-content {
    padding: 12px 16px 20px;
    display: none;
}
.shop-detail-page .tab-content.active {
    display: block;
}
.shop-detail-page .category-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 16px 0 8px;
    padding: 8px 12px;
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary);
}
.shop-detail-page .category-title:first-of-type {
    margin-top: 0;
}
.shop-detail-page .product-grid-detail {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.shop-detail-page .product-grid-detail .product-item {
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
}
.shop-detail-page .product-grid-detail .product-item:active {
    transform: scale(0.96);
}
.shop-detail-page .product-grid-detail .product-item img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    background: #e8eaed;
}
.shop-detail-page .product-grid-detail .product-item .product-info {
    padding: 6px 10px 10px;
}
.shop-detail-page .product-grid-detail .product-item .product-name {
    font-weight: 600;
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.shop-detail-page .product-grid-detail .product-item .product-price {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
}
.shop-detail-page .info-section {
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    padding: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 12px;
}
.shop-detail-page .info-section .info-label {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.shop-detail-page .info-section .info-value {
    font-size: 0.95rem;
    line-height: 1.6;
}
.shop-detail-page .contact-list-detail {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.shop-detail-page .contact-item-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}
.shop-detail-page .contact-item-detail:active {
    transform: scale(0.97);
    border-color: var(--primary);
}
.shop-detail-page .contact-item-detail .contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e8f0fe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.shop-detail-page .contact-item-detail .contact-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.shop-detail-page .contact-item-detail .contact-body {
    flex: 1;
    min-width: 0;
}
.shop-detail-page .contact-item-detail .contact-body .contact-label {
    font-weight: 600;
    font-size: 0.85rem;
}
.shop-detail-page .contact-item-detail .contact-body .contact-value {
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.shop-detail-page .contact-item-detail .contact-action {
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 12px;
    background: #e8f0fe;
    flex-shrink: 0;
}
.shop-detail-page .back-top-btn {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 20px);
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--card-bg);
    box-shadow: var(--shadow-hover);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    display: none;
    align-items: center;
    justify-content: center;
}
.shop-detail-page .back-top-btn.visible {
    display: flex;
}
.shop-detail-page .back-top-btn:active {
    transform: scale(0.9);
}
.shop-detail-page .product-layout {
    display: flex;
    gap: 12px;
    margin-top: 4px;
    align-items: stretch;
}
.shop-detail-page .product-sidebar {
    flex: 0 0 80px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    max-height: 100%;
    height: 100%;
    padding-right: 4px;
    min-height: 200px;
}
.shop-detail-page .product-sidebar .cat-tab {
    padding: 8px 6px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    background: #fff;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.7rem;
    transition: var(--transition);
    user-select: none;
    text-align: center;
    word-break: break-all;
    line-height: 1.2;
    flex-shrink: 0;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.shop-detail-page .product-sidebar .cat-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.shop-detail-page .product-sidebar .cat-tab:hover {
    border-color: var(--primary);
}
.shop-detail-page .product-sidebar::-webkit-scrollbar {
    width: 2px;
}
.shop-detail-page .product-sidebar::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
.shop-detail-page .product-content {
    flex: 1;
    min-width: 0;
}
.shop-detail-page .product-content .section-title {
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 8px;
}
.shop-detail-page .product-grid-detail {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.shop-detail-page .product-grid-detail .product-item {
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: row;
    height: 100px;
    max-height: 110px;
}
.shop-detail-page .product-grid-detail .product-item:active {
    transform: scale(0.98);
}
.shop-detail-page .product-grid-detail .product-item .product-img {
    flex: 0 0 120px;
    min-width: 100px;
    height: 100%;
    background: #e8eaed;
    overflow: hidden;
    position: relative;
}
.shop-detail-page .product-grid-detail .product-item .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.shop-detail-page .product-grid-detail .product-item .product-img .placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #c4c7cc;
}
.shop-detail-page .product-grid-detail .product-item .product-info {
    flex: 1;
    padding: 8px 12px 8px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
}
.shop-detail-page .product-grid-detail .product-item .product-name {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.shop-detail-page .product-grid-detail .product-item .product-price {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
}
.shop-detail-page .product-grid-detail .product-item .product-desc {
    font-size: 0.72rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}
@media (max-width: 480px) {
    .shop-detail-page .product-grid-detail .product-item {
        height: 85px;
        max-height: 90px;
    }
    .shop-detail-page .product-grid-detail .product-item .product-img {
        flex: 0 0 90px;
        min-width: 75px;
    }
    .shop-detail-page .product-grid-detail .product-item .product-info {
        padding: 6px 10px 6px 8px;
    }
    .shop-detail-page .product-grid-detail .product-item .product-name {
        font-size: 0.8rem;
    }
    .shop-detail-page .product-grid-detail .product-item .product-price {
        font-size: 0.78rem;
    }
    .shop-detail-page .product-grid-detail .product-item .product-desc {
        font-size: 0.65rem;
        -webkit-line-clamp: 1;
    }
}
@media (max-width: 380px) {
    .shop-detail-page .product-grid-detail .product-item {
        height: 75px;
        max-height: 80px;
    }
    .shop-detail-page .product-grid-detail .product-item .product-img {
        flex: 0 0 75px;
        min-width: 65px;
    }
    .shop-detail-page .product-grid-detail .product-item .product-name {
        font-size: 0.7rem;
    }
}