:root {
    --bg: #FDF6EB;
    --bgCard: rgba(255, 255, 255, .85);
    --text: #ff6b35;
    --text-light: rgba(255, 107, 53, .15);
    --text-inverse: #333;
    --subtext: #666;
    --border: #e5e7eb;
    --radius: 12px;
    --shadow: 0 3px 10px rgba(0, 0, 0, .05);
}

@media (min-resolution: 2dppx), (-webkit-min-device-pixel-ratio: 2) {
    :root {
        --radius: 13px;
        --shadow: 0 4px 12px rgba(0, 0, 0, .06);
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1e1e1e;
        --bgCard: rgba(60, 60, 60, .85);
        --text: #ff8a65;
        --text-light: rgba(255, 138, 101, .2);
        --text-inverse: #e7e7eb;
        --subtext: #e7e7eb;
        --border: #374151;
        --shadow: 0 3px 10px rgba(0, 0, 0, .25);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

html {
    font-size: 14px;
}

@media (min-resolution: 2dppx), (-webkit-min-device-pixel-ratio: 2) {
    html {
        font-size: 15px;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    background-attachment: fixed;
    background-size: cover;
    min-height: 100vh;
    padding: 16px 10px;
    color: var(--text-inverse);
    padding-bottom: 90px;
    line-height: 1.5;
}
/* 免责声明 */
#disclaimerOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.disclaimer-card {
    background: var(--bgCard);
    border-radius: var(--radius);
    width: 320px;
    max-width: 90vw;
    max-height: 85vh;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.disclaimer-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    text-align: center;
}

.disclaimer-text-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    padding-right: 6px;
    margin-bottom: 12px;
}

.disclaimer-text {
    font-size: 13px;
    color: var(--subtext);
    line-height: 1.7;
    margin-bottom: 16px;
}

.disclaimer-text-scroll::-webkit-scrollbar {
    width: 5px;
}

.disclaimer-text-scroll::-webkit-scrollbar-thumb {
    background: var(--text);
    border-radius: 3px;
}

.disclaimer-btn {
    display: block;
    margin: 0 auto;
    padding: 8px 28px;
    border: none;
    border-radius: 20px;
    background: var(--text);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: background .3s;
}

.disclaimer-btn:hover {
    opacity: 0.9;
}

/* 头部 */
.header {
    text-align: center;
    margin-bottom: 24px;
    color: var(--text-inverse);
}

.main-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.sub-title {
    font-size: 14px;
    color: var(--subtext);
}

/* 分割线 */
.divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

/* 卡片容器 */
.cards-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.cards-wrapper {
    display: flex;
    width: 200%;
    transition: transform 0.4s cubic-bezier(.4, 0, .2, 1);
    align-items: flex-start;
}

.content-card {
    flex: 0 0 50%;
    background: var(--bgCard);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    height: auto;
}

/* 时间卡片专用 */
.time-card {
    flex: 0 0 100%;
    background: var(--bgCard);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

#timeCardsWrapper {
    width: 100%;
    display: flex;
    transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}

/* 指示器小圆点 */
.time-nav {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: -8px 0 12px;
}

.time-nav .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--subtext);
    opacity: .35;
    transition: all .3s;
    cursor: pointer;
}

.time-nav .dot.active {
    opacity: 1;
    transform: scale(1.2);
}

/* 页面容器 */
.page-container {
    display: none;
    min-height: 100vh;
    padding: 16px;
    padding-bottom: 90px;
    animation: fadeIn 0.3s ease;
}

.page-container.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 空状态提示 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
    color: var(--subtext);
    text-align: center;
}

.empty-state i {
    font-size: 56px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 15px;
    margin-bottom: 6px;
}

.empty-tip {
    font-size: 13px;
    color: var(--text);
    margin-top: 6px;
}
/* 头部搜索栏 */
.header-search {
    margin-bottom: 16px;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bgCard);
    border: 1px solid var(--border);
    border-radius: 22px;
    color: var(--subtext);
    cursor: pointer;
    transition: all 0.3s;
}

.search-bar:hover {
    border-color: var(--text);
    color: var(--text);
}

.search-bar i {
    font-size: 16px;
}

.search-bar span {
    font-size: 14px;
}

/* 搜索页面头部 */
.search-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-top: 8px;
}

.back-btn-icon {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bgCard);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    font-size: 18px;
    box-shadow: var(--shadow);
    transition: all 0.2s;
    flex-shrink: 0;
}

.back-btn-icon:hover {
    background: var(--text-light);
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--bgCard);
    border: 1px solid var(--border);
    border-radius: 22px;
    height: 40px;
    box-sizing: border-box;
}

.search-input-wrapper i {
    color: var(--subtext);
    font-size: 16px;
}

.search-input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--text-inverse);
    outline: none;
}

.clear-btn {
    background: none;
    border: none;
    color: var(--subtext);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-action-btn {
    padding: 8px 14px;
    border: none;
    background: var(--text);
    color: white;
    border-radius: 18px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.search-action-btn:hover {
    opacity: 0.9;
}

/* 操作按钮区 */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.action-btn i {
    font-size: 28px;
}

.eat-btn {
    background: linear-gradient(135deg, #FFC4AE 0%, #FFD3A1 100%);
    color: white;
}

.eat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.drink-btn {
    background: linear-gradient(135deg, #99D6FF 0%, #A1F8FF 100%);
    color: white;
}

.drink-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.3);
}

/* 搜索内容 */
.search-content {
    min-height: calc(100vh - 200px);
}

.full-search-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-placeholder, .search-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
    color: var(--subtext);
    text-align: center;
}

.search-placeholder i, .search-empty i {
    font-size: 44px;
    opacity: 0.3;
    margin-bottom: 12px;
}

.search-placeholder p, .search-empty p {
    margin-top: 8px;
    font-size: 14px;
}

.search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 36px;
    color: var(--subtext);
    font-size: 14px;
}

