/* ==========================================================
   720全景工坊 教程专题详情页（/Guide/*）共享样式
   依赖 theme.css 的 --pt-* 设计变量；仅服务图文教程页
   ========================================================== */

/* 页面容器 */
.tut-page { max-width: 860px; margin: 0 auto; padding: 0 20px 60px; }
body { background: var(--pt-bg); }

/* 面包屑 */
.tut-crumb { font-size: 13px; color: var(--pt-text-muted); padding: 18px 0 4px; }
.tut-crumb a { color: var(--pt-primary); }
.tut-crumb a:hover { text-decoration: underline; }

/* Hero */
.tut-hero { background: linear-gradient(135deg,rgba(79,110,247,.42) 0%,rgba(129,140,248,.30) 100%),url('../banners/banner-tutorial.png') center/cover no-repeat; color: #fff; border-radius: var(--pt-radius-lg); padding: 34px 30px; margin: 14px 0 26px; position: relative; overflow: hidden; text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.tut-hero::before { content: ''; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.06' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E"); }
.tut-hero > * { position: relative; z-index: 1; }
.tut-hero .badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; background: rgba(255,255,255,.18); border-radius: var(--pt-radius-pill); padding: 4px 12px; margin-bottom: 12px; }
.tut-hero h1 { font-size: 27px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.tut-hero p { font-size: 14px; opacity: .92; line-height: 1.7; max-width: 620px; }
.tut-hero .meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; font-size: 12px; opacity: .9; }
.tut-hero .meta .layui-icon { margin-right: 4px; }

/* 本篇目录 */
.tut-toc { background: var(--pt-bg-white); border: 1px solid var(--pt-border); border-radius: var(--pt-radius); padding: 16px 20px; margin-bottom: 26px; }
.tut-toc .tt { font-size: 13px; font-weight: 700; color: var(--pt-text-muted); margin-bottom: 10px; letter-spacing: .5px; }
.tut-toc ol { margin: 0; padding-left: 20px; }
.tut-toc li { font-size: 13.5px; line-height: 2; color: var(--pt-text-secondary); }
.tut-toc a { color: var(--pt-text-secondary); }
.tut-toc a:hover { color: var(--pt-primary); }

