/* 子页面通用样式 */
:root {
  --ink: #1a1d24;
  --ink-soft: #4b5563;
  --brand: #1e4fd6;
  --accent: #f07a1a;
  --bg: #f3f5f8;
  --white: #ffffff;
  --line: #e5e8ef;
  --price: #e11d48;
  --free: #059669;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --max: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.wrap {
  width: min(100% - 1.5rem, var(--max));
  max-width: 100%;
  margin-inline: auto;
}

.page-main {
  flex: 1;
  padding: 1.25rem 0 2.5rem;
  min-width: 0;
  /* clip 不创建 sticky 包含块，避免侧栏被 top 顶下去与搜索错位 */
  overflow-x: clip;
}

.page-hero {
  background:
    linear-gradient(105deg, rgba(12, 28, 68, 0.92) 0%, rgba(30, 79, 214, 0.78) 55%, rgba(15, 40, 90, 0.65) 100%);
  color: #fff;
  padding: 2.4rem 0 2.1rem;
}

.page-hero h1 {
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.45rem;
}

.page-hero p {
  font-size: 0.95rem;
  opacity: 0.78;
  max-width: 36rem;
}

.section { padding: 1.75rem 0 0; }

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.section__title {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.section__title::before {
  content: "";
  width: 4px;
  height: 1.05em;
  background: var(--accent);
  border-radius: 2px;
}

.section__more {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand);
}

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

.cats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

.cat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.1rem 0.85rem;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.cat:hover {
  border-color: rgba(30, 79, 214, 0.35);
  box-shadow: 0 8px 22px rgba(30, 50, 90, 0.08);
  transform: translateY(-2px);
}

.cat__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.7rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: #1e4fd6;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
}

.cat__icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.cat__icon--soft {
  color: inherit;
  box-shadow: 0 6px 14px rgba(20, 40, 80, 0.08);
}

