/* 图标工场（icon 子站）专属样式：独立于 Bootstrap/MDB，原生适配 Quasar 与暗黑模式 */

.icon-upload-hero {
    border: 2px dashed rgba(15, 23, 42, 0.14);
    border-radius: 16px;
    background: #f8fafc;
    padding: 32px 36px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.icon-upload-hero.dropping {
    border-color: #1266f1;
    background: rgba(18, 102, 241, 0.06);
}

html[data-theme="dark"] .icon-upload-hero {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.22);
}

html[data-theme="dark"] .icon-upload-hero.dropping {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.08);
}

.icon-hero-title {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
}

/* 右侧浮动图标实时预览框 */
#jumbotron_img_box {
    position: sticky;
    margin-top: -10px;
    margin-left: 28px;
    float: right;
    width: 160px;
    height: 160px;
    top: 90px;
    overflow: hidden;
    flex-shrink: 0;
}

#jumbotron_img_box.has_file {
    outline: 1px solid #cbd5e1;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
}

html[data-theme="dark"] #jumbotron_img_box.has_file {
    outline-color: rgba(148, 163, 184, 0.3);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

#jumbotron_img_box > .shield {
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 0;
    width: 75%;
    transform: translateX(-50%);
}

#jumbotron_img_box > .badge_thumbnail {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
}

#jumbotron_img_box.keep_box {
    overflow: visible;
    box-shadow: none;
    outline: none;
}

#jumbotron_img {
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

#jumbotron_img.contain_center,
#jumbotron_img.contain_left,
#jumbotron_img.contain_right,
#jumbotron_img.contain_top,
#jumbotron_img.contain_bottom {
    max-width: 100%;
    max-height: 100%;
}

#jumbotron_img.keep {
    max-width: 100%;
    max-height: none;
    top: 0;
    transform: translateX(-50%);
}

#jumbotron_img.contain_left,
#jumbotron_img.cover_left {
    left: 0;
    transform: translate(0, -50%);
}

#jumbotron_img.contain_right,
#jumbotron_img.cover_right {
    left: auto;
    right: 0;
    transform: translate(0, -50%);
}

#jumbotron_img.contain_top,
#jumbotron_img.cover_top {
    top: 0;
    transform: translate(-50%, 0);
}

#jumbotron_img.contain_bottom,
#jumbotron_img.cover_bottom {
    top: auto;
    bottom: 0;
    transform: translate(-50%, 0);
}

#jumbotron_img.cover_center,
#jumbotron_img.cover_left,
#jumbotron_img.cover_right,
#jumbotron_img.cover_top,
#jumbotron_img.cover_bottom {
    min-width: 100%;
    min-height: 100%;
}

#jumbotron_img.cover_center.high,
#jumbotron_img.cover_left.high,
#jumbotron_img.cover_right.high,
#jumbotron_img.cover_top.high,
#jumbotron_img.cover_bottom.high {
    width: 100%;
}

#jumbotron_img.cover_center.wide,
#jumbotron_img.cover_left.wide,
#jumbotron_img.cover_right.wide,
#jumbotron_img.cover_top.wide,
#jumbotron_img.cover_bottom.wide {
    height: 100%;
}

#jumbotron_img.stretch {
    width: 100%;
    height: 100%;
}

@media (max-width: 767px) {
    .icon-upload-hero {
        padding: 22px 18px;
    }

    #jumbotron_img_box {
        float: none;
        position: relative;
        top: 0;
        margin: 0 auto 18px;
    }
}

/* 参数分组框 */
.rounded-group {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px 20px 16px;
    margin: 14px 0;
}

.rounded-group .legend {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin: 0 auto 12px;
    text-align: center;
}

html[data-theme="dark"] .rounded-group {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.2);
}

html[data-theme="dark"] .rounded-group .legend {
    color: #94a3b8;
}

.icon-opt-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.icon-opt-row:last-child {
    margin-bottom: 0;
}

.icon-opt-label {
    width: 140px;
    flex-shrink: 0;
    text-align: right;
    font-size: 13.5px;
    color: #475569;
    padding-top: 8px;
}

