/* ============================================================
   AI Hub - Product Prototype Styles
   Dark tech aesthetic · Cyan accent · Violet secondary
   ============================================================ */

:root {
  --bg-deep: #16181d;
  --bg-deeper: #101217;
  --bg-card: #1a1d24;
  --bg-card-hover: #23272f;
  --bg-elevated: #1e2128;
  --border-subtle: #2d3340;
  --border-strong: #3d4451;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #22d3ee;
  --accent-rgb: 34, 211, 238;
  --accent-dim: #0891b2;
  --accent-glow: rgba(34, 211, 238, 0.15);
  --violet: #a78bfa;
  --violet-rgb: 167, 139, 250;
  --violet-glow: rgba(167, 139, 250, 0.15);
  --amber: #fbbf24;
  --amber-rgb: 251, 191, 36;
  --green: #34d399;
  --green-rgb: 52, 211, 153;
  --rose: #fb7185;
  --rose-rgb: 251, 113, 133;
  --error: #f87171;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.font-display { font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.025em; font-weight: 700; }
.font-mono { font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Consolas, monospace; font-feature-settings: 'calt' 0; }

.container-x {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ========== NAV ========== */
.nav-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease, backdrop-filter 0.3s ease;
}
.nav-bar.scrolled {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(10, 14, 26, 0.75);
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 20px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  cursor: pointer;
  line-height: 1;
}
.brand-logo {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0f1629, #1a1033);
  border: 1px solid rgba(34, 211, 238, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 16px rgba(6, 182, 212, 0.2), inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.brand-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  height: 22px;
}
.brand-text-tool {
  color: var(--text-primary);
}
.brand-text-bay {
  color: var(--accent);
}
.brand-text-ai {
  margin-left: 6px;
  font-weight: 800;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 5px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(139, 92, 246, 0.18));
  color: #06b6d4;
  border: 1px solid rgba(6, 182, 212, 0.35);
  letter-spacing: 0.03em;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  vertical-align: baseline;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
  padding: 0 24px;
  max-width: 720px;
}
.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out, opacity 0.2s ease-out, backdrop-filter 0.2s ease-out;
  cursor: pointer;
  font-weight: 500;
  position: relative;
  white-space: nowrap;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--violet));
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, opacity 0.25s ease, backdrop-filter 0.25s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}
.nav-link:hover {
  color: var(--text-primary);
  background: rgba(var(--accent-rgb), 0.08);
}
.nav-link:hover::after {
  width: 100%;
}
.nav-link.active {
  color: var(--accent);
  background: transparent;
}
.nav-link.active::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.icon-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out, opacity 0.2s ease-out, backdrop-filter 0.2s ease-out;
}
.icon-btn:hover {
  color: var(--text-primary);
  background: var(--bg-card);
  border-color: var(--border-subtle);
}

/* ========== Language Switcher ========== */
.lang-switcher { position: relative; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, backdrop-filter 0.2s ease;
  font-family: inherit;
}
.lang-btn:hover { border-color: var(--accent-dim); color: var(--accent); }
.lang-btn .chev { transition: transform 0.2s ease; }
.lang-switcher.open .lang-btn .chev { transform: rotate(180deg); }
.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, opacity 0.15s ease, backdrop-filter 0.15s ease;
  z-index: 100;
}
.lang-switcher.open .lang-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, opacity 0.15s ease, backdrop-filter 0.15s ease;
}
.lang-option:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.lang-option.active { background: rgba(34, 211, 238, 0.08); color: var(--accent); font-weight: 600; }
.lang-option svg { margin-left: auto; opacity: 0; }
.lang-option.active svg { opacity: 1; }

/* ========== Auth Buttons ========== */
.auth-buttons { display: flex; align-items: center; gap: 8px; }
.btn-ghost {
  padding: 6px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, backdrop-filter 0.2s ease;
  font-family: inherit;
}
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-card); }
.btn-signup {
  padding: 7px 16px;
  background: var(--accent);
  color: #0a0e1a;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, backdrop-filter 0.2s ease;
  font-family: inherit;
}
.btn-signup:hover { background: #67e8f9; }

/* ========== User Avatar & Dropdown ========== */
.user-avatar-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  color: #0a0e1a;
  font-weight: 700;
  font-size: 14px;
  border: 2px solid rgba(34, 211, 238, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, backdrop-filter 0.2s ease;
}
.user-avatar-btn:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.user-menu-wrapper { position: relative; }
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  max-height: 80vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, opacity 0.15s ease, backdrop-filter 0.15s ease;
  z-index: 100;
}
.user-menu-wrapper.open .user-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.user-dropdown::-webkit-scrollbar { width: 6px; }
.user-dropdown::-webkit-scrollbar-track { background: transparent; }
.user-dropdown::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

.user-profile-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 14px;
}
.user-profile-avatar-lg {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  color: #0a0e1a;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.user-profile-info h4 { margin: 0 0 2px; font-size: 15px; font-weight: 600; color: var(--text-primary); }
.user-profile-info p { margin: 0; font-size: 12px; color: var(--text-muted); }

.user-section { padding: 14px 20px; border-bottom: 1px solid var(--border-subtle); }
.user-section:last-of-type { border-bottom: none; }
.user-section-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Consolas, monospace;
}
.user-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 4px 0;
}
.user-info-row .label { color: var(--text-muted); }
.user-info-row .value { color: var(--text-secondary); font-weight: 500; }

.user-item {
  padding: 10px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.15s ease;
  cursor: pointer;
}
.user-item:hover { background: var(--bg-card-hover); }
.user-item-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--violet);
}
.user-item-body { flex: 1; min-width: 0; }
.user-item-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-item-sub { font-size: 11px; color: var(--text-muted); }
.user-item-action { flex-shrink: 0; }
.btn-sm {
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, opacity 0.15s ease, backdrop-filter 0.15s ease;
  font-family: inherit;
}
.btn-sm:hover { border-color: var(--accent-dim); color: var(--accent); }

.user-footer { padding: 12px 20px 16px; border-top: 1px solid var(--border-subtle); }
.btn-logout {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--rose);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, opacity 0.15s ease, backdrop-filter 0.15s ease;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-logout:hover { background: rgba(251, 113, 133, 0.08); border-color: rgba(251, 113, 133, 0.3); }

/* ========== Global Search ========== */
.global-search {
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  z-index: 40;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
  transform: translateY(-120%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.global-search.open { transform: translateY(0); }
.search-input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out, opacity 0.2s ease-out, backdrop-filter 0.2s ease-out;
}
.search-input:focus { border-color: var(--accent-dim); box-shadow: 0 0 0 3px var(--accent-glow); }

/* ========== App Main ========== */
.app-main {
  min-height: calc(100vh - 64px);
  padding-top: 64px;
}

/* Page transitions */
.page {
  animation: pageFadeIn 0.35s ease;
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== Hero ========== */
.hero-section {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
  text-align: center;
}
.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(34, 211, 238, 0.12) 0%, rgba(167, 139, 250, 0.06) 40%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}
.node-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(148, 163, 184, 0.07) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 14px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.05);
  margin-bottom: 28px;
}
.hero-badge::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.hero-title {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.02;
  margin: 0 0 20px;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  position: relative;
}
.gradient-text {
  color: var(--accent);
}
.hero-subtitle {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
  position: relative;
}
.hero-search {
  max-width: 560px;
  margin: 0 auto 32px;
  position: relative;
}
.hero-search .search-input {
  width: 100%;
  padding: 16px 52px 16px 48px;
  font-size: 15px;
  border-radius: 12px;
}
.hero-search .search-icon-left {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.hero-search .search-kbd {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 11px;
  padding: 4px 8px;
  background: var(--bg-deep);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--text-muted);
}
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
  position: relative;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--accent);
  color: #0a0e1a;
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, backdrop-filter 0.2s ease;
  text-decoration: none;
  font-family: inherit;
}
.btn-primary:hover { background: #67e8f9; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(34, 211, 238, 0.3); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, backdrop-filter 0.2s ease;
  text-decoration: none;
  font-family: inherit;
}
.btn-secondary:hover { border-color: var(--accent-dim); color: var(--accent); background: rgba(34, 211, 238, 0.05); }
.btn-block { width: 100%; justify-content: center; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  position: relative;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat-label { font-size: 13px; color: var(--text-muted); }

/* ========== Hero V2 ========== */
.hero-section.v2 {
  padding: 120px 0 100px;
  min-height: 680px;
  display: flex;
  align-items: center;
}
.hero-section.v2 .hero-glow.v2 {
  width: 1000px;
  height: 700px;
  top: -300px;
  background: radial-gradient(ellipse, rgba(34, 211, 238, 0.15) 0%, rgba(167, 139, 250, 0.08) 35%, transparent 65%);
  animation: glowPulse 6s ease-in-out infinite alternate;
}
@keyframes glowPulse {
  0% { transform: translateX(-50%) scale(1); opacity: 0.8; }
  100% { transform: translateX(-50%) scale(1.1); opacity: 1; }
}

.node-bg.animated {
  animation: nodeFloat 20s linear infinite;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(148, 163, 184, 0.08) 1px, transparent 0),
    radial-gradient(circle at 1px 1px, rgba(34, 211, 238, 0.04) 1px, transparent 0);
  background-size: 40px 40px, 80px 80px;
  background-position: 0 0, 40px 40px;
}
@keyframes nodeFloat {
  0% { background-position: 0 0, 40px 40px; }
  100% { background-position: 40px 40px, 80px 80px; }
}

.hero-flow-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 560px;
  height: auto;
  opacity: 0.12;
  pointer-events: none;
  z-index: 1;
}
.hero-flow-node {
  animation: nodeBob 4s ease-in-out infinite;
}
@keyframes nodeBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.hero-badge.v2 {
  margin-bottom: 24px;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif;
  letter-spacing: 0;
  text-transform: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border-color: var(--border-strong);
  background: var(--bg-card);
}

.hero-title.v2 {
  font-size: clamp(40px, 7vw, 72px);
  margin-bottom: 24px;
}
.hero-subtitle.v2 {
  font-size: clamp(16px, 2vw, 19px);
  max-width: 640px;
  margin-bottom: 36px;
}

.hero-search.v2 {
  max-width: 620px;
  margin-bottom: 28px;
}
.hero-search.v2 .search-input {
  padding: 18px 52px 18px 52px;
  font-size: 15px;
  border-radius: 14px;
  background: var(--bg-card);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.hero-search.v2 .search-icon-left { left: 18px; }
.hero-search.v2 .search-kbd { right: 14px; }

.hero-ctas.v2 {
  margin-bottom: 48px;
  gap: 14px;
}
.btn-primary.v2 {
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--accent), #06b6d4);
  font-weight: 600;
  font-size: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(34, 211, 238, 0.25);
}
.btn-primary.v2:hover {
  background: linear-gradient(135deg, #67e8f9, #22d3ee);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(34, 211, 238, 0.35);
}
.btn-secondary.v2 {
  padding: 16px 32px;
  font-weight: 600;
  border-radius: 12px;
}

.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-trust-avatars {
  display: flex;
}
.trust-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  color: #0a0e1a;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-deep);
  margin-left: -8px;
}
.trust-avatar:first-child { margin-left: 0; }
.hero-trust-text { font-size: 13px; color: var(--text-muted); }
.hero-trust-text strong { color: var(--text-secondary); font-weight: 600; display: block; }
.hero-trust-stars { color: var(--amber); font-size: 12px; margin-top: 2px; }
.hero-trust-stars span { color: var(--text-muted); margin-left: 4px; }

/* ========== Stats Section ========== */
.stats-section {
  padding: 60px 0;
  background: var(--bg-deeper);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.stats-head {
  text-align: center;
  margin-bottom: 40px;
}
.stats-head .section-title { margin: 0 0 8px; font-size: clamp(24px, 3vw, 32px); }
.stats-head .section-desc { margin: 0 auto; max-width: 500px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease, backdrop-filter 0.3s ease;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--violet));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.stat-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.stat-card:hover::before { opacity: 1; }
.stat-num {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  display: inline-block;
}
.stat-num-suffix {
  display: inline-block;
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  margin-left: 2px;
  vertical-align: top;
  margin-top: 4px;
}
.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* ========== How it Works ========== */
.how-section { padding: 80px 0; }
.how-steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  margin-top: 48px;
}
.how-step {
  flex: 1;
  max-width: 300px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease, backdrop-filter 0.3s ease;
}
.how-step:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}
.how-step-num {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0.3;
}
.how-step-icon {
  width: 64px; height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.how-step h3 {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--text-primary);
}
.how-step p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}
.how-step-arrow {
  display: flex;
  align-items: center;
  padding: 0 8px;
  align-self: center;
  opacity: 0.4;
}

/* ========== Reveal Animations ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

/* ========== Sections ========== */
.section { padding: 80px 0; }
.section-dark { background: var(--bg-deeper); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  gap: 20px;
  flex-wrap: wrap;
}
.section-head-left { }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}
.section-title {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}
.section-desc {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 480px;
  margin-top: 8px;
}
.section-link {
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: gap 0.2s;
}
.section-link:hover { gap: 10px; }

/* ========== Filter tabs ========== */
.filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-tab {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out, opacity 0.2s ease-out, backdrop-filter 0.2s ease-out;
  font-family: inherit;
}
.filter-tab:hover { border-color: var(--border-strong); color: var(--text-primary); }
.filter-tab.active {
  background: rgba(34, 211, 238, 0.1);
  border-color: var(--accent-dim);
  color: var(--accent);
}

