/* ================================
   云祭扫 H5 - 树洞页面完整样式
   粉紫色温柔治愈风格
   ================================ */

/* ============ 页面基础 ============ */
.hole-page {
    background: #F5F0F7;
    min-height: 100vh;
    padding-bottom: 70px;
}

/* ============ 头部 ============ */
.hole-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 50px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid #f0e5f5;
}

.hole-header-title {
    font-size: 17px;
    font-weight: bold;
    color: #2D1B3D;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hole-header-icon {
    font-size: 20px;
}

.hole-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hh-dot {
    font-size: 14px;
    color: #999;
}

.hh-dash {
    font-size: 16px;
    color: #999;
    font-weight: bold;
}

.hh-circle {
    font-size: 14px;
    color: #999;
}

/* ============ 内容区 ============ */
.hole-content {
    padding: 12px;
    padding-bottom: 90px;
}

/* ============ 欢迎横幅 ============ */
.hole-welcome {
    background: linear-gradient(135deg, #F8E8FF 0%, #FDD8EC 100%);
    border-radius: 16px;
    padding: 20px 18px 16px;
    position: relative;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(180, 120, 200, 0.1);
}

.hole-welcome-tree {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 48px;
    opacity: 0.8;
}

.hole-welcome-title {
    font-size: 18px;
    font-weight: bold;
    color: #4A2D5A;
    margin-bottom: 8px;
    text-align: center;
}

.hole-welcome-desc {
    font-size: 13px;
    color: #7B5F8C;
    line-height: 1.6;
    margin-bottom: 12px;
    text-align: center;
}

.hole-welcome-link {
    display: block;
    text-align: center;
    font-size: 13px;
    color: #A855F7;
    font-weight: 500;
    cursor: pointer;
}

/* ============ 心情筛选 ============ */
.hole-mood-filter {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 16px;
    -webkit-overflow-scrolling: touch;
}

.hole-mood-filter::-webkit-scrollbar {
    display: none;
}

.mood-tab {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #E8DCF0;
    border-radius: 20px;
    font-size: 13px;
    color: #6B5B7B;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.mood-tab.active {
    background: linear-gradient(135deg, #A855F7, #C084FC);
    border-color: transparent;
    color: #fff;
    font-weight: bold;
}

.mood-tab b {
    font-weight: 600;
    font-size: 12px;
}

.mood-tab.active b {
    color: #fff;
}

/* ============ 空状态 ============ */
.hole-empty-state {
    background: #fff;
    border-radius: 14px;
    padding: 24px 18px;
    text-align: center;
    border: 1px solid #F0E5F5;
}

.hole-empty-text {
    font-size: 14px;
    color: #6B5B7B;
    margin-bottom: 10px;
}

.hole-empty-count {
    font-size: 13px;
    color: #999;
    margin-bottom: 6px;
}

.hole-empty-lock {
    font-size: 13px;
    color: #999;
}

/* ============ 日期分组 ============ */
.hole-day-group {
    margin-bottom: 20px;
}

.hole-day-marker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.hole-day-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #A855F7, #C084FC);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    flex-shrink: 0;
}

.hole-day-label {
    font-size: 14px;
    font-weight: bold;
    color: #4A2D5A;
}

.hole-day-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 38px;
}

/* ============ 留言卡片 ============ */
.hole-message-card {
    background: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.06);
    border: 1px solid #F3ECF8;
}

.hole-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.hole-time {
    font-size: 13px;
    color: #999;
    font-weight: 500;
}

.hole-mood-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
}

