:root {
  --bg: #f4efe6;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --ink-soft: #5c5c5c;
  --border: rgba(26, 26, 26, 0.06);
  --shadow: 0 18px 48px rgba(26, 26, 26, 0.08);
  --shadow-soft: 0 8px 24px rgba(26, 26, 26, 0.06);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --yellow: #e8c547;
  --coral: #e85d4c;
  --sidebar-w: 92px;
  --sidebar-inset: 16px;
  --sidebar-to-main: 20px;
  --main-offset: calc(var(--sidebar-inset) + var(--sidebar-w) + var(--sidebar-to-main));
  --gradient-hero: radial-gradient(120% 120% at 20% 30%, #e8c547 0%, transparent 55%),
    radial-gradient(90% 90% at 70% 20%, #e85d4c 0%, transparent 50%),
    radial-gradient(80% 80% at 60% 80%, #1a1a1a 0%, #2a2a2a 100%);
  --font: "DM Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --card-cover-placeholder-bg: #e8e7e4;
  --card-cover-placeholder-tone: #dddcd8;
  /* 封面固定高度：左右/并排卡片封面底边与正文起点对齐（不再随卡片总高按比例 3:2 切） */
  --card-tool-cover-height: clamp(200px, 22vw, 258px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body {
  line-height: 1.45;
}

button,
input {
  font: inherit;
}

.app {
  min-height: 100vh;
  min-height: 100dvh;
}

.sidebar {
  position: fixed;
  z-index: 50;
  left: var(--sidebar-inset);
  top: var(--sidebar-inset);
  bottom: var(--sidebar-inset);
  width: var(--sidebar-w);
  box-sizing: border-box;
  padding: 18px 10px;
  margin: 0;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.sidebar__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.sidebar__brand-link {
  display: block;
  width: 100%;
  max-width: 56px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.sidebar__logo-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: min(26vh, 132px);
  object-fit: contain;
  object-position: top center;
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  align-items: center;
}

.sidebar__nav--secondary {
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.icon-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.icon-btn:hover {
  background: rgba(26, 26, 26, 0.05);
}

.icon-btn:active {
  transform: scale(0.96);
}

.icon-btn--active {
  background: var(--ink);
  color: var(--surface);
}

.sidebar__user {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, #333, #111);
  color: var(--surface);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 15px;
}

.main-wrap {
  margin-left: var(--main-offset);
  padding: 20px 28px 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.header-sticky {
  position: sticky;
  top: 0;
  z-index: 45;
  margin: -12px -28px 8px -20px;
  padding: 20px 28px 18px 20px;
  background: rgba(244, 239, 230, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26, 26, 26, 0.07);
}

.header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.header__greeting {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.28;
  max-width: min(48ch, 100%);
}

.header__greeting-en {
  font-size: clamp(12px, 2.4vw, 14px);
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.header__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

/* 图二：搜索条占大部分宽度，深色胶囊按钮紧挨右侧、同高 */
.header__search-block {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex: 1;
  min-width: 0;
  max-width: min(720px, 100%);
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--surface);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  flex: 1;
  min-width: 0;
  min-height: 48px;
  color: var(--ink-soft);
}

.search input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  min-width: 0;
}

.btn-pill {
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.btn-pill--auth {
  flex-shrink: 0;
  padding: 10px 22px;
  min-height: 48px;
  box-sizing: border-box;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.btn-pill__en {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.88;
}

.btn-pill:active {
  transform: scale(0.98);
}

.btn-pill--dark {
  background: var(--ink);
  color: var(--surface);
}

.btn-pill--dark:hover {
  opacity: 0.92;
}

/* 登录 / 注册弹窗 */
body.auth-modal-active {
  overflow: hidden;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.auth-modal[hidden] {
  display: none !important;
}

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.45);
  backdrop-filter: blur(6px);
}

.auth-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  max-height: min(90vh, 640px);
  overflow: auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 80px rgba(26, 26, 26, 0.18);
  padding: 24px 24px 28px;
  -webkit-overflow-scrolling: touch;
}

.auth-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.auth-modal__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.auth-modal__title-en {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0;
}

.auth-modal__close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin: -8px -8px 0 0;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.auth-modal__close:hover {
  background: var(--border);
  color: var(--ink);
}

.auth-modal__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(26, 26, 26, 0.04);
}

.auth-modal__tab {
  border: none;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  background: transparent;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: background 0.15s ease, color 0.15s ease;
}

.auth-modal__tab-en {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.85;
}

.auth-modal__tab.is-active,
.auth-modal__tab:hover {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.auth-modal__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-modal__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-modal__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.auth-modal__label-en {
  font-weight: 500;
  color: var(--ink-soft);
  margin-left: 4px;
}

.auth-modal__field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-modal__field input:focus {
  outline: none;
  border-color: rgba(26, 26, 26, 0.18);
  box-shadow: 0 0 0 3px rgba(232, 197, 71, 0.25);
}

.auth-modal__submit {
  margin-top: 4px;
  padding: 14px 20px;
  border: none;
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.auth-modal__submit:hover {
  opacity: 0.92;
}

.auth-modal__submit:active {
  transform: scale(0.98);
}

.auth-modal__hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.auth-modal__hint-en {
  display: block;
  margin-top: 4px;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 顶行：参考图 — 左侧大卡约 2/3，右侧窄卡约 1/3 */
.bento-top {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(240px, 0.58fr);
  gap: 20px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .bento-top {
    grid-template-columns: 1fr;
  }
}

.bento-top__main,
.bento-top__aside {
  min-width: 0;
  display: flex;
}

.bento-top__main .card,
.bento-top__aside .card {
  flex: 1;
  width: 100%;
}

.card--hero--bento {
  min-height: 260px;
}

.card--carousel {
  padding: 0;
  min-height: 260px;
  display: flex;
}

.hero-carousel {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 260px;
  border-radius: inherit;
  overflow: hidden;
  background: #1a1a1a;
}

.hero-carousel__slides {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.hero-carousel__slide.is-active {
  opacity: 1;
  z-index: 2;
}

.hero-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-carousel__fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--gradient-hero);
  background-size: cover;
  background-position: center;
}

.hero-carousel.has-slides .hero-carousel__fallback {
  display: none;
}

.hero-carousel__ui {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

.hero-carousel__btn {
  pointer-events: auto;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.15s ease;
}

.hero-carousel:hover .hero-carousel__btn,
.hero-carousel:focus-within .hero-carousel__btn {
  opacity: 1;
}

.hero-carousel__btn:hover {
  transform: scale(1.05);
}

@media (hover: none) {
  .hero-carousel__btn {
    opacity: 0.88;
  }
}

.hero-carousel__btn:active {
  transform: scale(0.97);
}

.hero-carousel__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: calc(100% - 48px);
  pointer-events: none;
}

.hero-carousel__dot {
  pointer-events: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-carousel__dot.is-active {
  background: #fff;
  transform: scale(1.2);
}

.card--intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card--intro__body {
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
}

.card--spotlight {
  background: var(--ink);
  color: #f0f0f0;
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 260px;
  box-sizing: border-box;
}

.card--spotlight__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card--spotlight__list {
  margin: 0;
  padding: 0 0 0 1.15em;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  flex: 1;
}

.card--spotlight__list li {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card--spotlight__list li:last-child {
  margin-bottom: 0;
}

.card--spotlight__list li::marker {
  color: var(--yellow);
}

@media (max-width: 720px) {
  :root {
    --sidebar-w: 76px;
    --sidebar-inset: 10px;
    --sidebar-to-main: 12px;
  }

  .sidebar {
    padding: 14px 8px;
    gap: 14px;
  }

  .sidebar__name {
    font-size: 12px;
  }

  .icon-btn {
    width: 40px;
    height: 40px;
  }

  .main-wrap {
    padding: 12px 14px 32px 12px;
  }

  .header-sticky {
    margin: -8px -14px 8px -12px;
    padding: 14px 14px 14px 12px;
  }

  .header__search-block {
    max-width: none;
    width: 100%;
  }

  .header__actions {
    width: 100%;
  }

  .search {
    flex: 1;
    min-width: 0;
  }
}

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.card--hero {
  display: grid;
  grid-template-columns: minmax(160px, 42%) 1fr;
  min-height: 220px;
}

@media (max-width: 640px) {
  .card--hero {
    grid-template-columns: 1fr;
  }
}

.card--hero__visual {
  min-height: 200px;
  background-size: cover;
  background-position: center;
}

.card-cover {
  background-image: var(--cover);
}

.card--hero__body {
  padding: 26px 28px 26px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

@media (max-width: 640px) {
  .card--hero__body {
    padding: 0 22px 22px;
  }
}

.card__title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.card__title-en {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

.card__muted {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  max-width: 48ch;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card__muted-en {
  font-size: 12px;
  line-height: 1.45;
  opacity: 0.95;
}

.legend {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

.legend li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
}

.legend__en {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.85;
  width: 100%;
  padding-left: calc(10px + 6px);
}

.card--spotlight__title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card--spotlight__title-en {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

.card--spotlight__pill {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  text-align: right;
  line-height: 1.2;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  flex-shrink: 0;
}

.pill__en {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

.card--spotlight__en {
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.5);
}

/* 参考图二下半：错落 — 左窄叠两张小卡，右宽一张高卡，其余顺延 */
.tools-root {
  min-width: 0;
}

.bento-tools {
  display: grid;
  grid-template-columns: minmax(210px, 0.36fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.bento-tools--single {
  grid-template-columns: 1fr;
}

.bento-tools--single .bento-tools__only {
  max-width: 720px;
}

.bento-tools__stack {
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  min-height: 0;
  height: 100%;
  align-self: stretch;
}

.bento-tools__stack > .card-tool--compact + .card-tool--compact {
  margin-top: 8px;
}

.bento-tools__stack > .card-tool--compact {
  flex: 1 1 0;
  min-height: 0;
  align-self: stretch;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.bento-tools__panel {
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  min-height: 0;
}

.bento-tools__featured {
  flex: 1 1 auto;
  min-height: 220px;
  display: flex;
}

.bento-tools__featured > .card-tool {
  flex: 1;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  margin: 0;
}

.bento-tools__rest {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  min-width: 0;
  align-items: stretch;
  justify-items: stretch;
}

.bento-tools__rest > .card-tool {
  align-self: stretch;
  justify-self: stretch;
  width: 100%;
  max-width: 100%;
  min-height: 0;
}

@media (max-width: 900px) {
  .bento-tools {
    grid-template-columns: 1fr;
  }

  .bento-tools__rest {
    grid-template-columns: 1fr;
  }
}

/*
 * 桌面：左列两张小卡与右列「主卡 + 补位」原先的 flex 分配高度不一致，
 * 左上 compact 往往高于右上 featured，封面固定高度后多出的高度全进正文白区，底边不齐。
 * 将 stack/panel 拆平为同一 grid，使首张 compact 与 featured 不同列、同行共享第 1 行轨道，自动等高。
 */
@media (min-width: 901px) {
  .bento-tools:not(.bento-tools--single) {
    grid-template-rows: auto auto;
  }

  .bento-tools:not(.bento-tools--single) .bento-tools__stack,
  .bento-tools:not(.bento-tools--single) .bento-tools__panel {
    display: contents;
  }

  .bento-tools:not(.bento-tools--single) .bento-tools__stack > .card-tool--compact:only-child {
    grid-column: 1;
    grid-row: 1;
  }

  .bento-tools:not(.bento-tools--single) .bento-tools__stack > .card-tool--compact:first-child:not(:only-child) {
    grid-column: 1;
    grid-row: 1;
  }

  .bento-tools:not(.bento-tools--single) .bento-tools__stack > .card-tool--compact:last-child:not(:only-child) {
    grid-column: 1;
    grid-row: 2;
  }

  .bento-tools:not(.bento-tools--single) .bento-tools__featured {
    grid-column: 2;
    grid-row: 1;
    flex: unset;
  }

  .bento-tools:not(.bento-tools--single) .bento-tools__rest {
    grid-column: 2;
    grid-row: 2;
  }

  .bento-tools:not(.bento-tools--single) .bento-tools__stack > .card-tool--compact + .card-tool--compact {
    margin-top: 0;
  }
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  vertical-align: -1px;
}

.dot--yellow {
  background: var(--yellow);
}

.dot--coral {
  background: var(--coral);
}

.dot--ink {
  background: var(--ink);
}

.card-grid--uniform {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  align-items: stretch;
  justify-items: stretch;
}

.card-grid--uniform .card-tool {
  grid-column: auto;
  grid-row: auto;
  align-self: stretch;
  justify-self: stretch;
  width: 100%;
  max-width: 100%;
  min-height: 0;
}

.card-grid {
  display: grid;
}

.card-tool {
  display: grid;
  grid-template-rows: var(--card-tool-cover-height) minmax(0, 1fr);
  height: 100%;
  min-height: calc(var(--card-tool-cover-height) + 158px);
  margin: 0;
  text-align: left;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card-tool:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 56px rgba(26, 26, 26, 0.12);
}

.card-tool:hover .card-tool__cta-arrow {
  transform: translateX(4px);
}

.card-tool__cover {
  min-height: 0;
  height: 100%;
  align-self: stretch;
  background-color: var(--card-cover-placeholder-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  isolation: isolate;
}

.card-tool__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.06));
  pointer-events: none;
}

.card-tool__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.card-tool__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

.card-tool__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-tool__title-zh {
  line-height: 1.25;
}

.card-tool__title-en {
  display: block;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: #8a8a8a;
}

.card-tool__sub {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
  flex: 1;
  min-height: 2.8em;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-tool__sub-zh {
  line-height: 1.45;
}

.card-tool__sub-en {
  display: block;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  color: #8a8a8a;
}

.card-tool__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.card-tool:hover .card-tool__cta {
  color: var(--ink);
}

.card-tool__cta-arrow {
  transition: transform 0.2s ease;
  font-size: 16px;
  line-height: 1;
}

.empty-state {
  width: 100%;
  text-align: center;
  padding: 48px 24px;
  color: var(--ink-soft);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.empty-state strong {
  color: var(--ink);
}

.empty__en,
.empty-hint__en {
  display: block;
}

.empty-hint__zh,
.empty-hint__en {
  font-weight: 500;
}

.card-tool__cta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.card-tool__cta-en {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.8;
}

.card-tool--compact {
  min-height: calc(var(--card-tool-cover-height) + 148px);
}

.card-tool--compact .card-tool__body {
  padding: 14px 16px 16px;
}

.card-tool--compact .card-tool__title {
  font-size: 15px;
}

.card-tool--compact .card-tool__sub {
  font-size: 12px;
  min-height: 2.8em;
  max-width: 42ch;
}

.card-tool--featured {
  min-height: max(360px, calc(var(--card-tool-cover-height) + 200px));
}

.card-tool--featured .card-tool__title {
  font-size: clamp(18px, 2vw, 22px);
}

.card-tool--featured .card-tool__sub {
  font-size: 14px;
  max-width: 42ch;
}

.card-tool--rest {
  min-height: calc(var(--card-tool-cover-height) + 155px);
}

.card-tool--uniform {
  min-height: calc(var(--card-tool-cover-height) + 160px);
}
