/* =========================================
   MoguMode Application Styles
   Organized from 02061500.html
   ========================================= */

/* =========================================
   1. CSS Variables & Global Styles
   ========================================= */
:root {
    --primary-green: #98ff98;
    --bg-gray: #f4f4f4;
    --card-pink: #ffcdd2;
    --card-blue: #bbdefb;
    --text-main: #2d3436;
    --text-sub: #95a5a6;
    --primary-yellow: #EDF228;
    --scrollbar-thumb-color: rgba(45, 52, 54, 0.32);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --nav-bottom-extra: 10px;
    --nav-height: 70px;
    --bottom-nav-total: calc(var(--nav-height) + var(--safe-bottom) + var(--nav-bottom-extra));
    --app-height: 100vh;
}

@supports (height: 100dvh) {
    :root {
        --app-height: 100dvh;
    }
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

body {
    font-family: 'PingFang SC', 'Noto Sans JP', sans-serif;
    background-color: #d9d9d9;
    color: var(--text-main);
    margin: 0;
    display: flex;
    justify-content: center;
    padding-bottom: var(--bottom-nav-total);
    overflow: hidden;
    height: var(--app-height);
}

#app {
    width: 100%;
    max-width: 448px;
    height: var(--app-height);
    background-color: var(--bg-gray);
    position: relative;
    overflow: hidden;
}

.hidden {
    display: none !important;
}

.hide-scroll::-webkit-scrollbar {
    display: none;
}

/* Global subtle scrollbar: hidden by default, only appears while scrolling */
* {
    scrollbar-width: none;
}

*::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}

*::-webkit-scrollbar-track {
    background: transparent !important;
}

*::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 999px;
}

*.is-scrolling::-webkit-scrollbar {
    width: 3px;
    height: 3px;
}

*.is-scrolling::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb-color);
}

/* =========================================
   2. Header & Filter Styles
   ========================================= */
header {
    padding: 12px 16px 0;
    background: var(--bg-gray);
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
}

.top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.logo-area {
    font-family: 'Fredoka One', cursive;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
}

.location-trigger-wrap {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.brand-logo-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    object-fit: contain;
}

.build-version-tag {
    margin-left: 2px;
    padding: 2px 6px;
    border-radius: 999px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    color: #7f8c8d;
    background: #e9ecef;
    letter-spacing: 0.2px;
}

/* --- Location Capsule --- */
.location-capsule {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-main);
    font-weight: 500;
    background: transparent;
    cursor: pointer;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.location-capsule>img {
    flex: 0 0 auto;
}

#current-location-text {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.location-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 6px;
    z-index: 50;
    display: none;
    min-width: 150px;
    border: 1px solid #eee;
}

.location-menu-hidden {
    display: none !important;
}

.location-menu.active {
    display: block;
}

.loc-item {
    padding: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.loc-item:hover {
    background: #f5f6fa;
}

.loc-card-mini {
    background: white;
    padding: 30px;
    border-radius: 24px;
    text-align: center;
}

.loc-confirm-box {
    background: white;
    width: 90%;
    max-width: 380px;
    padding: 20px;
    overflow: hidden;
}

.loc-confirm-current {
    margin: 0 0 12px 0;
    font-size: 12px;
    line-height: 1.45;
    color: #7b8794;
    white-space: normal;
    word-break: break-all;
}

@keyframes pinPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.pulse-pin {
    animation: pinPulse 1.5s infinite;
}

.loc-actions {
    display: flex;
    justify-content: stretch;
    gap: 10px;
    margin-top: 4px;
}

.loc-actions .action-btn {
    flex: 1;
    height: 44px;
    padding: 0 10px;
    font-size: 12px;
    text-align: center;
    border-radius: 999px;
    border: none;
}

.loc-actions .btn-cancel {
    background: #f1f2f6;
    color: #2d3436;
}

.loc-actions .btn-reread {
    background: #2c7be5;
    color: #fff;
}

.loc-actions .btn-save {
    background: #1a1a1a;
    color: #fff;
}

/* --- User Circle --- */
.user-circle {
    width: 32px;
    height: 32px;
    background: #b2bec3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
    flex: 0 0 auto;
}

/* --- Search Bar --- */
.search-container {
    position: relative;
    margin-bottom: 12px;
}

.search-bar {
    width: 100%;
    height: 40px;
    background: white;
    border: 1px solid #c4c4c4;
    border-radius: 100px;
    padding: 0 78px 0 20px;
    font-size: 14px;
}

.search-clear-btn {
    position: absolute;
    right: 48px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 50%;
    background: #b9b9b9;
    display: grid;
    place-items: center;
    padding: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    color: transparent;
    font-size: 0;
    line-height: 0;
    text-indent: -9999px;
    overflow: hidden;
}

.search-clear-btn::before {
    content: "×";
    color: #fff;
    font-size: 14px;
    line-height: 1;
    font-family: Arial, sans-serif;
    text-indent: 0;
    transform: translateY(1px);
}

.search-bar::placeholder {
    color: #d2d2d2;
}

.search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #b4b4b4;
    pointer-events: none;
}

/* --- Filter Row --- */
.filter-row {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    padding-left: 4px;
}

.sort-circle-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
}

.sort-circle-btn.active-border {
    border-color: #FF9696;
    border-width: 1px;
    color: var(--text-main);
    background-color: #fff;
    box-shadow: inset 0 0 0 0.5px #FF9696;
}

.sort-circle-btn svg {
    transition: transform 0.2s ease;
}

.sort-circle-btn.is-reversed svg {
    transform: rotate(180deg);
}

.sort-btn-container,
.filter-btn-container {
    position: relative;
}

.sort-btn,
.filter-btn {
    background: white;
    border: none;
    padding: 3px 12px;
    border-radius: 23px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* --- Sort Menu --- */
.sort-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 8px;
    z-index: 20;
    display: none;
    min-width: 100px;
}

.sort-menu.active {
    display: block;
}

.sort-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-main);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.sort-menu-item i {
    color: #b2bec3;
}

.sort-menu-item:hover {
    background-color: #f5f6fa;
}

.sort-menu-item.active {
    color: #2d3436;
    font-weight: 700;
    background-color: #f0f0f0;
}

.sort-menu-item.active i {
    color: #2d3436;
}

/* --- Filter Panel --- */
.filter-btn.active-filter {
    background-color: #e0ffe1;
    border: 1px solid #40de75;
}

.filter-panel {
    position: absolute;
    top: 40px;
    left: -155px;
    width: min(400px, calc(100vw - 24px));
    max-height: min(72vh, 560px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 30;
    display: none;
    border: 1px solid #9c9c9c;
}

.filter-panel.active {
    display: block;
}

@media (max-width: 448px) {
    .filter-panel {
        left: -155px;
        width: min(400px, calc(100vw - 20px));
        max-height: calc(100vh - 190px);
    }
}

.filter-group {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.filter-options {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.filter-label {
    width: 50px;
    font-size: 14px;
}

/* --- Pills --- */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 29px;
    padding: 0 12px;
    line-height: 29px;
    border-radius: 23px;
    background: #fff;
    border: 1px solid #dcdde1;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

#dist-custom-input-wrap {
    display: none;
    align-items: center;
    gap: 4px;
}

#dist-custom-input-wrap.active {
    display: flex;
}

.pill.selected {
    background-color: #e0ffe1;
    border: 1px solid #40de75;
}

.pill.init-pill.selected {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.pill.pref-good.selected {
    background: #ffe1f0;
    color: #2d3436;
    border-color: #ff80ab;
}

.pill.pref-bad.selected {
    background: #e3f2fd;
    color: #2d3436;
    border-color: #64b5f6;
}

.pill.pref-want.selected {
    background: #fff9c4;
    color: #2d3436;
    border-color: #fbc02d;
}

/* --- Price Input --- */
.price-input {
    width: 60px;
    height: 23px;
    border: 1px solid #dcdde1;
    border-radius: 15px;
    text-align: center;
}

.price-input.active {
    background-color: #e8f5e9;
    border-color: #81c784;
}

/* --- Filter Actions --- */
.filter-actions {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 10px;
    border-top: 1px solid #f1f1f1;
    padding-top: 12px;
    position: sticky;
    bottom: 0;
    background: #fff;
}

.action-btn {
    height: 36px;
    padding: 0 18px;
    border-radius: 999px;
    border: none;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.filter-actions .action-btn:nth-child(2) {
    margin-left: auto;
}

.filter-actions .rf-btn:nth-child(2) {
    margin-left: auto;
}

.filter-actions .rf-btn {
    height: 30px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.filter-actions .action-btn {
    height: 30px;
    padding: 0 18px;
    border-radius: 999px;
    border: none;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.filter-actions .btn-cancel {
    background: #f1f2f6;
    color: #2d3436;
}

.filter-actions .btn-save {
    background: #1a1a1a;
    color: #fff;
}

.btn-cancel {
    background: #f1f2f6;
    color: #2d3436;
}

.btn-save {
    background: #1a1a1a;
    color: #fff;
}

/* --- Deco Shapes --- */
.deco-shapes {
    position: absolute;
    top: 98px;
    right: 0;
    pointer-events: none;
    z-index: 0;
    /* opacity: 0.6; */
}

.deco-shapes img {
    width: 123px;
    height: auto;
}

.store-list {
    position: relative;
}

/* =========================================
   3. Store Card Styles
   ========================================= */

/* Home view: flex column so header stays and cards scroll */
#view-home {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 70px);
    overflow: hidden;
}

.store-list {
    padding: 0 16px;
    position: relative;
    z-index: 2;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
}

.store-list img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.store-list {
    user-select: none;
    -webkit-user-select: none;
}

.home-pull-indicator {
    position: relative;
    height: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #8e8e93;
    pointer-events: none;
    transition: height 0.22s ease;
    flex-shrink: 0;
}

.home-pull-indicator.is-pulling {
    transition: none;
}

.home-pull-indicator.is-refreshing {
    height: 40px;
}

.home-pull-text {
    padding: 8px 0;
}

.store-list-endcap {
    min-height: calc(var(--bottom-nav-total) + 1px);
    padding: 14px 0 calc(var(--safe-bottom) + 1px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    color: #b2bec3;
    font-size: 12px;
    letter-spacing: 0.04em;
}

/* 首页空状态提示 */
.home-empty-tip {
    margin: 64px 24px 0;
    text-align: center;
    color: #6c7a89;
    font-size: 14px;
    line-height: 1.6;
}

.home-empty-title {
    font-size: 15px;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 10px;
}

.home-empty-sub {
    font-size: 13px;
    color: #8e8e93;
}

.home-empty-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #2d3436;
    color: #fff;
    font-size: 14px;
    line-height: 1;
    vertical-align: -3px;
    margin: 0 2px;
}

.store-card {
    background: white;
    border-radius: 20px;
    padding: 12px 14px;
    margin-bottom: 16px;
    position: relative;
    border: 2px solid #eee;
    transition: all 0.3s ease;
}

/* Card Status Colors */
.store-card.status-fav {
    border-color: #f1e650 !important;
}

.store-card.status-liked {
    border-color: #ffa6f8 !important;
}

.store-card.status-disliked {
    border-color: #74b9ff !important;
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 6px;
    min-width: 0;
}

.info-col {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
}

.store-name-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 4px;
    min-width: 0;
}

.store-name {
    font-size: 16px;
    color: #2d3436;
    margin: 0;
    line-height: 1.4;
    flex: 0 1 auto;
    max-width: calc(100% - 34px);
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.store-closed-mogu {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    vertical-align: middle;
}

.store-closed-mogu img {
    width: 12px;
    height: 12px;
    opacity: 0.58;
    filter: grayscale(1);
}

.bookmark-icon-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    object-fit: contain;
    transition: transform 0.2s;
}

.bookmark-icon-btn.active {
    transform: scale(1.02);
}

.store-meta {
    font-size: 12px;
    color: #888888;
    display: flex;
    align-items: center;
    gap: 2px;
}

.store-budget-meta {
    color: inherit;
    white-space: nowrap;
}

.rating-star {
    color: #ffce00;
}

/* --- Action Group --- */
.action-group {
    display: flex;
    gap: 0;
    align-items: flex-start;
    margin-left: 0;
    width: 108px;
    flex: 0 0 108px;
    justify-content: flex-end;
}

.action-item+.action-item {
    margin-left: -1px;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 54px;
    cursor: pointer;
    transition: all 0.2s;
}

.action-social-row {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    min-height: 18px;
    margin: 0 auto 3px;
}

.action-avatars {
    display: flex;
    justify-content: center;
    width: auto;
    min-width: 0;
    height: 14px;
}

.action-avatar {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
    background: #f1f2f6;
    position: relative;
    z-index: 1;
}

.action-avatar+.action-avatar {
    margin-left: -6px;
}

.action-avatar:nth-child(1) {
    z-index: 4;
}

.action-avatar:nth-child(2) {
    z-index: 3;
}

.action-avatar:nth-child(3) {
    z-index: 2;
}

.action-avatar:nth-child(4) {
    z-index: 1;
}

.action-count-top {
    font-size: 12px;
    line-height: 1;
    color: #111;
    font-weight: 700;
    margin-left: 2px;
    min-width: 0;
    text-align: center;
}

.action-item.active-like i {
    color: #ff7675;
    fill: #ff7675;
}

.action-item.active-dislike i {
    color: #0984e3;
    fill: #0984e3;
}

.action-icon {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
    opacity: 0.7;
}

/* 选中（已标记好吃/难吃）时恢复正常颜色 */
.action-item.active-like .action-icon,
.action-item.active-dislike .action-icon {
    opacity: 1;
}

@media (max-width: 390px) {
    .action-group {
        width: 102px;
        flex-basis: 102px;
    }

    .action-item {
        width: 51px;
    }
}

/* --- Store Image Scroll --- */
.store-img-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-top: 12px;
    padding-bottom: 5px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.store-img-scroll::-webkit-scrollbar {
    display: none;
}

.store-activity-meta {
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.35;
    color: #b2bec3;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.store-activity-time {
    color: #a5b0b5;
}

.store-activity-time.is-fresh {
    color: #2db160;
}

.store-activity-friends {
    color: #e63dbf;
}

.store-activity-divider {
    color: #a5b0b5;
}

.store-img-item {
    width: 80px;
    height: 100px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f0f0f0;
    scroll-snap-align: start;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* =========================================
   4. Navigation Bar Styles
   ========================================= */
.nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--bottom-nav-total) + 8px);
    padding-bottom: calc(var(--safe-bottom) + var(--nav-bottom-extra) + 8px);
    max-width: 448px;
    margin: 0 auto;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.03);
    z-index: 100;
}

