#html-container {
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: #333;
}

#html-container *,
#html-container *::before,
#html-container *::after {
    box-sizing: border-box;
}

#html-container .config-wrap {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0px 25px 24px;
    padding-left: 0;
}

/* ========== 导航卡片 ========== */
#html-container .nav-card {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

#html-container .nav-item {
    display: flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 8px;
    color: #888;
    font-size: 15px;
    line-height: 1.4;
    cursor: pointer;
    transition: color 0.2s ease;
    margin-bottom: 10px;
}

#html-container .nav-item.active {
    background: #0078B4;
    color: #fff;
}

#html-container .nav-num {
    font-weight: 600;
    margin-right: 10px;
    font-size: 14px;
}

#html-container .nav-text {
    font-size: 14px;
}

/* ========== 当前配置卡片 ========== */
#html-container .config-card {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

#html-container .config-header {
    color: #888;
    font-size: 16px;
    margin-bottom: 14px;
    font-weight: 400;
}

#html-container .spec-list {
    display: flex;
    flex-direction: column;
}

#html-container .spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    /* border-bottom: 1px solid #eee; */
    font-size: 16px;
}

#html-container .spec-row:last-child {
    border-bottom: none;
}

#html-container .spec-label {}

#html-container .spec-value {
    color: #333;
    font-weight: 500;
}

/* ========== 按钮组 ========== */
#html-container .btn-group {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#html-container .btn {
    width: 100%;
    height: 44px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

#html-container .btn:active {
    opacity: 0.85;
}

#html-container .btn-primary {
    background: #D35400;
    color: #fff;
    border: none;
    padding: .375rem .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#html-container .btn-outline {
    background: #fff;
    color: #D35400;
    border: 1px solid #D35400;
}



/* ========== 表面色卡模块 ========== */
#html-container .surface-card {}

#html-container .surface-header {
    color: #888;
    font-size: 14px;
    margin-bottom: 14px;
    font-weight: 400;
}

#html-container .swatch-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

#html-container .swatch {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    padding: 5px;
    align-items: flex-end;
}

#html-container .swatch img {
    /* position: absolute;
    inset: 0; */
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

#html-container .swatch-label {
    position: absolute;
    z-index: 1;
    color: #fff;
    font-size: 16px;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 20px;
}

/* 选中态：内白边 + 外深色边（双层描边） */
#html-container .swatch.active {
    box-shadow: inset 0 0 0 2px #fff,
        0 0 0 2px #333;
}






/* 索要样品 */

/* ===== 弹窗容器 ===== */
#html-container .inq-modal {
    position: relative;
    max-width: 100%;
}

#html-container .inq-close {
    position: absolute;
    top: 16px;
    right: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    background: transparent;
    color: #1b2430;
    cursor: pointer;
}

#html-container .inq-close svg {
    width: 20px;
    height: 20px;
}

/* ===== 分区标题 ===== */
#html-container .inq-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

#html-container .inq-step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #2c7be5;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

#html-container .inq-title {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #1b2430;
}

/* ===== 询价产品卡片 ===== */
#html-container .inq-product {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    background: #eef3f6;
    border-radius: 12px;
}

#html-container .inq-product-img {
    flex: 0 0 auto;
    width: 66px;
    height: 66px;
    background: #fff;
    border: 1px solid #e3e6ea;
    border-radius: 8px;
}

#html-container .inq-product-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#html-container .inq-product-main {
    flex: 1;
    min-width: 0;
}

#html-container .inq-product-code {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 600;
    color: #c9500f;
}

#html-container .inq-product-name {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
    color: #1b2430;
}

#html-container .inq-product-spec {
    margin: 0;
    font-size: 13px;
    color: #7b838e;
}

#html-container .inq-product-side {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: stretch;
    padding: 2px 0;
    text-align: right;
}

#html-container .inq-product-qty {
    margin: 0;
    font-size: 16px;
    color: #3b424c;
}

#html-container .inq-product-reselect {
    font-size: 13px;
    color: #5b636e;
    text-decoration: none;
    cursor: pointer;
}

#html-container .inq-product-reselect:hover {
    color: #c9500f;
}

#html-container .inq-product-tip {
    margin: 10px 0 22px;
    font-size: 12px;
    color: #98a0aa;
}

/* ===== 表单通用 ===== */
#html-container .inq-field {
    margin-bottom: 18px;
}

