﻿/* ==========================================================
   上线性能与顺滑度增强引擎 (Smoothness & Performance Optimization)
   ========================================================== */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* 硬件加速与流畅悬停 */
a, button, .media-news-card, .btn-media-primary, .btn-media-secondary, .faq-card, .intro-panel {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* 移动端平滑滚动与防抖 */
.table-wrapper, .table-container, .code-box, pre {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* 媒体图片防溢出与自适应 */
img, svg, video, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 消除点击高亮延迟 */
a, button, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}

/* ==========================================================
   Vercel 风格开发者官网，黑白渐变与代码感 (Vercel Developer Dark Theme)
   ========================================================== */

:root {
  --bg-black: #000000;
  --bg-subtle: #080808;
  --bg-card: #0d0d0d;
  --bg-card-hover: #141414;
  --border-color: #222222;
  --border-hover: #444444;
  --border-active: #666666;
  --text-white: #ededed;
  --text-muted: #888888;
  --text-dim: #555555;
  --accent-cyan: #00dfd8;
  --accent-blue: #0070f3;
  --accent-purple: #7928ca;
  --accent-pink: #ff0080;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Geist", "Helvetica Neue", sans-serif;
  --font-mono: "Geist Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-black);
  color: var(--text-white);
  font-family: var(--font-sans);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(circle at 50% -10%, rgba(120, 119, 198, 0.15) 0%, transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  background-attachment: fixed;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 顶部声明条 */
.top-declaration-bar {
  background: #050505;
  border-bottom: 1px solid var(--border-color);
  padding: 8px 0;
  font-size: 12px;
}

.dec-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dec-badge {
  background: #111111;
  color: #a1a1aa;
  border: 1px solid #333333;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 11px;
}

.dec-text {
  color: var(--text-muted);
  flex: 1;
  margin: 0;
}

/* Header */
.site-header {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.vercel-triangle {
  font-size: 16px;
  color: #ffffff;
  line-height: 1;
}

.mono-text {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}

.main-nav {
  display: flex;
  gap: 20px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.btn-vercel-deploy {
  background: #ffffff;
  color: #000000;
  font-weight: 600;
  font-size: 13px;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
}

.btn-vercel-deploy:hover {
  background: #cccccc;
}

/* Hero Section */
.vercel-hero-section {
  padding: 70px 0 50px;
  text-align: center;
}

.hero-cli-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #111111;
  border: 1px solid var(--border-color);
  padding: 5px 14px;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.cli-pill {
  color: #00dfd8;
  font-weight: 600;
}

.hero-h1 {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.2px;
  color: #ffffff;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-h1 .gradient-white {
  background: linear-gradient(180deg, #ffffff 0%, #888888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 34px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn-vercel-primary {
  background: #ffffff;
  color: #000000;
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  border: 1px solid #ffffff;
}

.btn-vercel-primary:hover {
  background: #e6e6e6;
  border-color: #e6e6e6;
  transform: translateY(-1px);
}

.btn-vercel-secondary {
  background: #000000;
  color: #ededed;
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.btn-vercel-secondary:hover {
  background: #111111;
  border-color: #444444;
  color: #ffffff;
  transform: translateY(-1px);
}

/* 终端代码预览框 (Vercel Terminal Preview) */
.hero-terminal-preview {
  max-width: 760px;
  margin: 0 auto;
  background: #080808;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: left;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.terminal-header {
  background: #0e0e0e;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.t-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2a2a2a;
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.terminal-body {
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: #cccccc;
  line-height: 1.7;
}

.t-prompt {
  color: #00dfd8;
  margin-right: 8px;
}

.t-comment {
  color: var(--text-dim);
}

.t-success {
  color: #10b981;
}

/* Section 通用 */
.section {
  padding: 50px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-badge {
  display: inline-block;
  background: #111111;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 14.5px;
  margin-top: 6px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* 六宫格/功能模块区 */
.grid-six {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.vercel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.vercel-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 12px;
  display: block;
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.card-desc {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}

.card-link {
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.card-link:hover {
  color: var(--accent-cyan);
  gap: 8px;
}

/* 正文介绍区：“教程中心”与“我们提供什么” */
.intro-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.intro-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
}

.panel-title {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.3px;
}

.intro-list {
  list-style: none;
}

.intro-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.intro-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #ededed;
  font-family: var(--font-mono);
}

.intro-list strong {
  color: #ffffff;
}

/* 热门教程表格 (Vercel Developer Table) */
.table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.vercel-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.vercel-table th {
  background: #080808;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12.5px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vercel-table td {
  padding: 15px 18px;
  color: var(--text-muted);
  font-size: 13.5px;
  border-bottom: 1px solid var(--border-color);
}

.vercel-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-white);
}

.badge-tag {
  display: inline-block;
  font-family: var(--font-mono);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 600;
}

.badge-easy {
  background: #111111;
  color: #10b981;
  border: 1px solid #1f3b2d;
}

.badge-medium {
  background: #111111;
  color: #f59e0b;
  border: 1px solid #3d2f14;
}

.badge-hard {
  background: #111111;
  color: #ef4444;
  border: 1px solid #3d1b1b;
}

.tbl-link {
  color: #ededed;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

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

/* FAQ 模块 */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: var(--transition);
}

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

.faq-q {
  font-size: 15.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.faq-q-icon {
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.faq-a {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* 延伸阅读与免责入口卡片 */
.extended-reading {
  background: #080808;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 26px 30px;
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.reading-info h4 {
  font-size: 17px;
  color: #ffffff;
  margin-bottom: 4px;
  font-weight: 700;
}

.reading-info p {
  color: var(--text-muted);
  font-size: 13.5px;
}

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

/* 子页面通用文章样式 */
.page-hero {
  padding: 50px 0 34px;
  background: #050505;
  border-bottom: 1px solid var(--border-color);
}

.page-title {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
  letter-spacing: -0.6px;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 800px;
}

.content-section {
  padding: 40px 0;
}

.article-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 36px;
  color: #d1d5db;
  line-height: 1.8;
}

.article-content h2 {
  font-size: 21px;
  color: #ffffff;
  margin: 30px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  letter-spacing: -0.3px;
}

.article-content h3 {
  font-size: 16.5px;
  color: #e5e7eb;
  margin: 20px 0 10px;
}

.article-content p {
  margin-bottom: 14px;
  font-size: 14.5px;
}

.article-content ul, .article-content ol {
  margin-bottom: 18px;
  padding-left: 22px;
}

.article-content li {
  margin-bottom: 6px;
}

.article-content strong {
  color: #ffffff;
}

.tool-callout {
  background: #080808;
  border-left: 3px solid #ffffff;
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
  color: #e5e7eb;
  font-size: 14px;
}

.code-box {
  background: #050505;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #00dfd8;
  overflow-x: auto;
  margin: 18px 0;
}

/* 页脚 */
.site-footer {
  background: #050505;
  border-top: 1px solid var(--border-color);
  padding: 50px 0 30px;
  margin-top: 50px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-desc {
  color: var(--text-dim);
  font-size: 13px;
  margin: 14px 0;
  line-height: 1.6;
  max-width: 400px;
}

.copyright {
  color: var(--text-dim);
  font-size: 12px;
  font-family: var(--font-mono);
}

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

.link-col h4 {
  color: #ffffff;
  font-size: 13.5px;
  margin-bottom: 14px;
  font-weight: 600;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.link-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 8px;
  transition: var(--transition);
}

.link-col a:hover {
  color: #ffffff;
}

/* 响应式断点 */
@media (max-width: 992px) {
  .grid-six {
    grid-template-columns: repeat(2, 1fr);
  }
  .intro-container {
    grid-template-columns: 1fr;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .hero-h1 {
    font-size: 28px;
  }
  .grid-six {
    grid-template-columns: 1fr;
  }
  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}