.nav-icon {
    color: #dcdde1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    gap: 4px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.nav-icon-badge-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-friends-dot {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #ff5b5b;
    color: #fff;
    font-size: 9px;
    line-height: 14px;
    text-align: center;
    padding: 0 4px;
    box-sizing: border-box;
}

.nav-icon.active {
    color: #2d3436;
}

.nav-text {
    font-size: 9px;
    font-weight: 500;
    margin-top: 2px;
    user-select: none;
    -webkit-user-select: none;
}

.add-btn-circle {
    width: 59px;
    height: 59px;
    background: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border: 4px solid white;
    transform: translateY(-4px);
}

/* =========================================
   5. Modal & Overlay Styles
   ========================================= */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    justify-content: center;
    align-items: center;
}

.modal-overlay.open {
    display: flex;
}

.modal-card {
    background: white;
    width: 100%;
    max-width: 448px;
    height: 90vh;
    border-radius: 24px 24px 0 0;
    overflow-y: auto;
}

.page-content {
    padding: 24px;
    height: calc(var(--app-height) - var(--bottom-nav-total));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#view-profile {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#view-fav {
    overflow: hidden;
}

.profile-stranger-gate {
    padding: 60px 24px;
    text-align: center;
    color: #8e8e93;
    font-size: 14px;
}

#view-profile.friend-profile-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: 448px;
    height: var(--app-height);
    margin: 0 auto;
    z-index: 1200;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    box-shadow: -12px 0 28px rgba(0, 0, 0, 0.12);
}

#view-profile.friend-profile-overlay.is-open {
    transform: translateX(0);
}

.auth-mask-card {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 360px;
}

#view-profile.profile-guest-mode #user-info {
    display: none !important;
}

#view-profile.profile-guest-mode #guest-info {
    display: block !important;
}

#view-add {
    position: relative;
}

#view-add.edit-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: 448px;
    height: var(--app-height);
    margin: 0 auto;
    z-index: 1300;
    background: #f4f4f4;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    box-shadow: -12px 0 28px rgba(0, 0, 0, 0.12);
    padding: 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#view-add.edit-overlay.is-open {
    transform: translateX(0);
}

#view-add.edit-overlay #add-auth-mask {
    top: 50%;
}

#view-add #add-auth-mask {
    position: absolute;
    left: 24px;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 auto;
    max-width: 360px;
}

#view-add.add-guest-centered {
    display: flex;
    align-items: center;
    justify-content: center;
}

#view-add.add-guest-centered #add-auth-mask {
    width: 100%;
    max-width: 360px;
}

.btn-black {
    width: 100%;
    padding: 14px;
    background: #2d3436;
    color: white;
    border-radius: 12px;
    border: none;
    margin-top: 10px;
}

.input-std {
    font-size: 14px;
    width: 100%;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 10px;
    background: white;
}

/* =========================================
   6. Map Section Styles
   ========================================= */
.map-section {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: #eee;
}

.map-full {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    z-index: 0;
}

.map-search-card {
    position: absolute;
    top: 20px;
    left: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 999px;
    padding: 13px 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-search-icon {
    flex-shrink: 0;
}

.map-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: #fff !important;
    font-size: 16px;
    color: #2d3436;
}

.map-search-input:focus {
    outline: none;
    background: #fff !important;
}

.map-search-input::selection {
    background: rgba(63, 124, 255, 0.22);
}

.map-search-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.map-search-clear,
.add-search-clear-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: #eceef2;
    color: #9aa3ad;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.search-results {
    background: white;
    border-radius: 12px;
    margin-top: 8px;
    display: none;
    padding: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.search-results.active {
    display: block;
}

.map-results-hint {
    font-size: 11px;
    color: #a4a9b0;
    padding: 2px 8px 8px;
    text-align: left;
}

.result-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.result-item.active {
    background: #f2f6ff;
    border-color: #d4e0ff;
}

.result-item-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.mogu-search-badge {
    width: 14px;
    height: 14px;
    object-fit: contain;
    vertical-align: middle;
}

/* =========================================
   7. Profile Section Styles
   ========================================= */
