/*
  TokenFish 静态站样式表
  原创视觉：深海配色（墨蓝 + 荧光青），信息架构参考同类 agent-native
  产品的常见分区（首屏一句话定位 + 能力卡片 + 安装引导 + 货架），
  但配色、字体、布局、文案均为原创，不含任何第三方站点的文本或资源。
*/

:root {
  --tf-bg: #06111f;
  --tf-bg-elevated: #0b1c30;
  --tf-bg-card: #0f2439;
  --tf-border: rgba(120, 200, 220, 0.16);
  --tf-border-strong: rgba(120, 200, 220, 0.32);
  --tf-text: #eaf6fb;
  --tf-text-dim: #9fb7c6;
  --tf-text-faint: #6d8494;
  --tf-accent: #3ee6c8;
  --tf-accent-strong: #17c9ae;
  --tf-accent-soft: rgba(62, 230, 200, 0.14);
  --tf-warn: #f5b95c;
  --tf-radius-lg: 20px;
  --tf-radius-md: 14px;
  --tf-radius-sm: 9px;
  --tf-max-width: 960px;
  --tf-shadow: 0 20px 60px -30px rgba(0, 0, 0, 0.6);
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: radial-gradient(120% 140% at 50% -10%, #0d2338 0%, var(--tf-bg) 55%);
  color: var(--tf-text);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.tf-shell {
  max-width: var(--tf-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* 顶部导航 */
.tf-nav {
  border-bottom: 1px solid var(--tf-border);
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(6, 17, 31, 0.86);
  backdrop-filter: blur(10px);
}

.tf-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--tf-max-width);
  margin: 0 auto;
}

.tf-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.tf-logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--tf-accent), #1f7f9c);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #06111f;
  flex: none;
}

.tf-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: var(--tf-text-dim);
}

.tf-nav-links a:hover {
  color: var(--tf-text);
}

/* 首屏 */
.tf-hero {
  padding: 64px 0 40px;
  text-align: center;
}

.tf-hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.35;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.tf-hero .tf-accent-text {
  color: var(--tf-accent);
}

.tf-hero p.tf-sub {
  color: var(--tf-text-dim);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto 28px;
}

/* 按钮 */
.tf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.tf-btn:active {
  transform: scale(0.97);
}

.tf-btn-primary {
  background: linear-gradient(135deg, var(--tf-accent), var(--tf-accent-strong));
  color: #04231d;
}

.tf-btn-primary:hover {
  filter: brightness(1.06);
}

.tf-btn-secondary {
  background: transparent;
  border-color: var(--tf-border-strong);
  color: var(--tf-text);
}

.tf-btn-secondary:hover {
  border-color: var(--tf-accent);
  color: var(--tf-accent);
}

.tf-btn-copied {
  background: var(--tf-accent-soft) !important;
  color: var(--tf-accent) !important;
  border-color: var(--tf-accent) !important;
}

.tf-btn[disabled] {
  opacity: 0.6;
  cursor: default;
}

.tf-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tf-hint {
  font-size: 13px;
  color: var(--tf-text-faint);
}

/* 支持的 AI 工具 */
.tf-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.tf-tools li {
  border: 1px solid var(--tf-border);
  background: var(--tf-bg-card);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  color: var(--tf-text-dim);
}

/* 分区标题 */
.tf-section {
  padding: 40px 0;
}

.tf-section-head {
  text-align: center;
  margin-bottom: 28px;
}

.tf-section-head h2 {
  font-size: 24px;
  margin: 0 0 8px;
  font-weight: 700;
}

.tf-section-head p {
  color: var(--tf-text-dim);
  font-size: 14px;
  margin: 0;
}

/* 能力卡片 */
.tf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.tf-card {
  background: var(--tf-bg-card);
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius-lg);
  padding: 22px;
  box-shadow: var(--tf-shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tf-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--tf-accent-soft);
  color: var(--tf-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.tf-card h3 {
  margin: 0;
  font-size: 17px;
}

.tf-card p {
  margin: 0;
  color: var(--tf-text-dim);
  font-size: 13.5px;
}

.tf-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(245, 185, 92, 0.14);
  color: var(--tf-warn);
  border: 1px solid rgba(245, 185, 92, 0.35);
}

.tf-card.tf-card-soon {
  opacity: 0.72;
}

/* 货架 / Skill 列表 */
.tf-shelf {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.tf-shelf-card {
  background: var(--tf-bg-card);
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tf-shelf-card h3 {
  margin: 0;
  font-size: 18px;
}

.tf-shelf-card p {
  margin: 0;
  color: var(--tf-text-dim);
  font-size: 14px;
}

.tf-tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tf-tag {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--tf-bg-elevated);
  border: 1px solid var(--tf-border);
  color: var(--tf-text-dim);
}

/* Skill 详情页 */
.tf-detail-head {
  padding: 48px 0 24px;
}

.tf-breadcrumb {
  font-size: 13px;
  color: var(--tf-text-faint);
  margin-bottom: 14px;
}

.tf-breadcrumb a:hover {
  color: var(--tf-accent);
}

.tf-detail-head h1 {
  font-size: clamp(24px, 4vw, 32px);
  margin: 0 0 12px;
}

.tf-detail-head p.tf-lede {
  color: var(--tf-text-dim);
  font-size: 15px;
  max-width: 620px;
}

.tf-panel {
  background: var(--tf-bg-card);
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.tf-panel h2 {
  font-size: 16px;
  margin: 0 0 12px;
  color: var(--tf-text);
}

.tf-example {
  background: var(--tf-bg-elevated);
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius-md);
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--tf-text-dim);
  margin: 0 0 14px;
}

.tf-example code {
  color: var(--tf-accent);
}

.tf-price-note {
  font-size: 13px;
  color: var(--tf-text-faint);
  margin-top: 10px;
}

.tf-list {
  margin: 0;
  padding-left: 18px;
  color: var(--tf-text-dim);
  font-size: 14px;
}

.tf-list li {
  margin-bottom: 6px;
}

/* Footer */
.tf-footer {
  border-top: 1px solid var(--tf-border);
  padding: 28px 0 60px;
  margin-top: 20px;
  text-align: center;
  color: var(--tf-text-faint);
  font-size: 13px;
}

.tf-footer a {
  color: var(--tf-text-dim);
}

.tf-footer a:hover {
  color: var(--tf-accent);
}

.tf-footer-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

/* console 占位页 */
.tf-placeholder {
  text-align: center;
  padding: 80px 20px;
}

.tf-placeholder h1 {
  font-size: 26px;
  margin-bottom: 12px;
}

.tf-placeholder p {
  color: var(--tf-text-dim);
  max-width: 460px;
  margin: 0 auto 8px;
}

.tf-placeholder .tf-list {
  display: inline-block;
  text-align: left;
  margin-top: 18px;
}

@media (max-width: 600px) {
  .tf-hero {
    padding: 44px 0 28px;
  }

  .tf-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .tf-btn {
    width: 100%;
  }

  .tf-nav-links {
    gap: 14px;
    font-size: 13px;
  }
}
