/* =========================================
   1. 基础重置 & 全局
   ========================================= */
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background-color: #f7f8fa; margin: 0; padding: 0; color: #333; -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }
.no-scroll { overflow: hidden; }

/* 底部导航 (固定) */
.bottom-nav { position: fixed; bottom: 0; left: 0; width: 100%; height: 60px; background: white; display: flex; justify-content: space-around; align-items: center; border-top: 1px solid #eee; z-index: 1000; padding-bottom: env(safe-area-inset-bottom); }
.nav-item { border: none; background: none; font-size: 14px; color: #999; display: flex; flex-direction: column; align-items: center; }
.nav-item.active { color: #333; font-weight: bold; }

/* 🆕 [修改点2] 页面容器底部距离缩至 40px，与底部导航栏高度完美咬合 */
#app-container { padding-bottom: 40px; }

/* 彻底消除多余白边 */
.page { display: none; width: 100%; animation: fadeIn 0.3s; padding-bottom: 0px; }
.page.active { display: block; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* 空状态统一美化 */
.empty-hint {
    text-align: center;
    color: #999;
    font-size: 16px;
    margin-top: 50px;
    padding: 20px;
}

/* =========================================
   2. 发现页 (Feed)
   ========================================= */
.sticky-header { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    background: rgba(255,255,255,0.95); 
    backdrop-filter: blur(10px); 
    z-index: 900; 
    padding-top: 10px; 
    box-shadow: 0 1px 10px rgba(0,0,0,0.05); 
}

.header-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; height: 40px; }
.header-tabs { display: flex; gap: 20px; padding: 0 20px 10px; height: 30px; }
.tab-btn { background: none; border: none; font-size: 15px; color: #999; padding-bottom: 5px; }
.tab-btn.active { color: #333; font-weight: bold; border-bottom: 2px solid #333; }

/* 🆕 [修改点1] 帖子列表顶部距离再缩小至 15px */
.feed-list { 
    padding: 15px 15px 20px 15px; 
}
.feed-card { background: white; border-radius: 12px; overflow: hidden; margin-bottom: 15px; box-shadow: 0 2px 8px rgba(0,0,0,0.03); }
.card-cover { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 12px; }
.card-title { font-weight: bold; font-size: 16px; margin-bottom: 5px; }
.card-tags span { display: inline-block; background: #f0f2f5; color: #666; font-size: 10px; padding: 2px 6px; border-radius: 4px; margin-right: 5px; }
.official-tag { background: #e3f2fd !important; color: #2196F3 !important; }
.card-actions-row { display: flex; justify-content: space-between; margin-top: 10px; }

/* =========================================
   3. 地图页 (Map)
   ========================================= */
#baidu-map { width: 100%; height: 100vh; }

.map-right-top-group { position: absolute; top: 30px; right: 15px; display: flex; flex-direction: column; gap: 10px; z-index: 800; }
.map-round-btn { width: 40px; height: 40px; border-radius: 50%; background: white; border: none; box-shadow: 0 2px 8px rgba(0,0,0,0.15); font-size: 18px; display: flex; align-items: center; justify-content: center; color: #333; }

.map-filter-container { position: absolute; top: 30px; left: 15px; z-index: 800; }
.filter-menu { position: absolute; top: 50px; left: 0; background: white; padding: 10px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); width: 100px; }
.filter-menu div { padding: 8px; font-size: 14px; border-bottom: 1px solid #eee; }

.map-mode-btn { position: absolute; bottom: 85px; left: 50%; transform: translateX(-50%); background: white; padding: 8px 16px; border-radius: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.15); border: none; font-weight: bold; font-size: 13px; z-index: 800; color: #333; }
.map-action-group { position: fixed; bottom: 140px; right: 15px; display: flex; flex-direction: column; gap: 15px; z-index: 800; }
.btn-float-action { width: 40px; height: 40px; border-radius: 50%; border: none; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.2); transition: transform 0.2s; }
.btn-float-action:active { transform: scale(0.9); }
.btn-float-publish { background: #333; color: white; font-size: 24px; }
.btn-float-delete { background: white; color: #333; font-weight: bold; font-size: 18px; }
.delete-mode-active #baidu-map { filter: grayscale(0.8) brightness(0.7); }
.delete-badge { position: absolute; top: -10px; right: -10px; width: 20px; height: 20px; background: red; color: white; border-radius: 50%; font-size: 12px; display: flex; align-items: center; justify-content: center; border: 2px solid white; box-shadow: 0 2px 5px rgba(0,0,0,0.3); z-index: 10000; pointer-events: auto; }
#nav-panel { position: absolute; bottom: -200px; left: 15px; right: 15px; background: #333; color: white; border-radius: 16px; padding: 20px; transition: bottom 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 900; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
#nav-panel.active { bottom: 80px; }
.nav-info { font-size: 18px; font-weight: bold; }
.nav-exit-btn { background: rgba(255,255,255,0.2); border: none; color: white; padding: 8px 16px; border-radius: 20px; }

/* =========================================
   4. 个人页 (Profile)
   ========================================= */
#page-profile {
    background-color: white !important;
}

.profile-header-bg { 
    position: fixed; 
    top: 0; left: 0; width: 100%;
    z-index: 5; 
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%); 
    padding: 30px 20px 100px 20px; 
    display: block; box-sizing: border-box; 
}

.profile-user-row { display: flex; align-items: center; gap: 20px; }
.profile-avatar-container { position: relative; width: 80px; height: 80px; }
.profile-avatar { width: 80px; height: 80px; border-radius: 50%; border: 3px solid white; box-shadow: 0 4px 15px rgba(0,0,0,0.1); object-fit: cover; }
.avatar-edit-hint { position: absolute; bottom: 0; right: 0; background: #333; color: white; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; display: flex; align-items: center; justify-content: center; border: 2px solid white; }
.profile-info-text { flex: 1; }
.profile-name-row { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.profile-name { font-size: 22px; font-weight: bold; color: #333; }
.icon-edit { background: none; border: none; color: #999; font-size: 16px; }
.profile-stats-row { display: flex; gap: 20px; margin-bottom: 8px; }
.stat-box { display: flex; flex-direction: column; }
.stat-num { font-weight: bold; font-size: 16px; }
.stat-label { font-size: 12px; color: #999; }
.profile-bio-row { font-size: 13px; color: #666; display: flex; align-items: center; gap: 5px; }

.profile-body-card { 
    background: white; 
    margin-top: 190px; 
    border-top-left-radius: 30px; 
    border-top-right-radius: 30px; 
    padding: 0px 20px 25px 20px; 
    position: relative; 
    z-index: 10; 
    box-shadow: 0 -5px 20px rgba(0,0,0,0.03); 
    min-height: 100vh; 
    padding-bottom: 120px; 
    box-sizing: border-box;
}

/* 🆕 [修改点3] 灵动标签设计：优化了字体、排版和下划线 */
.profile-tabs { 
    display: flex; 
    border-bottom: 1px solid #f0f0f0; 
    margin-bottom: 20px; 
    position: sticky; 
    top: 0; 
    background: white; 
    z-index: 100; 
    padding-top: 20px; 
}

.p-tab { 
    flex: 1; 
    text-align: center; 
    padding: 10px 0 15px 0; 
    color: #999; 
    font-weight: 500; 
    font-size: 15px; 
    position: relative; 
    transition: all 0.2s ease; /* 加入丝滑过渡动画 */
}

/* 选中的标签放大、加粗、颜色变深 */
.p-tab.active { 
    color: #333; 
    font-size: 16px; 
    font-weight: bold; 
}

/* 下划线变短变粗润，更有现代感 */
.p-tab.active::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 24px;  /* 短一点 */
    height: 4px;  /* 厚一点 */
    background: #333; 
    border-radius: 2px; /* 圆润的角 */
}

.badges-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 10px; }
.badge-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.badge-icon-box { width: 60px; height: 60px; background: #f9f9f9; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; overflow: hidden; border: 1px solid #eee; }
.badge-icon-box img { width: 100%; height: 100%; object-fit: cover; }
.badge-icon-box.grayscale { filter: grayscale(100%); opacity: 0.5; }
.badge-name { font-size: 12px; color: #666; }
.exp-section { background: white; border-radius: 12px; padding: 15px; margin-bottom: 15px; border: 1px solid #f5f5f5; }
.exp-header { font-size: 14px; font-weight: bold; margin-bottom: 15px; color: #333; display: flex; justify-content: space-between; align-items: center; }
.time-display { font-size: 24px; font-weight: 300; color: #333; }
.exp-row { display: flex; gap: 15px; }
.exp-col-left { flex: 1; display: flex; flex-direction: column; align-items: center; }
.exp-col-right { flex: 1; position: relative; }
.donut-chart { width: 100px; height: 100px; border-radius: 50%; position: relative; display: flex; align-items: center; justify-content: center; }
.donut-hole { width: 60px; height: 60px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #666; z-index: 2; }
.mood-legend-small { margin-top: 10px; width: 100%; }
.legend-item { font-size: 10px; color: #666; display: flex; align-items: center; margin-bottom: 4px; }
.legend-dot { width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; }
.mini-map-box-vertical { width: 100%; height: 140px; border-radius: 8px; overflow: hidden; background: #eee; }
.mini-map-overlay { position: absolute; top:0; left:0; width:100%; height:100%; z-index:10; }
.timeline-list { border-left: 2px solid #eee; margin-left: 10px; padding-left: 20px; padding-top: 10px; }
.timeline-item { position: relative; margin-bottom: 25px; }
.timeline-item::before { content: ''; position: absolute; left: -26px; top: 5px; width: 10px; height: 10px; background: #ddd; border-radius: 50%; border: 2px solid white; }
.t-date { font-size: 12px; color: #999; margin-bottom: 5px; }
.t-card { display: flex; background: #f9f9f9; padding: 10px; border-radius: 10px; gap: 10px; align-items: center; }
.t-thumb { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; }

/* =========================================
   5. 全屏页通用
   ========================================= */
.full-screen-page { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: white; z-index: 2000; transform: translateY(100%); transition: transform 0.3s; display: block !important; }
.full-screen-page.active { transform: translateY(0); }

/* =========================================
   6. 消息列表页
   ========================================= */
.chat-list-header { 
    position: fixed; 
    top: 0; left: 0; width: 100%;
    display: flex; 
    align-items: center; 
    padding: 15px;
    padding-top: 20px !important; 
    border-bottom: 1px solid #f5f5f5; 
    font-weight: bold; 
    font-size: 18px; 
    background: white; 
    height: 70px; 
    box-sizing: border-box;
    z-index: 100;
}

#chat-list-container {
    padding-top: 80px !important; 
}

.chat-list-item { display: flex; padding: 15px; border-bottom: 1px solid #f9f9f9; align-items: center; background: white; }
.chat-avatar { width: 50px; height: 50px; border-radius: 50%; margin-right: 15px; object-fit: cover; }
.chat-info { flex: 1; }
.chat-name { font-weight: bold; margin-bottom: 5px; }
.chat-preview { font-size: 13px; color: #999; }
.chat-time { font-size: 12px; color: #ccc; }

/* =========================================
   7. 聊天详情页
   ========================================= */
#page-chat-detail { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: 2100;
    background: #f7f8fa;
    display: block; 
    padding-bottom: 0 !important;
}

.chat-header { 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px !important; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 0 15px; 
    padding-top: 20px !important; 
    border-bottom: 1px solid #f5f5f5; 
    background: white; 
    z-index: 10; 
    box-sizing: border-box;
}

.chat-box { 
    position: absolute;
    top: 70px !important; 
    bottom: 70px; 
    width: 100%;
    overflow-y: auto; 
    padding: 20px 15px; 
    background: #f9f9f9; 
    box-sizing: border-box;
}

.chat-input-area { 
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    min-height: 60px;
    padding: 15px; 
    background: white; 
    border-top: 1px solid #eee; 
    display: flex; 
    gap: 10px; 
    padding-bottom: 30px; 
    box-sizing: border-box;
    z-index: 20;
}

.chat-input-area input { flex: 1; padding: 12px; background: #f5f5f5; border: none; border-radius: 25px; outline: none; }
.chat-input-area button { background: #333; color: white; border: none; padding: 0 20px; border-radius: 25px; font-weight: bold; }

.chat-msg { max-width: 75%; padding: 12px 16px; border-radius: 20px; margin-bottom: 15px; font-size: 15px; line-height: 1.4; position: relative; word-wrap: break-word; }
.chat-msg.them { background: white; align-self: flex-start; color: #333; border: 1px solid #eee; border-top-left-radius: 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.03); float: left; clear: both; }
.chat-msg.me { background: #333; align-self: flex-end; color: white; border-top-right-radius: 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); float: right; clear: both; }
.chat-box::after { content: ""; display: table; clear: both; }

/* =========================================
   8. 弹窗与详情页
   ========================================= */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 3000; display: flex; justify-content: center; align-items: center; backdrop-filter: blur(5px); }
.treasure-card { background: white; width: 85%; border-radius: 20px; padding: 25px; position: relative; animation: popIn 0.3s; }
.detail-nav { position: sticky; top: 0; background: rgba(255,255,255,0.9); padding: 15px; display: flex; justify-content: space-between; align-items: center; z-index: 10; border-bottom: 1px solid #eee; }
.full-page-slider { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: white; z-index: 2500; transform: translateX(100%); transition: transform 0.3s; overflow-y: auto; }
.slide-in { transform: translateX(0); }
.detail-hero-img { width: 100%; height: 300px; object-fit: cover; }
.detail-body { padding: 20px; }
.header-user { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.user-row { display: flex; align-items: center; gap: 10px; }
.mood-section { padding: 20px; text-align: center; }
.mood-bottle-visual { position: relative; height: 80px; display: flex; align-items: center; justify-content: center; }
.bubble { position: absolute; border-radius: 50%; opacity: 0.6; filter: blur(5px); }
.b1 { width: 50px; height: 50px; background: orange; left: 30%; top: 10px; animation: float 3s infinite ease-in-out; }
.b2 { width: 40px; height: 40px; background: purple; right: 30%; top: 30px; animation: float 4s infinite ease-in-out reverse; }
.b3 { width: 30px; height: 30px; background: pink; top: 0px; animation: float 5s infinite ease-in-out; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.mood-action-area { margin-top: 15px; }
.mood-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.mood-grid button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #eee; background: white; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.comment-list { margin-top: 15px; }
.c-item { margin-bottom: 10px; font-size: 14px; line-height: 1.4; border-bottom: 1px solid #f9f9f9; padding-bottom: 5px; }
.c-user { font-weight: bold; margin-right: 5px; color: #555; }
.c-user.me { color: #333; }
.trash-icon { color: #ccc; margin-left: 10px; font-size: 12px; cursor: pointer; }
.comment-input-area { display: flex; gap: 10px; margin-top: 15px; }
.comment-input-area input { flex: 1; padding: 10px; border: 1px solid #eee; border-radius: 20px; outline: none; }
.comment-input-area button { background: #333; color: white; border: none; padding: 0 15px; border-radius: 20px; }
.btn { padding: 10px 20px; border-radius: 25px; border: none; font-weight: bold; font-size: 14px; }
.btn-primary { background: #333; color: white; }
.btn-outline { background: white; border: 1px solid #ddd; color: #333; }
.btn-block { width: 100%; margin-top: 15px; padding: 12px; }
.icon-btn-small { background: none; border: none; font-size: 20px; }
.back-text-btn { background: none; border: none; font-size: 16px; color: #666; }
.search-confirm-btn { background: #333; color: white; border: none; padding: 6px 15px; border-radius: 15px; }
.back-icon-btn { background: none; border: none; font-size: 22px; color: #333; padding: 0; }
.header-title { font-weight: bold; font-size: 16px; }
.map-custom-marker { width: 44px; height: 44px; border-radius: 50%; border: 2px solid white; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.3); background: white; display: flex; align-items: center; justify-content: center; position: relative; }
.map-custom-marker img { width: 100%; height: 100%; object-fit: cover; }
.map-mood-marker { font-size: 24px; text-shadow: 0 2px 5px rgba(0,0,0,0.3); }

/* =========================================
   9. 搜索页 及其他页面 (Search & Publish)
   ========================================= */
#page-search {
    background-color: #f7f8fa !important;
}
.search-header-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    padding-top: 20px; 
    height: 70px;
    box-sizing: border-box;
    background: white; 
    border-bottom: 1px solid #f5f5f5;
    position: sticky;
    top: 0;
    z-index: 100;
}
.search-input-wrapper {
    flex: 1;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
}
.search-input-wrapper input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
}

.publish-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid #eee; background: white; position: sticky; top: 0; z-index: 10; }
.form-group { padding: 20px; }
.upload-box { width: 100%; height: 200px; background: #f5f5f5; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #999; flex-direction: column; margin-bottom: 20px; position: relative; overflow: hidden; border: 2px dashed #ddd; }
.upload-box img { width: 100%; height: 100%; object-fit: cover; position: absolute; top:0; left:0; }
.form-input { width: 100%; padding: 15px 0; border: none; border-bottom: 1px solid #eee; font-size: 16px; outline: none; margin-bottom: 10px; border-radius: 0; background: transparent; }
.form-label { font-size: 12px; color: #999; margin-top: 15px; display: block; }
.chip-group { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.chip { padding: 8px 16px; background: #f5f5f5; border-radius: 20px; font-size: 13px; color: #666; border: 1px solid transparent; }
.chip.active { background: #333; color: white; border-color: #333; }
.location-display { padding: 10px; background: #f9f9f9; border-radius: 8px; font-size: 13px; color: #555; display: flex; align-items: center; gap: 5px; margin-top: 5px; }
.action-sheet { width: 100%; background: white; border-top-left-radius: 20px; border-top-right-radius: 20px; padding: 20px; text-align: center; }
.action-sheet button { width: 100%; padding: 15px; border: none; background: white; font-size: 16px; border-bottom: 1px solid #f5f5f5; display: block; }
.action-sheet button:last-child { border-bottom: none; font-weight: bold; margin-top: 10px; }
#page-avatar-view { background: black !important; display: flex; align-items: center; justify-content: center; flex-direction: column; }
/* =========================================
   新增：详情页 5.0 精装修版样式 (不影响原有结构)
   ========================================= */

.detail-scroll-content { height: 100vh; overflow-y: auto; padding-bottom: 50px; }
.header-theme-title { font-size: 18px; font-weight: bold; color: #333; letter-spacing: 1px; }

/* 标题和圆角图片 */
.detail-main-title { margin-top: 5px; margin-bottom: 15px; font-size: 22px; color: #222; }
.detail-img-container { padding: 0 5px; margin-bottom: 15px; }
.detail-hero-img-rounded { width: 100%; height: 260px; object-fit: cover; border-radius: 16px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); }

/* 用户信息 */
.header-user { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; margin-top: 15px; padding: 0 5px;}
.user-row { display: flex; align-items: center; gap: 10px; }
.desc-text { line-height: 1.6; color: #555; margin-bottom: 20px; padding: 0 5px; font-size: 15px;}

/* 情绪按钮交互与高光 */
.mood-section { padding: 0 5px; text-align: center; }
.mood-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 15px; }
.mood-btn { width: 45px; height: 45px; border-radius: 50%; border: 1px solid #eee; background: white; font-size: 22px; display: flex; align-items: center; justify-content: center; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.mood-btn.selected { transform: scale(1.2); border-color: #333; background: #333; box-shadow: 0 4px 12px rgba(0,0,0,0.2); z-index: 10; }

/* 绘制情绪玻璃瓶 */
.mood-bottle-wrapper { display: flex; flex-direction: column; align-items: center; margin-top: 20px; }
/* 绘制更宽的情绪玻璃瓶 */
.bottle-neck { width: 55px; height: 20px; background: rgba(240, 248, 255, 0.6); border: 3px solid #dce4eb; border-bottom: none; border-radius: 6px 6px 0 0; position: relative; z-index: 2; margin: 0 auto; }
.bottle-neck::after { content: ''; position: absolute; top: 4px; left: 8px; right: 8px; height: 3px; background: rgba(255,255,255,0.8); border-radius: 2px; }
.bottle-body { width: 220px; height: 160px; background: linear-gradient(135deg, rgba(240, 248, 255, 0.4) 0%, rgba(200, 220, 240, 0.2) 100%); border: 3px solid #dce4eb; border-radius: 70px 70px 30px 30px; position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; box-shadow: inset -10px -10px 20px rgba(0,0,0,0.05), inset 10px 10px 20px rgba(255,255,255,0.8); margin: 0 auto;}

/* 动态气泡通用样式 */
.bubble { position: absolute; border-radius: 50%; opacity: 0.8; filter: blur(6px); animation: floatBubble 4s infinite ease-in-out; }

/* 用户自己点出来的那颗气泡，加个白边，位置稍微高一点以示区别 */
.my-active-bubble { z-index: 1; animation-duration: 3s; border: 1px solid rgba(255,255,255,0.6); }

@keyframes floatBubble {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-12px) scale(1.05); }
}

/* 讨论区优化 */
.comment-section { padding: 0 5px; margin-top: 20px; text-align: left; }
/* 讨论区输入框排版（防挤压） */
.new-input-style { display: flex; gap: 10px; margin-bottom: 20px; align-items: center; width: 100%; box-sizing: border-box; }
.new-input-style input { flex: 1; min-width: 0; padding: 12px 15px; border: 1px solid #e0e0e0; border-radius: 25px; background: #fafafa; outline: none; font-size: 14px; }
/* 强制按钮宽度 70px，绝不换行，绝不缩小 */
.new-input-style button { flex: 0 0 70px; width: 70px; height: 42px; background: #333; color: white; border: none; border-radius: 25px; font-weight: bold; white-space: nowrap; word-break: keep-all; font-size: 14px; display: flex; align-items: center; justify-content: center; padding: 0; }
.comment-list { margin-top: 15px; }
.c-item { display: flex; align-items: flex-start; gap: 10px; border-bottom: 1px solid #f9f9f9; padding-bottom: 15px; margin-bottom: 15px; }
.c-user { font-size: 14px; font-weight: bold; color: #555; display: inline-block; margin-bottom: 2px;}
.c-user.me { color: #333; }
.c-avatar-circle { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #eee; flex-shrink: 0;}

/* 底部按钮排版 */
.action-buttons-bottom { display: flex; justify-content: space-between; gap: 10px; padding: 0 5px; }
/* 缩减详情页底部空白，利用安全区适配刘海屏和全面屏 */
.detail-scroll-content { padding-bottom: calc(15px + env(safe-area-inset-bottom)) !important; }

/* 首次解锁：恭喜弹窗特效 */
.toast-congrats {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); z-index: 4000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
    backdrop-filter: blur(4px);
}
.toast-congrats.toast-show { opacity: 1; pointer-events: auto; }
.toast-content {
    background: white; padding: 30px; border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2); text-align: center; width: 70%;
    transform: scale(0.7); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.toast-congrats.toast-show .toast-content { transform: scale(1); }