/* ── HK CC All Cards — Full-width functional page ─────────── */

.hk-cc-page {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: clamp(84px, 8vw, 112px) clamp(16px, 4vw, 48px) 3.5rem;
  box-sizing: border-box;
}

/* ── Header（硬编码标题）
   注意：勿用 <header> 标签承载本块——主题全局 header:hover 会加阴影白块。
   悬停时必须保持透明、无阴影。 */
.hk-cc-header,
.hk-cc-header:hover,
.hk-cc-header:focus,
.hk-cc-header:focus-within,
header.hk-cc-header,
header.hk-cc-header:hover {
  max-width: 1200px;
  margin: 0 auto 2rem;
  text-align: left;
  cursor: default !important;
  pointer-events: none;
  user-select: text;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
  filter: none !important;
}

.hk-cc-header__title,
.hk-cc-header__subtitle,
.hk-cc-header__brand {
  cursor: default !important;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
  filter: none !important;
  opacity: 1 !important;
  text-decoration: none !important;
}

.hk-cc-header__title {
  margin: 0 0 0.5rem;
  /* 相对原 clamp(1.75rem, 3vw, 2.25rem) 缩小约 30% */
  font-size: clamp(1.225rem, 2.1vw, 1.575rem);
  font-weight: 800;
  line-height: 1.2;
  color: #111827;
  letter-spacing: -0.02em;
}

.hk-cc-header__subtitle {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #6b7280;
  /* 与面包屑文字左缘对齐（抵消 .site-crumb__item 的左右 padding） */
  padding-left: 0.5rem;
}

.hk-cc-header__brand,
.hk-cc-header a.hk-cc-header__brand {
  pointer-events: auto;
  color: #111827 !important;
  font-weight: inherit;
  text-decoration: none !important;
  cursor: default !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  text-shadow: none !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
}

.hk-cc-header__brand:hover,
.hk-cc-header__brand:focus,
.hk-cc-header__brand:focus-visible,
.hk-cc-header__brand:visited,
.hk-cc-header__brand:active,
.hk-cc-header a.hk-cc-header__brand:hover,
.hk-cc-header a.hk-cc-header__brand:focus,
.hk-cc-header a.hk-cc-header__brand:focus-visible,
.hk-cc-header a.hk-cc-header__brand:visited,
.hk-cc-header a.hk-cc-header__brand:active,
.hk-cc-header a:hover,
.hk-cc-header a:active,
.hk-cc-header a:focus,
body[theme=dark] .hk-cc-header__brand:hover,
body[theme=dark] .hk-cc-header a.hk-cc-header__brand:hover {
  color: #111827 !important;
  text-decoration: none !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transform: none !important;
  opacity: 1 !important;
  cursor: default !important;
}

html.dark .hk-cc-header__brand,
html.dark .hk-cc-header__brand:hover,
html[data-theme='dark'] .hk-cc-header__brand,
html[data-theme='dark'] .hk-cc-header__brand:hover,
body[theme=dark] .hk-cc-header__brand,
body[theme=dark] .hk-cc-header__brand:hover {
  color: #f3f4f6 !important;
  background: transparent !important;
  background-color: transparent !important;
}

/* ── 面包屑（默认 + Hub；卡库页只加载 cards.css） ─ */

.site-crumb {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.2rem;
  max-width: 100%;
  margin: 0 0 0.5rem;
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  pointer-events: auto;
  cursor: default;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.site-crumb::-webkit-scrollbar {
  display: none;
}

.hk-cc-header .site-crumb {
  margin-bottom: 0.5rem;
}

.site-crumb__sep {
  flex: none;
  color: #747775;
  font-weight: 400;
  padding: 0 0.15rem;
  user-select: none;
}

.site-crumb__item {
  flex: none;
  max-width: 100%;
  padding: 0.22rem 0.5rem;
  border-radius: 6px;
  color: #444746 !important;
  background: transparent;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: auto !important;
  cursor: pointer !important;
  box-shadow: none;
  transition: none;
}

/* 面包屑主标题：取消一切 hover / focus 背景与阴影 */
a.site-crumb__item:hover,
a.site-crumb__item:focus,
a.site-crumb__item:focus-visible,
a.site-crumb__item:active,
.hk-cc-header a.site-crumb__item:hover,
.hk-cc-header a.site-crumb__item:focus,
.hk-cc-header a.site-crumb__item:focus-visible,
.hk-cc-header a.site-crumb__item:active {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  text-decoration: none !important;
  transform: none !important;
  opacity: 1 !important;
}

.site-crumb__item.is-current,
.site-crumb__item[aria-current="page"] {
  color: #1f1f1f !important;
  font-weight: 600;
}

/* 卡库：仅调主标题字号、> 间距、与副标题行距；左右对齐保持不动 */
.site-crumb--hub {
  font-size: 1.5rem;
  margin-bottom: 0.175rem; /* 0.25 × 0.7 */
}

.hk-cc-header .site-crumb--hub {
  margin-bottom: 0.175rem;
}

.site-crumb--hub .site-crumb__sep {
  font-weight: 300;
  padding: 0 0.2rem;
}

.site-crumb--hub.site-crumb--deep {
  font-size: 1.25rem;
}

.hk-cc-header:has(.site-crumb--hub) .hk-cc-header__subtitle {
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .site-crumb:not(.site-crumb--hub) {
    font-size: 0.95rem;
    gap: 0.1rem;
  }

  .site-crumb:not(.site-crumb--hub) .site-crumb__item {
    padding: 0.18rem 0.4rem;
  }

  .hk-cc-header:not(:has(.site-crumb--hub)) .hk-cc-header__subtitle {
    padding-left: 0.4rem;
  }
}

/* 主标题始终大于副标题：窄屏 1.35 / 详情 1.15 > 副标题 0.85 */
@media (max-width: 720px) {
  .site-crumb--hub {
    font-size: 1.35rem;
  }

  .site-crumb--hub.site-crumb--deep {
    font-size: 1.15rem;
  }

  .hk-cc-header:has(.site-crumb--hub) .hk-cc-header__subtitle {
    font-size: 0.85rem;
  }
}

.hk-showcase {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* ── Toolbar：宽度与下方筛选行右对齐（4×120 + 3×12）─────── */

.hk-toolbar-wrap {
  align-self: flex-start;
  width: 100%;
  max-width: calc(4 * 120px + 3 * 12px);
  margin-bottom: 1rem;
}

.hk-toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

.hk-search-input {
  flex: 1;
  min-width: 0;
  height: 45px;
  padding: 0 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #1f2937;
  background: #ffffff;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hk-search-input::placeholder {
  color: #9ca3af;
}

.hk-search-input:hover {
  border-color: #d1d5db;
}

.hk-search-input:focus {
  outline: none;
  border-color: #6b7280;
  box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1);
}

.hk-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  height: 45px;
  padding: 0 20px;
  border: 1px solid #325d52;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffffff;
  background: #325d52;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hk-search-btn:hover {
  background: #3d6f62;
  border-color: #3d6f62;
  box-shadow: 0 2px 6px rgba(50, 93, 82, 0.22);
}

.hk-search-btn:active {
  background: #294a42;
}

/* ── 筛选两行：同一套 4 列网格 ─────────────────────────────── */

