/* ============================================================================
   app.css —— 主样式表
   联盟营销内容站（俄语界面）SSR 站点 · 纯手写 CSS（无框架 / 无预处理器）
   依赖：tokens.css（必须先于本文件引入）
   结构：1 reset · 2 栅格 · 3 排版 · 4 通用组件 · 5 九大区块 · 6 模态/浮层等
   ============================================================================ */

/* ==========================================================================
   1. RESET / 基础
   ========================================================================== */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

html {
  /* 保留用户缩放能力，不禁用 */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-14);
  line-height: var(--lh-body);
  color: var(--c-text);
  background: var(--c-bg);
  /* 横向滚动兜底：任何子元素意外超宽都不产生页面级横向滚动条 */
  overflow-x: hidden;
  /* 固定头部（.pk-header）高度占位：由 JS 写入 --header-h */
  padding-top: var(--header-h, 104px);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* 全局最小宽度保护：弹性子项不因内容撑破父级 */
[hidden] {
  display: none !important;
}

/* 若页面使用 <main class="pk-main"> 承载内容，同样做头部偏移 */
.pk-main {
  padding-top: var(--header-h, 104px);
}

/* ==========================================================================
   2. 自研栅格（Bootstrap3 风格，flex 实现）
   ========================================================================== */

/* --- 容器 --- */
.container {
  width: auto;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 768px) {
  .container {
    width: var(--container-sm); /* 750px */
  }
}

@media (min-width: 992px) {
  .container {
    width: var(--container-md); /* 970px */
  }
}

@media (min-width: 1200px) {
  .container {
    width: var(--container-lg); /* 1170px */
  }
}

/* --- 行 --- */
.row {
  margin-left: calc(-1 * var(--gutter));
  margin-right: calc(-1 * var(--gutter));
  display: flex;
  flex-wrap: wrap;
}

.row::before,
.row::after {
  content: '';
  display: table;
}

.row::after {
  clear: both;
}

/* --- 列：基础（未命中断点时宽度 = 100%，即默认块级）---
   说明：[class*="col-"] 与 .col-xs-*/.col-sm-* 等特异性同为 (0,1,0)，
   因此下方列宽规则靠「源码顺序在后」覆盖本默认宽度，不会出现失效。 */
[class*="col-"] {
  position: relative;
  width: 100%;
  min-height: 1px;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  flex: 0 0 auto;
}

/* --- xs：任意宽度生效 --- */
.col-xs-1 { width: calc(100% / 12 * 1); }
.col-xs-2 { width: calc(100% / 12 * 2); }
.col-xs-3 { width: calc(100% / 12 * 3); }
.col-xs-4 { width: calc(100% / 12 * 4); }
.col-xs-5 { width: calc(100% / 12 * 5); }
.col-xs-6 { width: calc(100% / 12 * 6); }
.col-xs-7 { width: calc(100% / 12 * 7); }
.col-xs-8 { width: calc(100% / 12 * 8); }
.col-xs-9 { width: calc(100% / 12 * 9); }
.col-xs-10 { width: calc(100% / 12 * 10); }
.col-xs-11 { width: calc(100% / 12 * 11); }
.col-xs-12 { width: calc(100% / 12 * 12); }

/* --- sm：≥768px 生效 --- */
@media (min-width: 768px) {
  .col-sm-1 { width: calc(100% / 12 * 1); }
  .col-sm-2 { width: calc(100% / 12 * 2); }
  .col-sm-3 { width: calc(100% / 12 * 3); }
  .col-sm-4 { width: calc(100% / 12 * 4); }
  .col-sm-5 { width: calc(100% / 12 * 5); }
  .col-sm-6 { width: calc(100% / 12 * 6); }
  .col-sm-7 { width: calc(100% / 12 * 7); }
  .col-sm-8 { width: calc(100% / 12 * 8); }
  .col-sm-9 { width: calc(100% / 12 * 9); }
  .col-sm-10 { width: calc(100% / 12 * 10); }
  .col-sm-11 { width: calc(100% / 12 * 11); }
  .col-sm-12 { width: calc(100% / 12 * 12); }
}