.profile-card {
    background: white;
    border-radius: 24px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.avatar-lg {
    width: 80px;
    height: 80px;
    background: var(--primary-yellow);
    color: var(--text-main);
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 900;
    border: 4px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* =========================================
   7.1 Login Page Styles (New Design)
   ========================================= */
.login-page {
    /* background: white; */
    min-height: calc(100vh - 70px);
    padding: 40px 24px;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo {
    font-family: 'Fredoka One', cursive;
    font-size: 24px;
    display: flex;
    align-items: center;
    /* justify-content: center; */
    gap: 8px;
}

.login-form-container {
    max-width: 360px;
    margin: 0 auto;
}

#auth-entry {
    min-height: calc(100vh - 230px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateY(20px);
}

#auth-entry .login-title {
    margin-bottom: 36px;
}

.auth-entry-btn {
    width: 100%;
    height: 56px;
    padding: 0 16px;
    border: none;
    border-radius: 16px !important;
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.auth-entry-btn-google {
    background: #1a1a1a !important;
    color: #fff !important;
}

.auth-entry-btn-email {
    background: #e6e6e6 !important;
    color: #2d3436 !important;
}

.auth-entry-btn-google svg {
    color: #fff;
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 30px 0;
    color: var(--text-main);
}

.login-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #e6e6e6;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.login-input-group input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    color: var(--text-main);
    outline: none;
}

.login-input-group input::placeholder {
    color: #b2bec3;
}

.forgot-password {
    text-align: right;
    margin-bottom: 24px;
}

.forgot-password a {
    font-size: 13px;
    color: #636e72;
    text-decoration: none;
}

.login-btn-primary {
    width: 100%;
    padding: 16px;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.login-btn-primary:hover {
    background: #333;
}

.login-divider {
    display: flex;
    align-items: center;
    margin: 50px 0 10px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #898989;
}

.login-divider span {
    padding: 0 16px;
    color: #999;
    font-size: 13px;
    white-space: nowrap;
}

.login-btn-secondary {
    width: 100%;
    padding: 10px;
    background: #e6e6e6;
    color: #333;
    border: none;
    border-radius: 40px;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.login-btn-secondary:hover {
    background: #eee;
}

.google-icon-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* =========================================
   8. Add Form Styles
   ========================================= */
.upload-box {
    height: 160px;
    background: white;
    border-radius: 16px;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    color: #999;
    font-size: 12px;
    font-weight: 700;
}

.preview-list {
    position: absolute;
    inset: 0;
    display: flex;
    overflow-x: auto;
    background: white;
    z-index: 5;
    padding: 10px;
    gap: 10px;
}

.preview-item {
    height: 100%;
    width: 120px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: #2d3436;
    color: white;
    border: none;
    border-radius: 12px;
    /* font-weight: 800; */
    display: flex;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.btn-submit.loading .spinner {
    display: block;
}

.spinner {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    display: none;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.add-composer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 100%;
}

.add-step-panel {
    background: transparent;
}

#add-step-pick {
    min-height: calc(var(--app-height) - 140px - var(--safe-bottom));
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
}

.add-main-title {
    margin: 0 2px 20px;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 900;
    color: #121212;
    text-align: center;
}

.add-search-pill-row {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #d9d9de;
    border-radius: 999px;
    padding: 0 14px;
    height: 46px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.add-search-pill-input {
    flex: 1;
    border: none;
    background: #fff !important;
    font-size: 15px;
    color: #2d3436;
    min-width: 0;
}

.add-search-pill-input:focus {
    outline: none;
    background: #fff !important;
}

.add-search-pill-input::selection {
    background: rgba(63, 124, 255, 0.22);
}

.add-search-pill-input:-webkit-autofill,
.add-search-pill-input:-webkit-autofill:hover,
.add-search-pill-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #2d3436;
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    box-shadow: 0 0 0 1000px #fff inset !important;
}

.add-selected-mogu-inline {
    width: 16px;
    height: 16px;
    margin-left: 6px;
    margin-right: 6px;
    flex-shrink: 0;
}

.add-view-store-btn {
    height: 24px;
    border: none;
    border-radius: 999px;
    background: #3f7cff;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    padding: 0 10px;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 2px;
}

.add-search-clear-btn {
    margin-left: 2px;
}

.add-search-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.add-search-tools-row {
    min-height: 28px;
    margin-top: 8px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.add-nearby-search-btn {
    min-width: 118px;
    height: 28px;
    border: none;
    border-radius: 999px;
    background: #3f7cff;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    padding: 0 14px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(63, 124, 255, 0.24);
}

.add-nearby-search-btn:disabled {
    background: #9dbcfb;
    color: #ffffff;
    cursor: default;
}

.add-nearby-search-btn.is-loading {
    background: #7ca7fb;
}

.add-map-toggle-link {
    border: 1px solid #bfd0ff;
    background: #ffffff;
    color: #3f7cff;
    font-size: 12px;
    line-height: 1;
    height: 28px;
    padding: 0 14px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(34, 66, 173, 0.08);
}

.add-search-map-wrap {
    position: relative;
    margin-top: 8px;
    border: 1px solid #dbe3f2;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    flex: 1;
    min-height: 180px;
}

.add-search-map {
    width: 100%;
    height: 100%;
    min-height: 180px;
}

.add-search-in-area-btn {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    border: 1px solid #bfd0ff;
    background: #ffffff;
    color: #3f7cff;
    height: 28px;
    border-radius: 999px;
    padding: 0 14px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(34, 66, 173, 0.14);
}

.add-search-results {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    margin-top: 0;
    border: 1px solid #e4e7eb;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
    max-height: 320px;
    z-index: 6;
}

.add-step-pick-confirm-wrap {
    margin-top: auto;
    padding-top: 12px;
    position: sticky;
    bottom: calc(8px + var(--safe-bottom));
    z-index: 4;
}

.add-step-pick-confirm-btn {
    width: 100%;
    height: 56px;
    border: none;
    border-radius: 18px;
    background: #121417;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
}

.add-step-pick-confirm-btn:disabled {
    background: #d6d9de;
    color: #8f98a3;
    cursor: not-allowed;
}

.add-picked-preview {
    margin-top: 10px;
    background: #fff;
    border-radius: 14px;
    padding: 10px;
    border: 1px solid #e4e7eb;
}

.add-picked-chip {
    height: 44px;
    border-radius: 999px;
    border: 1px solid #d7dbe0;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    font-size: 18px;
    /* font-weight: 700; */
    color: #202224;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.add-picked-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 2px 0 10px;
}

.add-picked-topbar .add-picked-chip {
    flex: 1 1 auto;
    min-width: 0;
}

.add-picked-chip span {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.add-chip-back-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.add-chip-back-btn img {
    opacity: 0.48;
}

.add-chip-back-btn-separate {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #d7dbe0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.add-chip-back-btn-separate img {
    width: 14px;
    opacity: 0.42;
}

.add-picked-mogu {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.add-picked-map {
    width: 100%;
    height: 220px;
    border-radius: 10px;
    margin-top: 10px;
    background: #eef1f4;
    overflow: hidden;
    border: 1px solid #e3e7ec;
}

.add-picked-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.add-picked-map-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa0a9;
    font-size: 13px;
}

.add-confirm-btn {
    width: 100%;
    margin-top: 10px;
    height: 44px;
    border: none;
    border-radius: 12px;
    background: #111;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
}

.add-chip-edit-btn {
    margin-left: auto;
    border: none;
    background: transparent;
    color: #2f7dde;
    font-size: 14px;
    cursor: pointer;
    flex: 0 0 auto;
    min-width: 2.5em;
    white-space: nowrap;
}

.add-chip-edit-btn.is-locked {
    color: #9aa0a9;
    cursor: not-allowed;
}

.add-rating-card,
.add-input-card {
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
}

/* 拖动蘑菇评分时禁止文字被选中 */
.add-rating-card,
.add-rating-card * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* 自定义日期选择按钮（替代各设备样式不一致的原生 <input type=date>） */
.custom-date-wrap {
    position: relative;
}

.custom-date-button {
    width: 100%;
    background: #fff;
    border: 1px solid #dfe6e9;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    color: #2d3436;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    box-sizing: border-box;
}

.custom-date-button:active {
    background: #f7f8fa;
}

.custom-date-text {
    flex: 1;
    color: #2d3436;
}

.custom-date-text.is-empty {
    color: #b2b7be;
}

.custom-date-icon {
    flex: 0 0 18px;
    color: #6c7a89;
}

.custom-date-native {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    border: 0;
    padding: 0;
    margin: 0;
}

.add-card-title {
    font-size: 16px;
    /* font-weight: 800; */
    color: #222;
}

.add-card-title span {
    color: #b2b7be;
    font-size: 12px;
    font-weight: 500;
    margin-left: 6px;
}

.add-rating-number {
    margin-top: 10px;
    font-size: 54px;
    text-align: center;
    /* font-weight: 900; */
}

.add-rating-mushrooms {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    line-height: 1;
    user-select: none;
    touch-action: none;
    cursor: ew-resize;
}

.add-rating-mushroom {
    position: relative;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}

.add-rating-mushroom .base,
.add-rating-mushroom .fill {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.add-rating-mushroom .base {
    filter: grayscale(1) brightness(0.95);
    opacity: 0.42;
}

.add-rating-mushroom .fill {
    clip-path: inset(0 100% 0 0);
    will-change: clip-path;
}

.add-walk-info {
    margin-top: 10px;
    font-size: 12px;
    color: #9aa0a9;
    text-align: center;
}

.add-input-label {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}

.add-jpy-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.add-jpy-row span {
    color: #333;
    font-size: 22px;
}

.add-post-btn {
    background: #e274d1;
    border-radius: 12px;
}

.add-edit-cancel-btn {
    background: #fff;
    color: #202224;
    border: 1px solid #d7dbe0;
    border-radius: 12px;
    margin-bottom: 10px;
}

/* =========================================
   9. Map Sheet (Draggable Bottom Card)
   ========================================= */
.map-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.2);
    z-index: 300;
    display: none;
    max-height: 90vh;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), height 0.36s cubic-bezier(0.22, 1, 0.36, 1);
    transform: translateY(100%);
}

.map-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.16);
    z-index: 280;
    display: none;
    pointer-events: none;
}

.map-sheet-backdrop.active {
    display: block;
    pointer-events: auto;
}

.map-sheet.active {
    display: block;
    animation: sheetSlideUp 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.map-sheet.no-entry-animation,
.map-sheet.active.no-entry-animation {
    transition: none !important;
    animation: none !important;
}

.map-sheet.active.no-entry-animation {
    transform: translateY(0) !important;
}

.map-sheet.active.no-entry-animation.peek {
    transform: translateY(30px) !important;
}

.map-sheet.half {
    height: 50vh;
    overflow-y: auto;
}

.map-sheet.peek {
    height: 132px;
    transform: translateY(30px);
}

.map-sheet.peek .sheet-full-content {
    display: none;
}

.map-sheet.full {
    height: calc(100vh - 52px);
    overflow-y: auto;
}

@keyframes sheetSlideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.map-sheet.active.closing {
    animation: sheetSlideDown 0.22s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes sheetSlideDown {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(100%);
    }
}

.map-sheet-backdrop.active {
    opacity: 1;
    transition: opacity 0.22s ease-out;
}

.map-sheet-backdrop.active.closing {
    opacity: 0;
}

/* Drag Handle */
.sheet-drag-handle {
    padding: 12px 0 8px;
    display: flex;
    justify-content: center;
    cursor: grab;
    position: sticky;
    top: 0;
    z-index: 3;
    background: #fff;
}

.sheet-drag-handle:active {
    cursor: grabbing;
}

.handle-bar {
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
}

/* Sheet Header */
.sheet-header {
    padding: 0 16px 12px;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
    position: sticky;
    top: 23px;
    z-index: 2;
}

.sheet-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.sheet-title {
    font-size: 18px;
    font-weight: 700;
    color: #2d3436;
    margin: 0;
    line-height: 1.3;
}

.sheet-copy-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    opacity: 1;
    display: flex;
    align-items: center;
}

.sheet-copy-btn:hover {
    opacity: 0.7;
}

.sheet-close-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    margin-left: auto;
    opacity: 0.6;
    display: flex;
    align-items: center;
}

.sheet-close-btn:hover {
    opacity: 1;
}

.sheet-actions {
    display: flex;
    gap: 10px;
}

.sheet-icon-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    opacity: 0.6;
}

.sheet-icon-btn:hover {
    opacity: 1;
}

.sheet-sub-name {
    display: none;
}

.sheet-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    flex-wrap: wrap;
}

.sheet-rating {
    color: #2d3436;
}

.sheet-stars {
    display: flex;
    gap: 2px;
}

.sheet-rating-count {
    color: #b2bec3;
}

.sheet-dot {
    color: #ddd;
}

/* Sheet Peek Content (Half state) */
.sheet-peek-content {
    padding: 12px 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.sheet-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
}

.sheet-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.sheet-section-label {
    font-size: 11px;
    color: #b2bec3;
}

.sheet-section-link {
    border: none;
    background: transparent;
    padding: 0;
    font-size: 11px;
    color: #636e72;
    cursor: pointer;
}

.sheet-section.sheet-section-clickable {
    cursor: pointer;
}

.sheet-friend-avatars {
    display: flex;
}

.f-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -6px;
}

.f-avatar:first-child {
    margin-left: 0;
}

/* My Rating Section */
.sheet-my-rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.my-rating-left {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
}

.my-score {
    font-size: 24px;
    /* font-weight: 900; */
}

.my-score.empty {
    font-size: 12px;
    color: #9aa0a6;
    font-weight: 500;
}

.my-contribution {
    flex: 1;
}

.contrib-grid {
    display: grid;
    grid-template-columns: repeat(12, 8px);
    grid-gap: 2px;
}

.contrib-dot {
    width: 8px;
    height: 8px;
    background: #eee;
    border-radius: 2px;
}

.contrib-dot.active {
    background: #4cd137;
}

.sheet-checkin-btn {
    background: #2d3436;
    color: white;
    border: none;
    border-radius: 12px;
    width: 84px;
    padding: 8px 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    margin-left: auto;
    flex-shrink: 0;
}

.checkin-count {
    display: block;
    width: 100%;
    font-size: 10px;
    opacity: 0.7;
    text-align: center;
    white-space: nowrap;
}

.checkin-label {
    font-size: 12px;
    font-weight: 700;
}

.sheet-social-btns-inline {
    margin-left: auto;
    margin-right: 4px;
    gap: 8px;
}

/* Friend Rating Section */
.sheet-friend-rating {
    overflow: hidden;
    min-height: 34px;
}

.sheet-friend-rating-frame {
    height: 34px;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
}

