/* 作品详情：手机上整页滑上来，电脑上左图右文。 */
.sheet { border: 0; padding: 0; margin: auto; width: 100%; max-width: 980px; height: 100%; max-height: none; background: transparent; color: var(--ink); overflow: hidden; }
.sheet::backdrop { background: color-mix(in srgb, var(--mist) 70%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.sheet[open] { animation: sheet-in .56s var(--settle); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(28px) scale(.985); } }
.sheet__scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: calc(env(safe-area-inset-top, 0px) + 64px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 40px); }
.sheet__close { position: fixed; z-index: 3; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); top: calc(env(safe-area-inset-top, 0px) + 14px); right: var(--gutter); }
.sheet__body { display: grid; gap: 22px; }
/* 手机上先看名字和怎么用，截图放在步骤后面。 */
@media (max-width: 819px) {
  .sheet__body .info { display: contents; }
  .info__head { order: 1; } .howto { order: 2; } .shot { order: 3; margin-top: 6px; } .points { order: 4; } .more { order: 5; }
}

.shot { justify-self: center; display: grid; gap: 10px; justify-items: center; margin: 0; }
.shot img { width: min(62vw, 270px); max-height: 52vh; object-fit: cover; object-position: top; border-radius: 26px;
  box-shadow: 0 24px 60px var(--shade), 0 0 0 1px var(--glass-edge), 0 0 0 7px var(--glass); }
.shot figcaption { font-size: 12px; color: var(--ink-soft); text-align: center; }

.info { display: grid; gap: 18px; align-content: start; }
.info__head { display: grid; gap: 8px; }
.info__kind { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; color: var(--ink-soft); }
.info__kind .deep { color: var(--deep); }
.info h2 { font-size: clamp(26px, 6.6vw, 34px); }
.info__summary { color: var(--ink-soft); }
.points { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.points li { position: relative; padding-left: 18px; font-size: 15px; }
.points li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.howto { padding: 18px; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: 0 6px 20px var(--shade);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.howto__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.howto h3 { font-size: 17px; }
.howto__guide { border: 0; background: none; padding: 4px 0; font: inherit; font-size: 14px; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.howto ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.howto li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; counter-increment: step; }
.howto li::before { content: counter(step); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 12px;
  background: var(--primary); color: var(--primary-ink); }
.howto p { font-size: 15px; padding-top: 1px; }
.howto b { font-weight: 600; }
.howto .path { display: inline; padding: 1px 8px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 14%, transparent); font-size: 14px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.howto__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.howto__tip { margin-top: 14px; font-size: 13px; color: var(--ink-soft); }

.more { font-size: 13px; color: var(--ink-soft); }
.more summary { cursor: pointer; list-style: none; font-size: 14px; color: var(--ink); }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: " ›"; display: inline-block; transition: transform .3s var(--settle); }
.more[open] summary::after { transform: rotate(90deg); }
.more dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 12px 0 0; }
.more dt { color: var(--ink-soft); }
.more dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.more .mono { font-family: var(--mono); font-size: 12px; }

@media (min-width: 820px) {
  .sheet { height: min(760px, calc(100% - 64px)); border-radius: 32px; }
  .sheet__scroll { padding: 56px 48px 48px; background: color-mix(in srgb, var(--mist) 55%, transparent); }
  .sheet__close { position: absolute; top: 18px; right: 18px; }
  .sheet__body { grid-template-columns: auto minmax(0, 1fr); gap: 48px; align-items: start; }
  .sheet__body--plain { grid-template-columns: minmax(0, 620px); justify-content: center; }
  .shot { position: sticky; top: 0; }
  .shot img { width: 280px; max-height: 600px; }
}

.ask { border: 0; border-radius: 26px; padding: 24px; max-width: min(400px, calc(100vw - 32px)); background: var(--mist); color: var(--ink); box-shadow: 0 24px 60px var(--shade); }
.ask::backdrop { background: rgba(20, 20, 40, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ask h3 { font-size: 20px; margin-bottom: 8px; }
.ask p { color: var(--ink-soft); }
.ask__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

@media (prefers-reduced-motion: reduce) { .sheet[open] { animation: none; } }
