/* ============ 证件照制作增强：ip-* ============ */

/* ---------- Hero ---------- */
.ip-hero {
    margin: 18px 0 26px;
    padding: 22px;
    background: linear-gradient(135deg, #eef4ff 0%, #f7fbff 55%, #f3f7ff 100%);
    border: 1px solid #e0e8f5;
    border-radius: 18px;
}
.ip-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.ip-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ip-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(64, 108, 190, .16);
}
.ip-title { font-size: 20px; font-weight: 800; color: #1f2b45; letter-spacing: .3px; }
.ip-tagline { font-size: 13px; color: #6b7a96; margin-top: 2px; }
.ip-privacy {
    font-size: 12px;
    color: #2f7d55;
    background: #e8f7ef;
    border: 1px solid #c6ead8;
    border-radius: 999px;
    padding: 6px 12px;
    white-space: nowrap;
}

/* ---------- 上传区 ---------- */
.ip-drop {
    border: 2px dashed #b9c6dc;
    border-radius: 16px;
    padding: 30px 18px;
    text-align: center;
    background: rgba(255, 255, 255, .65);
    transition: border-color .2s, background .2s;
    margin-bottom: 16px;
}
.ip-drop.is-drag { border-color: #2b62d9; background: rgba(223, 233, 255, .8); }
.ip-drop-icon { font-size: 44px; line-height: 1; margin-bottom: 8px; }
.ip-drop-title { margin: 4px 0 8px; color: #1f2b45; font-size: 16px; font-weight: 600; }
.ip-drop-desc {
    color: #6b7a96;
    font-size: 13px;
    line-height: 1.8;
    max-width: 560px;
    margin: 0 auto 14px;
}
.ip-drop-btn {
    border: 0;
    border-radius: 10px;
    padding: 10px 26px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    background: #2b62d9;
    color: #fff;
    transition: background .15s;
}
.ip-drop-btn:hover { background: #1e4cb8; }

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

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

/* ---------- 字段 ---------- */
.ip-field { margin-bottom: 12px; }
.ip-field:last-child { margin-bottom: 0; }
.ip-label {
    display: block;
    color: #4a587a;
    font-size: 13px;
    margin-bottom: 6px;
    font-weight: 500;
}
.ip-select {
    width: 100%;
    border: 1px solid #c5d1e3;
    border-radius: 9px;
    padding: 8px 10px;
    font-size: 13.5px;
    color: #1a2b4a;
    background: #fff;
    outline: none;
}
.ip-select:focus { border-color: #2b62d9; }
.ip-num {
    width: 100%;
    border: 1px solid #c5d1e3;
    border-radius: 9px;
    padding: 7px 10px;
    font-size: 13px;
    color: #1a2b4a;
    background: #fff;
    outline: none;
}
.ip-num:focus { border-color: #2b62d9; }
.ip-pair { display: flex; align-items: center; gap: 8px; }
.ip-pair span { color: #8a94ab; font-size: 13px; }
.ip-hint { color: #6b7a96; font-size: 12px; }
.ip-note { color: #6b7a96; font-size: 12px; margin: 4px 0 0; }
.ip-inline-note { display: block; color: #8a94ab; font-size: 11.5px; margin-top: 4px; }

/* ---------- 段控件 ---------- */
.ip-seg {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 4px;
    background: #eef3fc;
    border-radius: 10px;
    padding: 4px;
}
.ip-seg.col2 { grid-template-columns: repeat(2, 1fr); }
.ip-seg.col3 { grid-template-columns: repeat(3, 1fr); }
.ip-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;
}
.ip-seg-btn:hover { color: #1a2b4a; }
.ip-seg-btn.active {
    background: #fff;
    color: #1a2b4a;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

/* ---------- 按钮组（底色 / 换装） ---------- */
.ip-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ip-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #dbe3f0;
    background: #fff;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12.5px;
    color: #4a587a;
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
}
.ip-chip:hover { border-color: #2b62d9; color: #2b62d9; }
.ip-chip.active { border-color: #2b62d9; color: #2b62d9; background: #eef3fc; font-weight: 600; }
.ip-chip .dot {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, .1);
    flex: none;
}

/* ---------- 颜色 ---------- */
.ip-color-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ip-color-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #6b7a96; }
.ip-color-row input[type="color"] {
    width: 38px;
    height: 28px;
    border: 1px solid #c5d1e3;
    border-radius: 7px;
    background: #fff;
    padding: 2px;
    cursor: pointer;
}
.ip-check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4a587a;
    font-size: 13px;
    cursor: pointer;
}
.ip-check input { accent-color: #2b62d9; width: 15px; height: 15px; }

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

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

/* ---------- 按钮 ---------- */
.ip-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; align-items: center; }
.ip-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;
}
.ip-btn:hover { background: #f7faff; border-color: #2b62d9; }
.ip-btn:disabled { opacity: .5; cursor: not-allowed; }
.ip-btn.primary { background: #2b62d9; color: #fff; border-color: #2b62d9; }
.ip-btn.primary:hover { background: #1e4cb8; border-color: #1e4cb8; }
.ip-mini-btn {
    border: 1px solid #c5d1e3;
    background: #fff;
    color: #2b62d9;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
}
.ip-mini-btn:hover { background: #eef3fc; border-color: #2b62d9; }

/* ---------- 进度 / 状态 ---------- */
.ip-progress {
    width: 100%;
    height: 8px;
    background: #eef3fc;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 12px;
}
.ip-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #2b62d9, #4c8af0);
    transition: width .25s;
}
.ip-status { margin-top: 10px; color: #4a587a; font-size: 13px; }
.ip-status.is-ok { color: #2b62d9; }
.ip-status.is-warn { color: #c0392b; }

/* ---------- 简介块 / 免责 ---------- */
.ip-info-block { margin-bottom: 26px; }
.ip-info-block .detail-icon {
    --icon-bg: linear-gradient(135deg, #2563eb, #06b6d4);
    --icon-shadow: rgba(37, 99, 235, .3);
}
.ip-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;
}

/* ---------- 规格表 ---------- */
.ip-table-wrap { overflow-x: auto; margin-top: 6px; }
.ip-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 520px;
}
.ip-table th, .ip-table td {
    border: 1px solid #e3e8f1;
    padding: 8px 10px;
    text-align: left;
    color: #4a587a;
}
.ip-table th { background: #f7faff; color: #1a2b4a; font-weight: 600; white-space: nowrap; }
.ip-table td { font-variant-numeric: tabular-nums; }