.friend-score {
    font-size: 22px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.friend-score-mogu {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

.friend-comment-carousel-track {
    display: flex;
    flex-direction: column;
    transform: translateY(0);
    transition: transform 0.34s ease;
}

.friend-comment-item {
    min-width: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    font-size: 11px;
    color: #636e72;
    line-height: 1.55;
    word-break: break-word;
    cursor: default;
}

.sheet-social-btns {
    display: flex;
    gap: 10px;
}

.social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    padding: 2px 3px;
    min-width: 44px;
}

.social-btn span {
    font-size: 11px;
    color: #636e72;
    line-height: 1;
    font-weight: 700;
}

.sheet-friend-empty {
    color: #9aa0a6;
    font-size: 12px;
}

.social-avatar-row {
    display: flex;
    justify-content: center;
    min-height: 16px;
}

.social-avatar-row img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -6px;
    object-fit: cover;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.social-avatar-row img:first-child {
    margin-left: 0;
}

.social-icon-img {
    width: auto;
    height: 34px;
    max-width: 34px;
    max-height: 34px;
    display: block;
    image-rendering: -webkit-optimize-contrast;
}

/* Sheet Photos */
.sheet-photos {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
}

.sheet-photos::-webkit-scrollbar {
    display: none;
}

.sheet-photos img {
    width: 170px;
    height: 170px;
    object-fit: cover;
    border-radius: 14px;
    flex-shrink: 0;
}

/* Sheet Full Content (Full state) */
.sheet-full-content {
    padding: 16px;
    display: none;
}

.map-sheet.full .sheet-full-content {
    display: block;
}

.map-sheet.half .sheet-full-content {
    display: block;
}

.map-review-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: 448px;
    height: var(--app-height);
    margin: 0 auto;
    background: #fff;
    z-index: 1250;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    pointer-events: none;
    box-shadow: -12px 0 28px rgba(0, 0, 0, 0.12);
}

.map-review-overlay.is-open {
    transform: translateX(0);
    pointer-events: auto;
}

.map-review-overlay-header {
    padding: 20px 16px 12px;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1;
}

.map-review-overlay-back {
    border: none;
    background: transparent;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2d3436;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.map-review-overlay-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 16px 18px;
}

.map-review-overlay-list .review-card:first-child {
    margin-top: 4px;
}

.sheet-subpage-empty {
    padding: 44px 8px;
    text-align: center;
    color: #b2bec3;
    font-size: 13px;
}

.sheet-info-block {
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #2d3436;
}

.info-label {
    color: #999;
    flex-shrink: 0;
}

.info-address {
    flex: 1;
    line-height: 1.5;
}

.btn-more-info {
    width: 100%;
    padding: 12px;
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    font-size: 14px;
    color: #999;
    cursor: pointer;
    margin-top: 12px;
}

/* Sheet Tabs */
.sheet-tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 16px;
    position: sticky;
    top: 86px;
    z-index: 1;
    background: #fff;
    padding-top: 4px;
}

.sheet-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-size: 14px;
    color: #999;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.sheet-tab.active {
    color: #117fcf;
    border-bottom-color: #117fcf;
}

.sheet-tab-content {
    min-height: 200px;
}

.map-sheet.full .sheet-tab-content {
    max-height: none;
    overflow: visible;
}

.map-sheet.full .reviews-list {
    max-height: none;
    overflow: visible;
}

/* Review Summary */
.review-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 16px;
}

.visit-ranking {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.visit-ranking:empty {
    display: none;
}

.visit-ranking-title {
    font-size: 12px;
    color: #636e72;
    margin-bottom: 8px;
    font-weight: 500;
}

.visit-rank-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 13px;
    color: #2d3436;
}

.visit-rank-medal {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.visit-rank-medal-gold {
    background: #f5c518;
}

.visit-rank-medal-silver {
    background: #b0b7bd;
}

.visit-rank-medal-bronze {
    background: #cd7f32;
}

.visit-rank-name {
    font-weight: 500;
}

.visit-rank-count {
    color: #999;
    font-size: 11px;
}

.visit-rank-avg {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: #2d3436;
    margin-left: 2px;
}

.visit-rank-avg-icon {
    width: 13px;
    height: 13px;
}

.review-avg {
    font-size: 28px;
    font-weight: 900;
}

.review-stars {
    display: flex;
    gap: 2px;
}

.review-label {
    font-size: 12px;
    color: #999;
    margin-left: auto;
}

/* Review Cards */
.reviews-list {
    max-height: none;
    overflow: visible;
}

.sheet-list-placeholder {
    min-height: 126px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0 18px;
    color: #c2c7cf;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.review-card {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.review-avatar.is-clickable,
.review-user-info.is-clickable {
    cursor: pointer;
}

.review-user-info {
    flex: 1;
}

.review-username {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 13px;
}

.review-friend-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 15px;
    padding: 0 5px;
    border-radius: 4px;
    background: #e5e7eb;
    color: #727780;
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    flex-shrink: 0;
}

.review-user-meta {
    font-size: 11px;
    color: #999;
}

.review-delete-btn {
    border: 1px solid #e3e7ee;
    background: #fff;
    color: #6f7b89;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 11px;
    cursor: pointer;
}

.review-edit-btn {
    border: 1px solid #e3e7ee;
    background: #fff;
    color: #6f7b89;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 11px;
    cursor: pointer;
}

.review-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.review-date {
    font-size: 11px;
    color: #b2bec3;
}

.review-text {
    font-size: 13px;
    line-height: 1.6;
    color: #2d3436;
    white-space: pre-wrap;
    word-break: break-word;
    padding-bottom: 0;
}

.review-visit-count {
    margin-left: 4px;
    font-size: 11px;
    color: #999;
    font-weight: 400;
}

.review-budget {
    margin-left: 10px;
    font-size: 11px;
    color: #999;
    font-weight: 400;
}

.review-rating-row {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.2;
    color: #2d3436;
}

.expandable-review {
    margin-top: 0;
}

.expandable-review-text.is-collapsed {
    display: -webkit-box;
    -webkit-line-clamp: var(--review-lines, 3);
    line-clamp: var(--review-lines, 3);
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.expandable-review-text.is-expanded {
    display: block;
}

.expandable-review-toggle {
    margin-top: -2px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1776d6;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    cursor: pointer;
}

.review-images {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.review-group {
    display: flex;
    flex-direction: column;
}

.review-group-more {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.review-group-more-inner {
    padding-top: 4px;
}

.review-group-expand-row,
.review-group-foot-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 2px 0 4px;
    border-bottom: 1px solid #f0f0f0;
}

.review-group.is-expanded .review-group-expand-row {
    display: none;
}

.review-group:not(.is-expanded)>.review-card {
    border-bottom: none;
}

.review-group-more-inner>.review-card:has(+ .review-group-foot-row) {
    border-bottom: none;
}

.review-group-btn {
    border: none;
    background: transparent;
    color: #1776d6;
    font-family: inherit;
    font-size: 12px;
    font-weight: 400;
    padding: 4px 12px;
    cursor: pointer;
    border-radius: 999px;
}

.review-group-btn:hover {
    background: rgba(31, 143, 255, 0.1);
}

.review-group-view-all {
    color: #2d3436;
}

.review-images img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    background: #eee;
}

/* Album Grid */
.album-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.sheet-list-placeholder-photos {
    grid-column: 1 / -1;
    min-height: 168px;
}

.album-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: #eee;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Map Card Header */
.mp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.mp-title {
    font-size: 18px;
    font-weight: 900;
    color: #2d3436;
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.mp-actions {
    display: flex;
    gap: 12px;
}

.mp-icon-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mp-icon-btn img {
    width: 24px;
    height: 24px;
    opacity: 0.7;
}

/* Walk Time Text */
.mp-walk-text {
    font-size: 13px;
    color: #2d3436;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Map Sub Row */
.mp-sub-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #636e72;
    margin-bottom: 16px;
}

.mp-rating {
    color: #2d3436;
    font-weight: 700;
}

.mp-route-btn {
    /* margin-left: auto; */
    margin-left: 5px;
    background: #1776d6;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    /* font-weight: 700; */
    display: flex;
    align-items: center;
    gap: 4px;
    /* box-shadow: 0 2px 5px rgba(108, 92, 231, 0.3); */
}

/* Map Section Box */
.mp-section-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* My Rating */
.mp-my-rating-left {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.mp-big-score {
    font-size: 24px;
    font-weight: 900;
    color: #2d3436;
}

.mp-contribution-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 2px;
    margin: 0 10px;
}

.mp-grid-dot {
    width: 6px;
    height: 6px;
    background: #dfe6e9;
    border-radius: 1px;
}

.mp-grid-dot.fill {
    background: #00b894;
}

/* Check-in Button */
.mp-checkin-btn {
    background: #2d3436;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(45, 52, 54, 0.3);
    transition: transform 0.1s;
}

.mp-checkin-btn:active {
    transform: scale(0.95);
}

.mp-checkin-count {
    font-size: 8px;
    opacity: 0.8;
    margin-bottom: 2px;
}

.mp-checkin-label {
    font-size: 10px;
    font-weight: 700;
}

/* Social Group */
.mp-social-group {
    display: flex;
    gap: 16px;
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid #eee;
}

.mp-social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    color: #636e72;
}

.mp-social-item img {
    width: 20px;
    height: 20px;
    transition: transform 0.2s;
}

.mp-social-item span {
    font-size: 10px;
    font-weight: 500;
}

/* Active States */
.mp-active-like span {
    color: #;
    font-weight: 700;
}

.mp-active-dislike span {
    color: #74b9ff;
    font-weight: 700;
}

.mp-active-fav span {
    color: #fdcb6e;
    font-weight: 700;
}

/* Friend Avatars */
.mp-friend-avatars {
    display: flex;
    margin-left: 8px;
}

.mp-f-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -8px;
    background: #ccc;
    object-fit: cover;
}

.mp-comment-preview {
    font-size: 10px;
    color: #636e72;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

/* Photo Scroll */
.mp-photo-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-top: 12px;
}

.mp-photo-scroll::-webkit-scrollbar {
    display: none;
}

.mp-photo-item {
    width: 170px;
    height: 170px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
    background: #eee;
}

/* Map Pin */
.map-pin {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
    position: absolute;
}

.map-pin:active {
    transform: scale(0.9);
}

.map-pin img,
.map-pin svg {
    width: 26px;
    height: 26px;
    display: block;
    flex: 0 0 26px;
    image-rendering: auto;
    shape-rendering: geometricPrecision;
    text-rendering: geometricPrecision;
    transform-origin: center;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.16));
}

.map-pin svg {
    overflow: visible;
}

/* 紧凑模式：缩放较小时把图标变成带白色描边的小圆点（类似 Google Maps） */
.map-pin.is-dot {
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
}

.map-pin.is-dot img,
.map-pin.is-dot svg {
    display: none !important;
}

