/* ============================================================
   Omnia 样式7 · 玻璃杂志信息流（Glass Editorial Feed）
   作用域：仅在 <html data-pattern="07"> 下生效，不影响样式1-6
   风格：单列阅读流 + 首图 Hero 毛玻璃卡 + 紧凑发丝线文章行
   变量：复用 --theme/--background/--main/--routine/--minor/--seat/
        --classC/--classD/--radius-wrap/--radius-inner/--box-shadow
   ============================================================ */

html[data-pattern="07"] {
  --om7-glass-bg: rgba(255, 255, 255, 0.66);
  --om7-glass-bg-strong: rgba(255, 255, 255, 0.82);
  --om7-scrim: rgba(20, 22, 28, 0.42);
}
html[data-pattern="07"][data-night="night"] body,
html[data-pattern="07"] body[data-night] {
  --om7-glass-bg: rgba(35, 35, 35, 0.6);
  --om7-glass-bg-strong: rgba(35, 35, 35, 0.78);
  --om7-scrim: rgba(0, 0, 0, 0.55);
}

/* ---------- 阅读进度条（顶部细条） ---------- */
#om7-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--theme);
  z-index: 9999;
  border-radius: 0 2px 2px 0;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ---------- 毛玻璃工具类（不支持 backdrop-filter 时退化为半实色） ---------- */
html[data-pattern="07"] .om7_glass {
  background: var(--om7-glass-bg);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
}
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  html[data-pattern="07"] .om7_glass {
    background: var(--om7-glass-bg-strong);
  }
}

/* ---------- 轮播（大图 Swiper + 双推荐卡） ---------- */
html[data-pattern="07"] .om7_roll {
  display: flex;
  gap: 15px;
  background: var(--background);
  border-radius: var(--radius-wrap);
  padding: 15px;
  box-shadow: var(--box-shadow);
  margin-bottom: 22px;
}
html[data-pattern="07"] .om7_roll .swiper-container {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 300px;
  border-radius: var(--radius-inner);
  overflow: hidden;
  --swiper-theme-color: var(--theme);
}
html[data-pattern="07"] .om7_roll .swiper-container .item {
  position: relative;
  display: block;
  height: 100%;
}
html[data-pattern="07"] .om7_roll .swiper-container .item .thumbnail {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
html[data-pattern="07"] .om7_roll .swiper-container .item .title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 26px 16px 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html[data-pattern="07"] .om7_roll .swiper-container .item .icon {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  width: 18px;
  height: 18px;
  fill: #fff;
  opacity: 0.6;
}
/* 推荐文章侧栏（轮播右侧双列） */
html[data-pattern="07"] .wx_home_roll-recommend {
  width: 250px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
html[data-pattern="07"] .wx_home_roll-recommend.noswiper {
  width: 100%;
  flex-direction: row;
}
html[data-pattern="07"] .wx_home_roll-recommend .item {
  position: relative;
  flex: 1;
  margin: 0;
  border-radius: var(--radius-inner);
  overflow: hidden;
}
html[data-pattern="07"] .wx_home_roll-recommend .item .thumbnail {
  display: block;
  width: 100%;
  height: 100%;
}
html[data-pattern="07"] .wx_home_roll-recommend .item .thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
html[data-pattern="07"] .wx_home_roll-recommend .item .information {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  padding: 8px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.55));
  color: #fff;
}
html[data-pattern="07"] .wx_home_roll-recommend .item .information .type {
  flex-shrink: 0;
  font-size: 11px;
  line-height: 18px;
  padding: 0 7px;
  border-radius: 2px;
  margin-right: 6px;
  background: linear-gradient(270deg, #986fee, #8695e6, #68b7dd, #18d7d3);
}
html[data-pattern="07"] .wx_home_roll-recommend .item .information .text {
  font-size: 13px;
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 热门文章：4 列紧凑卡片，火焰角标 ---------- */
html[data-pattern="07"] .om7_hot .wx_home_hot-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: var(--background);
  border-radius: var(--radius-wrap);
  padding: 15px;
  box-shadow: var(--box-shadow);
  margin-bottom: 22px;
  list-style: none;
}
html[data-pattern="07"] .om7_hot .wx_home_hot-list .item {
  overflow: hidden;
  border-radius: var(--radius-inner);
}
html[data-pattern="07"] .om7_hot .wx_home_hot-list .item .link {
  display: block;
}
html[data-pattern="07"] .om7_hot .wx_home_hot-list .item .link .inner {
  position: relative;
  display: block;
}
html[data-pattern="07"] .om7_hot .wx_home_hot-list .item .link .inner .image {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
  background: var(--classD);
}
html[data-pattern="07"] .om7_hot .wx_home_hot-list .item .link .inner .title {
  display: block;
  font-size: 13px;
  line-height: 34px;
  text-align: center;
  padding: 0 8px;
  color: var(--minor);
  background: var(--classD);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.25s;
}
html[data-pattern="07"] .om7_hot .wx_home_hot-list .item .link:hover .inner .title {
  color: var(--theme);
}
html[data-pattern="07"] .om7_hot .wx_home_hot-list .item .link .inner .views {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(to right, #fc712a, #f84c39);
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(248, 76, 57, 0.35);
}

/* ---------- 首页广告：圆角图卡 + 角标 ---------- */
html[data-pattern="07"] .om7_ad {
  margin-bottom: 22px;
}
html[data-pattern="07"] .om7_ad .wx_home_ad-link {
  display: block;
  position: relative;
  border-radius: var(--radius-inner);
  overflow: hidden;
}
html[data-pattern="07"] .om7_ad .wx_home_ad-link .image {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--classD);
}
html[data-pattern="07"] .om7_ad .wx_home_ad-link .icon {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.3);
  color: #eee;
  pointer-events: none;
}

