/* ===== 720全景工坊 前台专属组件样式（补充 theme.css，不覆盖设计令牌） ===== */

/* 作品卡链接：整卡可点击，悬停轻微上浮 */
.pt-tour-card-link { display: block; color: inherit; text-decoration: none; }
.pt-tour-card-link:hover { color: inherit; text-decoration: none; }
.pt-tour-card-link .layui-card { transition: var(--pt-transition); }
.pt-tour-card-link:hover .layui-card { transform: translateY(-3px); box-shadow: var(--pt-shadow-md); }
.pt-card-img { position: relative; overflow: hidden; }

/* 创作者卡链接 */
.pt-creator-link { display: block; color: inherit; text-decoration: none; }
.pt-creator-link:hover { color: inherit; text-decoration: none; }

/* 分页样式已下沉至 theme.css（.pt-pager/.pt-page），以便控制台等仅加载 theme.css 的页面复用 */

/* 空状态 */
.pt-empty { text-align: center; padding: 60px 20px; color: var(--pt-text-muted); }
.pt-empty .layui-icon { font-size: 56px; display: block; margin-bottom: 12px; color: var(--pt-border); }
.pt-empty p { font-size: 14px; margin: 0; }

/* 作品详情 */
.pt-work-hero { background: var(--pt-bg-white); border-bottom: 1px solid var(--pt-border); padding: 24px 0; }
.pt-work-title { font-size: 24px; font-weight: 700; margin: 0 0 8px; }
.pt-work-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--pt-text-muted); font-size: 13px; }
.pt-work-meta .layui-icon { font-size: 14px; margin-right: 2px; }
.pt-scene-list { display: flex; gap: 12px; flex-wrap: wrap; }
.pt-scene-item { width: 120px; cursor: pointer; }
.pt-scene-thumb {
    width: 120px; height: 68px; border-radius: var(--pt-radius-sm); overflow: hidden;
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px;
    border: 2px solid transparent;
}
.pt-scene-item.active .pt-scene-thumb { border-color: var(--pt-primary); }
.pt-scene-name { font-size: 12px; margin-top: 4px; color: var(--pt-text-secondary); text-align: center;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 评论 */
.pt-comment { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--pt-border-light); }
.pt-comment:last-child { border-bottom: none; }
.pt-comment-body { flex: 1; }
.pt-comment-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.pt-comment-name { font-size: 13px; font-weight: 600; }
.pt-comment-time { font-size: 12px; color: var(--pt-text-muted); }
.pt-comment-text { font-size: 14px; color: var(--pt-text-secondary); line-height: 1.6; }