.hk-filter-stack {
  --hk-col: 120px;
  --hk-gap: 12px;
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  width: max-content;
  max-width: 100%;
  box-sizing: border-box;
}

.hk-filter-summary,
.hk-dropdown-filters {
  display: grid;
  grid-template-columns: repeat(4, var(--hk-col));
  gap: var(--hk-gap);
  width: 100%;
  box-sizing: border-box;
}

.hk-filter-summary {
  align-items: stretch;
  margin-bottom: 12px;
}

.hk-dropdown-filters {
  margin-bottom: 1.5rem;
}

.hk-filter-summary .hk-reset-btn {
  grid-column: 1;
  width: 100%;
  box-sizing: border-box;
}

/* 后三列：subgrid 继承父级列轨，与下方 卡片/卡组织/回赠 像素对齐 */
.hk-view-nav {
  position: relative;
  display: grid;
  grid-column: 2 / span 3;
  grid-template-columns: subgrid;
  align-items: stretch;
  min-width: 0;
  height: 44px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #e5e7eb;
  box-sizing: border-box;
  overflow: hidden;
}

.hk-view-nav__indicator {
  position: absolute;
  top: 0;
  left: 0;
  grid-column: 1 / -1;
  grid-row: 1;
  z-index: 0;
  width: var(--hk-col);
  height: 100%;
  border-radius: 10px;
  background: #325d52;
  pointer-events: none;
  transition: left 0.32s cubic-bezier(0.4, 0, 0.2, 1), width 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.hk-view-nav__btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #374151;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  box-sizing: border-box;
  transition: color 0.2s ease;
}

.hk-view-nav__btn[data-view="expanded"] { grid-column: 1; grid-row: 1; }
.hk-view-nav__btn[data-view="collapsed"] { grid-column: 2; grid-row: 1; }
.hk-view-nav__btn[data-view="compact"] { grid-column: 3; grid-row: 1; }

.hk-view-nav__btn:hover {
  color: #325d52;
}

.hk-view-nav__btn.is-active {
  color: #ffffff;
}

/* 不支持 subgrid 时退化为同宽三列 */
@supports not (grid-template-columns: subgrid) {
  .hk-view-nav {
    grid-template-columns: repeat(3, var(--hk-col));
    gap: var(--hk-gap);
  }
}

.hk-reset-btn,
.hk-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  background: #ffffff;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.hk-reset-btn:hover {
  border-color: #d1d5db;
  background: #f9fafb;
}

.hk-reset-btn.is-active {
  border-color: #325d52;
  background: #325d52;
  color: #ffffff;
}

.hk-dropdown {
  position: relative;
  width: 100%;
}

.hk-dropdown__trigger {
  gap: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hk-dropdown__trigger:hover {
  border-color: #d1d5db;
  background: #f9fafb;
}

.hk-dropdown.is-open .hk-dropdown__trigger,
.hk-dropdown.has-filter .hk-dropdown__trigger {
  border-color: #325d52;
  background: #325d52;
  color: #ffffff;
}

.hk-dropdown__chevron {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.hk-dropdown.is-open .hk-dropdown__chevron {
  transform: rotate(180deg);
}

.hk-dropdown__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 100;
  min-width: 220px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.hk-dropdown__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 8px 16px;
}

.hk-dropdown__title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  color: #111827;
}

.hk-dropdown__close {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: -4px -4px -4px 0;
  padding: 0;
  border: none;
  border-radius: 8px;
  color: #9ca3af;
  background: transparent;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.hk-dropdown__close:hover {
  color: #374151;
  background: #f3f4f6;
}

.hk-dropdown__options {
  max-height: 240px;
  overflow-y: auto;
  padding: 4px 0 8px;
}

.hk-dropdown__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #374151;
  cursor: pointer;
  transition: background 0.15s ease;
}

.hk-dropdown__option:hover {
  background: #f9fafb;
}

.hk-dropdown__checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.hk-dropdown__checkmark {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 1.5px solid #d1d5db;
  border-radius: 4px;
  background: #ffffff;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.hk-dropdown__checkbox:checked + .hk-dropdown__checkmark {
  border-color: #325d52;
  background: #325d52;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M12.2 4.2 6.5 9.9 3.8 7.2l-1.1 1.1 3.8 3.8 6.8-6.8z'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

.hk-dropdown__label {
  flex: 1;
  word-break: break-word;
}

.hk-dropdown__footer {
  display: flex;
  justify-content: flex-end;
  padding: 8px 12px;
  border-top: 1px solid #f3f4f6;
  background: #fafafa;
}

.hk-dropdown__clear {
  padding: 4px 8px;
  border: none;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #6b7280;
  background: transparent;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.hk-dropdown__clear:hover {
  color: #325d52;
  background: #f3f4f6;
}

/* ── 卡片网格 ─────────────────────────────────────────────── */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  align-self: stretch;
  width: 100%;
}

@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 599px) {
  .cards-grid { grid-template-columns: 1fr; }

  .hk-toolbar-wrap {
    width: 100%;
    max-width: 100%;
  }

  /* 窄屏：整栈一个 4 列网格，两行共用同一列轨，字号与宽屏一致 */
  .hk-filter-stack {
    --hk-gap: 8px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px var(--hk-gap);
    width: 100%;
    max-width: 100%;
    margin-bottom: 1.5rem;
  }

  .hk-filter-summary,
  .hk-dropdown-filters {
    display: contents;
  }

  .hk-filter-summary .hk-reset-btn {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    padding: 0 8px;
    font-size: 0.875rem;
  }

  .hk-view-nav {
    grid-column: 2 / span 3;
    grid-row: 1;
    grid-template-columns: subgrid;
    gap: 0;
    width: auto;
    min-width: 0;
    max-width: none;
  }

  .hk-view-nav__indicator {
    width: 33.333%; /* 首屏占位，随后由 JS 按选中按钮实测覆盖 */
  }

  .hk-view-nav__btn {
    padding: 0 6px;
    font-size: 0.875rem;
  }

  .hk-view-nav__btn[data-view="expanded"] { grid-column: 1; }
  .hk-view-nav__btn[data-view="collapsed"] { grid-column: 2; }
  .hk-view-nav__btn[data-view="compact"] { grid-column: 3; }

  .hk-dropdown-filters .hk-dropdown {
    width: 100%;
    min-width: 0;
    grid-row: 2;
  }

  .hk-dropdown-filters .hk-dropdown[data-filter="bank"] { grid-column: 1; }
  .hk-dropdown-filters .hk-dropdown[data-filter="name"] { grid-column: 2; }
  .hk-dropdown-filters .hk-dropdown[data-filter="network"] { grid-column: 3; }
  .hk-dropdown-filters .hk-dropdown[data-filter="category"] { grid-column: 4; }

  .hk-dropdown-filters .hk-dropdown__trigger {
    width: 100%;
    min-width: 0;
    padding: 0 8px;
    font-size: 0.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* 无 subgrid 时：后三列均分 + 与父级相同 gap */
  @supports not (grid-template-columns: subgrid) {
    .hk-view-nav {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: var(--hk-gap);
    }
  }

  /* 窄屏仍挂在按钮下方，不要钉在视口底部 */
  .hk-dropdown__panel {
    position: absolute;
    top: calc(100% + 8px);
    right: auto;
    bottom: auto;
    left: 0;
    width: max(100%, 220px);
    min-width: 220px;
    max-width: min(320px, calc(100vw - 24px));
    z-index: 200;
  }
  .hk-dropdown-filters .hk-dropdown:nth-child(n + 3) .hk-dropdown__panel {
    left: auto;
    right: 0;
  }
}

/* ── 卡片容器（信息卡）────────────────────────────────────── */

.card-container {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  max-height: none;
  min-height: 0;
  box-sizing: border-box;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

/* ── 紧凑视图行 ───────────────────────────────────────────── */

.card-compact-row {
  display: none;
}

.cards-grid.is-compact-view {
  gap: 16px;
}

.card-container.is-compact-view {
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-container.is-compact-view:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  z-index: 3;
}

.card-container.is-compact-view .card-full {
  display: none;
}

.card-container.is-compact-view .card-compact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 104px;
  padding: 16px 16px;
  box-sizing: border-box;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.card-compact-media {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 56px;
}

.card-compact-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0;
}

.card-compact-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.card-compact-bank {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #6b7280;
  line-height: 1.2;
}

.card-compact-title {
  overflow: hidden;
  color: #111827;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.card-compact-tags {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

.card-compact-tag {
  display: inline-flex;
  flex: none;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #d8dedc;
  color: #325d52;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
}

.card-compact-ellipsis {
  flex: none;
  color: #6b7280;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
}

.card-compact-chevron {
  flex: none;
  align-self: flex-start;
  margin-top: 0;
  color: #c0c4cc;
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1;
}

/* ── 四段式：1. Header ───────────────────────────────────── */

.card-header {
  padding: 16px 18px 0;
}

.card-image-wrap {
  container-type: inline-size;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
  aspect-ratio: 1.586 / 1;
  margin-bottom: 12px;
  overflow: visible;
  background: transparent;
}

.card-image-link {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  max-height: 100%;
  text-decoration: none;
  cursor: pointer;
}

.card-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100cqw / 1.586);
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.card-image-link:hover .card-image {
  transform: translateY(-5px);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18));
  background: transparent;
}

