.htc-wrap {
    margin-top: 28px;
}

.htc-wrap input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* 预览 */
.htc-preview {
    margin: 0 auto 28px;
    max-width: 420px;
}

.htc-preview-frame {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    line-height: 0;
}

.htc-preview-base {
    width: 100%;
    height: auto;
    display: block;
}

.htc-preview-clip {
    position: absolute;
    overflow: hidden;
    border-radius: 10px;
    display: block;
    line-height: 0;
}

.htc-preview-overlay {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.htc-preview-hint {
    margin: 8px 0 0;
    font-size: 12px;
    color: #8a8a8a;
    text-align: center;
}

/* 步骤 */
.htc-step {
    padding: 22px 0;
    border-top: 1px solid #ececec;
}

.htc-step-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.htc-badge {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #c9a2a8;
    color: #fff;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.htc-step-title {
    margin: 2px 0 6px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.htc-step-desc {
    margin: 0;
    font-size: 13px;
    color: #6f6f6f;
}

/* 步骤 1：颜色 */
.htc-colors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.htc-color {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 10px;
    border: 1px solid #ddd;
    border-radius: 999px;
    cursor: pointer;
    background: #fff;
}

.htc-color:has(input:checked) {
    border-color: #b98d94;
    background: #fbf6f6;
}

.htc-color:has(input:focus-visible) {
    outline: 2px solid #b98d94;
    outline-offset: 2px;
}

.htc-swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.htc-swatch-black {
    background: #141414;
}

.htc-swatch-clear {
    background: #fff;
    border: 1px solid #c9c9c9;
}

.htc-color-label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* 步骤 2：背面图 */
.htc-backs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.htc-back {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 10px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    text-align: center;
}

.htc-back:has(input:checked) {
    border-color: #b98d94;
    background: #fbf6f6;
}

.htc-back:has(input:focus-visible) {
    outline: 2px solid #b98d94;
    outline-offset: 2px;
}

.htc-back-icon svg {
    width: 34px;
    height: 34px;
    color: #2f2f2f;
}

.htc-back-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.htc-back-desc {
    font-size: 12px;
    color: #777;
}

.htc-back-notes {
    margin: 14px 0 0;
    padding-left: 20px;
    font-size: 13px;
    line-height: 1.7;
    color: #555;
}

.htc-back-notes li {
    margin-bottom: 4px;
}

.htc-upload-btn {
    margin-top: 4px;
    padding: 7px 20px;
    border: 0;
    border-radius: 999px;
    background: #c9a2a8;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.htc-upload-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.htc-shuffle {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #b98d94;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
}

.htc-upload-status {
    font-size: 12px;
    color: #666;
    word-break: break-all;
}

/* 三个选项卡（无图/随机/上传）强制同一行展示，UPLOAD 按钮不得溢出卡片（2026-10-14） */
.htc-back {
    min-width: 0;
}

.htc-upload-btn {
    white-space: nowrap;
    max-width: 100%;
}

@media (max-width: 480px) {
    .htc-backs {
        gap: 8px;
    }

    .htc-back {
        padding: 16px 6px 12px;
    }

    .htc-upload-btn {
        padding: 7px 10px;
        font-size: 11px;
    }
}

/* 前台订单确认 */
.htc-order-summary {
    margin: 28px 0;
}

.htc-order-summary h2 {
    font-size: 18px;
    margin: 0 0 10px;
}

.htc-order-summary ul {
    margin: 0;
    padding-left: 18px;
}
