/* ========== 新粗野风格 / Neo-Brutalism ========== */
:root {
  --yellow: #ffe900;
  --black: #0a0a0a;
  --paper: #fffef2;
  --white: #ffffff;
  --muted: #4a4a4a;
  --red: #ff2a2a;
  --green: #00c853;
  --blue: #2563ff;
  --border: var(--black);
  --text: var(--black);
  --radius: 0;
  --shadow: 4px 4px 0 var(--black);
  --shadow-lg: 8px 8px 0 var(--black);
  --max-width: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background-color: var(--paper);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    linear-gradient(rgba(10, 10, 10, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 10, 10, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== 顶部导航 ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--yellow);
  border-bottom: 3px solid var(--black);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.site-logo {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border: 2px solid var(--black);
}

.title-text {
  background: none;
  -webkit-text-fill-color: var(--black);
  color: var(--black);
}

.site-nav {
  display: flex;
  gap: 8px;
}

.site-nav a {
  padding: 8px 16px;
  border: 2px solid var(--black);
  background: var(--yellow);
  color: var(--black);
  font-size: 15px;
  font-weight: 800;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--black);
  color: var(--yellow);
  box-shadow: 3px 3px 0 var(--black);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: var(--white);
  border: 2px solid var(--black);
  cursor: pointer;
  padding: 8px 10px;
  box-shadow: var(--shadow);
}

.menu-toggle span {
  width: 22px;
  height: 3px;
  background: var(--black);
  transition: 0.3s;
}

/* ========== 主体 ========== */
#app {
  flex: 1;
  padding-top: 32px;
  padding-bottom: 80px;
  animation: fade-in 0.3s ease;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.cursor {
  display: inline-block;
  width: 4px;
  height: 0.95em;
  margin-left: 6px;
  background: var(--black);
  vertical-align: middle;
  transform: translateY(-0.04em);
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ========== 主页 Hero ========== */
.hero {
  background: var(--yellow);
  border: 3px solid var(--black);
  box-shadow: var(--shadow);
  padding: 32px 40px;
  margin: 8px 0 24px;
  display: flex;
  align-items: stretch;
  gap: 36px;
  flex-wrap: wrap;
  text-align: left;
}

.hero .avatar {
  width: 260px;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  align-self: stretch;
  border: 3px solid var(--black);
  box-shadow: var(--shadow);
  background: var(--white);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: avatar-in 0.5s ease both;
}

@keyframes avatar-in {
  from { opacity: 0; transform: scale(0.8) rotate(-4deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  min-height: 1.2em;
}

.hero h1 .grad {
  background: var(--black);
  color: var(--yellow);
  -webkit-text-fill-color: var(--yellow);
  background-clip: unset;
  -webkit-background-clip: unset;
  padding: 0 10px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero .tagline {
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  max-width: 560px;
  margin-bottom: 28px;
  animation: rise-in 0.6s ease 0.2s both;
}

.hero-cta {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1.1fr 1fr;
  gap: 14px;
  align-items: center;
  max-width: 100%;
  animation: rise-in 0.6s ease 0.35s both;
}

.hero-cta .hero-cta-narrow {
  white-space: nowrap;
}

.scroll-down {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  height: 46px;
  border: 2px solid var(--black);
  background: var(--black);
  color: var(--yellow);
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  animation: bounce 1.8s ease-in-out infinite;
}

.scroll-down:hover {
  background: var(--yellow);
  color: var(--black);
  box-shadow: 6px 6px 0 var(--black);
  animation-play-state: paused;
}

.scroll-down iconify-icon { display: inline-flex; }

@keyframes bounce {
  0%, 100% { transform: translateY(-4px); }
  50% { transform: translateY(0); }
}

/* ========== 按钮 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid var(--black);
  height: 46px;
  line-height: 1;
  box-sizing: border-box;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--black);
  color: var(--yellow);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--yellow);
  color: var(--black);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--black);
}

.btn-ghost {
  background: var(--white);
  color: var(--black);
  box-shadow: var(--shadow);
}

.btn-ghost:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--black);
}

.btn-disabled {
  background: var(--paper);
  color: var(--muted);
  border-color: var(--muted);
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.8;
  user-select: none;
}

.btn-disabled:hover {
  transform: none;
  box-shadow: none;
}

/* ========== 区块标题 ========== */
.section { margin-top: 64px; }

.hero + .section { margin-top: 64px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--black);
}

.section-head h2 {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-head .sub {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}

/* ========== 功能卡片 ========== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  display: block;
  background: var(--white);
  border: 2px solid var(--black);
  box-shadow: var(--shadow);
  padding: 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  animation: rise-in 0.5s ease both;
}

.feature-card:nth-child(1) { animation-delay: 0.4s; }
.feature-card:nth-child(2) { animation-delay: 0.5s; }
.feature-card:nth-child(3) { animation-delay: 0.6s; }

.feature-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--black);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(-4deg);
}

.feature-icon {
  font-size: 26px;
  color: var(--black);
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--black);
  background: var(--yellow);
  margin-bottom: 14px;
  transition: transform 0.2s ease;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

/* ========== 平台导流 ========== */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.platform-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 2px solid var(--black);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  animation: rise-in 0.5s ease both;
}

.platform-card:nth-child(1) { animation-delay: 0.5s; }
.platform-card:nth-child(2) { animation-delay: 0.58s; }
.platform-card:nth-child(3) { animation-delay: 0.66s; }
.platform-card:nth-child(4) { animation-delay: 0.74s; }
.platform-card:nth-child(5) { animation-delay: 0.82s; }
.platform-card:nth-child(6) { animation-delay: 0.9s; }

.platform-card:hover {
  transform: translate(4px, -3px);
  box-shadow: 7px 7px 0 var(--black);
}

.platform-card .p-icon {
  width: 46px;
  height: 46px;
  border: 2px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.platform-card .p-info h4 {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 1px;
  line-height: 1.2;
}

.platform-card .p-info span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.2;
}

.platform-card .arrow {
  margin-left: auto;
  color: var(--black);
  transition: 0.15s;
}

.platform-card:hover .arrow {
  transform: translateX(4px);
}

/* ========== 提示条 ========== */
.platforms-note {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  margin: 24px 0 0;
  padding: 12px 16px;
  background: var(--yellow);
  border: 2px solid var(--black);
  box-shadow: var(--shadow);
}

.platforms-note + .section.contact-section {
  margin-top: 24px;
  margin-bottom: 0;
}

/* ========== 产品页 ========== */
.products-intro {
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 36px;
  max-width: 640px;
}

.category-block { margin-bottom: 52px; }

.category-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px dashed var(--black);
}

.category-title .badge {
  font-size: 12px;
  font-weight: 800;
  color: var(--black);
  background: var(--yellow);
  border: 2px solid var(--black);
  padding: 2px 10px;
  box-shadow: 2px 2px 0 var(--black);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--white);
  border: 2px solid var(--black);
  box-shadow: var(--shadow);
  padding: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: rise-in 0.4s ease both;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.12s; }
.product-card:nth-child(3) { animation-delay: 0.19s; }
.product-card:nth-child(4) { animation-delay: 0.26s; }
.product-card:nth-child(5) { animation-delay: 0.33s; }
.product-card:nth-child(6) { animation-delay: 0.4s; }

.product-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--black);
}