.card-identity {
  min-width: 0;
  min-height: 0;
}

.bank-label {
  margin: 0 0 4px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  line-height: 1.6;
}

.title-text {
  min-height: 1.76rem;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.6;
  color: #111827;
  min-width: 0;
}

.card-title-link {
  display: flex;
  align-items: baseline;
  gap: 0.45em;
  min-width: 0;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.card-title-label {
  min-width: 0;
  overflow: hidden;
  color: #111827;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color 0.15s ease;
}

.card-title-arrow {
  flex: none;
  font-size: 0.72em;
  font-weight: 400;
  line-height: 1;
  color: #9ca3af;
  transition: color 0.15s ease;
}

.card-title-link:hover .card-title-label,
.card-title-link:hover .card-title-arrow,
.card-title-link:focus-visible .card-title-label,
.card-title-link:focus-visible .card-title-arrow {
  color: #185ef6;
}

.card-level {
  margin: 0px 0 0;
  color: #000000;
  font-size: 13px;
  line-height: 1.6;
}

/* ── 内缩实线分隔 ─────────────────────────────────────────── */

.card-divider {
  position: relative;
  border: none;
  border-top: 1px solid #E5E7EB;
  width: 90%;
  height: 0;
  margin: 10px auto;
}

.card-divider-note {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1;
  transform: translateY(-50%);
  padding-left: 8px;
  background: #ffffff;
  color: #9ca3af;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
  text-decoration: none;
}

a.card-divider-note--link {
  pointer-events: auto;
  cursor: pointer;
}

a.card-divider-note--link:hover,
a.card-divider-note--link:focus-visible {
  color: #6b7280;
  outline: none;
}

/* 灰线脚注：默认收起，圆钮展开 */
.card-divider-note--footnote {
  display: none;
  right: 22px;
  font-size: 0.72rem;
  max-width: calc(100% - 28px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-container:not(.is-benefits-collapsed) .card-divider.is-rates-note-open .card-divider-note--full,
.card-container.is-benefits-collapsed .card-divider.is-rates-note-open .card-divider-note--brief {
  display: inline;
}

.rates-note-toggle {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 1px solid #9ca3af;
  border-radius: 50%;
  background: #ffffff;
  color: #9ca3af;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 0.15s ease, border-color 0.15s ease;
  /* 扩大可点范围（视觉仍为 16px 圆） */
  touch-action: manipulation;
}

.rates-note-toggle::before {
  content: "";
  position: absolute;
  inset: -10px;
}

.card-divider--footer {
  z-index: 3; /* 高于 .card-footer(z-index:2)，避免圆钮被迎新区挡住 */
}

.rates-note-toggle:hover,
.rates-note-toggle:focus-visible {
  color: #6b7280;
  border-color: #6b7280;
  outline: none;
}

.rates-note-toggle__icon {
  display: block;
  font-family: "Times New Roman", Times, serif;
  font-weight: 700;
  font-style: normal;
}

.card-container.is-benefits-collapsed .rates-note-toggle[data-has-brief="0"] {
  display: none;
}

.card-container:not(.is-benefits-collapsed) .rates-note-toggle[data-has-full="0"] {
  display: none;
}

/* 翻到「优惠与权益」时隐藏横线上的回赠形式 / 基本回赠脚注 */
.card-container:has(.card-flip.is-flipped) .card-divider-note {
  display: none;
}

.card-container:has(.card-flip.is-flipped) .rates-note-toggle {
  display: none;
}

.card-header + .card-divider {
  margin-top: 8px;
}

/* ── 回赠 ↔ 权益：左右翻牌（固定高度）───────────────────────── */

.card-scroll-viewport {
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  overflow: visible;
}

.card-flip {
  --card-flip-height: 270px;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: var(--card-flip-height);
  padding: 14px 18px;
  box-sizing: border-box;
}

.card-face-head {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  min-width: 0;
  overflow: visible;
}

.card-flip__stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  perspective: 1400px;
}

.card-flip__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.card-flip.is-flipped .card-flip__inner {
  transform: rotateY(180deg);
}

.card-flip__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: #ffffff;
}

.card-flip__face--front {
  transform: rotateY(0deg);
}

.card-flip__face--back {
  transform: rotateY(180deg);
}

.card-container.is-benefits-collapsed .card-flip {
  --card-flip-height: 180px; /* up to 4 brief_rates rows */
  height: var(--card-flip-height);
  min-height: var(--card-flip-height);
}

.card-container.is-benefits-collapsed .card-flip-btn-wrap {
  display: none;
}

.card-container.is-benefits-collapsed .card-flip-title {
  pointer-events: none;
  cursor: default;
}

.card-container.is-benefits-collapsed .card-flip__stage {
  display: none;
}

.card-container.is-benefits-collapsed .card-flip.is-flipped .card-flip__inner {
  transform: none;
}

.card-rate-summary {
  display: none;
}

.card-container.is-benefits-collapsed .card-rate-summary {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
}

.card-container.is-benefits-collapsed .card-rate-summary .rate-list {
  overflow: visible;
}

.card-container.is-benefits-collapsed .card-rate-summary .rate-label {
  white-space: normal;
}

.card-flip-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0;
  padding: 3px 10px;
  border: 0;
  border-radius: 999px;
  color: #325d52;
  background: #d8dedc;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
  cursor: pointer;
}

