/* =========================================
   1. 全局设置与变量 (Global & Variables)
   ========================================= */
* { 
    box-sizing: border-box; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    /* 云南风格配色板 */
    --color-teal: #3494a6;       /* 青色 */
    --color-dark-blue: #1a3c5a;  /* 深蓝 */
    --color-orange: #bf4328;     /* 焦橙 */
    --color-yellow: #e0b341;     /* 姜黄 */
    
    /* 背景与文本色 */
    --color-bg-main: #f5f7fa; 
    --color-card-bg: #ffffff;
    --color-text-primary: #2c3e50;
    --color-text-secondary: #7f8c8d;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--color-bg-main);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* =========================================
   2. 头部样式 (Header)
   ========================================= */
header {
    height: 60px;
    flex-shrink: 0;
    background: var(--color-dark-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(26, 60, 90, 0.3);
}

.logo { 
    font-family: 'Cinzel Decorative', cursive; 
    font-weight: 700; 
    font-size: 1.5rem; 
    color: white; 
    letter-spacing: 1px; 
    display: flex; align-items: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.avatar-small { 
    width: 32px; height: 32px; border-radius: 50%; 
    background: rgba(255,255,255,0.2); 
    border: 1px solid rgba(255,255,255,0.5); 
    transition: 0.2s; cursor: pointer;
}
.avatar-small:hover { background: rgba(255,255,255,0.4); }

/* =========================================
   3. 主网格布局 (Main Grid)
   ========================================= */
.main-grid {
    flex: 1;
    display: grid;
    /* 左侧 320px | 中间自适应 | 右侧 380px */
    grid-template-columns: 320px 1fr 380px; 
    height: calc(100vh - 60px);
    overflow: hidden;
    position: relative;
}

/* =========================================
   4. 左侧面板 (Left Panel)
   ========================================= */
.left-panel {
    padding: 20px;
    overflow-y: auto;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(0,0,0,0.05);
    display: flex; flex-direction: column; height: 100%;
}

.panel-card {
    background: var(--color-card-bg);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
}

h3 { 
    margin: 0 0 12px 0; font-size: 0.85rem; font-weight: 700; 
    color: var(--color-dark-blue); text-transform: uppercase; letter-spacing: 1px; 
    display: flex; align-items: center;
}
h3::before {
    content: ''; display: inline-block; width: 4px; height: 14px;
    background: var(--color-orange); margin-right: 8px; border-radius: 2px;
}

.theme-card { background: linear-gradient(145deg, #ffffff 0%, #fffbf0 100%); border: 1px solid #f0e6d0; }
.theme-content { display: flex; gap: 12px; align-items: center; /* 改为居中对齐 */ }

/* Emoji 盒子样式 */
.theme-emoji-box {
    width: 60px; height: 60px;
    font-size: 2.5rem; /* 大号字体显示 Emoji */
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.6);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.theme-text h4 { margin: 0 0 6px 0; font-size: 0.95rem; color: var(--color-orange); font-weight: 700; }
.theme-text p { margin: 0; font-size: 0.75rem; color: var(--color-text-secondary); line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }

.climate-stats-row {
    display: flex; justify-content: center; align-items: center;
    margin-bottom: 10px; padding: 8px;
    background: rgba(240, 242, 245, 0.5); border-radius: 8px;
}
.stat-box {
    display: flex; align-items: center; gap: 8px;
    font-family: 'Oswald', sans-serif; font-size: 1.1rem; font-weight: 500; 
    color: var(--color-text-primary); width: 80px; justify-content: center;
}
.stat-divider { width: 1px; height: 16px; background: #ddd; margin: 0 15px; }

/* 默认小图表 */
.small-chart { height: 110px; width: 100%; position: relative; }

/* Rank Chart 专用大高度 */
.rank-chart-box {
    height: 320px !important; 
}

/* =========================================
   5. 中间地图区域 (Center Map & Controls)
   ========================================= */
.map-container { position: relative; width: 100%; height: 100%; z-index: 0; }
#dash-map { width: 100%; height: 100%; background: #e0e0e0; }

.map-controls-overlay {
    position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 620px;
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px);
    border-radius: 16px; padding: 15px 20px;
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; /* 改为 flex-start 以适应不同高度 */
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 500;
}

/* 左侧控制组：包含 Filter 和 Search */
.left-control-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1; /* 占据剩余空间 */
    margin-right: 20px;
}

.map-filter-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.map-filter-label { font-size: 0.8rem; font-weight: 700; color: var(--color-dark-blue); margin-right: 5px; }
.tag { padding: 5px 12px; font-size: 0.75rem; border-radius: 12px; cursor: pointer; background: #f0f2f5; color: #666; transition: 0.2s; border: 1px solid transparent; }
.tag.active { background: var(--color-teal); color: white; }

/* 搜索栏样式 */
.search-wrapper {
    position: relative;
    width: 100%;
}
.search-wrapper input {
    width: 100%;
    padding: 8px 10px 8px 32px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    font-family: inherit;
    font-size: 0.8rem;
    transition: 0.2s;
}
.search-wrapper input:focus {
    outline: none;
    border-color: var(--color-teal);
    background: white;
    box-shadow: 0 0 0 2px rgba(52, 148, 166, 0.1);
}
.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 0.8rem;
    pointer-events: none;
}

/* 搜索结果下拉列表 */
.search-results-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 5px 0 0 0;
    padding: 0;
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none; /* 默认隐藏 */
    border: 1px solid #eee;
}
.search-results-list.show { display: block; }
.search-item {
    padding: 8px 12px;
    font-size: 0.8rem;
    color: var(--color-text-primary);
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    justify-content: space-between;
}
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: #f0f7f8; color: var(--color-teal); }
.search-item-cat {
    font-size: 0.7rem; color: #999;
}

/* 右侧 Slider */
.map-slider-group { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    width: 180px; 
    flex-shrink: 0; 
    margin-top: 5px; /* 对齐微调 */
}
.map-slider-label { font-size: 0.8rem; font-weight: 700; color: var(--color-orange); width: 60px; }
.map-slider-group input[type=range] { flex: 1; accent-color: var(--color-orange); cursor: pointer; }

/* Reset View 按钮 (右下角) */
.reset-map-btn {
    position: absolute; bottom: 30px; right: 20px; 
    background: white; color: var(--color-dark-blue); border: none;
    padding: 8px 12px; border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    font-size: 0.8rem; font-weight: 700; cursor: pointer;
    z-index: 500; display: flex; align-items: center; gap: 6px; transition: all 0.2s;
}
.reset-map-btn:hover { background: var(--color-dark-blue); color: white; transform: translateY(-2px); }

/* Start Planning Button (Desktop 默认) */
.start-btn {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
    background: var(--color-orange); color: white; padding: 14px 40px; border-radius: 50px;
    text-decoration: none; font-weight: 700; font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(191, 67, 40, 0.4); z-index: 9999;
    display: flex; align-items: center; gap: 10px; border: 3px solid white; transition: 0.2s;
}
.start-btn:hover { transform: translateX(-50%) translateY(-3px); background: #a83820; }

/* =========================================
   6. 右侧 YUNote 面板
   ========================================= */
.right-panel {
    background: rgba(250, 250, 250, 0.95); backdrop-filter: blur(12px);
    border-left: 1px solid rgba(0,0,0,0.06);
    display: flex; flex-direction: column; height: 100%; z-index: 10; overflow: hidden;
}

.panel-header { 
    padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; 
    flex-shrink: 0; border-bottom: 1px solid rgba(0,0,0,0.03);
}
.header-text-group h3 { margin: 0 0 4px 0; font-size: 1rem; }
.location-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(52, 148, 166, 0.1); color: var(--color-teal);
    padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 600;
    transition: 0.2s; cursor: default;
}

/* 可点击的地点 Badge 样式 (配合 JS 跳转功能) */
.location-badge.clickable { cursor: pointer; background: var(--color-teal); color: white; }
.location-badge.clickable:hover { background: var(--color-dark-blue); }

.refresh-icon { cursor: pointer; color: var(--color-text-secondary); }
.refresh-icon:hover { color: var(--color-teal); }

.app-content-area { flex: 1; overflow-y: auto; scrollbar-width: thin; }

/* 双列布局 */
.feed-container { 
    padding: 12px; 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 12px; 
    padding-bottom: 20px; 
}

.feed-card { 
    background: white; 
    border-radius: 8px; 
    overflow: hidden; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.04); 
    cursor: pointer; 
    transition: 0.2s;
    display: flex;
    flex-direction: column;
}
.feed-card:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.08); }