/* ========== Tool Card ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 24px;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease, backdrop-filter 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.tool-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.tool-card:hover::before { opacity: 1; }
.tool-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.tool-card h3 {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text-primary);
}
.tool-card p {
  color: var(--text-secondary);
  font-size: 13px;
  margin: 0 0 16px;
  line-height: 1.6;
}

/* --- Card author badge ("By AI Hub Team") --- */
.tool-card-by,
.agent-card-by,
.skill-card-by,
.prompt-card-by,
.product-card-by {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.by-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  color: #0f172a;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

.by-text {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1;
}

.tool-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tool-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 8px;
}
.tool-card-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.tool-uses {
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Consolas, monospace;
}
.tool-uses span { font-family: inherit; }
.tool-open-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  transition: gap 0.2s;
}
.tool-card:hover .tool-open-btn { color: #67e8f9; }
.tag {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--bg-deep);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  font-weight: 500;
}
.tag-cyan { background: rgba(34, 211, 238, 0.1); color: var(--accent); border-color: rgba(34, 211, 238, 0.2); }
.tag-violet { background: rgba(167, 139, 250, 0.1); color: var(--violet); border-color: rgba(167, 139, 250, 0.2); }
.tag-amber { background: rgba(251, 191, 36, 0.1); color: var(--amber); border-color: rgba(251, 191, 36, 0.2); }
.tag-green { background: rgba(52, 211, 153, 0.1); color: var(--green); border-color: rgba(52, 211, 153, 0.2); }
.tag-rose { background: rgba(251, 113, 133, 0.1); color: var(--rose); border-color: rgba(251, 113, 133, 0.2); }
.tag-free { background: rgba(52, 211, 153, 0.15); color: var(--green); border-color: rgba(52, 211, 153, 0.3); font-weight: 700; }

/* ========== Agent Card ========== */
.agent-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 24px;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease, backdrop-filter 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.agent-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.agent-card-top {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}
.agent-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.agent-card h3 {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--text-primary);
}
.agent-cat { font-size: 12px; color: var(--text-muted); }
.agent-card p {
  color: var(--text-secondary);
  font-size: 13px;
  margin: 0 0 16px;
  line-height: 1.6;
}
.agent-flow-preview {
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.rf-node {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  font-size: 10px;
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Consolas, monospace;
  color: var(--text-secondary);
}
.rf-node .dot { width: 5px; height: 5px; border-radius: 50%; }
.rf-node.cyan .dot { background: var(--accent); }
.rf-node.violet .dot { background: var(--violet); }
.rf-node.amber .dot { background: var(--amber); }
.rf-node.green .dot { background: var(--green); }
.rf-node.rose .dot { background: var(--rose); }
.rf-line {
  width: 16px;
  height: 1px;
  background: var(--border-strong);
  position: relative;
}
.rf-line::after {
  content: '';
  position: absolute;
  right: 0; top: -2px;
  border: 3px solid transparent;
  border-left-color: var(--border-strong);
}

.agent-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.agent-meta { font-size: 12px; color: var(--text-muted); }
.card-btn {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out, opacity 0.2s ease-out, backdrop-filter 0.2s ease-out;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-btn:hover { border-color: var(--accent-dim); color: var(--accent); background: rgba(34, 211, 238, 0.05); }

/* ========== Skill Card ========== */
.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 24px;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease, backdrop-filter 0.3s ease;
  cursor: pointer;
}
.skill-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.skill-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.skill-badge {
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(167, 139, 250, 0.1);
  color: var(--violet);
  border: 1px solid rgba(167, 139, 250, 0.2);
  font-weight: 600;
}
.skill-card h3 {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text-primary);
}
.skill-card p {
  color: var(--text-secondary);
  font-size: 13px;
  margin: 0 0 16px;
  line-height: 1.6;
}
.skill-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  gap: 8px;
}
.skill-meta span { font-size: 12px; color: var(--text-muted); }

/* ========== Article Card ========== */
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease, backdrop-filter 0.3s ease;
  cursor: pointer;
}
.article-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.article-cover {
  height: 180px;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(148, 163, 184, 0.1) 1px, transparent 0);
  background-size: 24px 24px;
}
.article-cover-icon {
  position: relative;
  font-size: 48px;
  opacity: 0.4;
}
.article-body { padding: 20px; }
.article-tags { display: flex; gap: 6px; margin-bottom: 10px; }
.article-card h3 {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text-primary);
  line-height: 1.4;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}
.article-meta .dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}
.article-author-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.article-avatar-sm {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  color: #0a0e1a;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== Product Card ========== */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease, backdrop-filter 0.3s ease;
  cursor: pointer;
  position: relative;
}
.product-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.product-badge {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.product-badge.free { background: rgba(52, 211, 153, 0.2); color: var(--green); border: 1px solid rgba(52, 211, 153, 0.3); }
.product-badge.popular { background: rgba(251, 191, 36, 0.2); color: var(--amber); border: 1px solid rgba(251, 191, 36, 0.3); }
.product-preview {
  height: 200px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(148, 163, 184, 0.08) 1px, transparent 0);
  background-size: 20px 20px;
}
.product-preview-icon {
  position: relative;
  width: 64px; height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0e1a;
}
.product-body { padding: 20px; }
.product-card h3 {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--text-primary);
}
.product-card p {
  color: var(--text-secondary);
  font-size: 13px;
  margin: 0 0 12px;
  line-height: 1.6;
}
.product-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}
.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}
.product-price {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}
.product-price.free { color: var(--green); }
.buy-btn {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: #0a0e1a;
  cursor: pointer;
  transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out, opacity 0.2s ease-out, backdrop-filter 0.2s ease-out;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.buy-btn:hover { background: #67e8f9; }

/* ========== CTA Section ========== */
.cta-section {
  padding: 80px 0;
}
.cta-banner {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08) 0%, rgba(167, 139, 250, 0.08) 100%);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 20px;
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner .node-bg { opacity: 0.3; }
.cta-banner h2 {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  margin: 0 0 12px;
  position: relative;
  letter-spacing: -0.02em;
}
.cta-banner p {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 28px;
  position: relative;
}
.cta-banner .btn-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ========== About Section ========== */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

.about-visual {
  text-align: center;
}

.about-avatar-ring {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(167, 139, 250, 0.15));
  border: 2px solid rgba(34, 211, 238, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: 0 0 60px rgba(34, 211, 238, 0.15);
}

.about-ring-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px currentColor;
}

.about-ring-dot.d1 { top: 10px; left: 50%; transform: translateX(-50%); color: var(--accent); background: var(--accent); }
.about-ring-dot.d2 { bottom: 20px; right: 10px; color: var(--violet); background: var(--violet); }
.about-ring-dot.d3 { bottom: 20px; left: 10px; color: var(--green); background: var(--green); }

@keyframes orbit {
  from { transform: rotate(0deg) translateX(100px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(100px) rotate(-360deg); }
}

.about-team-info {
  margin-top: 8px;
}

.about-team-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.about-team-role {
  font-size: 14px;
  color: var(--text-muted);
}

.about-content .section-label {
  margin-bottom: 12px;
}

.about-content .section-title {
  margin-bottom: 16px;
  text-align: left;
}

.about-content .section-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.about-points {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.about-point-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-point h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.about-point p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 960px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-content .section-title {
    text-align: center;
  }
  
  .about-content .section-desc {
    text-align: center;
  }
  
  .about-visual {
    order: -1;
  }
}

/* ========== Footer ========== */
.footer {
  background: var(--bg-deeper);
  border-top: 1px solid var(--border-subtle);
  padding-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand { max-width: 320px; }
.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-desc {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0 0 20px;
  line-height: 1.6;
}
.footer-socials { display: flex; gap: 8px; }
.social-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out, opacity 0.2s ease-out, backdrop-filter 0.2s ease-out;
}
.social-icon:hover { color: var(--accent); border-color: var(--accent-dim); }
.footer-title {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--text-primary);
}
.footer-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-list a {
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}
.footer-list a:hover { color: var(--text-secondary); }
.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 24px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}
.footer-made { margin: 0; }

/* ========== Modal ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 16, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, backdrop-filter 0.2s ease;
  padding: 20px;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(10px) scale(0.98);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, backdrop-filter 0.2s ease;
  overflow: hidden;
}
.modal-overlay.active .modal { transform: translateY(0) scale(1); }
.modal-header {
  padding: 20px 24px 0;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 28px; height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, opacity 0.15s ease, backdrop-filter 0.15s ease;
}
.modal-close:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.modal-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-deep);
  border-radius: 10px;
  margin-bottom: 20px;
}
.modal-tab {
  flex: 1;
  padding: 10px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, opacity 0.15s ease, backdrop-filter 0.15s ease;
  font-family: inherit;
}
.modal-tab.active {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.modal-body { padding: 0 24px 24px; }

.form-group { margin-bottom: 14px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, opacity 0.15s ease, backdrop-filter 0.15s ease;
  outline: none;
}
.form-input:focus { border-color: var(--accent-dim); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-input.error { border-color: var(--error); box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.1); }
.form-error { font-size: 11px; color: var(--error); margin-top: 4px; min-height: 14px; }
.form-hint {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
}
.form-hint a {
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
}
.form-hint a:hover { text-decoration: underline; }

/* ========== Toast ========== */
.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
  animation: slideIn 0.25s ease;
}
@keyframes slideIn {
  from { transform: translateX(20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.toast.success { border-color: rgba(52, 211, 153, 0.4); }
.toast.error { border-color: rgba(248, 113, 113, 0.4); }
.toast-icon { flex-shrink: 0; }
.toast.success .toast-icon { color: var(--green); }
.toast.error .toast-icon { color: var(--error); }

/* ========== Detail page layout ========== */
.detail-page {
  padding: 40px 0 80px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  margin-bottom: 24px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--accent); }

.detail-header {
  display: flex;
  gap: 32px;
  margin-bottom: 40px;
  align-items: flex-start;
}
.detail-icon {
  width: 80px; height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.detail-info h1 {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.detail-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.detail-desc {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 600px;
  margin: 0 0 20px;
  line-height: 1.7;
}
.detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Two-column detail body */
.detail-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}
.detail-main h2 {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 16px;
  color: var(--text-primary);
}
.detail-main h2:first-child { margin-top: 0; }
.detail-main p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 16px;
}

.detail-sidebar { position: sticky; top: 100px; align-self: start; }
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
}
.sidebar-card h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--text-primary);
}

/* ========== Tool Workspace ========== */
.tool-workspace {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
}
.tool-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-deeper);
  flex-wrap: wrap;
  gap: 10px;
}
.tool-toolbar-left { display: flex; gap: 8px; flex-wrap: wrap; }
.tool-toolbar-btn {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.15s ease-out, background-color 0.15s ease-out, border-color 0.15s ease-out, box-shadow 0.15s ease-out, transform 0.15s ease-out, opacity 0.15s ease-out, backdrop-filter 0.15s ease-out;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tool-toolbar-btn:hover { border-color: var(--accent-dim); color: var(--accent); }
.tool-toolbar-btn.primary {
  background: var(--accent);
  color: #0a0e1a;
  border-color: var(--accent);
}
.tool-toolbar-btn.primary:hover { background: #67e8f9; }
.tool-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-subtle);
}
.tool-panel {
  background: var(--bg-deep);
  padding: 16px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}
.tool-panel-label {
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.tool-textarea {
  flex: 1;
  width: 100%;
  resize: none;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
}

/* ========== JSON Syntax Highlighting ========== */
.json-output-wrapper {
  flex: 1;
  overflow: auto;
  background: transparent;
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-all;
  padding: 0;
  margin: 0;
  border: none;
  outline: none;
}
.json-output-wrapper .json-key { color: #22d3ee; }
.json-output-wrapper .json-string { color: #34d399; }
.json-output-wrapper .json-number { color: #fbbf24; }
.json-output-wrapper .json-boolean { color: #fb7185; }
.json-output-wrapper .json-null { color: #94a3b8; }
.json-error {
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--error);
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
}
.json-error strong { color: #f87171; }

/* ========== Tool Tabs (Encode/Decode) ========== */
.tool-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-deep);
  padding: 4px;
  border-radius: 8px;
}
.tool-tab {
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 500;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out, opacity 0.2s ease-out, backdrop-filter 0.2s ease-out;
  font-family: inherit;
}
.tool-tab:hover { color: var(--text-primary); }
.tool-tab.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* ========== Breadcrumb ========== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--border-strong); }
.breadcrumb .current { color: var(--text-primary); }

/* ========== Tool Detail Layout ========== */
.tool-detail-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  margin-top: 24px;
}
.tool-detail-main { min-width: 0; }
.tool-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ========== Usage Note ========== */
.usage-note {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}
.usage-note h4 {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.usage-note p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* ========== Related Sidebar ========== */
.related-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 18px;
}
.related-section h4 {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 11px;
}
.related-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  margin-bottom: 4px;
}
.related-item:last-child { margin-bottom: 0; }
.related-item:hover { background: var(--bg-card-hover); }
.related-item-icon {
  width: 32px; height: 32px;
  border-radius: 6px;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}