/* 区块标题 */
.pt-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.pt-section-head h2 { margin: 0; font-size: 22px; }
.pt-section-head .more { color: var(--pt-primary); font-size: 14px; text-decoration: none; }
/* 区块标题图标徽章：圆角渐变底 + 白色 layui 字体图标，替代原 emoji 前缀 */
.pt-section-head h2 { display: flex; align-items: center; gap: 10px; }
.pt-sec-ico {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: var(--pt-radius); flex-shrink: 0;
    background: linear-gradient(135deg, var(--pt-primary-hover), var(--pt-primary-dark));
    color: #fff; font-size: 18px;
    box-shadow: 0 4px 10px rgba(79, 110, 247, 0.3);
}
.pt-sec-ico-hot {
    background: linear-gradient(135deg, #FBBF24, var(--pt-accent));
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}
/* 卡片头部小图标：主题色字体图标替代 emoji（社区侧栏等） */
.pt-card-ico { margin-right: 6px; font-size: 16px; color: var(--pt-accent); }
.pt-card-ico-brand { color: var(--pt-primary); }

/* 全屏查看器 */
.pt-fullpage { display: flex; flex-direction: column; height: 100vh; }
.vp-topbar { height: 48px; background: rgba(0,0,0,0.85); display: flex; align-items: center;
    justify-content: space-between; padding: 0 16px; color: #fff; z-index: 10; flex-shrink: 0; }
.vp-topbar a { color: #fff; opacity: 0.7; text-decoration: none; }
.vp-topbar a:hover { opacity: 1; }
.vp-container { flex: 1; background: #111; position: relative; overflow: hidden; }
#panoContainer { width: 100%; height: 100%; }
/* 查看器外观样式（顶栏/工具栏/场景条/弹窗/水印/加载遮罩）已下沉至共享文件 /panoview/panoview.css，
   正式页 / 预览页 / 导出离线包三方共用，此处仅保留占位样式 */
.vp-placeholder { width: 100%; height: 100%; display: flex; align-items: center;
    justify-content: center; color: rgba(255,255,255,0.35); font-size: 16px; text-align: center; }

/* 作品密码访问页（背景同首页 banner：品牌渐变 + 同心圆花纹） */
.pwd-page { position: relative; min-height: 100vh; box-sizing: border-box; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--pt-primary) 0%, #818CF8 100%); padding: 24px; overflow: hidden; }
.pwd-page::before { content: ''; position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1'/%3E%3Ccircle cx='50' cy='50' r='25' fill='none' stroke='%23ffffff' stroke-opacity='0.04' stroke-width='1'/%3E%3Ccircle cx='50' cy='50' r='10' fill='none' stroke='%23ffffff' stroke-opacity='0.03' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 200px 200px; }
.pwd-card { position: relative; z-index: 1; background: rgba(255,255,255,0.94);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,0.6);
    border-radius: var(--pt-radius-pill); padding: 44px 40px 34px; max-width: 420px; width: 100%; text-align: center;
    box-shadow: 0 24px 60px rgba(40,30,90,0.35); }
.pwd-logo { margin: 2px auto 14px; }
.pwd-logo img { height: 44px; display: inline-block; }
.pwd-lock { position: relative; width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    background: var(--pt-primary); box-shadow: 0 10px 24px rgba(79,110,247,0.4); }
.pwd-lock i { font-size: 30px; color: #fff; }
.pwd-lock::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(122,92,240,0.5); animation: pwdPulse 2.4s ease-out infinite; }
@keyframes pwdPulse { 0% { transform: scale(0.9); opacity: 0.8; } 100% { transform: scale(1.4); opacity: 0; } }
.pwd-title { font-size: 22px; font-weight: 700; color: var(--pt-text); margin-bottom: 8px; }
.pwd-sub { font-size: 14px; color: var(--pt-text-secondary); margin-bottom: 26px; line-height: 1.6; }
.pwd-info { display: flex; align-items: center; gap: 12px; text-align: left;
    background: linear-gradient(135deg, #f5f7ff 0%, #eef1fb 100%); border: 1px solid #e6ebff; border-radius: var(--pt-radius-lg); padding: 14px 16px; margin-bottom: 22px; }
.pwd-info .ico { flex: none; width: 40px; height: 40px; border-radius: var(--pt-radius); display: flex; align-items: center; justify-content: center;
    background: var(--pt-primary-light); color: var(--pt-primary); font-size: 20px; }
.pwd-info .txt { min-width: 0; }
.pwd-info .name { font-size: 15px; font-weight: 600; color: var(--pt-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pwd-info .author { font-size: 12px; color: var(--pt-text-muted); margin-top: 2px; }
.pwd-form { margin-top: 2px; }
.pwd-form .layui-form-item { margin-bottom: 0; }
.pwd-card .pwd-input { height: 50px !important; line-height: 50px !important; border-radius: var(--pt-radius-lg) !important;
    text-align: center; font-size: 16px; letter-spacing: 5px; transition: var(--pt-transition); }
.pwd-card .pwd-input:focus { box-shadow: 0 0 0 4px rgba(79,110,247,0.16) !important; }
.pwd-err { font-size: 12px; color: var(--pt-danger); margin-top: 8px; text-align: center; display: block; }
.pwd-card .pwd-submit { height: 50px !important; line-height: 50px !important; border-radius: var(--pt-radius-lg) !important; margin-top: 16px;
    font-size: 16px; font-weight: 600; letter-spacing: 1px; border: none !important;
    background: var(--pt-primary) !important; color: #fff !important;
    box-shadow: 0 10px 22px rgba(79,110,247,0.35); transition: var(--pt-transition); }
.pwd-card .pwd-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(79,110,247,0.45) !important;
    background: var(--pt-primary-dark) !important; }
.pwd-card .pwd-submit i { margin-right: 6px; font-size: 16px; }
.pwd-tip { margin-top: 22px; font-size: 12px; color: var(--pt-text-muted); }
.pwd-back { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; font-size: 13px; color: var(--pt-text-secondary); transition: var(--pt-transition); }
.pwd-back:hover { color: var(--pt-primary); }

/* ===== 作品详情页（work.html 专用） ===== */
.work-hero { background: #111; position: relative; }
.work-preview { width: 100%; aspect-ratio: 21/9; max-height: 46vh; min-height: 240px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.4); font-size: 16px; position: relative; overflow: hidden; }
.work-preview-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.6; }
.work-preview-content { position: relative; z-index: 1; text-align: center; }
.work-play-btn { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,0.2); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s; margin: 0 auto 16px; border: 2px solid rgba(255,255,255,0.4); text-decoration: none; }
.work-play-btn:hover { background: rgba(255,255,255,0.3); transform: scale(1.1); }
.work-play-btn .layui-icon { font-size: 28px; color: #fff; margin-left: 4px; }
.work-detail-body { padding: 40px 0 60px; }
.work-related { padding: 0 0 60px; }
.work-related .pt-section-head { margin-bottom: 20px; }
/* 作品页推荐区（相关推荐/猜你喜欢）紧凑卡片：仅压小此处字号与留白，不影响门户列表 */
.work-related .layui-card-body { padding: 9px 12px; }
.work-related .pt-card-title { font-size: 13px; margin-bottom: 3px; }
.work-related .pt-card-meta { font-size: 11px; gap: 8px; }
.work-related .pt-card-meta .layui-icon { font-size: 12px; }
.work-title { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.work-desc { color: var(--pt-text-secondary); line-height: 1.8; margin-bottom: 24px; }
.work-meta-bar { display: flex; gap: 24px; padding: 16px 0; border-top: 1px solid var(--pt-border); border-bottom: 1px solid var(--pt-border); margin-bottom: 24px; flex-wrap: wrap; }
.work-meta-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--pt-text-secondary); }
.work-meta-item .layui-icon { color: var(--pt-primary); }
.work-action-bar { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.action-btn { display: flex; align-items: center; gap: 6px; padding: 10px 20px; border: 1px solid var(--pt-border); border-radius: var(--pt-radius-sm); background: var(--pt-bg-white); cursor: pointer; transition: all 0.2s; font-size: 13px; color: var(--pt-text-secondary); text-decoration: none; }
.action-btn:hover { border-color: var(--pt-primary); color: var(--pt-primary); background: var(--pt-primary-light); }
.action-btn.active { border-color: var(--pt-primary); color: var(--pt-primary); background: var(--pt-primary-light); }
.scene-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 32px; }
.scene-thumb { aspect-ratio: 16/10; border-radius: var(--pt-radius-sm); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; cursor: pointer; transition: all 0.2s; position: relative; overflow: hidden; background-size: cover; background-position: center; text-decoration: none; }
.scene-thumb:hover { transform: scale(1.03); box-shadow: var(--pt-shadow-md); }
.scene-thumb .scene-label { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent,rgba(0,0,0,0.6)); padding: 8px; text-align: center; }
.comment-item { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--pt-border-light); }
.comment-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--pt-primary-light); color: var(--pt-primary); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; font-size: 14px; }
.comment-content { flex: 1; }
.comment-author { font-weight: 600; font-size: 14px; }
.comment-time { font-size: 11px; color: var(--pt-text-muted); }
.comment-text { font-size: 13px; color: var(--pt-text-secondary); line-height: 1.7; margin-top: 4px; }
.comment-actions { display: flex; gap: 12px; margin-top: 6px; }
.comment-action { font-size: 12px; color: var(--pt-text-muted); cursor: pointer; display: flex; align-items: center; gap: 3px; }
.comment-action:hover { color: var(--pt-primary); }
.related-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--pt-border-light); }
.related-item:last-child { border-bottom: none; }
.related-thumb { width: 80px; height: 52px; border-radius: var(--pt-radius-xs); display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; background-size: cover; background-position: center; }
@media(max-width:768px){ .scene-grid{grid-template-columns:repeat(2,1fr);} }

