/* ===================================================================
🚀 TOOL UI V7 FINAL SYSTEM (FULL INDUSTRIAL UI)
=================================================================== */

/* RESET */
body.tool-v5 a,
body.tool-v5 a:hover,
body.tool-v5 a:focus,
body.tool-v5 a:visited{
    text-decoration:none !important;
    color:inherit;
}

/* WRAP */
body.tool-v5 .tool-v7-wrap{
    width:100%;
}

/* SEARCH */
body.tool-v5 #tool-search{
    width:100%;
    height:50px;
    padding:0 16px;
    background:#0B1220;
    border:1px solid #1F2937;
    border-radius:12px;
    color:#E5E7EB;
    outline:none;
}

/* =========================================================
GRID
========================================================= */
body.tool-v5 #tool-results{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
}

/* =========================================================
CARD (INDUSTRIAL PANEL)
========================================================= */
body.tool-v5 .tool-card{
    position:relative;
    display:flex;
    flex-direction:column;
    min-height:430px;
    padding:18px;

    background:linear-gradient(180deg,#070B14 0%,#0A1220 100%);
    border:1px solid rgba(148,163,184,.15);
    border-radius:16px;

    transition:.25s;
}

body.tool-v5 .tool-card:hover{
    transform:translateY(-6px);
    border-color:#3B82F6;
    box-shadow:0 10px 30px rgba(0,0,0,.35);
}

/* FEATURED */
body.tool-v5 .tool-featured{
    position:absolute;
    top:12px;
    right:12px;
    background:#FBBF24;
    color:#111827;
    padding:6px 10px;
    font-size:11px;
    font-weight:800;
    border-radius:6px;
}

/* BADGES */
body.tool-v5 .tool-badges{
    position:absolute;
    top:12px;
    left:12px;
    display:flex;
    gap:6px;
}

body.tool-v5 .badge-new{
    background:#1D4ED8;
    color:#fff;
    padding:5px 10px;
    font-size:11px;
    border-radius:6px;
    font-weight:700;
}

/* LOGO */
body.tool-v5 .tool-logo{
    width:90px;
    height:90px;
    margin:40px auto 18px;
    background:#0B1220;
    border:1px solid rgba(148,163,184,.2);
    border-radius:14px;

    display:flex;
    align-items:center;
    justify-content:center;
}

body.tool-v5 .tool-logo img{
    width:70px;
    height:70px;
    object-fit:contain;
}

/* TITLE */
body.tool-v5 .tool-title{
    text-align:center;
    font-size:20px;
    font-weight:700;
    color:#F1F5F9;
}

/* DESC */
body.tool-v5 .tool-desc{
    text-align:center;
    color:#94A3B8;
    font-size:13px;
    line-height:1.6;
    min-height:70px;
    margin:12px 0 16px;

    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

/* META */
body.tool-v5 .tool-meta{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:14px;
}

body.tool-v5 .tool-pricing{
    background:#0B1B33;
    border:1px solid #1D4ED8;
    color:#60A5FA;
    padding:5px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:600;
}

body.tool-v5 .tool-rating{
    color:#FBBF24;
    font-weight:700;
}

/* BOTTOM */
body.tool-v5 .tool-bottom{
    margin-top:auto;
    padding-top:14px;
    border-top:1px solid rgba(148,163,184,.12);
    display:flex;
    justify-content:space-between;
}

body.tool-v5 .tool-sponsored{
    background:#0F766E;
    color:#fff;
    padding:5px 10px;
    border-radius:6px;
    font-size:12px;
}

body.tool-v5 .tool-views{
    color:#64748B;
}

/* BUTTON */
body.tool-v5 .tool-button{
    margin-top:16px;
    display:flex;
    justify-content:center;
    align-items:center;
    height:44px;

    border-radius:10px;
    background:linear-gradient(90deg,#1D4ED8,#2563EB);
    color:#fff;
    font-weight:700;
}

/* =========================================================
🔥 INDUSTRIAL FILTER SELECT PANEL
========================================================= */
body.tool-v5 .tool-filters{
    display:grid !important;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:12px;

    margin-bottom:22px;
    padding:14px;

    background:linear-gradient(180deg,#070B14,#0B1220);
    border:1px solid rgba(148,163,184,.15);
    border-radius:14px;

    box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}

body.tool-v5 .tool-filters select{
    width:100%;
    height:44px;
    padding:0 12px;

    background:#070B14;
    border:1px solid rgba(148,163,184,.25);
    border-radius:10px;

    color:#E5E7EB;
    font-size:13px;

    appearance:none;
    cursor:pointer;

    transition:.2s;
}

body.tool-v5 .tool-filters select:hover{
    border-color:#3B82F6;
}

body.tool-v5 .tool-filters select:focus{
    border-color:#2563EB;
    box-shadow:0 0 0 3px rgba(37,99,235,0.15);
}

body.tool-v5 .tool-filters select option{
    background:#0B1220;
    color:#E5E7EB;
}

/* =========================================================
🔥 INDUSTRIAL FILTER CHIPS (CATEGORY BAR FIX)
========================================================= */

body.tool-v5 .tool-category-filters{
    display:flex;
    flex-wrap:wrap;
    gap:10px;

    padding:14px;
    margin-bottom:18px;

    background:linear-gradient(180deg,#070B14,#0B1220);
    border:1px solid rgba(148,163,184,.15);
    border-radius:14px;

    box-shadow:inset 0 1px 0 rgba(255,255,255,.03);

    overflow-x:auto;
}

/* CHIP */
body.tool-v5 .tool-category-filters .filter-item{
    position:relative;

    padding:9px 14px;

    /* 🔧 工业核心：冷金属底 */
    background:linear-gradient(180deg,#0B1220 0%,#070B14 100%);

    /* 🧲 更硬的边界（不是柔和灰） */
    border:1px solid rgba(148,163,184,.18);
    border-bottom:1px solid rgba(37,99,235,.25);

    border-radius:6px;

    font-size:12px;
    font-weight:600;
    letter-spacing:.4px;

    color:#A7B0C0;

    cursor:pointer;
    user-select:none;
    white-space:nowrap;

    transition:.18s ease-in-out;

    /* 🔩 工业质感阴影（不是卡片阴影） */
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.03),
        0 1px 0 rgba(0,0,0,.4);
}

/* =========================================================
🧲 HOVER = 电流预充状态
========================================================= */
body.tool-v5 .tool-category-filters .filter-item:hover{
    color:#E5E7EB;

    border-color:#3B82F6;

    box-shadow:
        0 0 0 1px rgba(37,99,235,.15),
        inset 0 1px 0 rgba(255,255,255,.05);

    transform:translateY(-1px);
}

/* =========================================================
⚡ ACTIVE = 系统运行状态（工业核心）
========================================================= */
body.tool-v5 .tool-category-filters .filter-item.active{
    background:linear-gradient(180deg,#1D4ED8 0%,#1E40AF 100%);

    border:1px solid #3B82F6;

    color:#FFFFFF;

    box-shadow:
        0 8px 18px rgba(29,78,216,.25),
        inset 0 1px 0 rgba(255,255,255,.2);
}

/* 🔴 工业状态灯（关键差异点） */
body.tool-v5 .tool-category-filters .filter-item.active::before{
    content:"";
    position:absolute;

    left:8px;
    top:50%;
    transform:translateY(-50%);

    width:6px;
    height:6px;
    border-radius:50%;

    background:#22C55E;
    box-shadow:0 0 10px rgba(34,197,94,.9);
}

/* =========================================================
🧱 PRESS = 机械按键反馈
========================================================= */
body.tool-v5 .tool-category-filters .filter-item:active{
    transform:translateY(1px) scale(0.98);
}
/* =========================================================
RESPONSIVE
========================================================= */
@media(max-width:1200px){
    body.tool-v5 #tool-results{
        grid-template-columns:repeat(3,1fr);
    }
}

@media(max-width:900px){
    body.tool-v5 #tool-results{
        grid-template-columns:repeat(2,1fr);
    }

    body.tool-v5 .tool-filters{
        grid-template-columns:1fr;
    }
}

@media(max-width:640px){
    body.tool-v5 #tool-results{
        grid-template-columns:1fr;
    }
}