.related-item-info { min-width: 0; flex: 1; }
.related-item-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.related-item-desc {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========== UUID Generator Enhanced ========== */
.uuid-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.uuid-count-control {
  display: flex;
  align-items: center;
  background: var(--bg-deep);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  overflow: hidden;
}
.uuid-count-control button {
  width: 32px; height: 32px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease-out, background-color 0.15s ease-out, border-color 0.15s ease-out, box-shadow 0.15s ease-out, transform 0.15s ease-out, opacity 0.15s ease-out, backdrop-filter 0.15s ease-out;
}
.uuid-count-control button:hover { background: var(--bg-card); color: var(--accent); }
.uuid-count-control input {
  width: 50px;
  height: 32px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  text-align: center;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  border-left: 1px solid var(--border-strong);
  border-right: 1px solid var(--border-strong);
}
.uuid-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}
.uuid-toggle input[type="checkbox"] {
  accent-color: var(--accent);
  width: 14px; height: 14px;
}
.uuid-results {
  position: relative;
}
.uuid-results-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 12px;
}
.uuid-result-item {
  animation: uuidFadeIn 0.3s ease forwards;
  opacity: 0;
  transform: translateY(-5px);
}
@keyframes uuidFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ========== Prompt Generator Form ========== */
.prompt-form {
  background: var(--bg-deep);
  border-radius: 10px;
  padding: 20px;
  display: grid;
  gap: 16px;
}
.prompt-form-row {
  display: grid;
  gap: 6px;
}
.prompt-form-row label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.prompt-form-row input,
.prompt-form-row textarea,
.prompt-form-row select {
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
  resize: vertical;
}
.prompt-form-row input:focus,
.prompt-form-row textarea:focus,
.prompt-form-row select:focus {
  border-color: var(--accent-dim);
}
.prompt-template-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.prompt-template-btn {
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s ease-out, background-color 0.15s ease-out, border-color 0.15s ease-out, box-shadow 0.15s ease-out, transform 0.15s ease-out, opacity 0.15s ease-out, backdrop-filter 0.15s ease-out;
  font-family: inherit;
  font-weight: 500;
}
.prompt-template-btn:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
  background: rgba(34, 211, 238, 0.05);
}
.prompt-result-block {
  background: var(--bg-deep);
  border-radius: 10px;
  padding: 20px;
  position: relative;
  min-height: 200px;
  white-space: pre-wrap;
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.prompt-result-block .prompt-section-title {
  color: var(--accent);
  font-weight: 600;
  display: block;
  margin-top: 16px;
  margin-bottom: 8px;
}
.prompt-result-block .prompt-section-title:first-child { margin-top: 0; }
.prompt-result-block strong { color: var(--text-primary); }

.prompt-history {
  margin-top: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 16px;
}
.prompt-history h4 {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--text-primary);
}
.prompt-history-item {
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-muted);
  transition: color 0.15s ease-out, background-color 0.15s ease-out, border-color 0.15s ease-out, box-shadow 0.15s ease-out, transform 0.15s ease-out, opacity 0.15s ease-out, backdrop-filter 0.15s ease-out;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid transparent;
  margin-bottom: 4px;
}
.prompt-history-item:hover {
  background: var(--bg-deep);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}
.prompt-history-empty {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 16px 0;
}

/* ========== Tool Detail Page Header ========== */
.page-header.tools-page {
  padding: 80px 0 60px;
}
.tools-page h1 {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  margin: 0 0 12px;
}
.tools-page p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* ========== File Upload Button ========== */
.file-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.15s ease-out, background-color 0.15s ease-out, border-color 0.15s ease-out, box-shadow 0.15s ease-out, transform 0.15s ease-out, opacity 0.15s ease-out, backdrop-filter 0.15s ease-out;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}
.file-upload-btn:hover { border-color: var(--accent-dim); color: var(--accent); }
.file-upload-btn input[type="file"] {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0;
  cursor: pointer;
}

/* ========== Switch Toggle ========== */
.switch-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}
.switch-track {
  width: 36px; height: 20px;
  border-radius: 10px;
  background: var(--bg-deep);
  border: 1px solid var(--border-strong);
  position: relative;
  transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out, opacity 0.2s ease-out, backdrop-filter 0.2s ease-out;
}
.switch-track.on { background: rgba(34, 211, 238, 0.15); border-color: var(--accent-dim); }
.switch-track::before {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out, opacity 0.2s ease-out, backdrop-filter 0.2s ease-out;
}
.switch-track.on::before {
  left: 18px;
  background: var(--accent);
}


/* UUID generator result */
.uuid-results {
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 16px;
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--text-secondary);
  max-height: 300px;
  overflow-y: auto;
}
.uuid-results div {
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.uuid-results div:hover { background: var(--bg-card); }
.uuid-copy-btn {
  opacity: 0;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: color 0.15s ease-out, background-color 0.15s ease-out, border-color 0.15s ease-out, box-shadow 0.15s ease-out, transform 0.15s ease-out, opacity 0.15s ease-out, backdrop-filter 0.15s ease-out;
}
.uuid-results div:hover .uuid-copy-btn { opacity: 1; }

/* Tool controls row */
.tool-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.tool-controls label {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.tool-controls input[type="number"] {
  width: 80px;
  padding: 6px 10px;
  background: var(--bg-deep);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  outline: none;
}
.tool-controls select {
  padding: 6px 10px;
  background: var(--bg-deep);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  outline: none;
}

/* ========== Agent Flow Diagram (detail) ========== */
.flow-diagram-canvas {
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 32px;
  position: relative;
  min-height: 300px;
  overflow-x: auto;
  margin-bottom: 24px;
}
.flow-diagram-canvas::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(148, 163, 184, 0.08) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
}
.flow-row {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.flow-row:last-child { margin-bottom: 0; }
.flow-node-lg {
  background: var(--bg-card);
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  padding: 12px 18px;
  min-width: 140px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.flow-node-lg.cyan { border-color: var(--accent-dim); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1); }
.flow-node-lg.violet { border-color: rgba(167, 139, 250, 0.5); box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1); }
.flow-node-lg.amber { border-color: rgba(251, 191, 36, 0.5); box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1); }
.flow-node-lg.green { border-color: rgba(52, 211, 153, 0.5); box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.1); }
.flow-node-lg-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.flow-node-lg-sub {
  font-size: 10px;
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Consolas, monospace;
  color: var(--text-muted);
}

/* Workflow timeline */
.workflow-list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.workflow-list::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border-subtle);
}
.workflow-item {
  position: relative;
  padding: 0 0 20px 44px;
}
.workflow-item:last-child { padding-bottom: 0; }
.workflow-item-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
}
.workflow-item h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 4px 0 4px;
  color: var(--text-primary);
}
.workflow-item p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* Use cases list */
.usecase-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.usecase-list li {
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.usecase-list li svg { color: var(--accent); flex-shrink: 0; }

/* ========== Skill Markdown Preview ========== */
.skill-md-preview {
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}
.skill-md-preview h1, .skill-md-preview h2, .skill-md-preview h3 {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  color: var(--text-primary);
  font-weight: 600;
}
.skill-md-preview h1 { font-size: 24px; margin-top: 0; }
.skill-md-preview h2 { font-size: 18px; margin-top: 24px; border-bottom: 1px solid var(--border-subtle); padding-bottom: 6px; }
.skill-md-preview h3 { font-size: 15px; margin-top: 16px; }
.skill-md-preview code {
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--violet);
  border: 1px solid var(--border-subtle);
}
.skill-md-preview pre {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  margin: 12px 0;
}
.skill-md-preview pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.6;
}
.skill-md-preview ul { padding-left: 20px; margin: 8px 0; }
.skill-md-preview li { margin-bottom: 4px; }
.skill-md-preview strong { color: var(--text-primary); }
.skill-md-preview hr { border: none; border-top: 1px solid var(--border-subtle); margin: 20px 0; }

/* ========== Prompt detail ========== */
.prompt-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.prompt-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out, opacity 0.2s ease-out, backdrop-filter 0.2s ease-out;
}
.prompt-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}
.prompt-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 10px;
}
.prompt-card h3 {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}
.prompt-vars {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(251, 113, 133, 0.1);
  color: var(--rose);
  white-space: nowrap;
}
.prompt-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prompt-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.prompt-detail-block {
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px;
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  position: relative;
  white-space: pre-wrap;
}
.prompt-detail-block .var-highlight {
  background: rgba(251, 113, 133, 0.15);
  color: var(--rose);
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 500;
}
.prompt-copy-btn {
  position: absolute;
  top: 12px; right: 12px;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s ease-out, background-color 0.15s ease-out, border-color 0.15s ease-out, box-shadow 0.15s ease-out, transform 0.15s ease-out, opacity 0.15s ease-out, backdrop-filter 0.15s ease-out;
}
.prompt-copy-btn:hover { border-color: var(--accent-dim); color: var(--accent); }

.vars-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
.vars-table th, .vars-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
}
.vars-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Consolas, monospace;
  background: var(--bg-card);
}
.vars-table td { color: var(--text-secondary); }
.vars-table td code {
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--rose);
}

/* ========== Prompts Enhanced ========== */
.prompts-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.prompt-search-wrap {
  position: relative;
  flex: 1;
  min-width: 240px;
  max-width: 420px;
  display: flex;
  align-items: center;
}
.prompt-search-wrap svg {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
  z-index: 1;
}
.prompt-search-input {
  width: 100%;
  padding: 10px 14px 10px 42px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: color 0.15s ease-out, background-color 0.15s ease-out, border-color 0.15s ease-out, box-shadow 0.15s ease-out, transform 0.15s ease-out, opacity 0.15s ease-out, backdrop-filter 0.15s ease-out;
}
.prompt-search-input:focus {
  outline: none;
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}
.prompt-search-input::placeholder { color: var(--text-muted); }
.prompt-sort-select {
  padding: 10px 32px 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: color 0.15s ease-out, background-color 0.15s ease-out, border-color 0.15s ease-out, box-shadow 0.15s ease-out, transform 0.15s ease-out, opacity 0.15s ease-out, backdrop-filter 0.15s ease-out;
}
.prompt-sort-select:hover { border-color: var(--border-strong); }
.prompt-sort-select:focus {
  outline: none;
  border-color: var(--accent-dim);
}

/* Prompt card redesign */
.prompt-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 18px;
  cursor: pointer;
  transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), backdrop-filter 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.prompt-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.5), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.prompt-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.3);
}
.prompt-card:hover::before { opacity: 1; }
.prompt-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.prompt-card-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.prompt-card-icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
}
.prompt-card h3 {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prompt-vars-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  white-space: nowrap;
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.prompt-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.prompt-card-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.prompt-models {
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Consolas, monospace;
}
.prompt-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}
.prompt-uses {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-btn-accent {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.15), rgba(167, 139, 250, 0.15));
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  color: var(--accent);
  font-weight: 500;
}
.card-btn-accent:hover {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.25), rgba(167, 139, 250, 0.25));
}
.card-btn-accent.copied {
  background: rgba(var(--green-rgb), 0.15);
  border-color: rgba(var(--green-rgb), 0.4);
  color: var(--green);
}

/* Category tag colors */
.tag-research { background: rgba(59, 130, 246, 0.1); color: #60a5fa; border-color: rgba(59, 130, 246, 0.2); }
.tag-coding { background: rgba(34, 211, 238, 0.1); color: var(--accent); border-color: rgba(var(--accent-rgb), 0.2); }
.tag-writing { background: rgba(167, 139, 250, 0.1); color: var(--violet); border-color: rgba(var(--violet-rgb), 0.2); }
.tag-marketing { background: rgba(244, 114, 182, 0.1); color: #f472b6; border-color: rgba(244, 114, 182, 0.2); }
.tag-data { background: rgba(34, 197, 94, 0.1); color: #4ade80; border-color: rgba(34, 197, 94, 0.2); }
.tag-productivity { background: rgba(251, 191, 36, 0.1); color: #fbbf24; border-color: rgba(251, 191, 36, 0.2); }
.tag-education { background: rgba(248, 113, 113, 0.1); color: #f87171; border-color: rgba(248, 113, 113, 0.2); }

/* Detail page layout */
.prompt-detail-page { padding-bottom: 60px; }
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.breadcrumb-item {
  cursor: pointer;
  transition: color 0.15s;
}
.breadcrumb-item:hover { color: var(--text-secondary); }
.breadcrumb-item.current {
  color: var(--text-primary);
  cursor: default;
  font-weight: 500;
}
.breadcrumb-sep { color: var(--border-strong); }

.prompt-detail-header {
  display: flex;
  gap: 24px;
  padding: 24px 0 32px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 32px;
}
.prompt-detail-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.15), rgba(var(--violet-rgb), 0.15));
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  flex-shrink: 0;
}
.prompt-detail-info { flex: 1; min-width: 0; }
.prompt-detail-info h1 {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-primary);
}
.prompt-detail-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0 0 14px;
  line-height: 1.6;
  max-width: 680px;
}
.prompt-detail-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.prompt-model-badge,
.prompt-var-badge,
.prompt-author-badge,
.prompt-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}
.prompt-model-badge svg { color: var(--accent); }
.prompt-var-badge svg { color: var(--violet); }
.prompt-detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-accent-gradient {
  background: linear-gradient(135deg, var(--accent), var(--violet));
  color: #0f172a;
  font-weight: 600;
  border: none;
}
.btn-accent-gradient:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.3);
}

.prompt-detail-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}
.prompt-detail-main { min-width: 0; }
.prompt-detail-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.prompt-detail-section {
  margin-bottom: 36px;
}
.prompt-section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}
.prompt-section-heading svg {
  color: var(--accent);
  width: 18px;
  height: 18px;
}