/* ---------- 分类切换栏：毛玻璃吸附分段控件 ---------- */
html[data-pattern="07"] .om7_column {
  position: sticky;
  top: 64px;
  z-index: 50;
  display: flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px;
  margin-bottom: 22px;
  border: 1px solid var(--classC);
  background: var(--om7-glass-bg);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
html[data-pattern="07"] .om7_column-title {
  position: relative;
  display: flex;
  align-items: center;
  height: 38px;
  margin: 0;
  padding: 0;
  list-style: none;
}
html[data-pattern="07"] .om7_column-title .item {
  cursor: pointer;
  padding: 0 16px;
  height: 38px;
  line-height: 38px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--routine);
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
  transition: color 0.25s;
}
html[data-pattern="07"] .om7_column-title .item:hover {
  color: var(--theme);
}
html[data-pattern="07"] .om7_column-title .item.active {
  color: #fff;
  background: var(--theme);
  box-shadow: 0 4px 10px rgba(115, 170, 255, 0.35);
}
/* 滑动指示条：分段控件模式下隐藏（保留占位不报错） */
html[data-pattern="07"] .om7_column-title .line {
  display: none;
}
html[data-pattern="07"] .om7_notice {
  display: flex;
  align-items: center;
  margin-left: auto;
  padding: 0 10px;
  min-width: 0;
}
html[data-pattern="07"] .om7_notice svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-right: 4px;
  fill: var(--theme);
}
html[data-pattern="07"] .om7_notice a {
  color: var(--minor);
  font-size: 12px;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.25s;
}
html[data-pattern="07"] .om7_notice a:hover {
  color: var(--theme);
}

/* ---------- 文章列表：单列编辑流 ---------- */
html[data-pattern="07"] .om7_list {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ===== Hero 首图大卡（仅首页第一页“最新文章”第一篇） ===== */
html[data-pattern="07"] .wx_home_article-si.index7.hero {
  position: relative;
  margin: 0 0 26px;
  border-radius: var(--radius-wrap);
  overflow: hidden;
  background: var(--classD);
  box-shadow: var(--box-shadow);
}
html[data-pattern="07"] .wx_home_article-si.index7.hero .om7-cover {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.6s ease, opacity 0.35s;
}
html[data-pattern="07"] .wx_home_article-si.index7.hero:hover .om7-cover {
  transform: scale(1.03);
}
html[data-pattern="07"] .wx_home_article-si.index7.hero .om7-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 35%, var(--om7-scrim) 100%);
  pointer-events: none;
}
html[data-pattern="07"] .wx_home_article-si.index7.hero .om7-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-inner);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
html[data-pattern="07"] .wx_home_article-si.index7.hero .om7-caption .om7-chip {
  display: inline-block;
  font-size: 12px;
  color: #fff;
  background: var(--theme);
  border-radius: 999px;
  padding: 2px 10px;
  margin-bottom: 8px;
}
html[data-pattern="07"] .wx_home_article-si.index7.hero .om7-caption .om7-htitle {
  display: block;
  color: #fff;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 600;
  margin: 0 0 8px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
html[data-pattern="07"] .wx_home_article-si.index7.hero .om7-caption .om7-hmeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
}
html[data-pattern="07"] .wx_home_article-si.index7.hero .om7-caption .om7-hmeta span {
  display: inline-flex;
  align-items: center;
}