/* --- md：≥992px 生效 --- */
@media (min-width: 992px) {
  .col-md-1 { width: calc(100% / 12 * 1); }
  .col-md-2 { width: calc(100% / 12 * 2); }
  .col-md-3 { width: calc(100% / 12 * 3); }
  .col-md-4 { width: calc(100% / 12 * 4); }
  .col-md-5 { width: calc(100% / 12 * 5); }
  .col-md-6 { width: calc(100% / 12 * 6); }
  .col-md-7 { width: calc(100% / 12 * 7); }
  .col-md-8 { width: calc(100% / 12 * 8); }
  .col-md-9 { width: calc(100% / 12 * 9); }
  .col-md-10 { width: calc(100% / 12 * 10); }
  .col-md-11 { width: calc(100% / 12 * 11); }
  .col-md-12 { width: calc(100% / 12 * 12); }
}

/* --- lg：≥1200px 生效 --- */
@media (min-width: 1200px) {
  .col-lg-1 { width: calc(100% / 12 * 1); }
  .col-lg-2 { width: calc(100% / 12 * 2); }
  .col-lg-3 { width: calc(100% / 12 * 3); }
  .col-lg-4 { width: calc(100% / 12 * 4); }
  .col-lg-5 { width: calc(100% / 12 * 5); }
  .col-lg-6 { width: calc(100% / 12 * 6); }
  .col-lg-7 { width: calc(100% / 12 * 7); }
  .col-lg-8 { width: calc(100% / 12 * 8); }
  .col-lg-9 { width: calc(100% / 12 * 9); }
  .col-lg-10 { width: calc(100% / 12 * 10); }
  .col-lg-11 { width: calc(100% / 12 * 11); }
  .col-lg-12 { width: calc(100% / 12 * 12); }
}

/* --- 可见性工具类 ---
   语义：.hidden-xs = 在 xs 断点（<768px）隐藏；.visible-xs = 仅在 xs 断点显示。
   其余同理，对应 sm(768–991) / md(992–1199) / lg(≥1200)。 */
.visible-xs,
.visible-sm,
.visible-md,
.visible-lg {
  display: none;
}

/* xs：< 768px */
@media (max-width: 767px) {
  .hidden-xs {
    display: none !important;
  }

  .visible-xs {
    display: block !important;
  }

  table.visible-xs {
    display: table !important;
  }
}

/* sm：768–991px */
@media (min-width: 768px) and (max-width: 991px) {
  .hidden-sm {
    display: none !important;
  }

  .visible-sm {
    display: block !important;
  }

  table.visible-sm {
    display: table !important;
  }
}

/* md：992–1199px */
@media (min-width: 992px) and (max-width: 1199px) {
  .hidden-md {
    display: none !important;
  }

  .visible-md {
    display: block !important;
  }

  table.visible-md {
    display: table !important;
  }
}

/* lg：≥ 1200px */
@media (min-width: 1200px) {
  .hidden-lg {
    display: none !important;
  }

  .visible-lg {
    display: block !important;
  }

  table.visible-lg {
    display: table !important;
  }
}

/* ==========================================================================
   3. 排版
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 12px;
  font-family: var(--font-head);
  line-height: var(--lh-title);
  color: var(--c-text);
}

/* 标题：字体为 ChevinCyrillic（--font-head）。字号按原站实测对齐：h1 30px、h2 26px，均 bold。 */
h1 {
  font-size: 30px;
  font-weight: 700;
}

h2 {
  font-size: 26px;
  font-weight: 700;
}

h3 {
  font-size: 20px;
  font-weight: 700;
}

p {
  margin: 0 0 12px;
}