.icon-opt-ctrl {
    flex: 1;
    min-width: 0;
}

html[data-theme="dark"] .icon-opt-label {
    color: #cbd5e1;
}

@media (max-width: 767px) {
    .icon-opt-row {
        flex-direction: column;
        gap: 6px;
    }

    .icon-opt-label {
        width: auto;
        text-align: left;
        padding-top: 0;
    }
}

/* 颜色选择器色块 */
.icon-color-swatch-btn {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    border: 1px dashed #94a3b8;
    cursor: pointer;
    padding: 0;
    background-image: linear-gradient(45deg, #e2e8f0 25%, transparent 25%),
        linear-gradient(-45deg, #e2e8f0 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e2e8f0 75%),
        linear-gradient(-45deg, transparent 75%, #e2e8f0 75%);
    background-size: 10px 10px;
    background-position: 0 0, 0 5px, 5px -5px, -5px 0;
    overflow: hidden;
}

.icon-color-swatch-fill {
    display: block;
    width: 100%;
    height: 100%;
}

/* 自定义尺寸标签 */
.toggle-input {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #64748b;
    margin-right: 8px;
    margin-bottom: 8px;
    min-width: 58px;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.toggle-input:hover {
    border-color: #1266f1;
    color: #1266f1;
    text-decoration: none;
}

.toggle-input.active {
    border-color: #1266f1;
    background: rgba(18, 102, 241, 0.08);
    color: #1266f1;
    font-weight: 600;
}

html[data-theme="dark"] .toggle-input {
    border-color: rgba(148, 163, 184, 0.25);
    color: #94a3b8;
}

html[data-theme="dark"] .toggle-input.active {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
}

input[type=number].custom-size {
    height: 32px;
    border: 1px solid #1266f1;
    border-radius: 6px;
    margin-right: 8px;
    margin-bottom: 8px;
    width: 68px;
    text-align: center;
    font-size: 13px;
    background: transparent;
    color: inherit;
    outline: none;
}

/* 最近使用工具条 */
.recent-tools-banner {
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    margin-top: 24px;
    margin-bottom: 24px;
}

html[data-theme="dark"] .recent-tools-banner {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.recent-tools-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    flex-shrink: 0;
}

html[data-theme="dark"] .recent-tools-badge {
    color: #94a3b8;
}

.recent-tools-chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.recent-tool-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #334155;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.recent-tool-pill .material-icons {
    color: #1266f1;
    font-size: 16px;
}

.recent-tool-pill:hover {
    background: #1266f1;
    border-color: #1266f1;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(18, 102, 241, 0.25);
}

.recent-tool-pill:hover .material-icons {
    color: #ffffff;
}

html[data-theme="dark"] .recent-tool-pill {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    box-shadow: none;
}

html[data-theme="dark"] .recent-tool-pill .material-icons {
    color: #38bdf8;
}

html[data-theme="dark"] .recent-tool-pill:hover {
    background: #38bdf8;
    border-color: #38bdf8;
    color: #0f172a !important;
}

html[data-theme="dark"] .recent-tool-pill:hover .material-icons {
    color: #0f172a;
}

/* 特性介绍四栏 */
.row-introduce {
    margin: 36px 0 28px;
    font-size: 14px;
    line-height: 1.65;
}

.row-introduce img {
    height: 76px;
}

.icon-badge-tag {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 4px;
    background: rgba(18, 102, 241, 0.1);
    color: #1266f1;
    font-size: 12.5px;
    font-weight: 600;
}

html[data-theme="dark"] .icon-badge-tag {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}

/* ===================== 结果预览页 ===================== */
.browser-box {
    position: relative;
    background: url("/img/tools/browser_light.png") no-repeat;
    width: 253px;
    height: 49px;
}

.browser-box.browser-box-dark {
    background: url("/img/tools/browser_dark.png") no-repeat;
}

.browser-box .browser-title {
    position: absolute;
    left: 80px;
    top: 11px;
    font-size: 14px;
    font-weight: normal;
    color: #1e293b;
}

.browser-box.browser-box-dark .browser-title {
    color: #ffffff;
}

.browser-box .browser-ico {
    position: absolute;
    width: 20px;
    height: 20px;
    left: 50px;
    top: 11px;
}

#tp_contents {
    padding: 24px 6px 0;
}

#tp_contents .icons-row {
    margin-bottom: 32px;
}

#tp_contents .icons-col {
    font-weight: normal;
    text-align: center;
    padding-top: 24px;
    color: #64748b;
    font-size: 12px;
}