.cat__icon--all {
  background: linear-gradient(145deg, #e8eefc 0%, #d4e0fb 100%);
  color: #1e4fd6;
}
.cat__icon--glyph {
  background: linear-gradient(145deg, #e6f5f1 0%, #cdeedf 100%);
  color: #0d9488;
}
.cat__icon--image {
  background: linear-gradient(145deg, #fdecea 0%, #f8d5c8 100%);
  color: #c2410c;
}
.cat__icon--asset {
  background: linear-gradient(145deg, #eee8fc 0%, #ddd4f7 100%);
  color: #5b21b6;
}

.cat:nth-child(2) .cat__icon:not([class*="cat__icon--"]) { background: #0d9488; }
.cat:nth-child(3) .cat__icon:not([class*="cat__icon--"]) { background: #c2410c; }
.cat:nth-child(4) .cat__icon:not([class*="cat__icon--"]) { background: #4338ca; }
.cat:nth-child(5) .cat__icon:not([class*="cat__icon--"]) { background: #be185d; }

.cat__name { font-size: 0.92rem; font-weight: 700; margin-bottom: 0.2rem; }
.cat__sub { font-size: 0.75rem; color: var(--ink-soft); }

.spotlight {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.spot {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  min-height: 168px;
  color: #fff;
  box-shadow: 0 10px 28px rgba(20, 30, 50, 0.12);
  transition: transform 0.28s var(--ease);
}

.spot:hover { transform: translateY(-4px); }
.spot__bg { position: absolute; inset: 0; }
.spot:nth-child(1) .spot__bg { background: linear-gradient(135deg, #1a3a7a, #3d6fd9); }
.spot:nth-child(2) .spot__bg { background: linear-gradient(135deg, #7a2a18, #d4652a); }
.spot:nth-child(3) .spot__bg { background: linear-gradient(135deg, #14523a, #2a9a6a); }
.spot:nth-child(4) .spot__bg { background: linear-gradient(135deg, #3a2a7a, #6a5ad9); }
.spot:nth-child(5) .spot__bg { background: linear-gradient(135deg, #1a5a6a, #3a9ab0); }
.spot:nth-child(6) .spot__bg { background: linear-gradient(135deg, #6a3a1a, #c48a4a); }

.spot__deco {
  position: absolute;
  right: -10%;
  top: -20%;
  width: 55%;
  height: 90%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.spot__body {
  position: relative;
  z-index: 1;
  padding: 1.25rem 1.2rem;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.spot__tag {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.18rem 0.45rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  margin-bottom: auto;
}

.spot__name { font-size: 1.05rem; font-weight: 700; }
.spot__sub { font-size: 0.8rem; opacity: 0.85; margin-top: 0.25rem; }

.res-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* 案例墙（对齐原站 case-wall） */
.case-wall {
  background: #f5f5f5;
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

.case-wall__inner {
  display: grid;
  gap: 1.25rem;
}

.case-wall__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  background:
    linear-gradient(120deg, rgba(8, 40, 110, 0.72) 0%, rgba(24, 144, 255, 0.55) 55%, rgba(9, 109, 217, 0.7) 100%),
    url("/static/img/cases/banner-bg.jpg") center / cover no-repeat;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(24, 144, 255, 0.28);
  color: #fff;
  overflow: hidden;
  position: relative;
}

.case-wall__chip::before,
.case-wall__tag::before,
.case-detail__tech-tag::before {
  content: none !important;
  display: none !important;
}

.case-wall__chip:empty,
.case-detail__hero-tags .case-wall__chip:empty {
  display: none !important;
}

.case-detail__hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(10, 24, 48, 0.78) 0%, rgba(10, 24, 48, 0.45) 55%, rgba(10, 24, 48, 0.62) 100%),
    url("/static/img/cases/hero-bg.jpg") center / cover no-repeat !important;
}

.case-detail__hero-bg.cover-mall,
.case-detail__hero-bg.cover-kyc,
.case-detail__hero-bg.cover-settle,
.case-detail__hero-bg.cover-tpl1,
.case-detail__hero-bg.cover-risk,
.case-detail__hero-bg.cover-sms,
.case-detail__hero-bg.cover-order,
.case-detail__hero-bg.cover-fan {
  background-image:
    linear-gradient(120deg, rgba(10, 24, 48, 0.78) 0%, rgba(10, 24, 48, 0.45) 55%, rgba(10, 24, 48, 0.62) 100%),
    url("/static/img/cases/hero-bg.jpg") !important;
  background-size: cover !important;
  background-position: center !important;
}

.case-detail__materials {
  display: grid;
  gap: 0.75rem;
}

.case-detail__material {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border: 1px solid #eef0f4;
  border-radius: 10px;
  background: #fafbfc;
}

.case-detail__material-kind {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 0.55rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #e6f4ff;
  color: #1677ff;
}

.case-detail__material-kind.is-backend { background: #f6ffed; color: #389e0d; }
.case-detail__material-kind.is-other { background: #fff7e6; color: #d46b08; }

.case-detail__material-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #1f2937;
}

.case-detail__material-meta {
  font-size: 0.78rem;
  color: #8b93a7;
  margin-top: 0.15rem;
}

.case-detail__material-preview {
  max-width: 88px;
  max-height: 88px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
}

.case-detail__lock {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px dashed #d0d7e2;
  background: #f8fafc;
  padding: 1.25rem;
}

.case-detail__lock-mask {
  filter: blur(5px);
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
}

.case-detail__lock-panel {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.65rem;
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(2px);
}

.case-detail__lock-panel p {
  color: #4b5563;
  font-size: 0.9rem;
}

.case-detail__tech-tag {
  cursor: pointer;
  text-decoration: none;
}

.case-detail__tech-tag:hover {
  background: #1677ff;
  color: #fff;
  border-color: #1677ff;
}

.case-wall__list.is-skeleton .case-wall__card {
  pointer-events: none;
}

.case-wall__skel {
  height: 220px;
  background: linear-gradient(90deg, #eee 25%, #f7f7f7 37%, #eee 63%);
  background-size: 400% 100%;
  animation: caseSkel 1.2s ease infinite;
  border-radius: 8px;
}

@keyframes caseSkel {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

.case-modal[hidden] { display: none !important; }
.case-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.45);
  padding: 1rem;
}
.case-modal__card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 14px;
  padding: 1.35rem 1.4rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}
.case-modal__card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}
.case-modal__card p {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.case-modal__actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.case-modal__actions .case-detail__btn { flex: 1; }

.case-wall__head-text h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.case-wall__head-text p {
  font-size: 0.88rem;
  opacity: 0.92;
  line-height: 1.55;
}

.case-wall__wechat {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
  margin: 0 0.15rem;
  padding: 0;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

.case-wall__wechat:hover { opacity: 0.85; }

.case-wall__publish {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  background: #fff;
  color: #1890ff;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.case-wall__publish:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

.case-wall__filters {
  background: #fff;
  border-radius: 8px;
  padding: 1.15rem 1.25rem;
}

.case-wall__filter-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.case-wall__filter-row + .case-wall__filter-row {
  margin-top: 0.9rem;
}

.case-wall__filter-label {
  font-size: 0.88rem;
  color: #333;
  white-space: nowrap;
  line-height: 2;
}

.case-wall__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.case-wall__tag {
  padding: 0.35rem 0.95rem;
  background: #f5f5f5;
  border-radius: 999px;
  font-size: 0.88rem;
  color: #666;
  transition: background 0.2s, color 0.2s;
}

.case-wall__tag:hover {
  background: #e6f7ff;
  color: #007aff;
}

.case-wall__tag.is-active {
  background: #007aff;
  color: #fff;
}

.case-wall__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.25rem;
}

.case-wall__card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.case-wall__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.case-wall__cover {
  width: 100%;
  height: 200px;
  background: #f5f5f5;
}

.case-wall__info {
  padding: 1.15rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.case-wall__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.55rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-wall__desc {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 2.8em;
}

.case-wall__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.case-wall__chip {
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

.case-wall__chip--industry {
  background: #e6f7ff;
  color: #1890ff;
}

.case-wall__chip--type {
  background: #f0f5ff;
  color: #597ef7;
}

.case-wall__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: #999;
  padding-top: 0.85rem;
  border-top: 1px solid #f0f0f0;
  margin-top: auto;
}

.case-wall__meta span:first-child { color: #666; }

.case-wall__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 1rem;
  color: #999;
  font-size: 0.9rem;
}

/* 案例详情（宣传转化向） */
.case-detail {
  background: #f5f5f5;
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
}

.case-detail__inner {
  max-width: 1120px;
}

.case-detail__back { margin-bottom: 1rem; }

.case-detail__back-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 0.88rem;
  color: #333;
}

.case-detail__back-btn:hover {
  border-color: #007aff;
  background: #f5f5f5;
}

.case-detail__loading,
.case-detail__empty-tip {
  text-align: center;
  padding: 3rem 1rem;
  color: #666;
  font-size: 0.9rem;
}

.case-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.15rem;
  align-items: start;
}

.case-detail__card {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem 1.6rem;
  margin-bottom: 1rem;
}

.case-detail__hero {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 1rem;
  min-height: 280px;
  color: #fff;
}

.case-detail__hero-bg {
  position: absolute;
  inset: 0;
}

.case-detail__hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10, 24, 48, 0.72) 0%, rgba(10, 24, 48, 0.38) 55%, rgba(10, 24, 48, 0.55) 100%);
}

.case-detail__hero-body {
  position: relative;
  z-index: 1;
  padding: 1.75rem 1.85rem 1.85rem;
  display: grid;
  gap: 0.85rem;
}

.case-detail__hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.case-detail__hero h1 {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 700;
  line-height: 1.3;
  max-width: 36rem;
}

.case-detail__hero-summary {
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.92;
  max-width: 40rem;
}

.case-detail__hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  font-size: 0.82rem;
  opacity: 0.88;
}

.case-detail__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.case-detail__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}

.case-detail__btn:hover { transform: translateY(-1px); }

.case-detail__btn--block {
  width: 100%;
  margin-top: 0.55rem;
}

.case-detail__btn--primary {
  background: #fff;
  color: #096dd9;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.case-detail__btn--light {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.case-detail__btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.case-detail__btn--accent {
  background: var(--brand, #1e4fd6);
  color: #fff;
}

.case-detail__btn--accent:hover { background: #163db0; }

.case-detail__btn--outline {
  background: #fff;
  color: #333;
  border: 1px solid #e5e8ef;
}

.case-detail__btn--outline:hover {
  border-color: #007aff;
  color: #007aff;
}

.case-detail__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.case-detail__metric {
  background: #fff;
  border-radius: 10px;
  padding: 1rem 1.1rem;
  text-align: center;
  border: 1px solid #eef1f6;
}

.case-detail__metric-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: #096dd9;
  margin-bottom: 0.25rem;
}

.case-detail__metric-label {
  font-size: 0.8rem;
  color: #8a8f98;
}

.case-detail__section-title {
  font-size: 1.1rem;
  color: #333;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #007aff;
}

.case-detail__body {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.8;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.case-detail__body p { margin: 0.65rem 0; }
.case-detail__body img,
.case-detail__body video,
.case-detail__body iframe {
  max-width: 100%;
  height: auto;
}
.case-detail__body h3 {
  font-size: 1.02rem;
  color: #333;
  font-weight: 700;
  margin: 1.15rem 0 0.55rem;
}

.case-detail__features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.case-detail__feature {
  background: #f8fafc;
  border-radius: 10px;
  padding: 1rem 1.05rem;
  border: 1px solid #eef2f7;
  transition: transform 0.2s, box-shadow 0.2s;
}

.case-detail__feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(20, 30, 50, 0.06);
}

.case-detail__feature-no {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #007aff;
  margin-bottom: 0.45rem;
}

.case-detail__feature-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.35rem;
}

.case-detail__feature-desc {
  font-size: 0.82rem;
  color: #6b7280;
  line-height: 1.55;
}

.case-detail__tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.case-detail__tech-tag {
  padding: 0.45rem 0.95rem;
  background: #f0f5ff;
  color: #597ef7;
  border-radius: 999px;
  font-size: 0.88rem;
}

.case-detail__demo-card {
  background: linear-gradient(145deg, #f0f7ff 0%, #fff 55%);
  border: 1px solid rgba(24, 144, 255, 0.18);
}

.case-detail__demo-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.case-detail__demo-head .case-detail__section-title {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0.35rem;
}

.case-detail__demo-tip,
.case-detail__demo-remark,
.case-detail__demo-linkline {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.6;
}

.case-detail__demo-remark { margin-top: 0.85rem; }
.case-detail__demo-linkline { margin-top: 0.55rem; word-break: break-all; }
.case-detail__demo-linkline a { color: #1890ff; text-decoration: underline; }

.case-detail__aside {
  position: sticky;
  top: 5.5rem;
  display: grid;
  gap: 0.85rem;
}

.case-detail__product,
.case-detail__aside-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.15rem 1.2rem;
  border: 1px solid #eef1f6;
}

.case-detail__product-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #8a8f98;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.case-detail__aside-tip {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.6;
}

.case-detail__product-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
}

.case-detail__product-card:hover { border-color: rgba(30, 79, 214, 0.35); }

.case-detail__product-cover {
  width: 72px;
  height: 72px;
  border-radius: 8px;
}

.case-detail__product-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.2rem;
}

.case-detail__product-meta {
  font-size: 0.75rem;
  color: #9aa3af;
  margin-bottom: 0.25rem;
}

.case-detail__product-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--price, #e11d48);
}

.case-detail__aside .case-detail__btn--primary {
  background: #007aff;
  color: #fff;
  box-shadow: none;
}

.case-detail__aside .case-detail__btn--primary:hover { background: #0066d6; }

.case-detail__related {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.9rem;
}

.case-detail__related-item {
  display: flex;
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.case-detail__related-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.case-detail__related-cover {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
}

.case-detail__related-info {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.45rem;
}

.case-detail__related-title {
  font-size: 0.86rem;
  color: #333;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-detail__related-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.res-card {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.res-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(20, 30, 50, 0.1);
}

.res-card__cover {
  position: relative;
  width: 100%;
  height: 132px;
  color: #fff;
  overflow: hidden;
}
.res-card__cover.is-ratio-4-3 {
  aspect-ratio: auto;
  height: 132px;
}
.res-card__cover.is-ratio-1-1 {
  aspect-ratio: 1 / 1;
  height: auto;
}
.res-card__cover > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.res-card__badge {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem 0.35rem 0.45rem;
  background: var(--free);
  color: #fff;
  border-radius: 0 0 8px 0;
  z-index: 1;
}
.res-card__badge.is-paid { background: var(--accent); }
.res-card__cover-inner {
  position: absolute;
  inset: 0;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.res-card__cover-title { font-size: 0.98rem; font-weight: 700; }

.cover-field { background: linear-gradient(135deg, #3d6f92, #6fa0c4); }
.cover-ads { background: linear-gradient(135deg, #2f7a4a, #6aaf7e); }
.cover-audit { background: linear-gradient(135deg, #4a6b8a, #7a9bb5); }
.cover-mall { background: linear-gradient(135deg, #b07848, #d4a574); }
.cover-order { background: linear-gradient(135deg, #2d6a7a, #5a9eae); }
.cover-pool { background: linear-gradient(135deg, #5a6e8a, #8a9cb5); }
.cover-kyc { background: linear-gradient(135deg, #1a7a6e, #4aada0); }
.cover-logistics { background: linear-gradient(135deg, #6a5a4a, #a08a72); }
.cover-settle { background: linear-gradient(135deg, #4a5a6e, #7a8fa5); }
.cover-risk { background: linear-gradient(135deg, #6a4a4a, #a07878); }
.cover-fan { background: linear-gradient(135deg, #3a6a8a, #6a9ab5); }
.cover-sms { background: linear-gradient(135deg, #2a6a5a, #5a9a88); }
.cover-tpl1 { background: linear-gradient(135deg, #4a7396, #87aecb); }
.cover-tpl2 { background: linear-gradient(135deg, #5a6a8a, #8a9ab5); }
.cover-tpl3 { background: linear-gradient(135deg, #c46a3a, #e09a6e); }
.cover-tpl4 { background: linear-gradient(135deg, #3a7d74, #6fb5ab); }

.res-card__body {
  padding: 0.85rem 0.9rem 0.95rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.35rem;
}
.res-card__cats { font-size: 0.72rem; color: #9aa3af; }
.res-card__name {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}
.res-card__meta {
  margin-top: auto;
  padding-top: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #9aa3af;
}
.res-card__price { font-weight: 700; color: var(--price); font-size: 0.9rem; }
.res-card__price.is-free {
  color: var(--free);
  background: #ecfdf5;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  font-size: 0.78rem;
}

.task-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.task {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.task:hover {
  border-color: rgba(30, 79, 214, 0.4);
  box-shadow: 0 8px 22px rgba(26, 29, 36, 0.06);
}
.task__main { min-width: 0; flex: 1; }
.task__top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.4rem;
}
.task__cat,
.task__status,
.task__skill {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 650;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}
.task__cat {
  background: rgba(30, 79, 214, 0.08);
  color: var(--brand);
}
.task__status {
  background: #ecfdf5;
  color: #047857;
}
.task__status.is-busy {
  background: #fff7ed;
  color: #c2410c;
}
.task__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  line-height: 1.35;
}
.task__summary {
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 0.55rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.task__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.45rem;
}
.task__skill {
  background: #f3f5f8;
  color: #5c636c;
  font-weight: 500;
}
.task__sub { font-size: 0.78rem; color: #8a8f98; }
.task__aside {
  flex-shrink: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.65rem;
  min-width: 8rem;
}
.task__budget {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent);
}
.task__cta {
  min-width: 5.5rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  border-radius: 8px;
}

.page-hero__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.task-board {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  justify-content: start;
  text-align: left;
}

.task-side {
  width: 13rem;
  max-width: 13rem;
  box-sizing: border-box;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.7rem;
  margin-top: 0;
  align-self: start;
  position: sticky;
  top: 4.5rem;
  max-height: calc(100vh - 5.25rem);
  overflow-y: auto;
  text-align: left;
}

.task-side__nav {
  display: grid;
  gap: 0.42rem;
}

.task-side__title {
  display: none;
}

.task-side__item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 2.95rem;
  box-sizing: border-box;
  text-align: left;
  border: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.72rem 0.95rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-soft);
}

.task-side__item:hover { background: #f3f5f8; color: var(--brand); }

.task-side__item.is-active {
  background: rgba(30, 79, 214, 0.08);
  color: var(--brand);
}

.task-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: left;
}

/* 筛选+列表区内滚：滚到底后再带动整页（页脚） */
.task-panel {
  min-height: 0;
  max-height: calc(100vh - 12.5rem);
  overflow-y: auto;
  overscroll-behavior-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
  margin-top: 0;
}

.task-search {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
}

.task-search input {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  height: 2.5rem;
  box-sizing: border-box;
  border-radius: 8px;
  padding: 0 1rem;
}

.task-search__actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.65rem;
  margin-left: auto;
}

.task-search__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  height: 2.5rem;
  padding: 0 1.15rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  box-sizing: border-box;
  text-decoration: none;
}

.task-search .task-search__btn {
  border: 0;
  cursor: pointer;
}

.task-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.task-step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1rem 1.2rem;
}

.task-step__num {
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.task-step h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.task-step p {
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.task-help {
  position: relative;
  padding-top: 2.4rem;
  padding-bottom: 2.6rem;
  background:
    linear-gradient(180deg, rgba(247, 249, 252, 0.72), rgba(247, 249, 252, 0.88)),
    url("../img/task-help-bg.svg") center / cover no-repeat;
  border-top: 1px solid rgba(30, 79, 214, 0.06);
  border-bottom: 1px solid rgba(30, 79, 214, 0.06);
}

.task-bottom {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.task-tips,
.task-faq {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(30, 79, 214, 0.1);
  border-radius: 12px;
  padding: 1.25rem 1.3rem 1.4rem;
  box-shadow: 0 10px 28px rgba(30, 50, 90, 0.05);
  backdrop-filter: blur(4px);
}

.task-tips .section__title,
.task-faq .section__title {
  margin-bottom: 1rem;
}

.task-tips__list {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  padding: 0;
  margin: 0;
  flex: 1;
}

.task-tips__list li {
  margin: 0;
  padding: 0;
}

.task-tips__link,
.task-faq__link {
  display: grid;
  gap: 0.4rem;
  padding: 0.95rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
  background: rgba(248, 250, 252, 0.85);
}

.task-tips__link:hover,
.task-faq__link:hover {
  background: #fff;
  border-color: rgba(30, 79, 214, 0.16);
}

.task-tips__link-title,
.task-faq__link-title {
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.4;
}

.task-tips__link-desc,
.task-faq__link-desc {
  font-size: 0.82rem;
  color: #8a8f98;
  line-height: 1.55;
}

.task-help__btn {
  justify-self: start;
  margin-top: 0.35rem;
  min-width: 5.5rem;
  height: 2rem;
  padding: 0 0.9rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  box-sizing: border-box;
}

.task-faq__list {
  display: grid;
  gap: 0.85rem;
  flex: 1;
  align-content: start;
}

.task-faq__link {
  border-top: 0;
  border-radius: 10px;
  padding: 0.95rem 1rem;
}

.task-faq__link:first-child {
  padding-top: 0.95rem;
}

.task-faq__link:hover {
  background: #fff;
}

.task-faq__link:hover .task-faq__link-title {
  color: var(--brand);
}

.contact-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  outline: none;
  background: #fff;
}

.contact-form select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(30, 79, 214, 0.12);
}

/* 资讯页加宽，贴齐顶栏可用宽度 */
body[data-page="news"] {
  --max: 1380px;
}

.news-layout {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr) minmax(15rem, 18rem);
  gap: 1.15rem;
  align-items: start;
  justify-content: start;
  text-align: left;
}

.news-cats-side {
  width: 13rem;
  max-width: 13rem;
  box-sizing: border-box;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.7rem;
  margin-top: 0;
  align-self: start;
  position: sticky;
  top: 4.5rem;
  max-height: calc(100vh - 5.25rem);
  overflow-y: auto;
  text-align: left;
}

.news-cats-side__title {
  display: none;
}

.news-cats {
  display: grid;
  gap: 0.42rem;
}

.news-cats__item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 2.95rem;
  box-sizing: border-box;
  text-align: left;
  border: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.72rem 0.95rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-soft);
}

.news-cats__item:hover {
  background: #f3f5f8;
  color: var(--brand);
}

.news-cats__item.is-active {
  background: rgba(30, 79, 214, 0.08);
  color: var(--brand);
}

.news-center {
  min-width: 0;
}

.news-search {
  display: flex;
  gap: 0.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.85rem;
}

.news-search input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font: inherit;
  outline: none;
  background: #f5f7fa;
}

.news-search input:focus {
  border-color: var(--brand);
  background: #fff;
}

.news-search button {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
}

.news-count {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}

.news-count strong { color: var(--ink); }

.news-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(200px, 0.85fr);
  gap: 1rem;
  align-items: start;
}

.news-main,
.news-side {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.15rem 1.25rem;
}

.news-side {
  position: sticky;
  top: 4.5rem;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin-top: 0;
  align-self: start;
}

.news-side__block {
  width: 100%;
  min-width: 0;
}

.news-side__block + .news-side__block {
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.news-side h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.news-side__empty {
  font-size: 0.85rem;
  color: #9aa3af;
}

.news-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.4rem;
  width: 100%;
}

.news-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  flex: 0 1 auto;
  box-sizing: border-box;
  padding: 0.32rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #f7f8fa;
  font-size: 0.8rem;
  font-family: inherit;
  line-height: 1.3;
  color: var(--ink-soft);
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-tag:hover {
  color: var(--brand);
  border-color: rgba(30, 79, 214, 0.3);
}

.news-tag.is-active {
  background: rgba(30, 79, 214, 0.1);
  border-color: rgba(30, 79, 214, 0.35);
  color: var(--brand);
  font-weight: 600;
}

.news-item {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.news-item:last-child { border-bottom: none; }
.news-item__title { font-size: 0.92rem; font-weight: 600; margin-bottom: 0.25rem; }
.news-item:hover .news-item__title { color: var(--brand); }
.news-item__meta { font-size: 0.75rem; color: #9aa3af; }

.news-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.45rem;
}

.news-item__tag {
  font-size: 0.7rem;
  color: #6b7280;
  background: #f3f5f8;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
}

/* 资讯列表：左图右文卡片 */
.news-center .news-main {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}
.news-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 1rem 1.15rem;
  align-items: stretch;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: background 0.15s ease;
}
.news-card:last-child { border-bottom: none; }
.news-card:hover .news-card__title { color: var(--brand); }
.news-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(145deg, #d9e3fb 0%, #eef2f8 55%, #dce4f5 100%);
  flex-shrink: 0;
}
.news-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-card__media--empty .news-card__img { display: none; }
.news-card__media--empty::after {
  content: attr(data-cat);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  color: rgba(30, 79, 214, 0.45);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.35;
}
.news-card__badge {
  position: absolute;
  left: 0.45rem;
  top: 0.45rem;
  z-index: 1;
  max-width: calc(100% - 0.9rem);
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  background: rgba(26, 29, 36, 0.72);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.news-card__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  padding: 0.05rem 0;
}
.news-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: #2f3a8f;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card__pin {
  display: inline-block;
  vertical-align: 0.12em;
  margin-right: 0.4rem;
  padding: 0.08rem 0.35rem;
  border-radius: 3px;
  background: #5b6cff;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
}
.news-card__summary {
  margin: 0.45rem 0 0;
  flex: 1;
  font-size: 0.86rem;
  line-height: 1.65;
  color: #6b7280;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.7rem;
  flex-wrap: wrap;
}
.news-card__author {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  font-size: 0.78rem;
  color: #9aa3af;
}
.news-card__avatar {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, #4f6ef7, #1e4fd6);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
}
.news-card__name {
  font-weight: 500;
  color: #8b93a1;
  max-width: 6.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-card__date { white-space: nowrap; }
.news-card__stats {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #9aa3af;
  font-size: 0.78rem;
}
.news-card__stat {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.news-card__stat svg { opacity: 0.75; }

@media (max-width: 720px) {
  .news-card {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.9rem 0;
  }
  .news-card__title { font-size: 0.95rem; }
  .news-card__summary { -webkit-line-clamp: 2; font-size: 0.8rem; }
  .news-card__foot { margin-top: 0.5rem; }
  .news-card__date { display: none; }
}

.news-empty {
  padding: 2.5rem 1rem;
  text-align: center;
  color: #9aa3af;
  font-size: 0.9rem;
}

.rank-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.55rem 0;
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.45;
  width: 100%;
  box-sizing: border-box;
  text-decoration: none;
}
.rank-item:hover { color: var(--brand); }
.rank-item > span:first-child {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 4px;
  background: #eef1f6;
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.rank-item > span:last-child {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}
.rank-item:nth-child(-n+3) > span:first-child { background: var(--accent); color: #fff; }

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem 1.4rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.contact-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.contact-item p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.contact-form {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.85rem;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  color: #5c636c;
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(30, 79, 214, 0.12);
}

.contact-form textarea { min-height: 120px; resize: vertical; }

.contact-form button {
  justify-self: start;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.35rem;
  border-radius: 8px;
}

.contact-form button:hover { background: #163db0; }

@media (max-width: 1024px) {
  .res-grid { grid-template-columns: repeat(3, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .news-layout {
    grid-template-columns: 10rem minmax(0, 1fr);
  }
  .news-side {
    grid-column: 1 / -1;
    position: static;
    width: 100%;
  }
  .case-wall__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-detail__layout { grid-template-columns: 1fr; }
  .case-detail__aside { position: static; }
  .case-detail__features { grid-template-columns: 1fr 1fr; }
}

/* 资讯详情 */
.article-layout {
  padding: 1.75rem 0 3rem;
}
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1.5rem;
  align-items: start;
}
.article-main {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem 1.6rem 1.75rem;
  overflow-x: hidden;
}
.article-aside {
  position: sticky;
  top: 5.5rem;
}
.article-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.82rem;
  color: #9aa3af;
  margin-bottom: 1.25rem;
}
.article-crumb a:hover { color: var(--brand); }
.article-head { margin-bottom: 1.75rem; }
.article-title {
  font-size: clamp(1.45rem, 3.5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.article-meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem 1.15rem;
  font-size: 0.84rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1rem;
  overflow: hidden;
}
.article-meta__item {
  flex-shrink: 0;
  white-space: nowrap;
}
.article-meta__item--tags {
  flex: 1 1 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
  overflow: hidden;
}
.article-meta__tags {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.article-meta__item em {
  font-style: normal;
  color: #9aa3af;
  font-weight: 500;
}
.article-meta__tag {
  color: var(--brand);
  font-weight: 500;
  white-space: nowrap;
}
.article-meta__tag:hover { text-decoration: underline; }
.article-meta__tag--more {
  font-weight: 600;
  appearance: none;
  border: 0;
  margin: 0;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #eef1f6;
  color: #6b7280;
  cursor: pointer;
  line-height: 1.4;
  font: inherit;
}
.article-meta__tag--more:hover {
  background: #e4e9f2;
  color: var(--brand);
  text-decoration: none;
}
.article-meta__tag-sep { color: #c5cad3; margin: 0 0.2rem; }

.article-aside__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.article-aside__cat {
  padding: 0.28rem 0.7rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #f7f8fa;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.article-aside__cat:hover {
  color: var(--brand);
  border-color: rgba(30, 79, 214, 0.3);
}

.article-aside__cat.is-active {
  background: rgba(30, 79, 214, 0.1);
  border-color: rgba(30, 79, 214, 0.35);
  color: var(--brand);
  font-weight: 600;
}
.article-summary {
  font-size: 0.98rem;
  color: var(--ink-soft, #4b5563);
  line-height: 1.7;
  padding: 0.9rem 1rem;
  background: rgba(30, 79, 214, 0.05);
  border-left: 3px solid var(--brand);
}
.article-body {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink, #1a1d24);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.article-body p { margin: 0 0 1.1rem; }
.article-body img,
.article-body video,
.article-body iframe,
.article-body embed,
.article-body object,
.article-body svg {
  max-width: 100%;
  height: auto;
}
.article-body table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}
.article-body pre {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.article-body h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.75rem 0 0.75rem;
  letter-spacing: -0.01em;
}
.article-body a,
.article-body a.cpy-ext-link {
  color: #1e4fd6;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(30, 79, 214, 0.45);
  word-break: break-all;
  transition: color 0.15s ease, text-decoration-color 0.15s ease, background 0.15s ease;
  background: linear-gradient(180deg, rgba(30, 79, 214, 0.08), rgba(30, 79, 214, 0.08));
  border-radius: 2px;
  padding: 0 2px;
}
.article-body a:hover,
.article-body a.cpy-ext-link:hover {
  color: #163db0;
  text-decoration-color: rgba(22, 61, 176, 0.75);
  background: rgba(30, 79, 214, 0.12);
}

.article-disclaimer {
  margin: 1.75rem 0 0;
  padding: 0.9rem 1rem;
  background: #f8fafc;
  border: 1px solid #e8ecf2;
  border-left: 3px solid #94a3b8;
  border-radius: 8px;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.7;
}
.article-disclaimer__title {
  display: block;
  font-weight: 700;
  color: #475569;
  margin-bottom: 0.25rem;
  font-size: 0.84rem;
}

.article-body.anti-scrape {
  position: relative;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.article-body.anti-scrape a,
.article-body.anti-scrape input,
.article-body.anti-scrape textarea {
  -webkit-user-select: text;
  user-select: text;
}
.anti-scrape-wm {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-content: space-around;
  justify-content: space-around;
  overflow: hidden;
  opacity: 0.09;
  transform: rotate(-18deg) scale(1.15);
  user-select: none;
}
.anti-scrape-wm span {
  flex: 0 0 42%;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #1f2d3d;
  padding: 1.4rem 0.5rem;
  white-space: nowrap;
}
.anti-scrape-lock {
  color: #6b7280;
  padding: 1.5rem 0;
  text-align: center;
}
.anti-scrape-toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%) translateY(12px);
  background: rgba(31, 45, 61, 0.92);
  color: #fff;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-size: 0.86rem;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.anti-scrape-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.article-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 2.25rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}
.article-pager__item a,
.article-pager__empty {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  min-height: 4.6rem;
  border: 1px solid transparent;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.article-pager__item:first-child a,
.article-pager__item:first-child .article-pager__empty {
  background: linear-gradient(145deg, #eef3ff 0%, #e4ecfb 55%, #dce7f8 100%);
  border-color: rgba(30, 79, 214, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.article-pager__item--next a,
.article-pager__item--next .article-pager__empty {
  background: linear-gradient(145deg, #fff6ee 0%, #ffedd9 55%, #ffe4c8 100%);
  border-color: rgba(240, 122, 26, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  text-align: right;
  align-items: flex-end;
}
.article-pager__item a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 29, 36, 0.08);
}
.article-pager__item:first-child a:hover {
  border-color: rgba(30, 79, 214, 0.4);
}
.article-pager__item--next a:hover {
  border-color: rgba(240, 122, 26, 0.45);
}
.article-pager__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.article-pager__item:first-child .article-pager__label { color: #3b6fd4; }
.article-pager__item--next .article-pager__label { color: #d97706; }
.article-pager__title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}
.article-pager__item a:hover .article-pager__title { color: var(--brand); }
.article-pager__item--next a:hover .article-pager__title { color: #c2410c; }
.article-pager__empty .article-pager__title {
  color: #a8b0bd;
  font-weight: 500;
}
.article-pager__item:first-child .article-pager__empty {
  opacity: 0.72;
}
.article-pager__item--next .article-pager__empty {
  opacity: 0.72;
}

.article-related {
  margin-top: 1.75rem;
}
.article-related__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}
.article-related__list {
  display: grid;
  gap: 0.55rem;
}
.article-related__item {
  display: block;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.article-related__item:hover {
  border-color: rgba(30, 79, 214, 0.35);
  background: rgba(30, 79, 214, 0.03);
}
.article-related__item-title {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}
.article-related__item:hover .article-related__item-title { color: var(--brand); }
.article-related__item-meta {
  font-size: 0.75rem;
  color: #9aa3af;
}

.article-back {
  margin-top: 1.5rem;
}
.article-back .btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
.article-back .btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.article-aside .news-tag {
  text-decoration: none;
  cursor: pointer;
}

/* 兼容旧类名（若其他页仍引用） */
.article {
  padding: 1.75rem 0 3rem;
  max-width: 760px;
}
.article-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line, #e5e8ef);
}

/* 通用详情壳（图标/任务/案例/资料） */
.detail-shell { padding: 1.5rem 0 3rem; }
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
  align-items: start;
}
.task-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  font-size: 0.82rem;
  color: #9aa3af;
  margin: 0 0 0.15rem;
  line-height: 1.5;
}
.task-detail-meta__item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}
.task-detail-meta__k {
  color: #9aa3af;
}
.task-detail-meta__k::after {
  content: "：";
}
.task-detail-meta__v {
  color: var(--ink-soft, #4b5563);
  font-weight: 500;
}
.detail-title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin: 0.85rem 0 0.65rem;
}
.detail-summary {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  background: rgba(30, 79, 214, 0.05);
  border-left: 3px solid var(--brand);
}
.detail-body { font-size: 0.98rem; line-height: 1.85; }
.detail-body p { margin: 0 0 1rem; }
.detail-body h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.65rem;
}
.detail-subhead {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.65rem;
}
.detail-feat {
  list-style: none;
  display: grid;
  gap: 0.45rem;
}
.detail-feat li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.detail-feat li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.detail-cover {
  position: relative;
  border-radius: 12px;
  min-height: 160px;
  color: #fff;
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.detail-cover__badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
}
.detail-cover__name { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.25rem; }
.detail-cover__tag { font-size: 0.85rem; opacity: 0.85; }
.detail-aside {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.15rem;
  position: sticky;
  top: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.detail-price {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--price);
}
.detail-price.is-free { color: var(--free); }
.detail-price.accent { color: var(--accent); }
.detail-aside__meta { font-size: 0.82rem; color: #9aa3af; line-height: 1.5; }
.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.58rem 1.1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #163db0; }
.btn-outline {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-block { width: 100%; }
.form-tip { font-size: 0.88rem; color: var(--free); margin-top: 0.5rem; }
.count-inline { font-size: 0.85rem; color: #9aa3af; }
.count-inline strong { color: var(--ink); }

.cat.is-filter {
  cursor: pointer;
  font: inherit;
  color: inherit;
  width: 100%;
}
.cat.is-filter.is-active {
  border-color: rgba(30, 79, 214, 0.45);
  box-shadow: 0 8px 22px rgba(30, 50, 90, 0.08);
}
.cat.is-filter.is-active .cat__name { color: var(--brand); }

.links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
.link-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.1rem 1.15rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.link-card:hover {
  border-color: rgba(30, 79, 214, 0.4);
  box-shadow: 0 8px 22px rgba(30, 50, 90, 0.08);
}
.link-card__name { font-weight: 700; margin-bottom: 0.35rem; }
.link-card__desc { font-size: 0.82rem; color: var(--ink-soft); }

.cover-icon1 { background: linear-gradient(135deg, #2f6fad 0%, #6aa3d9 100%); }
.cover-icon2 { background: linear-gradient(135deg, #3d8b5a 0%, #7cbc8e 100%); }
.cover-icon3 { background: linear-gradient(135deg, #c45a5a 0%, #e08a8a 100%); }
.cover-icon4 { background: linear-gradient(135deg, #4a6fad 0%, #7a9ad9 100%); }
.cover-icon5 { background: linear-gradient(135deg, #8a4f9a 0%, #c08ad0 100%); }
.cover-icon6 { background: linear-gradient(135deg, #b86a2e 0%, #dfa06a 100%); }
.cover-plug1 { background: linear-gradient(135deg, #2f6fad 0%, #6aa3d9 100%); }
.cover-plug2 { background: linear-gradient(135deg, #5a4f8f 0%, #9588c4 100%); }
.cover-plug3 { background: linear-gradient(135deg, #b86a2e 0%, #dfa06a 100%); }
.cover-plug4 { background: linear-gradient(135deg, #2d8a6a 0%, #6bc4a4 100%); }

/* 图标 / 图片 / 素材卡片 */
.cats--4 { grid-template-columns: repeat(4, 1fr); }
.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.icon-pack {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.2s;
}
.icon-pack:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(20, 30, 50, 0.1);
  border-color: rgba(30, 79, 214, 0.28);
}
.icon-pack__preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
  padding: 0.95rem;
  min-height: 132px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.2)),
    repeating-linear-gradient(0deg, transparent, transparent 11px, rgba(0,0,0,0.03) 11px, rgba(0,0,0,0.03) 12px),
    repeating-linear-gradient(90deg, transparent, transparent 11px, rgba(0,0,0,0.03) 11px, rgba(0,0,0,0.03) 12px);
}
.tone-blue .icon-pack__preview,
.icon-preview-board.tone-blue { background-color: #e8eefc; }
.tone-teal .icon-pack__preview,
.icon-preview-board.tone-teal { background-color: #e6f5f1; }
.tone-coral .icon-pack__preview,
.icon-preview-board.tone-coral { background-color: #fdecea; }
.tone-slate .icon-pack__preview,
.icon-preview-board.tone-slate { background-color: #eef1f5; }
.tone-violet .icon-pack__preview,
.icon-preview-board.tone-violet { background-color: #f0eaf8; }
.tone-green .icon-pack__preview,
.icon-preview-board.tone-green { background-color: #e8f6ee; }
.tone-amber .icon-pack__preview,
.icon-preview-board.tone-amber { background-color: #fff4e5; }
.tone-indigo .icon-pack__preview,
.icon-preview-board.tone-indigo { background-color: #e9ecf8; }

.icon-pack__glyph {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(26, 29, 36, 0.06);
  font-size: 1.05rem;
  color: #2a3140;
  box-shadow: 0 1px 2px rgba(20, 30, 50, 0.04);
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Segoe UI Symbol", var(--font);
}
.icon-pack__body { padding: 0.9rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.icon-pack__top { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.icon-pack__kind,
.icon-pack__cat {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}
.icon-pack__kind { background: rgba(30, 79, 214, 0.1); color: var(--brand); }
.icon-pack__cat { background: #f3f5f8; color: #6b7280; }
.icon-pack__name { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.icon-pack__desc {
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}
.icon-pack__meta {
  margin-top: auto;
  padding-top: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #9aa3af;
}

.unit-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.unit-tabs .chip {
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.unit-tabs .chip.is-active {
  background: rgba(30, 79, 214, 0.1);
  border-color: rgba(30, 79, 214, 0.35);
  color: var(--brand);
}

.icon-pack__preview.is-single {
  display: grid;
  place-items: center;
  grid-template-columns: 1fr;
  min-height: 148px;
}
.icon-pack__glyph.is-hero {
  width: 72px;
  height: 72px;
  font-size: 2rem;
  border-radius: 16px;
}

.icon-single-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 220px;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-bottom: 0.5rem;
  padding: 1.5rem;
}
.icon-single-stage__glyph {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(26, 29, 36, 0.06);
  font-size: 3rem;
  box-shadow: 0 8px 24px rgba(20, 30, 50, 0.08);
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Segoe UI Symbol", var(--font);
}
.icon-single-stage__hint {
  font-size: 0.8rem;
  color: #9aa3af;
}

.single-related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}
.single-related__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  transition: border-color 0.2s;
}
.single-related__item:hover { border-color: rgba(30, 79, 214, 0.4); }
.single-related__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  flex-shrink: 0;
}
.single-related__glyph {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f5f7fa;
  font-size: 1.05rem;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Segoe UI Symbol", var(--font);
}
.single-related__text {
  min-width: 0;
  line-height: 1.35;
}

.icon-preview-board__cell {
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  min-height: 64px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(26, 29, 36, 0.06);
  color: #2a3140;
  box-shadow: 0 1px 2px rgba(20, 30, 50, 0.04);
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Segoe UI Symbol", var(--font);
}
.icon-preview-board__glyph {
  line-height: 1;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Segoe UI Symbol", var(--font);
}

.icon-copyright {
  margin: 0.25rem 0 1.35rem;
}
.icon-copyright__no {
  margin: -0.25rem 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}
.icon-copyright__image {
  max-width: 28rem;
}
.icon-copyright__image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fafbfc;
  box-shadow: 0 2px 10px rgba(20, 30, 40, 0.06);
}

.icon-preview-board {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.55rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-bottom: 0.5rem;
}
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  margin-top: 1.5rem;
  padding: 0.5rem 0 0.25rem;
}

.pager[hidden] { display: none !important; }

.pager__btn {
  min-width: 2.1rem;
  height: 2.1rem;
  padding: 0 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
}

.pager__btn:hover:not(:disabled):not(.is-active) {
  border-color: rgba(30, 79, 214, 0.45);
  color: var(--brand);
}

.pager__btn.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 650;
}

.pager__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pager__ellipsis {
  color: #8a8f98;
  padding: 0 0.2rem;
}

.pager__info {
  margin-left: 0.5rem;
  font-size: 0.82rem;
  color: #8a8f98;
}

.empty-tip {
  color: #8a8f98;
  padding: 1.25rem 0;
  text-align: center;
}

/* 资料下载 · 对齐原资源页 */
.res-layout {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  justify-content: start;
  padding-top: 0;
  text-align: left;
}

.res-side {
  width: 13rem;
  max-width: 13rem;
  box-sizing: border-box;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.7rem;
  margin-top: 0;
  align-self: start;
  position: sticky;
  top: 4.5rem;
  max-height: calc(100vh - 5.25rem);
  overflow-y: auto;
  text-align: left;
}

.res-main {
  min-width: 0;
  margin-top: 0;
  align-self: start;
  text-align: left;
}

.res-side__title {
  display: none;
}

.res-side__item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 2.95rem;
  box-sizing: border-box;
  text-align: left;
  border: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.72rem 0.95rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-soft);
}

.res-side__item:hover { background: #f3f5f8; color: var(--brand); }

.res-side__item.is-active {
  background: rgba(30, 79, 214, 0.08);
  color: var(--brand);
}

.res-search {
  display: flex;
  gap: 0.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.85rem;
}

.res-search input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font: inherit;
  outline: none;
  background: #f5f7fa;
}

.res-search input:focus {
  border-color: var(--brand);
  background: #fff;
}

.res-search button {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
}

.res-filters {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.95rem 1rem;
  margin-bottom: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.res-filters__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.res-filters__row[data-filter="sort"] {
  padding-top: 0.15rem;
}

.res-filters__label {
  width: 2.5rem;
  font-size: 0.88rem;
  color: #666;
}

.res-filters__opts { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.res-chip {
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-size: 0.88rem;
  color: #333;
}

.res-chip:hover { background: #f4f5f5; color: var(--brand); }

.res-chip.is-active {
  color: var(--brand);
  background: rgba(30, 79, 214, 0.08);
  font-weight: 600;
}

.res-count {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}

.res-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 280px));
  justify-content: start;
  gap: 1rem;
}

.res-item {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.res-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(26, 29, 36, 0.08);
}

.res-item__cover {
  height: 9.5rem;
  position: relative;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

.res-item__badge {
  position: absolute;
  left: 0.55rem;
  top: 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.res-item__info { padding: 0.75rem 0.85rem 0.95rem; }

.res-item__title {
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.4;
  margin-bottom: 0.55rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.55em;
}

.res-item__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #8a8f98;
}

.res-item__price { font-weight: 700; color: var(--price); }
.res-item__price.is-free { color: var(--free); }
.res-item__price.is-ad { color: var(--brand); font-size: 0.78rem; }

.res-item__pay {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.res-item__amount {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--price);
  line-height: 1;
}

.res-item__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 1.7rem;
  padding: 0 0.55rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.res-item__btn.is-ad {
  color: var(--brand);
  background: rgba(30, 79, 214, 0.08);
  border-color: rgba(30, 79, 214, 0.22);
}

.res-item__btn.is-free {
  color: var(--free);
  background: rgba(22, 163, 74, 0.08);
  border-color: rgba(22, 163, 74, 0.22);
}

.res-item__btn.is-buy {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.res-item:hover .res-item__btn.is-ad {
  background: rgba(30, 79, 214, 0.14);
}

.res-item:hover .res-item__btn.is-free {
  background: rgba(22, 163, 74, 0.14);
}

.res-item:hover .res-item__btn.is-buy {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
}

.res-item__time {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: #a0a6b0;
}

.res-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #8a8f98;
  padding: 2.5rem 1rem;
  background: var(--white);
  border-radius: 10px;
  border: 1px dashed var(--line);
}

.res-detail { padding-top: 1.25rem; padding-bottom: 2rem; }

.res-detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17rem;
  gap: 1.25rem;
  align-items: start;
}

.res-detail__main {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.35rem 1.5rem 1.6rem;
}

.res-detail__title {
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
}

.res-detail__meta {
  font-size: 0.88rem;
  color: #8a8f98;
  margin-bottom: 0.85rem;
}

.res-attrs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1.25rem;
  padding: 0.95rem 1rem;
  background: #f7f8fb;
  border-radius: 10px;
  margin-bottom: 0.85rem;
}

.res-attrs__item {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 0.5rem;
  align-items: baseline;
}

.res-attrs__k {
  font-size: 0.82rem;
  color: #8a8f98;
  font-weight: 500;
}

.res-attrs__v {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.res-attrs__v a { color: var(--brand); }

.res-attrs__v a:hover { text-decoration: underline; }

.res-attrs__sub {
  display: inline-block;
  margin-left: 0.45rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #8a8f98;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.05rem 0.4rem;
  vertical-align: middle;
}

.res-attrs__empty {
  font-size: 0.85rem;
  color: #a0a6b0;
}

.res-detail__tags-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.res-detail__tags-row > .res-attrs__k {
  line-height: 1.9;
  flex-shrink: 0;
}

.res-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0;
  flex: 1;
}

.res-tag {
  font-size: 0.8rem;
  color: var(--brand);
  background: rgba(30, 79, 214, 0.08);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  text-decoration: none;
}

.res-tag:hover {
  background: rgba(30, 79, 214, 0.14);
}

.res-publisher {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 0.35rem;
}

.res-publisher__avatar {
  width: 2.6rem;
  height: 2.6rem;
  min-width: 2.6rem;
  min-height: 2.6rem;
  max-width: 2.6rem;
  max-height: 2.6rem;
  border-radius: 50%;
  position: relative;
  display: block;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--brand);
  font-weight: 700;
  flex: 0 0 2.6rem;
  line-height: 0;
}

.res-publisher__avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
  padding: 0.2rem;
  box-sizing: border-box;
  border: 0;
}

.res-publisher__body {
  flex: 1;
  min-width: 0;
}

.res-publisher__name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.res-publisher__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.08rem 0.4rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--brand);
  background: rgba(30, 79, 214, 0.1);
  line-height: 1.4;
}

.res-publisher__role {
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: #8a8f98;
}

.res-publisher__actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  margin-left: auto;
}

.res-publisher__link,
.res-publisher__follow {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 2rem;
  padding: 0.42rem 0.95rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}

.res-publisher__link {
  color: #fff;
  background: #3b82f6;
  border-color: #3b82f6;
}

.res-publisher__link:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  text-decoration: none;
}

.res-publisher__follow {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.res-publisher__follow:hover {
  background: #163db0;
  border-color: #163db0;
}

.res-publisher__follow.is-followed {
  background: #e8eefc;
  color: var(--brand);
  border-color: #e8eefc;
}

.res-publisher__follow.is-followed:hover {
  background: #dbe6fb;
  border-color: #dbe6fb;
  color: var(--brand);
}

@media (max-width: 640px) {
  .res-publisher {
    flex-wrap: wrap;
  }

  .res-publisher__actions {
    width: 100%;
    margin-left: 0;
    padding-left: 3.45rem;
    justify-content: flex-start;
  }
}

.user-home {
  padding-bottom: 2.5rem;
}

.user-home__card {
  margin-top: 0.65rem;
  margin-bottom: 1rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(20, 30, 50, 0.05);
}

.user-home__card .res-publisher__avatar {
  width: 3.75rem;
  height: 3.75rem;
  min-width: 3.75rem;
  min-height: 3.75rem;
  max-width: 3.75rem;
  max-height: 3.75rem;
  flex-basis: 3.75rem;
  border-radius: 14px;
}

.user-home__card .res-publisher__name {
  font-size: 1.15rem;
}

.user-home__card .res-publisher__role {
  margin-top: 0.28rem;
  font-size: 0.86rem;
  color: #6b7280;
}

.user-home__section {
  margin-top: 0;
  padding: 1.1rem 1.2rem 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(20, 30, 50, 0.04);
}

.user-home__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.05rem;
  padding: 0.28rem;
  background: #f3f5f8;
  border-radius: 12px;
}

.user-home__tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: #6b7280;
  border-radius: 9px;
  padding: 0.48rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.user-home__tab:hover {
  color: var(--brand);
  background: rgba(255, 255, 255, 0.7);
}

.user-home__tab.is-active {
  border: 0;
  background: #fff;
  color: var(--brand);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.user-home__loading,
.user-home__empty {
  margin: 1.5rem 0;
  text-align: center;
  color: #8a8f98;
  font-size: 0.92rem;
}

.user-home__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.user-home__list.is-rows {
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.user-home__item {
  display: flex;
  gap: 0.85rem;
  align-items: stretch;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.user-home__item:hover {
  border-color: rgba(30, 79, 214, 0.28);
  box-shadow: 0 10px 24px rgba(20, 30, 50, 0.08);
  transform: translateY(-1px);
  background: #fff;
}

.user-home__thumb {
  position: relative;
  flex: 0 0 7.2rem;
  width: 7.2rem;
  min-height: 5.6rem;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  overflow: hidden;
}

.user-home__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.user-home__thumb-badge {
  position: absolute;
  left: 0.4rem;
  top: 0.4rem;
  z-index: 1;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.94);
  color: #1f2937;
  max-width: calc(100% - 0.8rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-home__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 0.9rem 0.75rem 0;
}

.user-home__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.user-home__item:hover .user-home__title {
  color: var(--brand);
}

.user-home__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  font-size: 0.8rem;
  color: #8a8f98;
}

.user-home__price {
  font-weight: 700;
  color: var(--price);
}

.user-home__price.is-free {
  color: var(--free);
}

.user-home__pager {
  margin-top: 1.1rem;
}

@media (max-width: 860px) {
  .user-home__list {
    grid-template-columns: 1fr;
  }

  .user-home__card {
    flex-wrap: wrap;
  }

  .user-home__card .res-publisher__actions {
    width: 100%;
    margin-left: 0;
    padding-left: 0;
    justify-content: flex-start;
  }

  .user-home__thumb {
    flex-basis: 5.6rem;
    width: 5.6rem;
    min-height: 5.2rem;
  }
}

.res-detail__block { margin-top: 1.35rem; }

.res-detail__h {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  padding-left: 0.55rem;
  border-left: 3px solid var(--brand);
}

.res-detail__html {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.res-detail__html h2 {
  font-size: 1rem;
  color: var(--ink);
  margin: 0.85rem 0 0.4rem;
}

.res-detail__html p + p { margin-top: 0.55rem; }

.res-price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.15rem;
  margin-bottom: 0.85rem;
}

.res-price-card--soft { padding-top: 0.85rem; }

.res-price-card__price {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--price);
  margin-bottom: 0.75rem;
}

.res-price-card__price.is-free { color: var(--free); }

.res-price-card__vip {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: -0.35rem 0 0.85rem;
}

.res-price-card__tip {
  margin-top: 0.65rem;
  font-size: 0.78rem;
  color: #8a8f98;
  line-height: 1.45;
}

.res-related {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
}

.res-related__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.res-related__item {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-top: 1px solid #f0f2f5;
}

.res-related__item:first-of-type { border-top: none; }

.res-related__cover {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 6px;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

.res-related__name {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.res-related__price {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--price);
  font-weight: 650;
}

.res-modal[hidden] { display: none !important; }

.res-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
}

.res-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.res-modal__panel {
  position: relative;
  width: min(92vw, 26rem);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.res-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.res-modal__head h3 { font-size: 1.05rem; font-weight: 700; }

.res-modal__close {
  width: 2rem;
  height: 2rem;
  font-size: 1.4rem;
  line-height: 1;
  color: #8a8f98;
  border-radius: 6px;
}

.res-modal__close:hover { background: #f3f5f8; color: var(--ink); }

.res-modal__body { padding: 1.15rem 1.2rem 1.35rem; text-align: center; }

.res-modal__qr { margin-bottom: 0.85rem; }

.res-modal__qr-fake {
  width: 11rem;
  height: 11rem;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px dashed #c5cad3;
  background:
    linear-gradient(45deg, #f3f5f8 25%, transparent 25%),
    linear-gradient(-45deg, #f3f5f8 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f3f5f8 75%),
    linear-gradient(-45deg, transparent 75%, #f3f5f8 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
  display: grid;
  place-content: center;
  gap: 0.25rem;
  color: #5c636c;
  font-weight: 700;
}

.res-modal__qr-fake small { font-weight: 500; color: #8a8f98; }

.res-modal__tip {
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.5;
}

.res-modal__tip.is-muted {
  color: #8a8f98;
  margin-top: 0.35rem;
  margin-bottom: 0.85rem;
}

.res-modal__status {
  font-size: 0.85rem;
  color: var(--brand);
  margin-bottom: 0.85rem;
}

.res-pay-opt {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-align: left;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 0.65rem;
  cursor: pointer;
  font-weight: 500;
}

.res-pay-opt span {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--brand);
  background: rgba(30, 79, 214, 0.08);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.btn-block { width: 100%; justify-content: center; margin-top: 0.5rem; }
.btn-block + .btn-block { margin-top: 0.55rem; }

/* 我的资料 */
/* 我的 · 侧栏固定宽度，与主栏同高拉伸，切换菜单/标签不抖动 */
.user-layout {
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
  padding-top: 1.5rem;
}

.user-side {
  width: 13.5rem;
  max-width: 13.5rem;
  box-sizing: border-box;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.55rem;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100%;
  /* 与右侧同高；菜单区顶部对齐，不随主栏高度拉开行距 */
  position: relative;
  top: auto;
  max-height: none;
  overflow: visible;
}

.user-side__head {
  text-align: center;
  padding: 0.85rem 0.5rem 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.45rem;
}

.user-side__meta {
  min-width: 0;
}

.user-side__avatar {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.55rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
  overflow: hidden;
  flex-shrink: 0;
}

.user-side__avatar--img {
  background: #fff;
  border: 1px solid var(--line);
  padding: 0;
}

.user-side__avatar--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.user-side__name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.35;
  word-break: break-all;
}

.user-side__role {
  margin: 0;
  font-size: 0.78rem;
  color: #8a8f98;
  line-height: 1.4;
}

.user-side__role-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  margin: 0.28rem auto 0;
  padding: 0.28rem 0.55rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font: inherit;
  max-width: 100%;
}

.user-side__role-btn:hover {
  background: rgba(30, 79, 214, 0.06);
}

.user-side__role-btn.is-vip .user-side__role {
  color: #1e4fd6;
  font-weight: 650;
}

.user-side__expire {
  font-size: 0.7rem;
  color: #98a0ab;
  line-height: 1.3;
  white-space: nowrap;
}

.user-side__role-btn.is-vip .user-side__expire {
  color: #64748b;
}

.user-side__nav {
  display: grid;
  gap: 0.42rem;
  flex: 0 0 auto;
  align-content: start;
  align-self: start;
  width: 100%;
}

.user-side__link,
a.user-side__link,
button.user-side__link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  width: 100%;
  min-height: 2.45rem;
  height: auto;
  box-sizing: border-box;
  text-align: left;
  text-decoration: none !important;
  border: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink-soft);
  appearance: none;
  -webkit-appearance: none;
  align-self: start;
}

.user-side__ico {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  background: #f3f5f8;
  color: #64748b;
}

.user-side__ico svg {
  display: block;
}

.user-side__label {
  flex: 1 1 auto;
  min-width: 0;
}

.user-side__chev {
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid #c5cad3;
  border-bottom: 1.5px solid #c5cad3;
  transform: rotate(-45deg);
  flex-shrink: 0;
  opacity: 0.85;
  margin-right: 0.15rem;
}

.user-side__link:hover,
a.user-side__link:hover,
button.user-side__link:hover {
  background: #f3f5f8;
  color: var(--brand);
}

.user-side__link:hover .user-side__ico,
a.user-side__link:hover .user-side__ico,
button.user-side__link:hover .user-side__ico {
  background: rgba(30, 79, 214, 0.1);
  color: var(--brand);
}

.user-side__link:hover .user-side__chev,
a.user-side__link:hover .user-side__chev,
button.user-side__link:hover .user-side__chev {
  border-color: var(--brand);
}

.user-side__link.is-active,
button.user-side__link.is-active {
  background: rgba(30, 79, 214, 0.08);
  color: var(--brand);
}

.user-side__link.is-active .user-side__ico,
button.user-side__link.is-active .user-side__ico {
  background: rgba(30, 79, 214, 0.14);
  color: var(--brand);
}

.user-side__link.is-active .user-side__chev,
button.user-side__link.is-active .user-side__chev {
  border-color: var(--brand);
}

.user-side__link:focus-visible {
  outline: 2px solid rgba(30, 79, 214, 0.35);
  outline-offset: 1px;
}

.user-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.35rem 1.4rem 1.5rem;
  min-height: 32rem;
  box-sizing: border-box;
  min-width: 0;
  height: 100%;
}

.user-list--stable {
  /* 预留高度但不把子项纵向撑满，避免操作按钮被拉成竖条 */
  min-height: 30rem;
  align-content: start;
  align-items: stretch;
}

.user-list__item {
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  align-content: start;
  align-self: start;
  height: auto;
  min-height: 0;
}

.user-panel__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.user-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.user-panel__head--actions-only {
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}

.user-panel__head .user-panel__title { margin-bottom: 0.25rem; }

.user-panel__desc {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}

.user-feed {
  margin-top: 1.15rem;
}

.user-feed__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.user-feed__title {
  font-size: 1rem;
  font-weight: 700;
}

.user-feed__time {
  font-size: 0.8rem;
  color: #8a8f98;
}

.user-feed__item {
  background: #fafbfc;
}

.user-daily {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

.user-daily__col {
  background: #fafbfc;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  padding: 1rem 1.05rem;
  min-height: 7.5rem;
}

.user-daily__head {
  margin-bottom: 0.75rem;
}

.user-daily__body {
  min-height: 3.5rem;
}

.user-daily__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.user-daily__card-title,
.user-daily__task-title {
  font-size: 0.95rem;
  font-weight: 650;
  margin: 0 0 0.25rem;
}

.user-daily__card-desc,
.user-daily__task-desc {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-soft, #6b7280);
  line-height: 1.45;
}

.user-daily__task {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-top: 1px solid #eef0f3;
}

.user-daily__task:first-child {
  border-top: 0;
  padding-top: 0;
}

.user-daily__task.is-done .user-daily__task-title {
  color: #9ca3af;
}

.user-daily__task-status {
  flex-shrink: 0;
  font-size: 0.78rem;
  color: #6b7280;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #eef2f7;
}

.user-daily__task.is-done .user-daily__task-status {
  color: #059669;
  background: #ecfdf5;
}

@media (max-width: 720px) {
  .user-daily {
    grid-template-columns: 1fr;
  }
}

.user-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 220;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.user-modal.is-open,
.user-modal:not([hidden]) {
  display: flex;
}

.user-modal[hidden] {
  display: none !important;
}

.user-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.user-modal__panel {
  position: relative;
  z-index: 1;
  margin: auto;
  width: min(92vw, 40rem);
  max-height: min(90vh, 42rem);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.user-modal__panel--profile {
  width: min(92vw, 44rem);
}

.me-form--profile {
  display: block;
}

.me-form--profile .user-actions {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.me-tabs--profile {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  margin-bottom: 1rem;
  padding: 0.25rem;
  background: #f3f5f8;
  border-radius: 10px;
}

.me-tabs--profile .me-tab {
  flex: 1;
  min-width: 5.5rem;
  border: 0;
  background: transparent;
  color: #5b6472;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
}

.me-tabs--profile .me-tab:hover {
  color: var(--ink);
}

.me-tabs--profile .me-tab.is-active {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.me-tabs--records-kind {
  max-width: 22rem;
  margin-bottom: 0.85rem;
}

/* 分段标签：灰底包裹 + 选中白底描色（文章上下架等） */
.me-tabs--segment {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.2rem;
  margin-bottom: 0;
  padding: 0.25rem;
  background: #f3f5f8;
  border-radius: 10px;
  border: 1px solid #e8ecf1;
}

.me-tabs--segment .me-tab {
  flex: 0 0 auto;
  min-width: 4.5rem;
  border: 0;
  background: transparent;
  color: #5b6472;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
}

.me-tabs--segment .me-tab:hover {
  color: var(--ink);
}

.me-tabs--segment .me-tab.is-active {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.me-form__panel[hidden] {
  display: none !important;
}

.me-form__section-desc {
  margin: 0 0 0.85rem;
  font-size: 0.84rem;
  color: #8a8f98;
  line-height: 1.45;
}

.me-form__item--full {
  grid-column: 1 / -1;
}

.user-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.user-modal__head h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.user-modal__close {
  width: 2rem;
  height: 2rem;
  font-size: 1.4rem;
  line-height: 1;
  color: #8a8f98;
  border-radius: 6px;
}

.user-modal__close:hover {
  background: #f3f5f8;
  color: var(--ink);
}

.user-modal__body {
  padding: 1.15rem 1.2rem 1.35rem;
}

@media (max-width: 720px) {
  .user-modal__body .me-form--2 {
    grid-template-columns: 1fr;
  }
}

.me-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.me-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-bottom: 1rem;
}

.me-toolbar .me-tabs {
  margin-bottom: 0;
}

.me-toolbar__search {
  flex: 1 1 180px;
  max-width: 280px;
  margin-left: auto;
}

.me-toolbar__input {
  width: 100%;
  height: 34px;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 0.85rem;
  color: var(--ink);
  outline: none;
  box-sizing: border-box;
}

.me-toolbar__input:focus {
  border-color: rgba(30, 79, 214, 0.45);
  box-shadow: 0 0 0 3px rgba(30, 79, 214, 0.08);
}

.me-pager {
  margin-top: 1.1rem;
}

.me-tabs__btn {
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  border: 1px solid transparent;
}

.me-tabs__btn:hover { color: var(--brand); }

.me-tabs__btn.is-active {
  color: var(--brand);
  font-weight: 600;
  background: rgba(30, 79, 214, 0.08);
}

.me-form {
  display: grid;
  gap: 1rem;
}

.me-form--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.me-form--2 .user-actions {
  grid-column: 1 / -1;
}

.me-form input[readonly] {
  background: #f7f8fb;
  color: #4b5563;
}

.me-form__item.is-hidden { display: none; }

.me-form__label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: #3d4450;
  margin-bottom: 0.4rem;
}

.me-form__label em {
  color: #e11d48;
  font-style: normal;
  margin-left: 0.15rem;
}

.me-form input[type="text"],
.me-form input[type="tel"],
.me-form input[type="url"],
.me-form input[type="number"],
.me-form input[type="date"],
.me-form input[type="datetime-local"],
.me-form select,
.me-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  line-height: 1.25;
  outline: none;
  background: #fff;
  min-height: 2.75rem;
}

.me-form input:focus,
.me-form select:focus,
.me-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(30, 79, 214, 0.12);
}

.me-form textarea { min-height: 110px; resize: vertical; }

.me-form input[type="file"] {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.me-form__hint-btn {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.me-form__hint-btn:hover { color: #163db0; }

.user-modal--nested {
  z-index: 240;
}

.me-form--profile .user-actions[hidden] {
  display: none !important;
}

.sec-list {
  display: grid;
  gap: 0.75rem;
}

.sec-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbfc;
}

.sec-card__title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
}

.sec-card__desc {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: #6b7280;
}

.sec-captcha {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  align-items: center;
}

.sec-captcha__img {
  width: 7.2rem;
  height: 2.5rem;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f3f5f8;
  cursor: pointer;
}

@media (max-width: 720px) {
  .sec-card {
    flex-direction: column;
    align-items: stretch;
  }
}

.me-form__error {
  color: #b42318;
  font-size: 0.88rem;
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
}

.me-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
}

.me-radio--wrap { gap: 0.55rem 1.25rem; }

.me-radio__opt {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.me-notice {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 0.95rem 1.05rem;
  font-size: 0.84rem;
  color: #78350f;
  line-height: 1.65;
}

.me-notice__title {
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.me-notice p + p { margin-top: 0.55rem; }

.user-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 10px;
  background: #f7f8fb;
  margin-bottom: 1.25rem;
}

.user-profile__avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1e4fd6, #3b82f6);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

.user-profile__name { font-weight: 700; font-size: 1.05rem; }
.user-profile__meta { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.2rem; }

.user-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.user-entry-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1.25rem;
  gap: 0.85rem;
}

.user-entry-grid--6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 1.25rem;
  gap: 0.75rem;
}

.user-entry-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1.25rem;
}

.user-entry {
  display: block;
  padding: 1.05rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  background: #f5f7fb;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
  text-align: left;
  font: inherit;
  color: inherit;
  width: 100%;
}

button.user-entry {
  cursor: pointer;
}

.user-entry:hover {
  border-color: rgba(30, 79, 214, 0.22);
  box-shadow: 0 10px 24px rgba(26, 29, 36, 0.08);
  transform: translateY(-1px);
}

.user-entry__name {
  font-weight: 650;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
  color: var(--ink);
}

.user-entry__desc {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.45;
}

/* 资产四卡：居中 + 浅色底 */
.user-entry-grid--4 .user-entry {
  text-align: center;
}
.user-entry-grid--4 .user-entry__name {
  font-size: 0.88rem;
  color: #6b7280;
}
.user-entry-grid--4 .user-entry__desc {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.user-entry-grid--4 .user-entry:nth-child(1) {
  background: linear-gradient(160deg, #eff6ff 0%, #f8fafc 100%);
  border-color: #dbeafe;
}
.user-entry-grid--4 .user-entry:nth-child(2) {
  background: linear-gradient(160deg, #ecfdf5 0%, #f8fafc 100%);
  border-color: #d1fae5;
}
.user-entry-grid--4 .user-entry:nth-child(3) {
  background: linear-gradient(160deg, #fff7ed 0%, #f8fafc 100%);
  border-color: #ffedd5;
}
.user-entry-grid--4 .user-entry:nth-child(4) {
  background: linear-gradient(160deg, #f5f3ff 0%, #f8fafc 100%);
  border-color: #ede9fe;
}
.user-entry-grid--4 .user-entry:nth-child(1) .user-entry__desc { color: #1e4fd6; }
.user-entry-grid--4 .user-entry:nth-child(2) .user-entry__desc { color: #0f766e; }
.user-entry-grid--4 .user-entry:nth-child(3) .user-entry__desc { color: #c2410c; }
.user-entry-grid--4 .user-entry:nth-child(4) .user-entry__desc { color: #6d28d9; }

/* 资产六卡（积分/余额/卡片邀请/佣金/优惠券/会员） */
.user-entry-grid--6 .user-entry {
  text-align: center;
  padding: 0.9rem 0.7rem;
}
.user-entry-grid--6 .user-entry__name {
  font-size: 0.82rem;
  color: #6b7280;
}
.user-entry-grid--6 .user-entry__desc {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.user-entry-grid--6 .user-entry:nth-child(1) {
  background: linear-gradient(160deg, #eff6ff 0%, #f8fafc 100%);
  border-color: #dbeafe;
}
.user-entry-grid--6 .user-entry:nth-child(2) {
  background: linear-gradient(160deg, #ecfdf5 0%, #f8fafc 100%);
  border-color: #d1fae5;
}
.user-entry-grid--6 .user-entry:nth-child(3) {
  background: linear-gradient(160deg, #fef3c7 0%, #f8fafc 100%);
  border-color: #fde68a;
}
.user-entry-grid--6 .user-entry:nth-child(4) {
  background: linear-gradient(160deg, #fce7f3 0%, #f8fafc 100%);
  border-color: #fbcfe8;
}
.user-entry-grid--6 .user-entry:nth-child(5) {
  background: linear-gradient(160deg, #fff7ed 0%, #f8fafc 100%);
  border-color: #ffedd5;
}
.user-entry-grid--6 .user-entry:nth-child(6) {
  background: linear-gradient(160deg, #f5f3ff 0%, #f8fafc 100%);
  border-color: #ede9fe;
}
.user-entry-grid--6 .user-entry:nth-child(1) .user-entry__desc { color: #1e4fd6; }
.user-entry-grid--6 .user-entry:nth-child(2) .user-entry__desc { color: #0f766e; }
.user-entry-grid--6 .user-entry:nth-child(3) .user-entry__desc { color: #b45309; }
.user-entry-grid--6 .user-entry:nth-child(4) .user-entry__desc { color: #be185d; }
.user-entry-grid--6 .user-entry:nth-child(5) .user-entry__desc { color: #c2410c; }
.user-entry-grid--6 .user-entry:nth-child(6) .user-entry__desc { color: #6d28d9; }

@media (max-width: 1100px) {
  .user-entry-grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.user-daily__task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  flex-shrink: 0;
  justify-content: flex-end;
}
.user-daily__task-actions .user-btn {
  font-size: 0.78rem;
  padding: 0.28rem 0.65rem;
  border-radius: 8px;
  white-space: nowrap;
}
.user-daily__task-status--pill {
  align-self: center;
}

.invite-poster-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.55);
}
.invite-poster-modal[hidden] { display: none !important; }
.invite-poster-modal__panel {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 14px;
  padding: 1rem 1rem 1.1rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
}
.invite-poster-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.invite-poster-modal__head h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #152238;
}
.invite-poster-modal__close {
  border: 0;
  background: #f1f5f9;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: #64748b;
}
.invite-poster-modal__canvas-wrap {
  display: flex;
  justify-content: center;
  background: #f8fafc;
  border-radius: 10px;
  padding: 0.75rem;
  overflow: auto;
  max-height: min(70vh, 640px);
}
.invite-poster-modal__canvas-wrap canvas {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
.invite-poster-modal__actions {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.9rem;
  flex-wrap: wrap;
}
.invite-poster-modal__actions .user-btn {
  flex: 1;
  min-width: 120px;
  text-align: center;
  justify-content: center;
}

/* 会员中心 */
.vip-status {
  margin-bottom: 1.5rem;
}
.vip-status__card {
  position: relative;
  min-height: 148px;
  padding: 1.85rem 1.75rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(15, 35, 75, 0.28) 0%, rgba(8, 18, 42, 0.18) 45%, transparent 70%),
    url("../img/vip-card-bg.jpg") center / cover no-repeat;
  box-shadow: 0 8px 24px rgba(20, 48, 110, 0.18);
}
.vip-status__card.is-active {
  border-color: rgba(251, 191, 36, 0.35);
  background:
    linear-gradient(135deg, rgba(40, 24, 8, 0.35) 0%, rgba(20, 12, 4, 0.2) 45%, transparent 70%),
    url("../img/vip-card-bg-active.jpg") center / cover no-repeat;
  box-shadow: 0 8px 28px rgba(120, 70, 20, 0.22);
}
.vip-status__label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
  margin-bottom: 0.55rem;
  letter-spacing: 0.04em;
}
.vip-status__name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.vip-status__card.is-active .vip-status__name {
  color: #ffe8b8;
}
.vip-status__meta {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}
.vip-status__card.is-active .vip-status__meta {
  color: rgba(255, 236, 200, 0.82);
}

.vip-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.vip-plan {
  position: relative;
  padding: 1.15rem 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.vip-plan.is-hot {
  border-color: rgba(240, 122, 26, 0.45);
  box-shadow: 0 10px 24px rgba(240, 122, 26, 0.12);
  background: linear-gradient(180deg, #fffaf5 0%, #fff 40%);
}
.vip-plan__tag {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}
.vip-plan__name {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}
.vip-plan__price {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}
.vip-plan__price strong {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--accent);
}
.vip-plan__price span {
  font-size: 0.82rem;
  color: #9aa3af;
}
.vip-plan__desc {
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.5;
  flex: 1;
  margin: 0 0 0.35rem;
}
.vip-plan__btn {
  width: 100%;
  justify-content: center;
}

.vip-perks {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}
.vip-perks li {
  position: relative;
  padding: 1rem 1.05rem 1rem 2.35rem;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.5;
  background: linear-gradient(160deg, #f8fafc 0%, #f1f5f9 100%);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}
.vip-perks li:nth-child(5n + 1) {
  background: linear-gradient(160deg, #eff6ff 0%, #f8fafc 100%);
  border-color: #dbeafe;
}
.vip-perks li:nth-child(5n + 2) {
  background: linear-gradient(160deg, #ecfdf5 0%, #f8fafc 100%);
  border-color: #d1fae5;
}
.vip-perks li:nth-child(5n + 3) {
  background: linear-gradient(160deg, #fff7ed 0%, #f8fafc 100%);
  border-color: #ffedd5;
}
.vip-perks li:nth-child(5n + 4) {
  background: linear-gradient(160deg, #f5f3ff 0%, #f8fafc 100%);
  border-color: #ede9fe;
}
.vip-perks li:nth-child(5n + 5) {
  background: linear-gradient(160deg, #fff1f2 0%, #f8fafc 100%);
  border-color: #fecdd3;
}
.vip-perks li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.25rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent, #f59e0b);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

@media (max-width: 860px) {
  .vip-plans { grid-template-columns: 1fr; }
  .vip-perks { grid-template-columns: 1fr; }
}

.user-list {
  display: grid;
  gap: 0.75rem;
}

.uc-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 1.1rem;
}

.uc-stats__item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.65rem;
  text-align: center;
  background: #f8fafc;
}

.uc-stats__item strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.2rem;
}

.uc-stats__item span {
  font-size: 0.75rem;
  color: #8a8f98;
}

.uc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.uc-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.uc-order-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.uc-order-search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 1 320px;
  max-width: 100%;
  margin-left: auto;
}

.uc-order-search__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 34px;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 0.85rem;
  color: var(--ink);
  outline: none;
  box-sizing: border-box;
}

.uc-order-search__input:focus {
  border-color: rgba(30, 79, 214, 0.45);
  box-shadow: 0 0 0 3px rgba(30, 79, 214, 0.08);
}

.uc-order-search__btn {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 0.9rem;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.uc-order-search__btn:hover {
  filter: brightness(0.96);
}

.uc-order {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.uc-order:last-child { border-bottom: 0; }

.uc-order__main { min-width: 0; flex: 1 1 auto; }

.uc-order__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.35rem;
}

.uc-order__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 0.72rem;
  font-weight: 600;
}

.uc-order__title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
}

.uc-order__meta,
.uc-order__deliver {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.uc-order__side {
  flex: 0 0 auto;
  text-align: right;
  display: grid;
  gap: 0.35rem;
  justify-items: end;
}

.uc-order__price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--price, #e11d48);
}

.uc-order__status {
  font-size: 0.82rem;
  color: #6b7280;
}

.uc-order__status.is-warn { color: #c2410c; }
.uc-order__status.is-ok { color: #047857; }
.uc-order__status.is-muted { color: #6b7280; }

.uc-order__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.uc-empty {
  margin: 1.5rem 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.uc-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.uc-pager__btn {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.uc-pager__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.uc-pager__info {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

@media (max-width: 720px) {
  .user-panel__head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
  }
  .user-panel__head > div {
    min-width: 0;
    flex: 1;
  }
  .user-panel__head .user-btn {
    flex-shrink: 0;
    width: auto;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
  }
  .user-panel__desc {
    font-size: 0.8rem;
    margin-bottom: 0;
  }
  .uc-order-search {
    margin-left: 0;
    max-width: none;
  }
  .uc-order {
    flex-direction: column;
  }
  .uc-order__side {
    width: 100%;
    text-align: left;
    justify-items: start;
  }
  .uc-order__acts { justify-content: flex-start; }
}

.uc-type-select {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.uc-type-select select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  font: inherit;
  background: #fff;
}

.uc-todo {
  position: relative;
  display: grid;
}

.uc-todo__item {
  position: relative;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.85rem;
  padding-bottom: 1.25rem;
}

.uc-todo__num {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.uc-todo__item.is-done .uc-todo__num { background: #16a34a; }
.uc-todo__item.is-doing .uc-todo__num { background: #ea580c; }

.uc-todo__line {
  position: absolute;
  left: 0.95rem;
  top: 2rem;
  bottom: 0;
  width: 2px;
  background: #e5e7eb;
}

.uc-todo__body {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  background: #fff;
}

.course-list {
  display: grid;
  gap: 0.75rem;
}

.course-layout {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  justify-content: start;
  text-align: left;
}
.course-layout > .res-side,
.course-layout > .res-main {
  margin-top: 0;
  align-self: start;
}

.course-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.course-search {
  display: flex;
  gap: 0.4rem;
  min-width: min(100%, 16rem);
}
.course-search input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  background: #f5f7fa;
  outline: none;
}
.course-search input:focus {
  border-color: var(--brand);
  background: #fff;
}
.course-search button {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 0.86rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.course-item {
  display: block;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}
.course-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(26, 29, 36, 0.1);
}

.course-item__cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #5b4db8, #8b7cf0);
}
.course-item__cover.tone-violet { background: linear-gradient(145deg, #5b4db8 0%, #8b7cf0 55%, #c4b5fd 100%); }
.course-item__cover.tone-blue { background: linear-gradient(145deg, #1e4fd6 0%, #3b82f6 55%, #93c5fd 100%); }
.course-item__cover.tone-teal { background: linear-gradient(145deg, #0f766e 0%, #14b8a6 55%, #99f6e4 100%); }
.course-item__cover.tone-orange { background: linear-gradient(145deg, #c2410c 0%, #f07a1a 55%, #fdba74 100%); }
.course-item__cover.tone-rose { background: linear-gradient(145deg, #9f1239 0%, #e11d48 55%, #fda4af 100%); }
.course-item__cover.tone-green { background: linear-gradient(145deg, #166534 0%, #22c55e 55%, #86efac 100%); }
.course-item__cover.tone-indigo { background: linear-gradient(145deg, #312e81 0%, #4f46e5 55%, #a5b4fc 100%); }
.course-item__cover.tone-amber { background: linear-gradient(145deg, #b45309 0%, #f59e0b 55%, #fcd34d 100%); }
.course-item__cover.tone-cyan { background: linear-gradient(145deg, #155e75 0%, #06b6d4 55%, #67e8f9 100%); }

.course-item__cover::after {
  content: "";
  position: absolute;
  inset: 18% 14% auto;
  height: 58%;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}
.course-item__cover-label {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 650;
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(4px);
}

.course-item__body {
  padding: 0.9rem 0.95rem 1rem;
}
.course-item__title {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #222;
}
.course-item:hover .course-item__title { color: var(--brand); }
.course-item__students {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  color: #999;
}
.course-item__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.course-item__price {
  font-size: 1rem;
  font-weight: 700;
  color: #e11d48;
}
.course-item__price.is-free {
  color: #16a34a;
}
.course-item__rating {
  font-size: 0.82rem;
  font-weight: 650;
  color: #f59e0b;
}

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

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

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

/* 知识文档 */
.docs-layout {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr) 220px;
  gap: 1rem;
  align-items: start;
  justify-content: start;
  text-align: left;
}
.docs-layout > .res-side,
.docs-layout > .docs-main,
.docs-layout > .docs-hot {
  margin-top: 0;
  align-self: start;
}
.docs-main { min-width: 0; text-align: left; }
.docs-hot { top: 4.5rem; }
.docs-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.35rem 2rem;
  margin-bottom: 1rem;
}
.docs-sort {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-left: auto;
  padding-left: 0.5rem;
}
.docs-sort__item {
  border: none;
  background: none;
  font: inherit;
  font-size: 0.88rem;
  color: #666;
  cursor: pointer;
  padding: 0.2rem 0;
}
.docs-sort__item.is-active {
  color: var(--brand);
  font-weight: 650;
}
.docs-list {
  display: grid;
  gap: 0.75rem;
}
.docs-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.docs-item__info { min-width: 0; flex: 1; }
.docs-item__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.4rem;
}
.docs-item__cat {
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--brand);
  background: rgba(30, 79, 214, 0.08);
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
}
.docs-item__title {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 650;
  color: #222;
  line-height: 1.4;
}
.docs-item:hover .docs-item__title { color: var(--brand); }
.docs-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}
.docs-item__tag {
  font-size: 0.74rem;
  color: #6b7280;
  background: #f3f5f8;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
}
.docs-item__meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8rem;
  color: #999;
}
.docs-item__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 650;
}
.docs-item__badge.is-free {
  color: #16a34a;
  background: #ecfdf5;
}
.docs-item__badge.is-paid {
  color: #e11d48;
  background: #fff1f2;
}
.docs-item.is-paid {
  border-color: rgba(225, 29, 72, 0.18);
  background: linear-gradient(90deg, #fff 70%, #fff8f8 100%);
}
.docs-item__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.2rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  cursor: pointer;
}
.docs-item__btn:hover { background: #163db0; }
.docs-item__btn.is-paid {
  background: #e11d48;
}
.docs-item__btn.is-paid:hover {
  background: #be123c;
}
.docs-hot { position: sticky; top: 4.5rem; }
.res-side__nav { display: grid; gap: 0.42rem; }

@media (max-width: 1024px) {
  .docs-layout {
    grid-template-columns: 10rem minmax(0, 1fr);
  }
  .docs-hot {
    grid-column: 1 / -1;
    position: static;
  }
}

/* Mobile list pages: stack sidebar + full-width cards (must come after desktop docs rules) */
@media (max-width: 860px) {
  .docs-layout {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .docs-layout > .res-side,
  .course-layout > .res-side,
  .res-layout > .res-side {
    position: static;
    top: auto;
    width: 100%;
    max-width: none;
    display: block;
    padding: 0.65rem 0.7rem;
  }
  .docs-layout > .res-side .res-side__nav,
  .course-layout > .res-side .res-side__nav,
  .res-layout > .res-side .res-side__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    width: 100%;
    overflow: visible;
    padding-bottom: 0;
  }
  .docs-layout > .res-side .res-side__item,
  .course-layout > .res-side .res-side__item,
  .res-layout > .res-side .res-side__item {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0.4rem 0.75rem;
    font-size: 0.84rem;
  }
  .docs-hot {
    grid-column: 1 / -1;
    position: static;
    order: 3;
  }
  .docs-toolbar,
  .course-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .course-search {
    width: 100%;
    min-width: 0;
  }
  .docs-item {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
  }
  .docs-item__btn {
    width: 100%;
    min-width: 0;
  }
  .docs-item__meta {
    flex-wrap: wrap;
  }
}

.user-list__item {
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  align-content: start;
  align-self: start;
  height: auto;
  min-height: 0;
}

.user-list__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.user-list__title { font-weight: 650; }
.user-list__meta { font-size: 0.82rem; color: var(--ink-soft); }
.user-list__row--meta {
  align-items: baseline;
  margin-top: 0.15rem;
}
.user-list__price {
  margin: 0;
  flex-shrink: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--price, #e11d48);
}

.user-panel .res-filters {
  margin-bottom: 0.85rem;
}

.user-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
}

.user-badge.is-done { background: #ecfdf5; color: #047857; }
.user-badge.is-wait { background: #fff7ed; color: #c2410c; }

.user-actions { margin-top: 1.15rem; display: flex; gap: 0.65rem; flex-wrap: wrap; }

.user-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.55rem 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}

.user-btn--sm {
  min-height: 2rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  border-radius: 8px;
}

.user-btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.user-btn--ghost:hover {
  border-color: rgba(30, 79, 214, 0.35);
  color: var(--brand);
  background: #f8faff;
}

.user-btn--danger {
  background: #fff;
  color: #be123c;
  border-color: #fecdd3;
}

.user-btn--danger:hover {
  background: #fff1f2;
  border-color: #fda4af;
}

.user-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.uc-actions--article {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.uc-actions--article .user-btn {
  flex: 0 0 auto;
  width: auto;
  min-width: 4.25rem;
  white-space: nowrap;
  align-self: center;
}

@media (max-width: 860px) {
  .spotlight { grid-template-columns: 1fr; }
  .res-grid { grid-template-columns: repeat(2, 1fr); }
  .icon-grid { grid-template-columns: repeat(2, 1fr); }
  .task-list { grid-template-columns: 1fr; }
  .task-board { grid-template-columns: 1fr; }
  .task-side { position: static; display: block; width: 100%; max-width: none; max-height: none; overflow: visible; }
  .task-side__title { width: 100%; margin: 0; }
  .task-side__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .task-side__item {
    width: auto;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 0.4rem 0.75rem;
    font-size: 0.84rem;
    min-height: 2.2rem;
  }
  .task-panel {
    max-height: none;
    overflow: visible;
  }
  .task-search { flex-wrap: wrap; }
  .task-search__actions { width: 100%; margin-left: 0; }
  .task-search__btn { flex: 1; }
  .task-steps { grid-template-columns: 1fr 1fr; }
  .task-bottom { grid-template-columns: 1fr; }
  .task { flex-direction: column; align-items: stretch; }
  .task__aside { text-align: left; flex-direction: row; align-items: center; justify-content: space-between; }
  .news-layout { grid-template-columns: 1fr; }
  .news-side { width: 100%; }
  .case-wall__list { grid-template-columns: 1fr; }
  .case-wall__head {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.1rem 1.25rem;
  }
  .case-detail__card { padding: 1.25rem 1.15rem; }
  .case-detail__layout { grid-template-columns: 1fr; }
  .case-detail__aside { position: static; }
  .case-detail__metrics { grid-template-columns: 1fr; }
  .case-detail__features { grid-template-columns: 1fr; }
  .case-detail__related { grid-template-columns: 1fr; }
  .case-detail__hero-actions .case-detail__btn { flex: 1 1 auto; }
  .article-grid { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .article-meta {
    flex-wrap: wrap;
    overflow: visible;
  }
  .article-meta__item--tags {
    flex: 1 1 100%;
    overflow: visible;
  }
  .article-meta__tags {
    white-space: normal;
  }
  .article-pager { grid-template-columns: 1fr; }
  .article-pager__item--next a,
  .article-pager__item--next .article-pager__empty {
    text-align: left;
    align-items: flex-start;
  }
  .news-cats-side {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
  }
  .news-cats-side__title { width: 100%; }
  .news-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    width: 100%;
  }
  .news-cats__item { width: auto; }
  .news-grid { grid-template-columns: 1fr; }
  .news-side { position: static; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .cats--4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
  .links-grid { grid-template-columns: 1fr 1fr; }
  .icon-preview-board { grid-template-columns: repeat(4, 1fr); }
  .single-related { grid-template-columns: 1fr 1fr; }
  .page-hero { padding: 1.75rem 0 1.5rem; }
  .user-layout { grid-template-columns: 1fr; gap: 0.85rem; padding-top: 0.85rem; }
  .user-side {
    position: static;
    max-height: none;
    width: 100%;
    max-width: none;
    min-height: 0;
    height: auto;
    padding: 0.75rem;
    border-radius: 14px;
  }
  .user-side__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
    padding: 0.35rem 0.25rem 0.85rem;
    margin-bottom: 0.65rem;
  }
  .user-side__avatar {
    width: 3.25rem;
    height: 3.25rem;
    margin: 0;
  }
  .user-side__meta {
    flex: 1;
    min-width: 0;
  }
  .user-side__name {
    font-size: 1.05rem;
    margin: 0;
  }
  .user-side__role-btn {
    margin: 0.2rem 0 0;
    align-items: flex-start;
    padding: 0.15rem 0;
  }
  .user-side__nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.4rem;
    align-content: start;
  }
  .user-side__link,
  a.user-side__link,
  button.user-side__link {
    min-height: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    padding: 0.65rem 0.25rem 0.55rem;
    text-align: center;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.25;
    background: #f7f8fb;
  }
  .user-side__link:hover,
  a.user-side__link:hover,
  button.user-side__link:hover {
    background: #eef2ff;
  }
  .user-side__link.is-active,
  button.user-side__link.is-active {
    background: rgba(30, 79, 214, 0.1);
    box-shadow: inset 0 0 0 1px rgba(30, 79, 214, 0.18);
  }
  .user-side__ico {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 11px;
    background: #fff;
    color: #475569;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  }
  .user-side__link.is-active .user-side__ico,
  button.user-side__link.is-active .user-side__ico {
    background: #fff;
    color: var(--brand);
  }
  .user-side__label {
    flex: none;
    width: 100%;
    padding: 0 0.1rem;
    word-break: break-all;
  }
  .user-side__chev { display: none; }
  .user-panel {
    min-height: 0;
    padding: 1.05rem 1rem 1.25rem;
    border-radius: 14px;
  }
  .user-entry-grid { grid-template-columns: 1fr; }
  .user-entry-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
  .user-entry-grid--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
  .user-entry-grid--3 { grid-template-columns: 1fr; }
  .me-form--2 { grid-template-columns: 1fr; }
  .uc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .res-layout { grid-template-columns: 1fr; }
  .res-side { position: static; display: block; width: 100%; max-width: none; }
  .res-side__title { width: 100%; }
  .res-side__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .res-side__item {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0.4rem 0.75rem;
  }
  .res-list { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); justify-content: start; }
  .res-detail__grid { grid-template-columns: 1fr; }
  .res-attrs { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .user-side__nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
  }
  .user-side__link,
  a.user-side__link,
  button.user-side__link {
    font-size: 0.74rem;
    padding: 0.7rem 0.2rem 0.6rem;
  }
  .res-grid { grid-template-columns: 1fr; }
  .case-wall__list { grid-template-columns: 1fr; }
  .case-wall__head {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.1rem;
  }
  .case-wall__head-text h1 { font-size: 1.35rem; }
  .case-wall__filter-row { flex-direction: column; gap: 0.45rem; }
  .icon-grid { grid-template-columns: 1fr; }
  .cats { grid-template-columns: 1fr 1fr; }
  .links-grid { grid-template-columns: 1fr; }
  .res-list { grid-template-columns: 1fr; }
}

/* 工单需求 / 需求大厅 */
.tickets-hall { padding-top: 0.25rem; }
.tickets-toolbar {
  margin-bottom: 0.95rem;
}
.tickets-search {
  align-items: center;
  flex-wrap: wrap;
}
.tickets-search > button,
.tickets-search__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex-shrink: 0;
  min-height: 2.4rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}
.tickets-search > button {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.tickets-search__btn--primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.tickets-search__btn--primary:hover { background: #163db0; border-color: #163db0; }
.tickets-search__btn--outline {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.tickets-search__btn--outline:hover {
  border-color: rgba(30, 79, 214, 0.45);
  color: var(--brand);
}
.tickets-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem;
}
.tickets-tabs__item {
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.tickets-tabs__item:hover { color: var(--brand); background: #f3f5f8; }
.tickets-tabs__item.is-active {
  background: rgba(30, 79, 214, 0.1);
  color: var(--brand);
  font-weight: 600;
}
.tickets-list { display: grid; gap: 0.85rem; }
.tickets-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}
.tickets-card--link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.tickets-card--link:hover {
  border-color: rgba(30, 79, 214, 0.35);
  box-shadow: 0 8px 20px rgba(20, 30, 50, 0.06);
}
/* 详情页卡片：纵向排版，避免空态被 space-between 挤到右侧 */
.tickets-detail .tickets-card {
  display: block;
}
.tickets-detail .tickets-card + .tickets-card {
  margin-top: 0.85rem;
}
.tickets-detail__empty {
  margin: 0;
  padding: 0.85rem 0 0.15rem;
  text-align: left;
  color: #9aa3af;
  font-size: 0.9rem;
  background: transparent;
  border: none;
  border-radius: 0;
}
.tickets-detail__locked {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px dashed #dbe2ea;
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.65;
}
.tickets-status__queue {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.92;
}
.tickets-card__main { flex: 1; min-width: 0; }
.tickets-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}
.tickets-id {
  font-size: 0.82rem;
  font-weight: 700;
  color: #6b7280;
}
.tickets-card__title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
  line-height: 1.4;
}
.tickets-card__sub,
.tickets-card__content,
.tickets-card__line {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 0.35rem;
}
.tickets-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.8rem;
  color: #9aa3af;
  margin-top: 0.45rem;
}
.tickets-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--price);
}
.tickets-badge {
  display: inline-flex;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 0.75rem;
  font-weight: 600;
}
.tickets-status {
  display: inline-flex;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #f3f4f6;
  color: #4b5563;
}
.tickets-status.is-wait { background: #fff7ed; color: #c2410c; }
.tickets-status.is-doing { background: #eff6ff; color: #1d4ed8; }
.tickets-status.is-done { background: #ecfdf5; color: #047857; }
.tickets-status.is-closed { background: #f3f4f6; color: #6b7280; }
.tickets-status.is-reject { background: #fef2f2; color: #b91c1c; }
.tickets-priority.is-high { color: #b91c1c; font-weight: 700; }
.tickets-priority.is-mid { color: #c2410c; font-weight: 600; }
.tickets-priority.is-low { color: #6b7280; }
.tickets-notice,
.tickets-reject {
  margin-top: 0.55rem;
  font-size: 0.84rem;
  color: #78350f;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  line-height: 1.55;
}
.tickets-reject {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}
.tickets-card__btn {
  flex-shrink: 0;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
}
.tickets-card__btn:hover { background: #163db0; }
.tickets-demand-notice {
  background: #eff6ff;
  border: 1px solid rgba(30, 79, 214, 0.18);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin-bottom: 0.85rem;
}
.tickets-demand-notice h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--brand);
}
.tickets-demand-notice p {
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.65;
}
.tickets-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #9aa3af;
  font-size: 0.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.tickets-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.tickets-pager__btn {
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.86rem;
}
.tickets-pager__btn:hover:not(:disabled) {
  border-color: var(--brand);
  color: var(--brand);
}
.tickets-pager__btn:disabled { opacity: 0.45; cursor: not-allowed; }
.tickets-pager__size {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.25rem;
}
.tickets-pager__size select {
  height: 2rem;
  padding: 0 0.45rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 0.86rem;
  color: var(--ink);
}

.tickets-detail__back { margin-bottom: 0.85rem; }
.tickets-detail__loading {
  text-align: center;
  padding: 3rem;
  color: #9aa3af;
}
.tickets-detail__title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.4;
}
.tickets-detail__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
  margin-bottom: 1rem;
}
.tickets-detail__grid em {
  display: block;
  font-style: normal;
  font-size: 0.78rem;
  color: #9aa3af;
  margin-bottom: 0.2rem;
}
.tickets-detail__grid span {
  font-size: 0.9rem;
  color: var(--ink);
  word-break: break-all;
}
.tickets-detail__block h2,
.tickets-detail__h {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}
.tickets-detail__block p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.tickets-msg { display: grid; gap: 0.75rem; }
.tickets-msg__item {
  background: #f8fafc;
  border-radius: 8px;
  padding: 0.85rem 0.95rem;
}
.tickets-msg__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
}
.tickets-msg__head span { color: #9aa3af; }
.tickets-msg__item p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.tickets-detail__tip {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.tickets-detail__tip a { color: var(--brand); }

@media (max-width: 860px) {
  .tickets-search { gap: 0.45rem; }
  .tickets-search__btn { flex: 1 1 auto; }
  .tickets-card { flex-direction: column; }
  .tickets-detail__grid { grid-template-columns: 1fr; }
}

/* 服务商 / 合作伙伴独立后台 */
.console-layout {
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  padding-top: 1.5rem;
}
.console-side {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.55rem;
  position: sticky;
  top: 5.5rem;
  max-height: calc(100vh - 6.5rem);
  overflow: auto;
}
.console-side__head {
  padding: 0.85rem 0.65rem 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.45rem;
}
.console-side__badge {
  display: inline-block;
  margin: 0 0 0.45rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
}
.console-side__badge--partner { background: #0f766e; }
.console-side__name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.35;
}
.console-side__desc {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: #8a8f98;
  line-height: 1.45;
}
.console-side__nav {
  display: grid;
  gap: 0.28rem;
  align-content: start;
}
.console-side__link {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 2.35rem;
  height: auto;
  box-sizing: border-box;
  text-align: left;
  border: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.48rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  align-self: start;
}
.console-side__link:hover { background: #f3f5f8; color: var(--brand); }
.console-side__link.is-active {
  background: rgba(30, 79, 214, 0.08);
  color: var(--brand);
  font-weight: 600;
}
.console-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.35rem 1.4rem 1.5rem;
  min-height: 18rem;
}
.console-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.console-panel__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}
.console-panel__desc {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.console-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.console-stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.console-stat {
  background: #f8fafc;
  border-radius: 10px;
  padding: 0.95rem 1rem;
}
.console-stat__n {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}
.console-stat__l {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: #8a8f98;
}
.console-card {
  background: #f8fafc;
  border-radius: 10px;
  padding: 1rem 1.1rem;
}
.console-card h3 {
  margin: 0 0 0.55rem;
  font-size: 0.98rem;
  font-weight: 650;
}
.console-muted {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.console-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.7;
}
@media (max-width: 900px) {
  .console-layout { grid-template-columns: 1fr; }
  .console-side { position: static; }
  .console-side__nav { display: grid; gap: 0.28rem; align-content: start; }
  .console-stats,
  .console-stats--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .console-panel__head { flex-direction: column; }
}

/* ===== Doc reader (docs detail) ===== */
.doc-reader-page {
  background: var(--bg);
  min-height: 100vh;
}
.doc-reader {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.doc-reader__top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 7rem 1fr 7rem;
  align-items: center;
  gap: 0.75rem;
  height: 3.25rem;
  padding: 0 1rem;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.doc-reader__back {
  justify-self: start;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.doc-reader__back:hover { color: var(--brand); }
.doc-reader__top-title {
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.doc-reader__top-spacer { display: block; }

.doc-reader__shell {
  flex: 1;
  width: min(1180px, calc(100% - 2rem));
  margin: 1.25rem auto 2rem;
}
.doc-reader__wrap {
  position: relative;
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 6.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(26, 29, 36, 0.05);
  overflow: hidden;
}

.doc-reader__fold {
  display: none;
  position: fixed;
  left: 0.85rem;
  bottom: 1.25rem;
  z-index: 55;
  height: 2.5rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  box-shadow: 0 8px 20px rgba(30, 79, 214, 0.28);
  cursor: pointer;
}
.doc-reader__mask {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(26, 29, 36, 0.42);
}

.doc-sidebar {
  border-right: 1px solid var(--line);
  background: #fafbfc;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.doc-sidebar__head {
  padding: 1.15rem 1rem 0.85rem;
  border-bottom: 1px solid var(--line);
}
.doc-sidebar__title {
  margin: 0 0 0.75rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.doc-sidebar__search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  height: 2.25rem;
  padding: 0 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--muted);
}
.doc-sidebar__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 0.86rem;
  color: var(--ink);
}
.doc-sidebar__nav {
  flex: 1;
  overflow: auto;
  padding: 0.55rem 0.5rem 1rem;
}
.doc-sidebar__item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.7rem 0.75rem;
  border-radius: 8px;
  border-left: 3px solid transparent;
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink-soft, #4b5563);
  line-height: 1.4;
  margin-bottom: 0.15rem;
}
.doc-sidebar__item:hover {
  background: #f0f3f8;
  color: var(--brand);
}
.doc-sidebar__item.is-active {
  background: rgba(30, 79, 214, 0.08);
  color: var(--brand);
  font-weight: 600;
  border-left-color: var(--brand);
}
.doc-sidebar__empty {
  margin: 0.85rem 0.5rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.doc-main {
  min-width: 0;
  padding: 1.75rem 2rem 2.25rem;
}
.doc-main__title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.doc-main__meta {
  margin: 0 0 1.35rem;
  font-size: 0.86rem;
  color: var(--muted);
}
.doc-main__body {
  color: var(--ink-soft, #374151);
  font-size: 0.98rem;
  line-height: 1.8;
}
.doc-main__body h2 {
  margin: 1.6rem 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}
.doc-main__body p { margin: 0 0 0.95rem; }
.doc-main__body ul,
.doc-main__body ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}
.doc-main__body li { margin: 0.25rem 0; }
.doc-main__body a { color: var(--brand); }
.doc-main__body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.doc-callout {
  margin: 1rem 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(30, 79, 214, 0.22);
  border-radius: 8px;
  background: rgba(30, 79, 214, 0.06);
  color: #1f2937;
  font-size: 0.92rem;
  line-height: 1.65;
}

.doc-main__pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.doc-main__pager-item button {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbfc;
  padding: 0.85rem 1rem;
  cursor: pointer;
  font: inherit;
}
.doc-main__pager-item.is-next button { text-align: right; }
.doc-main__pager-item button:hover {
  border-color: rgba(30, 79, 214, 0.35);
  background: rgba(30, 79, 214, 0.04);
}
.doc-main__pager-item span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.doc-main__pager-item strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}
.doc-main__pager-item .is-empty {
  display: block;
  padding: 0.85rem 1rem;
  color: #c0c4cc;
  font-size: 0.88rem;
  border: 1px dashed var(--line);
  border-radius: 10px;
}
.doc-main__pager-item.is-next .is-empty { text-align: right; }

.doc-paywall {
  max-width: 420px;
  margin: 4rem auto;
  padding: 2rem 1.75rem;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(26, 29, 36, 0.05);
}
.doc-paywall__title {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}
.doc-paywall__desc {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.doc-paywall__price {
  margin: 0 0 1.25rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand);
}
.doc-paywall__actions {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .doc-reader__shell {
    width: 100%;
    margin: 0;
  }
  .doc-reader__wrap {
    display: block;
    min-height: calc(100vh - 3.25rem);
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .doc-reader__fold { display: inline-flex; align-items: center; }
  .doc-reader__mask { display: block; }
  .doc-reader__mask[hidden] { display: none !important; }

  .doc-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 60;
    width: min(82vw, 300px);
    height: 100vh;
    border-right: 1px solid var(--line);
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: 8px 0 24px rgba(26, 29, 36, 0.12);
  }
  .doc-sidebar.is-open { transform: translateX(0); }

  .doc-main {
    padding: 1.25rem 1rem 5.5rem;
  }
  .doc-main__pager {
    grid-template-columns: 1fr;
  }
  .doc-main__pager-item.is-next button,
  .doc-main__pager-item.is-next .is-empty {
    text-align: left;
  }
  .doc-reader__top {
    grid-template-columns: 4.5rem 1fr 4.5rem;
    padding: 0 0.75rem;
  }
  .doc-reader__top-title { font-size: 0.88rem; }
}


/* ===== Course detail ===== */
.course-detail { padding: 1.25rem 0 3rem; }
.cd-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.75rem 1.85rem;
  margin-bottom: 1.15rem;
  box-shadow: 0 6px 20px rgba(26, 29, 36, 0.04);
  overflow-x: hidden;
  min-width: 0;
}
.cd-header {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: stretch;
}
.cd-header__left { flex: 1; min-width: 0; }
.cd-header__title {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}
.cd-header__meta {
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: #6b7a90;
}
.cd-header__people {
  width: 1rem;
  height: 1rem;
  display: inline-block;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 40%, #7a8aa3 0 28%, transparent 29%),
    radial-gradient(circle at 65% 40%, #7a8aa3 0 28%, transparent 29%),
    radial-gradient(ellipse at 50% 85%, #7a8aa3 0 42%, transparent 43%);
  opacity: 0.85;
  flex-shrink: 0;
}
.cd-header__tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.cd-tag {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 4px;
  background: rgba(30, 79, 214, 0.08);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 500;
}
.cd-header__right {
  width: 13.5rem;
  flex-shrink: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cd-header__price {
  margin: 0 0 1rem;
  font-size: 2rem;
  font-weight: 700;
  color: #f56c6c;
  line-height: 1.1;
}
.cd-header__price.is-free { color: #f56c6c; }
.cd-header__btn {
  width: 100%;
  height: 2.75rem;
  border: 0;
  border-radius: 6px;
  background: #f56c6c;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.cd-header__btn:hover:not(:disabled) { opacity: 0.92; }
.cd-header__btn:disabled {
  opacity: 0.65;
  cursor: default;
}

.cd-section + .cd-section { margin-top: 2rem; }
.cd-section__title {
  margin: 0 0 1rem;
  padding-left: 0.65rem;
  border-left: 4px solid var(--brand);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.cd-section__intro {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft, #4b5563);
  line-height: 1.8;
  white-space: pre-wrap;
}
.cd-locked-tip {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.cd-outline__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.65rem;
  background: #f3f5f8;
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--ink);
}
.cd-outline__item:last-child { margin-bottom: 0; }
.cd-outline__name { font-weight: 500; min-width: 0; }
.cd-outline__dur { color: #9aa3af; font-size: 0.86rem; flex-shrink: 0; }

.cd-chapters__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  margin-bottom: 0.65rem;
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 8px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.cd-chapters__row:last-child { margin-bottom: 0; }
.cd-chapters__row:hover {
  border-color: rgba(30, 79, 214, 0.35);
  background: #f8fafc;
}
.cd-chapters__name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  min-width: 0;
}
.cd-chapters__btn {
  flex-shrink: 0;
  border: 0;
  border-radius: 4px;
  padding: 0.35rem 0.85rem;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}
.cd-chapters__btn.is-watch { background: #67c23a; }
.cd-chapters__btn.is-watch:hover { background: #5daf34; }
.cd-chapters__btn.is-lock { background: var(--brand); }
.cd-chapters__btn.is-lock:hover { background: var(--brand-deep); }

.cd-back {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
}
.cd-back a {
  color: var(--muted);
  text-decoration: none;
}
.cd-back a:hover { color: var(--brand); }

.cd-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(26, 29, 36, 0.5);
}
.cd-modal[hidden] { display: none !important; }
.cd-modal__panel {
  width: min(640px, 100%);
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}
.cd-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--line);
}
.cd-modal__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}
.cd-modal__close {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 0 0.2rem;
}
.cd-modal__close:hover { color: #666; }
.cd-modal__body { padding: 1.25rem; }
.cd-modal__demo {
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: #111;
  color: #ddd;
  border-radius: 8px;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.92rem;
}
.cd-modal__demo p { margin: 0; }

@media (max-width: 768px) {
  .course-detail { padding: 0.85rem 0 5.5rem; }
  .cd-card {
    padding: 1.15rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.85rem;
  }
  .cd-header {
    flex-direction: column;
    gap: 1.25rem;
  }
  .cd-header__right {
    width: 100%;
    position: sticky;
    bottom: 0.75rem;
    z-index: 30;
    padding: 0.85rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(26, 29, 36, 0.12);
  }
  .cd-header__price { font-size: 1.55rem; margin-bottom: 0.65rem; }
  .cd-outline__item,
  .cd-chapters__row {
    flex-direction: column;
    align-items: flex-start;
  }
  .cd-chapters__btn { align-self: flex-end; }
}


/* ===== Community ===== */
.community-layout {
  position: relative;
}
.community-layout > .res-side {
  grid-column: 1;
  grid-row: 1;
  margin-top: 0;
  align-self: start;
}
.community-layout > .docs-main {
  grid-column: 2;
  grid-row: 1;
  margin-top: 0;
  align-self: start;
}
.community-layout > .docs-hot {
  grid-column: 3;
  grid-row: 1;
  margin-top: 0;
  align-self: start;
}
.comm-fold {
  display: none;
  position: fixed;
  left: 0.85rem;
  bottom: 1.25rem;
  z-index: 55;
  height: 2.5rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(30, 79, 214, 0.28);
  cursor: pointer;
}
.comm-mask {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(26, 29, 36, 0.42);
}
.comm-mask[hidden] { display: none !important; }

.comm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.comm-head .res-count { margin: 0; }
.comm-publish {
  border: 0;
  border-radius: 8px;
  height: 2.2rem;
  padding: 0 1rem;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.comm-publish:hover { background: var(--brand-deep); }

.comm-list {
  display: grid;
  gap: 0.75rem;
}
.comm-post {
  display: flex;
  gap: 0.9rem;
  padding: 1.05rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.comm-post:hover {
  border-color: rgba(30, 79, 214, 0.28);
  box-shadow: 0 8px 20px rgba(26, 29, 36, 0.04);
}
.comm-post.is-paid { border-color: #f3d2d2; }
.comm-post__avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  background: #6b7cff;
}
.comm-post__avatar.tone-violet { background: #7c6cf0; }
.comm-post__avatar.tone-blue { background: #3b82f6; }
.comm-post__avatar.tone-teal { background: #14b8a6; }
.comm-post__avatar.tone-orange { background: #f59e0b; }
.comm-post__avatar.tone-rose { background: #f43f5e; }
.comm-post__avatar.tone-green { background: #22c55e; }
.comm-post__main { min-width: 0; flex: 1; }
.comm-post__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.35rem;
}
.comm-post__author {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}
.comm-post__time {
  font-size: 0.8rem;
  color: #9aa3af;
}
.comm-post__title {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}
.comm-post:hover .comm-post__title { color: var(--brand); }
.comm-post__excerpt {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
  color: var(--ink-soft, #4b5563);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.comm-post__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}
.comm-post__tag {
  font-size: 0.78rem;
  color: #6b7a90;
  background: #f3f5f8;
  border-radius: 4px;
  padding: 0.12rem 0.45rem;
}
.comm-post__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  font-size: 0.8rem;
  color: #9aa3af;
}
.comm-post__cat {
  color: var(--brand);
  font-weight: 600;
}
.comm-post__btn {
  margin-left: auto;
  border: 0;
  border-radius: 6px;
  height: 2rem;
  padding: 0 0.85rem;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.comm-post__btn:hover { background: var(--brand-deep); }
.comm-post__btn.is-paid { background: #f56c6c; }
.comm-post__btn.is-paid:hover { background: #e45656; }

.comm-side__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.comm-side__head h3 { margin: 0; }
.comm-side__more {
  border: 0;
  background: none;
  color: var(--brand);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
}
.comm-hot { display: grid; gap: 0.55rem; }
.comm-hot__item {
  display: grid;
  grid-template-columns: 0.5rem 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.55rem;
  row-gap: 0.2rem;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfc;
  padding: 0.7rem 0.75rem;
  cursor: pointer;
  font: inherit;
}
.comm-hot__item:hover {
  border-color: rgba(30, 79, 214, 0.3);
  background: #fff;
}
.comm-hot__dot {
  grid-row: 1 / span 2;
  width: 0.4rem;
  height: 0.4rem;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: var(--brand);
}
.comm-hot__title {
  grid-column: 2;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}
.comm-hot__meta {
  grid-column: 2;
  font-size: 0.75rem;
  color: #9aa3af;
}

.comm-form__label {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}
.comm-form__input,
.comm-form__textarea {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
.comm-form__textarea { resize: vertical; min-height: 6rem; }
.comm-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
}

.comm-detail__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.comm-detail__author {
  margin: 0;
  font-weight: 650;
  color: var(--ink);
}
.comm-detail__author-link,
.article-meta__author {
  color: inherit;
  text-decoration: none;
}
.comm-detail__author-link:hover,
.article-meta__author:hover {
  color: var(--brand);
  text-decoration: underline;
}
.comm-detail__time {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: #9aa3af;
}
.comm-detail__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.comm-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.comm-detail__body {
  font-size: 0.98rem;
  color: var(--ink-soft, #374151);
  line-height: 1.8;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.comm-detail__body p { margin: 0 0 0.85rem; }
.comm-detail__body img,
.comm-detail__body video,
.comm-detail__body iframe {
  max-width: 100%;
  height: auto;
}
.comm-detail__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: #86909c;
  font-size: 0.88rem;
}

.comm-comments { display: grid; gap: 0.85rem; margin-bottom: 1.15rem; }
.comm-comment {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #f0f2f5;
}
.comm-comment:last-child { border-bottom: 0; }
.comm-comment__meta {
  margin: 0 0 0.3rem;
  font-size: 0.82rem;
  color: #86909c;
}
.comm-comment__meta strong { color: var(--ink); font-weight: 650; }
.comm-comment__text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft, #4b5563);
  line-height: 1.6;
}
.comm-reply { display: grid; gap: 0.65rem; justify-items: end; }
.comm-reply .comm-form__textarea { width: 100%; }

@media (max-width: 900px) {
  .community-layout {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }
  .comm-fold { display: inline-flex; align-items: center; }
  .comm-mask { display: block; }
  .community-layout > .res-side {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 60;
    width: min(82vw, 280px);
    height: 100vh;
    margin: 0;
    padding: 1rem 0.85rem;
    background: #fff;
    border-right: 1px solid var(--line);
    border-radius: 0;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: 8px 0 24px rgba(26, 29, 36, 0.12);
    overflow: auto;
  }
  .community-layout > .res-side .res-side__nav {
    display: grid;
    gap: 0.15rem;
    overflow: visible;
  }
  .community-layout > .res-side .res-side__item {
    width: 100%;
    white-space: normal;
  }
  .community-layout > .res-side.is-open { transform: translateX(0); }
  .community-layout > .docs-main,
  .community-layout > .docs-hot {
    width: 100%;
  }
  .comm-post { padding: 0.95rem 0.9rem; }
  .comm-post__btn {
    margin-left: 0;
    width: 100%;
  }
  .comm-post__foot { gap: 0.45rem 0.7rem; }
}


/* ===== Mobile chip navs (shared) ===== */
@media (max-width: 860px) {
  /* 资讯 H5：收紧顶栏下方空白 */
  body[data-page="news"] .page-main {
    padding-top: 0.4rem;
    padding-bottom: 1.5rem;
  }
  body[data-page="news"] .page-main > .section {
    padding-top: 0.25rem;
  }
  body[data-page="news"] .news-layout {
    gap: 0.65rem;
  }
  body[data-page="news"] .news-cats-side {
    padding: 0.5rem 0.55rem;
    margin: 0;
    width: 100%;
    max-width: none;
  }
  body[data-page="news"] .news-search {
    margin-bottom: 0.55rem;
    padding: 0.55rem 0.65rem;
  }

  .news-cats-side {
    position: static;
    display: block;
  }
  .news-cats {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.35rem !important;
    width: 100%;
  }
  .news-cats__item {
    display: inline-flex !important;
    width: auto !important;
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0.4rem 0.75rem;
    font-size: 0.84rem;
  }

  .user-side__nav {
    display: grid !important;
    flex-wrap: nowrap !important;
    gap: 0.42rem !important;
    align-content: start !important;
  }
  .user-side__link {
    display: flex !important;
    width: 100% !important;
    flex: none;
    white-space: normal;
    min-height: 2.65rem;
    height: auto;
    padding: 0.62rem 0.75rem;
    font-size: 1.02rem;
    justify-content: center;
    text-align: center;
    align-self: start;
  }

  .console-side__nav {
    display: grid !important;
    flex-wrap: nowrap !important;
    gap: 0.28rem !important;
    align-content: start !important;
  }
  .console-side__link {
    display: flex !important;
    width: 100% !important;
    flex: none;
    white-space: normal;
    min-height: 2.35rem;
    height: auto;
    padding: 0.48rem 0.85rem;
    font-size: 0.9rem;
    align-self: start;
  }

  .task-side__nav,
  .res-side__nav {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.35rem !important;
  }
  .task-side__item,
  .res-side__item {
    display: inline-flex !important;
    width: auto !important;
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0.4rem 0.75rem;
    font-size: 0.84rem;
  }

  .docs-layout > .res-side .res-side__nav,
  .course-layout > .res-side .res-side__nav,
  .res-layout > .res-side .res-side__nav {
    display: flex !important;
    flex-wrap: wrap !important;
  }
}


@media (max-width: 900px) {
  .community-layout > .res-side .res-side__nav {
    display: grid !important;
    flex-wrap: nowrap !important;
    gap: 0.15rem !important;
  }
  .community-layout > .res-side .res-side__item {
    display: block !important;
    width: 100% !important;
    white-space: normal;
  }
}

/* —— 图标市场：素材类型背景卡片 —— */
.cats--icon-kinds .cat {
  position: relative;
  overflow: hidden;
  min-height: 148px;
  border: 0;
  border-radius: 16px;
  padding: 0;
  text-align: left;
  color: #fff;
  box-shadow: 0 8px 22px rgba(20, 30, 50, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  background: transparent;
}
.cats--icon-kinds .cat:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(20, 30, 50, 0.14);
  border-color: transparent;
}
.cats--icon-kinds .cat.is-filter.is-active {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(20, 30, 50, 0.16);
}
.cats--icon-kinds .cat.is-filter.is-active .cat__name,
.cats--icon-kinds .cat.is-filter.is-active .cat__sub {
  color: #fff;
}
.cats--icon-kinds .cat__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cats--icon-kinds .cat__deco {
  position: absolute;
  right: -18%;
  top: -28%;
  width: 68%;
  height: 88%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  pointer-events: none;
  z-index: 0;
}
.cats--icon-kinds .cat__body {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 148px;
  padding: 1.15rem 1.05rem 1.05rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}
.cats--icon-kinds .cat__icon,
.cats--icon-kinds .cat__icon--on-bg {
  width: 46px;
  height: 46px;
  margin: 0;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}
.cats--icon-kinds .cat__icon svg,
.cats--icon-kinds .cat__icon--on-bg svg {
  width: 24px;
  height: 24px;
  display: block;
}
.cats--icon-kinds .cat__text {
  margin-top: auto;
  width: 100%;
}
.cats--icon-kinds .cat__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.25rem;
  line-height: 1.3;
}
.cats--icon-kinds .cat__sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  line-height: 1.4;
}
.cat--icons-all .cat__bg {
  background: linear-gradient(145deg, #1e4fd6 0%, #5b8def 55%, #7aa4f5 100%);
}
.cat--icons-glyph .cat__bg {
  background: linear-gradient(145deg, #0f766e 0%, #14b8a6 55%, #2dd4bf 100%);
}
.cat--icons-image .cat__bg {
  background: linear-gradient(145deg, #c2410c 0%, #ea580c 55%, #fb923c 100%);
}
.cat--icons-asset .cat__bg {
  background: linear-gradient(145deg, #4c1d95 0%, #7c3aed 55%, #a78bfa 100%);
}

@media (max-width: 860px) {
  .cats--icon-kinds .cat,
  .cats--icon-kinds .cat__body {
    min-height: 128px;
  }
  .cats--icon-kinds .cat__body {
    padding: 0.95rem 0.85rem 0.9rem;
  }
  .cats--icon-kinds .cat__icon,
  .cats--icon-kinds .cat__icon--on-bg {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
  .cats--icon-kinds .cat__icon svg,
  .cats--icon-kinds .cat__icon--on-bg svg {
    width: 20px;
    height: 20px;
  }
  .cats--icon-kinds .cat__name {
    font-size: 0.95rem;
  }
}

.icon-wm {
  position: relative;
  overflow: hidden;
}
.icon-wm::after {
  content: attr(data-wm);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(0.75rem, 2.2vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(30, 40, 60, 0.22);
  background-image: repeating-linear-gradient(
    -28deg,
    transparent 0,
    transparent 48px,
    rgba(30, 40, 60, 0.06) 48px,
    rgba(30, 40, 60, 0.06) 96px
  );
  pointer-events: none;
  user-select: none;
  transform: rotate(-18deg) scale(1.35);
  white-space: nowrap;
}
.icon-pack__preview.icon-wm,
.icon-preview-board.icon-wm,
.icon-single-stage.icon-wm {
  isolation: isolate;
}
.icon-pack__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 发布中心入口卡片：渐变底 + 水印图标 */
.user-entry--card {
  position: relative;
  overflow: hidden;
  min-height: 108px;
  padding: 1.15rem 1.15rem 1.1rem;
  border: 1px solid transparent;
  isolation: isolate;
}
.user-entry--card .user-entry__name,
.user-entry--card .user-entry__desc {
  position: relative;
  z-index: 1;
}
.user-entry--card .user-entry__name {
  font-size: 1.02rem;
  margin-bottom: 0.35rem;
}
.user-entry--card .user-entry__desc {
  max-width: 72%;
  line-height: 1.45;
}
.user-entry__glow {
  position: absolute;
  inset: auto -20% -40% auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
  filter: blur(2px);
}
.user-entry__icon {
  position: absolute;
  right: 0.85rem;
  bottom: 0.55rem;
  width: 52px;
  height: 52px;
  opacity: 0.22;
  color: currentColor;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.2s, transform 0.2s;
}
.user-entry__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.user-entry--card:hover {
  box-shadow: 0 10px 24px rgba(26, 29, 36, 0.08);
  transform: translateY(-1px);
}
.user-entry--card:hover .user-entry__icon {
  opacity: 0.34;
  transform: scale(1.06) rotate(-4deg);
}

.user-entry--tasks {
  color: #0f766e;
  background:
    linear-gradient(145deg, #f0fdfa 0%, #ccfbf1 48%, #e6fffa 100%);
  border-color: rgba(20, 184, 166, 0.28);
}
.user-entry--tasks .user-entry__glow { background: #5eead4; }
.user-entry--tasks .user-entry__desc { color: #0f766e; opacity: 0.78; }

.user-entry--cases {
  color: #1e4fd6;
  background:
    linear-gradient(145deg, #eff6ff 0%, #dbeafe 50%, #f0f7ff 100%);
  border-color: rgba(30, 79, 214, 0.28);
}
.user-entry--cases .user-entry__glow { background: #93c5fd; }
.user-entry--cases .user-entry__desc { color: #1e4fd6; opacity: 0.78; }

.user-entry--news {
  color: #c2410c;
  background:
    linear-gradient(145deg, #fff7ed 0%, #ffedd5 52%, #fffbeb 100%);
  border-color: rgba(234, 88, 12, 0.28);
}
.user-entry--news .user-entry__glow { background: #fdba74; }
.user-entry--news .user-entry__desc { color: #c2410c; opacity: 0.78; }

.user-entry--articles {
  color: #3730a3;
  background:
    linear-gradient(145deg, #eef2ff 0%, #e0e7ff 52%, #f8fafc 100%);
  border-color: rgba(79, 70, 229, 0.28);
}
.user-entry--articles .user-entry__glow { background: #a5b4fc; }
.user-entry--articles .user-entry__desc { color: #3730a3; opacity: 0.78; }

.user-entry--demand {
  color: #1d4ed8;
  background:
    linear-gradient(145deg, #eff6ff 0%, #dbeafe 50%, #f8fafc 100%);
  border-color: rgba(37, 99, 235, 0.28);
}
.user-entry--demand .user-entry__glow { background: #93c5fd; }
.user-entry--demand .user-entry__desc { color: #1d4ed8; opacity: 0.78; }

.user-entry--icons {
  color: #6d28d9;
  background:
    linear-gradient(145deg, #f5f3ff 0%, #ede9fe 50%, #faf5ff 100%);
  border-color: rgba(124, 58, 237, 0.28);
}
.user-entry--icons .user-entry__glow { background: #c4b5fd; }
.user-entry--icons .user-entry__desc { color: #6d28d9; opacity: 0.78; }

.user-entry--tickets {
  color: #be123c;
  background:
    linear-gradient(145deg, #fff1f2 0%, #ffe4e6 52%, #fff7f8 100%);
  border-color: rgba(225, 29, 72, 0.28);
}
.user-entry--tickets .user-entry__glow { background: #fda4af; }
.user-entry--tickets .user-entry__desc { color: #be123c; opacity: 0.78; }

.user-entry--resources {
  color: #047857;
  background:
    linear-gradient(145deg, #ecfdf5 0%, #d1fae5 50%, #f0fdf4 100%);
  border-color: rgba(16, 185, 129, 0.28);
}
.user-entry--resources .user-entry__glow { background: #6ee7b7; }
.user-entry--resources .user-entry__desc { color: #047857; opacity: 0.78; }

.user-entry--goods {
  color: #1d4ed8;
  background:
    linear-gradient(145deg, #eff6ff 0%, #dbeafe 48%, #f8fafc 100%);
  border-color: rgba(37, 99, 235, 0.28);
}
.user-entry--goods .user-entry__glow { background: #93c5fd; }
.user-entry--goods .user-entry__desc { color: #1d4ed8; opacity: 0.78; }

@media (max-width: 900px) {
  .user-entry-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .user-entry-grid--3 { grid-template-columns: 1fr; }
  .user-entry--card .user-entry__desc { max-width: 78%; }
}

.user-entry--tasks:hover { border-color: rgba(13, 148, 136, 0.5); }
.user-entry--cases:hover { border-color: rgba(30, 79, 214, 0.5); }
.user-entry--news:hover { border-color: rgba(234, 88, 12, 0.5); }
.user-entry--articles:hover { border-color: rgba(79, 70, 229, 0.5); }
.user-entry--demand:hover { border-color: rgba(37, 99, 235, 0.5); }
.user-entry--icons:hover { border-color: rgba(124, 58, 237, 0.5); }
.user-entry--tickets:hover { border-color: rgba(225, 29, 72, 0.5); }
.user-entry--resources:hover { border-color: rgba(5, 150, 105, 0.5); }
.user-entry--goods:hover { border-color: rgba(37, 99, 235, 0.5); }