/* ==========================================================================
   4. 通用组件
   ========================================================================== */

/* --- 主按钮（对齐原站 .btn：ChevinCyrillic + bold + 大写 + 13px）--- */
.pk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  background: var(--c-brand);
  border: 1px solid var(--c-brand-dark);
  color: var(--c-text-inverse);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--t-color), border-color var(--t-color), transform var(--t-color);
}

.pk-btn:hover {
  background: var(--c-brand-dark);
}

.pk-btn:active {
  transform: translateY(1px);
}

.pk-btn[disabled],
.pk-btn.is-disabled {
  opacity: 0.6;
  pointer-events: none;
}

/* 幽灵按钮：白底描边 */
.pk-btn--ghost {
  background: var(--c-bg);
  color: var(--c-brand);
  border-color: var(--c-brand);
}

.pk-btn--ghost:hover {
  background: var(--c-bg-alt);
  color: var(--c-brand);
  border-color: var(--c-brand);
}

/* --- 次按钮（同样大写，对齐原站按钮风格）--- */
.btn-def {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  background: var(--c-bg);
  border: 1px solid var(--c-border-brand);
  color: #333;
  font-size: 13px;
  text-transform: uppercase;
  line-height: 1;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--t-color), color var(--t-color), border-color var(--t-color);
}

.btn-def:hover,
.btn-def.is-active {
  background: var(--c-brand);
  color: #fff;
  border-color: var(--c-brand);
}

/* 小号次按钮（与 .btn-def 连用） */
.btn-sm {
  height: auto;
  padding: 6px 12px;
  font-size: 13px;
}

/* --- 文本输入 --- */
.pk-input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  background: var(--c-bg);
  border: 1px solid var(--c-border-brand);
  border-radius: var(--r-sm);
  color: var(--c-text);
  font-size: var(--fs-14);
  transition: border-color var(--t-color), box-shadow var(--t-color);
}

.pk-input::placeholder {
  color: var(--c-text-muted);
}

.pk-input:focus {
  outline: 0;
  border-color: var(--c-brand);
  box-shadow: 0 0 0 3px rgba(80, 52, 53, 0.15);
}

/* --- 同意条款复选框 --- */
.pk-consent {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: #666;
  cursor: pointer;
}

.pk-consent input[type='checkbox'] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--c-brand);
  flex: 0 0 auto;
}

/* --- 分类徽标 --- */
.pk-cat-badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--c-brand-light);
  color: var(--c-text-inverse);
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--r-pill);
}

/* --- 卡片 --- */
.pk-card {
  background: var(--c-bg);
  border: 1px solid var(--c-border-brand);
  border-radius: 0;
  box-shadow: var(--sh-card);
  transition: box-shadow var(--t-color);
}

.pk-card:hover {
  box-shadow: var(--sh-pop);
}

/* --- 表单提示信息 --- */
.pk-form-msg {
  display: none;
  margin-top: 6px;
  font-size: 13px;
}

.pk-form-msg.is-ok {
  display: block;
  color: var(--c-success);
}

.pk-form-msg.is-err {
  display: block;
  color: var(--c-danger);
}

/* ==========================================================================
   5. 九大区块
   ========================================================================== */

/* --------------------------------------------------------------------------
   区块 1｜固定头部（三层结构：顶部条 / 导航条 / 移动抽屉）
   -------------------------------------------------------------------------- */

.pk-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.pk-header__top {
  background: var(--c-brand);
  color: #fff;
  padding: 0;
  transition: padding var(--t-move);
}

/* 滚动后紧凑：由 JS 给 <header> 加 .is-scrolled */
.pk-header.is-scrolled .pk-header__top {
  padding: 0;
}

/* 顶栏高度对齐原站 #header：57px */
.pk-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0;
  min-height: 57px;
  transition: min-height var(--t-move), padding var(--t-move);
}

.pk-header.is-scrolled .pk-header__inner {
  min-height: 50px;
  padding: 0;
}