html[data-theme="dark"] #tp_contents .icons-col {
    color: #94a3b8;
}

#tp_contents .description {
    border-top: 1px solid #cbd5e1;
    margin-top: 6px;
    padding-top: 6px;
}

html[data-theme="dark"] #tp_contents .description {
    border-top-color: rgba(148, 163, 184, 0.25);
}

#tp_contents .mobile_preview {
    position: relative;
    margin: 0 auto;
    width: 444px;
    height: 743px;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

html[data-theme="dark"] #tp_contents .mobile_preview {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

#tp_contents .mobile_preview.iphonex_mobile_preview {
    height: 910px;
    border-radius: 52px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

#tp_contents .mobile_preview.mac_mobile_preview {
    width: 800px;
    height: 470px;
    border-radius: 12px;
}

#tp_contents .mobile_preview.ios_imageset_preview {
    background: url("/img/icon/ios_imageset.png");
    width: 1157px;
    height: 947px;
    color: #ffffff;
    font-size: 12px;
    border-radius: 8px;
}

#tp_contents .mobile_preview.ios_imageset_preview > * {
    position: absolute;
}

#tp_contents .mobile_preview.ios_imageset_preview img.x1 {
    max-height: 14px;
    max-width: 14px;
    border-radius: 0;
    width: auto;
    height: auto;
    vertical-align: text-bottom;
}

#tp_contents .mobile_preview.ios_imageset_preview .iip_name_toolbar {
    left: 264px;
    top: 71px;
    display: flex;
    align-items: center;
}

#tp_contents .mobile_preview.ios_imageset_preview .iip_name_toolbar > img {
    margin-right: 4px;
}

#tp_contents .mobile_preview.ios_imageset_preview .iip_name_left {
    font-size: 13px;
    left: 19px;
    top: 114px;
    display: flex;
    align-items: center;
}

#tp_contents .mobile_preview.ios_imageset_preview .iip_name_left img.x1 {
    width: 12px;
    max-height: 12px;
    margin-right: 4px;
}

#tp_contents .mobile_preview.ios_imageset_preview .iip_right_box {
    left: 240px;
    top: 103px;
    width: 907px;
    height: 806px;
    border: 1px solid rgb(86, 86, 86);
    border-radius: 4px;
}

#tp_contents .mobile_preview.ios_imageset_preview .iip_name_right {
    font-size: 14px;
    position: absolute;
    padding: 3px 8px;
    background: rgb(86, 86, 86);
    border-bottom-right-radius: 5px;
    font-weight: bold;
}

#tp_contents .mobile_preview.ios_imageset_preview .iip_content {
    margin: 80px 95px 20px;
    text-align: center;
    font-size: 14px;
    width: 700px;
}

#tp_contents .mobile_preview.ios_imageset_preview .iip_content .col-4 {
    display: flex;
    justify-content: center;
    align-content: center;
    flex-direction: column;
}

#tp_contents .mobile_preview.ios_imageset_preview .iip_content img {
    border-radius: 0 !important;
    align-self: center;
    max-height: 400px !important;
    width: auto !important;
    height: auto !important;
}

#tp_contents .mobile_preview.ios_imageset_preview .iip_content img.x2 {
    max-width: 100px;
}

#tp_contents .mobile_preview.ios_imageset_preview .iip_content img.x4 {
    max-width: 150px;
}

#tp_contents .mobile_preview.ios_imageset_preview .iip_content img.x5 {
    max-width: 200px;
}

