@charset "UTF-8";
/* 正式上线新增：首页命令展示板、联系支持、备案号 */

/* 首页右侧：常用命令展示板（替代原来的蜘蛛互动） */
.hero-panel { height: auto; min-height: 0; display: flex; flex-direction: column; gap: 18px; padding: 26px 28px; border: 1px solid #8aa5c733; border-radius: 22px; background: linear-gradient(150deg, #13233c 0%, #0c1627 70%); box-shadow: 0 30px 80px #0000004d; }
.panel-top { display: flex; justify-content: space-between; color: #7fa2c0; font-size: 12px; letter-spacing: .14em; }
.panel-commands { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.panel-commands li { display: grid; grid-template-columns: 128px 1fr; align-items: center; gap: 14px; padding: 13px 16px; border: 1px solid #8aa5c722; border-radius: 12px; background: #0b1524cc; }
.panel-commands code { color: #7fe3f5; font-family: Consolas, "Cascadia Mono", monospace; font-size: 15px; }
.panel-commands span { color: #b9cadd; font-size: 14px; }
.panel-bottom { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 10px; background: #08111e; color: #9fb6cc; font-family: Consolas, "Microsoft YaHei", monospace; font-size: 13px; }

/* 首页右侧容器：有作品时显示作品轮播，没有作品时显示命令面板 */
.hero-showcase { height: auto !important; min-height: 0 !important; background: none !important; }
.hero-showcase .hero-panel[hidden] { display: none; }
.works-slider { border: 1px solid #8aa5c733; border-radius: 22px; overflow: hidden; background: #0b1524; box-shadow: 0 30px 80px #0000004d; }
.works-slider[hidden] { display: none; }
.works-stage { position: relative; aspect-ratio: 16 / 10; background: #060c16; }
.works-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.works-media.active { opacity: 1; }
.works-caption { padding: 16px 22px 6px; }
.works-label { display: inline-block; font-size: 11px; letter-spacing: .14em; color: #7fe3f5; margin-bottom: 4px; }
.works-caption strong { display: block; color: #edf5ff; font-size: 18px; }
.works-caption p { color: #a4b6cb; font-size: 14px; line-height: 1.7; margin-top: 4px; min-height: 1.7em; }
.works-nav { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 8px 16px 16px; }
.works-nav button[id] { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #8aa5c744; background: #0f1b2e; color: #c3d3e6; font-size: 20px; line-height: 1; }
.works-nav button[id][hidden] { display: none; }
.works-dots { display: flex; gap: 8px; }
.works-dot { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: #3a4f68; }
.works-dot.active { background: #7fe3f5; width: 22px; border-radius: 999px; }

/* 工具箱卡片：历史版本 + 下载 */
.product-links { display: inline-flex; align-items: center; gap: 18px; }
.history-link { color: #9fb6cc; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.history-link:hover { color: #b9f2fb; }
.history-link[hidden] { display: none; }
.history-list { display: grid; gap: 12px; margin-top: 8px; }
.history-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid #8aa5c733; border-radius: 12px; background: #0b1524; }
.history-info { display: grid; gap: 2px; min-width: 0; }
.history-info strong { color: #edf5ff; font-size: 16px; }
.history-current { margin-left: 8px; font-size: 12px; color: #0b1626; background: #7fe3f5; border-radius: 999px; padding: 1px 8px; font-weight: 600; vertical-align: middle; }
.history-meta { color: #8fa5be; font-size: 13px; }
.history-desc { font-size: 13px !important; margin: 4px 0 0; }
.history-download { padding: 9px 18px; flex: none; }

/* 教程卡片：视频第一帧做预览图 */
.cover-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.tutorial-cover .cover-label, .tutorial-cover .cover-state, .tutorial-cover .cover-play { z-index: 1; }
.tutorial-cover .cover-label { text-shadow: 0 1px 6px #000c; }

/* 视频播放弹窗 */
dialog.dialog-wide { max-width: 980px; }
.dialog-player { margin-bottom: 18px; border-radius: 12px; overflow: hidden; background: #000; --plyr-color-main: #39bff5; --plyr-video-background: #000; --plyr-menu-background: #0f1b2e; --plyr-menu-color: #edf5ff; }
.dialog-player .dialog-video { margin: 0; border-radius: 0; display: block; width: 100%; max-height: 64vh; object-fit: contain; background: #000; }
.dialog-player .plyr video { max-height: 64vh; }
dialog.dialog-wide { padding-top: 30px; }
dialog.dialog-wide h2 { margin-bottom: 14px; }
.dialog-download { margin: 0 0 16px; }
/* 全屏时取消高度限制，视频铺满屏幕 */
.dialog-player .plyr--fullscreen-active video,
.dialog-player .plyr:fullscreen video,
.dialog-player .plyr--fullscreen-fallback video { max-height: none !important; height: 100% !important; }
.dialog-player .plyr--fullscreen-active, .dialog-player .plyr:fullscreen { border-radius: 0; }

/* 教程卡片：单击封面播放 / 查看 */
.tutorial-cover.is-clickable { cursor: pointer; }
.tutorial-cover.is-clickable:hover .cover-play { background: #39bff5cc; border-color: #7fe3f5; transform: translate(-50%, -50%) scale(1.08); }
.tutorial-cover.is-clickable:hover .cover-video { filter: brightness(1.12); }
.tutorial-cover .cover-play { transition: transform .18s, background .18s; }
.tutorial-cover.is-clickable:focus-visible { outline: 3px solid #7fe3f5; outline-offset: -3px; }
.tutorial-body .tutorial-action { margin-top: auto; color: #7fe3f5; font-size: 14px; font-weight: 600; text-decoration: none; }
.tutorial-body .tutorial-action:hover { text-decoration: underline; text-underline-offset: 4px; }

/* 案例、技巧：标签筛选和卡片标签 */
.tag-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -8px 0 22px; }
.tag-filter[hidden] { display: none; }
.tag-filter-label { color: #8fa5be; font-size: 13px; margin-right: 4px; }
.tag-chip { border: 1px solid #8aa5c744; background: #0f1b2e; color: #c3d3e6; border-radius: 999px; padding: 5px 14px; font-size: 13px; transition: background .18s, border-color .18s, color .18s; }
.tag-chip:hover { border-color: #7fe3f5aa; color: #edf5ff; }
.tag-chip.active { background: #7fe3f5; border-color: #7fe3f5; color: #0b1626; font-weight: 600; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: -8px 0 14px; }
.card-tag { font-size: 12px; color: #9fe8f5; background: #12263d; border: 1px solid #7fe3f533; border-radius: 999px; padding: 1px 9px; }

/* 教程翻页：每页 15 个 */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 30px; }
.pager[hidden] { display: none; }
.pager-button { min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid #8aa5c744; border-radius: 9px; background: #0f1b2e; color: #c3d3e6; font-size: 14px; }
.pager-button:hover:not(:disabled) { border-color: #7fe3f5; color: #edf5ff; }
.pager-button.active { background: #7fe3f5; border-color: #7fe3f5; color: #0b1626; font-weight: 700; }
.pager-button:disabled { opacity: .4; }
.pager-gap { color: #8fa5be; padding: 0 2px; }
.pager-jump { display: flex; align-items: center; gap: 6px; margin-left: 10px; color: #8fa5be; font-size: 13px; }
.pager-jump input { width: 60px; height: 38px; padding: 0 8px; border: 1px solid #8aa5c744; border-radius: 9px; background: #0b1524; color: #edf5ff; font: inherit; text-align: center; }

/* 图集：每张图片的名称和外部链接 */
.image-info { display: grid; gap: 6px; justify-items: start; margin-top: 12px; }
.image-name { color: #edf5ff; font-size: 16px; }
.image-name:empty { display: none; }
.image-info .image-caption { margin: 0; }
.image-link { padding: 8px 16px; }
.image-link[hidden] { display: none; }

/* 图片大图查看 */
.image-viewer { position: relative; display: grid; place-items: center; background: #05090f; border-radius: 12px; overflow: hidden; min-height: 200px; }
.dialog-image { display: block; max-width: 100%; max-height: 72vh; object-fit: contain; }
.image-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid #8aa5c766; background: #0b1524cc; color: #edf5ff; font-size: 26px; line-height: 1; }
.image-nav:hover { background: #14304a; }
.image-nav.prev { left: 12px; }
.image-nav.next { right: 12px; }
.image-nav[hidden] { display: none; }
.image-counter { position: absolute; right: 12px; bottom: 10px; font-size: 12px; color: #c3d3e6; background: #0b1524cc; padding: 2px 8px; border-radius: 999px; }
.image-counter:empty { display: none; }
.image-caption { margin-top: 12px; }

/* 联系支持 */
.contact-panel { display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: center; padding: 28px; border: 1px solid #8aa5c733; border-radius: 20px; background: #0f1b2e; }
.contact-list { display: grid; gap: 12px; }
.contact-item { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 16px 20px; border: 1px solid #8aa5c72e; border-radius: 14px; background: #0b1524; color: #edf5ff; transition: border-color .18s, transform .18s; }
.contact-item:hover { border-color: #7fe3f580; transform: translateY(-1px); }
.contact-label { color: #8fa5be; font-size: 14px; }
.contact-item strong { font-size: 22px; letter-spacing: .04em; color: #edf5ff; font-family: Consolas, "Microsoft YaHei", monospace; }
.contact-copy { color: #7fe3f5; font-size: 13px; }
.contact-qr { margin: 0; text-align: center; }
.contact-qr img { display: block; width: 220px; max-width: 100%; border-radius: 14px; background: #fff; }
.contact-qr figcaption { margin-top: 10px; color: #8fa5be; font-size: 13px; }
.dialog-contacts { display: grid; gap: 18px; margin-top: 18px; }
.dialog-contacts .contact-item strong { font-size: 18px; }
.dialog-contacts .contact-qr img { width: 200px; margin-inline: auto; }

.beian-link { color: inherit; }
.beian-link:hover { color: #b9f2fb; }

@media (max-width: 800px) {
  .hero-panel { padding: 20px; }
  .panel-commands li { grid-template-columns: 1fr; gap: 4px; }
  .contact-panel { grid-template-columns: 1fr; padding: 20px; }
  .contact-item { grid-template-columns: 56px 1fr auto; padding: 14px 16px; }
  .contact-item strong { font-size: 18px; }
  .contact-qr img { margin-inline: auto; }
  .product-links { gap: 14px; }
  .history-item { flex-direction: column; align-items: stretch; }
}