/* Variables table enhanced */
.prompt-vars-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}
.prompt-vars-table {
  margin: 0;
  min-width: 100%;
}
.prompt-vars-table th {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
}
.prompt-vars-table tr:last-child td { border-bottom: none; }
.prompt-vars-table td code {
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
}
.var-type-chip {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Consolas, monospace;
  text-transform: lowercase;
}
.var-type-text { background: rgba(var(--accent-rgb), 0.1); color: var(--accent); }
.var-type-number { background: rgba(var(--green-rgb), 0.1); color: var(--green); }
.var-type-select { background: rgba(var(--violet-rgb), 0.1); color: var(--violet); }
.var-type-textarea { background: rgba(var(--amber-rgb), 0.1); color: var(--amber); }
.var-example-cell {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Prompt body with line numbers */
.prompt-detail-block {
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px 20px 20px 60px;
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-secondary);
  position: relative;
  overflow-x: auto;
}
.prompt-line-numbers {
  position: absolute;
  left: 0; top: 24px; bottom: 20px;
  width: 40px;
  text-align: right;
  padding-right: 12px;
  color: var(--text-muted);
  opacity: 0.4;
  font-size: 11px;
  line-height: 1.75;
  user-select: none;
  border-right: 1px solid var(--border-subtle);
  pointer-events: none;
  white-space: pre;
}
.prompt-content-text { white-space: pre-wrap; word-break: break-word; }
.var-highlight {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(var(--accent-rgb), 0.4);
  text-underline-offset: 2px;
}
.prompt-copy-btn {
  position: absolute;
  top: 12px; right: 12px;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s ease-out, background-color 0.15s ease-out, border-color 0.15s ease-out, box-shadow 0.15s ease-out, transform 0.15s ease-out, opacity 0.15s ease-out, backdrop-filter 0.15s ease-out;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}
.prompt-copy-btn:hover { border-color: var(--accent-dim); color: var(--accent); }
.prompt-copy-btn.copied {
  background: rgba(var(--green-rgb), 0.15);
  border-color: rgba(var(--green-rgb), 0.4);
  color: var(--green);
}

/* Variable filler */
.prompt-filler-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px;
}
.prompt-filler-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.prompt-filler-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.prompt-filler-field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.prompt-filler-field label code {
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 11px;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}
.filler-field-type {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  opacity: 0.7;
}
.prompt-filler-field input,
.prompt-filler-field select,
.prompt-filler-field textarea {
  padding: 9px 12px;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  transition: color 0.15s ease-out, background-color 0.15s ease-out, border-color 0.15s ease-out, box-shadow 0.15s ease-out, transform 0.15s ease-out, opacity 0.15s ease-out, backdrop-filter 0.15s ease-out;
  resize: vertical;
}
.prompt-filler-field input:focus,
.prompt-filler-field select:focus,
.prompt-filler-field textarea:focus {
  outline: none;
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.08);
}
.prompt-filler-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.prompt-generated-result {
  margin-top: 20px;
  animation: fadeSlideUp 0.3s ease;
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.prompt-generated-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.prompt-generated-header h3 {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.prompt-result-block { padding-left: 60px; }

/* Examples */
.prompt-example-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}
.prompt-example-label {
  padding: 10px 16px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.1), transparent);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.prompt-example-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.prompt-example-col {
  padding: 16px;
}
.prompt-example-col:first-child {
  border-right: 1px solid var(--border-subtle);
}
.prompt-example-col-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.prompt-example-col-header svg { color: var(--accent); }
.example-input-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12px;
}
.example-input-row:last-child { border-bottom: none; }
.example-input-key {
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Consolas, monospace;
  color: var(--accent);
  font-size: 11px;
}
.example-input-val {
  color: var(--text-secondary);
  word-break: break-all;
}
.prompt-example-output-md {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.prompt-example-output-md h2,
.prompt-example-output-md h3,
.prompt-example-output-md h4 {
  color: var(--text-primary);
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  margin: 12px 0 8px;
  font-size: 14px;
}
.prompt-example-output-md h2 { font-size: 16px; }
.prompt-example-output-md p { margin: 0 0 8px; }
.prompt-example-output-md ul { margin: 0; padding-left: 18px; }
.prompt-example-output-md li { margin-bottom: 4px; }
.prompt-example-output-md code {
  background: var(--bg-deep);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 11px;
  color: var(--accent);
}
.prompt-example-output-md strong { color: var(--text-primary); }

/* Tips */
.prompt-tips-card {
  background: linear-gradient(135deg, rgba(var(--amber-rgb), 0.05), rgba(var(--accent-rgb), 0.05));
  border: 1px solid rgba(var(--amber-rgb), 0.15);
  border-radius: 12px;
  padding: 20px 24px;
}
.prompt-tips-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.prompt-tip-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.tip-number {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(var(--amber-rgb), 0.15);
  color: var(--amber);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Consolas, monospace;
  margin-top: 1px;
}

/* Related */
.related-grid .prompt-card { cursor: pointer; }
.related-articles-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.article-card-mini {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out, opacity 0.2s ease-out, backdrop-filter 0.2s ease-out;
}
.article-card-mini:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.article-card-mini-cat {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}
.article-card-mini h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-mini-read {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Sidebar cards */
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px;
}
.sidebar-card h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  margin: 0 0 12px;
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Consolas, monospace;
}
.sidebar-var-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 12px;
}
.sidebar-var-item code {
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 11px;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}
.sidebar-var-type {
  font-size: 10px;
  padding: 1px 6px;
}
.sidebar-models {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.model-chip {
  padding: 4px 10px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  border-radius: 6px;
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
}
.sidebar-stat-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 12px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}
.sidebar-stat-row:last-child { border-bottom: none; }
.sidebar-stat-row strong {
  color: var(--text-primary);
  font-weight: 600;
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Consolas, monospace;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 960px) {
  .prompt-detail-layout {
    grid-template-columns: 1fr;
  }
  .prompt-detail-sidebar {
    position: static;
    order: -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
  }
  .prompt-example-grid {
    grid-template-columns: 1fr;
  }
  .prompt-example-col:first-child {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .related-articles-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .prompt-detail-header {
    flex-direction: column;
    gap: 16px;
  }
  .prompt-detail-info h1 { font-size: 22px; }
  .prompts-toolbar { flex-direction: column; align-items: stretch; }
  .prompt-search-wrap { max-width: 100%; }
  .prompt-sort-select { width: 100%; }
  .prompt-filler-form { grid-template-columns: 1fr; }
  .filter-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .filter-tab { flex-shrink: 0; }
  .prompt-detail-sidebar { grid-template-columns: 1fr; }
}

/* ========== Article Detail ========== */
.article-detail {
  max-width: 800px;
  margin: 0 auto;
}
.article-detail-header {
  text-align: center;
  margin-bottom: 40px;
}
.article-detail-cover {
  width: 100%;
  height: 320px;
  border-radius: 16px;
  margin-bottom: 32px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-detail-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(148, 163, 184, 0.08) 1px, transparent 0);
  background-size: 24px 24px;
}
.article-detail-cover-icon {
  position: relative;
  font-size: 64px;
  opacity: 0.4;
}
.article-detail h1 {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.article-detail-meta {
  display: flex;
  justify-content: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.article-detail-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}
.article-detail-body h2 {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 40px 0 16px;
  letter-spacing: -0.01em;
}
.article-detail-body h3 {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 28px 0 12px;
}
.article-detail-body p { margin: 0 0 16px; }
.article-detail-body code {
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--violet);
  border: 1px solid var(--border-subtle);
}
.article-detail-body pre {
  background: var(--bg-deeper);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 20px;
  overflow-x: auto;
  margin: 16px 0;
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.article-detail-body ul { margin: 0 0 16px; padding-left: 24px; }
.article-detail-body li { margin-bottom: 6px; }

/* FAQ accordion */
.faq-list { margin-top: 16px; }
.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  margin-bottom: 8px;
  background: var(--bg-card);
  overflow: hidden;
}
.faq-q {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 14px;
  transition: background 0.15s;
}
.faq-q:hover { background: var(--bg-card-hover); }
.faq-q svg {
  transition: transform 0.2s;
  color: var(--text-muted);
  flex-shrink: 0;
}
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 20px 16px;
}

/* ========== Product detail ========== */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
}
.product-gallery {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}
.product-gallery::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(148, 163, 184, 0.07) 1px, transparent 0);
  background-size: 24px 24px;
}
.product-gallery-icon {
  position: relative;
  width: 120px; height: 120px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0e1a;
}
.product-gallery-thumbs {
  display: flex;
  gap: 10px;
}
.product-gallery-thumb {
  width: 70px; height: 70px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out, opacity 0.2s ease-out, backdrop-filter 0.2s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.product-gallery-thumb:hover { border-color: var(--border-strong); }
.product-gallery-thumb.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-glow); }

