/* 业务名称常驻图片中央，悬停或键盘聚焦时展示后台简介与详情入口。 */
[data-tech-law-page="services"] .svc-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  border: 0;
  background: transparent;
}
[data-tech-law-page="services"] .svc-card {
  display: grid;
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #101e2b;
  transition: box-shadow .25s, transform .25s;
}
[data-tech-law-page="services"] .svc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15, 28, 44, .16);
}
[data-tech-law-page="services"] .svc-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
[data-tech-law-page="services"] .svc-thumb {
  grid-area: 1 / 1;
  align-self: stretch;
  aspect-ratio: auto;
  background-color: #101e2b;
  filter: none;
}
[data-tech-law-page="services"] .svc-thumb::after {
  background: rgba(5, 15, 24, .6);
  transition: background .25s;
}
[data-tech-law-page="services"] .svc-card:is(:hover, :focus-visible) .svc-thumb::after {
  background: rgba(5, 15, 24, .84);
}
/* 前六个业务沿用后台排序标记，预留顶部空间以免遮挡标题。 */
[data-tech-law-page="services"] .svc-card:nth-child(-n+6) .svc-thumb::before {
  content: '标杆业务';
  position: absolute;
  z-index: 1;
  top: 14px;
  right: 14px;
  padding: 5px 10px;
  border-radius: 3px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
}
[data-tech-law-page="services"] .svc-inner {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  display: grid;
  place-content: center;
  padding: 52px 24px 28px;
  text-align: center;
}
[data-tech-law-page="services"] .svc-inner :is(.get, .svc-idx) { display: none; }
/* 统一文字样式的 :is() 包含双 class，使用完整卡片层级确保反白优先。 */
#tech-law-reference-top[data-tech-law-page="services"] .svc-card .svc-inner h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .02em;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}
#tech-law-reference-top[data-tech-law-page="services"] .svc-card .svc-inner p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  max-height: 0;
  overflow: hidden;
  margin: 0;
  color: #f0f4f8;
  font-size: 15px;
  line-height: 1.7;
  opacity: 0;
  transition: max-height .25s, opacity .25s, margin .25s;
}
#tech-law-reference-top[data-tech-law-page="services"] .svc-card .svc-inner .more {
  display: inline-flex;
  justify-self: center;
  align-items: center;
  gap: 10px;
  max-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .03em;
  opacity: 0;
  transition: max-height .25s, opacity .25s, margin .25s;
}
#tech-law-reference-top[data-tech-law-page="services"] .svc-card:is(:hover, :focus-visible) .svc-inner p {
  max-height: 5.1em;
  margin-top: 12px;
  opacity: 1;
}
#tech-law-reference-top[data-tech-law-page="services"] .svc-card:is(:hover, :focus-visible) .svc-inner .more {
  max-height: 2em;
  margin-top: 16px;
  opacity: 1;
}
/* 触屏没有悬停，直接展示简介与入口，点击仍进入业务详情。 */
@media (hover: none), (pointer: coarse) {
  [data-tech-law-page="services"] .svc-thumb::after { background: rgba(5, 15, 24, .8); }
  #tech-law-reference-top[data-tech-law-page="services"] .svc-card .svc-inner p {
    max-height: 5.1em;
    margin-top: 12px;
    opacity: 1;
  }
  #tech-law-reference-top[data-tech-law-page="services"] .svc-card .svc-inner .more {
    max-height: 2em;
    margin-top: 16px;
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-tech-law-page="services"] .svc-card,
  [data-tech-law-page="services"] .svc-thumb::after,
  #tech-law-reference-top[data-tech-law-page="services"] .svc-card .svc-inner :is(p, .more) {
    transition: none;
  }
  [data-tech-law-page="services"] .svc-card:hover { transform: none; }
}