.card-flip-btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 22.5px;
  height: 22.5px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(50, 93, 82, 0.35);
  border-radius: 999px;
  color: #325d52;
  background: transparent;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.card-flip-btn-wrap {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  z-index: 6;
}

.card-flip-btn:hover,
.card-flip-btn:focus-visible {
  background: rgba(50, 93, 82, 0.08);
  border-color: #325d52;
  outline: none;
}

.card-flip-btn__icon {
  font-size: 0.77rem;
  line-height: 1;
}

/* ── 四段式：2. 回赠数据区 ─────────────────────────────────── */

.card-rewards {
  min-height: 0;
}

.rate-list {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: 1fr;
  align-content: start;
  min-height: 0;
  gap: 0;
  overflow: hidden;
}

.rate-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  column-gap: 6px;
  align-items: baseline;
  margin-bottom: 8px;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.35;
}

.rate-row:last-child {
  margin-bottom: 0;
}

.rate-row::before {
  content: "·";
  color: #666;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

/* 回赠列表备注行：无分点、灰色 */
.rate-row--note {
  grid-template-columns: minmax(0, 1fr);
}

.rate-row--note::before {
  content: none;
}

.rate-row--note .rate-label {
  color: #9ca3af;
  white-space: normal;
  text-overflow: unset;
  overflow: visible;
}

.rate-label {
  min-width: 0;
  overflow: hidden;
  color: #374151;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rate-value {
  flex: none;
  min-width: max-content;
  font-size: 0.875rem;
  font-weight: 700;
  color: #1f2937;
  white-space: nowrap;
  text-align: right;
}

/* ── 四段式：3. 权益列表区 ─────────────────────────────────── */

.card-benefits {
  min-height: 0;
}

.highlight-list {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: 1fr;
  align-content: start;
  min-height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 0;
  overflow: hidden;
}

.card-rewards.is-scroll-expanded .rate-list,
.card-benefits.is-scroll-expanded .highlight-list,
.card-benefits.is-scroll-expanded .highlight-groups,
.card-flip__face .rate-list.is-list-scrollable,
.card-flip__face .highlight-groups.is-list-scrollable {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
  padding-right: 2px;
}

.highlight-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 6px;
  align-items: baseline;
  margin-bottom: 8px;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.35;
  color: #555;
}

.highlight-item:last-child {
  margin-bottom: 0;
}

.highlight-item::before {
  content: "·";
  color: #666;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.highlight-text {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 权益分组：纯文字组标题 + 下方条目 */
.highlight-groups {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  overflow: hidden;
  padding-top: 4px;
}

.highlight-group {
  min-width: 0;
}

.highlight-group__title {
  margin: 0 0 6px;
  color: #325D52;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25;
}

.highlight-group .highlight-list {
  overflow: hidden;
}

.content-item--extra {
  display: none;
}

.is-expanded .content-item--extra {
  display: grid;
}

.highlight-list .content-item--extra {
  display: none;
}

.highlight-list.is-expanded .content-item--extra,
.card-benefits.is-expanded .content-item--extra {
  display: grid;
}

.content-more-btn,
.card-compact-toggle {
  padding: 0;
  border: 0;
  color: #2563eb;
  background: transparent;
  font: inherit;
  font-size: 0.8125rem;
  line-height: 1.6;
  cursor: pointer;
}

.content-more-btn {
  flex-shrink: 0;
  align-self: flex-end;
  margin: auto 0 0;
  padding: 4px 0 0 8px;
  background: #ffffff;
  text-align: right;
}

.card-compact-toggle {
  display: none;
  margin-top: 6px;
}

/* ── 四段式：4. 底部迎新 + 年费区 ─────────────────────────── */

.card-footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 18px;
  margin-top: auto;
  flex-shrink: 0;
  overflow: visible;
}

.card-scroll-viewport + .card-divider {
  margin-bottom: 0;
}

.welcome-offer,
.annual-fee {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.6;
}

.welcome-offer-heading,
.annual-fee-heading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  min-width: 0;
}

.welcome-offer-label,
.annual-fee-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  justify-self: start;
  margin: 0;
  padding: 3px 10px;
  border-radius: 999px;
  color: #325d52;
  background: #d8dedc;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}

.annual-fee-explanation-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.annual-fee-explanation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 1.5px solid #9ca3af;
  border-radius: 50%;
  background: transparent;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.annual-fee-explanation:hover {
  color: #6b7280;
  border-color: #6b7280;
}

.annual-fee-explanation.is-flash {
  color: #111827;
  border-color: #111827;
}

.annual-fee-explanation__icon {
  display: block;
  transform: translateY(0.5px);
}

.annual-fee-tip {
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  bottom: auto;
  z-index: 5;
  width: max-content;
  max-width: min(280px, 50vw);
  padding: 6px 10px;
  border-radius: 8px;
  background: #111827;
  color: #f9fafb;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.4;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.18);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(4px, -50%);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.annual-fee-tip::after {
  content: '';
  position: absolute;
  left: auto;
  right: 100%;
  top: 50%;
  border: 6px solid transparent;
  border-right-color: #111827;
  transform: translateY(-50%);
}

.annual-fee-tip.is-visible {
  opacity: 1;
  transform: translate(0, -50%);
}

.welcome-offer-value,
.annual-fee-value {
  color: #111827;
  font-weight: 700;
  text-align: right;
}

/* ── Debug ──────────────────────────────────────────────────── */

.showcase-debug {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px dashed #e67e22;
  border-radius: 8px;
  background: #fff8f0;
  font-size: 0.9rem;
}

/* ── Dark mode ──────────────────────────────────────────────── */

html.dark .hk-cc-header__title,
html[data-theme='dark'] .hk-cc-header__title {
  color: #f3f4f6;
}

html.dark .hk-cc-header__subtitle,
html[data-theme='dark'] .hk-cc-header__subtitle {
  color: #9ca3af;
}

html.dark .hk-search-input,
html[data-theme='dark'] .hk-search-input {
  background: #1f2937;
  border-color: rgba(255, 255, 255, 0.12);
  color: #e5e7eb;
}

html.dark .hk-search-input::placeholder,
html[data-theme='dark'] .hk-search-input::placeholder {
  color: #6b7280;
}

html.dark .hk-search-input:focus,
html[data-theme='dark'] .hk-search-input:focus {
  border-color: #9ca3af;
  box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.15);
}

html.dark .hk-search-btn,
html[data-theme='dark'] .hk-search-btn {
  background: #325d52;
  border-color: #325d52;
  color: #ffffff;
}

html.dark .hk-search-btn:hover,
html[data-theme='dark'] .hk-search-btn:hover {
  background: #3d6f62;
  border-color: #3d6f62;
}

html.dark .hk-reset-btn,
html.dark .hk-dropdown__trigger,
html[data-theme='dark'] .hk-reset-btn,
html[data-theme='dark'] .hk-dropdown__trigger {
  background: #1f2937;
  border-color: rgba(255, 255, 255, 0.12);
  color: #d1d5db;
}