.product-info h1 {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.product-info-price {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
}
.product-info-price.free { color: var(--green); }
.product-info-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.purchase-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
}
.license-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.license-option {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg-deep);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: color 0.15s ease-out, background-color 0.15s ease-out, border-color 0.15s ease-out, box-shadow 0.15s ease-out, transform 0.15s ease-out, opacity 0.15s ease-out, backdrop-filter 0.15s ease-out;
  text-align: center;
  font-family: inherit;
}
.license-option:hover { border-color: var(--accent-dim); }
.license-option.active {
  border-color: var(--accent);
  background: rgba(34, 211, 238, 0.08);
  color: var(--accent);
  font-weight: 600;
}
.btn-paypal {
  width: 100%;
  padding: 14px;
  background: #ffc439;
  color: #003087;
  font-weight: 700;
  font-size: 15px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out, opacity 0.2s ease-out, backdrop-filter 0.2s ease-out;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-paypal:hover { background: #ffd269; }
.btn-download-free {
  width: 100%;
  padding: 14px;
  background: var(--green);
  color: #0a0e1a;
  font-weight: 700;
  font-size: 15px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out, opacity 0.2s ease-out, backdrop-filter 0.2s ease-out;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-download-free:hover { background: #6ee7b7; }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.feature-list li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.feature-list li svg { color: var(--green); flex-shrink: 0; }

.related-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ========== Page header (list pages) ========== */
.page-header {
  padding: 60px 0 40px;
  text-align: center;
  position: relative;
}
.page-header .node-bg { opacity: 0.4; }
.page-header h1 {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  position: relative;
}
.page-header p {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-body { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .product-detail-layout { grid-template-columns: 1fr; }
  .related-products { grid-template-columns: 1fr; }
  .tool-panels { grid-template-columns: 1fr; }
  .usecase-list { grid-template-columns: 1fr; }
  .tool-detail-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .how-steps { flex-direction: column; align-items: center; }
  .how-step-arrow { transform: rotate(90deg); padding: 8px 0; }
  .featured-articles-grid { grid-template-columns: 1fr; }
  .article-grid-6 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .hero-stat-num { font-size: 22px; }
  .detail-header { flex-direction: column; gap: 20px; }
  .detail-icon { width: 60px; height: 60px; }
  .detail-info h1 { font-size: 24px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .filter-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .filter-tab { flex-shrink: 0; }
  .cta-banner { padding: 36px 24px; }
  .user-dropdown { width: 300px; right: -20px; }
  .nav-brand .brand-text { display: none; }
  .brand-logo { width: 36px; height: 36px; }
  .featured-article-cover { height: 200px; }
  .featured-article-cover-icon { font-size: 60px; }
  .featured-article-title { font-size: 18px; }
  .featured-article-body { padding: 20px; }
  .article-grid-6 { grid-template-columns: 1fr; }
}

/* ============================================================
   AGENTS MODULE - UPGRADED
   ============================================================ */

/* Filter tabs wide */
.filter-tabs-wide {
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

/* Agent card v2 */
.agent-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.agent-card-v2 {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.agent-card-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.agent-card-v2:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--accent-rgb), 0.4);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.5), 0 0 0 1px rgba(var(--accent-rgb), 0.1);
}

.agent-card-v2:hover::before { opacity: 1; }

.agent-card-head {
  display: flex;
  gap: 14px;
  align-items: center;
}

.agent-card-head-info { flex: 1; min-width: 0; }

.agent-card-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}

.agent-card-tags {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.price-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.price-free {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.price-paid {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.agent-card-desc {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.agent-card-flow {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
}

.mini-flow-svg {
  width: 100%;
  max-width: 240px;
  height: auto;
  display: block;
}

.agent-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 4px;
}

.agent-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.stars { font-size: 13px; letter-spacing: 1px; }
.star-full { color: #fbbf24; }
.star-half { color: #fbbf24; opacity: 0.5; }
.star-empty { color: #374151; }
.rating-num { color: var(--text-primary); font-weight: 600; margin-left: 4px; font-size: 13px; }

.agent-card-downloads {
  display: flex;
  align-items: center;
  gap: 4px;
}

.agent-card-downloads svg { width: 14px; height: 14px; }

.agent-card-btn {
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  cursor: pointer;
  transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out, opacity 0.2s ease-out, backdrop-filter 0.2s ease-out;
  white-space: nowrap;
}

.agent-card-btn:hover {
  background: rgba(var(--accent-rgb), 0.2);
}

/* ---- Agent detail page ---- */
.agent-detail-page .detail-header { margin-bottom: 28px; }

.breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.bc-link {
  cursor: pointer;
  transition: color 0.2s;
}

.bc-link:hover { color: var(--accent); }

.bc-sep { opacity: 0.5; }

.bc-current { color: var(--text-primary); font-weight: 500; }

.detail-rating-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.detail-section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 36px 0 8px;
  letter-spacing: -0.01em;
}

.detail-section-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 18px;
}

/* Use cases grid */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.usecase-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  animation: fadeUp 0.5s ease both;
  animation-delay: var(--delay, 0s);
}

.usecase-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb), 0.3);
  box-shadow: 0 12px 24px -12px rgba(0,0,0,0.4);
}

.usecase-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.usecase-icon svg { width: 20px; height: 20px; }

.usecase-card h4 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.usecase-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Flow diagram (SVG) ---- */
.flow-diagram-wrap {
  position: relative;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  height: 500px;
  user-select: none;
}

.flow-svg {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

.flow-svg:active { cursor: grabbing; }

.flow-node {
  cursor: default;
  transition: filter 0.2s;
}

.flow-node:hover rect {
  filter: brightness(1.2);
}

.flow-edge { transition: stroke 0.2s; }

.flow-edge-animated {
  stroke-dasharray: 8 6;
  animation: edgeFlow 1.5s linear infinite;
  stroke: #6b7280;
}

@keyframes edgeFlow {
  to { stroke-dashoffset: -28; }
}

.flow-tooltip {
  position: absolute;
  z-index: 50;
  background: var(--bg-card, #111827);
  color: var(--text-secondary, #e5e7eb);
  border: 1px solid var(--border-strong, #374151);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12.5px;
  line-height: 1.5;
  max-width: 240px;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.flow-controls {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 10;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
}

.flow-ctrl-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease-out, background-color 0.15s ease-out, border-color 0.15s ease-out, box-shadow 0.15s ease-out, transform 0.15s ease-out, opacity 0.15s ease-out, backdrop-filter 0.15s ease-out;
}

.flow-ctrl-btn:hover {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
}

.flow-ctrl-btn:active { transform: scale(0.95); }

/* ---- Workflow timeline ---- */
.workflow-timeline {
  position: relative;
  margin-left: 24px;
  margin-top: 12px;
}

.workflow-timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, #3b82f6, #8b5cf6, #10b981);
  opacity: 0.4;
}

.workflow-timeline-item {
  position: relative;
  padding: 14px 0 14px 40px;
}

.workflow-tl-dot {
  position: absolute;
  left: 0;
  top: 18px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 2px currentColor;
}

.workflow-color-input { background: rgba(59, 130, 246, 0.12); color: var(--info-color, #3b82f6); }
.workflow-color-planner { background: #1e3a8a; color: #3b82f6; }
.workflow-color-worker { background: rgba(52, 211, 153, 0.12); color: var(--green, #34d399); }
.workflow-color-reviewer { background: #4c1d95; color: #8b5cf6; }
.workflow-color-output { background: #064e3b; color: #10b981; }

.workflow-tl-content h4 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.workflow-tl-content p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ---- Example compare ---- */
.example-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 12px;
}

.example-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.example-col-head {
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.example-code-block {
  padding: 16px;
  font-size: 13px;
  line-height: 1.65;
  flex: 1;
  min-height: 200px;
  max-height: 360px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.example-input-block {
  background: var(--bg-tertiary, #0f172a);
  color: var(--info-color, #93c5fd);
  font-family: var(--font-mono), monospace;
}

.example-output-block {
  background: var(--bg-tertiary, #022c22);
  color: var(--green, #6ee7b7);
  font-family: var(--font-sans), system-ui, sans-serif;
}

.example-output-block h1,
.example-output-block h2,
.example-output-block h3 {
  color: #10b981;
  margin-top: 16px;
  margin-bottom: 8px;
  font-weight: 700;
}

.example-output-block h1:first-child { margin-top: 0; }

.example-output-block ul { padding-left: 20px; margin: 8px 0; }
.example-output-block li { margin: 4px 0; }
.example-output-block strong { color: #34d399; }
.example-output-block code {
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono), monospace;
  font-size: 0.9em;
}

.example-output-block pre {
  background: rgba(0,0,0,0.3);
  padding: 12px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 10px 0;
}

/* ---- Related articles ---- */
.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.article-card-small {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out, opacity 0.2s ease-out, backdrop-filter 0.2s ease-out;
}

.article-card-small:hover {
  border-color: rgba(var(--accent-rgb), 0.3);
  transform: translateY(-2px);
}

.article-card-icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--bg-tertiary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-card-body { flex: 1; min-width: 0; }

.article-card-body h5 {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-body span {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Sidebar skill mini card */
.skill-mini-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.skill-mini-card:hover {
  background: rgba(var(--accent-rgb), 0.08);
}

.skill-mini-card svg:last-child {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.skill-mini-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.skill-mini-icon svg { width: 16px; height: 16px; }

.skill-mini-body { flex: 1; min-width: 0; }

.skill-mini-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.skill-mini-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

.product-card-side {
  position: relative;
  text-align: center;
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.08), rgba(139, 92, 246, 0.08));
  border-color: rgba(var(--accent-rgb), 0.3);
}

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-badge.popular {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.product-price-big {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  margin-top: 8px;
}

.btn-wide { width: 100%; justify-content: center; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .example-compare { grid-template-columns: 1fr; }
  .usecase-grid { grid-template-columns: 1fr; }
  .flow-diagram-wrap { height: 400px; }
  .workflow-timeline { margin-left: 12px; }
}

@media (max-width: 600px) {
  .agent-card-grid { grid-template-columns: 1fr; }
  .agent-detail-header .detail-info h1 { font-size: 24px; }
  .detail-meta { flex-wrap: wrap; gap: 8px; }
  .detail-actions { flex-direction: column; }
  .detail-actions button { width: 100%; }
  .flow-diagram-wrap { height: 360px; }
  .flow-controls { top: 8px; right: 8px; }
  .flow-ctrl-btn { width: 32px; height: 32px; font-size: 14px; }
  .breadcrumb { font-size: 12px; }
  .detail-section-title { font-size: 18px; }
}

/* ============================================================
   SKILLS MODULE - UPGRADED
   ============================================================ */

/* Skills toolbar */
.skills-toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.skills-search-wrap {
  position: relative;
  max-width: 480px;
  width: 100%;
}

.skills-search-input {
  width: 100%;
  height: 46px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 14px;
  padding: 0 16px 0 44px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.skills-search-input:focus {
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

.skills-filter-tabs {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
}

/* Skill card v2 */
.skill-list-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.skill-card-v2 {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.skill-card-v2::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--violet), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.skill-card-v2:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--violet-rgb), 0.4);
  box-shadow: 0 16px 32px -16px rgba(0,0,0,0.5), 0 0 0 1px rgba(var(--violet-rgb), 0.1);
}

.skill-card-v2:hover::before { opacity: 1; }

.skill-card-head {
  display: flex;
  gap: 12px;
  align-items: center;
}

.skill-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.skill-card-head-info { flex: 1; min-width: 0; }

.skill-card-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.skill-card-tags {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.skill-version-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  border: 1px solid var(--border);
  font-family: var(--font-mono, 'JetBrains Mono'), monospace;
}

.skill-card-desc {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.skill-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 4px;
}

.skill-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.skill-card-meta > span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.skill-card-meta svg { width: 13px; height: 13px; }

.skill-card-btn {
  font-size: 12.5px;
  padding: 7px 12px;
  border-radius: 7px;
  background: rgba(var(--violet-rgb), 0.1);
  color: var(--violet);
  border: 1px solid rgba(var(--violet-rgb), 0.3);
  cursor: pointer;
  transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out, opacity 0.2s ease-out, backdrop-filter 0.2s ease-out;
  white-space: nowrap;
}

.skill-card-btn:hover {
  background: rgba(var(--violet-rgb), 0.2);
}

/* Icon calendar */
.icon-calendar { display: inline-block; }

/* ---- Skill detail page ---- */
.skill-detail-header { margin-bottom: 24px; }

.skill-detail-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.skill-version-badge-lg {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(var(--violet-rgb), 0.12);
  color: var(--violet);
  border: 1px solid rgba(var(--violet-rgb), 0.3);
  font-family: var(--font-mono, 'JetBrains Mono'), monospace;
}

.skill-author-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
}

.author-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  color: var(--text-inverse, #fff);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Frontmatter card */
.frontmatter-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 8px;
}

.fm-row {
  display: flex;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.fm-row:last-child { border-bottom: none; }

.fm-label {
  width: 160px;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  font-family: var(--font-mono, 'JetBrains Mono'), monospace;
}

.fm-value {
  flex: 1;
  font-size: 13.5px;
  color: var(--text-primary);
  line-height: 1.5;
  word-break: break-word;
}

.fm-tag {
  display: inline-block;
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  margin-right: 5px;
  font-family: var(--font-mono, 'JetBrains Mono'), monospace;
}

/* Skill content header */
.skill-content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 36px 0 12px;
  flex-wrap: wrap;
  gap: 12px;
}

.view-toggle-group {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}

.view-toggle-btn {
  padding: 6px 14px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out, opacity 0.2s ease-out, backdrop-filter 0.2s ease-out;
}

.view-toggle-btn:hover {
  color: var(--text-primary);
}

.view-toggle-btn.active {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
}

/* Skill content wrap */
.skill-content-wrap {
  position: relative;
}

/* Rendered markdown */
.skill-md-rendered {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
  line-height: 1.7;
  font-size: 14px;
  color: var(--text-secondary);
  transition: opacity 0.3s;
}

.skill-md-rendered h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  letter-spacing: -0.02em;
}

.skill-md-rendered h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 28px 0 12px;
  letter-spacing: -0.01em;
}

.skill-md-rendered h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 20px 0 10px;
}

.skill-md-rendered h4,
.skill-md-rendered h5,
.skill-md-rendered h6 {
  color: var(--text-primary);
  margin: 16px 0 8px;
}

.skill-md-rendered p {
  margin: 10px 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

.skill-md-rendered ul,
.skill-md-rendered ol {
  padding-left: 24px;
  margin: 10px 0;
  color: var(--text-secondary);
}

.skill-md-rendered li {
  margin: 5px 0;
  line-height: 1.6;
}

.skill-md-rendered strong {
  color: var(--text-primary);
  font-weight: 600;
}

.skill-md-rendered em {
  color: var(--text-primary);
  font-style: italic;
}

.skill-md-rendered blockquote {
  margin: 14px 0;
  padding: 12px 16px;
  border: 1px solid var(--accent);
  background: rgba(var(--accent-rgb), 0.06);
  border-radius: 0 8px 8px 0;
  color: var(--text-secondary);
  font-style: italic;
}

/* Tables */
.md-table-wrap {
  overflow-x: auto;
  margin: 14px 0;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.skill-md-rendered table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.skill-md-rendered th {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.skill-md-rendered td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.skill-md-rendered tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.skill-md-rendered tbody tr:last-child td {
  border-bottom: none;
}

/* Inline code */
.md-inline-code {
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono, 'JetBrains Mono'), monospace;
  font-size: 0.88em;
}

/* Code blocks */
.skill-code-block {
  margin: 14px 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--code-bg, #0d1117);
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: var(--code-head-bg, #161b22);
  border-bottom: 1px solid var(--border-subtle);
}

.code-lang {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono, 'JetBrains Mono'), monospace;
}

.code-copy-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  font-size: 11.5px;
  cursor: pointer;
  transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out, opacity 0.2s ease-out, backdrop-filter 0.2s ease-out;
}

.code-copy-btn:hover {
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), 0.3);
}

.code-copy-btn svg { width: 13px; height: 13px; }

.skill-code-block pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.55;
}

.skill-code-block code {
  font-family: var(--font-mono, 'JetBrains Mono'), monospace;
  color: #c9d1d9;
  background: none;
  padding: 0;
  border-radius: 0;
}

/* Raw view */
.skill-md-raw {
  background: var(--code-bg, #0d1117);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0;
  max-height: 700px;
  overflow: auto;
  font-family: var(--font-mono, 'JetBrains Mono'), monospace;
  font-size: 12.5px;
  line-height: 1.6;
  color: #c9d1d9;
}

.raw-line {
  display: flex;
  min-height: 1.6em;
}

.raw-line:hover {
  background: rgba(255, 255, 255, 0.03);
}

.raw-line-num {
  width: 48px;
  flex-shrink: 0;
  text-align: right;
  padding: 0 12px 0 0;
  color: #484f58;
  font-size: 11.5px;
  user-select: none;
  border-right: 1px solid var(--border-subtle, #21262d);
  margin-right: 16px;
  position: sticky;
  left: 0;
  background: var(--code-bg, #0d1117);
}

.raw-line-code {
  flex: 1;
  white-space: pre;
  padding-right: 16px;
}

/* Changelog timeline */
.changelog-timeline {
  position: relative;
  margin-left: 12px;
  padding: 4px 0;
}

.changelog-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--border-subtle);
}

.changelog-item {
  position: relative;
  padding: 12px 0 12px 32px;
}

.changelog-dot {
  position: absolute;
  left: 0;
  top: 16px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--border-strong, #4b5563);
}

.changelog-item.latest .changelog-dot {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}

.changelog-content { min-width: 0; }

.changelog-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.changelog-version {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono, 'JetBrains Mono'), monospace;
}

.changelog-latest-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.changelog-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
}

.changelog-notes {
  margin: 0;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.65;
}

.changelog-notes li {
  margin: 3px 0;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .skill-list-grid { grid-template-columns: 1fr; }
  .skill-content-header { flex-direction: column; align-items: flex-start; }
  .skill-md-rendered { padding: 20px 18px; font-size: 13.5px; }
  .frontmatter-card { padding: 12px 14px; }
  .fm-row { flex-direction: column; gap: 4px; }
  .fm-label { width: auto; }
  .changelog-date { margin-left: 0; }
}

/* ============================================================
   KNOWLEDGE V2
   ============================================================ */
.knowledge-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.knowledge-search-wrap {
  flex: 1;
  max-width: 480px;
  position: relative;
  display: flex;
  align-items: center;
}

.knowledge-search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.knowledge-search-input {
  width: 100%;
  padding: 11px 14px 11px 42px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-body);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, backdrop-filter 0.2s ease;
  outline: none;
}

.knowledge-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}

.knowledge-sort-select {
  padding: 10px 32px 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 13.5px;
  font-family: var(--font-body);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color 0.2s ease;
}

.knowledge-sort-select:hover {
  border-color: var(--accent);
}

.knowledge-sort-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}

.knowledge-filter-tabs {
  margin-bottom: 24px;
}

/* Article card v2 - large cover */
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card-v2 {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), backdrop-filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.article-card-v2:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(var(--accent-rgb), 0.2);
}

.article-card-cover {
  position: relative;
  height: 180px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-card-cover-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.2), rgba(var(--violet-rgb), 0.15));
}

.article-card-v2.cat-cyan .article-card-cover-bg {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(14, 165, 233, 0.15));
}
.article-card-v2.cat-violet .article-card-cover-bg {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(217, 70, 239, 0.15));
}
.article-card-v2.cat-amber .article-card-cover-bg {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(239, 68, 68, 0.15));
}
.article-card-v2.cat-green .article-card-cover-bg {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(6, 182, 212, 0.15));
}
.article-card-v2.cat-rose .article-card-cover-bg {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.25), rgba(217, 70, 239, 0.15));
}

