:root {
    --ink: #1c2430;
    --muted: #5c6775;
    --line: #d5dcd3;
    --paper: #f3f5f0;
    --card: #fff;
    --green: #0b6b4f;
    --green-dark: #084c38;
    --amber: #e0a23a;
    --amber-dark: #b88320;
    --promo: #1c2430;
    --danger: #9d2c2c;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
}

a { color: var(--green); }

.wrap {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
}

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
    padding: 32px 0 48px;
}

.main h1 { margin: 0 0 12px; font-size: 36px; line-height: 1.2; }

.intro { margin: 0 0 20px; color: var(--muted); }

.tool {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
}

.dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    border: 1.5px dashed #b7c4bc;
    border-radius: 12px;
    background: #f7faf8;
    text-align: center;
    padding: 20px;
    cursor: pointer;
}

.dropzone.is-over { border-color: var(--green); background: #e7f5ef; }

.dropzone input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.dropzone-title { font-weight: 600; }

.dropzone-sub, .file-meta, .status, .promo-scope { color: var(--muted); font-size: 14px; }

.file-meta { margin: 14px 0 0; }

.file-list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}

.file-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

.file-remove {
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
}

.result-list {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}

.result-list li { margin: 8px 0; }

.result-list .is-error { color: var(--danger); font-size: 14px; }

.status { min-height: 1.4em; margin: 12px 0 0; }

.status.is-error { color: var(--danger); }

.btn {
    display: inline-block;
    border: 0;
    border-radius: 10px;
    padding: 12px 18px;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-primary { margin-top: 16px; color: #fff; background: var(--green); }

.btn-primary:hover:not(:disabled) { background: var(--green-dark); }

.btn-download { color: #1c2430; background: var(--amber); }

.btn-download:hover { background: var(--amber-dark); color: #1c2430; }

.progress {
    margin-top: 16px;
    height: 8px;
    border-radius: 999px;
    background: #e4ebe6;
    overflow: hidden;
}

.progress-bar { height: 100%; width: 0; background: var(--green); }

.result { margin: 16px 0 0; }

.promo-card {
    position: sticky;
    top: 16px;
    background: var(--promo);
    color: #f4f6f8;
    border-radius: 16px;
    padding: 20px;
}

.promo-card h2 { margin: 0 0 8px; font-size: 28px; }

.promo-kicker {
    margin: 0;
    color: var(--amber);
    font-size: 13px;
    letter-spacing: 0.08em;
}

.promo-lead { margin: 0 0 12px; color: #d5dbe3; }

.promo-lines { margin: 0 0 16px; padding-left: 18px; }

.promo-lines li { margin: 6px 0; }

.promo-card .btn-download { width: 100%; text-align: center; }

.promo-scope { margin: 12px 0 0; color: #b7c0cb; }

.foot {
    border-top: 1px solid var(--line);
    padding: 28px 0 40px;
    background: #fff;
}

.foot h2 { margin: 0 0 12px; font-size: 16px; }

.related {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.related a { text-decoration: none; }

.related a:hover { text-decoration: underline; }

@media (max-width: 860px) {
    .layout { grid-template-columns: 1fr; padding-top: 20px; }
    .main h1 { font-size: 28px; }
    .promo-card { position: static; }
}
