/* DC 工具页 PC 样式（由主样式块抽取；PC 与原先完全一致；H5 追加移动端覆盖） */
* {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
    }

    :root{--font-ui:"HarmonyOS Sans SC", "MiSans", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;--font-mono:"JetBrains Mono", "Fira Code", "Source Code Pro", "Liberation Mono", ui-monospace, monospace;
        --g: #22c55e;
        --g2: #16a34a;
        --mint: #86efac;
        --line: rgba(34, 197, 94, .28);
        --text: #eaf7ef;
        --muted: #9db0a2;
        --dim: #6d8273;
    }

    body {
        background: radial-gradient(circle at 20% 30%, #0b0e16, #07090f);
        font-family: var(--font-ui);
        padding: 20px 16px 40px;
        min-height: 100vh;
        color: #dbe4f3;
    }

    .container {
        max-width: 600px;
        margin: 0 auto;
        position: relative;
    }

    /* ---------- 顶栏 ---------- */
    .aq-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 14px;
        padding: 0 4px;
    }
    .aq-back {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: var(--muted);
        text-decoration: none;
        font-size: .85rem;
        font-weight: 500;
        padding: 8px 14px 8px 10px;
        border-radius: 999px;
        border: 1px solid var(--line);
        background: rgba(34, 197, 94, .06);
        transition: color .2s, border-color .2s;
    }
    .aq-back:hover { color: var(--g); border-color: var(--g); }
    .aq-back svg {
        width: 15px;
        height: 15px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
    .aq-name {
        font-size: .72rem;
        letter-spacing: .12em;
        color: #5e6f63;
        white-space: nowrap;
    }

    /* ---------- 主卡片 ---------- */
    .card {
        background: rgba(10, 20, 30, .92);
        border-radius: 32px;
        border: 1px solid var(--line);
        box-shadow: 0 0 24px rgba(34, 197, 94, .12), inset 0 0 6px rgba(34, 197, 94, .08);
        padding: 24px 22px 26px;
        margin-top: 6px;
        overflow-wrap: break-word;
    }

    h1 {
        font-size: 1.7rem;
        font-weight: 700;
        background: linear-gradient(135deg, #86efac, #ff9d6b);
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
        margin-bottom: 8px;
        letter-spacing: .5px;
        line-height: 1.3;
    }

    .sub {
        color: var(--muted);
        font-size: .82rem;
        line-height: 1.75;
        border-left: 3px solid var(--g);
        padding-left: 12px;
        margin-bottom: 16px;
    }
    .nowrap { white-space: nowrap; }

    /* ---------- 语言 ---------- */

    /* ---------- 折叠块 ---------- */
    details {
        background: rgba(34, 197, 94, .06);
        border: 1px solid rgba(34, 197, 94, .22);
        border-radius: 16px;
        margin-bottom: 18px;
        font-size: .8rem;
        color: var(--muted);
    }
    summary {
        padding: 13px 16px;
        cursor: pointer;
        font-weight: 600;
        color: #d7f7e4;
        outline: none;
        list-style: none;
    }
    summary::-webkit-details-marker { display: none; }
    details[open] summary { border-bottom: 1px solid rgba(34, 197, 94, .18); }
    .details-content {
        padding: 14px 16px 16px;
        line-height: 1.85;
    }
    .details-content b { color: #4ade80; }

    /* ---------- 功率输入 ---------- */
    .power-field { margin-bottom: 14px; }
    .field-label {
        display: block;
        font-size: .78rem;
        color: #b7c9bd;
        font-weight: 600;
        margin-bottom: 8px;
    }
    .power-box {
        display: flex;
        align-items: center;
        background: #0a1218;
        border: 1px solid rgba(34, 197, 94, .3);
        border-radius: 18px;
        padding: 2px 18px;
        transition: border-color .2s, box-shadow .2s;
    }
    .power-box:focus-within {
        border-color: var(--g);
        box-shadow: 0 0 0 4px rgba(34, 197, 94, .14);
    }
    .power-box.bad { border-color: #f87171; }
    .power-box input {
        flex: 1;
        min-width: 0;
        width: 100%;
        background: none;
        border: 0;
        outline: none;
        color: #fff;
        font-size: 2.2rem;
        font-weight: 700;
        letter-spacing: -.02em;
        padding: 10px 0;
        font-family: inherit;
    }
    .power-box .unit {
        font-size: 1rem;
        font-weight: 700;
        color: var(--muted);
        margin-left: 8px;
    }
    input[type=number]::-webkit-outer-spin-button,
    input[type=number]::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }
    input[type=number] { -moz-appearance: textfield; }

    .field-hint {
        display: block;
        font-size: .7rem;
        color: var(--dim);
        line-height: 1.6;
        margin-top: 6px;
    }

    /* ---------- 分项负载 ---------- */
    .power-head {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 10px;
        flex-wrap: wrap;
        margin-bottom: 8px;
    }
    .power-head .field-label { margin-bottom: 0; }
    .power-sub { font-size: .68rem; color: var(--dim); }
    .load-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .load-item { min-width: 0; }
    .load-item label {
        display: block;
        font-size: .7rem;
        color: #b7c9bd;
        margin-bottom: 6px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .w-box {
        display: flex;
        align-items: center;
        gap: 4px;
        background: #0a1218;
        border: 1px solid rgba(34, 197, 94, .22);
        border-radius: 11px;
        padding: 0 10px;
        transition: border-color .2s, box-shadow .2s;
    }
    .w-box:focus-within {
        border-color: var(--g);
        box-shadow: 0 0 0 3px rgba(34, 197, 94, .14);
    }
    .w-box input {
        flex: 1;
        min-width: 0;
        width: 100%;
        background: none;
        border: 0;
        outline: none;
        color: #fff;
        font-size: 1rem;
        font-weight: 600;
        padding: 9px 0;
        font-family: inherit;
    }
    .w-box span { font-size: .68rem; color: var(--dim); }
    .load-item.wide { grid-column: 1 / -1; }
    .total-box {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-top: 12px;
        padding: 8px 16px;
        background: rgba(34, 197, 94, .07);
        border: 1px solid rgba(34, 197, 94, .35);
        border-radius: 14px;
    }
    .total-box > span {
        font-size: .72rem;
        color: var(--muted);
        letter-spacing: .08em;
    }
    .total-box strong {
        font-size: 1.9rem;
        font-weight: 800;
        color: #fff;
        line-height: 1.2;
    }
    .total-box strong em {
        font-style: normal;
        font-size: .85rem;
        color: var(--mint);
        margin-left: 4px;
    }
    .more-loads {
        margin: 12px 0 0;
        border-style: dashed;
        background: rgba(34, 197, 94, .04);
    }
    .more-loads summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 11px 14px;
        font-size: .76rem;
        font-weight: 500;
        color: #b7c9bd;
    }
    .more-count {
        font-size: .66rem;
        color: var(--dim);
        font-weight: 400;
        white-space: nowrap;
    }
    .more-right {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }
    .chev {
        width: 16px;
        height: 16px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
        transition: transform .2s;
    }
    .more-loads[open] .chev { transform: rotate(180deg); }
    .more-grid { padding: 12px 14px 14px; }

    /* ---------- 快捷芯片 ---------- */
    .chips {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        margin-top: 12px;
    }
    .chips-label {
        font-size: .7rem;
        color: var(--dim);
        margin-right: 2px;
    }
    .chip {
        padding: 7px 13px;
        border-radius: 999px;
        background: #10141d;
        border: 1px solid rgba(34, 197, 94, .25);
        color: #b7c9bd;
        font-size: .78rem;
        font-weight: 600;
        cursor: pointer;
        font-family: inherit;
        transition: border-color .2s, color .2s, background .2s;
    }
    .chip:hover { border-color: var(--g); color: var(--mint); }
    .chip:active { background: rgba(34, 197, 94, .14); }

    .load-ref {
        margin-top: 12px;
        border-style: dashed;
        margin-bottom: 0;
    }
    .load-ref summary {
        padding: 10px 14px;
        font-size: .76rem;
        font-weight: 500;
        color: #b7c9bd;
    }
    .ref-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 12px 14px 14px;
        border-top: 1px dashed rgba(34, 197, 94, .18);
    }
    .ref-btn {
        text-align: left;
        padding: 9px 11px;
        border-radius: 11px;
        background: #0d1720;
        border: 1px solid rgba(34, 197, 94, .2);
        color: #c6d8cb;
        font-size: .72rem;
        font-family: inherit;
        cursor: pointer;
        transition: border-color .2s, color .2s;
    }
    .ref-btn:hover { border-color: var(--g); color: var(--mint); }
    .ref-note {
        grid-column: 1 / -1;
        margin-top: 2px;
        font-size: .66rem;
        line-height: 1.6;
        color: var(--dim);
    }

    /* ---------- 参数 ---------- */
    .cond-title {
        font-size: .7rem;
        color: var(--dim);
        letter-spacing: .22em;
        margin: 22px 0 12px;
        font-weight: 700;
    }
    .grid2 {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .field label {
        display: block;
        font-size: .75rem;
        color: #b7c9bd;
        margin-bottom: 7px;
        font-weight: 500;
    }
    .field input,
    .field select {
        width: 100%;
        min-width: 0;
        background: #0a1218;
        border: 1px solid rgba(34, 197, 94, .26);
        color: var(--text);
        padding: 12px 14px;
        border-radius: 13px;
        font-size: 16px;
        font-family: inherit;
        outline: none;
        transition: border-color .2s, box-shadow .2s;
    }
    .field input:focus,
    .field select:focus {
        border-color: var(--g);
        box-shadow: 0 0 0 3px rgba(34, 197, 94, .14);
    }
    .field select { cursor: pointer; }
    .field select {
        -webkit-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239db0a2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 14px center;
        background-size: 16px 16px;
        padding-right: 42px;
    }
    .field select:focus {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386efac' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    }

    /* ---------- 负载类型 ---------- */
    .type-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .type-btn {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
        min-width: 0;
        text-align: left;
        padding: 11px 13px;
        border-radius: 14px;
        background: #10141d;
        border: 1px solid rgba(34, 197, 94, .2);
        color: #d7f7e4;
        font-family: inherit;
        cursor: pointer;
        transition: border-color .2s, background .2s, box-shadow .2s;
    }
    .type-btn .t-name { font-size: .82rem; font-weight: 600; }
    .type-btn .t-sub { font-size: .66rem; color: var(--dim); }
    .type-btn:hover { border-color: rgba(34, 197, 94, .55); }
    .type-btn.active {
        background: rgba(34, 197, 94, .13);
        border-color: var(--g);
        box-shadow: inset 0 0 0 1px rgba(34, 197, 94, .35);
    }
    .type-btn.active .t-sub { color: var(--mint); }
    .type-btn:last-child { grid-column: 1 / -1; }

    /* ---------- 高级 ---------- */
    .adv { margin: 16px 0 0; }
    .adv summary { font-size: .76rem; }
    .adv-body { padding: 12px 16px 16px; }
    .adv-body input {
        width: 100%;
        background: #0a1218;
        border: 1px solid rgba(34, 197, 94, .26);
        color: var(--text);
        padding: 11px 14px;
        border-radius: 12px;
        font-size: 16px;
        font-family: inherit;
        outline: none;
        margin-top: 8px;
    }
    .adv-body input:focus {
        border-color: var(--g);
        box-shadow: 0 0 0 3px rgba(34, 197, 94, .14);
    }

    /* ---------- 按钮 ---------- */
    .btn-group {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 20px;
    }
    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 14px 18px;
        border: 0;
        border-radius: 15px;
        font-size: .9rem;
        font-weight: 700;
        font-family: inherit;
        letter-spacing: .5px;
        cursor: pointer;
        text-decoration: none;
        transition: transform .14s ease-out, background .2s, border-color .2s;
    }
    .btn:active { transform: scale(.98); }
    .btn-primary {
        flex: 1 1 100%;
        background: linear-gradient(135deg, #22c55e, #16a34a);
        color: #04170b;
        box-shadow: 0 8px 22px -12px rgba(34, 197, 94, .8);
    }
    .btn-primary:hover { filter: brightness(1.05); }
    .btn-secondary {
        flex: 1;
        background: #10141d;
        border: 1px solid rgba(34, 197, 94, .28);
        color: #d7f7e4;
        font-weight: 600;
    }
    .btn-secondary:hover { border-color: var(--g); color: var(--mint); }

    /* ---------- 结果 ---------- */
    #result { margin-top: 16px; scroll-margin-top: 16px; }
    .result-card {
        border-color: rgba(34, 197, 94, .4);
        box-shadow: 0 0 48px -20px rgba(34, 197, 94, .6), inset 0 0 6px rgba(34, 197, 94, .08);
        animation: rise .4s cubic-bezier(.2, .8, .2, 1);
    }
    @keyframes rise {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .placeholder {
        text-align: center;
        color: var(--muted);
        font-size: .82rem;
        line-height: 1.8;
        padding: 30px 20px;
    }

    .rec-kicker {
        font-size: .66rem;
        letter-spacing: .26em;
        color: var(--g);
        font-weight: 700;
    }
    .rec-power {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
        margin: 6px 0 2px;
    }
    .rec-main {
        display: flex;
        align-items: baseline;
        gap: 4px;
    }
    .rec-watts {
        font-size: 1.8rem;
        font-weight: 800;
        line-height: 1.1;
        letter-spacing: -.02em;
        color: #d7f7e4;
        background: rgba(34, 197, 94, .12);
        border: 1px solid rgba(34, 197, 94, .32);
        border-radius: 12px;
        padding: 5px 11px;
        white-space: nowrap;
    }
    .rec-watts span {
        font-size: .78rem;
        font-weight: 700;
        color: var(--mint);
        margin-left: 3px;
    }
    .rec-num {
        font-size: clamp(3.2rem, 17vw, 4.4rem);
        font-weight: 800;
        line-height: 1;
        letter-spacing: -.045em;
        background: linear-gradient(135deg, #ffffff 10%, #86efac 62%, #22c55e);
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
    }
    .rec-unit {
        font-size: 1.35rem;
        font-weight: 700;
        color: var(--mint);
    }
    .rec-sub {
        font-size: .8rem;
        color: #a9bdae;
        line-height: 1.6;
        margin-top: 4px;
    }
    .badges {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin: 12px 0 14px;
    }
    .badge {
        font-size: .68rem;
        padding: 5px 10px;
        border-radius: 999px;
        background: rgba(34, 197, 94, .1);
        border: 1px solid rgba(34, 197, 94, .24);
        color: #bff3d3;
    }

    .formula {
        background: #0a1218;
        border: 1px solid rgba(34, 197, 94, .16);
        border-left: 3px solid var(--g);
        border-radius: 12px;
        padding: 12px 14px;
        font-size: .76rem;
        line-height: 1.8;
        color: #a9bdae;
    }
    .formula b { color: var(--text); font-weight: 600; }

    .bars {
        display: flex;
        flex-direction: column;
        gap: 9px;
        margin: 16px 0 4px;
    }
    .bar-row {
        display: grid;
        grid-template-columns: 76px 1fr 62px;
        align-items: center;
        gap: 10px;
        font-size: .7rem;
        color: var(--muted);
    }
    .bar-row b {
        text-align: right;
        font-weight: 600;
        color: #d7f7e4;
        font-variant-numeric: tabular-nums;
    }
    .bar {
        height: 7px;
        border-radius: 999px;
        background: #0e1a22;
        overflow: hidden;
    }
    .bar i {
        display: block;
        height: 100%;
        border-radius: 999px;
        transition: width .5s cubic-bezier(.2, .8, .2, 1);
    }
    .bar-row.load i { background: linear-gradient(90deg, #0e7490, #38bdf8); }
    .bar-row.rated i { background: linear-gradient(90deg, #16a34a, #4ade80); }
    .bar-row.cap i { background: linear-gradient(90deg, #b45309, #fbbf24); }

    .metrics {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin: 14px 0 0;
    }
    .metric {
        background: rgba(255, 255, 255, .03);
        border: 1px solid rgba(255, 255, 255, .06);
        border-radius: 14px;
        padding: 10px 12px;
    }
    .metric .m-label {
        display: block;
        font-size: .66rem;
        color: #8fa396;
        margin-bottom: 4px;
    }
    .metric .m-value {
        font-size: 1.12rem;
        font-weight: 700;
        color: #fff;
        line-height: 1.2;
    }
    .metric .m-value em {
        font-style: normal;
        font-size: .7rem;
        font-weight: 600;
        color: var(--muted);
        margin-left: 3px;
    }
    .metric .m-note {
        display: block;
        font-size: .62rem;
        color: var(--dim);
        margin-top: 3px;
    }

    .buy {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
        margin-top: 14px;
        padding: 12px 14px;
        background: rgba(34, 197, 94, .06);
        border: 1px dashed rgba(34, 197, 94, .3);
        border-radius: 14px;
    }
    .buy-label {
        flex: 0 0 100%;
        font-size: .66rem;
        color: #8fa396;
    }
    .buy-key {
        flex: 1;
        min-width: 0;
        font-size: .82rem;
        font-weight: 700;
        color: #d7f7e4;
        word-break: break-all;
    }
    .copy-btn {
        padding: 7px 14px;
        border-radius: 999px;
        background: rgba(34, 197, 94, .14);
        border: 1px solid rgba(34, 197, 94, .4);
        color: var(--mint);
        font-size: .72rem;
        font-weight: 600;
        font-family: inherit;
        cursor: pointer;
        transition: background .2s, color .2s;
    }
    .copy-btn:hover { background: rgba(34, 197, 94, .24); }
    .copy-btn.done { background: var(--g); color: #04170b; border-color: var(--g); }

    .warn {
        background: rgba(251, 146, 60, .08);
        border: 1px solid rgba(251, 146, 60, .35);
        color: #fdba74;
        border-radius: 12px;
        padding: 10px 13px;
        font-size: .75rem;
        line-height: 1.7;
        margin-bottom: 14px;
    }

    .notes {
        margin-top: 18px;
        padding-top: 14px;
        border-top: 1px dashed rgba(34, 197, 94, .18);
    }
    .notes h4 {
        font-size: .78rem;
        color: #d7f7e4;
        margin-bottom: 9px;
        font-weight: 700;
    }
    .notes ul { list-style: none; }
    .notes li {
        position: relative;
        padding-left: 15px;
        font-size: .74rem;
        line-height: 1.75;
        color: var(--muted);
        margin-bottom: 7px;
    }
    .notes li::before {
        content: "›";
        position: absolute;
        left: 2px;
        top: 0;
        color: var(--g);
        font-weight: 700;
    }
    .notes a { color: var(--mint); text-decoration: none; border-bottom: 1px solid rgba(134, 239, 172, .35); }
    .notes a:hover { color: #fff; }

    .tool-foot {
        text-align: center;
        font-size: .68rem;
        color: #5e6f63;
        line-height: 1.8;
        margin: 22px 8px 0;
    }

    /* ---------- 手机 ---------- */
    @media (max-width: 560px) {
        .card { padding: 20px 16px 22px; border-radius: 26px; }
        h1 { font-size: 1.4rem; }
        .power-box input { font-size: 1.9rem; }
        .grid2 { gap: 10px; }
        .chips {
            display: grid;
            grid-template-columns: repeat(5, minmax(0, 1fr));
            gap: 8px;
        }
        .chips-label { grid-column: 1 / -1; }
        .chip { padding: 7px 4px; text-align: center; }
        .ref-grid { grid-template-columns: 1fr; }
        .bar-row { grid-template-columns: 64px 1fr 56px; font-size: .66rem; }
        .btn-group { flex-direction: column; }
        .btn { width: 100%; }
    }

    @media (prefers-reduced-motion: reduce) {
        *, *::before, *::after {
            animation: none !important;
            transition: none !important;
        }
    }
