/* Clawd Bot 品牌样式系统 */
/* 基于 clawd.bot 官方网站 UI 风格 */

:root {
  /* 背景色 */
  --bg-deep: #050810;
  --bg-surface: #0a0f1a;
  --bg-elevated: #111827;
  --bg-card: #0d1117;
  
  /* 品牌色 - 珊瑚红 */
  --coral-bright: #ff4d4d;
  --coral-mid: #e63946;
  --coral-dark: #991b1b;
  --coral-glow: rgba(255, 77, 77, 0.4);
  
  /* 品牌色 - 青色 */
  --cyan-bright: #00e5cc;
  --cyan-mid: #14b8a6;
  --cyan-dark: #0d9488;
  --cyan-glow: rgba(0, 229, 204, 0.4);
  
  /* 文本色 */
  --text-primary: #f0f4ff;
  --text-secondary: #8892b0;
  --text-muted: #5a6480;
  
  /* 边框色 */
  --border-subtle: rgba(136, 146, 176, 0.15);
  --border-accent: rgba(255, 77, 77, 0.3);
  --border-cyan: rgba(0, 229, 204, 0.3);
  
  /* 字体 */
  --font-display: "Clash Display", "Inter", system-ui, sans-serif;
  --font-body: "Satoshi", "Inter", system-ui, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "JetBrains Mono", monospace;
  
  /* 间距 */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* 圆角 */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
  
  /* 阴影 */
  --shadow-glow-coral: 0 0 20px rgba(255, 77, 77, 0.3);
  --shadow-glow-cyan: 0 0 20px rgba(0, 229, 204, 0.3);
  
  /* 过渡 */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;
}

/* 基础样式 */
.clawd-body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
}

/* 容器 */
.clawd-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* 文本样式 */
.clawd-text-gradient {
  background: linear-gradient(135deg, var(--coral-bright), var(--cyan-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.clawd-text-coral {
  color: var(--coral-bright);
}

.clawd-text-cyan {
  color: var(--cyan-bright);
}

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

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

/* 标题样式 */
.clawd-heading-1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.clawd-heading-2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
}

.clawd-heading-3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
}

/* 章节标题前缀 */
.clawd-section-prefix {
  color: var(--coral-bright);
  font-family: var(--font-mono);
  margin-right: var(--space-sm);
}

/* 按钮样式 */
.clawd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  border: none;
}

.clawd-btn-primary {
  background: linear-gradient(135deg, var(--coral-bright), var(--coral-mid));
  color: white;
  box-shadow: var(--shadow-glow-coral);
}

.clawd-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 77, 77, 0.5);
}

.clawd-btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.clawd-btn-secondary:hover {
  border-color: var(--cyan-bright);
  box-shadow: var(--shadow-glow-cyan);
}

.clawd-btn-outline {
  background: transparent;
  color: var(--coral-bright);
  border: 1px solid var(--coral-bright);
}

.clawd-btn-outline:hover {
  background: var(--coral-bright);
  color: white;
}

/* 卡片样式 */
.clawd-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all var(--transition-normal);
}

.clawd-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
}

.clawd-card-elevated {
  background: var(--bg-elevated);
}

/* 代码块样式 */
.clawd-code-block {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  overflow-x: auto;
}

.clawd-code-inline {
  background: var(--bg-elevated);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.875em;
}

/* 图标容器 */
.clawd-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.clawd-icon-box-coral {
  border-color: var(--border-accent);
  color: var(--coral-bright);
}

.clawd-icon-box-cyan {
  border-color: var(--border-cyan);
  color: var(--cyan-bright);
}

/* 链接样式 */
.clawd-link {
  color: var(--coral-bright);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.clawd-link:hover {
  color: var(--cyan-bright);
}

/* 分隔线 */
.clawd-divider {
  height: 1px;
  background: var(--border-subtle);
  border: none;
  margin: var(--space-2xl) 0;
}

/* 背景效果 */
.clawd-bg-gradient {
  background: radial-gradient(ellipse at top, var(--bg-surface) 0%, var(--bg-deep) 70%);
}

.clawd-bg-glow {
  position: relative;
}

.clawd-bg-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 300px;
  background: radial-gradient(ellipse, var(--coral-glow) 0%, transparent 70%);
  opacity: 0.3;
  pointer-events: none;
}

/* 响应式工具类 */
@media (max-width: 768px) {
  .clawd-container {
    padding: 0 var(--space-md);
  }
  
  .clawd-card {
    padding: var(--space-lg);
  }
}

/* 动画 */
@keyframes clawd-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes clawd-glow-pulse {
  0%, 100% {
    box-shadow: 0 0 20px var(--coral-glow);
  }
  50% {
    box-shadow: 0 0 40px var(--coral-glow);
  }
}

.clawd-animate-fade-in {
  animation: clawd-fade-in 0.6s ease forwards;
}

.clawd-animate-glow {
  animation: clawd-glow-pulse 2s ease-in-out infinite;
}

/* 网格布局 */
.clawd-grid {
  display: grid;
  gap: var(--space-lg);
}

.clawd-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.clawd-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.clawd-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .clawd-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .clawd-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .clawd-grid-4,
  .clawd-grid-3,
  .clawd-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Flex 布局 */
.clawd-flex {
  display: flex;
}

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

.clawd-flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.clawd-flex-col {
  flex-direction: column;
}

.clawd-gap-sm {
  gap: var(--space-sm);
}

.clawd-gap-md {
  gap: var(--space-md);
}

.clawd-gap-lg {
  gap: var(--space-lg);
}

.clawd-gap-xl {
  gap: var(--space-xl);
}