html.dark .hk-reset-btn.is-active,
html.dark .hk-dropdown.is-open .hk-dropdown__trigger,
html.dark .hk-dropdown.has-filter .hk-dropdown__trigger,
html[data-theme='dark'] .hk-reset-btn.is-active,
html[data-theme='dark'] .hk-dropdown.is-open .hk-dropdown__trigger,
html[data-theme='dark'] .hk-dropdown.has-filter .hk-dropdown__trigger {
  background: #325d52;
  border-color: #325d52;
  color: #ffffff;
}

html.dark .hk-view-nav,
html[data-theme='dark'] .hk-view-nav {
  background: #1f2937;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

html.dark .hk-view-nav__indicator,
html[data-theme='dark'] .hk-view-nav__indicator {
  background: #325d52;
}

html.dark .hk-view-nav__btn,
html[data-theme='dark'] .hk-view-nav__btn {
  color: #d1d5db;
}

html.dark .hk-view-nav__btn:hover,
html[data-theme='dark'] .hk-view-nav__btn:hover {
  color: #a8c4bc;
}

html.dark .hk-view-nav__btn.is-active,
html[data-theme='dark'] .hk-view-nav__btn.is-active {
  color: #ffffff;
}

html.dark .hk-dropdown__panel,
html[data-theme='dark'] .hk-dropdown__panel {
  background: #1f2937;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

html.dark .hk-dropdown__title,
html[data-theme='dark'] .hk-dropdown__title {
  color: #f3f4f6;
}

html.dark .hk-dropdown__close,
html[data-theme='dark'] .hk-dropdown__close {
  color: #9ca3af;
}

html.dark .hk-dropdown__close:hover,
html[data-theme='dark'] .hk-dropdown__close:hover {
  color: #f3f4f6;
  background: rgba(255, 255, 255, 0.08);
}

html.dark .hk-dropdown__option,
html[data-theme='dark'] .hk-dropdown__option {
  color: #d1d5db;
}

html.dark .hk-dropdown__option:hover,
html[data-theme='dark'] .hk-dropdown__option:hover {
  background: rgba(255, 255, 255, 0.06);
}

html.dark .hk-dropdown__footer,
html[data-theme='dark'] .hk-dropdown__footer {
  background: rgba(0, 0, 0, 0.2);
  border-top-color: rgba(255, 255, 255, 0.08);
}

html.dark .hk-dropdown__clear,
html[data-theme='dark'] .hk-dropdown__clear {
  color: #9ca3af;
}

html.dark .hk-dropdown__clear:hover,
html[data-theme='dark'] .hk-dropdown__clear:hover {
  color: #f3f4f6;
  background: rgba(255, 255, 255, 0.08);
}

html.dark .card-container,
html[data-theme='dark'] .card-container {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.12);
}

html.dark .card-container.is-compact-view:hover,
html[data-theme='dark'] .card-container.is-compact-view:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

html.dark .card-compact-title,
html[data-theme='dark'] .card-compact-title {
  color: #e8e8e8;
}

html.dark .card-compact-bank,
html[data-theme='dark'] .card-compact-bank {
  color: #6b7280;
}

html.dark .card-compact-tag,
html[data-theme='dark'] .card-compact-tag {
  background: #d8dedc;
  color: #325d52;
}

html.dark .card-compact-ellipsis,
html[data-theme='dark'] .card-compact-ellipsis {
  color: #9ca3af;
}

html.dark .card-compact-chevron,
html[data-theme='dark'] .card-compact-chevron {
  color: rgba(255, 255, 255, 0.35);
}

html.dark .title-text,
html.dark .card-title-label,
html[data-theme='dark'] .title-text,
html[data-theme='dark'] .card-title-label {
  color: #e8e8e8;
}

html.dark .card-title-link:hover .card-title-label,
html.dark .card-title-link:hover .card-title-arrow,
html.dark .card-title-link:focus-visible .card-title-label,
html.dark .card-title-link:focus-visible .card-title-arrow,
html[data-theme='dark'] .card-title-link:hover .card-title-label,
html[data-theme='dark'] .card-title-link:hover .card-title-arrow,
html[data-theme='dark'] .card-title-link:focus-visible .card-title-label,
html[data-theme='dark'] .card-title-link:focus-visible .card-title-arrow {
  color: #185ef6;
}

html.dark .card-image-link:hover .card-image,
html[data-theme='dark'] .card-image-link:hover .card-image {
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
}

html.dark .card-divider,
html[data-theme='dark'] .card-divider {
  border-top-color: rgba(255, 255, 255, 0.15);
}

html.dark .card-divider-note,
html[data-theme='dark'] .card-divider-note {
  background: #292a2d;
  color: #9ca3af;
}

html.dark .rates-note-toggle,
html[data-theme='dark'] .rates-note-toggle {
  background: #292a2d;
  color: #9ca3af;
  border-color: #9ca3af;
}

html.dark .rates-note-toggle:hover,
html.dark .rates-note-toggle:focus-visible,
html[data-theme='dark'] .rates-note-toggle:hover,
html[data-theme='dark'] .rates-note-toggle:focus-visible {
  color: #d1d5db;
  border-color: #d1d5db;
}

html.dark .rate-label,
html.dark .rate-value,
html.dark .highlight-item,
html.dark .welcome-offer-value,
html.dark .annual-fee-value,
html[data-theme='dark'] .rate-label,
html[data-theme='dark'] .rate-value,
html[data-theme='dark'] .highlight-item,
html[data-theme='dark'] .welcome-offer-value,
html[data-theme='dark'] .annual-fee-value {
  color: #ccc;
}

html.dark .rate-row--note .rate-label,
html[data-theme='dark'] .rate-row--note .rate-label {
  color: #6b7280;
}

html.dark .annual-fee-explanation,
html[data-theme='dark'] .annual-fee-explanation {
  color: #9ca3af;
  border-color: #9ca3af;
}

html.dark .annual-fee-explanation.is-flash,
html[data-theme='dark'] .annual-fee-explanation.is-flash {
  color: #f9fafb;
  border-color: #f9fafb;
}

html.dark .annual-fee-tip,
html[data-theme='dark'] .annual-fee-tip {
  background: #f3f4f6;
  color: #111827;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

html.dark .annual-fee-tip::after,
html[data-theme='dark'] .annual-fee-tip::after {
  border-top-color: transparent;
  border-right-color: #f3f4f6;
}

html.dark .card-flip-title,
html.dark .welcome-offer-label,
html.dark .annual-fee-label,
html[data-theme='dark'] .card-flip-title,
html[data-theme='dark'] .welcome-offer-label,
html[data-theme='dark'] .annual-fee-label {
  color: #325d52;
  background: #d8dedc;
}

html.dark .card-flip__face,
html[data-theme='dark'] .card-flip__face {
  background: #1f2937;
}

html.dark .card-flip-btn,
html[data-theme='dark'] .card-flip-btn {
  color: #9fd0c2;
  border-color: rgba(159, 208, 194, 0.4);
}

@media (max-width: 399px) {
  .card-container {
    display: grid;
    grid-template-columns: 25% minmax(0, 1fr);
    align-items: start;
    width: 100%;
    height: auto;
    max-height: none;
  }

  .card-header {
    display: contents;
  }

  .card-image-wrap {
    container-type: inline-size;
    display: flex;
    justify-content: center;
    align-items: center;
    grid-column: 1;
    grid-row: 1 / span 7;
    width: 100%;
    height: auto;
    margin: 14px 0;
    aspect-ratio: 1.586 / 1;
  }

  .card-identity {
    grid-column: 2;
    min-height: 0;
    padding: 12px 14px 8px;
  }

  .title-text {
    min-height: 0;
    font-size: 0.95rem;
  }

  .card-container:not(.is-micro-expanded) > .card-divider,
  .card-container:not(.is-micro-expanded) .card-scroll-viewport,
  .card-container:not(.is-micro-expanded) .card-footer {
    display: none;
  }

  .card-container:not(.is-micro-expanded) .title-text {
    min-height: 0;
  }

  .card-compact-toggle {
    display: inline-block;
  }

  .card-container.is-micro-expanded {
    height: auto;
    max-height: none;
  }

  .card-container.is-micro-expanded > .card-divider,
  .card-container.is-micro-expanded .card-scroll-viewport,
  .card-container.is-micro-expanded .card-footer {
    grid-column: 2;
  }

  .card-container.is-micro-expanded .card-scroll-viewport {
    height: auto;
  }

  .card-container.is-micro-expanded .card-flip {
    height: var(--card-flip-height);
  }

  .card-container.is-micro-expanded .card-footer {
    padding: 4px 14px 8px;
  }

  .card-container.is-micro-expanded > .card-divider {
    width: calc(100% - 28px);
    margin: 6px auto;
  }
}

/* ── 单卡详情页 ───────────────────────────────────────────── */

/* 详情页：居中限宽，避免 100vw 造成横向溢出/整页偏左 */
.hk-cc-page.hk-cc-detail {
  left: auto;
  right: auto;
  width: 100%;
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 4.25rem;
  padding-left: clamp(12px, 3vw, 32px);
  padding-right: clamp(12px, 3vw, 32px);
  padding-bottom: 2.5rem;
  box-sizing: border-box;
}

.hk-cc-detail {
  max-width: none;
  width: 100%;
  margin: 0;
}

.hk-cc-detail__layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  grid-template-areas: "aside main";
  column-gap: 28px;
  row-gap: 16px;
  align-items: start;
  padding-top: var(--hk-cc-chrome-space, 88px);
  min-width: 0;
}

.hk-cc-detail__chrome {
  position: fixed;
  top: var(--hk-cc-header-h, 3.5rem);
  left: 0;
  right: 0;
  width: 100%;
  z-index: 40;
  background: #f2f2f2;
  padding: 14px 0 6px;
  box-sizing: border-box;
  /* top 由 JS 跟站点头可见高度同步，不在此做 transition，避免滞后空洞 */
}

.hk-cc-detail__chrome-inner {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  column-gap: 28px;
  row-gap: 12px;
  align-items: center;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding-left: clamp(12px, 3vw, 32px);
  padding-right: clamp(12px, 3vw, 32px);
  box-sizing: border-box;
  min-width: 0;
}

.hk-cc-detail__lead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  min-width: 0;
  padding-top: 0;
}

