/* ============================================================
   广东AI赋能千行百业1000案例 H5
   设计稿：蓝湖 750 基准（源画布 390，缩放系数 750/390 = 1.9231）
   适配方案：100px = 1rem，font-size: calc(100vw / 7.5)
   ============================================================ */

/* ----- 基础重置 ----- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
}

html,
body {
  position: relative;
  min-height: 100vh;
  font-size: calc(100vw / 7.5);
}

body {
  margin: 0 auto;
  width: 100%;
  max-width: 750px;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  line-height: 1;
  background: #e3e7f4; /* 设计稿底色 rgba(227,231,244) */
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.05);
}

@media (min-width: 750px) {
  html {
    font-size: 100px;
  }
}

a {
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

img {
  display: block;
  border: 0;
  max-width: 100%;
}

/* ----- 页面容器 ----- */
.page {
  position: relative;
  width: 7.5rem;
  margin: 0 auto;
  overflow: hidden;
  padding-bottom: 0.5rem;
  background: linear-gradient(180deg, #eef1f9 0%, #e3e7f4 12rem, #dfe4f0 100%);
}

/* ----- 顶部 LOGO 条：源(47,20) 296x16 → 居中 ----- */
.logos {
  padding-top: 0.38rem;
  text-align: center;
}
.logos img {
  display: inline-block;
  width: 5.69rem;
  height: auto;
}

/* ----- 主视觉：源(51,80) 288x302 → 居中 ----- */
.hero {
  margin-top: 0.2rem;
  text-align: center;
}
.hero img {
  display: inline-block;
  width: 5.6rem;
  height: auto;
}

/* ----- 副标题：源16px 思源宋体 Bold，字距 0.41em，色 #00356B ----- */
.subtitle {
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Source Han Serif CN', 'Noto Serif SC', 'SimSun', serif;
  font-weight: 700;
  font-size: 0.31rem;
  letter-spacing: 0.13rem; /* ≈0.41em */
  color: #00356b;
  text-indent: 0.13rem; /* 抵消末字 letter-spacing */
}
.subtitle .dash {
  display: inline-block;
  width: 0.31rem;
  height: 0.02rem;
  background: #00356b;
  margin: 0 0.12rem;
  vertical-align: middle;
}

/* ----- 指导/征集/支持单位：源11px，标签两侧竖线 ----- */
.orgs {
  width: 6.9rem;
  margin: 0.36rem auto 0;
  padding: 0.12rem 0.1rem;
}
.org-row {
  display: flex;
  align-items: flex-start;
  font-size: 0.21rem;
  line-height: 0.3rem;
  color: #00356b;
  margin-bottom: 0.12rem;
}
.org-row:last-child {
  margin-bottom: 0;
}
.org-label {
  flex: 0 0 auto;
  font-weight: 600;
  padding: 0 0.09rem;
  border-left: 0.02rem solid #00356b;
  border-right: 0.02rem solid #00356b;
  margin-right: 0.14rem;
  line-height: 0.26rem;
}
.org-val {
  flex: 1 1 auto;
  font-weight: 400;
  line-height: 0.3rem;
}

/* ----- 搜索 / 案例类型筛选栏 ----- */
.filter {
  position: relative;
  width: 6.9rem;
  height: 0.88rem;
  margin: 0.4rem auto 0.1rem;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 0.02rem solid #c4ccdf;
  border-radius: 0.44rem;
  overflow: visible;
}
.filter-select {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 2.6rem;
  padding-left: 0.24rem;
  padding-right: 0.14rem;
  font-size: 0.27rem;
  color: #888ea3;
}
.filter-select-txt {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.filter-select-arrow {
  flex: 0 0 auto;
  width: 0.28rem;
  height: 0.28rem;
}
.filter-divider {
  flex: 0 0 auto;
  width: 0.02rem;
  height: 0.4rem;
  background: #d5daea;
}
.filter-search {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  padding: 0 0.3rem 0 0.28rem;
}
.filter-search input {
  flex: 1 1 auto;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 0.27rem;
  color: #333;
  min-width: 0;
}
.filter-search input::placeholder {
  color: #888ea3;
}
.filter-search-icon {
  flex: 0 0 auto;
  width: 0.3rem;
  height: 0.3rem;
}

/* 案例类型下拉面板：深蓝 #122C48 */
.type-dropdown {
  display: none;
  position: absolute;
  left: 0.1rem;
  top: 0.95rem;
  width: 2.7rem;
  list-style: none;
  background: #122c48;
  border-radius: 0.08rem;
  padding: 0.1rem 0;
  z-index: 20;
  box-shadow: 0 0.06rem 0.2rem rgba(10, 30, 60, 0.25);
}
.type-dropdown li {
  font-size: 0.27rem;
  line-height: 0.58rem;
  padding-left: 0.24rem;
  color: rgba(255, 255, 255, 0.9);
}
.type-dropdown li.active {
  background: rgba(255, 255, 255, 0.08);
}

/* ----- 案例分区 ---- */
.case-list {
  width: 6.9rem;
  margin: 0.77rem auto 0; /* 源 搜索栏底(603) → 首个 cat-tab 顶(643) = 40px */
}
/* section 之间统一间距：源 末卡底(992) → 下节 cat-tab 顶(1040) = 48px
   卡片不再带 margin-bottom，此处相邻兄弟 margin-top 不会被折叠 */
.section + .section {
  margin-top: 0.92rem;
}

/* 空状态提示：小字号、水平居中，采用相对布局 padding/margin */
.empty-tip {
  width: 100%;
  margin: 0 auto;
  padding: 1.2rem 0.3rem;
  text-align: center;
  font-size: 0.28rem;
  line-height: 0.4rem;
  color: #888ea3;
}

/* 分类标签：拆为两个独立图层（非 box-shadow，以便粉色层自带描边）
   上层 Frame18 = navy #00356B 实心无描边，位于 (131,643)
   底层 Rectangle58 = pink #F2B1C2 带 1px navy 描边，位于 (133,645)，相对 navy 向右下偏 2px
   → navy 为主体，pink 仅在右下边露出 2px */
.cat-tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: -moz-fit-content;
  width: fit-content;
  height: 0.52rem;
  margin: 0 auto 0.42rem; /* 下距首卡 22px；上间距改由 .section+.section 控制，避免折叠 */
  padding: 0 0.23rem 0 0.15rem;
  background: transparent;
}
/* 底层 Rectangle 58：pink + 1px navy 描边，向右下偏移 2px */
.cat-tab .tab-bg-pink {
  position: absolute;
  left: 0.05rem;
  top: 0.05rem;
  width: 100%;
  height: 100%;
  background: #f2b1c2;
  border: 0.02rem solid #00356b; /* 源 1px outside navy 描边 */
  border-radius: 0.08rem;
  z-index: 0;
}
/* 上层 Frame 18：navy 实心，无描边 */
.cat-tab .tab-bg-navy {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #00356b;
  border-radius: 0.08rem;
  z-index: 1;
}
.cat-tab .ai-mark {
  position: relative;
  z-index: 2;
  width: auto;
  height: 0.31rem; /* 源 AI+ 标记 31x16 */
  margin-right: 0.08rem;
}
.cat-tab .cat-name {
  position: relative;
  z-index: 2;
  font-family: 'Source Han Sans CN', 'Noto Sans SC', sans-serif;
  font-weight: 700;
  font-size: 0.35rem;
  color: #f1d3db;
  letter-spacing: 0.02rem;
}

/* 案例卡片：Frame12/Frame11 各为独立卡片，源342x(128/148) 纯navy #00356B 无描边
   每个案例一张卡，卡片间距 24px → 0.46rem */
.case-card {
  background: #00356b;
  border-radius: 0.154rem; /* 源圆角 8px */
  padding: 0.31rem;
  margin: 0;
}
/* 同节内卡→卡间距：源 24px = 0.46rem */
.case-card + .case-card {
  margin-top: 0.46rem;
}

/* 单个案例条目（一张卡内一个） */
.case-item {
  width: 100%;
}
.case-row {
  display: flex;
  font-size: 0.27rem;
  line-height: 0.4rem; /* 源行高 20px */
  margin-bottom: 0.15rem; /* 源两行间 8px */
}
.case-row .k {
  flex: 0 0 auto;
  color: #6ea4f0;
}
.case-row .v {
  flex: 1 1 auto;
  color: #ffffff;
  padding-left: 0.08rem;
}

/* 案例简介按钮：Frame8 源310x32 浅粉底 #F1D3DB，圆角4px */
.case-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 0.615rem; /* 源 32px */
  margin-top: 0.3rem; /* 源文字块与按钮间距 16px */
  background: #f1d3db;
  border-radius: 0.08rem; /* 源 4px */
  font-size: 0.27rem;
  font-weight: 500;
  color: #00356b;
}
.case-btn .chev {
  width: 0.31rem; /* 源 16px */
  height: 0.31rem;
  margin-left: 0.31rem; /* 源文字与箭头间距 16px */
  /* 切图 chevron-left 路径本身已朝右(>)，不做翻转 */
}

/* ----- 页脚 ----- */
.footer {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.24rem;
  letter-spacing: 0.04rem;
  color: #888ea3;
}

/* ============================================================
   案例详情弹窗（源画布 390x844）
   ============================================================ */
.modal {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  max-width: 750px;
  margin: 0 auto;
}
.modal.show {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(6, 18, 34, 0.72);
}
.modal-card {
  position: relative;
  z-index: 1;
  width: 6.58rem; /* 源342 */
  background: #00356b; /* Frame61 实测纯色 rgba(0,53,107,1)，无渐变 */
  border-radius: 0.19rem; /* Frame61 圆角 10px */
  /* Frame61 蓝湖无描边 borders:[]，不加 border，保证 Frame60 左右恰为 4px */
  padding: 0.23rem 0.08rem 0.08rem; /* 蓝湖 Frame61(x24,w342)/Frame60(x28,w334)：左右 4px；Frame60底(709)→卡底(713) 4px；title顶距卡顶 12px */
}
.modal-title {
  font-size: 0.31rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  line-height: 0.44rem;
  margin-bottom: 0.23rem; /* 源 title 底(208)→Frame60 顶(220) = 12px */
}
.modal-body {
  position: relative;
  background: #e3e7f4; /* Frame60 实测 rgba(227,231,244,1) */
  border-radius: 0.15rem; /* Frame60 圆角 8px */
  padding: 0.31rem 0.38rem 0.31rem; /* 蓝湖 Frame60→Frame59：上 16px、左 20px；Frame59底(651)→Frame60底(709) 58px */
}
.modal-scroll {
  height: 6.83rem; /* = Frame57 高 355px：蓝湖滚动视口（label 20+间隙 5+正文 330 恰好填满），非 Frame59 415px */
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  padding-right: 0.08rem; /* 正文右缘距 body 右 24px = body 0.38rem + 本 0.08rem */
  /* 隐藏原生滚动条，仅保留 Rectangle 90 样式层，避免双滚动条 */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.modal-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
.modal-label {
  font-size: 0.27rem;
  font-weight: 700;
  color: #00356b;
  margin-bottom: 0.16rem;
}
.modal-desc {
  font-size: 0.27rem;
  line-height: 0.46rem;
  color: #00356b;
  text-align: justify;
  margin-bottom: 0.3rem;
  white-space: pre-wrap; /* 保留 xlsx 数据中的换行 */
  word-break: break-word;
}
.modal-contact-row {
  font-size: 0.27rem;
  line-height: 0.44rem;
  color: #00356b;
}
.modal-contact-row .cl {
  font-weight: 700;
  margin-right: 0.24rem;
}
/* 滚动条层：以蓝湖 Rectangle 90 为准（x=354,y=236,w=4,h=134）
   相对 modal-body(Frame60 x=28,y=220)：右距≈4px、上距 16px、宽 4px、高 134px */
.modal-scrollbar {
  position: absolute;
  right: 0.08rem; /* Rectangle90 距 Frame60 右缘 4px */
  top: 0.31rem;
  width: 0.08rem;
  height: 6.83rem; /* 与滚动视口同高（Frame57 355px） */
  background: transparent;
  border-radius: 0.04rem;
  pointer-events: none;
}
.modal-scrollbar i {
  display: block;
  width: 100%;
  height: 2.58rem; /* 源 Rectangle 90 高 134px，运行时按滚动比例覆盖 */
  background: rgba(0, 53, 107, 0.4);
  border-radius: 0.04rem;
}

/* 关闭按钮：源(179,729) 36x36 圆形 X */
.modal-close {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  margin-top: 0.31rem; /* 源16px 距卡片底部：随卡片高度流动，多行标题不遮挡 */
  width: 0.69rem;
  height: 0.69rem;
  border: 0.03rem solid #ffffff;
  border-radius: 50%;
  cursor: pointer;
}
.modal-close::before,
.modal-close::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.32rem;
  height: 0.03rem;
  background: #ffffff;
}
.modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
