/* 幻月日常（陪玩/客服/老板发帖 + 评论 + 二级回复 + 点赞 + 关注 + 送礼）—— 店长 2026-10-18 / 10-19
   三处共用这一份样式：首页分区（index.html）、列表页（daily.html）、详情页（post.html）。
   帖子卡按参考图（贴吧/KOOK 那类）：头像 + 昵称 + 徽章 + 日期、右上角「礼物 / + 关注」、
   正文（#话题 浅蓝）、图片三列方图、底部一行等宽「赞 / 评论 / 分享」。 */

.daily-list { display: grid; gap: 14px; }
.daily-list.is-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .daily-list.is-cards { grid-template-columns: minmax(0, 1fr); } }

/* ── 列表页布局：左侧「热门 / 最新 / 关注」+ 右侧内容 ───────────────────── */
.daily-layout { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 20px; align-items: start; }
.daily-main { min-width: 0; display: grid; gap: 16px; }
.daily-nav { position: sticky; top: 86px; display: grid; gap: 4px; padding: 10px; border: 1px solid #e9edf4; border-radius: 16px; background: #fff; box-shadow: 0 6px 20px rgba(26, 34, 46, .05); }
.daily-nav button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px 12px; border: 0; border-radius: 11px; background: transparent; color: #5a6570; font: inherit; font-size: 14px; font-weight: 700; text-align: left; cursor: pointer; transition: background .15s, color .15s; }
.daily-nav button:hover { background: #f5f8fc; color: #2b3340; }
.daily-nav button.is-on { background: #eef3fa; color: #3d5a72; }
.daily-nav svg { width: 17px; height: 17px; flex: 0 0 17px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) {
  .daily-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .daily-nav { position: static; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 6px; }
  .daily-nav button { justify-content: center; padding: 9px 6px; }
}

/* ── 帖子卡 ─────────────────────────────────────────────────────────────── */
.daily-card { display: flex; flex-direction: column; padding: 18px 20px 12px; border: 1px solid #e9edf4; border-radius: 16px; background: #fff; box-shadow: 0 6px 20px rgba(26, 34, 46, .05); }
.daily-card.is-clickable { cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.daily-card.is-clickable:hover { border-color: #d7e0ee; box-shadow: 0 10px 26px rgba(26, 34, 46, .09); }
.daily-card.is-pinned { border-color: #cfd9ea; box-shadow: 0 8px 24px rgba(57, 72, 118, .10); }

.daily-head { display: flex; align-items: flex-start; gap: 12px; }
.daily-avatar { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; object-fit: cover; background: #f2f4f7; }
.daily-meta { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; padding-top: 2px; }
.daily-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 15px; font-weight: 800; color: #2b3340; }
.daily-time { font-size: 12px; color: #9aa7ba; }
.daily-role { flex: 0 0 auto; padding: 1px 7px; border-radius: 7px; background: #eef2f7; color: #5a6570; font-size: 11px; font-weight: 800; }
.daily-role.is-player { background: #eaf1f9; color: #3d5a72; }
.daily-role.is-owner { background: #fdf2e6; color: #a9762f; }
.daily-role.is-staff { background: #eef7f1; color: #2f7d55; }
.daily-role.is-pinned { background: #e9edff; color: #566dcc; }
.daily-role.is-left { background: #f2f4f7; color: #98a4b5; }

.daily-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.daily-follow { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border: 1px solid #cfdcf0; border-radius: 11px; background: #fff; color: #4b6b95; font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.daily-follow:hover { background: #f4f8fd; }
.daily-follow.is-on { border-color: #e3e8f0; color: #98a4b5; }
.daily-del { border: 0; background: transparent; color: #a7b3c6; font: inherit; font-size: 12.5px; cursor: pointer; padding: 4px 2px; }
.daily-del:hover { color: #d95670; }

.daily-text { margin: 14px 0 0; font-size: 15px; font-weight: 600; line-height: 1.7; color: #2b3340; white-space: pre-wrap; word-break: break-word; }
.daily-card.is-detail .daily-text { font-size: 16px; font-weight: 700; }
.daily-topic { color: #4b7bd6; font-weight: 700; }

.daily-images { display: grid; gap: 8px; margin-top: 12px; }
.daily-images.is-1 { grid-template-columns: minmax(0, 1fr); }
.daily-images.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.daily-images.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.daily-image { display: block; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #f2f4f7; cursor: zoom-in; }
.daily-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.daily-images.is-1 .daily-image img { max-height: 340px; }
.daily-images.is-2 .daily-image, .daily-images.is-3 .daily-image { aspect-ratio: 1 / 1; }

.daily-foot { display: flex; align-items: center; gap: 6px; margin-top: 14px; padding: 8px 0 4px; border-top: 1px solid #f1f4f9; }
.daily-btn { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; border: 0; border-radius: 9px; background: transparent; color: #7b8798; font: inherit; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.daily-btn:hover { background: #f6f8fb; color: #3d5a72; }
.daily-btn.is-on { color: #d4567f; }
.daily-gift-btn:hover { background: #fdf5f8; color: #d4567f; }
.daily-like-icon, .daily-comment-icon, .daily-share-icon, .daily-gift-icon { font-size: 15px; line-height: 1; }

/* ── 详情页（post.html）────────────────────────────────────────────────── */
.daily-detail-nav { margin-bottom: 12px; }
.daily-back { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 1px solid #e3e8f0; border-radius: 11px; background: #fff; color: #5a6570; font-size: 13.5px; font-weight: 700; text-decoration: none; }
.daily-back:hover { border-color: #c7d2e4; color: #3d5a72; }
.daily-comment-area { margin-top: 16px; }
.daily-compose-bar { display: flex; gap: 12px; padding: 16px 18px; border: 1px solid #e9edf4; border-radius: 16px; background: #fff; box-shadow: 0 6px 20px rgba(26, 34, 46, .05); }
.daily-compose-bar .daily-comment-avatar { width: 40px; height: 40px; }
.daily-compose-main { flex: 1; min-width: 0; display: grid; gap: 10px; }
.daily-compose-main textarea { width: 100%; min-height: 68px; padding: 11px 13px; border: 1px solid #e3e8f0; border-radius: 12px; background: #fafbfd; color: #2b3340; font: inherit; font-size: 14px; line-height: 1.7; resize: vertical; }
.daily-compose-main textarea:focus { outline: none; border-color: #b9c8e4; background: #fff; }
.daily-compose-tools { display: flex; align-items: center; gap: 8px; }
.daily-tool { width: 34px; height: 34px; border: 1px solid #e3e8f0; border-radius: 10px; background: #fff; color: #5a6570; font: inherit; font-size: 15px; cursor: pointer; }
.daily-tool:hover { border-color: #c7d2e4; color: #3d5a72; }
.daily-send { margin-left: auto; height: 36px; padding: 0 20px; border: 0; border-radius: 11px; background: #c7d4ec; color: #fff; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.daily-send:hover { background: #b4c6e4; }
.daily-send:disabled { opacity: .6; cursor: default; }
.daily-emoji-wrap { position: relative; }
.daily-emoji-panel { position: absolute; left: 0; bottom: 42px; z-index: 20; display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; padding: 8px; border: 1px solid #e3e8f0; border-radius: 12px; background: #fff; box-shadow: 0 12px 30px rgba(26, 34, 46, .14); }
.daily-emoji-panel button { width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; font-size: 18px; cursor: pointer; }
.daily-emoji-panel button:hover { background: #f2f5fa; }
.daily-reply-chip { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; padding: 5px 10px; border-radius: 9px; background: #eef3fa; color: #3d5a72; font-size: 12.5px; font-weight: 700; }
.daily-reply-chip button { border: 0; background: transparent; color: #7b8798; font-size: 14px; cursor: pointer; }
.daily-comment-sorts { display: flex; align-items: center; gap: 4px; margin: 16px 0 6px; }
.daily-sort { padding: 6px 12px; border: 0; border-radius: 10px; background: transparent; color: #7b8798; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.daily-sort:hover { background: #f5f8fc; color: #3d5a72; }
.daily-sort.is-on { background: #eef3fa; color: #3d5a72; }
.daily-only-author { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: #7b8798; font-size: 13px; cursor: pointer; }
.daily-only-author input { width: 15px; height: 15px; accent-color: #6f8ec4; }
.daily-comment-list { display: grid; gap: 12px; }
.daily-comment-empty { padding: 26px 16px; border: 1px dashed #e3e8f0; border-radius: 14px; background: #fbfcfe; color: #93a1b5; font-size: 13px; text-align: center; }

.daily-comment-thread { padding: 14px 16px; border: 1px solid #eef1f6; border-radius: 14px; background: #fff; }
.daily-comment { display: flex; gap: 10px; align-items: flex-start; }
.daily-comment-avatar { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; object-fit: cover; background: #f2f4f7; }
.daily-comment-body { min-width: 0; flex: 1; }
.daily-comment-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; font-weight: 800; color: #2b3340; }
.daily-comment-head time { font-weight: 500; color: #9aa7ba; font-size: 12px; }
.daily-comment-text { margin: 5px 0 0; font-size: 14px; line-height: 1.75; color: #46536a; white-space: pre-wrap; word-break: break-word; }
.daily-reply-to { color: #4b7bd6; font-weight: 700; }
.daily-comment-actions { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.daily-comment-act { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: #93a1b5; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.daily-comment-act:hover { background: #f6f8fb; color: #3d5a72; }
.daily-comment-act.is-on { color: #d4567f; }
.daily-comment-act.is-danger:hover { color: #d95670; }
.daily-comment-replies { display: grid; gap: 10px; margin: 12px 0 0 44px; padding: 12px 0 0; border-top: 1px dashed #eef1f6; }

/* ── 礼物弹窗 ───────────────────────────────────────────────────────────── */
body.daily-modal-open { overflow: hidden; }
.daily-modal { position: fixed; inset: 0; z-index: 1500; display: flex; align-items: center; justify-content: center; padding: 20px; }
.daily-modal[hidden] { display: none; }
.daily-modal-mask { position: absolute; inset: 0; background: rgba(20, 26, 36, .42); }
.daily-modal-panel { position: relative; width: min(430px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 18px 20px 20px; border-radius: 18px; background: #fff; box-shadow: 0 24px 60px rgba(20, 26, 36, .28); }
.daily-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.daily-modal-head h3 { margin: 0; font-size: 16px; font-weight: 800; color: #2b3340; }
.daily-modal-close { width: 30px; height: 30px; border: 0; border-radius: 9px; background: #f4f6fa; color: #7b8798; font-size: 16px; cursor: pointer; }
.daily-modal-close:hover { background: #eaeff7; color: #3d5a72; }
.daily-gift-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.daily-gift-item { display: grid; justify-items: center; gap: 6px; padding: 12px 8px; border: 1px solid #e9edf4; border-radius: 14px; background: #fff; font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.daily-gift-item:hover { border-color: #cfdcf0; }
.daily-gift-item.is-on { border-color: #e2a9bf; background: #fdf7fa; }
.daily-gift-item img { width: 40px; height: 40px; object-fit: contain; }
.daily-gift-glyph { font-size: 28px; line-height: 40px; }
.daily-gift-name { font-size: 13px; font-weight: 800; color: #2b3340; }
.daily-gift-price { font-size: 12.5px; font-weight: 700; color: #d4567f; }
.daily-gift-empty { grid-column: 1 / -1; padding: 22px 12px; color: #93a1b5; font-size: 13px; text-align: center; }
.daily-gift-row { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.daily-gift-label { font-size: 13.5px; font-weight: 700; color: #5a6570; }
.daily-gift-step { width: 32px; height: 32px; border: 1px solid #e3e8f0; border-radius: 10px; background: #fff; color: #3d5a72; font-size: 16px; cursor: pointer; }
.daily-gift-step:hover { border-color: #c7d2e4; }
.daily-gift-qty { width: 52px; height: 32px; border: 1px solid #e3e8f0; border-radius: 10px; background: #fafbfd; color: #2b3340; font: inherit; font-size: 14px; font-weight: 700; text-align: center; }
.daily-gift-note { width: 100%; height: 38px; margin-top: 10px; padding: 0 12px; border: 1px solid #e3e8f0; border-radius: 11px; background: #fafbfd; color: #2b3340; font: inherit; font-size: 13.5px; }
.daily-gift-note:focus { outline: none; border-color: #b9c8e4; background: #fff; }
.daily-gift-foot { display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.daily-gift-wallet { font-size: 12.5px; font-weight: 700; color: #7b8798; }
.daily-gift-wallet.is-short { color: #d95670; }
.daily-gift-total { margin-left: auto; font-size: 14px; font-weight: 800; color: #2b3340; }
.daily-gift-send { height: 38px; padding: 0 22px; border: 0; border-radius: 11px; background: #d4567f; color: #fff; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.daily-gift-send:hover { background: #c94a72; }
.daily-gift-send:disabled { background: #e6d3da; cursor: default; }

/* ── 发帖框（列表页）────────────────────────────────────────────────────── */
.daily-compose { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border: 1px solid #e9edf4; border-radius: 16px; background: #fff; box-shadow: 0 6px 20px rgba(26, 34, 46, .05); }
.daily-compose textarea { width: 100%; min-height: 92px; padding: 12px 14px; border: 1px solid #e3e8f0; border-radius: 12px; background: #fafbfd; color: #2b3340; font: inherit; font-size: 14px; line-height: 1.7; resize: vertical; }
.daily-compose textarea:focus { outline: none; border-color: #b9c8e4; background: #fff; }
.daily-compose-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.daily-thumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.daily-thumb { position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: #f2f4f7; }
.daily-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.daily-thumb button { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border: 0; border-radius: 50%; background: rgba(20, 26, 36, .62); color: #fff; font-size: 12px; line-height: 1; cursor: pointer; }
.daily-upload { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 1px dashed #c7d2e4; border-radius: 10px; background: #fbfcfe; color: #5a6570; font-size: 13px; font-weight: 700; cursor: pointer; }
.daily-upload:hover { border-color: #9fb3cf; color: #3d5a72; }
.daily-submit { height: 36px; padding: 0 20px; border: 0; border-radius: 11px; background: #3d5a72; color: #fff; font-size: 14px; font-weight: 800; cursor: pointer; }
.daily-submit:disabled { opacity: .55; cursor: default; }

.daily-more { display: flex; justify-content: center; margin-top: 4px; }
.daily-more button { height: 38px; padding: 0 24px; border: 1px solid #e3e8f0; border-radius: 12px; background: #fff; color: #5a6570; font-size: 13px; font-weight: 700; cursor: pointer; }
.daily-more button:hover { border-color: #c7d2e4; color: #3d5a72; }

.daily-empty { padding: 34px 16px; border: 1px dashed #e3e8f0; border-radius: 14px; background: #fbfcfe; color: #93a1b5; font-size: 13px; text-align: center; }
.daily-toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 1600; padding: 10px 18px; border-radius: 12px; background: rgba(20, 26, 36, .88); color: #fff; font-size: 13px; font-weight: 700; }

/* 首页里的分区：跟着首页卡片风格走 */
#home-section-container .daily-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { #home-section-container .daily-list { grid-template-columns: minmax(0, 1fr); } }
