:root {
  --primary-color: #ff8a3d;
  --primary-light: #ff9e5c;
  --primary-lighter: #ffb27a;
  --primary-dark: #e67a2e;
  --primary-darker: #cc6a25;
  --bg-color: #fffaf5;
  --bg-alt: #fff5eb;
  --bg-elevated: #ffffff;
  --bg-soft: #fff0e0;
  --code: #e1e3e6;
  --text-color: #51402f;
  --text-light: #927a62;
  --text-lighter: #9a8a7a;
  --divider-color: #ffd9b8;
  --divider-light: #ffe8d1;
  --divider-dark: #ffc9a1;
  --warning : rgba(216, 35, 35, 0.76);
  --font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --code-font: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Courier New', monospace;
  --icon-font: "Font Awesome 6 Free", "Font Awesome 6 Brands", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  --table-bg: var(--bg-elevated);
  --table-border: var(--divider-light);
  --table-header-bg: var(--bg-soft);
  --table-header-text: var(--text-color);
  --table-row-hover: var(--bg-alt);
  --table-stripe: var(--bg-soft);
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

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

/* 导航栏样式 */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  background: rgba(255, 250, 245, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--divider-light);
}

.navbar {
  height: 64px;
  display: flex;
  align-items: center;
}

.navbar .wrapper {
  width: 100%;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
}

.brand .logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  font-size: 18px;
  gap: 8px;
}

.logo-image {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.25s;
  padding: 8px 12px;
  border-radius: 6px;
}

.nav-link:hover {
  color: var(--primary-color);
  background: var(--bg-soft);
}

.theme-toggle {
  margin-left: 16px;
}

.theme-switch {
  width: 40px;
  height: 24px;
  border-radius: 12px;
  border: none;
  background: var(--divider-color);
  position: relative;
  cursor: pointer;
  transition: background-color 0.25s;
}

.theme-switch .switch-handle {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  transition: transform 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 16px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: var(--text-light);
  transition: all 0.25s;
}

.social-link:hover {
  color: var(--primary-color);
  background: var(--bg-soft);
}

/* 英雄区域样式 */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero .content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero .heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero .title {
  font-size: 48px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-size: 24px;
  color: var(--text-light);
  font-weight: 500;
}

.hero .actions {
  display: flex;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s;
  border: 1px solid transparent;
  font-family: inherit;
}

.btn-medium {
  padding: 12px 24px;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 138, 61, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-color);
  border-color: var(--divider-color);
}

.btn-secondary:hover {
  background: var(--bg-soft);
  border-color: var(--divider-dark);
  transform: translateY(-2px);
}

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

.hero .image-container {
  position: relative;
  width: 280px;
  height: 280px;
}

.hero .image-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  border-radius: 24px;
  transform: rotate(6deg);
  opacity: 0.1;
}

.hero .image-src {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(255, 138, 61, 0.1);
}

/* 特性区域样式 */
.features-section {
  padding: 80px 0;
  background: var(--bg-alt);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.feature-card {
  text-decoration: none;
  color: inherit;
}

.feature-card .card {
  background: var(--bg-elevated);
  border: 1px solid var(--divider-light);
  border-radius: 12px;
  padding: 32px;
  height: 100%;
  transition: all 0.25s;
}

.feature-card .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(255, 138, 61, 0.1);
  border-color: var(--primary-light);
}

.feature-card .icon {
  font-size: 48px;
  margin-bottom: 16px;
}

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

.feature-card .description {
  color: var(--text-light);
  line-height: 1.6;
}

/* 页脚样式 */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--divider-light);
  padding: 48px 0 24px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

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

.footer-links-list {
  list-style: none;
}

.footer-links-list li {
  margin-bottom: 8px;
}

.footer-link {
  color: var(--text-light);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.25s;
  font-family: inherit;
}

.footer-link:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--divider-color);
}

.copyright {
  color: var(--text-lighter);
  font-size: 14px;
}

/* 内容区域样式 */
.content-section {
  max-width: 100%;
}
.content-section a{
  text-decoration: none;
}
.content-section p {
  margin-bottom: 16px;
  font-size: 16px;
  color: var(--text-light);
}
.content-section p.warning{
  color: var(--warning);
}