.product-card .p-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0;
}

.product-card .p-emoji {
  width: 32px;
  height: 32px;
  border: 2px solid var(--black);
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  overflow: hidden;
}
.product-card .p-emoji .p-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-card .p-name {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
}

.product-card .p-ver {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  line-height: 1.2;
  margin: 1px 0 0;
}

.product-card .p-ver.recommend {
  color: var(--black);
}

.product-card .p-desc {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card .p-tags {
  display: none;
}

.tag {
  display: none;
}

/* ========== 产品详情 ========== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--black);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 24px;
  padding: 6px 12px;
  border: 2px solid var(--black);
  background: var(--white);
  box-shadow: 2px 2px 0 var(--black);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.back-link:hover {
  background: var(--yellow);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--black);
}

.detail-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 22px;
  margin-bottom: 32px;
  padding: 28px;
  background: var(--yellow);
  border: 3px solid var(--black);
  box-shadow: var(--shadow-lg);
}

.detail-head .d-emoji {
  width: 120px;
  height: 120px;
  border: 3px solid var(--black);
  background: var(--white);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  flex-shrink: 0;
  overflow: hidden;
}
.detail-head .d-emoji .p-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.detail-head h1 {
  font-size: clamp(24px, 5vw, 34px);
  font-weight: 900;
  margin: 0 0 8px;
  line-height: 1.2;
}

.detail-head .d-meta {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 16px;
}

.detail-head .d-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-section { margin-bottom: 40px; }

.detail-section h2 {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid var(--black);
  padding-bottom: 8px;
}

/* 版本日志 */
.version-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.version-item {
  background: var(--white);
  border: 2px solid var(--black);
  border-left: 5px solid var(--black);
  box-shadow: var(--shadow);
  padding: 18px 20px;
}

.version-item .v-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.version-item .v-num {
  font-weight: 900;
  font-size: 16px;
  color: var(--black);
}

.version-item .v-date {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.version-item .v-tag {
  font-size: 11px;
  font-weight: 900;
  padding: 3px 8px;
  border: 2px solid var(--black);
}

.v-tag.major { background: var(--red); color: var(--white); }
.v-tag.minor { background: var(--blue); color: var(--white); }
.v-tag.patch { background: var(--yellow); color: var(--black); }

.version-item ul {
  list-style: none;
  padding-left: 4px;
}

.version-item li {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  padding: 4px 0 4px 20px;
  position: relative;
}

.version-item li::before {
  content: "▪";
  position: absolute;
  left: 4px;
  color: var(--black);
  font-weight: 900;
}

/* 分类描述 */
.category-desc {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  margin: -8px 0 18px;
}

/* 详情页类型标签 */
.type-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 900;
  padding: 3px 10px;
  border: 2px solid var(--black);
  vertical-align: middle;
  margin-left: 6px;
  transform: translateY(-3px);
  box-shadow: 2px 2px 0 var(--black);
}

.original-tag {
  background: var(--black);
  color: var(--yellow);
}

.recommend-tag {
  background: var(--yellow);
  color: var(--black);
}

/* 推荐理由卡片 */
.reason-card {
  background: var(--yellow);
  border: 2px solid var(--black);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  color: var(--black);
  line-height: 1.9;
  font-size: 15px;
  font-weight: 600;
}

/* 适用场景 */
.scenario-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.scenario-item {
  background: var(--white);
  border: 2px solid var(--black);
  box-shadow: var(--shadow);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.scenario-item:hover {
  background: var(--black);
  color: var(--yellow);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--black);
}

/* 空状态 */
.empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}