/* --- Logo --- */
.pk-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: #fff;
}

.pk-logo__mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  flex: 0 0 auto;
}

.pk-logo__text {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

/* --- 搜索 --- */
.search_form {
  position: relative;
  flex: 0 1 420px;
  margin-left: auto;
  min-width: 0;
}

.search_input {
  width: 100%;
  height: 34px;
  border-radius: 4px;
  border: 0;
  padding: 0 36px 0 12px;
  font-size: 13px;
  color: var(--c-text);
  background: #fff;
}

.search_input::placeholder {
  color: var(--c-text-muted);
}

.search_input:focus {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.search-close {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  color: var(--c-text-muted);
  cursor: pointer;
}

/* --- 搜索结果下拉 --- */
.searchResults {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--c-border-brand);
  box-shadow: var(--sh-pop);
  max-height: 420px;
  overflow: auto;
  z-index: 120;
  display: none;
}

.searchResults.is-open {
  display: block;
}

.searchResults__item {
  display: block;
  padding: 10px 12px;
  border-bottom: 1px solid var(--c-bg-muted);
  color: var(--c-text);
}

.searchResults__item:last-child {
  border-bottom: 0;
}

.searchResults__item.is-active,
.searchResults__item:hover {
  background: var(--c-bg-alt);
}

.searchResults mark {
  background: rgba(80, 52, 53, 0.14);
  color: var(--c-brand);
  font-weight: 700;
}

.searchResults__empty {
  padding: 12px;
  color: var(--c-text-muted);
  font-size: 13px;
}

/* --- 用户区 --- */
.pk-user {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.pk-user__btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--t-color);
}

.pk-user__btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* --- 汉堡按钮（默认隐藏，<768px 显示） --- */
.pk-hamburger {
  display: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-items: center;
  cursor: pointer;
  flex: 0 0 auto;
}

.pk-hamburger span {
  width: 22px;
  height: 2px;
  background: #fff;
  display: block;
}

/* --- 导航条（二级行：米色 #E7DDC4，对齐原站 .topmenu_box）--- */
.pk-navbar {
  background: var(--c-nav);
  border-bottom: 1px solid rgba(80, 52, 53, 0.18);
}

.pk-navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --- 一级菜单：全大写、深棕、粗体（对齐原站实测）--- */
.topmenu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.topmenu > li {
  position: relative;
}

.topmenu > li > a {
  display: block;
  padding: 13px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--c-nav-ink);
  transition: background var(--t-color), box-shadow var(--t-color), color var(--t-color);
}

/* hover：白底 + 下边框（对齐原站） */
.topmenu > li > a:hover {
  background: #fff;
  color: var(--c-brand);
  box-shadow: inset 0 -2px 0 var(--c-brand);
}

/* --- 二级下拉面板（米色 #E7DDC4，对齐原站 .sub_topmenu）--- */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--c-nav);
  box-shadow: var(--sh-pop);
  padding: 16px 24px;
  min-width: 280px;
  max-width: calc(100vw - 32px);
  display: none;
  z-index: 110;
  border: 1px solid rgba(80, 52, 53, 0.18);
  border-top: 0;
}

.topmenu > li.has-sub:hover > .submenu,
.topmenu > li.has-sub:focus-within > .submenu,
.topmenu > li.has-sub.is-open > .submenu {
  display: block;
}

.submenu__title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--c-brand);
  margin: 0 0 6px;
}

.submenu a {
  display: block;
  font-size: 13px;
  line-height: 28px;
  color: var(--c-nav-ink);
}

.submenu a:hover {
  color: var(--c-brand);
  text-decoration: underline;
}

.submenu__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 8px 24px;
}

/* --- 三级整宽面板（mega，米色）--- */
.mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--c-nav);
  border: 1px solid rgba(80, 52, 53, 0.18);
  box-shadow: var(--sh-pop);
  padding: 24px;
  display: none;
  z-index: 110;
}

