.box-calculator{
    padding: 40px 0;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}
.box-calculator .box-title{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.box-calculator .box-title h2{
    font-size: 18px;
    color: #fff;
}
.box-calculator .box-title a{
    font-size: 14px;
    color: #fff;
}

.box-calculator-item{
    display: flex;
    gap: 20px;
}

.calculator-list{
    flex: 1;
    background: #FFFFFF;
    border-radius: 6px;
    padding: 15px;
    border: 1px solid rgba(2, 105, 184, 0.08);
    transition: all var(--transition-normal);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    position: relative;
    margin-top: 20px;
}

.calculator-list-title{
    display: flex;
    align-items: center;
}

.calculator-list-title .icon{
    width: 56px;
    height: 56px;
    background: #003A6B;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s ease;
    margin-right: 10px;
}

.calculator-list-title .icon img{
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: grayscale(100%) brightness(1000%);
}
.calculator-list-title .h3{
    flex: 1;
}
.calculator-list-title h3{
    font-size: 18px;
    color: #003A6B;
    
}
.calculator-list-title p{
    font-size: 12px;
    color: #8a94a6;
    line-height: 16px;
}

/* ==================== 商标表单 (calculator-from) ==================== */
.calculator-from{
    margin-top: 14px;
}

.tm-form .form-group{
    margin-bottom: 13px;
}

.tm-form .form-row{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

.tm-form .form-row .form-group{
    margin-bottom: 0;
}

@media (max-width: 600px){
    .tm-form .form-row{
        grid-template-columns: 1fr;
    }
}

.tm-form .form-label{
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #003A6B;
    margin-bottom: 6px;
}

.tm-form .form-label .en{
    font-weight: 400;
    font-size: 11px;
    color: #8a94a6;
    margin-left: 5px;
}

.tm-form .form-control{
    width: 100%;
    height: 36px;
    padding: 0 11px;
    font-size: 12.5px;
    color: #333;
    background: #f7f9fc;
    border: 1px solid #e3e8f0;
    border-radius: 8px;
    outline: none;
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
    box-sizing: border-box;
}

.tm-form .form-control::placeholder{
    color: #aab2c0;
}

.tm-form .form-control:focus{
    border-color: #003A6B;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 58, 107, 0.12);
}

.tm-form select.tm-select{
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23003A6B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}

/* 文件上传：紧凑横向（无按钮） */
.tm-form .file-upload{
    position: relative;
}

.tm-form .file-input{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.tm-form .file-drop{
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    height: 36px;
    background: #f7f9fc;
    border: 1px solid #e3e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color var(--transition-normal), background var(--transition-normal);
}

.tm-form .file-drop:hover,
.tm-form .file-drop:focus-within{
    border-color: #003A6B;
    background: #eef3fa;
}

.tm-form .file-drop .file-icon{
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #015494;
    background: #e3ecf7;
    border-radius: 4px;
    font-size: 8px;
}

.tm-form .file-drop .file-text{
    display: flex;
    flex-direction: row;
    align-items: center;
    min-width: 0;
    line-height: 1;
}

.tm-form .file-drop .file-hint{
    font-size: 11px;
    color: #6b7688;
}

.tm-form .file-drop .file-hint strong{
    color: #003A6B;
    font-weight: 600;
}

/* 提交按钮 */
.tm-form .form-submit{
    width: 100%;
    height: 38px;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, #003A6B 0%, #015494 100%);
    border: none;
    border-radius: 9px;
    cursor: pointer;
    transition: opacity var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
}

.tm-form .form-submit:hover{
    opacity: 0.94;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 58, 107, 0.25);
}

.tm-form .form-submit:active{
    transform: translateY(0);
}

/* ==================== 单选 (专利类型) ==================== */
.tm-form .tm-radio-group{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
    padding-top: 2px;
}

.tm-form .tm-radio{
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #6b7688;
    cursor: pointer;
    transition: color var(--transition-normal);
}

.tm-form .tm-radio input{
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.tm-form .tm-radio .tm-radio-mark{
    flex: 0 0 auto;
    width: 13px;
    height: 13px;
    border: 1.5px solid #c2ccdb;
    border-radius: 50%;
    transition: border-color var(--transition-normal);
    position: relative;
}

.tm-form .tm-radio .tm-radio-mark::after{
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: #003A6B;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform var(--transition-normal);
}

.tm-form .tm-radio .tm-radio-text i{
    font-style: normal;
    font-size: 10.5px;
    color: #aab2c0;
    margin-left: 3px;
   
}
.tm-radio-text{
     line-height: 16px;
}

.tm-form .tm-radio:hover{
    color: #003A6B;
}

.tm-form .tm-radio input:checked ~ .tm-radio-mark{
    border-color: #003A6B;
}

.tm-form .tm-radio input:checked ~ .tm-radio-mark::after{
    transform: translate(-50%, -50%) scale(1);
}

.tm-form .tm-radio input:checked ~ .tm-radio-text{
    color: #003A6B;
    font-weight: 600;
    
}


@media (max-width: 1400px) {
    .calculator-list-title .icon{
        width: 45px;
    height: 45px;
     border-radius: 6px;
    }
    .calculator-list-title .icon img{
        width: 20px;
        height: 20px;
       
    }
    .calculator-list-title h3{
        font-size: 16px;
    }
     .calculator-list-title p{
        font-size: 12px;
     }
}

@media (max-width: 1200px) {
    .box-calculator-item{
        flex-wrap: wrap;
    }
    .calculator-list{
        width: 50%;
        flex: none;
    }
}

@media (max-width: 768px) {
    .calculator-list{
        width: 100%;
        margin-top: 10px;
        padding: 10px;
    }
    .box-calculator-item{
        gap: 0;
    }
    .calculator-from{
        display: none;
    }
       .calculator-from.block{
        display: block !important;
       }
}

/* ==================== 中国商标抢注监测报告页 ==================== */
.tm-page{
    padding: 40px 0 56px;
    background: #f2f5f9;
    min-height: 60vh;
}

.tm-page .container{
    max-width: 760px;
    margin: 0 auto;
    padding: 0 16px;
}

.tm-header{
    text-align: center;
    margin-bottom: 22px;
}

.tm-title{
    font-size: 24px;
    font-weight: 700;
    color: #003A6B;
    margin: 0 0 6px;
}

.tm-subtitle{
    font-size: 14px;
    color: #8a94a6;
    margin: 0;
    letter-spacing: 0.3px;
}

/* 单页下让卡片以合适宽度居中 */
.tm-page .calculator-list{
    flex: none;
    max-width: 100%;
    margin-top: 0;
    padding: 22px;
    border-radius: 14px;
}

.tm-page .calculator-from{
    margin-top: 0;
}

/* Remark 说明 */
.tm-remark{
    margin-top: 24px;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid rgba(2, 105, 184, 0.08);
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    font-size: 14px;
}



/* 自适应 */
@media (max-width: 600px){
    .tm-page{
        padding: 26px 0 40px;
    }
    .tm-title{
        font-size: 20px;
    }
    .tm-subtitle{
        font-size: 12.5px;
    }
    .tm-page .calculator-list{
        padding: 16px;
        border-radius: 12px;
    }
    .tm-form .form-row{
        grid-template-columns: 1fr;
    }
    .tm-remark{
        padding: 16px;
        border-radius: 12px;
         font-size: 14px;
    }
}

/* ==================== tool.html 专属图片上传（独立样式，不改原有） ==================== */
.tool-img-upload{
    position: relative;
}

.tool-img-upload .file-input{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.tool-img-drop{
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f3f8fd 0%, #eaf1fa 100%);
    border: 1.5px dashed #b9cbe2;
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color var(--transition-normal), background var(--transition-normal),
                transform var(--transition-normal), box-shadow var(--transition-normal);
}

.tool-img-drop:hover,
.tool-img-drop:focus-within{
    border-color: #015494;
    background: linear-gradient(135deg, #eef5fc 0%, #e3eefb 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(1, 84, 148, 0.12);
}

.tool-img-preview{
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background-color: #dfe8f3;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: none;
}

.tool-img-preview.is-filled{
    display: block;
}

.tool-img-icon{
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #003A6B 0%, #015494 100%);
    border-radius: 50%;
    font-size: 16px;
    box-shadow: 0 3px 8px rgba(1, 84, 148, 0.3);
    transition: opacity var(--transition-normal);
}

.tool-img-preview.is-filled ~ .tool-img-icon{
    display: none;
}

.tool-img-text{
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.4;
}

.tool-img-title{
    font-size: 13.5px;
    font-weight: 600;
    color: #003A6B;
}

.tool-img-sub{
    font-size: 11.5px;
    color: #7f8da3;
}

@media (max-width: 600px){
    .tool-img-drop{
        gap: 11px;
        padding: 12px;
    }
    .tool-img-preview{
        width: 48px;
        height: 48px;
    }
    .tool-img-icon{
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* ==================== tool.html 专属文件上传（独立样式，不改原有） ==================== */
.tool-file-upload{
    position: relative;
}

.tool-file-upload .file-input{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.tool-file-drop{
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f3f8fd 0%, #eaf1fa 100%);
    border: 1.5px dashed #b9cbe2;
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color var(--transition-normal), background var(--transition-normal),
                transform var(--transition-normal), box-shadow var(--transition-normal);
}

.tool-file-drop:hover,
.tool-file-drop:focus-within{
    border-color: #015494;
    background: linear-gradient(135deg, #eef5fc 0%, #e3eefb 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(1, 84, 148, 0.12);
}

.tool-file-icon{
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #003A6B 0%, #015494 100%);
    border-radius: 50%;
    font-size: 16px;
    box-shadow: 0 3px 8px rgba(1, 84, 148, 0.3);
}

.tool-file-text{
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.4;
}

.tool-file-title{
    font-size: 13.5px;
    font-weight: 600;
    color: #003A6B;
}

.tool-file-sub{
    font-size: 11.5px;
    color: #7f8da3;
}

@media (max-width: 600px){
    .tool-file-drop{
        gap: 11px;
        padding: 12px;
    }
    .tool-file-icon{
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* ==================== tool3 费用估算弹框 ==================== */
.tm-modal-mask{
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 24px;
    box-sizing: border-box;
    overflow-y: auto;
}

.tm-modal{
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 760px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
    box-sizing: border-box;
    margin: auto;
    animation: tm-modal-in .25s ease;
}

@keyframes tm-modal-in{
    from{ opacity: 0; transform: translateY(16px) scale(.98); }
    to{ opacity: 1; transform: translateY(0) scale(1); }
}

.tm-modal-close{
    position: absolute;
    top: 14px;
    right: 16px;
    width: 34px;
    height: 34px;
    border: none;
    background: rgba(255, 255, 255, .25);
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    z-index: 2;
    transition: background .2s, transform .2s;
}

.tm-modal-close:hover{
    background: rgba(255, 255, 255, .45);
    transform: rotate(90deg);
}

#quoteBody{
    overflow-y: auto;
    padding: 0;
}

.tm-quote-head{
    background: linear-gradient(135deg, #003A6B 0%, #0269B8 100%);
    color: #fff;
    padding: 26px 30px 30px;
}

.tm-quote-head .tm-quote-eyebrow{
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: .8;
    margin: 0 0 6px;
}

.tm-quote-cur{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, .9);
}

.tm-quote-cur select{
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 8px;
    padding: 6px 30px 6px 12px;
    font-size: 13px;
    cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='white' d='M0 0l5 6 5-6z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.tm-quote-cur select:focus{
    outline: none;
    border-color: #fff;
    background-color: rgba(255, 255, 255, .25);
}

.tm-quote-cur select option{
    color: #1a1a1a;
}

.tm-quote-title{
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.tm-quote-body{
    padding: 22px 30px 8px;
}

.tm-quote-sec{
    margin-bottom: 18px;
}

.tm-quote-h{
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eef2f7;
}

.tm-quote-h .tm-sec-amt{
    flex: 0 0 auto;
    color: #003A6B;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.tm-quote-item{
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    font-size: 13.5px;
    color: #444;
    line-height: 1.6;
    padding: 5px 0 5px 30px;
    position: relative;
}

.tm-quote-item::before{
    content: "";
    position: absolute;
    left: 14px;
    top: 13px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #c2ccdb;
}

.tm-quote-item .tm-item-label{
    flex: 1 1 auto;
}

.tm-quote-item .tm-item-amt{
    flex: 0 0 auto;
    font-weight: 600;
    color: #1a1a1a;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    text-align: right;
}

.tm-quote-h .en,
.tm-quote-item .en{
    color: #8a94a6;
    font-weight: 400;
    font-size: 11.5px;
}

.tm-quote-item .tm-item-label .en{
    display: block;
    margin-top: 1px;
}

.tm-quote-total{
    margin: 6px 0 24px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #f3f8ff 0%, #eaf2ff 100%);
    border: 1px solid #d6e4ff;
    border-radius: 12px;
    font-size: 14px;
    color: #1a1a1a;
}

.tm-quote-total .tm-total-row{
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
}

.tm-quote-total .tm-total-row + .tm-total-row{
    border-top: 1px dashed #cdddfb;
}

.tm-quote-total .tm-total-row:last-child{
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid #b9d2fb;
}

.tm-quote-total b{
    color: #003A6B;
    font-size: 16px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.tm-quote-total .tm-total-row:last-child b{
    color: #d4380d;
}

.tm-quote-note{
    margin: 0 30px 24px;
    color: #9aa3b2;
    font-size: 12px;
    line-height: 1.7;
    text-align: center;
}

/* 弹框自适应 */
@media (max-width: 768px){
    .tm-modal-mask{
        padding: 12px;
        align-items: flex-start;
    }
    .tm-modal{
        max-height: 92vh;
        border-radius: 14px;
    }
    .tm-quote-head{
        padding: 22px 20px 24px;
    }
    .tm-quote-title{
        font-size: 19px;
    }
    .tm-quote-body{
        padding: 18px 0 6px;
    }
    .tm-quote-total{
        margin: 6px 20px 20px;
        padding: 16px;
    }
    .tm-quote-note{
        margin: 0 20px 20px;
    }
}

@media (max-width: 480px){
    .tm-modal-mask{
        padding: 8px;
    }
    .tm-modal{
        max-height: 94vh;
        border-radius: 12px;
    }
    .tm-quote-head{
        padding: 18px 16px 20px;
    }
    .tm-quote-title{
        font-size: 17px;
    }
    .tm-quote-body{
        padding: 16px 0 4px;
    }
    .tm-quote-h{
        font-size: 14px;
    }
    .tm-quote-item{
        padding-left: 22px;
        font-size: 12.5px;
    }
    .tm-quote-item::before{
        left: 8px;
    }
    .tm-quote-total{
        margin: 6px 16px 16px;
        padding: 14px;
        font-size: 13px;
    }
    .tm-quote-total b{
        font-size: 15px;
    }
    .tm-quote-note{
        margin: 0 16px 16px;
    }
}