.empty .emoji { font-size: 48px; margin-bottom: 16px; }

/* ========== 文档详情页（从工具详情页跳转） ========== */
.docs-loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-weight: 700;
}
.loading-spin {
  display: inline-block;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.docs-detail-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 16px 0 24px;
  padding: 20px;
  background: var(--yellow);
  border: 3px solid var(--black);
  box-shadow: var(--shadow-lg);
}
.docs-detail-icon {
  width: 72px;
  height: 72px;
  border: 3px solid var(--black);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  flex-shrink: 0;
  overflow: hidden;
}
.docs-detail-icon .p-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.docs-detail-head h1 {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 900;
  margin-bottom: 4px;
}

/* 左右分栏：左侧目录 + 右侧内容 */
.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
  align-items: start;
}
/* 单页时隐藏目录，内容占满 */
.docs-layout.single-page {
  grid-template-columns: 1fr;
}

.docs-toc {
  position: sticky;
  top: 16px;
  background: var(--white);
  border: 3px solid var(--black);
  box-shadow: var(--shadow);
  padding: 14px 12px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
/* 折叠按钮：Neo-Brutalism 风格 */
.docs-toc-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 10px;
  margin-bottom: 10px;
  border: 2px solid var(--black);
  background: var(--yellow);
  color: var(--black);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--black);
  transition: transform .12s, box-shadow .12s, background .12s, color .12s;
}
.docs-toc-toggle:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--black);
}
.docs-toc-toggle:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--black);
}
.docs-toc-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.docs-toc-toggle-arrow {
  display: inline-block;
  font-size: 12px;
  transition: transform .2s ease;
}
/* 收起后箭头旋转 -90°（指向右） */
.docs-toc.collapsed .docs-toc-toggle-arrow {
  transform: rotate(-90deg);
}
/* 收起状态：隐藏列表，并去掉底部留白 */
.docs-toc.collapsed .docs-toc-list { display: none; }
.docs-toc.collapsed { padding-bottom: 10px; }
.docs-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.docs-toc-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 2px solid var(--black);
  background: var(--paper);
  cursor: pointer;
  transition: background .12s, transform .12s, box-shadow .12s;
  font-weight: 700;
  font-size: 13px;
  text-align: left;
  color: var(--black);
}
.docs-toc-item:hover {
  background: var(--yellow);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--black);
}
.docs-toc-item.active {
  background: var(--black);
  color: var(--yellow);
}
.docs-toc-item.active .docs-toc-num {
  background: var(--yellow);
  color: var(--black);
}
.docs-toc-num {
  font-size: 11px;
  font-weight: 900;
  background: var(--white);
  border: 1.5px solid var(--black);
  padding: 1px 5px;
  flex-shrink: 0;
  min-width: 26px;
  text-align: center;
}
.docs-toc-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Markdown 渲染容器 */
.docs-content {
  background: var(--white);
  border: 3px solid var(--black);
  box-shadow: var(--shadow);
  padding: 32px 36px;
  line-height: 1.8;
  font-size: 15px;
  color: #1a1a1a;
  min-height: 400px;
}
.docs-content h1 {
  font-size: 28px;
  font-weight: 900;
  margin: 32px 0 16px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--black);
}
.docs-content h1:first-child { margin-top: 0; }
.docs-content h2 {
  font-size: 22px;
  font-weight: 900;
  margin: 28px 0 12px;
}
.docs-content h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 22px 0 10px;
}
.docs-content h4 {
  font-size: 16px;
  font-weight: 800;
  margin: 18px 0 8px;
}
.docs-content p {
  margin: 10px 0;
}
.docs-content ul,
.docs-content ol {
  margin: 10px 0;
  padding-left: 28px;
}
.docs-content li {
  margin: 4px 0;
}
.docs-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--yellow);
  border: 1.5px solid var(--black);
  padding: 1px 6px;
  font-size: 13px;
  font-weight: 700;
}
.docs-content pre {
  background: #1a1a1a;
  color: #f0f0f0;
  border: 2px solid var(--black);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  overflow-x: auto;
  margin: 14px 0;
  font-size: 13px;
  line-height: 1.6;
}
.docs-content pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
  font-weight: 400;
}
.docs-content blockquote {
  border-left: 4px solid var(--black);
  background: var(--paper);
  padding: 10px 16px;
  margin: 14px 0;
  font-style: italic;
  color: var(--muted);
}
.docs-content a {
  color: #0066cc;
  text-decoration: underline;
  font-weight: 700;
}
.docs-content a:hover {
  color: var(--black);
  background: var(--yellow);
}
.docs-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 14px 0;
  border: 2px solid var(--black);
}
.docs-content th,
.docs-content td {
  border: 1.5px solid var(--black);
  padding: 8px 12px;
  text-align: left;
}
.docs-content th {
  background: var(--yellow);
  font-weight: 900;
}
.docs-content img {
  max-width: 100%;
  border: 2px solid var(--black);
  margin: 10px 0;
}
.docs-content hr {
  border: none;
  border-top: 3px dashed var(--black);
  margin: 24px 0;
}