.topmenu > li.has-mega:hover > .mega {
  display: block;
}

/* --- 导航条右侧「写文章」 --- */
.pk-navbar__write {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-brand);
}

/* --------------------------------------------------------------------------
   移动抽屉
   -------------------------------------------------------------------------- */

.pk-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
}

.pk-drawer[hidden] {
  display: none;
}

.pk-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.pk-drawer__panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 80%;
  max-width: 320px;
  background: #fff;
  transform: translateX(-100%);
  transition: transform var(--t-move);
  overflow: auto;
  padding: 16px;
}

.pk-drawer.is-open .pk-drawer__panel {
  transform: translateX(0);
}

.pk-drawer__write {
  display: block;
  background: var(--c-brand);
  color: #fff;
  text-align: center;
  padding: 12px;
  border-radius: 4px;
  font-weight: 700;
  margin-bottom: 12px;
}

.mobile_menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile_menu a {
  display: block;
  padding: 10px 4px;
  border-bottom: 1px solid var(--c-bg-muted);
  font-size: 15px;
}

.pk-drawer__close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   区块 2｜全站顶部促销横幅（.pk-promo）
   取代此前的灰色虚线广告空占位。深色渐变底 + 紫色 CTA + 纯 CSS 几何装饰，
   全站渲染于页头之后、<main> 之前（对齐原站首屏 hero 区）。
   -------------------------------------------------------------------------- */

.pk-promo {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, var(--c-promo-1) 0%, var(--c-promo-2) 100%);
  color: #fff;
}

/* 斜线网格纹理（纯 CSS，无外链图片，叠在渐变之上、内容之下） */
.pk-promo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.05) 0,
    rgba(255, 255, 255, 0.05) 1px,
    transparent 1px,
    transparent 16px
  );
  opacity: 0.7;
}

.pk-promo__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px var(--gutter);
  min-height: 148px;
}

.pk-promo__body {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.pk-promo__eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.pk-promo__title {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff;
}

.pk-promo__text {
  margin: 0;
  max-width: 620px;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
}

.pk-promo__cta {
  position: relative;
  z-index: 2;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 172px;
  height: 58px;
  padding: 0 40px;
  border-radius: 999px;
  background: var(--c-accent);
  color: #fff;
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.5);
  transition: background var(--t-color), transform var(--t-color), box-shadow var(--t-color);
}

.pk-promo__cta:hover {
  background: var(--c-accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(124, 92, 255, 0.55);
}

/* 纯 CSS 几何/霓虹装饰（无外链图片） */
.pk-promo__decor {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.pk-promo__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.pk-promo__orb--1 {
  width: 220px;
  height: 220px;
  right: 140px;
  top: -90px;
  background: radial-gradient(circle at 30% 30%, rgba(124, 92, 255, 0.75), rgba(124, 92, 255, 0) 68%);
}

.pk-promo__orb--2 {
  width: 160px;
  height: 160px;
  right: 40px;
  bottom: -70px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 120, 190, 0.55), rgba(255, 120, 190, 0) 70%);
}

.pk-promo__ring {
  position: absolute;
  width: 150px;
  height: 150px;
  right: 210px;
  top: 50%;
  transform: translateY(-50%);
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  box-shadow: inset 0 0 24px rgba(124, 92, 255, 0.4);
}