/* 正文区块 */
.tut-sec { margin-bottom: 34px; scroll-margin-top: 80px; }
.tut-sec > h2 { font-size: 20px; font-weight: 800; color: var(--pt-text); display: flex; align-items: center; gap: 8px; margin-bottom: 14px; padding-top: 8px; }
.tut-sec > h2 .bar { width: 4px; height: 20px; background: var(--pt-primary); border-radius: 2px; display: inline-block; }
.tut-sec h3 { font-size: 15.5px; font-weight: 700; color: var(--pt-text); margin: 18px 0 8px; }
.tut-sec p { font-size: 14.5px; color: var(--pt-text-secondary); line-height: 1.9; margin-bottom: 12px; }
.tut-sec ul, .tut-sec ol { margin: 0 0 12px; padding-left: 22px; }
.tut-sec li { font-size: 14px; color: var(--pt-text-secondary); line-height: 1.9; }
.tut-sec a { color: var(--pt-primary); }
.tut-sec code { background: var(--pt-border-light); padding: 2px 6px; border-radius: 4px; font-size: 13px; font-family: 'Consolas','Monaco',monospace; color: #DB2777; }
.tut-sec strong { color: var(--pt-text); font-weight: 700; }

/* 步骤块 */
.tut-steps { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 4px; }
.tut-step { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--pt-border); }
.tut-step:last-child { border-bottom: none; }
.tut-step .n { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; background: var(--pt-bg-white); border: 1.5px solid var(--pt-primary); color: var(--pt-primary); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.tut-step .b { flex: 1; min-width: 0; }
.tut-step .b .t { font-size: 15px; font-weight: 700; color: var(--pt-text); margin-bottom: 4px; }
.tut-step .b .d { font-size: 13.5px; color: var(--pt-text-secondary); line-height: 1.8; }

/* 提示框 */
.tut-callout { display: flex; gap: 10px; border-radius: var(--pt-radius-sm); padding: 13px 16px; margin: 14px 0; font-size: 13.5px; line-height: 1.8; }
.tut-callout .layui-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.tut-callout.tip { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
.tut-callout.info { background: var(--pt-primary-light); color: #4338CA; border: 1px solid #C7D2FE; }
.tut-callout.warn { background: #FFFBEB; color: #B45309; border: 1px solid #FDE68A; }

/* 图示：截图占位框 */
.tut-fig { margin: 16px 0; }
.tut-shot { border: 1px solid var(--pt-border); border-radius: var(--pt-radius); background: repeating-linear-gradient(45deg, #F8FAFC, #F8FAFC 12px, #F1F5F9 12px, #F1F5F9 24px); display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 200px; padding: 24px; text-align: center; color: var(--pt-text-muted); }
.tut-shot .layui-icon { font-size: 40px; margin-bottom: 10px; opacity: .55; }
.tut-shot .ph { font-size: 13px; }
.tut-shot img { max-width: 100%; border-radius: var(--pt-radius-sm); display: block; }
.tut-fig .cap { font-size: 12.5px; color: var(--pt-text-muted); text-align: center; margin-top: 8px; }

/* 规格/对比表格 */
.tut-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13.5px; }
.tut-table th, .tut-table td { border: 1px solid var(--pt-border); padding: 10px 14px; text-align: left; line-height: 1.6; }
.tut-table th { background: var(--pt-bg); font-weight: 700; color: var(--pt-text); }
.tut-table td { color: var(--pt-text-secondary); }
.tut-table tr:nth-child(even) td { background: #FCFCFD; }

/* 代码块 */
.tut-code { background: #1F2937; border-radius: var(--pt-radius-sm); padding: 16px 18px; margin: 14px 0; font-family: 'Consolas','Monaco',monospace; font-size: 12.5px; line-height: 1.7; color: #A5F3FC; overflow-x: auto; white-space: pre; }
.tut-code .cap { display: block; color: #6B7280; font-size: 11px; margin-bottom: 8px; font-family: inherit; }

/* 通用卡片网格 */
.tut-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 14px 0; }
.tut-grid.c3 { grid-template-columns: repeat(3, 1fr); }
.tut-card { background: var(--pt-bg-white); border: 1px solid var(--pt-border); border-radius: var(--pt-radius); padding: 16px 18px; }
.tut-card .ct { font-size: 14.5px; font-weight: 700; color: var(--pt-text); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.tut-card .cd { font-size: 13px; color: var(--pt-text-secondary); line-height: 1.7; }

/* 热点类型卡（编辑器页） */
.hs-types { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 14px 0; }
.hs-type { display: flex; gap: 12px; align-items: flex-start; background: var(--pt-bg-white); border: 1px solid var(--pt-border); border-radius: var(--pt-radius); padding: 14px 16px; }
.hs-type .ic { width: 40px; height: 40px; border-radius: var(--pt-radius); flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding: 8px; box-sizing: border-box; }
.hs-type .ic img { width: 100%; height: 100%; object-fit: contain; }
.hs-type .tn { font-size: 14px; font-weight: 700; color: var(--pt-text); margin-bottom: 3px; }
.hs-type .td { font-size: 12.5px; color: var(--pt-text-muted); line-height: 1.6; }

/* 图标库展示 */
.hs-icons { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 14px 0; }
.hs-icons .it { aspect-ratio: 1/1; border: 1px solid var(--pt-border); border-radius: var(--pt-radius); background: var(--pt-bg-white); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px; box-sizing: border-box; }
.hs-icons .it img { width: 24px; height: 24px; object-fit: contain; }
.hs-icons .it span { font-size: 10px; color: var(--pt-text-muted); text-align: center; line-height: 1.2; }

/* 界面结构示意（CSS 绘制） */
.tut-mock { border: 1px solid var(--pt-border); border-radius: var(--pt-radius); overflow: hidden; margin: 16px 0; font-size: 12px; }
.tut-mock .bar { height: 34px; background: #EEF2FF; border-bottom: 1px solid var(--pt-border); display: flex; align-items: center; padding: 0 12px; gap: 8px; color: #4338CA; font-weight: 600; }
.tut-mock .bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #C7D2FE; }
.tut-mock .cols { display: grid; grid-template-columns: 180px 1fr 220px; min-height: 220px; }
.tut-mock .cols > div { padding: 12px; }
.tut-mock .side { background: #F9FAFB; border-right: 1px solid var(--pt-border); }
.tut-mock .main { background: #FFFFFF; display: flex; align-items: center; justify-content: center; color: var(--pt-text-muted); text-align: center; }
.tut-mock .side-l { border-right: 1px solid var(--pt-border); }
.tut-mock .side-r { border-left: 1px solid var(--pt-border); background: #F9FAFB; }
.tut-mock .lane { height: 22px; border-radius: 5px; background: #E5E7EB; margin-bottom: 8px; }
.tut-mock .lane.act { background: #C7D2FE; }
.tut-mock .lane.short { width: 60%; }

/* 上/下篇导航 */
.tut-nav { display: flex; gap: 14px; margin-top: 34px; }
.tut-nav a { flex: 1; background: var(--pt-bg-white); border: 1px solid var(--pt-border); border-radius: var(--pt-radius); padding: 16px 18px; transition: all .25s; }
.tut-nav a:hover { border-color: var(--pt-primary); box-shadow: var(--pt-shadow-md); }
.tut-nav .lb { font-size: 12px; color: var(--pt-text-muted); margin-bottom: 4px; }
.tut-nav .ti { font-size: 15px; font-weight: 700; color: var(--pt-text); }
.tut-nav .next { text-align: right; }

.tut-foot-cta { text-align: center; margin-top: 30px; }
.tut-foot-cta a { margin: 0 6px; }

@media (max-width: 768px) {
  .tut-hero h1 { font-size: 22px; }
  .tut-grid, .tut-grid.c3, .hs-types { grid-template-columns: 1fr; }
  .hs-icons { grid-template-columns: repeat(4, 1fr); }
  .tut-mock .cols { grid-template-columns: 1fr; }
  .tut-mock .side-l, .tut-mock .side-r { display: none; }
  .tut-nav { flex-direction: column; }
}