.article-card-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.06) 0%, transparent 40%);
}

.article-card-cover-icon {
  position: relative;
  font-size: 56px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
  z-index: 1;
}

.article-card-cat-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 10px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-primary);
  z-index: 2;
}

.article-card-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-card-title {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-excerpt {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid var(--border-color);
  margin-top: 4px;
}

.article-card-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}

.article-avatar-md {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.article-author-name {
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 500;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

.article-card-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.5;
}

/* ---- Featured Article Cards ---- */
.featured-articles-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.featured-article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), backdrop-filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.featured-article-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 20px 60px -12px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(var(--accent-rgb), 0.2);
}

.featured-article-cover {
  position: relative;
  height: 260px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.featured-article-cover-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.25), rgba(var(--violet-rgb), 0.18));
}

.featured-article-card.cat-cyan .featured-article-cover-bg {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(14, 165, 233, 0.18));
}
.featured-article-card.cat-violet .featured-article-cover-bg {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(217, 70, 239, 0.18));
}
.featured-article-card.cat-amber .featured-article-cover-bg {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(239, 68, 68, 0.18));
}
.featured-article-card.cat-green .featured-article-cover-bg {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(6, 182, 212, 0.18));
}
.featured-article-card.cat-rose .featured-article-cover-bg {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.3), rgba(217, 70, 239, 0.18));
}

.featured-article-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 0%, transparent 45%),
    radial-gradient(circle at 75% 75%, rgba(255,255,255,0.07) 0%, transparent 45%);
}

.featured-article-cover-icon {
  position: relative;
  font-size: 84px;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,0.35));
  z-index: 1;
}

.featured-article-cat-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 5px 12px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  z-index: 2;
}

.featured-article-body {
  padding: 24px 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.featured-article-title {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-article-excerpt {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  margin-top: 4px;
  flex-wrap: wrap;
}

.featured-article-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.featured-article-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.featured-article-author-name {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.featured-article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.featured-article-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.5;
}

/* ---- 6-col Article Grid on home ---- */
.article-grid-6 {
  grid-template-columns: repeat(3, 1fr);
}

/* ---- Article Detail V2 ---- */
.article-detail-page {
  padding: 24px 0 80px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.breadcrumb-item {
  cursor: pointer;
  transition: color 0.2s ease;
}

.breadcrumb-item:hover {
  color: var(--accent);
}

.breadcrumb-item.current {
  color: var(--text-secondary);
  cursor: default;
}

.breadcrumb-item.current:hover {
  color: var(--text-secondary);
}

.breadcrumb-item.ellipsis {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breadcrumb-sep {
  opacity: 0.4;
  font-size: 11px;
}

.article-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.article-detail-main {
  min-width: 0;
}

.article-detail-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Article detail header */
.article-detail-header-v2 {
  margin-bottom: 32px;
}

.article-detail-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.article-detail-title-v2 {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 0 0 20px 0;
  letter-spacing: -0.02em;
}

.article-detail-meta-v2 {
  margin-bottom: 28px;
}

.article-meta-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-meta-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.article-meta-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.article-meta-sub .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.5;
}

/* Cover image */
.article-detail-cover-v2 {
  position: relative;
  height: 320px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.15), rgba(var(--violet-rgb), 0.1));
  border: 1px solid var(--border-color);
}

.cat-cyan .article-detail-cover-v2 { background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(14, 165, 233, 0.1)); }
.cat-violet .article-detail-cover-v2 { background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(217, 70, 239, 0.12)); }
.cat-amber .article-detail-cover-v2 { background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(239, 68, 68, 0.1)); }
.cat-green .article-detail-cover-v2 { background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.12)); }
.cat-rose .article-detail-cover-v2 { background: linear-gradient(135deg, rgba(244, 63, 94, 0.2), rgba(217, 70, 239, 0.12)); }

.article-cover-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(255,255,255,0.1) 0%, transparent 35%),
    radial-gradient(circle at 85% 75%, rgba(255,255,255,0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, transparent 0%, rgba(0,0,0,0.2) 100%);
}

.article-cover-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.3), transparent 70%);
  filter: blur(40px);
  animation: coverGlow 6s ease-in-out infinite alternate;
}

@keyframes coverGlow {
  0% { transform: translate(-30px, -20px) scale(1); }
  100% { transform: translate(30px, 20px) scale(1.2); }
}

.article-cover-icon-lg {
  position: relative;
  font-size: 96px;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.4));
  z-index: 1;
  animation: iconFloat 4s ease-in-out infinite alternate;
}

@keyframes iconFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

/* ---- MDX article body ---- */
.article-detail-body-v2 {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.mdx-heading {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  color: var(--text-primary);
  scroll-margin-top: 80px;
  position: relative;
}

.mdx-h1 { font-size: 28px; margin: 32px 0 16px; font-weight: 700; }
.mdx-h2 { font-size: 24px; margin: 40px 0 16px; font-weight: 600; padding-bottom: 8px; border-bottom: 1px solid var(--border-color); }
.mdx-h3 { font-size: 19px; margin: 28px 0 12px; font-weight: 600; }
.mdx-h4 { font-size: 16px; margin: 20px 0 10px; font-weight: 600; }

.article-detail-body-v2 p {
  margin: 0 0 16px 0;
}

.article-detail-body-v2 strong {
  color: var(--text-primary);
  font-weight: 600;
}

.article-detail-body-v2 em {
  font-style: italic;
}

.mdx-ul, .mdx-ol {
  margin: 0 0 16px 0;
  padding-left: 24px;
}

.mdx-ul li, .mdx-ol li {
  margin: 6px 0;
}

.mdx-ul li::marker {
  color: var(--accent);
}

.mdx-ol li::marker {
  color: var(--accent);
  font-weight: 600;
}

.mdx-blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  border: 1px solid var(--accent);
  background: rgba(var(--accent-rgb), 0.06);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-secondary);
}

.mdx-blockquote p {
  margin: 0 0 8px 0 !important;
}

.mdx-blockquote p:last-child {
  margin-bottom: 0 !important;
}

.mdx-inline-code {
  padding: 2px 6px;
  background: rgba(var(--accent-rgb), 0.12);
  border-radius: 4px;
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.88em;
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
}

/* Code blocks */
.mdx-code-block {
  margin: 20px 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--code-bg, #0d1117);
}

.mdx-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--code-head-bg, #161b22);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.code-lang-label {
  font-size: 11.5px;
  font-weight: 500;
  color: #8b949e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Consolas, monospace;
}

.mdx-code-copy {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: #c9d1d9;
  font-size: 11.5px;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, backdrop-filter 0.2s ease;
  font-family: var(--font-body);
}

.mdx-code-copy:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.18);
}

.mdx-code-copy.copied {
  color: #3fb950;
  border-color: rgba(63, 185, 80, 0.3);
  background: rgba(63, 185, 80, 0.1);
}

.mdx-code-body {
  display: flex;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.6;
}

.mdx-code-linenos {
  padding: 14px 12px 14px 16px;
  color: #484f58;
  text-align: right;
  user-select: none;
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  background: var(--code-bg, #0d1117);
  border-right: 1px solid rgba(255,255,255,0.06);
  min-width: 32px;
}

.mdx-code-body pre {
  margin: 0;
  padding: 14px 16px;
  flex: 1;
  overflow-x: auto;
}

.mdx-code-body code {
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #c9d1d9;
}

/* Syntax highlighting tokens - GitHub dark theme */
.tok-keyword { color: #ff7b72; }
.tok-string { color: #a5d6ff; }
.tok-number { color: #79c0ff; }
.tok-comment { color: #8b949e; font-style: italic; }
.tok-function { color: #d2a8ff; }
.tok-attr { color: #79c0ff; }
.tok-selector { color: #d2a8ff; }
.tok-property { color: #79c0ff; }
.tok-builtin { color: #ffa657; }

/* Tables */
.mdx-table-wrap {
  margin: 20px 0;
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.mdx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.mdx-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-card);
  border-bottom: 2px solid var(--border-color);
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
}

.mdx-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.mdx-table tbody tr:nth-child(even) {
  background: rgba(255,255,255,0.02);
}

.mdx-table tbody tr:hover {
  background: rgba(var(--accent-rgb), 0.04);
}

.mdx-table tbody tr:last-child td {
  border-bottom: none;
}

/* ---- TOC Sidebar ---- */
.toc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
}

.toc-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
}

.toc-title svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.toc-item {
  display: block;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, opacity 0.15s ease, backdrop-filter 0.15s ease;
  cursor: pointer;
  line-height: 1.4;
  border-left: 2px solid transparent;
  padding-left: 10px;
}

.toc-item:hover {
  color: var(--text-primary);
  background: rgba(var(--accent-rgb), 0.06);
}

.toc-item.active {
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
  border-left-color: var(--accent);
  font-weight: 500;
}

.toc-item.toc-level-3 {
  padding-left: 24px;
  font-size: 12.5px;
}

/* Sidebar card */
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
}

.sidebar-card h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 12px 0;
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
}

.sidebar-share {
  justify-content: flex-start;
}

/* Share buttons */
.share-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, backdrop-filter 0.2s ease;
}

.share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
}

.share-btn.copied {
  color: #10b981;
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.share-btn svg {
  width: 14px;
  height: 14px;
}

/* ---- Article sections ---- */
.article-section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 48px 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.heading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

/* FAQ section */
.article-faq-section {
  margin-top: 32px;
}

.faq-list-lg .faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-list-lg .faq-item:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
}

.faq-list-lg .faq-item.open {
  border-color: rgba(var(--accent-rgb), 0.5);
}

.faq-list-lg .faq-q {
  padding: 16px 20px;
  font-weight: 500;
  font-size: 14.5px;
  color: var(--text-primary);
}

.faq-list-lg .faq-a {
  padding: 0 20px 0 44px;
}

.faq-list-lg .faq-item.open .faq-a {
  padding: 0 20px 16px 44px;
}

.faq-num {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}

/* Author card */
.article-author-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-top: 32px;
  align-items: center;
}

.author-avatar-lg {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
}

.author-info {
  flex: 1;
}

.author-label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 500;
}

.author-name {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.author-bio-text {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Share section */
.article-share-section {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.share-label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Prev/Next navigation */
.article-nav-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.article-nav-spacer {
  visibility: hidden;
}

.article-nav-card {
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, backdrop-filter 0.2s ease;
}

.article-nav-card:hover {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.04);
  transform: translateY(-2px);
}

.article-nav-card.next {
  text-align: right;
}

.article-nav-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.article-nav-card.next .article-nav-label {
  justify-content: flex-end;
}

.article-nav-label svg {
  width: 14px;
  height: 14px;
}

.article-nav-title {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

/* Related articles */
.article-related-section {
  margin-top: 48px;
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.article-card-small {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, backdrop-filter 0.2s ease;
}

.article-card-small:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.article-small-cover {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.2), rgba(var(--violet-rgb), 0.15));
}

.article-small-cover.cat-cyan { background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(14, 165, 233, 0.15)); }
.article-small-cover.cat-violet { background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(217, 70, 239, 0.15)); }
.article-small-cover.cat-amber { background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(239, 68, 68, 0.15)); }
.article-small-cover.cat-green { background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(6, 182, 212, 0.15)); }
.article-small-cover.cat-rose { background: linear-gradient(135deg, rgba(244, 63, 94, 0.25), rgba(217, 70, 239, 0.15)); }

.article-small-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.article-small-cat {
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.article-small-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-small-meta {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ---- Knowledge responsive ---- */
@media (max-width: 1024px) {
  .knowledge-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .related-articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .article-detail-layout {
    grid-template-columns: 1fr;
  }
  
  .article-detail-sidebar {
    position: static;
    order: -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .toc-card {
    flex: 1;
    min-width: 280px;
  }
  
  .sidebar-card {
    flex: 0 0 auto;
    min-width: 200px;
  }
  
  .toc-list {
    max-height: none;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }
  
  .toc-item {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 6px 10px;
  }
  
  .toc-item.active {
    border-left-color: transparent;
    border-bottom-color: var(--accent);
  }
  
  .toc-item.toc-level-3 {
    padding-left: 10px;
  }
}

@media (max-width: 768px) {
  .knowledge-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .knowledge-search-wrap {
    max-width: none;
  }
  
  .knowledge-filter-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    margin: 0 -20px 20px;
    padding-left: 20px;
    padding-right: 20px;
    scrollbar-width: none;
  }
  
  .knowledge-filter-tabs::-webkit-scrollbar { display: none; }
  
  .knowledge-grid {
    grid-template-columns: 1fr;
  }
  
  .article-detail-title-v2 {
    font-size: 28px;
  }
  
  .article-detail-cover-v2 {
    height: 220px;
  }
  
  .article-cover-icon-lg {
    font-size: 64px;
  }
  
  .related-articles-grid {
    grid-template-columns: 1fr;
  }
  
  .article-nav-section {
    grid-template-columns: 1fr;
  }
  
  .article-nav-card.next {
    text-align: left;
  }
  
  .article-nav-card.next .article-nav-label {
    justify-content: flex-start;
  }
  
  .article-author-card {
    flex-direction: column;
    text-align: center;
  }
  
  .breadcrumbs {
    font-size: 12px;
  }
  
  .mdx-code-body {
    font-size: 12.5px;
  }
  
  .mdx-code-linenos {
    display: none;
  }
  
  .article-detail-sidebar {
    flex-direction: column;
  }
  
  .toc-list {
    flex-direction: column;
  }
  
  .toc-item {
    border-left: 2px solid transparent;
    border-bottom: none;
  }
  
  .toc-item.active {
    border-left-color: var(--accent);
    border-bottom-color: transparent;
  }
  
  .toc-item.toc-level-3 {
    padding-left: 24px;
  }
}

/* ============================================================
   Knowledge v3 - Progress Bar, Back to Top, Callouts, Ads, CTA, Related Tools
   ============================================================ */

/* Reading progress bar */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--violet));
  z-index: 1000;
  transition: width 0.1s linear;
}