@media (max-width: 768px) {
  .docs-content { padding: 20px 18px; font-size: 14px; }
  .docs-content h1 { font-size: 22px; }
  .docs-content h2 { font-size: 18px; }
  /* 移动端：单列布局，目录改为可折叠垂直列表（JS 根据屏幕宽度设初始 collapsed） */
  .docs-layout { grid-template-columns: 1fr; }
  .docs-toc {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .docs-toc-list {
    flex-direction: column;
    gap: 4px;
  }
}

/* ========== 页脚 ========== */
.site-footer {
  background: var(--black);
  color: var(--yellow);
  padding: 28px 0;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.site-footer a {
  color: var(--yellow);
  text-decoration: underline;
}

.footer-sep {
  margin: 0 8px;
  opacity: 0.5;
}

/* ========== Iconify 图标统一控制 ========== */
iconify-icon {
  display: inline-flex;
  vertical-align: -0.125em;
  flex-shrink: 0;
}

.avatar-icon { font-size: 40px; }

.feature-icon { font-size: 26px; }

.p-brand-icon { font-size: 22px; }

.platform-card .arrow-icon {
  margin-left: auto;
  font-size: 18px;
  color: var(--black);
  transition: 0.15s;
}

.platform-card:hover .arrow-icon { transform: translateX(4px); }

.btn-icon { font-size: 17px; }

.inline-icon { font-size: 0.95em; vertical-align: -0.15em; }

.note-icon {
  font-size: 16px;
  vertical-align: -0.2em;
  margin-right: 4px;
}

.h2-icon {
  font-size: 20px;
  color: var(--black);
  vertical-align: -0.2em;
}

.cat-icon { font-size: 22px; }

/* ========== AI 资料&资讯 页面（公众号导流） ========== */
.ai-news-hero {
  background: var(--yellow);
  border: 3px solid var(--black);
  box-shadow: var(--shadow);
  padding: 12px 22px;
  margin: 8px 0 14px;
  position: relative;
  overflow: hidden;
}

.ai-news-hero::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -40px;
  width: 100px;
  height: 100px;
  background: var(--white);
  border: 3px solid var(--black);
  transform: rotate(12deg);
  z-index: 0;
}

.ai-news-hero > * { position: relative; z-index: 1; }

.ai-news-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--black);
  color: var(--yellow);
  font-size: 11px;
  font-weight: 900;
  padding: 3px 9px;
  border: 2px solid var(--black);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.ai-news-hero h1 {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .ai-news-hero h1 {
    white-space: normal;
  }
}