.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.full-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bgCard);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.search-item-main {
    flex: 1;
    min-width: 0;
}

.search-item-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-inverse);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-item-meta {
    display: flex;
    gap: 6px;
    font-size: 12px;
    color: var(--subtext);
    margin-bottom: 3px;
    flex-wrap: wrap;
}

.search-canteen, .search-window {
    background: var(--text-light);
    padding: 1px 6px;
    border-radius: 8px;
}

.search-item-price {
    font-size: 13px;
    color: var(--text);
    font-weight: 600;
}

.search-jump-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px solid var(--text);
    background: transparent;
    color: var(--text);
    border-radius: 14px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.search-jump-btn:hover {
    background: var(--text);
    color: white;
}
/* 快捷食堂列表 */
.quick-canteen-section {
    background: var(--bgCard);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.section-title i {
    font-size: 18px;
}

.quick-canteen-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.quick-canteen-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(128, 128, 128, 0.05);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.quick-canteen-item:hover {
    background: var(--text-light);
}

.quick-canteen-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quick-canteen-icon i {
    font-size: 18px;
    color: var(--text);
}

.quick-canteen-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.quick-canteen-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-inverse);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quick-canteen-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--subtext);
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 10px;
    background: var(--text-light);
}

/* 页面标题栏 */
.page-header {
    margin-bottom: 16px;
}

.page-header-with-back {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    padding-top: 8px;
    min-height: 40px;
}

.page-header-with-back .back-btn {
    position: absolute;
    left: 0;
    top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: var(--bgCard);
    border: 1px solid var(--border);
    border-radius: 16px;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.page-header-with-back .back-btn:hover {
    background: var(--text-light);
}

.page-header-with-back .page-title {
    flex: 1;
    text-align: center;
    margin: 0;
    padding: 0 60px;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-inverse);
}

.page-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 16px;
    color: var(--text);
    text-align: center;
}

/* 窗口卡片列表 */
.review-window-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 80px;
}

.review-window-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--bgCard);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.2s;
}

.review-window-card:hover {
    transform: translateY(-2px);
}

.review-window-preview {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.review-window-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-window-info {
    flex: 1;
    min-width: 0;
}

.review-window-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-inverse);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-window-meta {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 2px;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: #ff9800;
    font-weight: 600;
}

.review-floor {
    font-size: 11px;
    color: var(--subtext);
    background: var(--text-light);
    padding: 1px 6px;
    border-radius: 8px;
}

.review-hours {
    font-size: 11px;
    color: var(--subtext);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* 管理员编辑按钮 */
.edit-btn-small {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--text-light);
    border: none;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.edit-btn-small:hover {
    background: var(--text);
    color: white;
}

.add-canteen-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--text);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.add-canteen-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}
/* ================== 随机抽取弹窗 ================== */

.random-modal-box {
    position: relative;
    background: var(--bgCard);
    border-radius: var(--radius);
    padding: 20px;
    max-width: 360px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow);
}

.random-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(128, 128, 128, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--subtext);
    font-size: 14px;
    transition: all 0.2s;
    z-index: 10;
}

.random-close-btn:hover {
    background: rgba(128, 128, 128, 0.2);
    color: var(--text);
}

/* 可折叠过滤器 */
.random-filter-section {
    margin-bottom: 16px;
}

.random-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--text-light);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 10px;
}

.random-filter-header:hover {
    background: rgba(255, 107, 53, 0.2);
}

.random-filter-header .filter-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
}

.selected-count {
    font-size: 11px;
    color: var(--subtext);
    font-weight: normal;
}

.filter-arrow {
    font-size: 14px;
    color: var(--subtext);
    transition: transform 0.3s;
}

.filter-arrow.expanded {
    transform: rotate(180deg);
}

.random-filter-content {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 400px;
    opacity: 1;
}

.random-filter-content.collapsed {
    max-height: 0;
    opacity: 0;
}

.random-canteen-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.random-canteen-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: rgba(128, 128, 128, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.random-canteen-checkbox:hover {
    background: var(--text-light);
}

.random-canteen-checkbox.checked {
    background: var(--text-light);
    border-color: var(--text);
}

.random-canteen-checkbox input {
    display: none;
}

.checkbox-icon {
    width: 18px;
    height: 18px;
    border: 2px solid var(--subtext);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: white;
    transition: all 0.2s;
    flex-shrink: 0;
}

.random-canteen-checkbox.checked .checkbox-icon {
    background: var(--text);
    border-color: var(--text);
}

.checkbox-label {
    font-size: 13px;
    color: var(--text-inverse);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.random-result {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.result-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--subtext);
    text-align: center;
}

.result-placeholder i {
    font-size: 56px;
    margin-bottom: 12px;
}

.result-placeholder p {
    margin-top: 8px;
    font-size: 13px;
}

.random-animating {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text);
}

.random-shuffle-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    animation: pulse 0.5s ease infinite;
    margin-bottom: 12px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.random-result-card {
    width: 100%;
    background: rgba(128, 128, 128, 0.05);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.result-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 12px;
    border-radius: 20%;
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow);
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}

.result-badge.dish {
    background: var(--text);
}

.result-badge.drink {
    background: #4facfe;
}

.result-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-inverse);
    margin-bottom: 6px;
}