/* ===== 紧凑文章行（发丝线分隔，无厚重卡片） ===== */
html[data-pattern="07"] .wx_home_article-si.index7.row {
  display: flex;
  align-items: center;
  padding: 18px 4px;
  border-bottom: 1px solid var(--classC);
  background: transparent;
  box-shadow: none;
  transition: background 0.25s;
}
html[data-pattern="07"] .wx_home_article-si.index7.row:hover {
  background: var(--classD);
}
html[data-pattern="07"] .wx_home_article-si.index7.row:last-child {
  border-bottom: none;
}
html[data-pattern="07"] .wx_home_article-si.index7.row .om7-thumb {
  flex-shrink: 0;
  width: 116px;
  height: 80px;
  margin-right: 14px;
  border-radius: var(--radius-inner);
  overflow: hidden;
  background: var(--classD);
}
html[data-pattern="07"] .wx_home_article-si.index7.row .om7-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s, opacity 0.35s;
}
html[data-pattern="07"] .wx_home_article-si.index7.row:hover .om7-thumb img {
  transform: scale(1.06);
}
html[data-pattern="07"] .wx_home_article-si.index7.row .om7-info {
  flex: 1;
  min-width: 0;
}
html[data-pattern="07"] .wx_home_article-si.index7.row .om7-title {
  display: block;
  color: var(--main);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color 0.25s;
}
html[data-pattern="07"] .wx_home_article-si.index7.row .om7-title:hover {
  color: var(--theme);
}
html[data-pattern="07"] .wx_home_article-si.index7.row .om7-badge {
  display: inline-block;
  font-size: 11px;
  color: #fff;
  background: #e2554f;
  border-radius: 3px;
  padding: 0 6px;
  margin-right: 6px;
  vertical-align: 2px;
}
html[data-pattern="07"] .wx_home_article-si.index7.row .om7-abstract {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--minor);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 8px;
  word-break: break-word;
}
html[data-pattern="07"] .wx_home_article-si.index7.row .om7-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--minor);
  font-size: 12px;
}
html[data-pattern="07"] .wx_home_article-si.index7.row .om7-meta span {
  display: inline-flex;
  align-items: center;
}
html[data-pattern="07"] .wx_home_article-si.index7.row .om7-meta svg {
  width: 13px;
  height: 13px;
  margin-right: 3px;
  fill: var(--minor);
}
html[data-pattern="07"] .wx_home_article-si.index7.row .om7-meta .om7-cat a {
  color: var(--theme);
}

/* ---------- 骨架屏 ---------- */
html[data-pattern="07"] .om7_loading .item {
  display: flex;
  align-items: center;
  padding: 18px 4px;
  border-bottom: 1px solid var(--classC);
  list-style: none;
}
html[data-pattern="07"] .om7_loading .item .thumbnail {
  flex-shrink: 0;
  width: 116px;
  height: 80px;
  margin-right: 14px;
  border-radius: var(--radius-inner);
  background: var(--classD);
  -webkit-animation: om7_skel 0.9s infinite alternate;
  animation: om7_skel 0.9s infinite alternate;
}
html[data-pattern="07"] .om7_loading .item .information {
  flex: 1;
  min-width: 0;
}
html[data-pattern="07"] .om7_loading .item .information .title {
  height: 18px;
  width: 45%;
  border-radius: var(--radius-inner);
  background: var(--classD);
  margin-bottom: 10px;
  -webkit-animation: om7_skel 0.9s infinite alternate;
  animation: om7_skel 0.9s infinite alternate;
}
html[data-pattern="07"] .om7_loading .item .information .abstract p {
  height: 12px;
  border-radius: var(--radius-inner);
  background: var(--classD);
  margin-bottom: 6px;
  -webkit-animation: om7_skel 1s infinite alternate;
  animation: om7_skel 1s infinite alternate;
}
@-webkit-keyframes om7_skel {
  from { opacity: 0.5; }
  to { opacity: 1; }
}
@keyframes om7_skel {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

/* ---------- 查看更多按钮：胶囊玻璃 ---------- */
html[data-pattern="07"] .om7_load .wx_load {
  width: auto;
  min-width: 140px;
  padding: 0 24px;
  height: 38px;
  line-height: 38px;
  border-radius: 999px;
  color: var(--routine);
  border: 1px solid var(--classC);
}
html[data-pattern="07"] .om7_load .wx_load[loading] {
  opacity: 0.7;
}

/* ---------- 分页 ---------- */
html[data-pattern="07"] .om7_pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 10px 0;
}
html[data-pattern="07"] .om7_pagination .active a,
html[data-pattern="07"] .om7_pagination .current {
  color: #fff;
  background: var(--theme);
  border-radius: var(--radius-inner);
}