/* 左侧上升折线（内联 SVG，随容器拉伸；纯装饰，不参与布局） */
.pk-promo__chart {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 66%;
  opacity: 0.55;
}
.pk-promo__chart-line {
  fill: none;
  stroke: rgba(124, 92, 255, 0.9);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.pk-promo__chart-area {
  fill: rgba(124, 92, 255, 0.16);
}

@media (max-width: 767px) {
  .pk-promo__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 22px var(--gutter);
    min-height: 0;
  }

  .pk-promo__title {
    font-size: 20px;
  }

  .pk-promo__ring {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   区块 3｜分类标签栏
   -------------------------------------------------------------------------- */

.sub_cat_box {
  background: #fff;
  border-top: 1px solid var(--c-border-brand);
  border-bottom: 1px solid var(--c-border-brand);
  padding: 12px 0;
}

.cat-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}

.cat-tab {
  white-space: nowrap;
  font-size: 15px;
  color: #333;
  padding: 6px 12px;
  border-bottom: 3px solid transparent;
}

.cat-tab.is-active {
  color: var(--c-brand);
  font-weight: 700;
  border-bottom-color: var(--c-brand);
}

.cat-tab:hover {
  color: var(--c-brand);
}

.period-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.period-tabs__label {
  font-size: 13px;
  color: var(--c-text-muted);
  margin-right: 4px;
}

/* --------------------------------------------------------------------------
   区块 4｜订阅表单
   -------------------------------------------------------------------------- */

.subscriber_form {
  background: var(--c-bg-alt);
  border-top: 1px solid var(--c-border-brand);
  border-bottom: 1px solid var(--c-border-brand);
  padding: 32px 0;
}

.subscriber_form h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-brand);
  margin: 0 0 8px;
}

.subscriber_form__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

.subscriber_form__note {
  font-size: 12px;
  color: var(--c-text-muted);
  line-height: 1.4;
}

.pk-subscribe {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   区块 5｜文章列表
   -------------------------------------------------------------------------- */

/* 内容卡：白底 + 4px 圆角 + 内边距 + 上外边距（对齐原站 .content_box 实测
   background:#fff; border-radius:4px; padding:18px; margin-top:20px） */
.content_box {
  background: var(--c-surface);
  border-radius: var(--r-card);
  padding: 18px;
  margin-top: 20px;
}

.list_box {
  padding: 24px 0;
}

.home_news_row {
  border-bottom: 1px solid var(--c-border-brand);
  padding: 20px 0;
}

.home_news_row__inner {
  display: flex;
  flex-wrap: wrap;
}

.home_news_row__body {
  min-width: 0;
}

.home_news_row__cover {
  display: block;
  overflow: hidden;
  background: var(--c-bg-alt);
}

.home_news_row__cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform var(--t-move), filter var(--t-move);
}

.home_news_row__cover:hover img {
  transform: scale(1.03);
}

.home_news_row__meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 6px;
}

.home_news_cat {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-brand);
  text-transform: uppercase;
}

.home_news_cat:hover {
  text-decoration: underline;
}

.home_news_date {
  font-size: 13px;
  color: #6b6b6b;
}

.home_news_title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home_news_title a:hover {
  color: var(--c-brand);
}

.home_news_text {
  font-size: 14px;
  line-height: 1.4;
  color: #333;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.last_news_info {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: #6b6b6b;
  flex-wrap: wrap;
}

/* --- 首页资讯流：多列卡片网格（≥992 三列 / 768–991 两列 / <768 单列） ---
   断点由 CSS 控制；卡片沿用 home_news_row* 命名前缀。日期取 published_at 真实值。 */
.home_news_list--grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.home_news_row--grid {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-border-brand);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.home_news_row--grid .home_news_row__cover {
  border-radius: 0;
  flex: none;
}

.home_news_row--grid .home_news_row__cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.home_news_row--grid .home_news_row__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 16px;
  flex: 1 1 auto;
}

.home_news_row--grid .home_news_cat {
  align-self: flex-start;
  display: inline-block;
  padding: 2px 9px;
  background: var(--c-bg-alt);
  border-radius: var(--r-sm);
  font-size: 12px;
}

.home_news_row--grid .home_news_title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  -webkit-line-clamp: 3;
}

.home_news_row--grid .home_news_text {
  font-size: 13px;
  color: #444;
  margin: 0;
  flex: 1 1 auto;
  -webkit-line-clamp: 3;
}