/* Back to top button */
.back-to-top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, opacity 0.25s ease, backdrop-filter 0.25s ease;
  backdrop-filter: blur(12px);
  z-index: 900;
}
.back-to-top-btn:hover {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.back-to-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Ad slots */
.ad-slot {
  margin: 2rem 0;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(30, 41, 59, 0.6);
  border: 1px dashed rgba(148, 163, 184, 0.15);
  position: relative;
}
.ad-label {
  display: block;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  padding: 8px 0 4px;
}
.ad-placeholder {
  height: 90px;
  background: repeating-linear-gradient(
    45deg,
    rgba(51, 65, 85, 0.3),
    rgba(51, 65, 85, 0.3) 10px,
    rgba(71, 85, 105, 0.2) 10px,
    rgba(71, 85, 105, 0.2) 20px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 13px;
}
.ad-slot-top {
  margin-bottom: 2.5rem;
}

/* Callout blocks */
.mdx-callout {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 10px;
  margin: 1.25rem 0;
  border: 1px solid;
}
.mdx-callout-icon {
  flex-shrink: 0;
  margin-top: 1px;
}
.mdx-callout-body {
  font-size: 0.95rem;
  line-height: 1.65;
}
.mdx-callout-body p {
  margin: 0;
}
.mdx-callout-info {
  background: rgba(6, 182, 212, 0.08);
  border-left-color: var(--accent);
  color: var(--text-primary);
}
.mdx-callout-info .mdx-callout-icon {
  color: var(--accent);
}
.mdx-callout-warning {
  background: rgba(245, 158, 11, 0.08);
  border-left-color: var(--amber);
  color: var(--text-primary);
}
.mdx-callout-warning .mdx-callout-icon {
  color: var(--amber);
}
.mdx-callout-success {
  background: rgba(16, 185, 129, 0.08);
  border-left-color: var(--green);
  color: var(--text-primary);
}
.mdx-callout-success .mdx-callout-icon {
  color: var(--green);
}

/* Horizontal rule */
.mdx-hr {
  border: none;
  height: 1px;
  background: var(--border-color);
  margin: 2.5rem 0;
}

/* Bottom CTA */
.article-bottom-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 28px 32px;
  margin: 3rem 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(6, 182, 212, 0.2);
}
.article-bottom-cta h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 700;
}
.article-bottom-cta p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.article-bottom-cta .btn {
  flex-shrink: 0;
}

/* Related tools sidebar */
.sidebar-card.sidebar-tools h3 {
  margin-bottom: 14px;
}
.sidebar-tool-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, backdrop-filter 0.2s ease;
  margin-bottom: 4px;
}
.sidebar-tool-item:hover {
  background: rgba(51, 65, 85, 0.4);
  transform: translateX(2px);
}
.sidebar-tool-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(6, 182, 212, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.sidebar-tool-info {
  min-width: 0;
}
.sidebar-tool-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-tool-desc {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* Mobile adjustments for new elements */
@media (max-width: 768px) {
  .article-bottom-cta {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  .article-bottom-cta .btn {
    width: 100%;
    justify-content: center;
  }
  
  .back-to-top-btn {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
  
  .mdx-callout {
    padding: 14px 16px;
    gap: 10px;
  }
}

/* ============================================================
   Knowledge v4 - Mobile TOC, Ad slots, Misc improvements
   ============================================================ */

/* Mobile TOC (collapsible, above article body) */
.mobile-toc {
  display: none;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  overflow: hidden;
}
.mobile-toc-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 0.15s ease;
}
.mobile-toc-toggle:hover {
  background: rgba(51, 65, 85, 0.3);
}
.mobile-toc-toggle svg:first-child {
  color: var(--accent);
}
.mobile-toc-chevron {
  margin-left: auto;
  color: var(--text-tertiary);
  transition: transform 0.25s ease;
}
.mobile-toc-toggle.open .mobile-toc-chevron {
  transform: rotate(180deg);
}
.mobile-toc-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  border-top: 0 solid var(--border-color);
}
.mobile-toc-list.open {
  max-height: 500px;
  overflow-y: auto;
  border-top: 1px solid var(--border-color);
}
.mobile-toc-list .toc-item {
  display: block;
  padding: 10px 18px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, opacity 0.15s ease, backdrop-filter 0.15s ease;
}
.mobile-toc-list .toc-item:hover {
  background: rgba(6, 182, 212, 0.06);
  color: var(--accent);
  border-left-color: var(--accent);
}
.mobile-toc-list .toc-item.toc-level-3 {
  padding-left: 36px;
  font-size: 0.8rem;
}
.mobile-toc-list .toc-item.active {
  color: var(--accent);
  background: rgba(6, 182, 212, 0.08);
  border-left-color: var(--accent);
  font-weight: 600;
}

/* Ad slot variations */
.ad-slot-mid {
  margin: 2.5rem 0;
}
.ad-slot-mid .ad-placeholder {
  height: 120px;
}
.ad-slot-bottom {
  margin: 2.5rem 0 1rem;
}
.ad-slot-bottom .ad-placeholder {
  height: 80px;
}

/* FAQ left border accent */
.faq-list-lg .faq-item.open {
  border-left: 2px solid var(--accent);
}
.faq-list-lg .faq-item {
  border-left: 2px solid transparent;
  transition: border-color 0.3s ease;
}

/* Architecture category color */
.cat-architecture .article-card-cover-bg,
.article-card.cat-architecture .article-card-cover-bg {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(236, 72, 153, 0.12));
}
.cat-architecture .article-card-cat-tag,
.tag-architecture {
  background: rgba(168, 85, 247, 0.15);
  color: #c4b5fd;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

/* Code block polish */
.mdx-code-block {
  position: relative;
}
.mdx-code-copy:hover {
  background: rgba(148, 163, 184, 0.15);
}
.mdx-code-copy.copied {
  color: var(--green);
}

/* Better article typography */
.article-detail-body-v2 h2.mdx-h2 {
  scroll-margin-top: 80px;
}
.article-detail-body-v2 h3.mdx-h3 {
  scroll-margin-top: 80px;
}

/* Image lazy loading placeholder */
.mdx-img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(51, 65, 85, 0.4), rgba(30, 41, 59, 0.4));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  margin: 1.5rem 0;
  border: 1px dashed var(--border-color);
}

/* Inline link hover */
.article-detail-body-v2 a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(6, 182, 212, 0.3);
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, opacity 0.15s ease, backdrop-filter 0.15s ease;
}
.article-detail-body-v2 a:hover {
  color: #67e8f9;
  border-bottom-color: var(--accent);
  background: rgba(6, 182, 212, 0.05);
}


/* Responsive: mobile TOC shows, desktop TOC stays in sidebar */
@media (max-width: 768px) {
  .mobile-toc {
    display: block;
  }
  
  /* Sidebar TOC and cards hide on mobile (replaced by mobile TOC) */
  .article-detail-sidebar .toc-card {
    display: none;
  }
}

/* Tablet: sidebar visible but adjusted */
@media (min-width: 769px) and (max-width: 1024px) {
  .mobile-toc {
    display: none;
  }
}

/* ============================================================
   STORE / PRODUCTS
   ============================================================ */

/* Store toolbar */
.store-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.store-price-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.store-filter-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-right: 4px;
}

.store-pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out, opacity 0.2s ease-out, backdrop-filter 0.2s ease-out;
  font-family: inherit;
}

.store-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.store-pill.active {
  background: rgba(34, 211, 238, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

.store-sort-select {
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  outline: none;
}

.store-sort-select:focus {
  border-color: var(--accent);
}

.store-filter-tabs {
  margin-bottom: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.store-filter-tabs::-webkit-scrollbar {
  display: none;
}

/* Product grid */
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* Product card v2 */
.product-card-v2 {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), backdrop-filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.product-card-v2:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(34, 211, 238, 0.1);
}

.product-card-preview {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.product-card-preview-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(167, 139, 250, 0.15));
}

.product-card-v2.cat-cyan .product-card-preview-bg {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(6, 182, 212, 0.05));
}

.product-card-v2.cat-violet .product-card-preview-bg {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.2), rgba(139, 92, 246, 0.05));
}

.product-card-v2.cat-amber .product-card-preview-bg {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.05));
}

.product-card-preview-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: transform 0.3s;
}

.product-card-v2.cat-violet .product-card-preview-icon { color: var(--violet); }
.product-card-v2.cat-amber .product-card-preview-icon { color: var(--amber); }

.product-card-v2:hover .product-card-preview-icon {
  transform: scale(1.1);
}

.product-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.product-card-badge.popular {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #1e1b00;
}

.product-card-badge.free {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: #022c22;
}

.product-card-cat-tag {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  color: var(--text-secondary);
  z-index: 2;
}

.product-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.product-card-title {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.4;
}

.product-card-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rating-stars {
  color: var(--amber);
  font-size: 13px;
  letter-spacing: -1px;
}

.rating-num {
  color: var(--text-secondary);
  font-weight: 500;
}

.product-sales {
  color: var(--text-muted);
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.product-card-price-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.product-card-price {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.product-card-price.free {
  color: var(--accent);
}

.product-card-original-price {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-btn-buy {
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: #0f172a;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out, opacity 0.2s ease-out, backdrop-filter 0.2s ease-out;
  font-family: inherit;
}

.product-btn-buy:hover {
  background: var(--accent-dim, #06b6d4);
  transform: translateY(-1px);
}

.product-btn-demo {
  padding: 8px;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out, opacity 0.2s ease-out, backdrop-filter 0.2s ease-out;
}

.product-btn-demo:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */

.product-detail-page {
  padding-bottom: 60px;
}

.product-detail-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.product-gallery-col {
  position: sticky;
  top: 100px;
  align-self: flex-start;
}

.product-gallery {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(167, 139, 250, 0.1));
  border: 1px solid var(--border-strong);
  margin-bottom: 16px;
}

.product-gallery.cat-cyan {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(6, 182, 212, 0.05));
}

.product-gallery.cat-violet {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.15), rgba(139, 92, 246, 0.05));
}

.product-gallery.cat-amber {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.05));
}

.product-gallery-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(34, 211, 238, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(167, 139, 250, 0.15) 0%, transparent 50%);
}

.product-gallery-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.3) 0%, transparent 70%);
  filter: blur(20px);
}

.product-gallery-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 64px;
}

.product-gallery.cat-violet .product-gallery-icon { color: var(--violet); }
.product-gallery.cat-amber .product-gallery-icon { color: var(--amber); }

.product-gallery-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #1e1b00;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.product-gallery-thumbs {
  display: flex;
  gap: 10px;
}

.product-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out, opacity 0.2s ease-out, backdrop-filter 0.2s ease-out;
}

.product-thumb:hover {
  border-color: var(--border-strong);
  color: var(--text-secondary);
}

.product-thumb.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(34, 211, 238, 0.08);
}

/* Product info column */
.product-detail-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.product-detail-title {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 16px;
  line-height: 1.2;
}

.product-detail-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.product-rating-lg {
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-rating-lg .rating-stars {
  font-size: 16px;
}

.product-rating-lg .rating-num {
  font-weight: 600;
  color: var(--text-primary);
}

.rating-reviews {
  color: var(--text-muted);
  font-size: 13px;
}

.product-sales-lg {
  color: var(--text-muted);
  font-size: 14px;
}

.product-detail-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}

.product-detail-price {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-size: 40px;
  font-weight: 700;
  color: var(--text-primary);
}

.product-detail-price.free {
  color: var(--accent);
}

.product-detail-original-price {
  font-size: 20px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-detail-short-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 24px;
}

/* License selector v2 */
.license-selector-v2 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
}

.license-option-v2 {
  padding: 12px 14px;
  border-radius: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out, opacity 0.2s ease-out, backdrop-filter 0.2s ease-out;
  font-family: inherit;
  color: var(--text-secondary);
}

.license-option-v2:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.license-option-v2.active {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(34, 211, 238, 0.15);
}

.license-option-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}

.license-option-desc {
  font-size: 11px;
  color: var(--text-muted);
}

/* Buy actions */
.product-buy-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.btn-paypal-v2 {
  flex: 1;
  padding: 14px 24px;
  border-radius: 10px;
  background: #FFC439;
  color: #003087;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out, opacity 0.2s ease-out, backdrop-filter 0.2s ease-out;
}

