/* 下载页局部样式，沿用公共布局的字体、导航和键盘习惯。 */
.yt-page {
    max-width: 940px;
    margin: 0 auto;
    padding: clamp(16px, 3vw, 40px) clamp(12px, 3vw, 30px) 64px;
    color: #f2f5f8;
    overflow-wrap: anywhere;
}
.yt-page [hidden] { display: none !important; }
.yt-tool {
    background: #17212c;
    border: 1px solid #405060;
    border-radius: 16px;
    padding: clamp(16px, 3vw, 30px);
}
main:has(> .yt-page) > .site-breadcrumb-region--hero-overlay { position: relative; display: flow-root; }
main > .site-breadcrumb-region--hero-overlay ~ .yt-page { padding-block-start: 4px; }
.yt-page h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.16; letter-spacing: -.025em; margin: 0 0 .65rem; }
.yt-page p { color: #c9d4df; line-height: 1.6; }
.yt-page header p { margin: 0 0 .95rem; }
.yt-page label { display: block; font-weight: 650; margin: 0 0 .4rem; }
.yt-input-row { display: flex; align-items: stretch; flex-wrap: wrap; gap: 10px; }
.yt-input-row input, .yt-input-row select {
    flex: 1 1 280px; min-width: 0; max-width: 100%; min-height: 46px;
    border: 1px solid #708091; border-radius: 7px; color: #f0f4f8;
    padding: 9px 12px; background: #101822; font: inherit;
}
.yt-input-row input::placeholder { color: #b2bdca; }
.yt-page input[type=url] { font-size: 16px; scroll-margin-block-start: 110px; }
.yt-page .yt-primary, .yt-page #yt-retry {
    display: inline-flex; justify-content: center; align-items: center; min-height: 44px;
    border: 1px solid transparent; border-radius: 7px; padding: 8px 18px;
    background: #ff9a91; color: #251018; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.yt-page .yt-primary:hover { background: #ffb0a8; color: #251018; }
.yt-page .yt-primary:disabled { opacity: .7; cursor: wait; }
.yt-page :focus-visible { outline: 3px solid #a8dfff; outline-offset: 3px; }
.yt-page #yt-status { margin: .75rem 0 0; color: #cce6ec; }
.yt-page #yt-status:empty { margin: 0; }
.yt-page #yt-status[data-error] { color: #ffc5ba; }
.yt-page a, .yt-page #yt-use-example { color: #aad6ff; text-underline-offset: 3px; }
.yt-page #yt-example-help, .yt-page #yt-format-note { margin: .65rem 0 0; font-size: .94rem; }
.yt-page #yt-format-note:empty { margin: 0; }
.yt-page #yt-format-note:not(:empty) { border-inline-start: 3px solid #ff9a91; padding-inline-start: .7rem; }
#yt-result { margin-block-start: 1.15rem; border-block-start: 1px solid #435565; padding-block-start: 1rem; }
.yt-video { display: flex; align-items: center; gap: .8rem; margin-bottom: .8rem; }
.yt-video img { object-fit: cover; border-radius: 6px; max-width: 30%; }
.yt-video p { margin: 0; }
.yt-video #yt-video-title { font-weight: 700; color: inherit; }
.yt-page .yt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.yt-page .yt-actions > :not([hidden]) { margin-top: .7rem; }
.yt-page #yt-retry { color: #f1e4e3; border-color: #677686; background: transparent; }
#yt-stores a { color: #aad6ff; margin-inline-end: .7rem; }
.yt-page h2 { font-size: 1.45rem; margin: 2rem 0 1rem; }
.yt-page section[id] { scroll-margin-block-start: 105px; }
.yt-example {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(18px, 4vw, 40px);
    margin-block: 2rem;
    padding-block: 1.6rem;
    border-block: 1px solid #405060;
}
.yt-example h2 { margin: 0 0 .6rem; }
.yt-example p { margin: 0 0 .75rem; }
.yt-example .yt-check-date { color: #b1bdc8; font-size: .88rem; }
.yt-example-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1.25rem; }
.yt-example-links button { border: 0; background: transparent; padding: 0; cursor: pointer; font: inherit; text-align: start; text-decoration: underline; }
.yt-example-table { min-width: 0; border: 1px solid #405060; border-radius: 9px; overflow-x: auto; overflow-wrap: normal; }
.yt-example table { width: 100%; margin: 0; border-collapse: collapse; font-variant-numeric: tabular-nums; line-height: 1.45; }
.yt-example th, .yt-example td { text-align: start; padding: .65rem .75rem; vertical-align: top; }
.yt-example th:first-child { white-space: nowrap; }
.yt-example thead { background: #22303e; }
.yt-example tbody tr { border-top: 1px solid #405060; }
.yt-save dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.yt-save dt { border-top: 2px solid #405060; padding-top: .65rem; margin-bottom: .35rem; }
.yt-save dd { margin: 0; line-height: 1.55; color: #c9d4df; }
.yt-page .yt-creator-help { margin: 1rem 0 0; }
.yt-guide ol { padding-inline-start: 1.6rem; }
.yt-guide li { padding-inline-start: .3rem; }
.yt-guide h3 { font-size: 1.05rem; margin: 0 0 .2rem; }
.yt-guide p { margin-bottom: .85rem; }
.yt-faq details { border-block-start: 1px solid #465564; }
.yt-faq summary { padding: .85rem .25rem; font-weight: 600; cursor: pointer; }
.yt-faq details p { margin: 0 .25rem 1rem; }
@media (max-width: 760px) {
    .yt-example, .yt-save dl { grid-template-columns: minmax(0, 1fr); }
    .yt-example th, .yt-example td { padding: .55rem .6rem; }
}
@media (max-width: 580px) {
    .yt-input-row { flex-direction: column; }
    .yt-input-row input, .yt-input-row select { flex: auto; width: 100%; }
    .yt-tool { padding: 16px; }
    .yt-example table { font-size: .94rem; }
}