.result-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 13px;
    color: var(--subtext);
    margin-bottom: 6px;
}

.result-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.result-goto-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 20px;
    border: none;
    background: var(--text);
    color: white;
    border-radius: 18px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.result-goto-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.random-action-btn {
    width: 100%;
    padding: 12px;
    border: none;
    background: var(--text);
    color: white;
    border-radius: 22px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.random-action-btn:hover:not(:disabled) {
    opacity: 0.9;
}

.random-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 蓝色主题（喝什么） */
.random-modal-box.drink-theme .random-filter-header {
    background: rgba(79, 172, 254, 0.1);
}

.random-modal-box.drink-theme .random-filter-header:hover {
    background: rgba(79, 172, 254, 0.2);
}

.random-modal-box.drink-theme .random-filter-header .filter-label {
    color: #4facfe;
}

.random-modal-box.drink-theme .filter-arrow {
    color: #4facfe;
}

.random-modal-box.drink-theme .random-animating p {
    color: #4facfe;
    font-weight: 500;
}

.random-modal-box.drink-theme .random-canteen-checkbox.checked {
    background: rgba(79, 172, 254, 0.15);
    border-color: #4facfe;
}

.random-modal-box.drink-theme .random-canteen-checkbox.checked .checkbox-icon {
    background: #4facfe;
    border-color: #4facfe;
}

.random-modal-box.drink-theme .random-shuffle-icon {
    background: rgba(79, 172, 254, 0.15);
    color: #4facfe;
}

.random-modal-box.drink-theme .random-action-btn.drink-btn {
    background: #4facfe;
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
}

.random-modal-box.drink-theme .random-action-btn.drink-btn:hover:not(:disabled) {
    box-shadow: 0 6px 16px rgba(79, 172, 254, 0.4);
}

.random-modal-box.drink-theme .result-price {
    color: #4facfe;
}

.random-modal-box.drink-theme .result-name {
    color: #2196f3;
}

.random-modal-box.drink-theme .result-location i {
    color: #4facfe;
}

.random-modal-box.drink-theme .result-goto-btn {
    background: #4facfe;
}
/* ================== 窗口详情页 ================== */

.window-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-top: 8px;
    position: relative;
}

.header-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-inverse);
    flex: 1;
    text-align: center;
}

.admin-edit-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--text-light);
    border: 1px solid var(--border);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-edit-btn:hover {
    background: var(--text);
    color: white;
    transform: scale(1.1);
}

/* 窗口信息卡片 */
.window-info-card {
    background: var(--bgCard);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 16px;
}

.window-cover {
    width: 100%;
    height: 160px;
    overflow: hidden;
    position: relative;
}

.window-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edit-cover-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
}

.window-header-info {
    padding: 12px;
}

.window-header-info h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-inverse);
    margin-bottom: 8px;
}

.window-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #ff9800;
    font-weight: 600;
    font-size: 14px;
}

.user-rating-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.user-rating-label {
    font-size: 13px;
    color: var(--subtext);
    white-space: nowrap;
}

.star-input {
    display: flex;
    gap: 4px;
}

.star-input i {
    font-size: 20px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s;
}

.star-input i:hover,
.star-input i.active {
    color: #ff9800;
}

.star-input i:hover {
    transform: scale(1.1);
}

/* Tab切换 */
.tab-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 6px;
}

.tab-btn {
    flex: 1;
    padding: 8px;
    border: none;
    background: transparent;
    color: var(--subtext);
    font-size: 14px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.tab-btn.active {
    background: var(--text-light);
    color: var(--text);
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 菜品列表 */
.dish-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 80px;
}

.dish-category-section {
    margin-bottom: 14px;
}

.dish-category-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--text-light);
}

.dish-category-title i {
    font-size: 16px;
}

.dish-category-title.dish {
    color: #ff6b35;
    border-color: rgba(255, 107, 53, 0.3);
}

.dish-category-title.drink {
    color: #4facfe;
    border-color: rgba(79, 172, 254, 0.3);
}

.dish-category-title.condiment {
    color: #9c27b0;
    border-color: rgba(156, 39, 176, 0.3);
}

.empty-category {
    padding: 16px;
    text-align: center;
    color: var(--subtext);
    font-size: 13px;
    background: rgba(128, 128, 128, 0.03);
    border-radius: 8px;
    margin-bottom: 14px;
}

.dish-item {
    display: flex;
    align-items: center;
    padding: 8px;
    background: var(--bgCard);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    gap: 8px;
}

.dish-image {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.dish-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dish-info {
    flex: 1;
    min-width: 0;
}

.dish-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-inverse);
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dish-price {
    font-size: 13px;
    color: var(--text);
    font-weight: 600;
}

.dish-actions-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    height: 56px;
    flex-shrink: 0;
    position: relative;
}

.dish-actions-top {
    display: flex;
    align-items: flex-start;
}

.dish-actions-bottom {
    display: flex;
    gap: 4px;
    align-items: flex-end;
}

