
/* =========================================================
   豆图工坊 V2.1 最终前端热修复
   仅修复：
   1) 登录/激活输入框文字不可见
   2) 手机端隐藏滚动条，但保留正常滚动
   不修改原有登录按钮/激活逻辑/编辑器功能
   ========================================================= */

/* ---------- 登录/激活输入文字可见 ---------- */
.license-modal .license-input-wrap input,
.license-modal input[type="text"],
.license-modal input[type="tel"],
.license-modal input[type="password"],
.license-modal input[type="number"] {
    color: #1f2937 !important;
    -webkit-text-fill-color: #1f2937 !important;
    caret-color: #ff7a18 !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

body:not(.light-theme) .license-modal .license-input-wrap input,
body:not(.light-theme) .license-modal input[type="text"],
body:not(.light-theme) .license-modal input[type="tel"],
body:not(.light-theme) .license-modal input[type="password"],
body:not(.light-theme) .license-modal input[type="number"] {
    color: #f6f8fb !important;
    -webkit-text-fill-color: #f6f8fb !important;
    caret-color: #ff9b42 !important;
}

/* Chrome / Edge 自动填充时也必须保持可见 */
.license-modal input:-webkit-autofill,
.license-modal input:-webkit-autofill:hover,
.license-modal input:-webkit-autofill:focus,
.license-modal input:-webkit-autofill:active {
    -webkit-text-fill-color: #1f2937 !important;
    caret-color: #ff7a18 !important;
    transition: background-color 9999s ease-out 0s;
}

body:not(.light-theme) .license-modal input:-webkit-autofill,
body:not(.light-theme) .license-modal input:-webkit-autofill:hover,
body:not(.light-theme) .license-modal input:-webkit-autofill:focus,
body:not(.light-theme) .license-modal input:-webkit-autofill:active {
    -webkit-text-fill-color: #f6f8fb !important;
    caret-color: #ff9b42 !important;
}

/* placeholder 单独控制，避免被文字颜色覆盖 */
.license-modal .license-input-wrap input::placeholder {
    color: #8d97a8 !important;
    -webkit-text-fill-color: #8d97a8 !important;
    opacity: 1 !important;
}

/* ---------- 手机端：隐藏滚动条，保留滚动 ---------- */
@media (max-width: 767px) {
    html,
    body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    html::-webkit-scrollbar,
    body::-webkit-scrollbar,
    .upload-page::-webkit-scrollbar,
    .editor-page::-webkit-scrollbar,
    .panel::-webkit-scrollbar,
    .panel-content::-webkit-scrollbar,
    .license-modal-card::-webkit-scrollbar,
    .purchase-modal-card::-webkit-scrollbar {
        width: 0 !important;
        height: 0 !important;
        display: none !important;
    }

    html,
    body,
    .upload-page,
    .editor-page,
    .panel,
    .panel-content,
    .license-modal-card,
    .purchase-modal-card {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    /* 介绍页保持正常纵向滚动 */
    .upload-page {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        min-height: 100dvh;
    }

    /* 编辑器自身保持原 V2.1 的固定布局，不产生页面横向溢出 */
    .editor-page {
        max-width: 100vw;
        overflow: hidden !important;
    }

    /* 登录弹窗内部仍可滚动，但没有滚动条 */
    .license-modal-card,
    .purchase-modal-card {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }
}
