/*
 * [국내] 아이디스 AI — 작업기록 1_test\239 (2026-11-29)
 *  쓰는 곳: app/Views/korea/kr_ai.php (접두어 ai-). 단추 · 기능 칸 · 다른 기술 · 마무리 띠는 kr-techpage.css(tk-) 를 같이 씀
 *  다시 그린 화면의 움직임은 .go 가 붙을 때만(화면에 보일 때). .go 가 없거나 움직임 줄이기면 끝 장면 그대로 멈춤
 */
.ai-page { --ai: #22d3e6; --car: #ffb020; --red: #ff3b3b; --panel: #10171c; }
.ai-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 1 첫 화면: 사진은 칸을 덮는 크기로 가운데에 놓고, 알림 표시는 사진 기준 % 자리에 둠(container 단위로 cover 를 직접 계산) */
.ai-hero { position: relative; height: 640px; overflow: hidden; background: #0d1418; container-type: size; display: flex; align-items: center; }
.ai-hpic { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); --r: 2.3948; width: max(100cqw, calc(100cqh * var(--r))); height: max(100cqh, calc(100cqw / var(--r))); }
.ai-hpic.mo { display: none; }
.ai-page .ai-hpic img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.ai-hero::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(8,14,18,.9) 0%, rgba(8,14,18,.72) 34%, rgba(8,14,18,.15) 62%, rgba(8,14,18,0) 80%), linear-gradient(0deg, rgba(8,14,18,.35), rgba(8,14,18,0) 35%); }
.ai-hero .ai-alert { z-index: 2; }
.ai-hero .tk-wrap { position: relative; z-index: 3; width: 100%; box-sizing: border-box; }
.ai-htxt { max-width: 540px; }
.ai-hero h1 { margin: 0 !important; font-size: 40px !important; font-weight: 600 !important; line-height: 1.3 !important; color: #fff !important; letter-spacing: -.02em; }
.ai-hsub { margin: 40px 0 0; font-size: 30px; font-weight: 600; line-height: 1.4; color: #fff; letter-spacing: -.02em; }
.ai-hdesc { margin: 20px 0 0; font-size: 17px; line-height: 1.7; color: rgba(255,255,255,.86); }
.ai-hero .tk-acts { margin-top: 44px; }
.ai-hero .tk-acts .tk-pill { flex: 0 1 auto; min-width: 148px; white-space: nowrap; }

/* 알림 표시(첫 화면 · 폭력 칸): 점은 사진 속 자리에, 글은 오른쪽으로 */
.ai-alert { position: absolute; width: 0; height: 0; }
.ai-alert i { display: none; }   /* 사진에 이미 가방 표시가 있어 따로 그리지 않음 */
.ai-alert b { position: absolute; left: 44px; top: -17px; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 12px; border-radius: 6px; background: rgba(16,23,28,.88); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.ai-alert b { animation: aiToast .45s 1s both; }
.ai-alert b::before { content: ''; width: 14px; height: 13px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 13'%3E%3Cpath d='M7 0.6 13.6 12.4H0.4z' fill='%23ff4d4f'/%3E%3Cpath d='M6.3 4.6h1.4v4H6.3zM6.3 9.6h1.4v1.4H6.3z' fill='%23fff'/%3E%3C/svg%3E") center/contain no-repeat; }
@keyframes aiSnap { from { opacity: 0; transform: scale(1.3); } to { opacity: 1; transform: none; } }
@keyframes aiToast { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

/* 2 세 칸 */
.ai-pts { border-bottom: 1px solid var(--line); }
.ai-pts ul { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 auto; padding-top: 56px; padding-bottom: 56px; list-style: none; }
.ai-pts li { padding: 0 32px; border-left: 1px solid var(--line); }
.ai-pts li:first-child { padding-left: 0; border-left: 0; }
.ai-pts b { display: block; font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.ai-pts span { display: block; margin-top: 10px; font-size: 15px; line-height: 1.65; color: var(--body); }

/* 3 · 4 다시 그린 화면 공통 */

/* 3 A-cut: 감지 표시가 하나씩 → 아래 잘라 낸 이미지가 쌓임 → 하나를 고르면 아래 시간 줄이 그 순간으로 */




/* 속성 목록(체크 표시 없이 이름 · 값 두 칸) */
.ai-attr { margin: 28px 0 0; border-top: 1px solid var(--line); }
.ai-attr div { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.ai-attr dt { font-size: 15px; font-weight: 700; color: var(--ink); }
.ai-attr dd { margin: 0; font-size: 15px; line-height: 1.6; color: var(--body); }

/* 5 AI 고급 */
.ai-adv, .ai-sp, .ai-grade, .ai-srv { padding: 120px 0; }
.ai-sp, .ai-srv { background: var(--band); }
.ai-advgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 24px; margin: 44px 0 0; padding: 0; list-style: none; }
.ai-advgrid li > b { display: block; margin-top: 16px; font-size: 20px; font-weight: 700; color: var(--ink); }
.ai-advgrid li > span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.6; color: var(--body); }
.ai-shot { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 10; background: #1b252c; }
.ai-page .ai-shot img { width: 100%; height: 100%; object-fit: cover; }
.ai-shot.blank { background: radial-gradient(120% 90% at 50% 50%, #1d2a31 0%, #10171c 70%); }
.ai-shot.blank .ai-alert { left: 34%; top: 50%; }
.ai-advgrid li.note { align-self: center; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ai-advgrid li.note span { display: block; font-size: 15px; line-height: 1.7; color: var(--sub); }
.ai-advgrid li.note .tk-more-link { margin-top: 16px; }

/* 6 특화 AI */
.ai-spgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 44px 0 0; padding: 0; list-style: none; }
.ai-spgrid li { padding: 28px 30px 32px; border-radius: 8px; background: #fff; }
.ai-spgrid b { display: block; font-size: 22px; font-weight: 700; color: var(--ink); }
.ai-spgrid span { display: block; margin-top: 10px; font-size: 16px; line-height: 1.65; color: var(--body); }
.ai-spgrid .tk-more-link { margin-top: 18px; }
/* 284: 칸이 하나뿐이면 가로로 넓게(그림 왼쪽, 글 오른쪽) */
.ai-spgrid.is-one { grid-template-columns: 1fr; }
.ai-spgrid.is-one li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 48px; align-items: center; padding: 36px 48px; }
.ai-spgrid.is-one .ai-srvpic { grid-row: 1 / span 2; margin-bottom: 0; }
.ai-spgrid.is-one b, .ai-spgrid.is-one span { grid-column: 2; }
.ai-spgrid.is-one b { align-self: end; }
.ai-spgrid.is-one span { align-self: start; }

/* 7 등급 표 */
.ai-tbl { margin-top: 44px; }
.ai-tbl table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ai-tbl th, .ai-tbl td { padding: 18px 16px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.ai-tbl thead th { padding-top: 0; border-bottom: 2px solid var(--ink); }
.ai-tbl thead th:first-child, .ai-tbl tbody th { width: 40%; text-align: left; padding-left: 0; }
.ai-tbl th b { display: block; font-size: 16px; font-weight: 700; color: var(--ink); }
.ai-tbl thead th b { font-size: 20px; }
.ai-tbl th small { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; line-height: 1.5; color: var(--sub); }
.ai-yes, .ai-no { display: inline-block; vertical-align: middle; }
.ai-yes { width: 12px; height: 12px; border-radius: 50%; background: var(--g); }
.ai-no { width: 12px; height: 2px; background: #c9ced2; }
.ai-gfoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 28px; }
.ai-gfoot p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--sub); }

/* 8 AI 서버 · 박스 */
.ai-srvgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 44px 0 0; padding: 0; list-style: none; }
.ai-srvgrid li { padding: 28px 30px 32px; border-radius: 8px; background: #fff; }
.ai-srvpic { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 7; margin-bottom: 24px; }
.ai-page .ai-srvpic img { max-width: 78%; max-height: 100%; object-fit: contain; }
.ai-srvgrid b { display: inline; font-size: 22px; font-weight: 700; color: var(--ink); }
.ai-srvgrid em { margin-left: 10px; font-style: normal; font-size: 15px; font-weight: 600; color: var(--gd); }
.ai-srvgrid span { display: block; margin-top: 10px; font-size: 16px; line-height: 1.65; color: var(--body); }
.ai-page .ai-srv + .tk-more { padding-top: 120px; }

/* 글 올라오기는 kr-techpage.css 의 .tk-on .tk-up 그대로 */
.ai-calm .ai-alert i, .ai-calm .ai-alert b { animation: none; }

/* 3 A-cut: iNEX A-컷 감시 창(위쪽은 실제 캡처, 카드는 HTML). 카드가 차례로 쌓이고, 하나를 고르면 재생 단추 */
.ai-win { position: relative; border: 1px solid #4a4a4a; border-radius: 6px; overflow: hidden; background: #353535; box-shadow: 0 18px 40px rgba(0,40,44,.18); }
.ai-whead { position: relative; }
.ai-page .ai-whead img { display: block; width: 100%; height: auto; }
.ai-wcnt { position: absolute; right: 3%; bottom: 9%; font-size: 12px; color: #9a9a9a; }
.ai-wcnt b { color: #e8e8e8; font-weight: 700; }
.ai-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; padding: 4px 12px 14px; list-style: none; }
.ai-cards li { border-radius: 8px; background: #232323; overflow: hidden; outline: 2px solid transparent; outline-offset: -2px; }
.ai-cards .pic { position: relative; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; background: #1b1b1b; }
.ai-page .ai-cards .pic img { width: 100%; height: 100%; object-fit: cover; }
.ai-cards .ag { position: absolute; left: 6px; bottom: 5px; display: flex; align-items: center; gap: 4px; color: #fff; font-size: 11px; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,.7); }
.ai-cards .ag i { width: 7px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 14'%3E%3Ccircle cx='4' cy='1.8' r='1.8' fill='%23fff'/%3E%3Cpath d='M1.4 4.4h5.2v5H5.3V14H2.7V9.4H1.4z' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat; filter: drop-shadow(0 1px 1px rgba(0,0,0,.6)); }
.ai-cards .ag i.f { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 14'%3E%3Ccircle cx='4' cy='1.8' r='1.8' fill='%23fff'/%3E%3Cpath d='M2.6 4.4h2.8L7.6 10H5.4v4H2.6v-4H.4z' fill='%23fff'/%3E%3C/svg%3E"); }
.ai-cards .pl { position: absolute; left: 50%; top: 45%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: rgba(0,0,0,.55); border: 1.5px solid #fff; }
.ai-cards .pl::after { content: ''; position: absolute; left: 11px; top: 8px; border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.ai-cards p { margin: 0; padding: 6px 8px 8px; font-size: 11px; line-height: 1.45; }
.ai-cards em { display: block; font-style: normal; color: #1fb6c9; }
.ai-cards p b { display: block; color: #e8e8e8; font-weight: 700; }
.ai-cards time { display: block; margin-top: 2px; font-size: 10px; color: #9a9a9a; white-space: nowrap; }
.ai-cards li.pick { outline-color: #1fb6c9; }
.ai-acut.go .ai-cards li { animation: aiCardIn 10s calc(var(--k) * .35s) infinite both; }
.ai-acut.go .ai-cards li.pick { animation: aiCardIn 10s calc(var(--k) * .35s) infinite both, aiPickO 10s infinite both; }
.ai-acut.go .ai-cards .pl { animation: aiPickP 10s infinite both; }
@keyframes aiCardIn { 0% { opacity: 0; transform: translateY(8px); } 4%, 86% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; } }
@keyframes aiPickO { 0%, 56% { outline-color: transparent; } 60%, 88% { outline-color: #1fb6c9; } 92%, 100% { outline-color: transparent; } }
@keyframes aiPickP { 0%, 58% { opacity: 0; transform: scale(.7); } 62%, 88% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; } }

/* 4 속성 검색: iNEX AI 검색(왼쪽 조건 칸은 실제 캡처). 남성 → 색상 검정을 켤 때마다 결과가 줄어듦. 빠지는 그림은 뒤쪽에 있어 자리가 비지 않음 */
.ai-find { position: relative; border: 1px solid #3a3a3a; border-radius: 6px; overflow: hidden; background: #1e1e1e; box-shadow: 0 18px 40px rgba(0,40,44,.18); }
.ai-page .ai-find img.ai-fbase { display: block; width: 100%; height: auto; }
.ai-page .ai-find img.ai-fsel { position: absolute; left: 3.478%; top: 60.47%; width: 4.522%; height: auto; }
.ai-fsw { position: absolute; left: 24.1%; top: 90.7%; width: 2.9%; height: 3.7%; border: 2px solid #1fb6c9; border-radius: 3px; box-sizing: border-box; }
.ai-cnt { position: absolute; right: 2.4%; top: 4.6%; height: 4.4%; display: flex; align-items: center; gap: 4px; font-style: normal; font-size: 12px; color: #a8a8a8; }
.ai-cnt i { display: inline-grid; font-style: normal; }
.ai-cnt b { grid-area: 1 / 1; text-align: right; color: #fff; font-weight: 700; opacity: 0; }
.ai-cnt b.n2 { opacity: 1; }
.ai-grid { position: absolute; left: 30.2%; top: 10.8%; right: 1.6%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.ai-grid li { border-radius: 6px; overflow: hidden; aspect-ratio: 3 / 4; background: #151515; }
.ai-page .ai-grid img { width: 100%; height: 100%; object-fit: cover; }
.ai-grid li.x1, .ai-grid li.x2 { opacity: 0; }
.ai-find.go .ai-fsel { animation: aiSel1 9s infinite both; }
.ai-find.go .ai-fsw { animation: aiSel2 9s infinite both; }
.ai-find.go .ai-grid li.x2 { animation: aiOut1 9s infinite both; }
.ai-find.go .ai-grid li.x1 { animation: aiOut2 9s infinite both; }
.ai-find.go .ai-cnt b { animation: 9s infinite both; }
.ai-find.go .ai-cnt b.n0 { animation-name: aiN0; }
.ai-find.go .ai-cnt b.n1 { animation-name: aiN1; }
.ai-find.go .ai-cnt b.n2 { animation-name: aiN2; }
@keyframes aiSel1 { 0%, 26% { opacity: 0; } 30%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes aiSel2 { 0%, 52% { opacity: 0; } 56%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes aiOut1 { 0%, 30% { opacity: 1; } 34%, 94% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes aiOut2 { 0%, 56% { opacity: 1; } 60%, 94% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes aiN0 { 0%, 31% { opacity: 1; } 32%, 96% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes aiN1 { 0%, 31% { opacity: 0; } 32%, 57% { opacity: 1; } 58%, 100% { opacity: 0; } }
@keyframes aiN2 { 0%, 57% { opacity: 0; } 58%, 96% { opacity: 1; } 97%, 100% { opacity: 0; } }

@media (max-width: 1199px) { .ai-htxt { max-width: 440px; } }   /* 태블릿: 글이 가방 알림 자리를 덮지 않게 */
@media (max-width: 1023px) {
    .ai-advgrid { grid-template-columns: repeat(2, 1fr); }
    .ai-advgrid li.note { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
    .ai-cards { grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 2px 8px 10px; }
    .ai-cards li:nth-child(n+7) { display: none; }
    .ai-cards p { font-size: 10px; padding: 5px 6px 6px; }
    .ai-cards time { font-size: 9px; }
    .ai-wcnt, .ai-cnt { font-size: 10px; }
    .ai-grid { gap: 3px; }
    /* 휴대폰: 사진(가방이 가운데인 4:3)을 위에, 글은 그 아래 어두운 바탕에 */
    .ai-hero { display: block; height: auto; container-type: normal; }
    .ai-hpic.pc { display: none; }
    .ai-hpic.mo { display: block; position: relative; left: auto; top: auto; transform: none; width: 100%; height: auto; aspect-ratio: 4 / 3; }
    .ai-hpic.mo::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(0deg, #0d1418, rgba(13,20,24,0)); }
    .ai-hero::after { display: none; }
    .ai-hero .tk-wrap { padding-top: 8px; padding-bottom: 44px; }
    .ai-hero h1 { font-size: 30px !important; }
    .ai-hsub { margin-top: 16px; font-size: 22px; }
    .ai-hdesc { font-size: 15px; }
    .ai-hero .tk-acts { margin-top: 28px; }
    .ai-hero .tk-acts .tk-pill { flex: 1 1 140px; min-width: 0; }
    .ai-alert i { left: -26px; top: -26px; width: 52px; height: 52px; }
    .ai-alert b { left: 34px; height: 30px; top: -15px; font-size: 13px; }
    .ai-pts ul { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 36px; }
    .ai-pts li { padding: 18px 0; border-left: 0; border-top: 1px solid var(--line); }
    .ai-pts li:first-child { padding-top: 0; border-top: 0; }
    .ai-pts b { font-size: 19px; }
    .ai-adv, .ai-sp, .ai-grade, .ai-srv { padding: 72px 0; }
    .ai-page .ai-srv + .tk-more { padding-top: 72px; }
    .ai-advgrid, .ai-spgrid, .ai-srvgrid { grid-template-columns: 1fr; gap: 28px; margin-top: 28px; }
    .ai-spgrid, .ai-srvgrid { gap: 12px; }
    .ai-spgrid.is-one li { display: block; padding: 28px 30px 32px; }
    .ai-spgrid.is-one .ai-srvpic { margin-bottom: 24px; }
    .ai-spgrid li, .ai-srvgrid li { padding: 24px 20px; }
    .ai-spgrid b, .ai-srvgrid b { font-size: 19px; }
    .ai-spgrid span, .ai-srvgrid span { font-size: 15px; }
    .ai-tbl th, .ai-tbl td { padding: 14px 6px; }
    .ai-tbl thead th:first-child, .ai-tbl tbody th { width: 46%; }
    .ai-tbl thead th b { font-size: 15px; }
    .ai-tbl thead th small { display: none; }
    .ai-tbl th b { font-size: 14px; }
    .ai-tbl th small { font-size: 12px; }
    .ai-gfoot .tk-pill { width: 100%; }
}
