/* 设备快传 — 单工作台布局：左连设备，右切换传文件/文本/屏幕/视频 */
.ppt-page {
    --ink: #1f2a37;
    --muted: #66707c;
    --line: #e4e8ee;
    --blue: #0877e3;
    --blue-dark: #0666c4;
    --blue-soft: #eaf3fc;
    --soft: #f4f6f8;
    --ok: #0f7b4c;
    --ok-soft: #e7f6ee;
    --warn: #8a5a12;
    --warn-soft: #fdf6e8;
    --danger: #b42318;
    --radius: 16px;
    --shadow: 0 10px 28px rgba(31, 42, 55, .06);
    color: var(--ink);
    font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
    background: #f5f7fa;
    margin: 0;
    padding: 0 0 72px;
    overflow-x: hidden;
}
.ppt-page * { box-sizing: border-box; }
.ppt-page button, .ppt-page input, .ppt-page textarea { color: inherit; font: inherit; }
.ppt-page button { -webkit-tap-highlight-color: transparent; }

.ppt-page .page-shell {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 28px 0 0;
}

.ppt-page .ppt-breadcrumb { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.ppt-page .ppt-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px 8px; list-style: none; margin: 0; padding: 0; align-items: center; }
.ppt-page .ppt-breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.ppt-page .ppt-breadcrumb li:not(:last-child)::after { content: "/"; color: #b0b6bd; margin-left: 2px; }
.ppt-page .ppt-breadcrumb a { color: var(--blue); text-decoration: none; }
.ppt-page .ppt-breadcrumb a:hover { text-decoration: underline; }
.ppt-page .ppt-breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }

.ppt-page .page-title { margin-bottom: 16px; }
.ppt-page .page-title .eyebrow {
    display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em;
    color: var(--blue); background: var(--blue-soft);
    border-radius: 999px; padding: 4px 12px; margin-bottom: 10px;
}
.ppt-page .page-title h1 { margin: 0 0 8px; font-size: 28px; line-height: 1.25; letter-spacing: -.02em; }
.ppt-page .page-title p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 760px; }