/* 行业卡片直接展示后台标题、简介和配图，不提供详情跳转。 */
.service-industries { margin-top: clamp(48px, 7vw, 88px); }
.service-industries .sec-title { margin-bottom: 32px; text-align: center; }
.service-industry-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.service-industry-panel {
  position: relative;
  display: grid;
  min-height: 300px;
  overflow: hidden;
  border-radius: 6px;
  background: #172b38;
}
.service-industry-picture { grid-area: 1 / 1; position: relative; min-height: 300px; }
.service-industry-picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-industry-content {
  grid-area: 1 / 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 3vw, 38px);
  background: linear-gradient(180deg, rgba(8, 21, 31, .08) 10%, rgba(8, 21, 31, .92) 100%);
}
.service-industry-panel--text .service-industry-content { background: linear-gradient(135deg, #263f4d, #101e2b); }
.service-industry-content h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.service-industry-content p { margin: 0; color: #f1f4f6; font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .service-industry-panels { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .service-industry-panel, .service-industry-picture { min-height: 250px; }
  .service-industry-content { padding: 24px; }
}
/* 专题产品以独立卡片突出每项服务，继续使用后台富文本。 */
.persona-service-layout .persona-product ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.persona-service-layout .persona-product li{padding:48px 22px 22px;border:1px solid var(--line);background:#fff;line-height:1.8}
.persona-service-layout .persona-product li:before{top:19px;left:22px}
.persona-service-layout .persona-product li strong{display:block;margin-bottom:10px;color:var(--ink);font-size:17px}
.persona-article-more{align-self:flex-end}
/* 概览的章节目录在桌面端位于正文右侧，窄屏沿用原有单栏布局。 */
@media(min-width:993px){[data-tech-law-page="service-digital-persona"] .grid-2:has(.persona-service-layout){display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:48px;align-items:start}}
@media(max-width:992px){[data-tech-law-page="services"] .svc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){[data-tech-law-page="services"] .svc-grid,.persona-service-layout .persona-product ol{grid-template-columns:1fr}}

/* 案例搜索和数字分页只影响当前业务栏目。 */
.persona-case-search{display:flex;align-items:center;gap:12px;margin:0 0 20px;color:var(--ink-2)}
.persona-case-search input{min-width:0;max-width:320px;padding:9px 12px;border:1px solid var(--line);background:#fff}
.persona-article-list>li[hidden],[data-persona-case-empty][hidden]{display:none}
[data-tech-law-page^="service-"] .case-layout-pagination{display:flex;flex-wrap:wrap;gap:8px;margin-top:24px}
[data-tech-law-page^="service-"] .case-layout-pagination button{min-width:38px;padding:8px;border:1px solid var(--line);background:#fff;cursor:pointer}
[data-tech-law-page^="service-"] .case-layout-pagination button[aria-current="page"]{background:var(--accent);color:#fff}

/* 小屏保留研究入口，避免不可点击的说明卡片占据整屏。 */
@media(max-width:700px){
  [data-tech-law-home] .research .res-cards{display:none}
  [data-tech-law-home] .home-cases-head{text-align:left}
  .persona-service-layout table.dt{min-width:0;table-layout:fixed;font-size:12px}
  .persona-service-layout table.dt :is(th,td){padding:8px 6px;overflow-wrap:anywhere;word-break:break-word}
  .persona-service-layout .persona-product li{padding-top:20px;padding-left:52px}
  .persona-service-layout .persona-product li:before{top:23px;left:18px}
}

/* 保留页脚内容并压缩上下留白。 */
.footer{padding-top:20px}
.f-top{padding-bottom:12px}
.footer-quick{padding-bottom:8px;margin-bottom:10px}
.f-bot{padding:10px 0}

/* 站内搜索仅查询已公开内容。 */
.tech-law-nav-search-toggle{position:relative;margin-right:12px}
.tech-law-nav-search-toggle summary{display:grid;place-items:center;width:40px;height:40px;cursor:pointer;color:var(--ink-2);list-style:none}
.tech-law-nav-search-toggle summary::-webkit-details-marker{display:none}
.tech-law-nav-search-toggle summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.tech-law-nav-search-toggle[open] summary{color:var(--accent)}
.tech-law-nav-search{position:absolute;top:calc(100% + 8px);right:0;z-index:10;display:flex;align-items:center;gap:6px;padding:12px;background:#fff;border:1px solid var(--line);box-shadow:0 8px 24px rgba(15,28,44,.14)}
.tech-law-search-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.tech-law-nav-search input{width:200px;min-width:0;padding:7px;border:1px solid var(--line)}
.tech-law-nav-search button,.tech-law-mobile-search button,.tech-law-search-page button{padding:8px;border:0;background:var(--accent);color:#fff;cursor:pointer}
.tech-law-mobile-search{display:flex;gap:8px;margin:0 0 16px}
.tech-law-mobile-search label{flex:1;min-width:0}
.tech-law-mobile-search input{width:100%;min-width:0;padding:8px;border:1px solid var(--line)}
@media(max-width:700px){.tech-law-nav-search-toggle{display:none}}
.tech-law-search-page{min-height:70vh;padding-top:60px;padding-bottom:80px}
.tech-law-search-page h1{margin:28px 0;font-size:32px}
.tech-law-search-page form{display:flex;gap:12px;align-items:end;margin-bottom:24px}
.tech-law-search-page input{display:block;max-width:75vw;padding:9px;border:1px solid var(--line)}
.tech-law-search-page li{padding:18px 0;border-bottom:1px solid var(--line)}
.tech-law-search-page li a{color:var(--accent);font-weight:600}
.tech-law-search-page li p{margin-top:6px;color:var(--ink-2)}

/* 新闻沿用后台发布时间，窄屏时日期和标题自然换行。 */
.tech-law-news-section ul{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.tech-law-news-section li a{display:flex;justify-content:space-between;gap:20px;padding:16px 0;border-bottom:1px solid var(--line)}
.tech-law-news-section li span{min-width:0;overflow-wrap:anywhere}
.tech-law-news-section time{flex:none;color:var(--ink-3);font-size:13px;font-variant-numeric:tabular-nums}
.tech-law-news-empty{padding:36px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);color:var(--ink-3);font-size:14px;text-align:center}

/* 首页新闻与公告：全站统一的白底卡片风格（满幅顶图头条白卡 + 缩略图列表白卡）。 */
#home-news.tech-law-news-section{position:relative;overflow:hidden;padding:clamp(68px,8vh,104px) 0;background:linear-gradient(180deg,#f6f9fb 0%,#eef3f7 100%);border-top:0}
#home-news.tech-law-news-section::before{content:"";position:absolute;top:0;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent,#dde5ec 14%,#dde5ec 86%,transparent)}
#home-news .wrap{position:relative;z-index:1}

#home-news .home-news-head{position:relative;align-items:flex-end;gap:32px;margin-bottom:clamp(28px,4vh,42px);padding-bottom:22px;border-bottom:1px solid #dfe7ee}
#home-news .home-news-title-wrap{position:relative;min-width:0}
#home-news .home-news-head .eyebrow{margin-bottom:14px;color:var(--ink-3)}
#home-news .home-news-head .sec-title{font-size:clamp(30px,2.6vw,38px);letter-spacing:.04em;color:var(--ink)}
#home-news .home-news-head .sec-title .sub{margin-top:10px;font-size:11px;letter-spacing:.28em;color:var(--ink-3)}
#home-news .home-news-title-wrap::after{content:"NEWS";position:absolute;left:calc(100% + 28px);top:46%;transform:translateY(-50%);font-size:clamp(54px,5.8vw,84px);font-weight:500;line-height:1;letter-spacing:.06em;color:transparent;-webkit-text-stroke:1px rgba(17,17,17,.08);pointer-events:none;user-select:none}
#home-news .home-news-more{position:relative;z-index:1;flex:none;padding:12px 26px;font-size:12.5px;letter-spacing:.14em;color:var(--ink);border-color:#c2ced8;background:#fff}
#home-news .home-news-more::after{background:var(--accent)}
#home-news .home-news-more:hover,#home-news .home-news-more:focus-visible{color:#fff;border-color:var(--accent)}

#home-news .home-news-grid{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(0,1.18fr);gap:24px;align-items:stretch}
#home-news .home-news-grid-single{grid-template-columns:minmax(0,1fr)}

/* 左侧：与全站统一的白底满幅顶图卡片 */
#home-news .home-news-lead{position:relative;display:flex;flex-direction:column;overflow:hidden;border-radius:6px;background:#fff;color:var(--ink);border:1px solid #dce4ec;border-top:2px solid var(--accent);box-shadow:0 12px 30px rgba(23,35,43,.06);transition:transform .35s var(--ease),box-shadow .35s var(--ease),border-color .35s var(--ease)}
#home-news .home-news-lead:hover,#home-news .home-news-lead:focus-visible{transform:translateY(-3px);box-shadow:0 20px 42px rgba(23,35,43,.11);border-color:#c2d0dc;border-top-color:var(--accent)}
#home-news .home-news-lead-media{position:relative;aspect-ratio:16/9;overflow:hidden;background:#eef3f7}
#home-news .home-news-lead-media img{width:100%;height:100%;object-fit:cover;transition:transform .8s var(--ease)}
#home-news .home-news-lead:hover .home-news-lead-media img{transform:scale(1.04)}
#home-news .home-news-lead-media-placeholder{display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#eef3f7 0%,#e2eaf1 100%)}
#home-news .home-news-lead-watermark{font-size:clamp(30px,3.2vw,42px);font-weight:600;letter-spacing:.26em;color:transparent;-webkit-text-stroke:1px rgba(17,17,17,.12);user-select:none}

#home-news .home-news-lead-body{display:flex;flex:1;flex-direction:column;justify-content:space-between;padding:24px 28px 24px}
#home-news .home-news-lead-date{display:flex;align-items:center;margin-bottom:10px;color:var(--ink-3);font-size:12.5px;letter-spacing:.08em;font-variant-numeric:tabular-nums}
#home-news .home-news-lead-title{margin:0;color:var(--ink);font-size:clamp(19px,1.5vw,22px);font-weight:600;line-height:1.55;letter-spacing:.02em;transition:color .3s var(--ease)}
#home-news .home-news-lead:hover .home-news-lead-title{color:var(--accent)}
#home-news .home-news-lead-excerpt{margin-top:12px;color:var(--ink-2);font-size:14px;line-height:1.8;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
#home-news .home-news-lead-foot{display:flex;align-items:center;justify-content:space-between;margin-top:20px;padding-top:14px;border-top:1px solid #edf2f6;color:var(--accent);font-size:13px;font-weight:600;letter-spacing:.12em}
#home-news .home-news-lead-foot i{font-style:normal;font-size:16px;transition:transform .35s var(--ease)}
#home-news .home-news-lead:hover .home-news-lead-foot i{transform:translateX(5px)}

/* 右侧：左侧缩略图 + 右侧标题与日期的白底列表卡 */
#home-news .home-news-list{display:grid;grid-auto-rows:1fr;gap:16px;border:0;border-top:0}
#home-news .home-news-list li{display:flex;min-width:0}
#home-news .home-news-item{position:relative;overflow:hidden;display:grid;grid-template-columns:152px minmax(0,1fr) 36px;gap:20px;align-items:center;width:100%;height:100%;padding:14px 20px 14px 16px;background:#fff;border:1px solid #dce4ec;border-radius:6px;box-shadow:0 8px 22px rgba(23,35,43,.04);transition:transform .35s var(--ease),box-shadow .35s var(--ease),border-color .35s var(--ease)}
#home-news .home-news-item::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--accent);transform:scaleY(0);transform-origin:center;transition:transform .35s var(--ease)}
#home-news .home-news-item:hover,#home-news .home-news-item:focus-visible{transform:translateY(-3px);border-color:#c2d0dc;box-shadow:0 16px 32px rgba(23,35,43,.09)}
#home-news .home-news-item:hover::before,#home-news .home-news-item:focus-visible::before{transform:scaleY(1)}

#home-news .home-news-thumb{position:relative;aspect-ratio:16/10;overflow:hidden;border-radius:4px;background:#eef3f7}
#home-news .home-news-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease)}
#home-news .home-news-item:hover .home-news-thumb img{transform:scale(1.05)}
#home-news .home-news-thumb-placeholder{display:grid;place-items:center;width:100%;height:100%;background:linear-gradient(135deg,#eef3f7,#e1eaf1);color:var(--ink-3);font-size:10px;font-weight:600;letter-spacing:.18em}

#home-news .home-news-item-body{min-width:0;display:flex;flex-direction:column;gap:8px}
#home-news .home-news-item-title{margin:0;color:var(--ink);font-size:16px;font-weight:600;line-height:1.55;letter-spacing:.02em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;transition:color .3s var(--ease)}
#home-news .home-news-item:hover .home-news-item-title{color:var(--accent)}
#home-news .home-news-item-date{color:var(--ink-3);font-size:12.5px;letter-spacing:.06em;font-variant-numeric:tabular-nums}

#home-news .home-news-item-arrow{width:36px;height:36px;border-radius:50%;border:1px solid #e2eaf0;background:#f8fafc;display:grid;place-items:center;color:var(--ink-2);font-size:15px;transition:background .35s var(--ease),border-color .35s var(--ease),color .35s var(--ease),transform .35s var(--ease)}
#home-news .home-news-item:hover .home-news-item-arrow{background:var(--accent);border-color:var(--accent);color:#fff;transform:translateX(3px)}

@media(max-width:1080px){
  #home-news .home-news-grid{grid-template-columns:1fr;gap:22px}
  #home-news .home-news-title-wrap::after{left:calc(100% + 16px);font-size:48px}
}
@media(max-width:640px){
  #home-news.tech-law-news-section{padding:48px 0}
  #home-news .home-news-head{flex-direction:column;align-items:flex-start;gap:16px;margin-bottom:24px;padding-bottom:18px}
  #home-news .home-news-title-wrap::after{display:none}
  #home-news .home-news-lead-body{padding:20px 18px}
  #home-news .home-news-lead-title{font-size:18px}
  #home-news .home-news-item{grid-template-columns:112px minmax(0,1fr) 32px;gap:14px;padding:12px 14px 12px 12px}
  #home-news .home-news-item-title{font-size:15px}
  #home-news .home-news-item-arrow{width:32px;height:32px;font-size:13px}
}
@media(prefers-reduced-motion:reduce){
  #home-news .home-news-lead,#home-news .home-news-lead-media img,#home-news .home-news-lead-foot i,#home-news .home-news-item,#home-news .home-news-item::before,#home-news .home-news-thumb img,#home-news .home-news-item-arrow{transition:none}
}

/* 文库精选卡片与正文同宽，避免大屏图片占满整个视口。 */
[data-tech-law-page="research"] .art-picks{width:var(--tech-law-content-width);max-width:1244px;margin:0 auto;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
[data-tech-law-page="research"] .art-pick{min-height:250px;border:0;border-radius:5px}
[data-tech-law-page="research"] .ap-body{min-height:250px;padding:22px}
[data-tech-law-page="research"] .ap-title{font-size:18px;line-height:1.5}
@media(max-width:700px){
  [data-tech-law-page="research"] .art-picks{grid-template-columns:1fr;gap:12px}
  [data-tech-law-page="research"] .art-pick,[data-tech-law-page="research"] .ap-body{min-height:220px}
  [data-tech-law-page="research"] .ap-title{font-size:17px}
}