/* ============================================================
   响应式：平板
   ============================================================ */
@media (max-width: 992px) {
  html[data-pattern="07"] .wx_home_article-si.index7.hero .om7-cover {
    height: 260px;
  }
  html[data-pattern="07"] .wx_home_article-si.index7.hero .om7-caption .om7-htitle {
    font-size: 19px;
  }
  html[data-pattern="07"] .om7_notice {
    display: none; /* 窄屏隐藏公告，避免挤压分段控件 */
  }
  /* 平板：轮播改纵向堆叠，推荐改两列 */
  html[data-pattern="07"] .om7_roll {
    flex-direction: column;
  }
  html[data-pattern="07"] .om7_roll .swiper-container {
    flex: none;
    height: 220px;
  }
  html[data-pattern="07"] .wx_home_roll-recommend {
    width: 100%;
    flex-direction: row;
  }
  html[data-pattern="07"] .wx_home_roll-recommend .item {
    height: 135px;
    flex: 1;
  }
  html[data-pattern="07"] .om7_hot .wx_home_hot-list .item .link .inner .image {
    height: 96px;
  }
}

/* ============================================================
   响应式：手机（窄到 320px）
   ============================================================ */
@media (max-width: 768px) {
  html[data-pattern="07"] .om7_column {
    position: static; /* 手机端避免吸附顶栏冲突 */
    border-radius: var(--radius-wrap);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  html[data-pattern="07"] .om7_column-title {
    flex-wrap: nowrap;
  }
  html[data-pattern="07"] .om7_column-title .item {
    padding: 0 13px;
    font-size: 13px;
  }
  html[data-pattern="07"] .om7_hot .wx_home_hot-list {
    grid-template-columns: repeat(2, 1fr);
  }
  html[data-pattern="07"] .om7_roll .swiper-container {
    height: 180px;
  }
  html[data-pattern="07"] .wx_home_roll-recommend .item {
    height: 110px;
  }
  html[data-pattern="07"] .om7_ad .wx_home_ad-link .image {
    height: 140px;
  }
  html[data-pattern="07"] .wx_home_article-si.index7.hero {
    margin-bottom: 20px;
  }
  html[data-pattern="07"] .wx_home_article-si.index7.hero .om7-cover {
    height: 200px;
  }
  html[data-pattern="07"] .wx_home_article-si.index7.hero .om7-caption {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 12px 14px;
  }
  html[data-pattern="07"] .wx_home_article-si.index7.hero .om7-caption .om7-htitle {
    font-size: 17px;
    -webkit-line-clamp: 2;
  }
  html[data-pattern="07"] .wx_home_article-si.index7.hero .om7-caption .om7-hmeta {
    gap: 10px;
    font-size: 11px;
  }
  /* 手机行：缩略图更小 */
  html[data-pattern="07"] .wx_home_article-si.index7.row {
    padding: 14px 2px;
  }
  html[data-pattern="07"] .wx_home_article-si.index7.row .om7-thumb {
    width: 96px;
    height: 68px;
    margin-right: 12px;
  }
  html[data-pattern="07"] .wx_home_article-si.index7.row .om7-title {
    font-size: 15px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
  }
  html[data-pattern="07"] .wx_home_article-si.index7.row .om7-abstract {
    display: none; /* 手机端隐藏摘要，更干净 */
  }
  html[data-pattern="07"] .wx_home_article-si.index7.row .om7-meta {
    gap: 10px;
    font-size: 11px;
  }
}

/* ============================================================
   宽屏 2K：主列居中留白，Hero 更克制（桌面端略调小，移动端不变）
   ============================================================ */
@media (min-width: 1600px) {
  html[data-pattern="07"] .wx_home_article-si.index7.hero .om7-cover {
    height: 320px;
  }
}