.action-btn-small {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px 6px;
    border: 1px solid var(--border);
    background: transparent;
    border-radius: 10px;
    font-size: 9px;
    color: var(--subtext);
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn-small:hover {
    border-color: var(--text);
    color: var(--text);
}

.action-btn-small.review-btn {
    border-color: var(--text);
    color: var(--text);
}

.action-btn-small.review-btn:hover {
    background: var(--text-light);
}

.action-btn-small i {
    font-size: 11px;
}

.vote-btn {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px 6px;
    border: 1px solid var(--border);
    background: transparent;
    border-radius: 10px;
    color: var(--subtext);
    font-size: 9px;
    cursor: pointer;
    transition: all 0.2s;
}

.vote-btn.active {
    background: var(--text-light);
    border-color: var(--text);
    color: var(--text);
}

.vote-btn.dislike.active {
    background: #ffebee;
    border-color: #ef5350;
    color: #ef5350;
}

.vote-btn i {
    font-size: 11px;
}

.dish-actions-right .edit-btn-small {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 24px;
    height: 24px;
    font-size: 12px;
}

/* 悬浮添加按钮 */
.fab-btn {
    position: fixed;
    bottom: 90px;
    right: 16px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--text);
    color: #fff;
    border: none;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: transform 0.2s;
}

.fab-btn:active {
    transform: scale(0.9);
}

@media (prefers-color-scheme: dark) {
    .dish-item {
        background: rgba(60, 60, 60, 0.85);
    }
    
    .window-info-card {
        background: rgba(60, 60, 60, 0.85);
    }
    
    .star-input i {
        color: #555;
    }
    
    .star-input i.active {
        color: #ff9800;
    }
}


@media (prefers-color-scheme: dark) {
    /* 修复：点踩按钮 active 状态适配暗色模式 */
    .vote-btn.dislike.active {
        background: rgba(239, 83, 80, 0.25);  /* 更深的半透明红色背景 */
        border-color: #ff6b6b;  /* 更亮的红色边框 */
        color: #ff6b6b;  /* 更亮的红色文字/图标，确保在深色背景上可见 */
    }

    .vote-btn.dislike.active:hover {
        background: rgba(239, 83, 80, 0.35);
    }

    /* 同时优化点赞按钮在暗色模式下的对比度（可选，保持统一） */
    .vote-btn.active:not(.dislike) {
        background: rgba(255, 152, 0, 0.25);
        border-color: #ffb74d;
        color: #ffb74d;
    }
}
/* ================== 弹窗工具函数 ================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-box {
    position: relative;
    background: var(--bgCard);
    border-radius: var(--radius);
    padding: 20px;
    max-width: 340px;
    width: 90%;
    box-shadow: var(--shadow);
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-overlay.show .modal-box {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 20px;
    color: var(--subtext);
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s;
}

.modal-close:hover {
    color: var(--text);
}

/* 编辑弹窗 */
.edit-modal-box {
    width: 90%;
    max-width: 380px;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
    color: var(--text-inverse);
}

/* 表单样式 */
.edit-form {
    padding: 16px;
    background: var(--bgCard);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text);
    margin-bottom: 6px;
    font-weight: 600;
}

.required {
    color: #ff4757;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text-inverse);
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
}

.form-group input:focus {
    border-color: var(--text);
    box-shadow: 0 0 0 2px var(--text-light);
}

.radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: var(--subtext);
    font-size: 13px;
}

.radio-label input[type="radio"] {
    width: 14px;
    height: 14px;
    accent-color: var(--text);
}

.save-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: var(--text);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s;
    margin-top: 8px;
}

.save-btn:active {
    transform: scale(0.98);
}

.delete-btn {
    width: 100%;
    padding: 10px;
    border: 1px solid #ef5350;
    background: transparent;
    color: #ef5350;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.delete-btn:hover {
    background: #ef5350;
    color: white;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.form-actions .save-btn,
.form-actions .delete-btn {
    flex: 1;
    margin-top: 0;
}

/* 图片上传区域 */
.image-upload-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.image-upload {
    width: 100%;
    height: 100px;
    border: 2px dashed var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    background: var(--bg);
    transition: all 0.2s;
}

.image-upload:hover {
    border-color: var(--text);
}

.image-upload.has-image {
    border-style: solid;
    border-color: var(--text);
}

.image-upload img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--subtext);
    z-index: 1;
    pointer-events: none;
}

.upload-placeholder i {
    font-size: 28px;
}

.upload-placeholder span {
    font-size: 12px;
}

.delete-image-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ef5350;
    border: 2px solid var(--bgCard);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.delete-image-btn:hover {
    transform: scale(1.1);
    background: #d32f2f;
}

/* 登录弹窗特殊样式 */
.login-modal-box {
    max-width: 320px;
}

.login-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.login-title {
    font-size: 15px;
    color: var(--text);
    font-weight: 600;
    margin: 0;
}

.login-tabs {
    display: flex;
    width: 100%;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.login-tab {
    flex: 1;
    padding: 8px 0;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--subtext);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.login-tab.active {
    color: var(--text);
    background: rgba(255, 107, 53, 0.05);
}

.login-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text);
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-form .form-group {
    gap: 4px;
}

.verification-input {
    display: flex;
    gap: 8px;
    align-items: center;
}

.verification-input input {
    flex: 1;
}

.send-code-btn {
    padding: 8px 10px;
    background: var(--text);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.send-code-btn:hover {
    opacity: 0.9;
}

.send-code-btn:disabled {
    background: var(--subtext);
    cursor: not-allowed;
}

.login-btn {
    width: 100%;
    padding: 11px;
    background: var(--text);
    color: white;
    border: 2px solid var(--text);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 6px;
}

.login-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.qq-login-divider {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 14px 0;
}

.qq-login-divider::before,
.qq-login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.qq-login-divider span {
    padding: 0 14px;
    font-size: 12px;
    color: var(--subtext);
}

.login-qq-btn {
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: #12B7F5;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.login-qq-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(18, 183, 245, 0.4);
}

.login-qq-btn img {
    width: 20px;
    height: 20px;
}

/* Toast提示 */
.auth-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    z-index: 100000;
    font-size: 13px;
    pointer-events: none;
    backdrop-filter: blur(4px);
}
/* ================== 评价弹窗样式 ================== */