.ppt-page .ppt-scenes {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}
.ppt-page .ppt-scene {
    display: flex; flex-direction: column; gap: 4px; text-align: left;
    border: 1px solid var(--line); background: #fff; border-radius: 12px;
    padding: 12px 14px; cursor: pointer; color: inherit;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.ppt-page .ppt-scene:hover { border-color: #c9def6; box-shadow: var(--shadow); transform: translateY(-1px); }
.ppt-page .ppt-scene.is-on { border-color: #9cc7f0; background: var(--blue-soft); box-shadow: none; }
.ppt-page .ppt-scene b { font-size: 13px; }
.ppt-page .ppt-scene span { font-size: 12px; color: var(--muted); line-height: 1.45; }

.ppt-page .ppt-stage {
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.ppt-page .ppt-stage-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #fbfcfe, #f6f8fb);
}
.ppt-page .ppt-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.ppt-page .ppt-dot { width: 8px; height: 8px; border-radius: 50%; background: #c5c9ce; }
.ppt-page .ppt-status.is-wait .ppt-dot { background: #e6a700; }
.ppt-page .ppt-status.is-on { color: var(--ok); }
.ppt-page .ppt-status.is-on .ppt-dot { background: var(--ok); }
.ppt-page .ppt-status.is-relay { color: #b45309; }
.ppt-page .ppt-status.is-relay .ppt-dot { background: #d97706; }
.ppt-page .ppt-status.is-err { color: var(--danger); }
.ppt-page .ppt-status.is-err .ppt-dot { background: var(--danger); }
.ppt-page .ppt-peers { font-size: 13px; color: var(--muted); }
.ppt-page .ppt-note {
    margin: 0; padding: 8px 18px; border-radius: 0;
    background: var(--warn-soft); color: var(--warn); font-size: 13px; line-height: 1.5;
    border-bottom: 1px solid #f0e2c4;
}
.ppt-page .ppt-hint { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.ppt-page .ppt-ok { background: var(--ok-soft); color: var(--ok); }

.ppt-page .ppt-stage-body {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    min-height: 520px;
}

.ppt-page .ppt-connect {
    padding: 22px 20px 24px;
    border-right: 1px solid var(--line);
    background: #f8fafc;
}
.ppt-page .ppt-connect h2 { margin: 0 0 6px; font-size: 16px; }
.ppt-page .ppt-connect .ppt-hint { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.ppt-page .ppt-lobby[hidden],
.ppt-page .ppt-room[hidden] { display: none !important; }

.ppt-page .ppt-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; border: 0; border-radius: 10px; padding: 12px 16px;
    background: var(--blue); color: #fff; font-size: 14px; font-weight: 700;
    cursor: pointer; box-shadow: 0 4px 12px rgba(8, 119, 227, .22);
    transition: background .15s, transform .15s;
}
.ppt-page .ppt-btn:hover { background: var(--blue-dark); }
.ppt-page .ppt-btn:disabled { opacity: .55; cursor: not-allowed; }
.ppt-page .ppt-btn-ghost {
    background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none;
}
.ppt-page .ppt-btn-ghost:hover { background: var(--soft); }
.ppt-page .ppt-btn-danger { background: #fff; color: var(--danger); border: 1px solid #f0d0cc; box-shadow: none; }
.ppt-page .ppt-btn-danger:hover { background: #fff5f4; }
.ppt-page .ppt-btn-row { display: grid; gap: 8px; margin-top: 10px; }
.ppt-page .ppt-btn-row.is-2 { grid-template-columns: 1fr 1fr; }

.ppt-page .ppt-join { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 12px; }
.ppt-page .ppt-join input {
    min-width: 0; border: 1px solid var(--line); border-radius: 10px;
    padding: 12px 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; background: #fff;
}
.ppt-page .ppt-join input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8, 119, 227, .12); }
.ppt-page .ppt-join .ppt-btn { width: auto; padding: 12px 16px; }

.ppt-page .ppt-code-wrap { display: grid; justify-items: center; gap: 10px; text-align: center; }
.ppt-page .ppt-qr {
    width: 168px; height: 168px; border: 1px solid var(--line); border-radius: 14px;
    background: #fff; padding: 8px;
}
.ppt-page .ppt-qr svg { width: 100%; height: 100%; display: block; }
.ppt-page .ppt-code {
    font-size: 28px; font-weight: 800; letter-spacing: .2em; font-variant-numeric: tabular-nums;
}
.ppt-page .ppt-privacy { margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.ppt-page .ppt-board { padding: 18px 20px 22px; min-width: 0; }
.ppt-page .ppt-modes {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px;
}
.ppt-page .ppt-tab {
    display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
    border: 1px solid var(--line); background: #fff; border-radius: 12px;
    padding: 10px 12px; cursor: pointer; color: var(--muted); text-align: left;
    transition: border-color .15s, background .15s, color .15s;
}
.ppt-page .ppt-tab:hover { border-color: #c9def6; }
.ppt-page .ppt-tab.is-on { background: var(--blue-soft); border-color: #9cc7f0; color: var(--blue); }
.ppt-page .ppt-tab .ppt-tab-ico { width: 22px; height: 22px; margin-bottom: 4px; }
.ppt-page .ppt-tab b { font-size: 13px; color: var(--ink); }
.ppt-page .ppt-tab.is-on b { color: var(--blue); }
.ppt-page .ppt-tab small { font-size: 11px; line-height: 1.35; }

.ppt-page .ppt-panel[hidden] { display: none !important; }
.ppt-page .ppt-panel { min-height: 280px; }

.ppt-page .ppt-drop {
    display: grid; place-items: center; gap: 6px;
    min-height: 220px; border: 1.5px dashed #c5d3e3; border-radius: 14px;
    background: linear-gradient(180deg, #f8fbff, #f3f7fb); color: var(--muted);
    cursor: pointer; text-align: center; padding: 28px 16px;
}
.ppt-page .ppt-drop:hover, .ppt-page .ppt-drop.is-over { border-color: var(--blue); background: var(--blue-soft); }
.ppt-page .ppt-drop strong { color: var(--ink); font-size: 16px; }
.ppt-page .ppt-drop span { font-size: 13px; max-width: 420px; line-height: 1.55; }
.ppt-page .ppt-file { width: 0; height: 0; opacity: 0; position: absolute; }

.ppt-page .ppt-progress { height: 8px; border-radius: 999px; background: #e8edf3; overflow: hidden; margin: 14px 0 6px; }
.ppt-page .ppt-progress > span { display: block; height: 100%; width: 0; background: var(--blue); transition: width .15s; }
.ppt-page .ppt-log { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 13px; max-height: 180px; overflow: auto; }
.ppt-page .ppt-log li {
    display: flex; justify-content: space-between; gap: 12px; align-items: center;
    padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfc;
}
.ppt-page .ppt-log a { color: var(--blue); font-weight: 700; text-decoration: none; }

.ppt-page .ppt-text-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ppt-page textarea.ppt-text {
    width: 100%; min-height: 180px; resize: vertical; padding: 12px 14px;
    border: 1px solid var(--line); border-radius: 12px; background: #fcfdff; line-height: 1.65;
}
.ppt-page textarea.ppt-text:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8, 119, 227, .12); }
.ppt-page .ppt-text-out {
    min-height: 180px; padding: 12px 14px; border-radius: 12px; background: var(--soft);
    white-space: pre-wrap; word-break: break-word; font-size: 14px; line-height: 1.65;
}
.ppt-page .ppt-k { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 700; }

.ppt-page .ppt-media-help { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.ppt-page .ppt-video-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.ppt-page .ppt-video-box {
    border: 1px solid #1b1f24; border-radius: 12px; background: #111; min-height: 220px;
    overflow: hidden; position: relative;
}
.ppt-page .ppt-video-box video { width: 100%; height: 240px; object-fit: contain; background: #111; display: block; }
.ppt-page .ppt-video-box span {
    position: absolute; left: 10px; top: 10px; font-size: 11px; font-weight: 700;
    color: #fff; background: rgba(0,0,0,.45); border-radius: 999px; padding: 3px 8px;
}

.ppt-page .info-section { margin: 36px 0 8px; }
.ppt-page .info-section h2 { margin: 0 0 8px; font-size: 22px; }
.ppt-page .info-lead { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.7; }

.ppt-page .ppt-compare { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border-radius: 12px; overflow: hidden; }
.ppt-page .ppt-compare th, .ppt-page .ppt-compare td {
    border: 1px solid var(--line); padding: 11px 12px; text-align: left; vertical-align: top;
}
.ppt-page .ppt-compare th { background: #f7f8fa; font-size: 12px; color: var(--muted); }
.ppt-page .ppt-compare td strong { font-weight: 800; }

.ppt-page .guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ppt-page .guide-card {
    border: 1px solid #dce7f5; border-radius: 12px; padding: 16px;
    background: #fff;
}
.ppt-page .guide-card h3 { margin: 0 0 6px; font-size: 15px; }
.ppt-page .guide-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

.ppt-page .ppt-faq { display: grid; gap: 10px; margin: 12px 0 28px; }
.ppt-page .ppt-faq-item { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 0 14px; }
.ppt-page .ppt-faq-item summary {
    cursor: pointer; list-style: none; font-weight: 700; font-size: 14px; color: var(--ink); padding: 14px 0; outline: none;
}
.ppt-page .ppt-faq-item summary::-webkit-details-marker { display: none; }
.ppt-page .ppt-faq-item summary::after { content: "+"; float: right; color: #8b929a; font-weight: 700; }
.ppt-page .ppt-faq-item[open] summary::after { content: "−"; }
.ppt-page .ppt-faq-a { padding: 0 0 14px; border-top: 1px solid #e8ebef; }
.ppt-page .ppt-faq-a p { margin: 12px 0 0; font-size: 14px; line-height: 1.7; color: var(--muted); }

.ppt-page .ppt-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ppt-page .ppt-related a {
    display: block; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
    text-decoration: none; color: inherit; background: #fff;
}
.ppt-page .ppt-related a:hover { border-color: #c9def6; box-shadow: var(--shadow); }
.ppt-page .ppt-related strong { display: block; color: var(--blue); margin-bottom: 4px; }
.ppt-page .ppt-related span { color: var(--muted); font-size: 13px; line-height: 1.5; }

@media (max-width: 920px) {
    .ppt-page .page-shell { width: calc(100% - 28px); padding-top: 18px; }
    .ppt-page .page-title h1 { font-size: 24px; }
    .ppt-page .ppt-scenes,
    .ppt-page .ppt-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ppt-page .ppt-stage-body,
    .ppt-page .ppt-text-grid,
    .ppt-page .ppt-video-row,
    .ppt-page .guide-grid,
    .ppt-page .ppt-related { grid-template-columns: 1fr; }
    .ppt-page .ppt-connect { border-right: 0; border-bottom: 1px solid var(--line); }
    .ppt-page .ppt-code { font-size: 26px; }
    .ppt-page .ppt-join { grid-template-columns: 1fr; }
}