/* 仅卡片详情页：面包屑字号（原与「返回」一致） */
.hk-cc-detail .site-crumb.site-crumb--hub,
.hk-cc-detail .site-crumb.site-crumb--hub.site-crumb--deep {
  font-size: 0.875rem;
}

.hk-cc-detail__breadcrumb {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.4;
  overflow: hidden;
}

.hk-cc-detail__breadcrumb a {
  color: #6b7280;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.hk-cc-detail__breadcrumb a:hover {
  color: #185ef6;
}

.hk-cc-detail__breadcrumb-home {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hk-cc-detail__home-icon {
  flex-shrink: 0;
  display: block;
}

.hk-cc-detail__breadcrumb-sep {
  color: #9ca3af;
  flex-shrink: 0;
}

.hk-cc-detail__breadcrumb [aria-current="page"] {
  color: #111827;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hk-cc-detail__crumb-narrow {
  display: none;
}

.hk-cc-detail__crumb-wide {
  display: inline;
}

@media (max-width: 999px) {
  .hk-cc-detail__crumb-wide {
    display: none;
  }

  .hk-cc-detail__crumb-narrow {
    display: inline;
  }
}

.hk-cc-detail__aside {
  grid-area: aside;
  position: sticky;
  top: var(--hk-cc-aside-top, calc(3.5rem + 88px));
  z-index: 1;
  align-self: start;
}

.hk-cc-detail__aside-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hk-cc-detail__main {
  grid-area: main;
  position: relative;
  min-width: 0;
  align-self: start;
}

.hk-cc-detail__hero {
  position: relative;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.hk-cc-detail__media {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  overflow: visible;
  background: transparent;
  line-height: 0;
}

.hk-cc-detail__image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 0;
}

.hk-cc-detail__bank {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 400;
  color: #9ca3af;
  letter-spacing: 0.04em;
}

.hk-cc-detail__title {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  color: #111827;
}

.hk-cc-detail__level {
  margin: 0;
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.4;
}

.hk-cc-detail__hero-footer {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  min-width: 0;
  padding-right: 36px; /* 给右下角头像留空 */
}

.hk-cc-detail__hero .hk-cc-detail__tags {
  margin-top: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.hk-cc-detail__wallet {
  position: absolute;
  right: 0;
  bottom: 0;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid #e5e7eb;
  background: #f3f4f6;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.hk-cc-detail__wallet:hover,
.hk-cc-detail__wallet:focus-visible {
  transform: scale(1.06);
  border-color: #2563eb;
  outline: none;
}

.hk-cc-detail__wallet-avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hk-cc-detail__actions {
  display: grid;
  grid-template-columns: 1fr 1fr 42px;
  gap: 8px;
  align-items: stretch;
}

.hk-cc-detail__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.hk-cc-detail__btn--primary {
  color: #ffffff;
  background: #325D52;
  border-color: #325D52;
}

.hk-cc-detail__btn--primary:hover {
  background: #274840;
  border-color: #274840;
  color: #ffffff;
}

.hk-cc-detail__btn--secondary {
  color: #111827;
  background: #ffffff;
  border-color: #d1d5db;
}

.hk-cc-detail__btn--secondary:hover {
  background: #f9fafb;
  color: #111827;
}

.hk-cc-detail__btn--icon {
  width: 42px;
  min-width: 42px;
  padding: 0;
  color: #111827;
  background: #ffffff;
  border-color: #d1d5db;
  cursor: pointer;
}

.hk-cc-detail__btn--icon:hover {
  background: #f9fafb;
  color: #111827;
}

.hk-cc-detail__share-icon {
  display: block;
  flex: none;
}

.hk-cc-detail__panel {
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
  scroll-margin-top: var(--hk-cc-aside-top, calc(3.5rem + 88px));
}

.hk-cc-detail__panel-title {
  margin: 0 0 10px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #111827;
}

.hk-cc-detail__fees {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.hk-cc-detail__fees th,
.hk-cc-detail__fees td {
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
  text-align: left;
  vertical-align: top;
  line-height: 1.4;
}

.hk-cc-detail__fees tr:last-child th,
.hk-cc-detail__fees tr:last-child td {
  border-bottom: 0;
}

.hk-cc-detail__fees th {
  width: 42%;
  font-weight: 500;
  color: #6b7280;
}

.hk-cc-detail__fees td {
  font-weight: 600;
  color: #111827;
  text-align: right;
}

.hk-cc-detail__fee-ref {
  margin-left: 1px;
  font-size: 0.7em;
  line-height: 0;
  vertical-align: super;
}

.hk-cc-detail__fee-note {
  margin: 8px 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #9ca3af;
  text-align: right;
}

.hk-cc-detail__siblings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-items: start;
}

.hk-cc-detail__sibling {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.hk-cc-detail__sibling:hover .hk-cc-detail__sibling-name {
  color: #185ef6;
}

/* 与列表 .card-image-wrap / .card-image 相同：cqw 限高，竖卡收进横卡比例框 */
.hk-cc-detail__sibling-media {
  container-type: inline-size;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1.586 / 1;
  overflow: visible;
  background: transparent;
}

.hk-cc-detail__sibling-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100cqw / 1.586);
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.hk-cc-detail__sibling:hover .hk-cc-detail__sibling-image {
  transform: translateY(-5px);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18));
  background: transparent;
}

.hk-cc-detail__sibling-name {
  font-size: 0.68rem;
  line-height: 1.35;
  color: #6b7280;
  text-align: center;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hk-cc-detail__nav {
  position: relative;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

/* 内容从固定顶栏下钻过时，圆角过渡 */
.hk-cc-detail__nav::before,
.hk-cc-detail__nav::after {
  content: '';
  position: absolute;
  bottom: -12px;
  width: 16px;
  height: 16px;
  z-index: 22;
  pointer-events: none;
}

.hk-cc-detail__nav::before {
  left: 0;
  background: radial-gradient(circle at 100% 100%, transparent 15.5px, #f2f2f2 16px);
}

.hk-cc-detail__nav::after {
  right: 0;
  background: radial-gradient(circle at 0% 100%, transparent 15.5px, #f2f2f2 16px);
}

.hk-cc-detail__nav-track {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 4px;
  width: 100%;
  max-width: 100%;
  padding: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  box-sizing: border-box;
}

.hk-cc-detail__nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  height: 36px;
  padding: 0 6px;
  border-radius: 8px;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  position: relative;
  z-index: 1;
  pointer-events: auto;
  transition: background 0.15s ease, color 0.15s ease;
}

.hk-cc-detail__nav-link:hover {
  color: #111827;
  background: #f3f4f6;
}

.hk-cc-detail__nav-link.is-active {
  color: #ffffff;
  background: #325D52;
}

.hk-cc-detail__nav-short {
  display: none;
}

@media (max-width: 599px) {
  .hk-cc-detail__nav-full {
    display: none;
  }

  .hk-cc-detail__nav-short {
    display: inline;
  }

  .hk-cc-detail__nav-track {
    gap: 2px;
    padding: 4px;
  }

  .hk-cc-detail__nav-link {
    font-size: 0.75rem;
    height: 32px;
    padding: 0 2px;
    min-width: 0;
    flex: 1 1 0;
  }
}

.hk-cc-detail__modules {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hk-cc-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hk-cc-detail__tag {
  display: inline-flex;
  padding: 3px 12px;
  border-radius: 999px;
  background: #e0ebff;
  color: #2563eb;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}

.hk-cc-detail__tag--feature-soft {
  background: #E3E6E5;
  color: #325D52;
  font-weight: 600;
}

.hk-cc-detail__module {
  padding: 20px 22px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  scroll-margin-top: var(--hk-cc-aside-top, calc(3.5rem + 88px));
}

.hk-cc-detail__module,
.hk-cc-detail__module.hk-cc-detail__module--body {
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.hk-cc-detail__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 18px;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}

.hk-cc-detail__heading .hk-cc-detail__meta {
  margin: 0 0 0 auto;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #9ca3af;
  white-space: nowrap;
}

.hk-cc-detail__heading a.hk-cc-detail__meta--link {
  color: #185ef6;
  text-decoration: none;
}

.hk-cc-detail__heading a.hk-cc-detail__meta--link:hover {
  text-decoration: underline;
}

.hk-cc-detail__apply {
  display: flex;
  flex-direction: column;
}

.hk-cc-detail__apply-block {
  padding: 0 0 16px;
  margin: 0 0 16px;
  border-bottom: 1px solid #e5e7eb;
}

.hk-cc-detail__apply-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.hk-cc-detail__apply-title {
  display: inline-flex;
  align-items: center;
  margin: 0 0 12px;
  padding: 5px 14px;
  border: 1px solid #325D52;
  border-radius: 999px;
  background: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
  box-sizing: border-box;
}

.hk-cc-detail__apply-block .hk-cc-detail__highlights {
  margin: 0;
}

.hk-cc-detail__apply-method-label {
  font-weight: 600;
  color: #111827;
}

.hk-cc-detail__apply-method-text {
  font-weight: 400;
  color: #6b7280;
}

.hk-cc-detail__meta {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  color: #9ca3af;
}

.hk-cc-detail__rate-label {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  min-width: 0;
}

.hk-cc-detail__faq {
  display: flex;
  flex-direction: column;
}

.hk-cc-detail__faq-item {
  padding: 0 0 14px;
  margin: 0 0 14px;
  border-bottom: 1px solid #e5e7eb;
}

.hk-cc-detail__faq-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.hk-cc-detail__faq-q,
.hk-cc-detail__faq-a {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #374151;
}

.hk-cc-detail__faq-q {
  font-weight: 600;
  color: #111827;
  margin-bottom: 6px;
}

.hk-cc-detail__faq-a {
  color: #6b7280;
}

.hk-cc-detail__rates,
.hk-cc-detail__highlights {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hk-cc-detail__rates li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 0 14px;
  margin: 0 0 14px;
  border-bottom: 1px dashed #e5e7eb;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #374151;
}

.hk-cc-detail__rates li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.hk-cc-detail__rates li.hk-cc-detail__rate--note {
  color: #9ca3af;
  justify-content: flex-start;
}

.hk-cc-detail__rates li.hk-cc-detail__rate--note .hk-cc-detail__rate-label {
  color: #9ca3af;
  font-weight: 400;
}

.hk-cc-detail__highlights li {
  margin: 0 0 8px 1.1em;
  list-style: disc;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #374151;
}

.hk-cc-detail__highlights li:last-child {
  margin-bottom: 0;
}

.hk-cc-detail__hl-groups {
  display: flex;
  flex-direction: column;
}

.hk-cc-detail__hl-group {
  padding: 0 0 16px;
  margin: 0 0 16px;
  border-bottom: 1px solid #e5e7eb;
}

.hk-cc-detail__hl-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.hk-cc-detail__hl-group .hk-cc-detail__hl-group-title {
  margin: 0 0 10px;
  color: #325D52;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
}

.hk-cc-detail__hl-group .hk-cc-detail__highlights {
  margin: 0;
}

.hk-cc-detail__rate-value {
  flex: none;
  font-size: 1rem;
  font-weight: 700;
  color: #325D52;
}

.hk-cc-detail__welcome {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #374151;
}

.hk-cc-detail__body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #374151;
}

.hk-cc-detail__body > *:first-child {
  margin-top: 0;
}

.hk-cc-detail__body > *:last-child {
  margin-bottom: 0;
}

@media (max-width: 999px) {
  .hk-cc-page.hk-cc-detail {
    padding-top: 4rem;
    padding-left: 0;
    padding-right: 0;
  }

  .hk-cc-detail__chrome {
    padding-left: 0;
    padding-right: 0;
  }

  .hk-cc-detail__chrome-inner {
    grid-template-columns: 1fr;
    gap: 10px;
    /* 宽与左由 JS 对齐 layout，勿写死 100vw */
  }

  .hk-cc-detail__layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
  }

  .hk-cc-detail__aside,
  .hk-cc-detail__aside-inner,
  .hk-cc-detail__main {
    display: contents;
  }

  .hk-cc-detail__aside {
    position: static;
    top: auto;
  }

  .hk-cc-detail__nav::before,
  .hk-cc-detail__nav::after {
    display: none;
  }

  .hk-cc-detail__nav-link {
    min-width: 0;
  }

  .hk-cc-detail__hero,
  .hk-cc-detail__actions,
  .hk-cc-detail__modules,
  .hk-cc-detail__panel,
  .hk-cc-detail__module {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hk-cc-detail__hero {
    order: 2;
    text-align: center;
  }

  .hk-cc-detail__hero .hk-cc-detail__media {
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  .hk-cc-detail__hero .hk-cc-detail__tags {
    flex: 0 1 auto;
    justify-content: center;
  }

  .hk-cc-detail__hero-footer {
    justify-content: center;
    text-align: center;
  }

  .hk-cc-detail__actions {
    order: 3;
  }

  .hk-cc-detail__modules {
    display: contents;
  }

  .hk-cc-detail__module:not(#faq) {
    order: 4;
  }

  .hk-cc-detail__panel--fees {
    order: 5;
  }

  #faq.hk-cc-detail__module {
    order: 6;
  }

  .hk-cc-detail__panel--siblings {
    order: 7;
  }

  /* 窄屏：费用 / 更多信用卡 与主模块标题、内边距对齐 */
  .hk-cc-detail__panel--fees,
  .hk-cc-detail__panel--siblings {
    padding: 20px 22px;
  }

  .hk-cc-detail__panel--fees .hk-cc-detail__panel-title,
  .hk-cc-detail__panel--siblings .hk-cc-detail__panel-title {
    margin: 0 0 18px;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
  }

  /* 窄屏：正文与主模块同色同号；费用数值仅加粗；卡名小一号并加粗 */
  .hk-cc-detail__panel--fees .hk-cc-detail__fees {
    font-size: 0.9rem;
  }

  .hk-cc-detail__panel--fees .hk-cc-detail__fees th,
  .hk-cc-detail__panel--fees .hk-cc-detail__fees td {
    color: #374151;
    line-height: 1.45;
  }

  .hk-cc-detail__panel--fees .hk-cc-detail__fees th {
    font-weight: 400;
  }

  .hk-cc-detail__panel--fees .hk-cc-detail__fees td {
    font-weight: 700;
  }

  .hk-cc-detail__panel--siblings .hk-cc-detail__sibling-name {
    font-size: 0.8125rem;
    font-weight: 400;
    color: #6b7280;
  }
}

html.dark .hk-cc-detail__hero,
html.dark .hk-cc-detail__panel,
html.dark .hk-cc-detail__module,
html.dark .hk-cc-detail__nav-track,
html[data-theme='dark'] .hk-cc-detail__hero,
html[data-theme='dark'] .hk-cc-detail__panel,
html[data-theme='dark'] .hk-cc-detail__module,
html[data-theme='dark'] .hk-cc-detail__nav-track {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.12);
}

html.dark .hk-cc-detail__chrome,
html[data-theme='dark'] .hk-cc-detail__chrome {
  background: #292a2d;
}

html.dark .hk-cc-detail__nav::before,
html[data-theme='dark'] .hk-cc-detail__nav::before {
  background: radial-gradient(circle at 100% 100%, transparent 15.5px, #292a2d 16px);
}

html.dark .hk-cc-detail__nav::after,
html[data-theme='dark'] .hk-cc-detail__nav::after {
  background: radial-gradient(circle at 0% 100%, transparent 15.5px, #292a2d 16px);
}

html.dark .hk-cc-detail__breadcrumb [aria-current="page"],
html[data-theme='dark'] .hk-cc-detail__breadcrumb [aria-current="page"] {
  color: #e8e8e8;
}

html.dark .hk-cc-detail__faq-q,
html[data-theme='dark'] .hk-cc-detail__faq-q {
  color: #e8e8e8;
}

html.dark .hk-cc-detail__tag,
html[data-theme='dark'] .hk-cc-detail__tag {
  background: rgba(37, 99, 235, 0.22);
  color: #93c5fd;
}

html.dark .hk-cc-detail__tag--feature-soft,
html[data-theme='dark'] .hk-cc-detail__tag--feature-soft {
  background: #E3E6E5;
  color: #325D52;
}

html.dark .hk-cc-detail__faq-a,
html[data-theme='dark'] .hk-cc-detail__faq-a {
  color: #9ca3af;
}

html.dark .hk-cc-detail__faq-item,
html[data-theme='dark'] .hk-cc-detail__faq-item,
html.dark .hk-cc-detail__apply-block,
html[data-theme='dark'] .hk-cc-detail__apply-block,
html.dark .hk-cc-detail__rates li,
html[data-theme='dark'] .hk-cc-detail__rates li {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

html.dark .hk-cc-detail__apply-title,
html[data-theme='dark'] .hk-cc-detail__apply-title {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: #e8e8e8;
}

html.dark .highlight-group__title,
html.dark .hk-cc-detail__hl-group-title,
html[data-theme='dark'] .highlight-group__title,
html[data-theme='dark'] .hk-cc-detail__hl-group-title {
  color: #a8cfc3;
}

html.dark .hk-cc-detail__hl-group,
html[data-theme='dark'] .hk-cc-detail__hl-group {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

html.dark .hk-cc-detail__title,
html.dark .hk-cc-detail__heading,
html.dark .hk-cc-detail__panel-title,
html.dark .hk-cc-detail__fees td,
html.dark .hk-cc-detail__btn--secondary,
html.dark .hk-cc-detail__btn--icon,
html[data-theme='dark'] .hk-cc-detail__title,
html[data-theme='dark'] .hk-cc-detail__heading,
html[data-theme='dark'] .hk-cc-detail__panel-title,
html[data-theme='dark'] .hk-cc-detail__fees td,
html[data-theme='dark'] .hk-cc-detail__btn--secondary,
html[data-theme='dark'] .hk-cc-detail__btn--icon {
  color: #e8e8e8;
}

html.dark .hk-cc-detail__btn--secondary,
html.dark .hk-cc-detail__btn--icon,
html[data-theme='dark'] .hk-cc-detail__btn--secondary,
html[data-theme='dark'] .hk-cc-detail__btn--icon {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
}

html.dark .hk-cc-detail__nav-link.is-active,
html[data-theme='dark'] .hk-cc-detail__nav-link.is-active {
  background: #325D52;
  color: #ffffff;
}

html.dark .hk-cc-detail__wallet,
html[data-theme='dark'] .hk-cc-detail__wallet {
  border-color: rgba(255, 255, 255, 0.2);
  background: #292a2d;
}