.review-modal-box {
    max-width: 400px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
}

.review-dish-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--text-light);
    border-radius: 10px;
    margin-bottom: 12px;
}

.review-dish-info img {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
}

.review-dish-info span {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-inverse);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rating-type-group {
    display: flex;
    gap: 8px;
}

.rating-type-group .radio-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 4px;
    background: rgba(128, 128, 128, 0.05);
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.rating-type-group .radio-label:hover {
    background: var(--text-light);
}

.rating-type-group .radio-label i {
    font-size: 20px;
    color: var(--subtext);
}

.rating-type-group input[type="radio"] {
    display: none;
}

.rating-type-group input[value="like"]:checked ~ i {
    color: #ff9800;
}

.rating-type-group input[value="neutral"]:checked ~ i {
    color: var(--text);
}

.rating-type-group input[value="dislike"]:checked ~ i {
    color: #ef5350;
}

.rating-type-group input[type="radio"]:checked ~ span {
    font-weight: 600;
}

.rating-type-group .radio-label:has(input[value="like"]:checked) {
    background: rgba(255, 152, 0, 0.15);
    border-color: #ff9800;
}

.rating-type-group .radio-label:has(input[value="neutral"]:checked) {
    background: var(--text-light);
    border-color: var(--text);
}

.rating-type-group .radio-label:has(input[value="dislike"]:checked) {
    background: rgba(239, 83, 80, 0.15);
    border-color: #ef5350;
}

.review-images-upload {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.review-image-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
}

.review-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-image-item .delete-img-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
}

.upload-btn-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px;
    border: 2px dashed var(--border);
    border-radius: 8px;
    cursor: pointer;
    color: var(--subtext);
    transition: all 0.2s;
}

.upload-btn-wrapper:hover {
    border-color: var(--text);
    color: var(--text);
}

.upload-btn-wrapper i {
    font-size: 20px;
}

textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text-inverse);
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    outline: none;
}

textarea:focus {
    border-color: var(--text);
}

/* ================== 评论列表样式 ================== */

.reviews-filter-bar,
.main-filter-bar,
.sub-filter-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.filter-tab,
.main-tab,
.sub-tab {
    flex-shrink: 0;
    padding: 6px 12px;
    border: 1px solid var(--border);
    background: var(--bgCard);
    border-radius: 16px;
    font-size: 13px;
    color: var(--subtext);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tab.active,
.main-tab.active,
.sub-tab.active {
    background: var(--text);
    border-color: var(--text);
    color: white;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 80px;
}

.review-card {
    background: var(--bgCard);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow);
    position: relative;
}

.review-card.hidden-review {
    opacity: 0.6;
    border: 2px dashed var(--border);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.review-user-info {
    flex: 1;
    min-width: 0;
}

.review-username {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-inverse);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.review-rating-icon {
    font-size: 13px;
}

.review-rating-icon.like {
    color: #ff9800;
}

.review-rating-icon.dislike {
    color: #ef5350;
}

.hide-reason-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 6px;
    background: #ffebee;
    color: #ef5350;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 500;
}

.hide-reason-badge i {
    font-size: 9px;
}

.review-time {
    font-size: 11px;
    color: var(--subtext);
    margin-top: 2px;
}

.review-content {
    font-size: 14px;
    color: var(--text-inverse);
    line-height: 1.6;
    margin-bottom: 10px;
    word-break: break-word;
}

.review-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}

.review-images img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
}

.review-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.review-dish-subcard {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--text-light);
    border-radius: 8px;
    margin-top: 10px;
    cursor: pointer;
}

.review-dish-subcard img {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    object-fit: cover;
}

.review-dish-subcard .dish-info {
    flex: 1;
    min-width: 0;
}

.review-dish-subcard .dish-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-inverse);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-dish-subcard .dish-location {
    font-size: 11px;
    color: var(--subtext);
}

.review-actions {
    display: flex;
    gap: 12px;
}

.review-vote-btn {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 4px 10px;
    border: 1px solid var(--border);
    background: transparent;
    border-radius: 12px;
    font-size: 12px;
    color: var(--subtext);
    cursor: pointer;
    transition: all 0.2s;
}

.review-vote-btn.active.like {
    background: rgba(255, 152, 0, 0.15);
    border-color: #ff9800;
    color: #ff9800;
}

.review-vote-btn.active.dislike {
    background: rgba(239, 83, 80, 0.15);
    border-color: #ef5350;
    color: #ef5350;
}

.admin-actions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 6px;
}

.admin-btn {
    padding: 4px 10px;
    border: 1px solid var(--border);
    background: transparent;
    border-radius: 6px;
    font-size: 11px;
    color: var(--subtext);
    cursor: pointer;
    transition: all 0.2s;
}

.admin-btn.show-btn {
    border-color: var(--text);
    color: var(--text);
}

@media (prefers-color-scheme: dark) {
    .review-dish-info {
        background: rgba(60, 60, 60, 0.8);
    }
    
    textarea {
        background: rgba(60, 60, 60, 0.8);
    }
    
    .hide-reason-badge {
        background: rgba(239, 83, 80, 0.2);
    }
}
/* ================== 账号系统样式 ================== */

/* 账号卡片 */
.account-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bgCard);
    border: 1px solid var(--text-light);
    border-radius: var(--radius);
    margin-bottom: 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.account-card:active {
    transform: scale(0.98);
}

.account-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg);
}