.map-pin.is-dot::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #FF6666;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.map-pin.is-dot.pin-default::before { background: #FF6666; }
.map-pin.is-dot.pin-default-low::before { background: #FFA449; }
.map-pin.is-dot.pin-like::before { background: #FF6ECB; }
.map-pin.is-dot.pin-dislike::before { background: #4099FF; }
.map-pin.is-dot.pin-fav::before { background: #D3E32C; }

/* iOS 添加到桌面引导弹窗 */
.install-ios-guide {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.install-ios-guide.hidden {
    display: none;
}

.install-ios-guide-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px 22px 18px;
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

.install-ios-guide-title {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    text-align: center;
}

.install-ios-guide-step {
    font-size: 14px;
    color: #2d3436;
    line-height: 1.55;
    display: flex;
    align-items: center;
    gap: 8px;
}

.install-ios-step-num {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1f8fff;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.install-ios-guide-close {
    margin-top: 6px;
    background: #1f8fff;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* 内嵌浏览器（微信等）登录提示横幅 */
.inapp-browser-notice {
    margin: 16px 20px 0;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff7e0;
    border: 1px solid #ffd680;
    color: #5a3b00;
    font-size: 13px;
    line-height: 1.55;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inapp-browser-notice.hidden {
    display: none;
}

.inapp-browser-notice-text {
    font-weight: 600;
}

.inapp-browser-notice-url {
    font-size: 12px;
    color: #8a5a00;
    word-break: break-all;
    background: rgba(255, 255, 255, 0.7);
    padding: 6px 8px;
    border-radius: 8px;
    user-select: all;
    -webkit-user-select: all;
}

.inapp-browser-notice-btn {
    align-self: flex-start;
    background: #1f8fff;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

/* 选中店铺的红色定位图标（独立于 SimpleMarker，置于 floatPane 顶层） */
.map-pin-selected-overlay {
    position: absolute;
    pointer-events: none;
    width: 28px;
    height: 40px;
    z-index: 999999999;
}

.map-pin-selected-overlay svg {
    display: block;
    width: 28px;
    height: 40px;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.32));
}

/* =========================================
   10. Favorites Tab Styles
   ========================================= */
.fav-tabs-wrapper {
    border-bottom: 1px solid #cfcfcf;
    padding: 16px;
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f4f4f4;
}

.fav-tabs-row {
    display: flex;
    gap: 12px;
}

.fav-tab-btn {
    flex: 1;
    border: 0.5px solid #cfcfcf;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 1px 0;
    font-size: 13px;
    cursor: pointer;
    background: #d9d9d9;
    color: #000;
}

/* Tab Active States */
.fav-tab-btn.active-want {
    background: #e5f795;
    border: 1.5px solid #b9a930;
    color: #2d3436;
}

.fav-tab-btn.active-like {
    background: #ffe1f0;
    color: #2d3436;
    border: 1.5px solid #ff80ab;
}

.fav-tab-btn.active-dislike {
    background: #e3f2fd;
    color: #2d3436;
    border: 1.5px solid #64b5f6;
}

.fav-tab-btn img,
.fav-tab-btn i {
    opacity: 0.6;
}

.fav-tab-btn.active-want img,
.fav-tab-btn.active-want i {
    opacity: 1;
    color: #2d3436;
}

.fav-tab-btn.active-like img,
.fav-tab-btn.active-like i {
    opacity: 1;
    color: white;
}

.fav-tab-btn.active-dislike img,
.fav-tab-btn.active-dislike i {
    opacity: 1;
    color: white;
}

/* =========================================
   11. FAB Dice Button & Random Panel
   ========================================= */
.fab-dice-btn {
    position: fixed;
    right: calc(50% - 224px + 20px);
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    border: none;
    z-index: 90;
    cursor: pointer;
    transition: transform 0.2s;
}

.fab-dice-btn {
    bottom: 120px;
}

.fab-dice-btn.loc-modal-hidden {
    opacity: 0;
    pointer-events: none;
}

.fab-dice-icon {
    font-size: 29px;
    line-height: 1;
    transform: translateY(-2px);
}

/* For mobile screens smaller than 448px */
@media (max-width: 448px) {

    .fab-dice-btn {
        right: 20px;
    }
}

.fab-dice-btn:active {
    transform: scale(0.9);
}

.fab-dice-text {
    font-size: 10px;
    color: #2d3436;
    margin-top: 0;
}

/* =========================================
   11.5 Record Page
   ========================================= */
.record-page {
    padding: 0 14px 90px;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.record-year-row {
    margin-bottom: 8px;
    position: sticky;
    top: 0;
    z-index: 6;
    background: #f4f4f4;
    padding: 15px 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.record-year-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.record-year-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e3e7ee;
    color: #6f7b89;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.record-year-arrow:disabled {
    opacity: 0.4;
    cursor: default;
}

.record-year-display {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
}

.record-jump-btn {
    border: 1px solid #e3e7ee;
    border-radius: 999px;
    background: #ffffff;
    color: #6f7b89;
    font-size: 11px;
    padding: 3px 10px;
    white-space: nowrap;
    cursor: pointer;
}

.record-year-select {
    border: none;
    background: transparent;
    font-size: 26px;
    font-weight: 800;
    color: #1a1a1a;
    display: none;
}

.record-year-select option {
    font-size: 16px;
    font-weight: 500;
}

.record-calendar-wrap {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.record-page.record-page-guest {
    min-height: calc(100vh - 70px);
    padding-top: 0;
}

.record-calendar-wrap.record-auth-wrap {
    min-height: calc(100vh - 70px - 90px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.record-month-block {
    background: transparent;
    scroll-margin-top: 64px;
}

.record-month-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid #d9d9d9;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.record-month-head h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 500;
}

.record-month-head div {
    font-size: 11px;
    color: #404040;
}

.record-month-head b {
    color: #d9158f;
    font-size: 20px;
    margin-left: 4px;
}

.record-week-head {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    font-size: 11px;
    color: #2d2d2d;
    margin-bottom: 4px;
}

.record-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.record-day-cell {
    border: none;
    background: transparent;
    padding: 0;
    text-align: left;
    min-height: 84px;
}

.record-day-cell.empty {
    min-height: 84px;
}

.record-day-cell.is-today .record-day-thumb {
    outline: 2px solid #4a90e2;
    outline-offset: -2px;
}

.record-day-cell.is-today .record-day-meta span:first-child {
    color: #4a90e2;
    font-weight: 800;
}

.record-day-thumb {
    position: relative;
    height: 66px;
    background: #e9eaec;
    border-radius: 0;
    overflow: hidden;
}

.record-day-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.record-day-count-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #6e7278;
    font-size: 9px;
    line-height: 16px;
    text-align: center;
    font-weight: 500;
}

.record-day-cell.is-today .record-day-count-badge {
    background: #4a90e2;
    color: #fff;
}

.record-day-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 2px;
    font-size: 10px;
    color: #181818;
}

.record-day-cost {
    color: #d9158f;
}

.record-empty {
    text-align: center;
    color: #a9a9a9;
    padding: 30px 10px;
}

.record-day-view {
    position: absolute;
    inset: 0;
    background: #f4f4f4;
    z-index: 12;
    overflow-y: auto;
    padding-bottom: 90px;
    transform: translateX(100%);
    transition: transform 0.26s ease;
    will-change: transform;
}

.record-day-view.is-open {
    transform: translateX(0);
}

#view-fav .record-page {
    transform: translateX(0);
    transition: transform 0.26s ease;
    will-change: transform;
}

#view-fav.record-day-active .record-page {
    transform: translateX(-100%);
}

.record-day-header {
    position: sticky;
    top: 0;
    background: #f4f4f4;
    padding: 20px 16px 10px;
    z-index: 2;
}

.record-day-back {
    border: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    color: #1d1d1d;
}

.record-day-list {
    padding: 0 16px;
}

.record-day-card {
    background: #fff;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 14px;
    border: 2px solid #eee;
}

.record-day-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.record-day-time {
    font-size: 10px;
    color: #b2bec3;
    font-weight: 500;
}

.record-day-store {
    margin-top: 2px;
    font-size: 14px;
    font-weight: 700;
    color: #2d3436;
    cursor: pointer;
}

.record-day-store span {
    font-size: 11px;
    color: #b2bec3;
    font-weight: 400;
}

.record-day-rating {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.record-day-rating>span {
    font-size: 15px;
    font-weight: 800;
    color: #2d3436;
}

.record-day-rating em {
    margin-left: auto;
    font-style: normal;
    color: #d9158f;
    font-size: 11px;
}

.record-day-mogu {
    display: flex;
    align-items: center;
    gap: 2px;
}

.record-day-review {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.6;
    color: #636e72;
    white-space: pre-wrap;
    word-break: break-word;
}

.record-day-photos {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    margin-top: 10px;
}

.record-day-photos::-webkit-scrollbar {
    display: none;
}

.record-photo-item {
    width: 70px;
    height: 70px;
    position: relative;
    flex-shrink: 0;
}

.record-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.record-main-badge {
    position: absolute;
    left: 4px;
    top: 4px;
    background: rgba(0, 0, 0, 0.68);
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    padding: 3px 8px;
    display: inline-flex;
    gap: 4px;
    align-items: center;
    z-index: 1;
}

/* Random Panel Layer - Bottom Sheet Style */
.random-panel-layer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 448px;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: none;
    backdrop-filter: blur(2px);
}

.random-panel-layer.open {
    display: block;
}

.random-card-body {
    background: white;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 78vh;
    border-radius: 24px 24px 0 0;
    padding: 20px 20px 40px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUpSheet 0.3s ease-out;
    overflow-y: auto;
}

@keyframes slideUpSheet {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes slideDownSheet {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(100%);
    }
}

.random-panel-layer {
    transition: background 0.22s ease, backdrop-filter 0.22s ease;
}

.random-panel-layer.closing {
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0);
}

.random-panel-layer.closing .random-card-body {
    animation: slideDownSheet 0.22s ease-in forwards;
}

/* Random Question Box */
.random-question-box {
    width: 100%;
    height: 160px;
    background: #f9f9f9;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #eee;
    margin-bottom: 20px;
}

.big-question-mark {
    font-size: 80px;
    color: #dfe6e9;
    font-weight: 900;
    line-height: 1;
}

.random-empty-inline {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 0 16px;
    text-align: center;
}

.random-pool-hint {
    font-size: 13px;
    color: #2d3436;
    line-height: 1.5;
}

.random-pool-hint.random-pool-empty {
    color: #636e72;
}

.random-pool-count {
    color: #ff6fa3;
    font-weight: 700;
    margin: 0 3px;
}

/* Random Result Container */
.random-result-container {
    width: 100%;
    margin-bottom: 20px;
}

/* Random Filter Trigger Button */
.rf-wrap {
    position: relative;
    margin-bottom: 10px;
}

.rf-trigger-btn {
    background: #e0ffe1;
    border: 1px solid #40de75;
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    color: #111;
    line-height: 1.2;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: fit-content;
    max-width: calc(100% - 24px);
    margin: 0 auto;
}

/* Random Filter Panel */
.rf-panel {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: min(412px, calc(100vw - 36px));
    bottom: calc(env(safe-area-inset-bottom, 0px) + 160px);
    background: #f3f4f6;
    border: 1px solid #9c9c9c;
    border-radius: 18px;
    /* padding: 8px; */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    display: none;
    z-index: 10;
    max-height: min(360px, 52vh);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.rf-panel-inner {
    background: #fff;
    /* border: 1px solid #a9b0b9; */
    border-radius: 16px;
    padding: 10px 15px;
}

.rf-section {
    margin-bottom: 4px;
}

.rf-label {
    font-size: 12px;
    color: #2d3436;
    margin-bottom: 6px;
}

.rf-hint {
    font-size: 10px;
    color: #999;
    margin-left: 4px;
}

.rf-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.rf-pill {
    padding: 4px 10px;
    border: 1px solid #ddd;
    border-radius: 100px;
    font-size: 11px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    background: white;
    transition: all 0.2s;
}

.rf-pill:hover {
    border-color: #999;
}

.rf-pill.selected {
    /* border-color: #2d3436; */
    background: #000;
    color: #fff;
}

.rf-pill.selected.want {
    background: #e5f795;
    border-color: #b9a930;
    color: #2d3436;
}

.rf-pill.selected.like {
    background: #ffe1f0;
    border-color: #ff80ab;
    color: #2d3436;
}

.rf-pill.selected.dislike {
    background: #e3f2fd;
    border-color: #64b5f6;
    color: #2d3436;
}

.rf-pill.selected.distance {
    background-color: #e0ffe1;
    border: 1px solid #40de75;
    color: #2d3436;
}

.rf-input {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 100px;
    font-size: 11px;
    width: 74px;
    outline: none;
    color: #666;
}

.rf-input::placeholder {
    color: #bbb;
}

.rf-checkbox {
    display: flex;
    align-items: center;
    /* gap: 6px; */
    font-size: 11px;
    color: #666;
    cursor: pointer;
}

.rf-simple-wrap {
    display: flex;
    justify-content: center;
    margin: 12px 0;
}

.random-walk-filter {
    gap: 6px;
    font-size: 13px;
    color: #2d3436;
}

.rf-minute-input {
    width: 42px;
    height: 28px;
    padding: 4px 6px;
    border: 1px solid #dfe6e9;
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
    color: #2d3436;
    text-align: center;
    outline: none;
    appearance: textfield;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

.rf-minute-input:focus {
    border-color: #1d74d7;
}

.rf-minute-input::-webkit-outer-spin-button,
.rf-minute-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* .rf-checkbox input {
    width: 14px;
    height: 14px;
} */

.rf-btn {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    cursor: pointer;
    border: none;
}

.rf-btn.cancel {
    background: white;
    color: #666;
    border: 1px solid #ddd;
}

.rf-btn.save {
    background: #2d3436;
    color: white;
}


/* Random Filter Popup */
.random-filter-popup {
    position: absolute;
    bottom: 110%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 10;
    border: 1px solid #eee;
}

.random-filter-popup.active {
    display: block;
}

/* Random Main Button */
.btn-random-main {
    background: #1d74d7;
    color: white;
    width: min(500px, 50%);
    margin: 0 auto;
    padding: 12px 18px;
    border-radius: 100px;
    border: none;
    font-size: 20px;
    /* font-weight: 800; */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3); */
    cursor: pointer;
    transition: background 0.2s;
}

.btn-random-main:active {
    transform: scale(0.98);
}

/* =========================================
   12. Full Detail Overlay
   ========================================= */
.full-detail-overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 448px;
    background: white;
    z-index: 999;
    display: none;
    flex-direction: column;
    overflow-y: auto;
    padding-bottom: 50px;
}

.full-detail-overlay.open {
    display: flex;
    animation: slideUpDetail 0.3s ease-out;
}

.full-detail-overlay.half {
    top: auto;
    bottom: 0;
    height: 62vh;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.15);
}

.full-detail-overlay.half .fd-content {
    padding-bottom: 24px;
}

.fd-sheet-handle-wrap {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 8px 0 4px;
    cursor: pointer;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 30;
}

.full-detail-overlay.half .fd-sheet-handle-wrap {
    display: flex;
}

.fd-sheet-handle {
    width: 46px;
    height: 5px;
    border-radius: 999px;
    background: #d0d3d8;
}

@keyframes slideUpDetail {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Detail Header */
.fd-header {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    position: sticky;
    top: 0;
    z-index: 20;
}

.full-detail-overlay.half .fd-header {
    top: 17px;
}

.fd-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.fd-name-big {
    font-size: 20px;
    /* font-weight: 900; */
    margin: 0;
}

.fd-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #888888;
    margin-bottom: 16px;
}

.pink-stars {
    display: flex;
    gap: 2px;
}

/* Detail Section Card */
.fd-section-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fd-score-big {
    font-size: 30px;
    /* font-weight: 900; */
    line-height: 1;
}

/* Contribution Grid */
.fd-contribution-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 3px;
    margin: 0 12px;
}

.fd-dot {
    width: 7px;
    height: 7px;
    background: #ebedf0;
    border-radius: 1px;
}

.fd-dot.v1 {
    background: #9be9a8;
}

.fd-dot.v2 {
    background: #40c463;
}

.fd-dot.v3 {
    background: #216e39;
}

/* Check-in Button Square */
.fd-checkin-btn-square {
    background: #2d3436;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: none;
    flex-shrink: 0;
}

.fd-checkin-btn-square span {
    font-size: 9px;
    opacity: 0.7;
    margin-bottom: 2px;
}

.fd-checkin-btn-square b {
    font-size: 13px;
}

/* Social Actions */
.fd-social-actions {
    display: flex;
    gap: 20px;
    padding-left: 15px;
    border-left: 1px solid #eee;
}

.fd-social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #636e72;
    font-size: 11px;
    font-weight: 700;
}

/* Detail Tabs */
.fd-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-top: 20px;
}

.fd-tab-item {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-size: 14px;
    color: #b2bec3;
    cursor: pointer;
}

.fd-tab-item.active {
    color: #2d3436;
    border-bottom: 2px solid #2d3436;
}

/* Review Card */
.fd-rev-card {
    padding: 16px 0;
    border-bottom: 1px solid #f1f1f1;
}

.fd-rev-user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.fd-rev-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eee;
}