/* ===== 模板详情页（template-detail.html 专用） ===== */
.td-layout { display: flex; gap: 24px; padding: 24px 0 48px; align-items: flex-start; }
.td-main { flex: 1; min-width: 0; }
.td-side { width: 320px; flex-shrink: 0; }
.td-preview { aspect-ratio: 16/9; border-radius: var(--pt-radius); background: linear-gradient(135deg,#667eea 0%,#764ba2 100%); display: flex; align-items: center; justify-content: center; color: #fff; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.td-preview .play-btn { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,0.25); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--pt-transition); }
.td-preview .play-btn:hover { background: rgba(255,255,255,0.4); transform: scale(1.06); }
.td-preview .play-btn .layui-icon { font-size: 30px; }
.td-side-card { background: var(--pt-bg-white); border: 1px solid var(--pt-border); border-radius: var(--pt-radius); padding: 24px; margin-bottom: 16px; }
.td-side-card h1 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.td-meta-row { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--pt-text-secondary); padding: 7px 0; border-bottom: 1px solid var(--pt-border-light); }
.td-meta-row:last-child { border-bottom: none; }
.td-meta-row .layui-icon { font-size: 15px; color: var(--pt-text-muted); }
.td-meta-row .val { margin-left: auto; font-weight: 500; color: var(--pt-text); }
.scene-item { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--pt-border); border-radius: var(--pt-radius-sm); margin-bottom: 8px; }
.scene-item .thumb { width: 64px; height: 44px; border-radius: var(--pt-radius-xs); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; flex-shrink: 0; }
.scene-item .info { flex: 1; min-width: 0; }
.scene-item .info .t { font-size: 13px; font-weight: 600; }
.scene-item .info .d { font-size: 11px; color: var(--pt-text-muted); margin-top: 2px; }
.detail-card { background: var(--pt-bg-white); border: 1px solid var(--pt-border); border-radius: var(--pt-radius); padding: 24px; margin-top: 20px; }
@media(max-width:900px){ .td-layout{flex-direction:column;} .td-side{width:100%;} }