.hole-mood-tag.mood-平静 { background: #87CEEB; }
.hole-mood-tag.mood-开心 { background: #FFB84D; }
.hole-mood-tag.mood-焦虑 { background: #FF8C8C; }
.hole-mood-tag.mood-难过 { background: #6B8DD6; }
.hole-mood-tag.mood-感恩 { background: #7BC67E; }
.hole-mood-tag.mood-失落 { background: #999; }
.hole-mood-tag.mood-思考 { background: #B088F9; }
.hole-mood-tag.mood-生气 { background: #FF6B6B; }
.hole-mood-tag.mood-顿悟 { background: #F5A623; }
.hole-mood-tag.mood-决心 { background: #FF7043; }
.hole-mood-tag.mood-自定义 { background: #BCAAA4; }

.hole-msg-content {
    font-size: 14px;
    color: #3C2D4F;
    line-height: 1.7;
    margin-bottom: 6px;
}

.hole-location {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* ============ 浮动按钮 ============ */
.hole-fab {
    position: fixed;
    right: 20px;
    bottom: 90px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #A855F7, #C084FC);
    color: #fff;
    font-size: 32px;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.4);
    z-index: 50;
    transition: transform 0.2s;
}

.hole-fab:active {
    transform: scale(0.95);
}

/* ============ 底部导航 ============ */
.hole-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    display: flex;
    border-top: 1px solid #F0E5F5;
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
}

.hole-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #999;
    gap: 2px;
    transition: color 0.2s;
}

.hole-nav-item.active {
    color: #A855F7;
}

.hole-nav-icon {
    font-size: 20px;
}

.hole-nav-label {
    font-size: 11px;
}

/* ================================
   发布页面样式
   ================================ */
.hole-publish-page {
    background: #F5F0F7;
}

.publish-date-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.publish-date-info {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.publish-date-label {
    font-size: 16px;
    font-weight: bold;
    color: #2D1B3D;
}

.publish-time {
    font-size: 16px;
    font-weight: bold;
    color: #2D1B3D;
}

.publish-privacy {
    display: flex;
    gap: 6px;
}

.privacy-option {
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    border: 1px solid #E8DCF0;
    color: #999;
    transition: all 0.2s;
}

.privacy-option.active {
    font-weight: bold;
    border-color: transparent;
}

.privacy-private.active {
    background: linear-gradient(135deg, #A855F7, #C084FC);
    color: #fff;
}

.privacy-public.active {
    background: linear-gradient(135deg, #F87171, #FB923C);
    color: #fff;
}

.publish-section-title {
    font-size: 14px;
    font-weight: 500;
    color: #6B5B7B;
    margin-bottom: 12px;
}

/* ============ 心情选择 ============ */
.publish-mood-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.mood-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 6px;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.mood-item:active {
    transform: scale(0.95);
}

.mood-item.selected {
    background: linear-gradient(135deg, #F8E8FF, #FDD8EC);
    border-color: #A855F7;
}

.mood-emoji {
    font-size: 22px;
}

.mood-name {
    font-size: 12px;
    color: #6B5B7B;
}

.mood-item.selected .mood-name {
    color: #A855F7;
    font-weight: bold;
}

/* ============ 文本输入 ============ */
.publish-textarea-wrap {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.06);
}

.publish-textarea {
    width: 100%;
    min-height: 160px;
    border: none;
    outline: none;
    resize: none;
    font-size: 15px;
    line-height: 1.7;
    color: #3C2D4F;
    font-family: inherit;
    background: transparent;
}

.publish-textarea::placeholder {
    color: #B8A8C8;
}

.publish-textarea-hint {
    position: absolute;
    bottom: 12px;
    left: 16px;
    font-size: 14px;
    color: #C4B5D4;
    pointer-events: none;
}

.publish-location-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 16px;
}

.publish-location-icon {
    font-size: 16px;
}

.publish-location-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: #3C2D4F;
    background: transparent;
}

/* ============ 工具栏 ============ */
.publish-toolbar {
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #F0E5F5;
    z-index: 90;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
}

.publish-tools {
    display: flex;
    gap: 6px;
}

.publish-tool-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #F5F0F7;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.publish-tool-btn:active {
    background: #E8DCF0;
}

.publish-count {
    font-size: 12px;
    color: #999;
    flex: 1;
    text-align: right;
}

.publish-submit-btn {
    padding: 8px 24px;
    background: linear-gradient(135deg, #A855F7, #C084FC);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.3);
    transition: all 0.2s;
}

.publish-submit-btn:active {
    transform: scale(0.96);
}

/* ============ 图片预览（发布页） ============ */
.publish-image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 0 12px;
    margin-bottom: 4px;
}

.publish-image-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #E8DCF0;
    flex-shrink: 0;
}

.publish-image-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.publish-image-del {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #FF6B6B;
    color: #fff;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* ============ 图片展示（列表页） ============ */
.hole-images {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    margin-bottom: 6px;
}

.hole-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid #F0E5F5;
    transition: transform 0.2s;
}

.hole-image:active {
    transform: scale(0.95);
}
