:root {
    --ink: #15171a;
    --muted: #777c84;
    --line: #dedfe2;
    --paper: #f7f7f5;
    --white: #fff;
    --pink: #ed4f86;
    --cyan: #2ab6bd;
    --lime: #91bd45;
    --violet: #7763cc;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background:
        repeating-linear-gradient(135deg, rgba(21, 23, 26, .018) 0 1px, transparent 1px 22px),
        var(--paper);
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    letter-spacing: 0;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.mix-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    padding: 12px max(24px, calc((100vw - 1280px) / 2));
    border-bottom: 1px solid rgba(21, 23, 26, .1);
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(18px) saturate(120%);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
}
.mix-brand { display: inline-flex; align-items: center; }
.mix-brand img { display: block; width: 182px; height: 50px; object-fit: contain; object-position: left center; }
.mix-header-meta { display: flex; align-items: center; gap: 18px; font-size: 12px; }
.mix-header-meta span { color: var(--pink); font-weight: 800; }
.mix-header-meta strong { font-size: 14px; }

main { width: min(1280px, calc(100% - 48px)); margin: 0 auto; }
.mix-intro {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(560px, 1.1fr);
    gap: 64px;
    align-items: end;
    padding: 78px 0 58px;
}
.mix-eyebrow { margin: 0 0 14px; color: var(--pink); font-size: 12px; font-weight: 900; }
.mix-intro-copy h1 { margin: 0; font-size: clamp(44px, 5vw, 74px); line-height: 1.04; font-weight: 900; }
.mix-intro-copy > p:last-child { max-width: 520px; margin: 24px 0 0; color: var(--muted); font-size: 15px; line-height: 1.8; }