.account-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.account-username {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.account-tip {
    font-size: 11px;
    color: var(--subtext);
    opacity: 0.8;
}

.account-login-btn {
    padding: 6px 16px;
    border: 1px solid var(--text);
    background: transparent;
    color: var(--text);
    border-radius: 16px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.account-login-btn:hover {
    background: var(--text);
    color: #fff;
}

/* 已登录状态 */
.account-card.logged-in {
    cursor: default;
}

.account-card.logged-in:active {
    transform: none;
}

.account-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.account-btn {
    padding: 5px 12px;
    border: 1px solid var(--text);
    background: transparent;
    color: var(--text);
    border-radius: 10px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 64px;
}

.account-btn:hover {
    background: var(--text);
    color: #fff;
}

.account-btn.secondary {
    border-color: var(--subtext);
    color: var(--subtext);
}

.account-btn.secondary:hover {
    background: var(--subtext);
    color: #fff;
}

/* 统计卡片 */
.stats-card {
    display: flex;
    align-items: center;
    background: var(--bgCard);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.2s;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.stat-item {
    flex: 1;
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}

.stat-label {
    font-size: 12px;
    color: var(--subtext);
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
    margin: 0 12px;
}

.stat-arrow {
    color: var(--subtext);
    font-size: 14px;
    margin-left: 6px;
    cursor: pointer;
}

/* 功能菜单 */
.profile-menu {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--bgCard);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.profile-menu-item {
    display: flex;
    align-items: center;
    padding: 12px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border);
}

.profile-menu-item:last-child {
    border-bottom: none;
}

.profile-menu-item:hover {
    background: var(--text-light);
}

.profile-menu-item i:first-child {
    font-size: 16px;
    color: var(--text);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.profile-menu-item span {
    flex: 1;
    font-size: 14px;
    color: var(--text-inverse);
}

.profile-menu-item i:last-child {
    font-size: 13px;
    color: var(--subtext);
    opacity: 0.6;
}

/* ================== 底部导航栏 ================== */

.bottom-controls {
    position: fixed;
    bottom: 16px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
    pointer-events: none;
}

.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 45px;
    background: rgba(255, 255, 255, .45);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 4px;
    z-index: 999;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s;
    will-change: transform;
}

.bottom-nav:active {
    transform: translateX(-50%) scale(0.95);
}

@media (prefers-color-scheme: dark) {
    .bottom-nav {
        background: rgba(60, 60, 60, .45);
    }
}

/* 滑块拖动时的样式（宽度/位置由 JS 按当前激活项动态设置） */
.bottom-nav-slider {
    position: absolute;
    left: 4px;
    top: 3px;
    bottom: 3px;
    width: 100px;
    background: var(--text-light);
    border-radius: 24px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: -1;
    will-change: transform, width;
    transform-origin: center center;
}

.bottom-nav-item {
    position: relative;
    flex: 1;
    height: 48px;
    border-radius: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--subtext);
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transition: color 0.2s;
    z-index: 1;
    pointer-events: auto;
}

.bottom-nav-item.active {
    color: var(--text);
}


.bottom-nav-item i {
    font-size: 18px;
}

/* 全局统计信息 */
.global-stats {
    text-align: center;
    padding: 20px 0 90px;
    font-size: 12px;
    color: var(--subtext);
    opacity: 0.7;
    letter-spacing: 0.5px;
}

.global-stats strong {
    color: var(--text);
    font-weight: 600;
    margin: 0 2px;
}

@media (prefers-color-scheme: dark) {
    .global-stats {
        opacity: 0.6;
    }
}
/* ================== 点评获赞榜 ================== */

.leaderboard-header {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: var(--bgCard);
    border-radius: var(--radius);
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--subtext);
    font-weight: 600;
}

.leaderboard-rank-title {
    width: 36px;
    text-align: center;
}

.leaderboard-user-title {
    flex: 1;
    padding-left: 6px;
}

.leaderboard-stats-title {
    width: 90px;
    text-align: right;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 80px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    background: var(--bgCard);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.2s;
}

.leaderboard-item:hover {
    transform: translateX(4px);
}

.leaderboard-item.current-user {
    background: var(--text-light);
    border: 2px solid var(--text);
}

/* 前三名样式 - 纯色背景+彩色边框 */
.leaderboard-item.rank-1 {
    background: var(--bgCard);
    border: 2px solid #FFD700;  /* 金色边框 */
    box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.3), var(--shadow);
}

.leaderboard-item.rank-1 .leaderboard-nickname,
.leaderboard-item.rank-1 .stat-label-small,
.leaderboard-item.rank-1 .stat-num {
    color: var(--text-inverse);  /* 恢复标准文字颜色 */
}

.leaderboard-item.rank-1 .leaderboard-rank i {
    color: #FFD700;  /* 奖杯图标保持金色 */
    text-shadow: none;
}

.leaderboard-item.rank-2 {
    background: var(--bgCard);
    border: 2px solid #C0C0C0;  /* 银色边框 */
    box-shadow: 0 0 0 1px rgba(192, 192, 192, 0.3), var(--shadow);
}

.leaderboard-item.rank-2 .leaderboard-nickname,
.leaderboard-item.rank-2 .stat-label-small,
.leaderboard-item.rank-2 .stat-num {
    color: var(--text-inverse);
}

.leaderboard-item.rank-2 .leaderboard-rank i {
    color: #C0C0C0;
    text-shadow: none;
}

.leaderboard-item.rank-3 {
    background: var(--bgCard);
    border: 2px solid #CD7F32;  /* 铜色边框 */
    box-shadow: 0 0 0 1px rgba(205, 127, 50, 0.3), var(--shadow);
}