/* =========================================
   Profile Page - New Design
   ========================================= */

/* Profile Header */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 0;
}

.profile-header-left,
.profile-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-header-left {
    position: relative;
    z-index: 200;
}

.profile-menu-btn,
.profile-friends-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #2d3436;
    display: flex;
    align-items: center;
}

.profile-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: none;
    background: none;
    padding: 4px 2px;
    cursor: pointer;
    color: #2d3436;
    font-size: 13px;
}

.profile-friends-btn {
    position: relative;
    gap: 3px;
    padding: 4px 2px;
}

.profile-friends-dot {
    position: absolute;
    top: -2px;
    right: -4px;
    min-width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #ff5b5b;
    color: #fff;
    font-size: 9px;
    line-height: 14px;
    text-align: center;
    padding: 0 4px;
    box-sizing: border-box;
}

.profile-friends-count {
    font-size: 16px;
    font-weight: 700;
    color: #2d3436;
}

.profile-friends-label {
    font-size: 13px;
    color: #2d3436;
    line-height: 1;
}

.profile-menu-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 10050;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0s linear 0.28s;
}

.profile-menu-overlay.open {
    visibility: visible;
    pointer-events: auto;
    transition: visibility 0s linear 0s;
}

.profile-menu-sheet {
    width: 280px;
    height: 100%;
    background: #ffffff;
    box-shadow: 18px 0 42px rgba(15, 23, 42, 0.14);
    padding: calc(18px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
    box-sizing: border-box;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow-y: auto;
}

.profile-menu-overlay.open .profile-menu-sheet {
    transform: translateX(0);
}

/* 打开侧栏时，整个页面（个人页 + 底部导航）一起向右平移露出菜单 */
body.profile-menu-active #view-profile,
body.profile-menu-active .nav-bar {
    transform: translateX(280px);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

#view-profile,
.nav-bar {
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.profile-menu-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 2px 0;
}

.profile-menu-sheet-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.profile-menu-close-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 999px;
    background: #f3f4f6;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.profile-menu-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-menu-item {
    width: 100%;
    border: 1px solid #eef0f3;
    background: #ffffff;
    text-align: left;
    padding: 14px;
    border-radius: 18px;
    font-size: 13px;
    color: #2d3436;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: none;
    transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.profile-menu-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #f6f7f8;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.profile-menu-item-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 auto;
}

.profile-menu-item-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.profile-menu-item-subtitle {
    font-size: 12px;
    line-height: 1.4;
    color: #6b7280;
}

.profile-menu-item-badge {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 5px 8px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 10px;
    font-weight: 700;
}

.profile-menu-item:hover {
    background: #fafafa;
    border-color: #e5e7eb;
}

.profile-menu-item.is-unavailable {
    background: #f8f9fa;
    border-color: #eceff3;
    color: #98a1ab;
    cursor: default;
}

.profile-menu-item.is-unavailable .profile-menu-item-icon {
    background: #eef1f4;
    color: #98a1ab;
}

.profile-menu-item.is-unavailable .profile-menu-item-title {
    color: #98a1ab;
}

.profile-menu-item.is-unavailable .profile-menu-item-subtitle {
    color: #b0b7c0;
}

.profile-menu-item.is-unavailable .profile-menu-item-badge {
    background: #eef1f4;
    color: #98a1ab;
}

.profile-menu-item.is-unavailable:hover {
    background: #f8f9fa;
    border-color: #eceff3;
}

.profile-menu-item.is-unavailable:active {
    transform: none;
}

.profile-menu-item.danger {
    color: #e45454;
}

.profile-menu-item.danger .profile-menu-item-icon {
    background: #fff4f4;
    color: #d94848;
}

.profile-menu-item.danger .profile-menu-item-title {
    color: #d94848;
}

/* Profile User Info */
.profile-user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px 16px;
}

.profile-user-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.profile-username-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #eee;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-wrap {
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.profile-avatar-camera {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #2d3436;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Registration form */
.register-btn-bottom {
    margin-top: 60px;
}

.register-back-link {
    text-align: center;
    margin-top: 16px;
}

.register-back-link a {
    font-size: 13px;
    color: #636e72;
    text-decoration: none;
}

.register-back-link a:hover {
    color: #2d3436;
}

.profile-username {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #2d3436;
}

.profile-edit-name-btn {
    border: 1px solid #d8dbe0;
    background: #fff;
    color: #5f6670;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 11px;
    cursor: pointer;
}

.profile-friend-action-btn {
    border: none;
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    background: #0f61dc;
    color: #fff;
}

.profile-friend-action-btn.disabled {
    background: #d6d8dc;
    color: #808791;
    cursor: default;
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    position: relative;
    border-bottom: 1px solid #eee;
    margin: 0 24px;
}

.profile-tab {
    flex: 1;
    padding: 12px 0;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #b2bec3;
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.profile-tab.active {
    color: #2d3436;
    font-weight: 700;
}

.profile-tab-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 2px;
    background: #2d3436;
    transition: transform 0.3s ease;
}

/* Profile Tab Content */
.profile-tab-content {
    flex: 1;
    min-height: 0;
    padding: 0 0 80px 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.profile-activity-list {
    padding: 16px 20px;
}

/* Activity Card */
.activity-card {
    background: white;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 14px;
    border: 2px solid #eee;
    cursor: default;
}

.activity-card.today {
    border: 1px solid #ff6ec8;
}

.activity-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.activity-date {
    font-size: 11px;
    color: #b2bec3;
    margin-bottom: 6px;
    font-weight: 500;
}

.activity-store-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.activity-store-name {
    font-size: 15px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    cursor: pointer;
}

.activity-store-title {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-delete-btn {
    flex-shrink: 0;
}

.activity-visit-count {
    font-size: 12px;
    color: #b2bec3;
    font-weight: 400;
    flex: 0 0 auto;
    white-space: nowrap;
}

.activity-rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.activity-score {
    font-size: 16px;
    font-weight: 800;
    color: #2d3436;
}

.activity-stars {
    display: flex;
    gap: 2px;
}

.activity-stars img {
    width: 14px;
    height: 14px;
}

.activity-star-empty {
    opacity: 0.3;
}

.activity-emoji-star {
    font-size: 14px;
    line-height: 1;
}

.activity-review-text {
    font-size: 13px;
    color: #636e72;
    line-height: 1.6;
    margin-top: 6px;
    white-space: pre-wrap;
    word-break: break-word;
}

.activity-photos {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    overflow-x: auto;
}

.activity-photos::-webkit-scrollbar {
    display: none;
}

.activity-photo-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 4px;
    background: #f0f0f0;
    cursor: zoom-in;
}

#activity-image-modal {
    display: none;
    align-items: stretch;
    justify-content: center;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.72);
}

