/* WINDAT – hiệu ứng trang chủ mẫu E */

/* 1. Ảnh máy: chấm → đường chỉ → nhãn, lần lượt từng thông số */
.wd-hero .wd-lines path:nth-of-type(1),.wd-hero .wd-lines circle:nth-of-type(1){--i:0}
.wd-hero .wd-lines path:nth-of-type(2),.wd-hero .wd-lines circle:nth-of-type(2){--i:1}
.wd-hero .wd-lines path:nth-of-type(3),.wd-hero .wd-lines circle:nth-of-type(3){--i:2}
.wd-hero .wd-lines path:nth-of-type(4),.wd-hero .wd-lines circle:nth-of-type(4){--i:3}
.wd-hero .wd-co:nth-of-type(2){--i:0}
.wd-hero .wd-co:nth-of-type(3){--i:1}
.wd-hero .wd-co:nth-of-type(4){--i:2}
.wd-hero .wd-co:nth-of-type(5){--i:3}
.wd-fx .wd-hero .wd-lines circle{transform-box:fill-box;transform-origin:center;animation:wdDot .5s cubic-bezier(.3,0,.2,1) calc(.25s + var(--i,0) * .38s) both}
.wd-fx .wd-hero .wd-lines .wd-in{animation:wdDl .65s cubic-bezier(.4,0,.2,1) calc(.4s + var(--i,0) * .38s) forwards}
.wd-fx .wd-hero .wd-co{animation:wdCo .35s ease-out calc(.95s + var(--i,0) * .38s) both}
@keyframes wdDot{0%{opacity:0;transform:scale(0)}55%{opacity:1;transform:scale(1.6)}100%{opacity:1;transform:scale(1)}}
@keyframes wdCo{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}

/* 2. Rê chuột vào nhãn: đường chỉ và chấm của nhãn đó nổi lên */
.wd-hero .wd-co{transition:background-color .2s,color .2s,border-color .2s;cursor:default}
.wd-hero .wd-co.on{background:var(--wd-blue);border-color:var(--wd-blue);color:#fff}
.wd-hero .wd-lines path{transition:stroke .2s,stroke-width .2s}
.wd-hero .wd-lines path.on{stroke:var(--wd-blue);stroke-width:2.6}
.wd-hero .wd-lines circle{transition:fill .2s}
.wd-hero .wd-lines circle.on{fill:var(--wd-blue)}

/* 3. Chọn ngành: thẻ máy trượt vào */
.wd-pick .wd-m.fx-in{animation:wdCard .38s cubic-bezier(.2,.7,.3,1) calc(var(--k,0) * 70ms) both}
@keyframes wdCard{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

/* 4. Bảng so sánh: sáng cả cột đang rê chuột */
.wd-cmp th,.wd-cmp td{transition:background-color .15s}
.wd-cmp tbody tr td.col-on{background:#E9EEF8}
.wd-cmp tbody tr th.col-on{background:var(--wd-paper)}
.wd-cmp thead tr th.col-on{background:var(--wd-blue)}

@media (prefers-reduced-motion:reduce){
  .wd-fx .wd-hero .wd-lines circle,.wd-fx .wd-hero .wd-co,.wd-pick .wd-m.fx-in{animation:none;opacity:1;transform:none}
  .wd-fx .wd-hero .wd-lines .wd-in{animation:none;stroke-dashoffset:0}
}

/* 5. Điện thoại: giữ nhãn và đường chỉ như máy tính, thu nhỏ chữ */
@media (max-width:560px){
  .wd-fx-m .wd-hero .wd-wrap{padding-top:36px;gap:24px}
  .wd-fx-m .wd-hero .wd-draw{aspect-ratio:1}
  .wd-fx-m .wd-hero .wd-draw .wd-plate{position:absolute;left:10%;top:5%;width:80%}
  .wd-fx-m .wd-hero .wd-draw svg.wd-lines{display:block}
  .wd-fx-m .wd-hero .wd-co{display:block;font-size:10.5px;line-height:1.3;padding:4px 7px;max-width:112px}
  .wd-fx-m .wd-hero .wd-co b{font-size:13px;line-height:1.25}
  .wd-fx-m .wd-hero .wd-co:nth-of-type(2){top:-3%!important;max-width:132px}
}