.leaderboard-item.rank-3 .leaderboard-nickname,
.leaderboard-item.rank-3 .stat-label-small,
.leaderboard-item.rank-3 .stat-num {
    color: var(--text-inverse);
}

.leaderboard-item.rank-3 .leaderboard-rank i {
    color: #CD7F32;
    text-shadow: none;
}

/* 前三名头像边框恢复普通样式 */
.rank-1 .leaderboard-avatar,
.rank-2 .leaderboard-avatar,
.rank-3 .leaderboard-avatar {
    border-color: var(--border);
    box-shadow: none;
}


.leaderboard-rank {
    width: 36px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
}

.leaderboard-rank .rank-number {
    color: var(--subtext);
    font-size: 12px;
}

.leaderboard-rank i {
    font-size: 14px;
}

.rank-1 .leaderboard-rank i,
.rank-2 .leaderboard-rank i,
.rank-3 .leaderboard-rank i {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.leaderboard-user {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 6px;
    min-width: 0;
}

.leaderboard-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    flex-shrink: 0;
}

.rank-1 .leaderboard-avatar,
.rank-2 .leaderboard-avatar,
.rank-3 .leaderboard-avatar {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.leaderboard-user-info {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.leaderboard-nickname {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-inverse);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.current-tag {
    font-size: 10px;
    padding: 1px 4px;
    background: var(--text);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    flex-shrink: 0;
}

.leaderboard-stats {
    width: 90px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: flex-end;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 3px;
}

.stat-num {
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
}

.stat-label-small {
    font-size: 10px;
    color: var(--subtext);
}

@media (prefers-color-scheme: dark) {
    .leaderboard-item.rank-1,
    .leaderboard-item.rank-2,
    .leaderboard-item.rank-3 {
        color: #fff;
    }
}

/* ================== 关于页面 ================== */

.about-card {
    background: var(--bgCard);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 14px;
    box-shadow: var(--shadow);
    text-align: center;
}

.about-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin-bottom: 12px;
    object-fit: cover;
    border: 3px solid var(--text-light);
}

.about-card-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-inverse);
    margin-bottom: 6px;
}

.about-card-desc {
    font-size: 13px;
    color: var(--subtext);
    line-height: 1.6;
    margin-bottom: 6px;
}

.about-section {
    text-align: left;
}

.about-section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.about-beian {
    text-align: center;
    padding: 16px;
    font-size: 11px;
    color: var(--subtext);
    line-height: 1.8;
}

.about-beian a {
    color: var(--subtext);
    text-decoration: none;
    display: block;
    margin-bottom: 3px;
}

.about-beian a:hover {
    color: var(--text);
}

@media (prefers-color-scheme: dark) {
    .about-card {
        background: rgba(60, 60, 60, 0.85);
    }
}

/* ================== 窗口详情板块展示样式 ================== */

.window-details-display {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 12px;
}

.detail-section {
    background: var(--bgCard);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    animation: fadeIn 0.4s ease;
}

.detail-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--text-light);
}

.detail-section-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 14px;
}

.detail-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-inverse);
    flex: 1;
}

.detail-section-content {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-inverse);
    margin-bottom: 12px;
    white-space: pre-wrap;
    word-break: break-word;
}

.detail-section-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.detail-section-image {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: rgba(128, 128, 128, 0.1);
    transition: transform 0.2s;
}

.detail-section-image:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.detail-section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.detail-section-image:hover img {
    transform: scale(1.05);
}

.detail-section-image-count {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 10px;
    backdrop-filter: blur(4px);
}

.empty-sections {
    text-align: center;
    padding: 36px 16px;
    color: var(--subtext);
}

.empty-sections i {
    font-size: 44px;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* ================== 板块编辑弹窗样式 ================== */

.sections-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.section-edit-item {
    background: rgba(128, 128, 128, 0.05);
    border: 2px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s;
}

.section-edit-item:hover {
    border-color: var(--text-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.section-edit-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    background: var(--bgCard);
    border-bottom: 1px solid var(--border);
}

.section-drag-handle {
    color: var(--subtext);
    cursor: grab;
    padding: 3px;
    border-radius: 4px;
    transition: all 0.2s;
}

.section-drag-handle:hover {
    background: var(--text-light);
    color: var(--text);
}

.section-title-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-inverse);
    outline: none;
    padding: 4px;
}

.section-title-input::placeholder {
    color: var(--subtext);
    font-weight: 500;
}

.section-delete-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #ef5350;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.section-delete-btn:hover {
    background: #ffebee;
    transform: scale(1.1);
}

.section-edit-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-content-input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text-inverse);
    font-size: 13px;
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
    outline: none;
}

.section-content-input:focus {
    border-color: var(--text);
}

.section-label {
    font-size: 12px;
    color: var(--subtext);
    margin-bottom: 6px;
    display: block;
}

.section-images-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}

.section-image-item {
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    border: 2px solid var(--border);
    cursor: pointer;
}

.section-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-image-item .remove-img-btn {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(239, 83, 80, 0.9);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
    opacity: 0;
    transition: all 0.2s;
}

.section-image-item:hover .remove-img-btn {
    opacity: 1;
}

.section-image-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px;
    border: 2px dashed var(--border);
    border-radius: 8px;
    cursor: pointer;
    color: var(--subtext);
    transition: all 0.2s;
    background: var(--bg);
    font-size: 13px;
}

.section-image-upload:hover {
    border-color: var(--text);
    color: var(--text);
    background: var(--text-light);
}

.section-image-upload i {
    font-size: 18px;
}