#activity-image-modal.open {
    display: flex;
}

.activity-image-modal-card {
    position: relative;
    width: min(100vw, 448px);
    height: 100vh;
    background: transparent;
    border-radius: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-image-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: auto;
    height: auto;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: none;
}

.activity-close-icon {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
    opacity: 0.96;
}

.activity-image-stage {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.activity-image-track {
    display: flex;
    width: 300%;
    height: 100%;
    margin-left: -100%;
    transform: translateX(0px);
    transition: transform 0.28s ease;
    will-change: transform;
}

.activity-image-panel {
    width: 33.3333%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    box-sizing: border-box;
    position: relative;
}

.activity-image-modal-img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 0;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    transform-origin: center center;
    transform: translateX(0px) scale(1);
    transition: transform 0.2s ease;
}

.activity-image-modal-img.is-zoomed {
    cursor: zoom-out;
}

.activity-image-modal-img.is-dragging {
    cursor: grabbing;
}

.activity-image-side-img {
    pointer-events: none;
}

.activity-image-tools {
    position: absolute;
    left: 20px;
    top: 20px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.activity-image-counter {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 3;
    min-width: 54px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.42);
    color: #fff;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    backdrop-filter: blur(8px);
}

.activity-set-main-btn {
    border: none;
    background: transparent;
    color: #fff;
    border-radius: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.activity-main-state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.activity-main-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* Profile Favorites Tabs
   复用 .fav-tabs-wrapper / .fav-tabs-row / .fav-tab-btn 的样式 */
.profile-fav-tabs-row {}

#profile-content-favorites {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 0;
}

#profile-fav-list {
    flex: 1;
    min-height: 0 !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 16px;
    padding-bottom: 8px;
    background: #f4f4f4;
}

#view-profile #user-info {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

#view-profile #guest-info {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Friends Page */
.friends-page {
    position: absolute;
    inset: 0;
    background: #f4f4f4;
    display: flex;
    flex-direction: column;
    z-index: 20;
    transform: translateX(-100%);
    transition: transform 0.26s ease;
    will-change: transform;
}

.friends-page.hidden {
    display: none;
}

.friends-page.enter-from-right {
    transform: translateX(100%);
}

.friends-page.is-open {
    transform: translateX(0);
}

/* 关闭好友页：从左往右滑出（回到右边的来路） */
.friends-page.exit-to-right {
    transform: translateX(100%);
}

#view-profile #user-info> :not(#friends-page) {
    transform: translateX(0);
    transition: transform 0.26s ease;
    will-change: transform;
}

/* 打开好友列表时，主页内容跟随好友列表一起整体向左滑动（同步过渡，类似记录页面打开每日页面） */
#view-profile.friends-page-pushing #user-info> :not(#friends-page) {
    transform: translateX(-100%);
}

/* 进入好友主页或从好友主页返回好友列表时，内容滑出/滑入右侧（覆盖 pushing） */
#view-profile.friends-page-active #user-info> :not(#friends-page) {
    transform: translateX(100%);
}

.friends-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 8px;
    background: #f4f4f4;
}

.friends-toolbar {
    padding: 0 16px 10px;
    background: #f4f4f4;
}

.friends-filter-input {
    width: 100%;
    height: 40px;
    border: 1px solid #e2e5ea;
    border-radius: 14px;
    background: #ffffff;
    padding: 0 14px;
    font-size: 14px;
    color: #2d3436;
}

.friends-filter-input::placeholder {
    color: #a0a7b4;
}

.friends-filter-input:focus {
    border-color: #b8c4d6;
}

.friends-title {
    font-size: 16px;
    font-weight: 700;
    color: #2d3436;
}

.friends-back-btn,
.friends-add-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    border: none;
    background: none;
    padding: 4px 6px;
    cursor: pointer;
    font-size: 13px;
}

.friends-back-btn span {
    color: #2d3436;
}

.friends-add-btn span {
    color: #0f61dc;
}

.friends-list {
    flex: 1;
    padding: 0 16px 16px;
    overflow-y: auto;
}

.friends-pending-list {
    margin: 0 16px 8px;
}

.friend-request-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #dfe1e5;
    border-radius: 999px;
    padding: 6px 8px;
    margin-bottom: 10px;
}

.friend-request-text {
    flex: 1;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    min-width: 0;
    font-size: 13px;
    color: #2d3436;
}

.friend-request-name {
    display: inline-block;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.friend-request-suffix {
    white-space: nowrap;
    flex-shrink: 0;
}

.friend-request-row .friend-btn {
    flex-shrink: 0;
}

.friend-request-row .friend-btn.secondary {
    background: #eceef1;
}

.friend-request-row .friend-btn.primary {
    background: #202427;
}

.friend-request-row .friend-btn.approve {
    background: #2f80ed;
}

.friend-request-text {
    overflow: hidden;
}

.friend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    margin-bottom: 10px;
}

.friend-main {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    min-width: 0;
    flex: 1;
}

.friend-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.friend-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.friend-name {
    font-size: 14px;
    font-weight: 600;
    color: #2d3436;
}

.friend-actions {
    display: flex;
    flex-direction: row;
    gap: 6px;
}

.friend-btn {
    border-radius: 999px;
    padding: 3px 12px;
    font-size: 11px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.friend-btn.primary {
    background: #2d3436;
    color: #fff;
}

.friend-btn.approve {
    background: #2f80ed;
}

.friend-btn.secondary {
    background: #f1f2f6;
    color: #2d3436;
}

.friend-badge {
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 11px;
    background: #dfe6e9;
    color: #636e72;
}

/* Friend Search Modal */
#friend-search-modal {
    display: none;
    align-items: center;
    justify-content: center;
}

#friend-search-modal.open {
    display: flex;
}

.friend-search-card {
    background: #feffff;
    width: 90%;
    max-width: 360px;
    border-radius: 16px;
    padding: 16px 16px 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.friend-search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.friend-search-back {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
}

.friend-search-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.friend-search-input {
    margin: 0;
    flex: 1;
    height: 38px;
    border: 1px solid #dfe4ea;
    border-radius: 7px;
    background: #f8f9fb;
    padding: 0 14px;
    font-size: 14px;
    color: #2d3436;
    outline: none;
}

.friend-search-input:focus {
    border-color: #0f61dc;
    /* background: #fff; */
    /* box-shadow: 0 0 0 2px rgba(15, 97, 220, 0.14); */
}

.friend-search-input::placeholder {
    color: #a0a8b3;
}

.friend-search-btn {
    border: none;
    border-radius: 12px;
    padding: 0 10px;
    font-size: 12px;
    background: #0f61dc;
    color: #fff;
    cursor: pointer;
}

.friend-search-btn-inside {
    position: static;
    transform: none;
    height: 30px;
    padding: 0 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.friend-search-results {
    max-height: 330px;
    overflow-y: auto;
    padding-right: 0;
}

.friend-search-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    margin-bottom: 10px;
    background: #f3f4f6;
    border-radius: 12px;
}

.friend-search-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.friend-search-item .friend-info {
    min-width: 0;
}

.friend-search-item .friend-name,
.friend-search-item .friend-email {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.friend-search-item .friend-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.friend-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 16px;
    padding: 0 5px;
    border-radius: 4px;
    font-size: 10px;
    line-height: 1;
    flex-shrink: 0;
}

.friend-tag-friend {
    background: #e9edf3;
    color: #5f6b7a;
}

.friend-search-item .friend-avatar {
    width: 36px;
    height: 36px;
}

.friend-search-item .friend-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
}

.friend-search-item .friend-actions .friend-btn {
    padding: 4px 12px;
}

.friend-search-item .friend-actions .friend-btn.disabled {
    cursor: default;
    opacity: 1;
}

.friend-search-more-wrap {
    text-align: center;
    margin-top: -2px;
    margin-bottom: 8px;
}

.friend-search-more {
    border: none;
    background: transparent;
    color: #2f80ed;
    font-size: 12px;
    padding: 4px 0;
    cursor: pointer;
}

.friend-badge-friend,
.friend-badge-pending {
    padding: 3px 10px;
    font-size: 11px;
    color: #8f949a;
    background: #d3d4d8;
}

@media (max-width: 768px) {
    .friend-search-input {
        height: 38px;
        font-size: 14px;
    }

    .friend-search-btn {
        font-size: 13px;
        padding: 0 10px;
    }

    .friend-search-btn-inside {
        height: 30px;
    }
}

/* --- Dual Range Slider --- */
.slider-container {
    position: relative;
    width: 100%;
    height: 46px;
    display: block;
}

.slider-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.slider-side-val {
    width: 26px;
    font-size: 14px;
    font-weight: 700;
    color: #2d3436;
    text-align: center;
    flex-shrink: 0;
}

.slider-track-shell {
    position: relative;
    flex: 1;
    min-width: 0;
    max-width: 220px;
    height: 28px;
    margin: 0 auto;
}

.slider-track-wrapper {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    height: 7px;
    z-index: 1;
}

.slider-track-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #dcdde1;
    border-radius: 8px;
    top: 0;
    left: 0;
    z-index: 1;
}

.slider-track-fill {
    position: absolute;
    height: 100%;
    background-color: #ff80ab;
    border-radius: 8px;
    top: 0;
    /* left and width set by JS */
    z-index: 2;
}

.range-input {
    position: absolute;
    width: 100%;
    height: 7px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    z-index: 3;
}

/* Chrome/Safari Thumb */
.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ff80ab;
    border: 2px solid #ff80ab;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 1px 3px rgba(255, 128, 171, 0.35);
    margin-top: -5px;
}

/* Firefox Thumb */
.range-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ff80ab;
    border: 2px solid #ff80ab;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 1px 3px rgba(255, 128, 171, 0.35);
}

/* =========================================
   Additional Info Card
   ========================================= */
.fd-info-card {
    /* background: #f8f9fa; */
    border-radius: 12px;
    /* padding: 16px; */
    margin-bottom: 20px;
}

.fd-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.fd-info-title {
    font-size: 14px;
    font-weight: 700;
    color: #2d3436;
}

.fd-report-closed {
    font-size: 11px;
    color: #ff7675;
    cursor: pointer;
    text-decoration: underline;
}

.fd-info-row {
    display: flex;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    color: #2d3436;
}

.fd-info-row:last-child {
    border-bottom: none;
}

.fd-info-label {
    width: 80px;
    color: #636e72;
    font-weight: 500;
    flex-shrink: 0;
}

.fd-info-content {
    flex: 1;
    line-height: 1.5;
    white-space: pre-line;
}

.fd-info-content.permanent-closed,
.info-content.permanent-closed,
#mp-open-time.permanent-closed {
    color: #d63031 !important;
    font-weight: 700;
}