.btn-paypal-v2:hover {
  background: #ffd24a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 196, 57, 0.3);
}

.paypal-icon {
  font-family: 'PayPal Sans', 'Arial', sans-serif;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.paypal-text {
  font-weight: 600;
}

.btn-demo-outline {
  padding: 14px 20px;
  border-radius: 10px;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out, opacity 0.2s ease-out, backdrop-filter 0.2s ease-out;
  white-space: nowrap;
}

.btn-demo-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Security row */
.product-security-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.security-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.security-item svg {
  color: var(--accent);
}

/* Free download box */
.free-download-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.free-download-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.free-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 16px;
  line-height: 1.6;
}

.free-download-form {
  display: flex;
  gap: 8px;
}

.free-email-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.free-email-input:focus {
  border-color: var(--accent);
}

.btn-download-free-big {
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--accent);
  color: #0f172a;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out, opacity 0.2s ease-out, backdrop-filter 0.2s ease-out;
  white-space: nowrap;
}

.btn-download-free-big:hover {
  background: var(--accent-dim, #06b6d4);
  transform: translateY(-1px);
}

.btn-download-free-big.downloading {
  opacity: 0.7;
  cursor: wait;
}

.btn-download-free-big.downloaded {
  background: var(--success-color, #10b981);
  color: var(--text-inverse, #fff);
}

.free-download-success {
  text-align: center;
}

.free-download-success svg:first-child {
  color: #34d399;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
}

.free-download-success h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.free-download-success p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 16px;
}

.free-download-success .btn-download-free-big {
  margin: 0 auto 16px;
}

.check-email-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================================
   PRODUCT CONTENT GRID
   ============================================================ */

.product-content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  margin-bottom: 56px;
}

.product-main-content {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.product-section {
  scroll-margin-top: 100px;
}

.product-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.product-section-title svg {
  color: var(--accent);
}

.product-overview-text {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 15px;
}

.product-overview-text p {
  margin: 0 0 16px;
}

.product-overview-text p:last-child {
  margin-bottom: 0;
}

/* Included list */
.included-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.included-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out, opacity 0.2s ease-out, backdrop-filter 0.2s ease-out;
}

.included-item:hover {
  border-color: rgba(34, 211, 238, 0.3);
  color: var(--text-primary);
}

.included-check {
  color: var(--accent);
  flex-shrink: 0;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: color 0.3s ease-out, background-color 0.3s ease-out, border-color 0.3s ease-out, box-shadow 0.3s ease-out, transform 0.3s ease-out, opacity 0.3s ease-out, backdrop-filter 0.3s ease-out;
}

.feature-card:hover {
  border-color: rgba(34, 211, 238, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(34, 211, 238, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.feature-title {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.feature-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Requirements list */
.req-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.req-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.req-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Changelog timeline */
.changelog-timeline {
  position: relative;
  padding-left: 24px;
}

.changelog-timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}

.changelog-item {
  position: relative;
  padding-bottom: 24px;
}

.changelog-item:last-child {
  padding-bottom: 0;
}

.changelog-dot {
  position: absolute;
  left: -20px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-strong);
}

.changelog-item.latest .changelog-dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.2);
}

.changelog-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.changelog-version {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
}

.changelog-date {
  font-size: 13px;
  color: var(--text-muted);
}

.changelog-latest-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.15);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.changelog-items {
  margin: 0;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.changelog-items li {
  margin-bottom: 4px;
}

/* License table */
.license-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.license-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}

.license-table th,
.license-table td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.license-table th:first-child,
.license-table td:first-child {
  text-align: left;
  color: var(--text-secondary);
}

.license-table th {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-elevated);
  cursor: pointer;
  transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out, opacity 0.2s ease-out, backdrop-filter 0.2s ease-out;
}

.license-table th.license-col.active {
  background: rgba(34, 211, 238, 0.1);
  border-bottom: 2px solid var(--accent);
}

.license-table tr:last-child td {
  border-bottom: none;
}

.license-table td svg {
  color: var(--accent);
  display: inline-flex;
}

.license-col-title {
  font-size: 14px;
}

/* Sidebar */
.product-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 100px;
  align-self: flex-start;
}

.product-sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.sidebar-card-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 6px;
}

.sidebar-card-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.sidebar-related-products {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-related-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out, opacity 0.2s ease-out, backdrop-filter 0.2s ease-out;
}

.sidebar-related-item:hover {
  background: var(--bg-elevated);
}

.sidebar-related-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  background: rgba(34, 211, 238, 0.1);
}

.sidebar-related-icon.cat-violet { color: var(--violet); background: rgba(167, 139, 250, 0.1); }
.sidebar-related-icon.cat-amber { color: var(--amber); background: rgba(251, 191, 36, 0.1); }

.sidebar-related-info {
  min-width: 0;
  flex: 1;
}

.sidebar-related-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.sidebar-related-price {
  font-size: 12px;
  color: var(--text-muted);
}

.sidebar-related-price.free {
  color: var(--accent);
  font-weight: 600;
}

/* Related products section */
.related-products-section {
  margin-top: 0;
}

.related-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ============================================================
   CHECKOUT PAGE
   ============================================================ */

.checkout-page {
  padding: 40px 0 60px;
}

.checkout-title {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 32px;
  text-align: center;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.checkout-payment {
  order: 1;
}

.checkout-summary {
  order: 2;
}

.checkout-payment-card,
.checkout-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.checkout-payment-title,
.checkout-summary-title {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 20px;
}

.checkout-payment-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 24px;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 6px 0 0;
}

.paypal-buttons {
  margin-bottom: 16px;
}

.paypal-btn-gold {
  width: 100%;
  padding: 14px 24px;
  border-radius: 10px;
  background: #FFC439;
  color: #003087;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out, opacity 0.2s ease-out, backdrop-filter 0.2s ease-out;
}

.paypal-btn-gold:hover:not(:disabled) {
  background: #ffd24a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 196, 57, 0.3);
}

.paypal-btn-gold:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.paypal-btn-gold.processing {
  opacity: 0.7;
}

.paypal-logo {
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.5px;
  font-size: 16px;
}

.paypal-btn-label {
  font-weight: 600;
}

.checkout-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
}

.checkout-security-note svg {
  color: var(--accent);
}

/* Summary */
.checkout-product-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.checkout-product-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  background: rgba(34, 211, 238, 0.1);
}

.checkout-product-info {
  flex: 1;
  min-width: 0;
}

.checkout-product-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.checkout-product-license {
  font-size: 12px;
  color: var(--text-muted);
}

.checkout-product-price {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
}

.checkout-divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

.checkout-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.checkout-row.total {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: 12px;
  margin-bottom: 0;
}

.checkout-total-price {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  color: var(--accent);
}

/* ============================================================
   DOWNLOAD SUCCESS PAGE
   ============================================================ */

.download-success-page {
  padding: 60px 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-card {
  max-width: 500px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-title {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.success-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0 0 32px;
}

.success-order-info {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  margin-bottom: 28px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
}

.info-row + .info-row {
  border-top: 1px solid var(--border);
}

.info-label {
  color: var(--text-muted);
}

.info-value {
  color: var(--text-primary);
  font-weight: 500;
  text-align: right;
  max-width: 60%;
  word-break: break-all;
}

.info-value.price {
  color: var(--accent);
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif; letter-spacing: -0.02em;
  font-weight: 700;
  font-size: 16px;
}

.btn-download-success {
  width: 100%;
  padding: 16px 32px;
  border-radius: 12px;
  background: var(--accent);
  color: #0f172a;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out, opacity 0.2s ease-out, backdrop-filter 0.2s ease-out;
  margin-bottom: 20px;
}

.btn-download-success:hover:not(.downloading):not(.downloaded) {
  background: var(--accent-dim, #06b6d4);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 211, 238, 0.3);
}

.btn-download-success.downloading {
  opacity: 0.7;
  cursor: wait;
}

.btn-download-success.downloaded {
  background: var(--success-color, #10b981);
  color: var(--text-inverse, #fff);
}

.success-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin: 8px 0;
}

.success-note svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* Spinner animation for loader icon */
.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============================================================
   STORE RESPONSIVE
   ============================================================ */

@media (max-width: 960px) {
  .product-detail-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .product-gallery-col {
    position: static;
  }
  
  .product-content-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .product-sidebar {
    position: static;
    order: -1;
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .product-sidebar-card {
    flex: 1;
    min-width: 200px;
  }
  
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .checkout-summary {
    order: 1;
  }
  
  .checkout-payment {
    order: 2;
  }
  
  .related-products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .product-detail-title {
    font-size: 28px;
  }
  
  .product-detail-price {
    font-size: 32px;
  }
  
  .license-selector-v2 {
    grid-template-columns: 1fr;
  }
  
  .product-buy-actions {
    flex-direction: column;
  }
  
  .btn-paypal-v2,
  .btn-demo-outline {
    width: 100%;
    justify-content: center;
  }
  
  .included-list {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .store-grid {
    grid-template-columns: 1fr;
  }
  
  .checkout-title {
    font-size: 24px;
  }
  
  .success-card {
    padding: 32px 24px;
  }
  
  .success-title {
    font-size: 22px;
  }
  
  .free-download-form {
    flex-direction: column;
  }
}

/* --- Detail page author line --- */
.detail-author-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.detail-author-line .by-avatar {
  width: 18px;
  height: 18px;
  font-size: 9px;
}

.product-detail-by {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 16px;
}

.product-detail-by .by-avatar {
  width: 22px;
  height: 22px;
  font-size: 11px;
}

.product-detail-by .by-text {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ================================================================
   Coming Soon Workspace (custom / new tools)
   ================================================================ */
.tool-workspace.coming-soon-workspace {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
  background: var(--bg-card);
  border: 2px dashed var(--border);
  border-radius: 16px;
  min-height: 320px;
}

.coming-soon-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 20px;
}

.coming-soon-icon svg {
  width: 32px;
  height: 32px;
}

.coming-soon-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 10px;
}

.coming-soon-desc {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 420px;
  line-height: 1.6;
  margin: 0 0 20px;
}

.coming-soon-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 640px) {
  .tool-workspace.coming-soon-workspace {
    padding: 40px 16px;
    min-height: 240px;
  }
  .coming-soon-title { font-size: 18px; }
  .coming-soon-desc { font-size: 13px; }
}

/* ================================================================
   404 Not Found Section
   ================================================================ */
.not-found-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}

.not-found-inner {
  text-align: center;
  max-width: 480px;
}

.not-found-code {
  font-size: 96px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: -2px;
}

.not-found-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 12px;
}

.not-found-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 28px;
}

@media (max-width: 640px) {
  .not-found-code { font-size: 64px; }
  .not-found-title { font-size: 22px; }
  .not-found-desc { font-size: 14px; }
}

/* ================================================================
   Legal / Static Page Content
   ================================================================ */
.legal-page-content {
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.75;
  font-size: 15px;
  color: var(--text-secondary);
}

.legal-page-content h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
}

.legal-page-content p {
  margin: 0 0 12px;
}

.legal-page-content a {
  color: var(--accent);
  text-decoration: none;
}

.legal-page-content a:hover {
  text-decoration: underline;
}

/* ================================================================
   FAQ Page
   ================================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: var(--border);
}

.faq-item.open {
  border-color: var(--accent);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
}

.faq-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-secondary);
  transition: transform 0.25s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 20px 18px;
}

.faq-answer p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

/* ================================================================
   Contact Page
   ================================================================ */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 12px;
}

.contact-card {
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--bg-card);
  padding: 28px 24px;
  text-align: center;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, backdrop-filter 0.2s ease;
}

.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.contact-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-card-icon svg {
  width: 26px;
  height: 26px;
}

.contact-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
}

.contact-card p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 18px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .contact-cards { grid-template-columns: 1fr; gap: 14px; }
  .legal-page-content { font-size: 14px; }
  .legal-page-content h2 { font-size: 17px; margin-top: 24px; }
  .faq-question { padding: 14px 16px; font-size: 14px; }
}

/* ============================================================
   PAGINATION
   ============================================================ */
.list-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}

.pagination-count {
  font-size: 13px;
  color: var(--text-tertiary);
  order: 2;
}

.pagination-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  order: 1;
}

.pg-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, opacity 0.15s ease, backdrop-filter 0.15s ease;
  font-family: inherit;
}

.pg-btn:hover:not(.active):not(.disabled) {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--bg-elevated);
}

.pg-btn.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  cursor: default;
}

.pg-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pg-prev, .pg-next {
  min-width: 36px;
}

.pg-ellipsis {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 13px;
}

/* Dark mode already handled via CSS vars */

@media (max-width: 640px) {
  .list-pagination {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .pagination-count { order: 2; }
  .pagination-nav { order: 1; }
  .pg-btn {
    min-width: 34px;
    height: 34px;
    font-size: 12px;
    padding: 0 8px;
  }
  .pg-ellipsis { display: none; }
  .pg-btn:not(.pg-prev):not(.pg-next):not(.active) {
    display: none;
  }
  .pg-btn.active {
    min-width: 40px;
    display: inline-flex;
  }
}

/* GitHub badge */
.gh-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out, opacity 0.2s ease-out, backdrop-filter 0.2s ease-out;
  margin-top: 12px;
}
.gh-badge:hover {
  background: var(--surface-tertiary);
  border-color: var(--accent);
}
.gh-stars {
  color: #f59e0b;
  font-weight: 600;
  font-size: 12px;
}

/* Card stars */
.card-footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-stars {
  font-size: 12px;
  font-weight: 600;
  color: #f59e0b;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.prompt-card-stars {
  background: rgba(245, 158, 11, 0.1) !important;
  color: #f59e0b !important;
}