#html-container .inq-row {
    display: grid;
    gap: 16px;
}

#html-container .inq-row-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

#html-container .inq-row-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

#html-container .inq-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #2b333d;
}

#html-container .inq-req {
    margin-left: 3px;
    color: #d2530e;
}

#html-container .inq-input,
#html-container .inq-select,
#html-container .inq-textarea {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: none;
    border-radius: 8px;
    background: #eef3f6;
    color: #1b2430;
    font-family: inherit;
    font-size: 13px;
    outline: none;
}

#html-container .inq-input::placeholder,
#html-container .inq-textarea::placeholder {
    color: #a8afb9;
}

#html-container .inq-input:focus,
#html-container .inq-select:focus,
#html-container .inq-textarea:focus {
    box-shadow: inset 0 0 0 1.5px #2c7be5;
}

#html-container .inq-input.is-error,
#html-container .inq-textarea.is-error {
    box-shadow: inset 0 0 0 1.5px #d9512f;
}

#html-container .inq-select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 36px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    cursor: pointer;
}

#html-container .inq-textarea {
    height: auto;
    min-height: 84px;
    padding: 12px 14px;
    line-height: 1.6;
    resize: vertical;
}

#html-container .inq-textarea-sm {
    min-height: 62px;
}

/* ===== 合作类型选项 ===== */
#html-container .inq-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

#html-container .inq-option {
    padding: 12px 14px;
    background: #e9eff2;
    border: 1.5px solid transparent;
    border-radius: 9px;
    cursor: pointer;
    transition:
        background-color 0.2s,
        border-color 0.2s;
}

#html-container .inq-option.is-active {
    background: #fff;
    border-color: #2a3140;
}

#html-container .inq-option-title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: #1b2430;
}

#html-container .inq-option-desc {
    margin: 0;
    font-size: 12px;
    color: #98a0aa;
}

/* ===== 隐私勾选 ===== */
#html-container .inq-agree {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 2px 0 18px;
    font-size: 12.5px;
    color: #4b5563;
    cursor: pointer;
}

#html-container .inq-agree input[type="checkbox"] {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    margin: 1px 0 0;
    accent-color: #2c7be5;
    cursor: pointer;
}

/* ===== 提交按钮 ===== */
#html-container .inq-submit {
    display: block;
    width: 52%;
    min-width: 260px;
    height: 48px;
    margin: 0 auto 26px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(90deg, #e2701f 0%, #c2430c 100%);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(194, 67, 12, 0.22);
}

#html-container .inq-submit:hover {
    filter: brightness(1.06);
}

#html-container .inq-submit:disabled {
    cursor: default;
    filter: saturate(0.75);
    box-shadow: none;
}

/* ===== 直接联系区块 ===== */
#html-container .inq-help {
    padding: 22px 22px 16px;
    background: #eef3f6;
    border: 1px dashed #d2d8e0;
    border-radius: 12px;
    text-align: center;
}

#html-container .inq-help-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: #1b2430;
}

#html-container .inq-help-sub {
    margin: 0 0 30px;
    font-size: 14px;
    color: #7b838e;
}

#html-container .inq-contacts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

#html-container .inq-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #f9fbfc;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(23, 33, 48, 0.04);
    text-align: left;
}

#html-container .inq-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    overflow: hidden;
}

#html-container .inq-contact-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#html-container .inq-contact-text {
    min-width: 0;
}

#html-container .inq-contact-label {
    margin: 0 0 2px;
    font-size: 14px;
    color: #8a929d;
}

#html-container .inq-contact-value {
    margin: 0;
    font-size: 16px;
    color: #1b2430;
    word-break: break-all;
}

#html-container .inq-help-note {
    margin: 14px 0 0;
    font-size: 11.5px;
    line-height: 1.7;
    color: #98a0aa;
    text-align: left;
}

/* ===== 响应式 ===== */
@media (max-width: 720px) {
    #html-container {
        padding: 16px 12px;
    }

    #html-container .inq-modal {
        padding: 24px 18px 20px;
    }

    #html-container .inq-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #html-container .inq-row-2,
    #html-container .inq-row-3 {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    #html-container .inq-contacts {
        grid-template-columns: minmax(0, 1fr);
    }

    #html-container .inq-submit {
        width: 100%;
        min-width: 0;
    }
}