.home_news_row__foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--c-border-brand);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #444;
}

@media (max-width: 991px) {
  .home_news_list--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .home_news_list--grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- 点赞 / 点踩 --- */
.objvotes_wrap {
  display: inline-flex;
  gap: 8px;
}

.pk-vote {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--c-border-brand);
  background: #fff;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 13px;
  color: #333;
  transition: transform 150ms ease;
}

.pk-vote__icon {
  font-size: 13px;
}

.pk-vote--up.is-active {
  color: var(--c-success);
  border-color: var(--c-success);
}

.pk-vote--down.is-active {
  color: var(--c-danger);
  border-color: var(--c-danger);
}

.pk-vote.is-bump {
  transform: scale(1.12);
}

/* --- 图片懒加载 --- */
.pk-lazy {
  filter: blur(8px);
  transition: filter var(--t-move);
}

.pk-lazy.is-loaded {
  filter: blur(0);
}

/* --------------------------------------------------------------------------
   区块 6｜分页
   -------------------------------------------------------------------------- */

.pager_wrap {
  padding: 24px 0;
  display: flex;
  justify-content: center;
}

.pager {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.pager__item a,
.pager__item span,
.pager__prev a,
.pager__next a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--c-border-brand);
  border-radius: 2px;
  background: #fff;
  font-size: 13px;
  color: #333;
  box-shadow: var(--sh-pager);
}

.pager__item.is-active span {
  background: var(--c-brand);
  color: #fff;
  border-color: var(--c-brand);
}

.pager__item a:hover,
.pager__prev a:hover,
.pager__next a:hover {
  color: var(--c-brand);
  border-color: var(--c-brand);
  background: var(--c-bg-alt);
}

.pager__dots span {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--c-text-muted);
}

.pager__prev.is-disabled a,
.pager__next.is-disabled a {
  opacity: 0.4;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   区块 7｜推荐轮播
   -------------------------------------------------------------------------- */

.default_likes {
  padding: 24px 0;
  border-top: 1px solid var(--c-border-brand);
}

.default_likes__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}

.default_likes__head h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.default_likes__head a {
  font-size: 14px;
  color: var(--c-brand);
}

.pk-carousel {
  position: relative;
}

.pk-carousel__track {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.pk-carousel__track::-webkit-scrollbar {
  display: none;
}

.pk-carousel__item {
  flex: 0 0 calc((100% - 48px) / 4);
  scroll-snap-align: start;
  min-width: 0;
}

.pk-carousel__card {
  position: relative;
  display: block;
  overflow: hidden;
}

.pk-carousel__card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.preview_imgoverlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  transition: background var(--t-color);
}

.pk-carousel__card:hover .preview_imgoverlay {
  background: rgba(0, 0, 0, 0.3);
}

.pk-carousel__title {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pk-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  z-index: 5;
  cursor: pointer;
  transition: background var(--t-color);
}

.pk-carousel__arrow:hover {
  background: rgba(0, 0, 0, 0.55);
}

.pk-carousel__arrow--prev {
  left: -8px;
}

.pk-carousel__arrow--next {
  right: -8px;
}

.pk-carousel__arrow[disabled] {
  opacity: 0.35;
  cursor: default;
}

/* --------------------------------------------------------------------------
   区块 8｜沉底长文
   -------------------------------------------------------------------------- */

.content_text {
  padding: 24px 0 40px;
}

.bottom_text__inner {
  max-width: 860px;
  margin: 0 auto;
}

.bottom_text h1 {
  font-size: 30px;
  font-weight: 700;
  color: var(--c-brand);
  margin: 0 0 24px;
}

.bottom_text h2 {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin: 28px 0 12px;
}

.bottom_text ul {
  padding-left: 20px;
}

.bottom_text li {
  margin-bottom: 24px;
}