.ai-news-lead {
  font-size: 13px;
  line-height: 1.6;
  color: var(--black);
  font-weight: 600;
  max-width: 640px;
  margin-bottom: 0;
}

.ai-news-lead strong {
  background: var(--black);
  color: var(--yellow);
  padding: 1px 6px;
  margin: 0 2px;
}

.ai-news-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: stretch;
}

@media (max-width: 760px) {
  .ai-news-body {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .ai-news-qr {
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
  }
  .ai-news-qr-frame {
    width: 100% !important;
    max-width: none !important;
  }
  .ai-news-points {
    width: 100%;
  }
}


.ai-news-qr {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  height: 100%;
}

.ai-news-qr-frame {
  background: var(--white);
  border: 3px solid var(--black);
  box-shadow: var(--shadow);
  padding: 0;
  position: relative;
  width: 360px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  flex-shrink: 0;
  flex-grow: 1;
  overflow: hidden;
  align-self: stretch;
}

.ai-news-qr-frame img {
  display: block;
  width: 72%;
  height: auto;
  margin: 0 auto;
  aspect-ratio: 831 / 1079;
  object-fit: contain;
  object-position: center;
  border: 0;
  box-shadow: none;
}

.ai-news-qr-cap {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--yellow);
  border: 0;
  border-bottom: 3px solid var(--black);
  padding: 8px 10px;
  width: 100%;
  align-self: stretch;
  box-sizing: border-box;
  text-align: center;
  line-height: 1.4;
  box-shadow: none;
}

