/* 本工具所有样式均使用 bci 前缀，避免污染网站其他工具页。 */
#bci-module-container,
#bci-module-container * { box-sizing: border-box; }

.bci-site-layout {
    display: flex;
    min-height: 100vh;
    background: #fff;
    color: #1f2937;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

#bci-module-container {
    width: calc(100% - 240px);
    min-width: 0;
    min-height: 100vh;
    margin-left: 240px;
    padding: 40px;
    flex: 1;
}

#bci-module-container h1 {
    margin: 0;
    color: #111827;
    font-size: 26px;
    line-height: 1.4;
    font-weight: 600;
}

#bci-module-container .bci-sub {
    margin: 8px 0 28px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.8;
}

.bci-dropzone {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 36px 20px;
    text-align: center;
    color: #6b7280;
    transition: border-color .15s, background .15s, color .15s;
    background: #fafafa;
}
.bci-dropzone.bci-drag {
    border-color: #2563eb;
    background: #eff6ff;
    color: #2563eb;
}
.bci-dz-title { margin-bottom: 16px; font-size: 16px; }
.bci-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

#bci-module-container button {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    border-radius: 8px;
    padding: 8px 18px;
    font: inherit;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
}
#bci-module-container button:hover:not(:disabled) { border-color: #9ca3af; background: #f9fafb; }
#bci-module-container button:disabled { opacity: .45; cursor: not-allowed; }
#bci-module-container button.bci-primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    padding: 10px 24px;
    font-size: 15px;
}
#bci-module-container button.bci-primary:hover:not(:disabled) { background: #1d4ed8; border-color: #1d4ed8; }

.bci-row { margin-top: 24px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bci-count { color: #374151; font-size: 15px; }
.bci-count b { color: #111827; font-size: 18px; }
.bci-hinter { color: #9ca3af; font-size: 12px; }
.bci-link { color: #2563eb; cursor: pointer; font-size: 13px; text-decoration: none; }
.bci-link:hover { text-decoration: underline; }
.bci-format-label { font-size: 14px; }
.bci-formats { display: flex; gap: 8px; flex-wrap: wrap; }
#bci-module-container button.bci-fmt {
    min-width: 70px;
    padding: 7px 18px;
    border-radius: 8px;
    text-align: center;
    user-select: none;
}
#bci-module-container button.bci-fmt.on {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
    font-weight: 600;
}
#startBtn { margin-left: auto; }

.bci-progress { margin-top: 26px; }
.bci-bar { height: 10px; background: #f3f4f6; border-radius: 5px; overflow: hidden; }
.bci-fill { height: 100%; width: 0; background: #2563eb; border-radius: 5px; transition: width .12s; }
.bci-ptext { margin-top: 8px; color: #6b7280; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.bci-stats { margin-top: 22px; color: #111827; font-size: 15px; line-height: 1.8; }
.bci-n { margin: 0 2px; font-weight: 600; }
.bci-ok { color: #059669; }
.bci-bad { color: #dc2626; }
.bci-skip { color: #9ca3af; }
.bci-hidden { display: none !important; }
.bci-download-row { margin-top: 24px; }

@media (max-width: 768px) {
    #bci-module-container { width: 100%; margin-left: 0; padding: 24px 16px; }
    #bci-module-container h1 { font-size: 23px; }
    .bci-dropzone { padding: 28px 14px; }
    #startBtn { margin-left: 0; }
    .bci-format-row { align-items: flex-start; }
}
