/* ===== 域名与 SSL 年成本 ===== */
.dom-hero {
    background: linear-gradient(150deg, #eef2ff 0%, #f0f9ff 100%);
    border: 1px solid #a5b4fc;
    border-radius: 22px;
    padding: 28px;
    margin-bottom: 26px;
    box-shadow: 0 12px 36px rgba(49, 46, 129, .10);
}
.dom-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.dom-logo {
    font-size: 28px; width: 52px; height: 52px; border-radius: 14px;
    background: linear-gradient(135deg, #4338ca 0%, #93c5fd 100%);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(67, 56, 202, .3);
}
.dom-title { font-size: 20px; font-weight: 800; color: #312e81; }
.dom-sub { font-size: 13px; color: #64748b; margin-top: 2px; }

.dom-body { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; }
.dom-form {
    background: rgba(255,255,255,.92); border: 1px solid #a5b4fc;
    border-radius: 16px; padding: 16px;
}
.dom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dom-field { display: flex; flex-direction: column; gap: 4px; }
.dom-field > span { font-size: 12px; color: #64748b; font-weight: 600; }
.dom-field input, .dom-field select {
    border: 2px solid #e0e7ff; border-radius: 10px; padding: 9px 12px;
    font-size: 14px; background: #fff; color: #0f172a; outline: none; transition: border-color .2s;
}
.dom-field input:focus, .dom-field select:focus { border-color: #6366f1; }

.dom-result {
    background: rgba(255,255,255,.92); border: 1px solid #e2e8f0;
    border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.dom-total { text-align: center; padding: 6px 0 2px; }
.dom-total-num b {
    font-size: 30px; font-weight: 900; color: #312e81; font-variant-numeric: tabular-nums;
}
.dom-total-num b::after { content: ' 元'; font-size: 13px; font-weight: 700; }
.dom-total-num span { display: block; font-size: 12px; color: #64748b; margin-top: 2px; }
.dom-total-sub { margin-top: 4px; font-size: 12px; color: #94a3b8; }
.dom-total-sub b { color: #475569; font-variant-numeric: tabular-nums; }
.dom-break { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.dom-break li {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 10px;
    padding: 8px 12px; font-size: 13px; color: #4338ca;
}
.dom-break li b { color: #0f172a; font-variant-numeric: tabular-nums; }
.dom-break li.ok { border-color: #6366f1; background: #e0e7ff; color: #312e81; font-weight: 700; }
.dom-break li.ok.bad { border-color: #fbbf24; background: #fffbeb; color: #92400e; }
.dom-note { margin-top: 14px; font-size: 12px; color: #64748b; line-height: 1.7; }

@media (max-width: 860px) {
    .dom-body { grid-template-columns: 1fr; }
    .dom-hero { padding: 20px 14px; }
}

/* ===== 深色模式 ===== */
[data-theme="dark"] .dom-hero {
    background: linear-gradient(150deg, #1e1b4b 0%, #0f172a 100%);
    border-color: rgba(165, 180, 252, .22);
}
[data-theme="dark"] .dom-title { color: #c7d2fe; }
[data-theme="dark"] .dom-form, [data-theme="dark"] .dom-result {
    background: rgba(255,255,255,.05); border-color: rgba(165, 180, 252, .18);
}
[data-theme="dark"] .dom-field input, [data-theme="dark"] .dom-field select {
    background: rgba(255,255,255,.06); color: #e2e8f0; border-color: rgba(165,180,252,.25);
}
[data-theme="dark"] .dom-field > span { color: #94a3b8; }
[data-theme="dark"] .dom-total-num b { color: #c7d2fe; }
[data-theme="dark"] .dom-total-sub b { color: #cbd5e1; }
[data-theme="dark"] .dom-break li { background: rgba(255,255,255,.04); border-color: rgba(148,163,184,.2); color: #94a3b8; }
[data-theme="dark"] .dom-break li b { color: #e2e8f0; }
[data-theme="dark"] .dom-break li.ok { background: rgba(79,70,229,.2); border-color: rgba(129,140,248,.4); color: #c7d2fe; }
[data-theme="dark"] .dom-break li.ok.bad { background: rgba(217,119,6,.18); border-color: rgba(251,191,36,.4); color: #fde68a; }