.ai-news-qr-foot {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--yellow);
  border: 0;
  border-top: 3px solid var(--black);
  border-bottom: 0;
  padding: 8px 10px;
  width: 100%;
  align-self: stretch;
  box-sizing: border-box;
  text-align: center;
  line-height: 1.4;
  box-shadow: none;
}

.ai-news-qr-cap strong {
  background: var(--black);
  color: var(--yellow);
  padding: 1px 6px;
  margin: 0 2px;
  font-weight: 900;
}

.ai-news-points {
  background: var(--white);
  border: 3px solid var(--black);
  box-shadow: var(--shadow);
  padding: 24px 26px;
}

.ai-news-points h2 {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-news-point {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 2px dashed var(--black);
}

.ai-news-point:first-of-type { border-top: 0; }

.ai-news-point-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--yellow);
  border: 2px solid var(--black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.ai-news-point h3 {
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 4px;
}

.ai-news-point p {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.7;
}

.ai-news-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 2px solid var(--black);
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.ai-news-foot .contact-email {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--yellow);
  border: 2px solid var(--black);
  padding: 3px 8px;
  color: var(--black);
  font-weight: 800;
  cursor: pointer;
}

.empty-icon {
  font-size: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 110px;
  background: var(--yellow);
  border: 3px solid var(--black);
  box-shadow: 6px 6px 0 var(--black);
  margin: 0 auto 28px;
  padding: 20px;
}

.empty-state-box {
  text-align: center;
  padding: 80px 24px;
  color: var(--muted);
  border: 3px dashed var(--black);
  background: var(--paper);
  max-width: 640px;
  margin: 40px auto;
}

.empty-state-box h2 {
  color: var(--black);
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 14px;
}

.empty-state-box p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 6px;
  font-weight: 600;
}

.empty-state-box .empty-sub {
  font-size: 13px;
  opacity: 0.7;
}

/* ========== 联系卡片 ========== */
.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--yellow);
  border: 3px solid var(--black);
  box-shadow: 4px 4px 0 var(--black);
  padding: 26px 30px;
  flex-wrap: wrap;
}

.contact-icon {
  font-size: 24px;
  color: var(--yellow);
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border: 2px solid var(--black);
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info h3 {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 4px;
  line-height: 1.3;
}

.contact-info p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
  line-height: 1.4;
  font-weight: 600;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 900;
  color: var(--black);
  word-break: break-all;
  transition: 0.15s;
}

.contact-email:hover {
  text-decoration: underline;
}

/* ========== Toast 提示 ========== */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--black);
  color: var(--yellow);
  font-size: 14px;
  font-weight: 800;
  padding: 12px 22px;
  border: 2px solid var(--black);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  z-index: 9999;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0s;
}

.toast-icon {
  font-size: 17px;
  color: var(--yellow);
}

/* ========== 引流弹窗 ========== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.modal.show {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0s linear 0s;
}

.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  cursor: pointer;
}

.modal-card {
  position: relative;
  z-index: 1;
  background: var(--yellow);
  border: 3px solid var(--black);
  box-shadow: var(--shadow-lg);
  padding: 28px 28px 22px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  transform: scale(0.85) translateY(20px);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-card .modal-title { margin-bottom: 16px; }

.modal.show .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: var(--black);
  color: var(--yellow);
  border: 2px solid var(--black);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.modal-close:hover {
  background: var(--yellow);
  color: var(--black);
}

.modal-title {
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 14px;
  color: var(--black);
}

.modal-image-wrap {
  background: var(--white);
  border: 2px solid var(--black);
  box-shadow: 4px 4px 0 var(--black);
  padding: 8px;
  margin-bottom: 0;
}

.modal-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
}

.modal-tip {
  display: none;
}

/* 让 button 形态的平台卡片与 a 形态外观一致 */
.platform-card.as-button {
  appearance: none;
  font: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
  cursor: pointer;
}