.fd-del-btn {
    background: none;
    border: none;
    padding: 4px;
    color: #b2bec3;
    cursor: pointer;
    margin-left: 8px;
}

.fd-del-btn:hover {
    color: #ff7675;
}

/* Form Styles */
.fd-info-form {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #dfe6e9;
}

.fd-form-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
}

.fd-form-row label {
    width: 40px;
    color: #636e72;
}

.fd-input-sm {
    padding: 6px;
    border: 1px solid #dfe6e9;
    border-radius: 6px;
    background: white;
    font-size: 10px;
}

.fd-input-flex {
    flex: 1;
    padding: 6px;
    border: 1px solid #dfe6e9;
    border-radius: 6px;
    background: white;
    font-size: 12px;
}

.fd-add-btn {
    background: #2d3436;
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
}

/* =========================================
   Delete Modals & Toast
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-overlay.open {
    display: flex;
}

.modal-card {
    background: white;
    width: 80%;
    max-width: 320px;
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 8px;
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.btn-cancel {
    flex: 1;
    padding: 10px;
    border: 1px solid #eee;
    background: white;
    border-radius: 12px;
    color: #636e72;
    font-weight: 700;
}

.btn-delete {
    flex: 1;
    padding: 10px;
    border: none;
    background: #ff7675;
    /* Red */
    border-radius: 12px;
    color: white;
    font-weight: 700;
}

.toast-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.1);
}

.toast-card {
    background: white;
    padding: 24px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 300px;
}

/* =========================================
   Info Card Toggle Styles
   ========================================= */

/* Default View Mode */
.fd-info-card .fd-info-header {
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: space-between;
    /* margin-bottom: 12px; */
}

.fd-info-card .fd-del-btn {
    display: none;
    /* Hidden by default */
}

.fd-info-card .fd-info-form {
    display: none;
    /* Hidden by default */
}

.fd-show-more-btn {
    width: 100%;
    padding: 12px;
    background: #f1f2f6;
    border: none;
    border-radius: 12px;
    color: #636e72;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 12px;
    transition: background 0.2s;
}

.fd-show-more-btn:active {
    background: #dfe4ea;
}

.fd-edit-close-btn {
    border: none;
    background: none;
    padding: 4px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fd-edit-close-btn:hover {
    background: #f1f2f6;
}

/* Edit Mode */
.fd-info-card.edit-mode .fd-info-header {
    display: flex;
}

.fd-info-card.edit-mode .fd-del-btn {
    display: flex;
}

.fd-info-card.edit-mode .fd-info-form {
    display: block;
}

.fd-info-card.edit-mode .fd-show-more-btn {
    display: none;
}

/* --- 新版详情信息卡片样式 --- */
.info-group-card {
    background-color: #f4f6f8;
    /* 灰色背景 */
    border-radius: 16px;
    /* 圆角 */
    overflow: hidden;
    margin-bottom: 24px;
    margin-top: 10px;
}

.info-row-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 16px;
    border-bottom: 2px solid #ffffff;
    font-size: 14px;
    color: #2d3436;
}

.info-row-item.row-time {
    align-items: flex-start;
}

.info-label {
    width: 72px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 0;
    flex-shrink: 0;
    text-align: right;
}

.info-content {
    color: #636e72;
    line-height: 1.5;
    font-size: 13px;
    flex: 1;
    min-width: 0;
    white-space: pre-line;
}

#mp-open-time {
    white-space: pre-line;
}

.row-time .info-content {
    text-align: left;
    color: #2d3436;
    font-weight: 500;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
}

.hours-item {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: 10px;
    align-items: start;
}

.hours-day {
    color: #2d3436;
    font-weight: 500;
    white-space: nowrap;
}

.hours-times {
    min-width: 0;
}

.hours-times>div {
    white-space: nowrap;
    line-height: 1.5;
    margin: 0;
}

/* 底部“提供更多信息”按钮 */
.more-info-btn {
    text-align: center;
    padding: 14px;
    color: #b2bec3;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    background: #f4f6f8;
    transition: color 0.2s;
}

.more-info-btn:active {
    background: #e9ecef;
    color: #636e72;
}

.provide-info-card {
    width: min(calc(100vw - 48px), 360px);
    max-height: 86vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 10px;
    padding: 26px 18px 18px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.provide-info-head {
    display: flex;
    /* align-items: center; */
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.provide-info-title-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    flex: 1;
}

.provide-info-title {
    font-size: 24px;
    line-height: 1.15;
    font-weight: 800;
    color: #111;
}

.provide-info-report {
    border: none;
    background: transparent;
    color: #e45454;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 0;
    text-align: left;
}

.provide-info-close {
    border: none;
    background: #f4f4f4;
    width: 34px;
    height: 34px;
    border-radius: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.provide-info-list {
    background: transparent;
}

.provide-info-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-top: none;
    /* border-radius: 18px; */
    background: #f6f6f6;
    font-size: 14px;
    color: #1f1f1f;
    border-bottom: 1px solid #fff;
}

.provide-info-row .fd-info-label {
    width: 72px;
    color: #222;
    font-size: 14px;
}

.provide-info-row .fd-info-content {
    font-size: 14px;
    color: #2e2e2e;
}

.provide-info-row .fd-del-btn {
    margin-left: auto;
    padding: 4px;
}

.provide-info-row .fd-del-btn img {
    width: 20px;
    height: 20px;
    opacity: 0.65;
}

.provide-info-row .fd-del-btn.is-disabled {
    pointer-events: none;
}

.provide-info-row .fd-del-btn.is-disabled img {
    opacity: 0.28;
}

.provide-info-form {
    padding: 16px;
    background: #f6f6f6;
}

.provide-form-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.provide-form-row label {
    color: #1f1f1f;
    font-size: 14px;
    /* width: 72px; */
    font-weight: 500;
}

.provide-info-form .fd-input-sm,
.provide-info-form .fd-input-flex {
    border: 1px solid #ececec;
    border-radius: 14px;
    background: #fff;
}

.provide-form-row-stack {
    align-items: flex-start;
}

.provide-mode-box {
    margin-bottom: 12px;
}

.provide-hours-wrap {
    flex: 1;
}

.provide-hour-row {
    /* display: flex; */
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.provide-hour-row span {
    width: 62px;
    color: #222;
    font-size: 12px;
}

.provide-hour-input {
    flex: 1;
    border: 1px solid #ececec;
    background: #fff;
    height: 30px;
    padding: 0 12px;
    font-size: 12px;
    border-radius: 10px;
}

.provide-input-textarea {
    flex: 1;
    min-height: 120px;
    border: 1px solid #ececec;
    border-radius: 16px;
    padding: 12px;
    font-size: 12px;
    resize: vertical;
    background: #fff;
}

.provide-add-row {
    display: flex;
    justify-content: flex-end;
}

.provide-info-form .fd-add-btn {
    width: 30%;
    min-height: 30px;
    font-size: 12px;
}

.delete-confirm-card {
    width: min(calc(100vw - 40px), 420px);
    background: #ececec;
    border-radius: 20px;
    padding: 14px;
}

.delete-confirm-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.delete-confirm-icon {
    width: 22px;
    height: 22px;
    opacity: 0.55;
}

.delete-confirm-title {
    font-size: 14px;
    color: #151515;
}

.delete-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

.delete-confirm-actions.delete-confirm-actions-split {
    justify-content: space-between;
}

.delete-btn-cancel,
.delete-btn-confirm {
    border: none;
    border-radius: 999px;
    min-width: 68px;
    height: 30px;
    font-size: 13px;
    cursor: pointer;
}

.delete-btn-secondary {
    border: none;
    border-radius: 999px;
    min-width: 102px;
    height: 30px;
    font-size: 13px;
    cursor: pointer;
    background: #f0f2f5;
    color: #2d3436;
    font-weight: 600;
}

.delete-btn-cancel {
    background: #f5f5f5;
    color: #191919;
}

.delete-btn-confirm {
    background: #ff2020;
    color: #fff;
    font-weight: 700;
}

.delete-confirm-note {
    margin-top: 10px;
    text-align: right;
    font-size: 12px;
    color: #333;
}

.delete-review-modal-card {
    background: #fff;
    width: min(calc(100vw - 56px), 352px);
    border-radius: 24px;
    padding: 45px 18px 20px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.delete-review-modal-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 30px;
}

.delete-review-modal-icon-wrap {
    width: 66px;
    height: 66px;
    border-radius: 20px;
    background: #fff4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.delete-review-modal-icon {
    width: 32px;
    height: 32px;
}

.delete-review-modal-title {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
    color: #111;
}

.delete-review-modal-subtitle {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.45;
    color: #7a7a7a;
}

.delete-review-modal-desc {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.6;
    color: #7a7a7a;
}

.delete-review-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.delete-review-action {
    width: 100%;
    min-height: 40px;
    border-radius: 30px;
    border: 1.5px solid transparent;
    font-size: 15px;
    cursor: pointer;
}

.delete-review-action-danger {
    background: #f95555;
    color: #fff;
}

.delete-review-action-dark {
    background: #649fc7;
    color: #fff;
}

.delete-review-action-cancel {
    background: #f1f1f1;
    color: #222;
    border-color: transparent;
}

.app-notice-btn {
    min-width: 82px;
}

.app-feedback-toast {
    min-width: 180px;
    width: auto;
    padding: 18px 22px;
}

.post-success-card {
    width: min(calc(100vw - 112px), 360px);
    background: #f3f3f3;
    border-radius: 28px;
    padding: 26px 20px 22px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
    text-align: center;
}

.post-success-title {
    font-size: 28px;
    font-weight: 900;
    color: #000;
    line-height: 1.15;
}

.post-success-score {
    margin-top: 22px;
    font-size: 34px;
    font-weight: 900;
    color: #000;
    line-height: 1;
}

.post-success-stars {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.post-success-stars img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.post-success-store-row {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.post-success-new-badge {
    color: #39b95a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 4px;
}

.post-success-store-main {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
}

.post-success-store-name {
    font-size: 15px;
    font-weight: 800;
    color: #2d2d2d;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-success-store-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.post-success-visit-count {
    color: #b1b1b1;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.post-success-actions {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.post-success-btn {
    height: 44px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.post-success-btn.secondary {
    border: 2px solid #d1d1d1;
    background: #fff;
    color: #2e2e2e;
}

.post-success-btn.primary {
    border: none;
    background: linear-gradient(90deg, #cf6acb 0%, #d36bd0 100%);
    color: #fff;
}

/* 隐藏旧的样式元素（如果有干扰的话） */
.fd-info-row {
    border-bottom: none !important;
}

.edit-name-card {
    width: min(320px, calc(100vw - 44px));
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.edit-name-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e2327;
    margin-bottom: 10px;
}

.edit-name-input {
    width: 100%;
    height: 40px;
    border: 1px solid #d8dde3;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
}

.edit-name-input:focus {
    border-color: #0f61dc;
    box-shadow: 0 0 0 2px rgba(15, 97, 220, 0.12);
}

.edit-name-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.edit-name-btn {
    height: 30px;
    border: none;
    border-radius: 999px;
    font-size: 12px;
    padding: 0 14px;
    cursor: pointer;
}

.edit-name-btn.cancel {
    background: #eff1f4;
    color: #2d3436;
}

.edit-name-btn.save {
    background: #2d3436;
    color: #fff;
    font-weight: 700;
}