/* ===== 社区（community.html / post.html 专用） ===== */
/* 图片 banner：保留原图，叠加更深的品牌蓝紫蒙层，把照片色调统一进平台配色 */
.community-hero { --pt-hero-wave: var(--pt-bg-white, #fff); position: relative; overflow: hidden; background: linear-gradient(135deg, rgba(43,63,166,.88) 0%, rgba(59,87,217,.80) 55%, rgba(79,110,247,.72) 100%); color: #fff; padding: 60px 0; text-align: center; text-shadow: 0 1px 10px rgba(0,0,0,.35); }
/* 动态背景：图片拆到 ::before 做钟摆式缓转，蒙层静止 */
.community-hero::before { content: ''; position: absolute; inset: -12%; z-index: 0; background: url('../banners/banner-community.png') center/cover no-repeat; box-shadow: inset 0 0 0 100vmax rgba(52,72,190,0.5); animation: pt-kb-drift 12s ease-in-out infinite alternate; }
.community-hero > * { position: relative; }
/* 底部涟漪波纹收边：白色（衔接下方白底），与原方案一致 */
.community-hero::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 60px; background: var(--pt-hero-wave, var(--pt-bg, #F3F4F6)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23000' d='M0,32L48,34.7C96,37,192,43,288,42.7C384,43,480,37,576,34.7C672,32,768,35,864,37.3C960,40,1056,43,1152,40C1248,37,1344,29,1392,24L1440,21L1440,60L1392,60C1344,60,1248,60,1152,60C1056,60,960,60,864,60C768,60,672,60,576,60C480,60,384,60,288,60C192,60,96,60,48,60L0,60Z'/%3E%3C/svg%3E") no-repeat bottom center; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23000' d='M0,32L48,34.7C96,37,192,43,288,42.7C384,43,480,37,576,34.7C672,32,768,35,864,37.3C960,40,1056,43,1152,40C1248,37,1344,29,1392,24L1440,21L1440,60L1392,60C1344,60,1248,60,1152,60C1056,60,960,60,864,60C768,60,672,60,576,60C480,60,384,60,288,60C192,60,96,60,48,60L0,60Z'/%3E%3C/svg%3E") no-repeat bottom center; -webkit-mask-size: cover; mask-size: cover; pointer-events: none; }
.community-hero h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; position: relative; }
.community-hero p { opacity: 0.9; font-size: 16px; max-width: 520px; margin: 0 auto; position: relative; }
.community-hero .hero-actions { margin-top: 20px; position: relative; display: flex; justify-content: center; gap: 12px; }
.community-stats { display: flex; justify-content: center; gap: 48px; margin-top: 24px; position: relative; }
.community-stats .stat { text-align: center; }
.community-stats .stat-val { font-size: 24px; font-weight: 800; }
.community-stats .stat-label { font-size: 12px; opacity: 0.7; }
.topic-bar { background: var(--pt-bg-white); border-bottom: 1px solid var(--pt-border); padding: 12px 0; position: sticky; top: 60px; z-index: 5; }
.topic-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; align-items: center; }
.topic-scroll::-webkit-scrollbar { height: 0; }
.topic-chip { display: flex; align-items: center; gap: 4px; padding: 6px 14px; border: 1px solid var(--pt-border); border-radius: var(--pt-radius-pill); font-size: 13px; cursor: pointer; white-space: nowrap; transition: all 0.2s; color: var(--pt-text-secondary); background: var(--pt-bg-white); text-decoration: none; }
.topic-chip:hover { border-color: var(--pt-primary); color: var(--pt-primary); }
.topic-chip.active { background: var(--pt-primary); color: #fff; border-color: var(--pt-primary); }
.topic-chip .layui-icon { font-size: 14px; }
.post-card { border-left: 4px solid var(--pt-primary); transition: all 0.2s; display: block; }
.post-card:hover { box-shadow: var(--pt-shadow-md); transform: translateX(4px); }
.post-author { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.post-author-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--pt-primary-light); color: var(--pt-primary); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; background-size: cover; background-position: center; }
.post-meta { font-size: 12px; color: var(--pt-text-muted); margin-top: 8px; }
.post-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.post-tag { font-size: 11px; padding: 2px 8px; background: var(--pt-bg); border-radius: var(--pt-radius-pill); color: var(--pt-text-secondary); }
.post-images-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.post-img-thumb { aspect-ratio: 16/9; border-radius: var(--pt-radius-sm); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); font-size: 20px; background-size: cover; background-position: center; }
.interaction-bar { display: flex; gap: 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--pt-border-light); }
.interaction-item { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--pt-text-muted); cursor: pointer; }
.interaction-item:hover { color: var(--pt-primary); }
.trending-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--pt-border-light); align-items: center; }
.trending-item:last-child { border-bottom: none; }
.trending-rank { width: 24px; height: 24px; border-radius: 50%; background: var(--pt-bg); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.trending-rank.top { background: var(--pt-primary); color: #fff; }
.post-category-badge { font-size: 11px; padding: 2px 8px; border-radius: var(--pt-radius-pill); font-weight: 500; margin-bottom: 8px; display: inline-block; }
.fab-publish { position: fixed; bottom: 32px; right: 32px; width: 56px; height: 56px; border-radius: 50%; background: var(--pt-primary); color: #fff; border: none; cursor: pointer; box-shadow: 0 4px 16px rgba(79,110,247,0.4); font-size: 24px; display: flex; align-items: center; justify-content: center; transition: all 0.3s; z-index: 100; text-decoration: none; }
.fab-publish:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(79,110,247,0.5); }
/* 页面存在浮动发布钮时，将全站“回到顶部”上移到发布钮正上方并居中对齐，避免两个悬浮球重叠（无发布钮的页面保持原角落位置） */
body:has(.fab-publish) .pt-back-top { bottom: 100px; right: 40px; }
.post-detail { background: var(--pt-bg-white); border: 1px solid var(--pt-border); border-radius: var(--pt-radius); padding: 32px; margin-bottom: 24px; }
.post-header { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; }
.post-header .post-author-avatar { width: 48px; height: 48px; font-size: 18px; }
.post-author-info .name { font-weight: 600; font-size: 15px; }
.post-author-info .meta { font-size: 12px; color: var(--pt-text-muted); }
.post-title { font-size: 24px; font-weight: 800; margin-bottom: 16px; line-height: 1.4; }
.post-body { color: var(--pt-text-secondary); line-height: 2; font-size: 15px; }
.post-body p { margin-bottom: 12px; }
/* 富文本正文（wangEditor 产出 HTML）渲染约束：防止图片/表格溢出、补齐排版间距 */
.post-body img { max-width: 100%; height: auto; border-radius: var(--pt-radius-sm); display: block; margin: 8px 0; }
.post-body h1, .post-body h2, .post-body h3, .post-body h4, .post-body h5 { color: var(--pt-text); font-weight: 700; line-height: 1.5; margin: 16px 0 10px; }
.post-body h2 { font-size: 20px; } .post-body h3 { font-size: 18px; } .post-body h4 { font-size: 16px; }
.post-body ul, .post-body ol { margin: 0 0 12px 24px; }
.post-body li { margin-bottom: 6px; }
.post-body blockquote { margin: 12px 0; padding: 8px 16px; border-left: 3px solid var(--pt-primary); background: var(--pt-bg); color: var(--pt-text-muted); border-radius: 0 var(--pt-radius-sm) var(--pt-radius-sm) 0; }
.post-body pre { margin: 12px 0; padding: 14px 16px; background: #1e1e1e; color: #e6e6e6; border-radius: var(--pt-radius-sm); overflow: auto; font-size: 13px; line-height: 1.7; }
.post-body pre code { background: none; color: inherit; padding: 0; }
.post-body code { background: var(--pt-bg); color: var(--pt-danger); padding: 2px 6px; border-radius: 4px; font-size: 13px; }
.post-body table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 14px; }
.post-body th, .post-body td { border: 1px solid var(--pt-border); padding: 8px 12px; text-align: left; }
.post-body th { background: var(--pt-bg); font-weight: 600; }
.post-body hr { border: none; border-top: 1px solid var(--pt-border); margin: 16px 0; }
.post-body video { max-width: 100%; height: auto; display: block; margin: 8px 0; }
.post-images { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.post-image { aspect-ratio: 16/9; border-radius: var(--pt-radius-sm); background-size: cover; background-position: center; }
.post-detail .post-tags { margin: 20px 0; padding-top: 16px; border-top: 1px solid var(--pt-border-light); gap: 8px; }
.post-detail .post-tag { font-size: 12px; padding: 4px 12px; border-radius: var(--pt-radius-pill); cursor: pointer; transition: all 0.2s; }
.post-detail .post-tag:hover { background: var(--pt-primary-light); color: var(--pt-primary); }
.post-stats { display: flex; gap: 20px; padding: 16px 0; border-top: 1px solid var(--pt-border-light); border-bottom: 1px solid var(--pt-border-light); flex-wrap: wrap; }
.post-stat-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--pt-text-muted); }
.post-actions-bar { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.post-action-btn { display: flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1px solid var(--pt-border); border-radius: var(--pt-radius-pill); background: var(--pt-bg-white); cursor: pointer; transition: all 0.2s; font-size: 13px; color: var(--pt-text-secondary); }
.post-action-btn:hover { border-color: var(--pt-primary); color: var(--pt-primary); }
.post-action-btn.active { background: var(--pt-primary-light); border-color: var(--pt-primary); color: var(--pt-primary); }
.reply-item { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--pt-border-light); }
.reply-item:last-child { border-bottom: none; }
.reply-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; font-size: 13px; background-size: cover; background-position: center; }
.reply-content { flex: 1; min-width: 0; }
.reply-author { font-weight: 600; font-size: 14px; }
.reply-time { font-size: 11px; color: var(--pt-text-muted); margin-left: 8px; }
.reply-text { font-size: 13px; color: var(--pt-text-secondary); line-height: 1.7; margin-top: 4px; word-break: break-word; }
.reply-actions { display: flex; gap: 12px; margin-top: 6px; }
.reply-action { font-size: 12px; color: var(--pt-text-muted); cursor: pointer; display: flex; align-items: center; gap: 3px; }
.reply-action:hover { color: var(--pt-primary); }
.reply-action.active { color: var(--pt-primary); font-weight: 600; }
.sub-reply { margin-left: 48px; padding: 12px 0; border-bottom: 1px solid var(--pt-border-light); }