/* ========== 响应式 ========== */
/* 平板：导航仍横排，Hero 缩小 */
@media (max-width: 960px) {
  .container { padding: 0 20px; }
  .hero { padding: 32px 28px; gap: 24px; }
  .hero .avatar { width: 220px; }
  .hero h1 { font-size: clamp(32px, 5.5vw, 48px); }
  .section-head h2 { font-size: 22px; }
}

/* 手机：导航折叠为汉堡菜单，整页纵向堆叠 */
@media (max-width: 720px) {
  .menu-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--yellow);
    border-bottom: 3px solid var(--black);
    padding: 12px;
    gap: 8px;
    transform: translateY(-200%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
    z-index: 200;
  }
  .site-nav.open {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.3s ease, visibility 0s linear 0s;
  }
  .site-nav a { padding: 12px 16px; text-align: center; }

  /* Hero：上下堆叠，缩小内边距 */
  .hero {
    flex-direction: column;
    align-items: stretch;
    padding: 20px 10px;
    gap: 18px;
  }
  .hero .avatar {
    width: 130px;
    align-self: center;
  }
  .hero-content { min-width: 0; align-items: stretch; }
  .hero-cta { width: 100%; box-sizing: border-box; }
  .hero-cta .btn { padding: 10px 8px; }
  .hero h1 { font-size: 24px; letter-spacing: -0.02em; line-height: 1.2; }
  .hero .tagline { font-size: 14px; margin-bottom: 16px; line-height: 1.5; }
  .hero-cta { gap: 10px; grid-template-columns: repeat(2, 1fr); }
  .hero-cta .btn { min-width: 0; justify-content: center; padding: 10px 8px; }

  /* 按钮略小更省空间 */
  .btn { padding: 10px 12px; font-size: 13px; height: 40px; }
  .scroll-down { height: 40px; font-size: 18px; }

  /* 区块标题：紧凑 */
  .section { margin-top: 32px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 2px; margin-bottom: 12px; padding-bottom: 8px; }
  .section-head h2 { font-size: 17px; }
  .section-head .sub { font-size: 11px; }

  /* ===== 卡片网格：单列，紧凑间距 ===== */
  .feature-grid,
  .platform-grid,
  .product-grid { grid-template-columns: 1fr; gap: 10px; }

  /* 功能卡：紧凑 */
  .feature-card { padding: 14px; }
  .feature-card .feature-icon { width: 40px; height: 40px; margin-bottom: 8px; }
  .feature-card h3 { font-size: 15px; margin-bottom: 4px; }
  .feature-card p { font-size: 13px; line-height: 1.5; }

  /* 平台卡片：横向紧凑 */
  .platform-card { padding: 10px 12px; gap: 10px; }
  .platform-card .p-icon { width: 36px; height: 36px; }
  .platform-card .p-info h4 { font-size: 14px; }
  .platform-card .p-info span { font-size: 12px; }
  .platform-card .arrow-icon { font-size: 16px; }

  /* 产品卡：紧凑横排 */
  .product-card { padding: 12px; gap: 10px; }
  .product-card .p-head { gap: 10px; }
  .product-card .p-emoji { width: 36px; height: 36px; font-size: 18px; }
  .product-card .p-name { font-size: 14px; }
  .product-card .p-ver { font-size: 11px; }
  .product-card .p-desc { font-size: 12px; line-height: 1.4; }

  /* 提示条 */
  .platforms-note { font-size: 12px; padding: 8px 12px; margin: 16px 0 0; box-shadow: 2px 2px 0 var(--black); }

  /* 详情页头部：紧凑 */
  .detail-head {
    padding: 14px;
    gap: 12px;
    margin-bottom: 20px;
  }
  .detail-head .d-emoji { width: 72px; height: 72px; font-size: 32px; }
  .detail-head h1 { font-size: 18px; line-height: 1.2; }
  .detail-head h1 .type-tag { font-size: 11px; padding: 2px 6px; margin-left: 4px; transform: none; box-shadow: 1px 1px 0 var(--black); }
  .detail-head .d-meta { font-size: 12px; margin-bottom: 10px; }
  .detail-head .detail-actions { gap: 8px; }
  .detail-actions .btn { flex: 1 1 calc(50% - 4px); justify-content: center; padding: 8px 12px; height: 38px; font-size: 13px; }

  /* 详情页正文：紧凑 */
  .detail-section { margin-bottom: 24px; }
  .detail-section h2 { font-size: 15px; margin-bottom: 10px; padding-bottom: 6px; }
  .detail-section p { font-size: 13px; line-height: 1.65; }

  /* 版本日志：紧凑 */
  .version-list { gap: 10px; }
  .version-item { padding: 12px 14px; border-left-width: 3px; }
  .version-item .v-head { gap: 8px; margin-bottom: 6px; }
  .version-item .v-num { font-size: 14px; }
  .version-item .v-date { font-size: 11px; }
  .version-item .v-tag { font-size: 10px; padding: 2px 6px; }
  .version-item li { font-size: 12px; padding: 3px 0 3px 18px; }

  /* 推荐理由卡：紧凑 */
  .reason-card { padding: 12px 14px; font-size: 13px; line-height: 1.7; }

  /* 适用场景：紧凑 */
  .scenario-list { gap: 8px; }
  .scenario-item { padding: 6px 12px; font-size: 12px; box-shadow: 2px 2px 0 var(--black); }

  /* 列表页 */
  .products-intro { font-size: 13px; margin-bottom: 20px; }
  .category-block { margin-bottom: 28px; }
  .category-title { font-size: 15px; margin-bottom: 10px; padding-bottom: 6px; }
  .category-title .badge { font-size: 10px; padding: 1px 6px; box-shadow: 1px 1px 0 var(--black); }
  .category-desc { font-size: 12px; margin: -4px 0 10px; }

  /* 联系卡片：紧凑 */
  .contact-card {
    flex-direction: row;
    align-items: center;
    padding: 14px;
    gap: 12px;
  }
  .contact-card .contact-icon { width: 40px; height: 40px; font-size: 18px; }
  .contact-card h3 { font-size: 15px; margin-bottom: 2px; }
  .contact-email { font-size: 13px; }

  /* 弹窗：移动端紧凑 */
  .modal { padding: 12px; }
  .modal-card {
    max-width: 320px;
    padding: 18px 18px 16px;
  }
  .modal-card .modal-title { font-size: 16px; margin-bottom: 10px; }
  .modal-close { top: 6px; right: 8px; width: 28px; height: 28px; font-size: 16px; }
  .modal-image-wrap { padding: 6px; box-shadow: 3px 3px 0 var(--black); }
  .modal-image { max-height: 50vh; }

  /* Toast 顶部对齐边距 */
  .toast { top: 78px; font-size: 13px; padding: 10px 18px; max-width: calc(100vw - 32px); white-space: normal; text-align: center; }

  /* 页脚 */
  .site-footer { padding: 18px 0; font-size: 12px; }
}

/* 小屏手机：进一步压缩 */
@media (max-width: 420px) {
  /* 统一与 720px 一致：小屏不再缩放，避免不同尺寸手机出现差异 */
  .container { padding: 0 16px; }
  .header-inner { height: 56px; }
  .site-logo { width: 30px; height: 30px; }
  .site-title { font-size: 18px; }
  .site-nav { top: 56px; }

  /* 仅保留最关键的尺寸调整（其它全部沿用 720px 规则） */
  .modal-card { max-width: 280px; padding: 14px 14px 12px; }
  .modal-card .modal-title { font-size: 14px; }
  .modal-image { max-height: 45vh; }
}

/* 尊重减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  .blob,
  .hero .avatar,
  .hero h1,
  .hero .tagline,
  .hero-cta,
  .feature-card,
  .platform-card,
  .product-card,
  .scroll-down,
  .cursor { animation: none !important; }
}
