/* ===== 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; }

/* 分页 */
.pt-pager { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pt-page {
    min-width: 34px; height: 34px; padding: 0 10px; display: inline-flex;
    align-items: center; justify-content: center; border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-sm); background: var(--pt-bg-white);
    color: var(--pt-text-secondary); font-size: 13px; text-decoration: none;
    transition: var(--pt-transition);
}
.pt-page:hover { border-color: var(--pt-primary); color: var(--pt-primary); }
.pt-page.active { background: var(--pt-primary); border-color: var(--pt-primary); color: #fff; }
.pt-page.disabled { opacity: 0.5; pointer-events: none; }

/* 空状态 */
.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: 9px; 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; }

/* 作品密码访问页 */
.pwd-page { min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg,#667eea 0%,#764ba2 100%); padding: 20px; }
.pwd-card { background: var(--pt-bg-white); border-radius: var(--pt-radius-lg); padding: 48px 40px;
    max-width: 420px; width: 100%; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
.pwd-lock { width: 64px; height: 64px; border-radius: 50%; background: var(--pt-primary-light);
    display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 20px; }
.pwd-info { background: var(--pt-border-light); border-radius: var(--pt-radius-sm); padding: 14px;
    margin-bottom: 24px; text-align: left; }
.pwd-info .name { font-size: 14px; font-weight: 600; }
.pwd-info .author { font-size: 12px; color: var(--pt-text-muted); }

/* ===== 作品详情页（work.html 专用） ===== */
.work-hero { background: #111; position: relative; }
.work-preview { width: 100%; aspect-ratio: 21/9; 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-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: 6px; 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: 6px; 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 专用） ===== */
.community-hero { background: linear-gradient(135deg, var(--pt-primary) 0%, #818CF8 100%); color: #fff; padding: 60px 0; text-align: center; position: relative; overflow: hidden; }
.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: 20px; 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: 10px; 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: 10px; 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); }
.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; }
.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: 12px; 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: 20px; 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); }
.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: 6px; 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; } }
