/* ============ 在线 Logo 制作：lm-* ============ */

/* ---------- Hero 外壳 ---------- */
.lm-hero {
    margin: 18px 0 26px;
    padding: 22px;
    background: linear-gradient(135deg, #f3f0ff 0%, #f7fbff 55%, #fff6f9 100%);
    border: 1px solid #e6e6f7;
    border-radius: 18px;
}
.lm-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.lm-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lm-logo {
    width: 46px;
    height: 46px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(108, 78, 190, .18);
}
.lm-title { font-size: 20px; font-weight: 800; color: #1f2b45; letter-spacing: .3px; }
.lm-tagline { font-size: 13px; color: #6b7a96; margin-top: 2px; }
.lm-privacy {
    font-size: 12px;
    color: #2f7d55;
    background: #e8f7ef;
    border: 1px solid #c6ead8;
    border-radius: 999px;
    padding: 6px 12px;
    white-space: nowrap;
}

/* ---------- 两栏 ---------- */
.lm-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 16px;
    align-items: start;
}
@media (max-width: 940px) {
    .lm-grid { grid-template-columns: 1fr; }
}

/* ---------- 卡片 ---------- */
.lm-card {
    background: #fff;
    border: 1px solid #e3e8f1;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 14px;
}
.lm-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.lm-card-head b { font-size: 14px; color: #1a2b4a; }
.lm-card-info {
    color: #6b7a96;
    font-size: 12px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ---------- 字段 ---------- */
.lm-field { margin-bottom: 12px; }
.lm-field:last-child { margin-bottom: 0; }
.lm-label {
    display: block;
    color: #4a587a;
    font-size: 13px;
    margin-bottom: 6px;
    font-weight: 500;
}
.lm-input {
    width: 100%;
    border: 1px solid #c5d1e3;
    border-radius: 9px;
    padding: 9px 11px;
    font-size: 14px;
    color: #1a2b4a;
    background: #fff;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.lm-input:focus {
    border-color: #2b62d9;
    box-shadow: 0 0 0 3px rgba(43, 98, 217, .12);
}
.lm-select {
    width: 100%;
    border: 1px solid #c5d1e3;
    border-radius: 9px;
    padding: 8px 10px;
    font-size: 13.5px;
    color: #1a2b4a;
    background: #fff;
    outline: none;
}
.lm-select:focus { border-color: #2b62d9; }
.lm-hint { color: #6b7a96; font-size: 12px; }
.lm-note { color: #6b7a96; font-size: 12px; margin: 4px 0 0; }
.lm-inline-note { display: block; color: #8a94ab; font-size: 11.5px; margin-top: 4px; }

/* ---------- 段控件 ---------- */
.lm-seg {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 4px;
    background: #eef3fc;
    border-radius: 10px;
    padding: 4px;
}
.lm-seg.col2 { grid-template-columns: repeat(2, 1fr); }
.lm-seg.col3 { grid-template-columns: repeat(3, 1fr); }
.lm-seg.col4 { grid-template-columns: repeat(4, 1fr); }
.lm-seg-btn {
    border: 0;
    background: transparent;
    padding: 7px 6px;
    font-size: 13px;
    color: #4a587a;
    border-radius: 7px;
    cursor: pointer;
    font-weight: 500;
    transition: background .15s, color .15s;
}
.lm-seg-btn:hover { color: #1a2b4a; }
.lm-seg-btn.active {
    background: #fff;
    color: #1a2b4a;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

/* ---------- 配色 ---------- */
.lm-swatches {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}
.lm-swatch {
    height: 30px;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
    transition: transform .12s, border-color .15s;
}
.lm-swatch:hover { transform: translateY(-1px); }
.lm-color-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lm-color-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7a96;
}
.lm-color-row input[type="color"] {
    width: 38px;
    height: 28px;
    border: 1px solid #c5d1e3;
    border-radius: 7px;
    background: #fff;
    padding: 2px;
    cursor: pointer;
}
.lm-check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4a587a;
    font-size: 13px;
    cursor: pointer;
}
.lm-check input { accent-color: #2b62d9; width: 15px; height: 15px; }

/* ---------- 形状 / 符号 ---------- */
.lm-shapes {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
}
.lm-shape {
    height: 34px;
    border: 1px solid #dbe3f0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    padding: 6px;
    color: #9aa8c2;
    transition: border-color .15s, color .15s, background .15s;
}
.lm-shape:hover { border-color: #2b62d9; color: #2b62d9; }
.lm-shape.active {
    border-color: #2b62d9;
    color: #2b62d9;
    background: #eef3fc;
}
.lm-ico-none { font-size: 14px; line-height: 22px; }

.lm-marks {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}
.lm-mark {
    height: 32px;
    border: 1px solid #dbe3f0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #4a587a;
    transition: border-color .15s, color .15s, background .15s;
}
.lm-mark:hover { border-color: #2b62d9; color: #2b62d9; }
.lm-mark.active { border-color: #2b62d9; color: #2b62d9; background: #eef3fc; font-weight: 700; }

/* ---------- 滑杆 ---------- */
.lm-range { width: 100%; accent-color: #2b62d9; }
.lm-slider { display: flex; align-items: center; gap: 10px; }
.lm-slider .lm-range { flex: 1; }
.lm-slider b {
    min-width: 46px;
    text-align: right;
    color: #2b62d9;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

/* ---------- 预览 ---------- */
.lm-stage {
    background: repeating-conic-gradient(#f0f3f9 0% 25%, #fff 25% 50%) 0 0 / 18px 18px;
    border: 1px solid #e3e8f1;
    border-radius: 12px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}
.lm-canvas {
    display: block;
    max-width: 100%;
    max-height: 420px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(20, 35, 70, .14);
}

/* ---------- 按钮 ---------- */
.lm-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.lm-btn {
    border: 1px solid #c5d1e3;
    background: #fff;
    color: #1a2b4a;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.lm-btn:hover { background: #f7faff; border-color: #2b62d9; }
.lm-btn.primary { background: #2b62d9; color: #fff; border-color: #2b62d9; }
.lm-btn.primary:hover { background: #1e4cb8; border-color: #1e4cb8; }
.lm-btn.ghost { color: #2b62d9; }

.lm-status { margin-top: 10px; color: #4a587a; font-size: 13px; }
.lm-status.is-ok { color: #2b62d9; }
.lm-status.is-warn { color: #c0392b; }

/* ---------- 简介块 / 免责 ---------- */
.lm-info-block { margin-bottom: 26px; }
.lm-info-block .detail-icon {
    --icon-bg: linear-gradient(135deg, #6366f1, #ec4899);
    --icon-shadow: rgba(99, 102, 241, .32);
}
.lm-disclaim {
    margin: 16px 0 0;
    padding: 12px 16px;
    border-radius: 12px;
    background: #fff8ea;
    border: 1px solid #f3e2b8;
    font-size: 12.5px;
    line-height: 1.8;
    color: #8a6516;
}
