/* web19：網站部署上線互動 */
.w19-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.w19-flow > div { position: relative; padding: 14px 14px 12px; border-radius: 14px; border: 1.5px solid var(--dg-line-strong); background: var(--dg-surface); display: grid; gap: 4px; align-content: start; }
.w19-flow > div:not(:last-child)::after { content: "→"; position: absolute; right: -12px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border-radius: 50%; background: var(--dg-deep); color: #fff; display: grid; place-items: center; font-size: 11px; z-index: 2; }
.w19-flow .n { font-family: var(--dg-font-mono); font-size: 11px; font-weight: 700; color: var(--dg-orange-strong); }
.w19-flow b { font-size: 15px; } .w19-flow small { font-size: 12.5px; line-height: 1.6; color: var(--dg-ink-soft); }
@media (max-width: 860px) { .w19-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } .w19-flow > div::after { display: none; } }
.w19-tree { font-family: var(--dg-font-mono); font-size: 13px; line-height: 1.8; background: var(--dg-deep); color: #E6FBFD; border-radius: 12px; padding: 12px 16px; white-space: pre; overflow: auto; margin: 0; }
.w19-tree .ok { color: #7BE3A4; } .w19-tree .no { color: #FF9C8A; }
/* 選哪一家 */
#hostPick { border: 1.5px solid var(--dg-line-strong); border-radius: 16px; background: var(--dg-surface); padding: 16px 18px; display: grid; gap: 12px; }
.hp-q { display: grid; gap: 6px; } .hp-q b { font-size: 14px; } .hp-q .dg-seg { flex-wrap: wrap; }
.hp-res { border-radius: 12px; padding: 12px 14px; background: var(--dg-orange-soft, #FDE8DA); border: 1.5px solid var(--dg-orange); display: grid; gap: 4px; justify-items: start; }
.hp-res .hp-k { font-family: var(--dg-font-mono); font-size: 11px; color: var(--dg-orange-strong); font-weight: 700; }
.hp-res b { font-size: 17px; } .hp-res p { margin: 0; font-size: 14px; line-height: 1.7; }
/* 上傳前檢查 */
#folderCheck { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; border: 1.5px solid var(--dg-line-strong); border-radius: 16px; background: var(--dg-surface); padding: 16px; }
.fc-in, .fc-out { display: grid; gap: 8px; align-content: start; min-width: 0; }
.fc-in small { display: block; font-size: 12.5px; color: var(--dg-ink-soft); font-weight: 400; line-height: 1.6; }
.fc-in textarea { width: 100%; font-family: var(--dg-font-mono); font-size: 13px; line-height: 1.7; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--dg-line-strong); resize: vertical; }
.fc-in .dg-btn { justify-self: start; }
#fcRes { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; line-height: 1.6; }
#fcRes li { padding: 6px 10px; border-radius: 8px; } #fcRes .ok { background: var(--dg-ok-soft); color: var(--dg-ok); } #fcRes .mid { background: #FFF3DC; color: #8A5800; } #fcRes .no { background: #FDE8E4; color: var(--dg-bad); }
@media (max-width: 860px) { #folderCheck { grid-template-columns: 1fr; } }
/* Cloudflare 後台模擬 */
#cfDash { display: grid; grid-template-columns: 220px minmax(0, 1fr); border: 1.5px solid var(--dg-line-strong); border-radius: 16px; overflow: hidden; background: var(--dg-surface); box-shadow: var(--dg-shadow); }
.cf-steps { display: grid; gap: 2px; align-content: start; padding: 10px; background: var(--dg-surface-2); border-right: 1px solid var(--dg-line); }
.cf-steps button { appearance: none; font: inherit; cursor: pointer; display: flex; gap: 8px; align-items: center; text-align: left; border: 0; background: none; border-radius: 10px; padding: 8px 10px; font-size: 13px; color: var(--dg-ink-soft); }
.cf-steps button span { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 1.5px solid var(--dg-line-strong); display: grid; place-items: center; font-family: var(--dg-font-mono); font-size: 10.5px; }
.cf-steps button.done span { background: var(--dg-ok); border-color: var(--dg-ok); color: #fff; }
.cf-steps button[aria-selected="true"] { background: #F48120; color: #fff; } .cf-steps button[aria-selected="true"] span { border-color: #fff; }
.cf-body { padding: 14px 16px; display: grid; gap: 12px; min-width: 0; }
.cf-screen { border-radius: 12px; overflow: hidden; border: 1px solid #D9DEE3; background: #fff; }
.cf-bar { display: flex; gap: 6px; align-items: center; padding: 7px 12px; background: #F1F3F5; font-family: var(--dg-font-mono); font-size: 11px; color: #6B7785; } .cf-bar i { width: 9px; height: 9px; border-radius: 50%; background: #CBD2D9; }
.cf-bar span { margin-left: 8px; background: #fff; border-radius: 6px; padding: 2px 10px; }
.cf-ui { display: grid; grid-template-columns: 150px minmax(0, 1fr); min-height: 230px; font-size: 12.5px; }
.cf-side { background: #1D1F20; color: #C9D1D9; display: grid; gap: 2px; align-content: start; padding: 10px 8px; }
.cf-side b { color: #F48120; margin-bottom: 6px; } .cf-side em { font-style: normal; font-size: 10.5px; color: #8B949E; margin-top: 6px; }
.cf-side span { padding: 5px 8px; border-radius: 6px; } .cf-side span.on { background: #2D3033; color: #fff; }
.cf-side span.hot { background: #F48120; color: #fff; outline: 3px solid rgba(244, 129, 32, .35); }
.cf-main { padding: 14px; display: grid; gap: 8px; align-content: start; } .cf-main h5 { margin: 0; font-size: 15px; }
.cf-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cf-muted { color: #6B7785; margin: 0; font-size: 12px; }
.cf-hot { justify-self: start; font-style: normal; background: #0051C3; color: #fff; border-radius: 6px; padding: 6px 12px; font-weight: 700; outline: 3px solid rgba(244, 129, 32, .7); outline-offset: 2px; animation: cfPulse 1.4s ease-in-out infinite; }
@keyframes cfPulse { 50% { outline-color: rgba(244, 129, 32, .15); } }
.cf-tabs { display: flex; gap: 14px; border-bottom: 1px solid #E5E8EB; } .cf-tabs span { padding: 4px 0; color: #6B7785; } .cf-tabs span.on { color: #0051C3; font-weight: 700; border-bottom: 2px solid #0051C3; }
.cf-opt { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .cf-opt > span { border: 1px solid #D9DEE3; border-radius: 8px; padding: 10px; display: grid; gap: 2px; font-weight: 700; }
.cf-opt small { font-weight: 400; font-size: 11px; color: #6B7785; } .cf-opt .cf-hot { animation: none; background: #EAF2FF; color: #0051C3; outline: 3px solid #F48120; }
.cf-in { display: grid; gap: 3px; font-size: 11.5px; color: #6B7785; } .cf-in span { border: 1px solid #C9D1D9; border-radius: 6px; padding: 6px 10px; color: #1D1F20; font-size: 13px; font-family: var(--dg-font-mono); }
.cf-drop { border: 2px dashed #0051C3; border-radius: 10px; padding: 22px; text-align: center; color: #0051C3; font-weight: 700; display: grid; gap: 4px; background: #F5F9FF; } .cf-drop small { font-weight: 400; color: #6B7785; }
.cf-url { margin: 0; font-family: var(--dg-font-mono); font-size: 14px; color: #0051C3; background: #EAF2FF; border-radius: 6px; padding: 8px 10px; }
.cf-dep { margin: 0; padding: 6px 8px; border: 1px solid #E5E8EB; border-radius: 6px; display: flex; justify-content: space-between; } .cf-dep span { color: #0051C3; }
.cf-login { grid-column: 1 / -1; display: grid; gap: 8px; justify-items: start; padding: 18px 24px; max-width: 320px; } .cf-login b { color: #F48120; font-size: 16px; } .cf-login label { display: grid; gap: 3px; width: 100%; font-size: 11.5px; color: #6B7785; } .cf-login label span { border: 1px solid #C9D1D9; border-radius: 6px; padding: 6px 10px; color: #1D1F20; } .cf-login small { color: #6B7785; }
.cf-text b { font-size: 15px; } .cf-text p { margin: 4px 0 0; font-size: 14px; line-height: 1.8; }
.cf-nav { display: flex; justify-content: space-between; align-items: center; } .cf-cnt { font-family: var(--dg-font-mono); font-size: 12px; color: var(--dg-ink-faint); }
@media (max-width: 860px) { #cfDash { grid-template-columns: 1fr; } .cf-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); border-right: 0; border-bottom: 1px solid var(--dg-line); } .cf-ui { grid-template-columns: 1fr; } .cf-side { display: none; } }
/* 指令產生器 */
#cliBuild { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 14px; border: 1.5px solid var(--dg-line-strong); border-radius: 16px; background: var(--dg-surface); padding: 16px; }
.cb-in { display: grid; gap: 10px; align-content: start; } .cb-in label { display: grid; gap: 4px; font-size: 12.5px; color: var(--dg-ink-soft); }
.cb-in input { font-family: var(--dg-font-mono); font-size: 13.5px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--dg-line-strong); }
.cb-out { display: grid; gap: 6px; min-width: 0; }
.cb-step { display: grid; grid-template-columns: 24px minmax(0, 1fr) 34px; gap: 8px; align-items: center; background: var(--dg-deep); border-radius: 10px; padding: 8px 10px; }
.cb-step > span { width: 22px; height: 22px; border-radius: 50%; background: var(--dg-orange); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.cb-step small { display: block; color: rgba(230, 251, 253, .7); font-size: 12px; } .cb-step code { display: block; color: #E6FBFD; font-size: 13px; white-space: pre-wrap; word-break: break-all; background: none; padding: 0; }
.cb-cp { appearance: none; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; border-radius: 8px; height: 30px; cursor: pointer; } .cb-cp:hover { background: var(--dg-orange); }
.cb-url { margin: 4px 0 0; font-size: 13.5px; }
@media (max-width: 860px) { #cliBuild { grid-template-columns: 1fr; } }
.w19-term { background: #0B1215; color: #D7F5E9; border-radius: 12px; padding: 12px 16px; font-family: var(--dg-font-mono); font-size: 12.5px; line-height: 1.75; white-space: pre-wrap; margin: 8px 0; }
.w19-term .c { color: #7BE3A4; } .w19-term .m { color: #8FA4AE; }
.dg-grid > div:has(> .w19-tree) { min-width: 0; } .w19-tree { max-width: 100%; }
/* 官方網址直達 */
.w19-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0 6px; }
.w19-link { border: 1.5px solid var(--dg-line-strong); border-top: 5px solid var(--w19c, var(--dg-deep)); border-radius: 14px; background: var(--dg-surface); padding: 12px; display: grid; gap: 6px; align-content: start; }
.w19-link.cf { --w19c: #F38020; } .w19-link.gh { --w19c: #24292F; } .w19-link.nf { --w19c: #00AD9F; }
.w19-link-head { display: grid; gap: 2px; margin-bottom: 4px; } .w19-link-head b { font-size: 16px; } .w19-link-head code { font-size: 12px; }
.w19-link a { display: grid; grid-template-columns: 22px 1fr; column-gap: 6px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--dg-line); text-decoration: none; color: inherit; font-weight: 600; font-size: 14px; transition: border-color .15s, background .15s; }
.w19-link a i { grid-row: span 2; color: var(--w19c); font-size: 16px; align-self: center; }
.w19-link a small { font-family: var(--dg-font-mono); font-weight: 400; font-size: 11.5px; color: var(--dg-ink-soft); overflow-wrap: anywhere; }
.w19-link a:hover, .w19-link a:focus-visible { border-color: var(--w19c); background: color-mix(in srgb, var(--w19c) 8%, transparent); }
@media (max-width: 860px) { .w19-links { grid-template-columns: 1fr; } }
