/* Winseety case listing page — scoped migration layer */
.codex-case-list-page {
  --codex-case-bg: var(--ws-color-background, #f6f8fb);
  --codex-case-ink: var(--ws-color-text, #0f172a);
  --codex-case-muted: var(--ws-color-text-secondary, #475569);
  --codex-case-soft: var(--ws-color-text-tertiary, #64748b);
  --codex-case-line: var(--ws-color-border, #e2e8f0);
  --codex-case-brand: var(--ws-color-primary, #1c5a82);
  --codex-case-deep: var(--ws-color-primary-active, #123f5b);
  background: var(--codex-case-bg);
  color: var(--codex-case-ink);
  font-family: var(--ws-font-sans, Inter, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", Arial, sans-serif);
}
.codex-case-list-page a:focus-visible,
.codex-case-list-page button:focus-visible { outline: 2px solid var(--ws-color-focus, #2563eb); outline-offset: 3px; }
.codex-case-list-page .th_ins_ban { position: relative; height: clamp(280px, 31vw, 420px); margin-top: 105px; overflow: hidden; background: #0b1725; }
.codex-case-list-page .th_ins_ban::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(6,20,34,.72), rgba(6,20,34,.32) 58%, rgba(6,20,34,.5)); pointer-events: none; }
.codex-case-list-page .th_ins_ban video { display: block; width: 100% !important; height: 100% !important; object-fit: cover; opacity: .82; }
.codex-case-list-page .th_ins_ban .img_ipone { display: none; }
.codex-case-list-page .th_ins_ban .th_con_txt { z-index: 2; top: 50%; transform: translateY(-50%); text-align: left; }
.codex-case-list-page .th_ins_ban .th_con_txt h1 { padding-top: 0; color: #fff; font-size: clamp(36px, 5vw, 62px); font-weight: 750; line-height: 1.08; letter-spacing: -.04em; }
.codex-case-list-page .th_ins_ban .th_con_txt h2 { padding-top: 16px; color: rgba(255,255,255,.72); font-size: 12px; font-weight: 700; letter-spacing: .24em; }
.codex-case-list-page .th_ins_ban .th_con_txt span { display: block; width: 42px; height: 3px; margin-top: 22px; background: var(--ws-color-brand-400, #6fa8c2); }
.codex-case-list-page .th_ins_ban .th_bot { position: absolute; right: 0; bottom: 28px; left: 0; z-index: 3; padding: 0 24px; }
.codex-case-list-page .th_ins_ban .th_bot .th_left { float: none; max-width: var(--ws-container-xl, 1160px); margin: 0 auto; }
.codex-case-list-page .th_ins_ban .th_bot ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 0; padding: 0; list-style: none; }
.codex-case-list-page .th_ins_ban .th_bot li { margin: 0; }
.codex-case-list-page .th_ins_ban .th_bot a { display: inline-flex; min-height: 32px; align-items: center; padding: 0 13px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; color: rgba(255,255,255,.9); background: rgba(5,18,31,.26); font-size: 12px !important; font-weight: 600 !important; transition: background-color .24s ease, border-color .24s ease, transform .24s ease; }
.codex-case-list-page .th_ins_ban .th_bot a:hover { border-color: rgba(255,255,255,.72); background: rgba(255,255,255,.14); transform: translateY(-2px); }
.codex-case-list-page .th_main { max-width: var(--ws-container-2xl, 1240px); padding: 0 24px 104px; }
.codex-case-list-page .th_breadcrumb { max-width: var(--ws-container-xl, 1160px); margin: 0 auto; padding: 24px 0 22px; border-bottom: 1px solid var(--codex-case-line); }
.codex-case-list-page .th_bread_left { float: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--codex-case-soft); font-size: 13px; line-height: 1.5; }
.codex-case-list-page .th_bread_left a { color: var(--codex-case-muted); transition: color .24s ease; }
.codex-case-list-page .th_bread_left a:hover { color: var(--codex-case-brand); }
.codex-case-list-page .th_bread_left a:not(:last-child)::after { content: "/"; display: inline-block; margin-left: 8px; color: var(--ws-color-border-strong, #cbd5e1); }
.codex-case-list-page .th_case_list { max-width: var(--ws-container-xl, 1160px); margin: 38px auto 0; }
.codex-case-list-page .th_case_list > ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.codex-case-list-page .th_case_list > ul > li { min-width: 0; overflow: hidden; border: 1px solid rgba(226,232,240,.9); border-radius: var(--ws-radius-xl, 16px); background: var(--ws-color-surface, #fff); box-shadow: var(--ws-shadow-sm, 0 10px 30px rgba(15,23,42,.06)); opacity: 0; transform: translateY(12px); transition: opacity .48s ease, transform .48s var(--ws-ease-enter, cubic-bezier(.22,.61,.36,1)), box-shadow .28s ease, border-color .28s ease; }
.codex-case-list-page .th_case_list > ul > li.is-visible { opacity: 1; transform: none; }
.codex-case-list-page .th_case_list > ul > li:hover { border-color: var(--ws-color-brand-200, #c9dfeb); box-shadow: var(--ws-shadow-md, 0 16px 40px rgba(15,23,42,.1)); transform: translateY(-4px); }
.codex-case-list-page .th_case_list .th_img { position: relative; width: 100%; height: 260px !important; overflow: hidden; background: var(--ws-color-surface-muted, #f1f5f9); }
.codex-case-list-page .th_case_list .th_img > a { display: block; width: 100%; height: 100%; }
.codex-case-list-page .th_case_list .th_img > a > img { display: block; width: 100% !important; height: 100% !important; object-fit: cover; transition: transform .5s var(--ws-ease-enter, cubic-bezier(.22,.61,.36,1)); }
.codex-case-list-page .th_case_list > ul > li:hover .th_img > a > img { transform: scale(1.045); }
.codex-case-list-page .th_case_list .th_mask { position: absolute; inset: auto 0 0; display: flex; min-height: 45%; flex-direction: column; justify-content: flex-end; padding: 58px 20px 18px; color: #fff; background: linear-gradient(180deg, transparent, rgba(5,18,31,.86)); opacity: 0; transition: opacity .28s ease; }
.codex-case-list-page .th_case_list > ul > li:hover .th_mask,
.codex-case-list-page .th_case_list > ul > li:focus-within .th_mask { opacity: 1; }
.codex-case-list-page .th_case_list .th_desc { font-size: 15px; font-weight: 700; line-height: 1.5; }
.codex-case-list-page .th_case_list .th_btn { margin-top: 9px; }
.codex-case-list-page .th_case_list .th_btn span { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.84); font-size: 12px; }
.codex-case-list-page .th_case_list .th_btn span::after { content: "→"; font-size: 16px; }
.codex-case-list-page .th_case_list .th_cont { float: none; min-height: 78px; padding: 18px 20px 19px; }
.codex-case-list-page .th_case_list .th_r { float: none; width: 100%; }
.codex-case-list-page .th_case_list .th_r dl { margin: 0; }
.codex-case-list-page .th_case_list .th_r dt { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.45; }
.codex-case-list-page .th_case_list .th_r dt a { color: var(--codex-case-ink); transition: color .24s ease; }
.codex-case-list-page .th_case_list > ul > li:hover .th_r dt a { color: var(--codex-case-brand); }
.codex-case-list-page .th_main > .text-center { max-width: var(--ws-container-xl, 1160px); margin: 42px auto 0; text-align: center; }
.codex-case-list-page .th_main > .text-center .pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.codex-case-list-page .th_main > .text-center .pagination li { display: inline-flex; }
.codex-case-list-page .th_main > .text-center .pagination a { display: inline-flex; min-width: 36px; min-height: 36px; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid var(--codex-case-line); border-radius: var(--ws-radius-md, 10px); color: var(--codex-case-muted); background: #fff; font-size: 13px; transition: color .24s ease, border-color .24s ease, background-color .24s ease, transform .24s ease; }
.codex-case-list-page .th_main > .text-center .pagination a:hover,
.codex-case-list-page .th_main > .text-center .pagination .active a { color: #fff; border-color: var(--codex-case-brand); background: var(--codex-case-brand); transform: translateY(-1px); }
.codex-case-list-page .codex-case-backtop { position: fixed; right: 24px; bottom: 24px; z-index: 1200; width: 44px; height: 44px; border: 1px solid var(--ws-color-border-strong, #cbd5e1); border-radius: 50%; color: var(--codex-case-deep); background: rgba(255,255,255,.92); box-shadow: var(--ws-shadow-md, 0 16px 40px rgba(15,23,42,.1)); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .24s ease, transform .24s ease; }
.codex-case-list-page .codex-case-backtop.is-visible { opacity: 1; pointer-events: auto; transform: none; }
@media (max-width: 900px) { .codex-case-list-page .th_case_list > ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .codex-case-list-page .th_ins_ban { height: 270px; margin-top: 62px; } .codex-case-list-page .th_ins_ban .th_con_txt { left: 24px; } .codex-case-list-page .th_ins_ban .th_con_txt h1 { font-size: 38px; } .codex-case-list-page .th_ins_ban .th_bot { bottom: 15px; padding: 0 16px; } .codex-case-list-page .th_ins_ban .th_bot ul { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; } .codex-case-list-page .th_ins_ban .th_bot ul::-webkit-scrollbar { display: none; } .codex-case-list-page .th_main { padding: 0 16px 68px; } .codex-case-list-page .th_breadcrumb { padding: 18px 0; } .codex-case-list-page .th_case_list { margin-top: 24px; } .codex-case-list-page .th_case_list > ul { grid-template-columns: 1fr; gap: 14px; } .codex-case-list-page .th_case_list .th_img { height: auto !important; aspect-ratio: 16 / 10; } .codex-case-list-page .th_case_list .th_mask { opacity: 1; } .codex-case-list-page .th_case_list .th_cont { min-height: 68px; padding: 15px 16px 16px; } .codex-case-list-page .th_case_list .th_r dt { font-size: 17px; } .codex-case-list-page .th_main > .text-center { margin-top: 28px; } .codex-case-list-page .codex-case-backtop { right: 16px; bottom: 16px; width: 40px; height: 40px; } }
@media (prefers-reduced-motion: reduce) { .codex-case-list-page .th_case_list > ul > li, .codex-case-list-page .th_case_list .th_img > a > img, .codex-case-list-page .th_case_list .th_mask, .codex-case-list-page .codex-case-backtop { transition: none; } .codex-case-list-page .th_case_list > ul > li { opacity: 1; transform: none; } }


/* 1.0.1 stability patch: normalize legacy case-list floats and keep cards visible. */
.codex-case-list-page .th_main {
  width: min(100%, var(--ws-container-2xl, 1240px)) !important;
  margin-right: auto !important;
  margin-left: auto !important;
  box-sizing: border-box !important;
}
.codex-case-list-page .th_case_list {
  width: min(100%, var(--ws-container-xl, 1160px)) !important;
  float: none !important;
  box-sizing: border-box !important;
}
.codex-case-list-page .th_case_list > ul {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.codex-case-list-page .th_case_list > ul::before,
.codex-case-list-page .th_case_list > ul::after { display: none !important; content: none !important; }
.codex-case-list-page .th_case_list > ul > li {
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: auto !important;
  margin: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none;
  box-sizing: border-box !important;
}
.codex-case-list-page .codex-case-reveal,
.codex-case-list-page .codex-case-reveal.is-visible { opacity: 1 !important; visibility: visible !important; transform: none !important; }
@media (max-width: 900px) {
  .codex-case-list-page .th_case_list > ul { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 620px) {
  .codex-case-list-page .th_case_list > ul { grid-template-columns: minmax(0, 1fr) !important; gap: 14px !important; }
}


/* Video listing hero — centered semantic title treatment. Version 1.0.2 */
.codex-video-list-page .th_ins_ban.ws-video-hero .th_con_txt {
  left: 50% !important;
  right: auto !important;
  width: min(calc(100% - 48px), var(--ws-container-xl, 1160px)) !important;
  text-align: center !important;
  transform: translate(-50%, -50%) !important;
}
.codex-video-list-page .th_ins_ban.ws-video-hero .th_con_txt h1,
.codex-video-list-page .th_ins_ban.ws-video-hero .th_con_txt h2,
.codex-video-list-page .th_ins_ban.ws-video-hero .th_con_txt h3 {
  text-align: center !important;
}
.codex-video-list-page .th_ins_ban.ws-video-hero .th_con_txt span {
  margin-right: auto !important;
  margin-left: auto !important;
}
@media (max-width: 620px) {
  .codex-video-list-page .th_ins_ban.ws-video-hero .th_con_txt {
    width: calc(100% - 32px) !important;
  }
}