#tp_contents .mobile_preview.ios_imageset_preview .iip_content .description {
    border-top: 1px solid rgb(86, 86, 86);
}

#tp_contents img:not(.no_preview) {
    cursor: zoom-in;
    transition: 0.25s all;
}

#tp_contents img:not(.no_preview):hover {
    box-shadow: 0 3px 8px 3px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

#tp_android .description {
    border-top-width: 0;
    line-height: 1.8em;
    margin-top: 0;
}

#tp_android .icons-row {
    margin-bottom: 15px;
}

#tp_ios,
#tp_watch,
#tp_webapp,
#tp_phonegap,
#tp_windowsphone,
#tp_quasar,
#tp_mac {
    overflow-x: auto;
}

#tp_ios .icons-row .icon-row,
#tp_watch .icons-row .icon-row,
#tp_webapp .icons-row .icon-row,
#tp_phonegap .icons-row .icon-row,
#tp_windowsphone .icons-row .icon-row,
#tp_quasar .icons-row .icon-row,
#tp_mac .icons-row .icon-row {
    vertical-align: middle;
    line-height: 61px;
}

#tp_ios img.x1,
#tp_watch img.x1,
#tp_webapp img.x1,
#tp_phonegap img.x1,
#tp_windowsphone img.x1,
#tp_quasar img.x1,
#tp_mac img.x1 {
    width: 29px;
    height: 29px;
    border-radius: 6px;
}

#tp_ios img.x2,
#tp_watch img.x2,
#tp_webapp img.x2,
#tp_phonegap img.x2,
#tp_windowsphone img.x2,
#tp_quasar img.x2,
#tp_mac img.x2 {
    width: 40px;
    height: 40px;
    border-radius: 9px;
}

#tp_ios img.x3,
#tp_watch img.x3,
#tp_webapp img.x3,
#tp_phonegap img.x3,
#tp_windowsphone img.x3,
#tp_quasar img.x3,
#tp_mac img.x3 {
    width: 56px;
    height: 56px;
    border-radius: 12px;
}

#tp_ios img.x4,
#tp_watch img.x4,
#tp_webapp img.x4,
#tp_phonegap img.x4,
#tp_windowsphone img.x4,
#tp_quasar img.x4,
#tp_mac img.x4 {
    width: 72px;
    height: 72px;
    border-radius: 15px;
}

#tp_ios img.x5,
#tp_watch img.x5,
#tp_webapp img.x5,
#tp_phonegap img.x5,
#tp_windowsphone img.x5,
#tp_quasar img.x5,
#tp_mac img.x5 {
    width: 96px;
    height: 96px;
    border-radius: 20px;
}

#tp_ios img.x8,
#tp_watch img.x8,
#tp_webapp img.x8,
#tp_phonegap img.x8,
#tp_windowsphone img.x8,
#tp_quasar img.x8,
#tp_mac img.x8 {
    width: 140px;
    height: 140px;
    border-radius: 28px;
}

#tp_ios .no-radius img,
#tp_watch .no-radius img,
#tp_webapp .no-radius img,
#tp_phonegap .no-radius img,
#tp_windowsphone .no-radius img,
#tp_quasar .no-radius img,
#tp_mac .no-radius img,
#tp_windowsphone img {
    border-radius: 0 !important;
}

#tp_watch img.watch {
    width: 54px;
    height: 54px;
    border-radius: 27px;
}

#tp_custom {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
}

.icon-custom-tile {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 10px;
    background: #ffffff;
}

.icon-custom-tile img {
    max-width: 180px;
    max-height: 180px;
    border-radius: 6px;
}

html[data-theme="dark"] .icon-custom-tile {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.2);
}

.icon-code-sample {
    background: #f1f5f9;
    border-left: 4px solid #1266f1;
    border-radius: 6px;
    padding: 12px 14px;
    overflow-x: auto;
    font-size: 12.5px;
    line-height: 1.55;
    color: #1e293b;
}

html[data-theme="dark"] .icon-code-sample {
    background: #0c1320;
    border-left-color: #38bdf8;
    color: #e2e8f0;
}