.feed-img { width: 100%; height: 120px; object-fit: cover; }
.feed-info { padding: 8px 10px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.feed-title { 
    font-size: 0.8rem; font-weight: 600; margin: 0 0 6px 0; 
    color: var(--color-text-primary); line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.feed-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.7rem; color: var(--color-text-secondary); }
.user-info { display: flex; align-items: center; gap: 4px; }
.user-info span { max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 16px; height: 16px; border-radius: 50%; background: #e0e0e0; }

/* 发帖表单相关样式 (Create Post Form) */
.form-label { display: block; margin-bottom: 5px; font-size: 0.8rem; color: #666; font-weight: bold; margin-top: 10px; }
.form-input { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 8px; font-family: inherit; margin-bottom: 5px; font-size: 0.9rem; }

/* 手动搜索地点的容器 */
.location-input-wrapper { position: relative; width: 100%; }
/* 确保表单内的搜索结果悬浮在最上层 */
.location-input-wrapper .search-results-list { max-height: 150px; top: 100%; z-index: 2000; box-shadow: 0 5px 20px rgba(0,0,0,0.15); }

/* 帖子详情页 & 评论区样式 (Detail View & Comments) */
.detail-actions { padding: 10px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; margin: 15px 0; display: flex; justify-content: space-around; }
.action-btn { background: none; border: none; font-size: 0.9rem; color: #666; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.action-btn:hover { color: var(--color-orange); }
.action-btn.liked { color: var(--color-orange); font-weight: bold; }

.comments-section { margin-top: 15px; }
.comment-input-box { display: flex; gap: 10px; margin-bottom: 15px; }
.comment-input { flex: 1; padding: 8px; border: 1px solid #eee; border-radius: 20px; background: #f9f9f9; font-size: 0.85rem; }
.comment-submit-btn { border: none; background: var(--color-teal); color: white; border-radius: 20px; padding: 0 15px; font-weight: bold; cursor: pointer; font-size: 0.8rem; }
.comment-list { display: flex; flex-direction: column; gap: 10px; }
.comment-item { font-size: 0.8rem; color: #555; background: #f9f9f9; padding: 8px 12px; border-radius: 8px; }
.comment-user { font-weight: bold; color: var(--color-dark-blue); margin-right: 5px; }

/* Footer */
.xhs-footer { 
    flex-shrink: 0; height: 55px; background: white; border-top: 1px solid rgba(0,0,0,0.06); 
    display: flex; justify-content: space-around; align-items: center; padding: 0 10px; z-index: 20; 
}
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 0.65rem; color: var(--color-text-primary); cursor: pointer; width: 60px; }
.nav-item i { font-size: 1.2rem; color: var(--color-dark-blue); }
.nav-item-center { width: 44px; height: 30px; background: var(--color-orange); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; cursor: pointer; }

/* =========================================
   7. Leaflet Popup (大弹窗 + 细节) - 已修复遮挡问题
   ========================================= */
.leaflet-popup-content-wrapper { 
    padding: 0; 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.3); 
}

/* 核心修复：移除默认的宽度限制，允许后续覆盖 */
.leaflet-popup-content { 
    margin: 0; 
    width: 380px !important; /* 桌面端保持较宽 */
}

.custom-popup { 
    display: flex; 
    background: white; 
    /* 核心修复：不要写死 height，改用 min-height 和 auto */
    min-height: 200px; 
    height: auto; 
}

.popup-left { 
    width: 130px; 
    position: relative; 
    flex-shrink: 0; 
}
.popup-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.official-link-btn { 
    position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); 
    background: rgba(255,255,255,0.95); color: var(--color-dark-blue); border: none; 
    font-size: 0.7rem; padding: 4px 10px; border-radius: 20px; font-weight: 700; cursor: pointer; 
    width: 85%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.popup-right { 
    flex: 1; 
    padding: 14px; 
    display: flex; 
    flex-direction: column; 
    position: relative; 
    /* 核心修复：确保文字过多时不会溢出 */
    overflow-y: visible; 
}

.popup-top-actions { position: absolute; top: 10px; right: 10px; display: flex; gap: 8px; }
.action-icon { width: 24px; height: 24px; background: #f5f7fa; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--color-teal); font-size: 0.8rem; cursor: pointer; transition: 0.2s; }
.action-icon:hover { background: var(--color-teal); color: white; }

.popup-title { 
    font-size: 1.05rem; 
    font-weight: 800; 
    margin: 0 0 4px 0; 
    color: var(--color-dark-blue); 
    padding-right: 60px; 
    line-height: 1.2; 
}

.popup-meta-row { font-size: 0.75rem; color: #666; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; font-weight: 500; }
.popup-meta-row i { color: var(--color-orange); width: 14px; text-align: center; }

/* 描述文字限制行数 */
.popup-desc { 
    font-size: 0.75rem; 
    color: var(--color-text-secondary); 
    line-height: 1.4; 
    margin-bottom: auto; /* 把下方按钮推到底部 */
    padding-bottom: 8px; 
    overflow: hidden; 
    display: -webkit-box; 
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical; 
}

.popup-facilities { display: flex; gap: 8px; margin-top: auto; border-top: 1px solid #eee; padding-top: 8px; margin-bottom: 8px;}
.fac-item { color: #ddd; font-size: 0.85rem; }
.fac-item.active { color: var(--color-teal); }

.popup-wishlist-btn {
    width: 100%; padding: 6px; 
    background: white; color: var(--color-dark-blue);
    border: 1px solid var(--color-dark-blue); border-radius: 6px;
    font-size: 0.75rem; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 5px; transition: 0.2s;
    flex-shrink: 0; 
}
.popup-wishlist-btn:hover { background: #f0f2f5; }
.popup-wishlist-btn.added { background: var(--color-teal); border-color: var(--color-teal); color: white; }

/* =========================================
   8. 图标样式
   ========================================= */
.custom-div-icon { background: transparent; border: none; }
.marker-pin {
    width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 14px; box-shadow: 0 2px 5px rgba(0,0,0,0.3); border: 2px solid white; transition: 0.2s;
}
.marker-pin:hover { transform: scale(1.15); z-index: 999; }

.marker-wishlist.cat-Nature { background: #3494a6; }
.marker-wishlist.cat-Culture { background: #1a3c5a; }
.marker-wishlist.cat-Food { background: #bf4328; }
.marker-wishlist.cat-Stay { background: #e0b341; }

/* =========================================
   9. 图例样式 (Map Legend)
   ========================================= */
.legend-row {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #e0e0e0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.active-dot {
    background-color: var(--color-teal);
    opacity: 1;
    border: 1px solid white;
    box-shadow: 0 0 0 1px var(--color-teal);
}

.dim-dot {
    background-color: #999;
    opacity: 0.4;
}

/* =========================================================
   ★★★ 10. 手机端适配 (Mobile Responsive) ★★★
   ========================================================= */
@media screen and (max-width: 768px) {
    
    /* 1. 全局布局 */
    .main-grid {
        display: flex;
        flex-direction: column;
        height: calc(100vh - 60px); 
        overflow: hidden;
    }

    /* 2. Header 更窄更紧凑 */
    header { height: 45px; padding: 0 15px; }
    .logo { font-size: 1.2rem; }
    .avatar-small { width: 28px; height: 28px; }

    /* 3. 地图区域：高度 45vh，为弹窗留空间 */
    .map-container {
        order: -1; 
        height: 45vh; /* 增加高度 */
        flex-shrink: 0;
        z-index: 100;
        position: relative;
        border-bottom: 1px solid #ddd;
    }

    /* 4. 隐藏左侧面板 */
    .left-panel { display: none; }

    /* 5. 顶部 Filter 栏压缩 */
    .map-controls-overlay {
        top: 5px;
        width: 95%;
        padding: 5px 10px; 
        flex-direction: column; 
        gap: 5px;
        border-radius: 12px;
    }
    
    .left-control-group { margin-right: 0; width: 100%; gap: 5px; }
    
    /* Filter Tags 更小 */
    .map-filter-group { gap: 4px; }
    .map-filter-label { font-size: 0.7rem; }
    .tag { padding: 4px 8px; font-size: 0.65rem; }
    
    /* 搜索栏更小 */
    .search-wrapper input { padding: 6px 10px 6px 28px; font-size: 0.7rem; }
    .search-icon { font-size: 0.7rem; left: 8px; }

    /* 6. 月份滑块：显示并紧凑排列 */
    .map-slider-group { 
        display: flex; 
        width: 100%; 
        margin-top: 2px;
        gap: 8px;
    }
    .map-slider-label { font-size: 0.7rem; width: 50px; }
    .map-slider-group input[type=range] { flex: 1; height: 4px; }

    /* 7. Reset 按钮 */
    .reset-map-btn { 
        bottom: 50px; /* 避开 start-btn */
        right: 10px; 
        padding: 4px 8px; 
        font-size: 0.7rem;
    }
    
    /* 8. Start Planning 按钮 */
    .start-btn { 
        position: absolute; 
        bottom: 10px; /* 固定在地图底部 */
        left: 50%;
        transform: translateX(-50%);
        padding: 8px 25px; 
        font-size: 0.85rem;
        z-index: 1001; 
        box-shadow: 0 4px 15px rgba(191, 67, 40, 0.5); 
        white-space: nowrap;
        width: auto;
    }

    /* 9. 弹窗适配 (手机端特别修复) */
    .leaflet-popup-content-wrapper {
        border-radius: 8px;
    }
    
    .leaflet-popup-content {
        /* 核心修复：手机上由 220px 改为 300px */
        width: 300px !important; 
        max-width: 85vw; /* 兜底 */
        margin: 0;
    }
    
    /* 核心修复：高度改为自适应 (auto) */
    .custom-popup { 
        height: auto; 
        min-height: 140px; 
    } 
    
    .popup-left { 
        width: 100px; /* 图片稍微给宽一点 */ 
    }
    
    .popup-right {
        padding: 10px; 
    }
    
    .popup-title { font-size: 0.9rem; margin-bottom: 2px; padding-right: 0; }
    .popup-meta-row { font-size: 0.7rem; margin-bottom: 3px; }
    
    /* 手机上可以显示 2 行描述 */
    .popup-desc { 
        display: -webkit-box; 
        -webkit-line-clamp: 2; 
        font-size: 0.7rem;
        margin-bottom: 6px;
    } 
    
    .official-link-btn { bottom: 5px; font-size: 0.6rem; padding: 2px 6px; width: 90%; }
    .popup-wishlist-btn { padding: 5px; font-size: 0.7rem; }
    .popup-facilities { margin-top: 4px; padding-top: 4px; display: none; }

    /* 10. 右侧面板 (Feed) */
    .right-panel {
        flex: 1; 
        border-left: none;
        border-radius: 20px 20px 0 0; 
        margin-top: -15px; 
        background: #f8f8f8;
        box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
        z-index: 200;
        position: relative;
        overflow-y: auto;
    }

    .app-content-area { background: #f8f8f8; padding-top: 10px; }
    .feed-container { padding: 10px; gap: 8px; grid-template-columns: 1fr 1fr; }
    .feed-card { box-shadow: none; border: 1px solid #eee; }
    
    .xhs-footer { padding-bottom: 20px; height: 60px; }
}