.bottom_text img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--c-border-brand);
  cursor: zoom-in;
}

.bottom_text strong {
  color: var(--c-brand);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   区块 9｜页脚
   -------------------------------------------------------------------------- */

.prefooter_box {
  background: var(--c-brand);
  color: #fff;
  padding: 40px 0;
  font-size: 14px;
}

.prefooter_box a {
  color: #fff;
}

/* 页脚（对齐原站 .footer_box：background:#503435; padding:40px 0 10px） */
.footer_box {
  background: var(--c-brand);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0 10px;
  font-size: 12px;
}

.footer_box a {
  color: rgba(255, 255, 255, 0.8);
}

.footer_soc {
  display: flex;
  gap: 10px;
}

.footer_soc a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  transition: background var(--t-color);
}

.footer_soc a:hover {
  background: rgba(255, 255, 255, 0.25);
}

.apps_icons {
  display: flex;
  gap: 10px;
}

.apps_icons a {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  text-align: center;
}

.footer_favarticles {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.desktop_menu {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   6. 模态 / 全屏 / 面包屑 / 案例字段 / 文章内页 / 搜索页
   ========================================================================== */

/* --- 模态 --- */
.pk-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pk-modal[hidden] {
  display: none;
}

.pk-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.pk-modal__dialog {
  position: relative;
  background: #fff;
  max-width: 420px;
  width: calc(100% - 32px);
  border-radius: 4px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.pk-modal__title {
  font-size: 20px;
  margin: 0 0 16px;
}

.pk-modal__close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.pk-modal__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* --- 全屏灯箱 --- */
.pk-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pk-lightbox[hidden] {
  display: none;
}

.pk-lightbox__img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.pk-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

/* --- 面包屑 --- */
.breadcrumb {
  list-style: none;
  display: flex;
  gap: 6px;
  font-size: 13px;
  color: #6b6b6b;
  padding: 12px 0;
  margin: 0;
  flex-wrap: wrap;
}

.breadcrumb a:hover {
  color: var(--c-brand);
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: 6px;
  color: var(--c-text-muted);
}

/* --- 案例字段表 --- */
.case-fields {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  border: 1px solid var(--c-border-brand);
  margin: 20px 0;
}

.case-fields dt {
  background: var(--c-bg-alt);
  padding: 10px 14px;
  font-weight: 700;
  font-size: 14px;
  border-bottom: 1px solid var(--c-border-brand);
}

.case-fields dd {
  margin: 0;
  padding: 10px 14px;
  font-size: 14px;
  border-bottom: 1px solid var(--c-border-brand);
}

.case-verdict {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.case-verdict--success {
  background: var(--c-success);
}

.case-verdict--scam {
  background: var(--c-danger);
}

.case-verdict--dispute {
  background: var(--c-warning);
}

/* --- 文章内页 --- */
.article-view {
  padding: 24px 0 40px;
}

.article-view__cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--c-border-brand);
}

.article-view__title {
  font-size: 30px;
  font-weight: 700;
  margin: 16px 0 8px;
}

.article-view__meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #6b6b6b;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.article-view__body {
  font-size: 16px;
  line-height: 1.6;
  max-width: 860px;
}

.article-view__body h2 {
  font-size: 22px;
  margin: 28px 0 12px;
}

.article-view__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.article-view__body th,
.article-view__body td {
  border: 1px solid var(--c-border-brand);
  padding: 8px 10px;
  font-size: 14px;
  text-align: left;
}

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--c-border-brand);
  padding-top: 16px;
  margin-top: 24px;
  font-size: 14px;
}

.comments-box {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border-brand);
  padding: 16px;
  margin-top: 24px;
}

/* --- 空状态 / 搜索页 --- */
.pk-empty {
  padding: 40px 0;
  text-align: center;
  color: var(--c-text-muted);
}

.search-page {
  display: flex;
  flex-direction: column;
  gap: 0;
}