/* ===== 个人中心：我的主页（profile） ===== */
.profile-head { background: var(--pt-bg-white); border-bottom: 1px solid var(--pt-border); padding: 32px 0; }
.profile-head .name { font-size: 22px; font-weight: 700; }
.profile-head .bio { font-size: 14px; color: var(--pt-text-secondary); }
.profile-tab-wrap { background: var(--pt-bg-white); border: 1px solid var(--pt-border); border-radius: var(--pt-radius); overflow: hidden; }
.profile-tab-wrap .layui-tab-title { padding: 0 16px; border-bottom: 1px solid var(--pt-border); margin: 0; }
.profile-tab-wrap .layui-tab-title li { font-size: 14px; font-weight: 500; }
.profile-tab-wrap .layui-tab-content { padding: 20px; }
.profile-filter { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.profile-new-card { border-style: dashed; cursor: pointer; display: block; text-decoration: none; }
.fav-card { display: flex; gap: 16px; padding: 16px; border: 1px solid var(--pt-border); border-radius: var(--pt-radius-sm); margin-bottom: 12px; transition: all 0.2s; }
.fav-card:hover { box-shadow: var(--pt-shadow-md); border-color: #D1D5DB; }
.fav-thumb { width: 120px; height: 80px; border-radius: var(--pt-radius-xs); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 24px; flex-shrink: 0; background-size: cover; background-position: center; }
.fav-info { flex: 1; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.fav-info .title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.fav-info .desc { font-size: 12px; color: var(--pt-text-muted); }
.fav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
@media(max-width:640px){ .fav-card { flex-wrap: wrap; } .fav-thumb { width: 100%; height: 120px; } }

/* ===== BBS 板块导航（社区首页卡片） ===== */
.bbs-boards { background: var(--pt-bg-white); border-bottom: 1px solid var(--pt-border); padding: 24px 0 28px; }
.bbs-boards-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.bbs-boards-title { font-size: 16px; font-weight: 700; color: var(--pt-text); display: inline-flex; align-items: center; }
.bbs-boards-head-left { display: flex; align-items: center; gap: 10px; }
.bbs-collapse-btn { width: 26px; height: 26px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--pt-border); border-radius: 50%; background: var(--pt-bg-white); color: var(--pt-text-secondary); cursor: pointer; transition: var(--pt-transition); }
.bbs-collapse-btn:hover { border-color: var(--pt-primary); color: var(--pt-primary); background: var(--pt-primary-light, #EAF1FF); }
.bbs-collapse-btn .layui-icon { font-size: 12px; line-height: 1; transform: rotate(180deg); transition: transform 0.2s; }
.bbs-collapse-btn.collapsed .layui-icon { transform: rotate(0deg); }
.bbs-board-grid.bbs-collapsed { display: none; }
.bbs-boards-title .layui-icon { margin-right: 6px; color: var(--pt-primary); font-size: 18px; }
.bbs-boards-more { font-size: 13px; color: var(--pt-text-muted); display: inline-flex; align-items: center; }
.bbs-boards-more:hover { color: var(--pt-primary); }
.bbs-boards-more .layui-icon { font-size: 12px; margin-left: 2px; }
.bbs-board-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.bbs-board-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--pt-border); border-radius: var(--pt-radius-sm); background: var(--pt-bg-white); color: inherit; text-decoration: none; transition: var(--pt-transition); }
.bbs-board-card:hover { border-color: var(--pt-primary); box-shadow: var(--pt-shadow-md); transform: translateY(-2px); color: inherit; text-decoration: none; }
.bbs-board-ico { width: 38px; height: 38px; border-radius: var(--pt-radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; background-size: cover; background-position: center; position: relative; overflow: hidden; }
.bbs-board-ico .layui-icon { font-size: 20px; line-height: 1; }
/* 渐变图标（无自定义图片时）：叠加与社区 banner 一致的同心圆花纹，白色图标浮于其上 */
.bbs-board-ico--grad::before { content: ''; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Ccircle cx='30' cy='30' r='26' fill='none' stroke='%23ffffff' stroke-opacity='0.16' stroke-width='1.2'/%3E%3Ccircle cx='30' cy='30' r='17' fill='none' stroke='%23ffffff' stroke-opacity='0.13' stroke-width='1.2'/%3E%3Ccircle cx='30' cy='30' r='8' fill='none' stroke='%23ffffff' stroke-opacity='0.10' stroke-width='1.2'/%3E%3C/svg%3E"); background-size: 60px 60px; background-position: center; background-repeat: no-repeat; }
.bbs-board-ico--grad .layui-icon { position: relative; z-index: 1; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.14); }
.bbs-board-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bbs-board-name { font-size: 14px; font-weight: 600; color: var(--pt-text); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bbs-board-desc { font-size: 11px; color: var(--pt-text-muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.bbs-board-meta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--pt-text-secondary); margin-top: 1px; }
.bbs-meta-item { padding: 0 5px; background: var(--pt-bg); border-radius: 3px; }
.bbs-meta-today { padding: 0 5px; background: #FFF3E6; color: #D97706; border-radius: 3px; font-weight: 500; }
.bbs-board-last { display: none; }
.bbs-board-last-title { color: var(--pt-text-secondary); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.bbs-board-last-by { color: var(--pt-text-muted); }
.bbs-board-last-empty { color: var(--pt-text-muted); font-style: italic; }
.bbs-feed-head { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--pt-text); margin-bottom: 10px; }
.bbs-feed-head .layui-icon { color: var(--pt-primary); font-size: 16px; }
@media(max-width:1200px){ .bbs-board-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media(max-width:1024px){ .bbs-board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media(max-width:640px){ .bbs-board-grid { grid-template-columns: 1fr; } }

/* ===== 社区首页：板块导航下方的置顶帖子速览栏（BBS 逐行列表风） ===== */
.bbs-pinned-bar { background: transparent; border-bottom: none; padding: 22px 0 4px; }
.bbs-pinned-bar > .layui-container { background: var(--pt-bg-white); border: 1px solid var(--pt-border-light); border-radius: var(--pt-radius-sm); padding: 10px 14px 12px; }
.bbs-pinned-head { display: flex; align-items: center; margin-bottom: 4px; }
.bbs-pinned-title { font-size: 14px; font-weight: 700; color: var(--pt-text); display: inline-flex; align-items: center; }
.bbs-pinned-title .layui-icon { margin-right: 5px; font-size: 15px; color: #F97316; }
.bbs-pinned-list { display: flex; flex-direction: column; }
.bbs-pinned-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--pt-radius-xs); font-size: 14px; color: var(--pt-text); text-decoration: none; transition: var(--pt-transition); }
.bbs-pinned-item:nth-child(odd) { background: var(--pt-bg); }
.bbs-pinned-item:hover { background: var(--pt-primary-light, #EAF1FF); }
.bbs-pinned-pin { flex-shrink: 0; display: inline-flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: #fff; background: linear-gradient(135deg, #F97316, #EF4444); border-radius: 4px; padding: 1px 6px; }
.bbs-pinned-pin .layui-icon { font-size: 11px; }
.bbs-pinned-sec { flex-shrink: 0; font-size: 12px; color: #D97706; background: #FFF3E6; border-radius: 4px; padding: 1px 6px; }
.bbs-pinned-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; color: var(--pt-text); }
.bbs-pinned-item:hover .bbs-pinned-name { color: var(--pt-primary); }
.bbs-pinned-stats { flex-shrink: 0; display: inline-flex; align-items: center; gap: 12px; font-size: 12px; color: var(--pt-text-muted); }
.bbs-pinned-stat { display: inline-flex; align-items: center; gap: 3px; }
.bbs-pinned-stat .layui-icon { font-size: 13px; }

/* ===== BBS 板块详情页 Hero ===== */
.bbs-sec-hero { position: relative; padding: 40px 0 44px; margin-bottom: 20px; overflow: hidden; color: #fff; }
.bbs-sec-hero-plain { background: linear-gradient(135deg,rgba(79,110,247,.42) 0%,rgba(129,140,248,.30) 100%); }
/* 动态背景：图片拆到 ::before 极缓漂移（比 pt-hero-pattern::before 同心圆花纹选择器更特异，花纹保留） */
.bbs-sec-hero.bbs-sec-hero-plain::before { content: ''; position: absolute; inset: -12%; z-index: 0; background: url('../banners/banner-section.png') center/cover no-repeat; box-shadow: inset 0 0 0 100vmax rgba(79,110,247,0.42); animation: pt-kb-drift 14s ease-in-out infinite alternate; }
.bbs-sec-hero-img { background-size: cover; background-position: center; }
.bbs-sec-hero-img::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 100%); }
.bbs-sec-hero-inner { position: relative; z-index: 1; }
.bbs-sec-hero-crumb { font-size: 13px; margin-bottom: 14px; display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.85); }
.bbs-sec-hero-crumb a { color: rgba(255,255,255,0.85); }
.bbs-sec-hero-crumb a:hover { color: #fff; text-decoration: underline; }
.bbs-crumb-sep { opacity: 0.6; }
.bbs-sec-hero-row { display: flex; align-items: center; gap: 16px; }
.bbs-sec-hero-ico { width: 64px; height: 64px; border-radius: var(--pt-radius-lg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: rgba(255,255,255,0.92); color: var(--pt-primary); box-shadow: var(--pt-shadow-md); }
.bbs-sec-hero-ico .layui-icon { font-size: 30px; line-height: 1; }
.bbs-sec-hero-main { flex: 1; min-width: 0; }
.bbs-sec-hero-name { font-size: 22px; font-weight: 700; line-height: 1.3; margin-bottom: 4px; color: #fff; }
.bbs-sec-hero-desc { font-size: 13px; color: rgba(255,255,255,0.85); line-height: 1.5; max-width: 720px; }
.bbs-sec-hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; font-size: 12px; color: rgba(255,255,255,0.75); margin-top: 10px; }
.bbs-sec-hero-meta b { color: #FFD666; font-weight: 700; font-size: 14px; margin: 0 2px; }
.bbs-sec-hero-today { padding: 2px 8px; background: rgba(255,214,102,0.2); color: #FFD666; border-radius: 3px; font-weight: 500; }
.bbs-sec-hero-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; align-self: center; }
@media(max-width:768px){ .bbs-sec-hero { padding: 24px 0 30px; } .bbs-sec-hero-ico { width: 52px; height: 52px; } .bbs-sec-hero-ico .layui-icon { font-size: 24px; } .bbs-sec-hero-name { font-size: 18px; } .bbs-sec-hero-row { gap: 12px; } .bbs-sec-hero-actions { display: none; } }

/* ===== BBS 帖子表格 ===== */
.bbs-thread-wrap { padding-bottom: 40px; }
.bbs-thread-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; gap: 10px; }
.bbs-thread-tabs { display: inline-flex; gap: 6px; background: var(--pt-bg-white); border: 1px solid var(--pt-border); border-radius: var(--pt-radius-sm); padding: 3px; }
.bbs-thread-tab { padding: 5px 14px; font-size: 13px; color: var(--pt-text-secondary); border-radius: 4px; text-decoration: none; transition: var(--pt-transition); }
.bbs-thread-tab:hover { color: var(--pt-primary); text-decoration: none; }
.bbs-thread-tab.active { background: var(--pt-primary); color: #fff; }
.bbs-thread-count { font-size: 13px; color: var(--pt-text-muted); }
.bbs-thread-count b { color: var(--pt-primary); font-weight: 700; margin: 0 2px; }
.bbs-thread-head, .bbs-thread-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 160px 130px 200px; gap: 12px; align-items: center; }
.bbs-thread-head { padding: 10px 16px; background: var(--pt-bg); border: 1px solid var(--pt-border); border-bottom: none; border-radius: var(--pt-radius-sm) var(--pt-radius-sm) 0 0; font-size: 12px; color: var(--pt-text-muted); font-weight: 500; }
.bbs-thread-body { border: 1px solid var(--pt-border); border-top: none; border-radius: 0 0 var(--pt-radius-sm) var(--pt-radius-sm); background: var(--pt-bg-white); overflow: hidden; }
.bbs-thread-row { padding: 14px 16px; border-bottom: 1px solid var(--pt-border-light); color: inherit; text-decoration: none; transition: background-color 0.15s; }
.bbs-thread-row:last-child { border-bottom: none; }
.bbs-thread-row:hover { background: #F8FAFC; color: inherit; text-decoration: none; }
.bbs-th-ico { display: flex; align-items: center; justify-content: center; }
.bbs-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: #fff; background-size: cover; background-position: center; flex-shrink: 0; }
.bbs-th-main { min-width: 0; }
.bbs-title { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--pt-text); line-height: 1.4; }
.bbs-title-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bbs-thread-row:hover .bbs-title-text { color: var(--pt-primary); }
.bbs-badge { flex-shrink: 0; font-size: 11px; padding: 1px 6px; border-radius: 3px; line-height: 1.5; font-weight: 500; }
.bbs-badge-top { background: #FFE4E6; color: #BE123C; }
.bbs-badge-good { background: #FEF3C7; color: #B45309; }
.bbs-summary { margin-top: 4px; font-size: 12px; color: var(--pt-text-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.bbs-inline-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.bbs-mini-chip { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; padding: 1px 7px; border-radius: var(--pt-radius-pill); background: var(--pt-bg); color: var(--pt-text-muted); line-height: 1.6; }
.bbs-mini-chip .layui-icon { font-size: 11px; }
.bbs-mini-chip-tour { background: var(--pt-primary-light, #EAF1FF); color: var(--pt-primary); }
.bbs-mini-chip-tag { background: #F1F5F9; color: #475569; }
.bbs-th-author { min-width: 0; text-align: left; }
.bbs-author-name { font-size: 13px; color: var(--pt-text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bbs-author-time { font-size: 12px; color: var(--pt-text-muted); margin-top: 2px; }
.bbs-th-counts { display: flex; flex-direction: column; gap: 2px; align-items: center; }
.bbs-count-pair { display: inline-flex; align-items: baseline; gap: 4px; font-size: 12px; color: var(--pt-text-muted); }
.bbs-count-pair b { color: var(--pt-text-secondary); font-weight: 600; font-size: 14px; }
.bbs-th-last { min-width: 0; }
.bbs-last-by { font-size: 13px; color: var(--pt-text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bbs-last-time { font-size: 12px; color: var(--pt-text-muted); margin-top: 2px; }
@media(max-width:1024px){
    .bbs-thread-head, .bbs-thread-row { grid-template-columns: 44px minmax(0, 1fr) 100px 140px; }
    .bbs-th-author, .bbs-thread-head .bbs-th-author { display: none; }
}
@media(max-width:640px){
    .bbs-thread-head, .bbs-thread-row { grid-template-columns: 40px minmax(0, 1fr) 84px; }
    .bbs-th-last, .bbs-thread-head .bbs-th-last { display: none; }
    .bbs-thread-head { padding: 8px 12px; }
    .bbs-thread-row { padding: 12px; }
    .bbs-avatar { width: 32px; height: 32px; font-size: 13px; }
    .bbs-title { font-size: 14px; }
}

/* ---------- 页脚友情链接 ---------- */
.pt-friend-links {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 6px 14px; margin-bottom: 14px; padding-bottom: 14px;
    border-bottom: 1px solid var(--pt-border, rgba(0, 0, 0, 0.08));
}
.pt-friend-label { color: var(--pt-text-muted, #8a8f99); font-weight: 600; margin-right: 2px; }
.pt-friend-links a { display: inline-flex; align-items: center; gap: 5px; color: var(--pt-text-muted, #8a8f99); transition: color 0.2s ease; }
.pt-friend-links a:hover { color: var(--pt-primary, #1e9fff); }
.pt-friend-logo { height: 18px; max-width: 60px; object-fit: contain; display: inline-block; vertical-align: middle; }
@media (max-width: 768px) {
    .pt-friend-links { gap: 6px 10px; font-size: 12px; }
}
