/* Agent和MCP专页样式 */

/* 全局变量 */
:root {
  --color-primary: #1d1d1f;
  --color-secondary: #86868b;
  --color-accent: #0071e3;
  --color-accent-hover: #0077ed;
  --color-background: #ffffff;
  --color-surface: #fbfbfd;
  --color-border: #d2d2d7;
  --color-text: #1d1d1f;
  --color-text-secondary: #86868b;
  --color-code-bg: #1F2937;

  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
}

/* 全局重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  line-height: 1.47059;
  color: var(--color-text);
  background: #ffffff;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 链接 */
a {
  text-decoration: none;
  color: inherit;
}

/* 背景装饰 */
.bg-gradient {
  display: none;
}

.bg-grid {
  display: none;
}

/* 容器 */
.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
}

/* 作者介绍区域 */
.author-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 48px 0;
  margin-bottom: 60px;
}

.author-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}

.author-info {
  flex: 1;
}

.site-title {
  font-size: 32px;
  font-weight: 600;
  margin: 0 0 20px 0;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.author-intro {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.author-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  line-height: 1.3;
}

.author-desc {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* 二维码区域 */
.author-qrcodes {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.qrcode-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.qrcode-box {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

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

.qrcode-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ed 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #86868b;
}

.qrcode-label {
  font-size: 12px;
  color: var(--color-text-secondary);
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  line-height: 1.3;
}

/* 导航链接 */
.nav {
  display: flex;
  gap: 32px;
}

.nav-link {
  text-decoration: none;
  color: var(--color-text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--color-text);
}

.nav-link.active {
  color: var(--color-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
}

/* 面包屑导航 */
.breadcrumb {
  padding: 16px 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  list-style: none;
  font-size: 14px;
}

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

.breadcrumb-item a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.breadcrumb-item.active {
  color: var(--color-text);
}

.breadcrumb-separator {
  margin: 0 12px;
  color: var(--color-text-secondary);
}

/* 主内容区 */
.main-content {
  padding: 0 0 100px;
}

/* 页面头部 */
.page-header {
  text-align: left;
  margin-bottom: 80px;
  padding-bottom: 0;
  max-width: 692px;
}

.page-title {
  font-size: 56px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 16px;
  letter-spacing: -0.005em;
  line-height: 1.07143;
}

.page-subtitle {
  font-size: 21px;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.381;
  font-weight: 400;
}

/* 内容分区 */
.content-section {
  margin-bottom: 120px;
}

.content-section:last-of-type {
  margin-bottom: 80px;
}

.section-title {
  font-size: 40px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 14px;
  letter-spacing: -0.005em;
  line-height: 1.1;
}

.section-desc {
  font-size: 17px;
  color: var(--color-text-secondary);
  margin-bottom: 56px;
  line-height: 1.47059;
  font-weight: 400;
}

/* 博客列表样式 */
.blog-list {
  max-width: 100%;
  margin: 0;
}

.blog-item {
  background: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 40px 0;
  transition: opacity 0.3s ease;
}

.blog-item:first-child {
  padding-top: 0;
}

.blog-item:last-child {
  border-bottom: none;
}

.blog-item:hover {
  opacity: 0.75;
}

.blog-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.blog-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
  width: 100%;
}

.blog-title a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-title a:hover {
  color: var(--color-accent);
}

.blog-description {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0;
  font-weight: 400;
}

.blog-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 4px;
}

.blog-link {
  color: var(--color-accent);
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.blog-link:hover {
  text-decoration: underline;
}

/* 案例/工具网格 (保留用于MCP页面) */
.cases-grid,
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 32px;
  margin-bottom: 60px;
}

/* 卡片样式 (保留用于MCP页面) */
.case-card,
.tool-card {
  position: relative;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.3s ease;
}

.case-card:hover,
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-card);
  opacity: 0.8;
  transition: height 0.3s ease;
}

.card-gradient.mcp {
  background: var(--gradient-mcp);
}

.case-card:hover .card-gradient,
.tool-card:hover .card-gradient {
  height: 4px;
}

.card-content {
  padding: 32px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-sm);
}

.card-badge.mcp {
  background: var(--gradient-accent);
  color: white;
}

.card-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: #10B981;
  color: white;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.card-status.highlight {
  background: #F59E0B;
}

.card-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 12px;
}

.card-description {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* 特性列表 */
.card-features {
  margin-bottom: 24px;
}

.features-title,
.usage-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 12px;
}

.features-list {
  list-style: none;
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.features-list li {
  padding-left: 8px;
  margin-bottom: 8px;
}

/* 代码块 */
.card-usage {
  margin-bottom: 24px;
}

.code-block {
  background: var(--color-code-bg);
  border-radius: var(--radius-md);
  padding: 16px;
  overflow-x: auto;
}

.code-block code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #E5E7EB;
  line-height: 1.5;
  white-space: pre;
}

/* 技术标签 */
.card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

/* 卡片底部 */
.card-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

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

.link-arrow {
  transition: transform 0.2s ease;
}

.card-link:hover .link-arrow {
  transform: translateX(3px);
}

/* 学习路径 */
.learning-path {
  padding: 60px 0;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  margin-bottom: 60px;
}

.path-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.step-item {
  flex: 1;
  text-align: center;
  padding: 0 20px;
}

.step-number {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  background: var(--gradient-accent);
  color: white;
  font-size: 20px;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 16px;
}

.step-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 13px;
  color: var(--color-text-secondary);
}

.step-arrow {
  color: var(--color-text-secondary);
  font-size: 24px;
  flex-shrink: 0;
}

/* 配置指南 */
.config-guide {
  padding: 60px 0;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.guide-step {
  background: var(--color-background);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

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

.guide-step .step-number {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  background: var(--gradient-accent);
  color: white;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.guide-step .step-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.step-content {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.step-content code {
  padding: 2px 6px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
}

/* 页脚 */
.footer {
  background: #f5f5f7;
  border-top: 1px solid #d2d2d7;
  padding: 48px 0;
  margin-top: 80px;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-qrcode-wrapper {
  text-align: center;
  padding: 32px;
  background: #ffffff;
  border-radius: 18px;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.footer-qrcode-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.footer-qrcode-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-qrcode {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  margin-bottom: 16px;
}

.footer-qrcode-desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  max-width: 200px;
  line-height: 1.42857;
  font-weight: 400;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .author-header {
    padding: 32px 0;
    margin-bottom: 40px;
  }

  .author-content {
    flex-direction: column;
    gap: 32px;
  }

  .site-title {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .author-name {
    font-size: 18px;
  }

  .author-desc {
    font-size: 14px;
  }

  .author-qrcodes {
    gap: 20px;
    width: 100%;
    justify-content: flex-start;
  }

  .qrcode-box {
    width: 80px;
    height: 80px;
  }

  .qrcode-label {
    font-size: 11px;
  }

  .main-content {
    padding: 0 0 60px;
  }

  .blog-item {
    padding: 32px 0;
  }

  .blog-title {
    font-size: 20px;
    line-height: 1.3;
  }

  .blog-description {
    font-size: 15px;
    line-height: 1.5;
  }

  .blog-link {
    font-size: 14px;
  }
}