.add-section-btn {
    width: 100%;
    padding: 12px;
    border: 2px dashed var(--text-light);
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
    margin-top: 6px;
}

.add-section-btn:hover {
    border-color: var(--text);
    background: var(--text-light);
    transform: translateY(-2px);
}

.details-edit-section {
    margin-top: 16px;
}

@media (prefers-color-scheme: dark) {
    .detail-section {
        background: rgba(60, 60, 60, 0.85);
    }
    
    .section-edit-item {
        background: rgba(80, 80, 80, 0.3);
    }
    
    .section-edit-header {
        background: rgba(60, 60, 60, 0.9);
    }
    
    .section-image-upload,
    .section-content-input {
        background: rgba(60, 60, 60, 0.8);
    }
}

/* 隐藏元素工具类 */
.hidden {
    display: none !important;
}

.highlight {
    font-weight: 600;
    color: var(--text);
}

/* 图片查看器 */
.img-viewer {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    cursor: zoom-out;
    backdrop-filter: blur(4px);
}

.img-viewer img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    object-fit: contain;
}

/* 投票按钮动画 */
.vote-btn, .action-btn-small {
    transition: all 0.2s ease;
}

.vote-btn:active, .action-btn-small:active {
    transform: scale(0.9);
}

.vote-btn.active {
    animation: pulse 0.3s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* ============================================================
   基础功能版新增样式（2026-09 维护）
   ============================================================ */

/* ---------- 食堂列表（仿地图首页 life-canteen-card） ---------- */
.life-canteen-card {
    --canteen-accent: #ff6b35;
    --canteen-accent-soft: rgba(255, 107, 53, 0.10);
    --canteen-accent-border: rgba(255, 107, 53, 0.45);
    background: var(--bgCard);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px;
    border: 1.5px solid var(--canteen-accent-border);
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
}

.life-section-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.life-section-card-head > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
}

.life-section-card-head img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.life-section-card-head small {
    color: var(--subtext);
    font-size: 11px;
    font-weight: 700;
}

.life-canteen-list {
    margin-top: 10px;
    border-top: 1px solid var(--canteen-accent-border);
}

.life-canteen-row {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 2px;
    border: 0;
    border-bottom: 1px solid var(--canteen-accent-border);
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.life-canteen-row:active {
    background: var(--canteen-accent-soft);
}

.life-canteen-row:last-child {
    border-bottom: 0;
    padding-bottom: 2px;
}

.life-canteen-image {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--canteen-accent-border);
    border-radius: 10px;
    background: var(--canteen-accent-soft);
}

.life-canteen-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.life-canteen-image i {
    color: var(--canteen-accent);
    font-size: 18px;
}

.life-canteen-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.life-canteen-copy strong {
    color: var(--text);
    font-size: 14px;
}

.life-canteen-copy small {
    color: var(--subtext);
    font-size: 11px;
}

.life-canteen-actions {
    align-self: stretch;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.life-canteen-enter {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

/* ---------- 窗口列表（按楼层分组，仿地图） ---------- */
.eatwhat-windows-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floor-group-card {
    background: var(--bgCard);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.floor-group-title {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.floor-group-title i {
    font-size: 12px;
}

.floor-group-content {
    padding: 0 12px 6px;
}

.eatwhat-window-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 2px;
    cursor: pointer;
    min-height: 62px;
}

.eatwhat-window-item:active {
    background: var(--text-light);
}

.eatwhat-window-preview {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.eatwhat-window-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eatwhat-window-preview .img-placeholder {
    color: var(--text);
    opacity: 0.6;
}

.eatwhat-window-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.eatwhat-window-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-inverse);
}

.eatwhat-window-hours {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--subtext);
}

.window-divider {
    height: 1px;
    background: var(--border);
    margin: 0 2px;
}

/* ---------- 窗口详情 ---------- */
.img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    opacity: 0.5;
    font-size: 28px;
}

.window-cover .img-placeholder {
    position: absolute;
    inset: 0;
    font-size: 48px;
}

.ew-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--text-light);
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
}

/* ---------- 菜品列表（分组） ---------- */
.dish-detail-group {
    padding: 6px 0 2px;
}

.dish-detail-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: var(--subtext);
    padding: 6px 12px;
}

.dish-detail-group-title small {
    font-weight: 400;
    opacity: 0.7;
}

.dish-menu-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.08);
}

.dish-menu-row:last-child {
    border-bottom: 0;
}

.dish-menu-type-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 8px;
    background: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 14px;
}

.dish-menu-info {
    flex: 1;
    min-width: 0;
}

.dish-menu-name {
    font-size: 14px;
    color: var(--text-inverse);
}

.dish-menu-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

/* ---------- 我的页面 ---------- */
.account-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--text-light);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

/* ---------- 登录弹窗 ---------- */
.login-tip {
    font-size: 12px;
    color: var(--subtext);
    margin: -4px 0 14px;
    text-align: center;
}

.login-qq-tip {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--text-light);
    color: var(--text);
    font-size: 12px;
    line-height: 1.5;
}

.login-qq-tip i {
    margin-top: 2px;
}

.login-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: var(--radius);
    background: var(--text);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    transition: opacity 0.2s;
}

.login-btn:active {
    opacity: 0.85;
}

/* 暗色主题适配 */
@media (prefers-color-scheme: dark) {
    .life-canteen-card {
        --canteen-accent-soft: rgba(255, 138, 101, 0.14);
        --canteen-accent-border: rgba(255, 138, 101, 0.45);
    }

    .dish-menu-row {
        border-bottom-color: rgba(128, 128, 128, 0.15);
    }
}