.content-section code {
  background-color: var(--code);
  border-radius: 6px;
  font-size: 85%;
  margin: 0;
  padding: 0.2em 0.4em;
}
.content-section pre {
  background: var(--bg-soft);
  padding: 16px;
  border-radius: 8px;
  margin: 16px 0;
  overflow-x: auto;
  border: 1px solid var(--divider-color);

  font-size: 14px;
  line-height: 1.5;
}

.content-section ol {
  margin-left: 20px;
  margin-top: 16px;
}

.content-section li {
  margin-bottom: 8px;
  color: var(--text-light);
}
.content-section table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: var(--table-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(255, 138, 61, 0.05);
  border: 1px solid var(--table-border);
}

.content-section thead {
  background: var(--table-header-bg);
}

.content-section th {
  background: var(--table-header-bg);
  color: var(--table-header-text);
  font-weight: 600;
  padding: 16px 20px;
  text-align: left;
  border-bottom: 2px solid var(--divider-color);
  font-size: 14px;
}

.content-section td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--divider-light);
  color: var(--text-light);
  font-size: 14px;
}

.content-section tbody tr:last-child td {
  border-bottom: none;
}

/* 条纹表格变体 */
.content-section table.striped tbody tr:nth-child(even) {
  background: var(--table-stripe);
}

.content-section table.striped tbody tr:nth-child(even):hover {
  background: var(--table-row-hover);
}

/* 紧凑表格变体 */
.content-section table.compact th,
.content-section table.compact td {
  padding: 10px 16px;
  font-size: 13px;
}

/* 带边框表格变体 */
.content-section table.bordered th,
.content-section table.bordered td {
  border: 1px solid var(--divider-light);
}

.content-section table.bordered th {
  border-bottom: 2px solid var(--divider-color);
}

/* Content-section 标题层级样式 */
.content-section h1 {
  font-size: 32px;
  font-weight: 700;
  margin: 48px 0 24px;
  color: var(--text-color);
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 12px;
  line-height: 1.3;
}

.content-section h2 {
  font-size: 28px;
  font-weight: 600;
  margin: 40px 0 20px;
  color: var(--text-color);
  border-bottom: 1px solid var(--divider-light);
  padding-bottom: 8px;
  line-height: 1.3;
}

.content-section h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 32px 0 16px;
  color: var(--text-color);
  line-height: 1.4;
}

.content-section h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 12px;
  color: var(--text-light);
  line-height: 1.4;
}

.content-section h5 {
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 10px;
  color: var(--text-light);
  line-height: 1.4;
}

.content-section h6 {
  font-size: 14px;
  font-weight: 600;
  margin: 16px 0 8px;
  color: var(--text-lighter);
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 标题链接样式 */
.content-section h1 a,
.content-section h2 a,
.content-section h3 a,
.content-section h4 a,
.content-section h5 a,
.content-section h6 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s;
}

.content-section h1 a:hover,
.content-section h2 a:hover,
.content-section h3 a:hover,
.content-section h4 a:hover,
.content-section h5 a:hover,
.content-section h6 a:hover {
  color: var(--primary-color);
}

/* 响应式表格 */
@media (max-width: 768px) {
  .content-section table {
    font-size: 12px;
  }

  .content-section th,
  .content-section td {
    padding: 10px 12px;
  }

  .content-section table.mobile-stack {
    display: block;
    overflow-x: auto;
  }
}

/* 代码块内的表格样式 */
.content-section pre table {
  background: transparent;
  box-shadow: none;
  border: none;
  margin: 8px 0;
}

.content-section pre th,
.content-section pre td {
  background: transparent;
  border: none;
  padding: 4px 8px;
  color: inherit;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero .title {
    font-size: 36px;
  }

  .hero .subtitle {
    font-size: 20px;
  }

  .nav-menu {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* 图标样式 - 修复字体声明 */
.icon-github::before {
  content: "";

  font-weight: 400;
}

.icon-sun::before {
  content: "";

  font-weight: 400;
}

.icon-moon::before {
  content: "";

  font-weight: 400;
}

.icon-chevron-down::before {
  content: "";
  font-weight: 400;
}

.icon-more-horizontal::before {
  content: "";
  font-weight: 400;
}


/* 为所有链接和按钮明确设置字体继承 */
a, button, .btn, .nav-link, .footer-link {
  font-family: inherit;
}