.mix-console { padding: 28px 0 0; border-top: 3px solid var(--ink); }
.mix-console > label { display: block; margin-bottom: 12px; font-size: 15px; font-weight: 800; }
.mix-console > label span { color: var(--pink); font-size: 11px; }
.mix-bpm-row { display: grid; grid-template-columns: minmax(120px, 1fr) auto auto; gap: 10px; }
.mix-bpm-row input {
    width: 100%; min-height: 54px; padding: 0 18px;
    border: 1px solid #cfd1d5; border-radius: 4px;
    color: var(--ink); background: var(--white); font-size: 22px; font-weight: 800; outline: 0;
}
.mix-bpm-row input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(237, 79, 134, .12); }
.mix-primary, .mix-secondary {
    min-height: 54px; padding: 0 20px; border: 0; border-radius: 4px;
    cursor: pointer; font-weight: 800; transition: transform .18s ease, background .18s ease;
}
.mix-primary { color: #fff; background: var(--ink); }
.mix-primary:hover { background: var(--pink); transform: translateY(-2px); }
.mix-secondary { color: var(--ink); background: #e9eaec; }
.mix-secondary:hover { background: #dfe1e4; transform: translateY(-2px); }
.mix-primary i, .mix-secondary i, .mix-home-link i, .mix-reset i { margin-right: 8px; }
.mix-error { min-height: 19px; margin: 8px 0 0; color: #d83961; font-size: 12px; }
.mix-tempo-readout { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.mix-tempo-readout strong { color: var(--ink); font-size: 18px; }

.mix-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 24px 0 18px; }
.mix-panel { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.mix-panel > header { display: flex; align-items: center; gap: 14px; min-height: 92px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.mix-panel-icon { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid currentColor; border-radius: 4px; font-size: 19px; }
.mix-panel header p { margin: 0 0 4px; font-size: 10px; font-weight: 900; }
.mix-panel header h2 { margin: 0; font-size: 22px; }
.mix-panel--pink header { color: var(--pink); }
.mix-panel--cyan header { color: var(--cyan); }
.mix-panel--lime header { color: #739e2e; }
.mix-panel--violet header { color: var(--violet); }
.mix-table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { height: 54px; padding: 10px 18px; border-bottom: 1px solid #ececef; text-align: right; white-space: nowrap; font-size: 13px; }
th:first-child, td:first-child { text-align: left; font-weight: 800; }
th { height: 44px; color: var(--muted); background: #fafafa; font-size: 11px; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafafa; }
.mix-value { display: inline-block; min-width: 58px; font-variant-numeric: tabular-nums; }
.mix-unit { margin-left: 3px; color: #9a9ea5; font-size: 10px; }
.mix-updated { animation: value-pop .42s ease; }
@keyframes value-pop { 50% { color: var(--pink); transform: translateY(-2px); } }

.mix-panel-note { margin: 0; padding: 18px 24px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.6; }
.mix-custom-row { display: grid; grid-template-columns: minmax(110px, 1fr) 90px minmax(170px, 1.4fr) 40px; gap: 12px; align-items: center; min-height: 64px; padding: 9px 18px; border-bottom: 1px solid #ececef; }
.mix-custom-row:last-child { border-bottom: 0; }
.mix-custom-name strong { display: block; font-size: 13px; }
.mix-custom-name small { color: var(--muted); font-size: 10px; }
.mix-custom-row input { width: 100%; height: 38px; padding: 0 9px; border: 1px solid #d4d6da; border-radius: 3px; outline: 0; }
.mix-custom-row input:focus { border-color: var(--violet); }
.mix-custom-result { color: var(--muted); font-size: 11px; }
.mix-custom-result strong { color: var(--ink); font-size: 13px; }
.mix-row-calc { width: 38px; height: 38px; border: 0; border-radius: 3px; color: #fff; background: var(--violet); cursor: pointer; }
.mix-row-calc:hover { background: var(--ink); }

.mix-home-link-wrap { display: flex; justify-content: center; padding: 48px 0 62px; }
.mix-home-link { display: inline-flex; align-items: center; justify-content: center; min-width: 210px; min-height: 54px; padding: 0 24px; border-radius: 4px; color: #fff; background: var(--ink); font-weight: 800; text-decoration: none; }
.mix-home-link:hover { background: var(--pink); }
.mix-footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px max(24px, calc((100vw - 1280px) / 2)); border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.mix-footer span:first-child { color: var(--ink); font-weight: 900; }

.mix-modal[hidden] { display: none; }
.mix-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(10, 11, 13, .68); backdrop-filter: blur(10px); }
.mix-modal-dialog { position: relative; width: min(430px, 100%); padding: 38px; border-radius: 6px; background: #fff; text-align: center; }
.mix-modal-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; background: transparent; cursor: pointer; }
.mix-modal-dialog h2 { margin: 0; font-size: 28px; }
.mix-modal-dialog > strong { display: block; margin: 22px 0; font-size: 46px; font-variant-numeric: tabular-nums; }
.mix-tap-button { width: 100%; min-height: 104px; border: 0; border-radius: 4px; color: #fff; background: var(--ink); cursor: pointer; font-size: 24px; }
.mix-tap-button span { display: block; margin-top: 8px; font-size: 12px; }
.mix-tap-button:active { transform: scale(.98); background: var(--pink); }
.mix-reset { margin-top: 14px; border: 0; color: var(--muted); background: transparent; cursor: pointer; }

@media (max-width: 991px) {
    .mix-intro { grid-template-columns: 1fr; gap: 42px; padding-top: 56px; }
    .mix-results { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .mix-header { min-height: 68px; padding: 9px 16px; }
    .mix-brand img { width: 155px; height: 44px; }
    .mix-header-meta span { display: none; }
    .mix-header-meta strong { font-size: 12px; }
    main { width: min(100% - 30px, 1280px); }
    .mix-intro { gap: 34px; padding: 42px 0 30px; }
    .mix-intro-copy h1 { font-size: 42px; }
    .mix-bpm-row { grid-template-columns: 1fr 1fr; }
    .mix-bpm-row input { grid-column: 1 / -1; }
    .mix-primary, .mix-secondary { padding: 0 10px; font-size: 13px; }
    .mix-results { gap: 14px; padding-top: 16px; }
    .mix-panel > header { min-height: 78px; padding: 15px 16px; }
    .mix-panel header h2 { font-size: 19px; }
    th, td { height: 49px; padding: 9px 12px; font-size: 12px; }
    .mix-custom-row { grid-template-columns: minmax(90px, 1fr) 74px 38px; gap: 8px; padding: 10px 12px; }
    .mix-custom-result { grid-column: 1 / -1; }
    .mix-home-link-wrap { padding: 34px 0 44px; }
    .mix-footer { padding: 20px 16px; }
}
