: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;
  --text-color: #51402f;
  --text-light: #927a62;
  --text-lighter: #9a8a7a;
  --divider-color: #ffd9b8;
  --divider-light: #ffe8d1;
  --divider-dark: #ffc9a1;
  --code: #e1e3e6;
  --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);
  --success: rgba(35, 216, 89, 0.76);
}

* {
  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.active {
  color: var(--primary-color);
  background: var(--bg-soft);
}
.nav-link:hover {
  color: var(--primary-color);
  background: var(--bg-soft);
}

/* 内容区域样式 */
.content-wrapper {
  min-height: calc(100vh - 200px);
  padding: 40px 0;
}

.content-section {
  max-width: 100%;
}

.content-section a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.25s;
}

.content-section a:hover {
  color: var(--primary-dark);
}

.content-section p {
  margin-bottom: 16px;
  font-size: 16px;
  color: var(--text-light);
}

.content-section p.warning {
  color: var(--warning);
}

.content-section p.success {
  color: var(--success);
}

.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 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 标题层级样式 */
.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;
}

/* 方法卡片样式 */
.methods-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 32px 0;
}

.method-card {
  background: var(--bg-elevated);
  border: 1px solid var(--divider-light);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}


.method-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.method-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  font-weight: 600;
  margin-right: 16px;
  font-size: 20px;
}

.method-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-color);
}

.method-description {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 24px;
}

.method-content pre {
  margin: 16px 0;
}

.method-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
}

.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;
  cursor: pointer;
}

.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);
}

/* 页脚样式 */
.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;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .method-actions {
    flex-direction: column;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
