/* 立行天下GEO 帮助文档 - 共享样式 */
:root {
  --primary: #1a2a6c;
  --primary-light: #2c3e8f;
  --accent: #33c0f0;
  --accent-light: #e6f7fd;
  --gold: #d4af37;
  --bg: #f8f9fc;
  --sidebar-bg: #1a1f36;
  --sidebar-text: #b8c0d4;
  --sidebar-active: #ffffff;
  --sidebar-hover: #252b44;
  --text: #2c3e50;
  --text-light: #6b7c93;
  --border: #e8ecf1;
  --card-bg: #ffffff;
  --success: #27ae60;
  --warning: #f39c12;
  --danger: #e74c3c;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --max-width: 1200px;
  --sidebar-width: 260px;
  --header-height: 56px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Microsoft YaHei', 'PingFang SC', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.docs-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-height);
  background: var(--primary);
  display: flex; align-items: center; padding: 0 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.docs-header .logo {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-size: 16px; font-weight: 700;
  text-decoration: none;
}
.docs-header .logo span { color: var(--accent); }
.docs-header .top-nav {
  display: flex; gap: 4px; margin-left: 40px;
}
.docs-header .top-nav a {
  display: block; padding: 6px 14px;
  color: rgba(255,255,255,0.75);
  font-size: 14px; border-radius: 6px;
  transition: all 0.2s;
}
.docs-header .top-nav a:hover,
.docs-header .top-nav a.active {
  background: rgba(255,255,255,0.12);
  color: #fff; text-decoration: none;
}

/* Layout */
.docs-layout {
  display: flex; margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
}

/* Sidebar */
.docs-sidebar {
  width: var(--sidebar-width); min-width: var(--sidebar-width);
  background: var(--sidebar-bg); padding: 20px 0;
  position: sticky; top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
}
.sidebar-section {
  margin-bottom: 8px;
}
.sidebar-section-title {
  padding: 12px 24px 6px;
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.sidebar-section a {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 24px; font-size: 14px;
  color: var(--sidebar-text);
  transition: all 0.15s;
  border-left: 3px solid transparent;
}
.sidebar-section a:hover {
  background: var(--sidebar-hover);
  color: #fff; text-decoration: none;
}
.sidebar-section a.active {
  background: rgba(51,192,240,0.12);
  color: var(--accent);
  border-left-color: var(--accent);
}
.sidebar-section a .bi { font-size: 15px; width: 20px; text-align: center; }

/* Main Content */
.docs-main {
  flex: 1; padding: 32px 48px; max-width: 860px;
}
.docs-main h1 {
  font-size: 30px; font-weight: 700; color: var(--primary);
  margin-bottom: 8px; padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}
.docs-main h2 {
  font-size: 22px; font-weight: 600; color: var(--primary);
  margin: 36px 0 16px; padding-top: 8px;
}
.docs-main h3 {
  font-size: 17px; font-weight: 600; color: var(--text);
  margin: 24px 0 12px;
}
.docs-main p { margin: 12px 0; color: var(--text); }
.docs-main ul, .docs-main ol { margin: 12px 0 12px 20px; }
.docs-main li { margin: 6px 0; }
.docs-main blockquote {
  margin: 16px 0; padding: 12px 20px;
  background: #fff8e6; border-left: 4px solid var(--warning);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14px; color: #856404;
}
.docs-main blockquote.tip {
  background: var(--accent-light);
  border-left-color: var(--accent); color: #0c5460;
}
.docs-main blockquote.important {
  background: #ffe8e8; border-left-color: var(--danger); color: #721c24;
}

/* Cards */
.docs-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px;
  margin: 16px 0; box-shadow: var(--shadow);
}
.docs-card h4 { font-size: 15px; color: var(--primary); margin-bottom: 10px; }
.docs-card p { margin: 6px 0; font-size: 14px; }

/* Feature grid */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px; margin: 20px 0;
}

/* Steps */
.steps { counter-reset: step; list-style: none; margin: 20px 0; }
.steps li {
  counter-increment: step; position: relative;
  padding: 16px 20px 16px 56px; margin: 12px 0;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 16px; top: 16px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.steps li h4 { font-size: 15px; margin-bottom: 6px; color: var(--primary); }

/* Tables */
.docs-table {
  width: 100%; border-collapse: collapse;
  margin: 16px 0; font-size: 14px;
  box-shadow: var(--shadow); border-radius: var(--radius);
  overflow: hidden;
}
.docs-table th {
  background: var(--primary); color: #fff;
  padding: 10px 16px; text-align: left; font-weight: 600;
}
.docs-table td {
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  background: var(--card-bg);
}
.docs-table tr:last-child td { border-bottom: none; }
.docs-table tr:hover td { background: #f0f4ff; }

/* Code */
code {
  background: #f0f2f5; padding: 2px 8px;
  border-radius: 4px; font-size: 13px;
  color: var(--danger);
}
pre {
  background: #1e2233; color: #e0e4f0;
  padding: 16px 20px; border-radius: var(--radius);
  overflow-x: auto; font-size: 13px; line-height: 1.6;
  margin: 16px 0;
}

/* Footer nav */
.page-nav {
  display: flex; justify-content: space-between;
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--border);
}
.page-nav a {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 16px; background: var(--card-bg);
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 14px; color: var(--primary);
  transition: all 0.2s;
}
.page-nav a:hover { border-color: var(--accent); text-decoration: none; }

.docs-footer {
  padding: 20px 48px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-light);
  display: flex; justify-content: space-between;
  align-items: center;
}

/* Product intro page special styles */
.hero-badge {
  display: inline-block; padding: 4px 14px;
  background: rgba(51,192,240,0.12); color: var(--accent);
  border-radius: 20px; font-size: 13px; font-weight: 600;
  margin-bottom: 12px;
}
.hero-title { font-size: 32px; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.hero-subtitle { font-size: 16px; color: var(--text-light); margin-bottom: 24px; }

/* Badge */
.badge {
  display: inline-block; padding: 2px 10px;
  border-radius: 12px; font-size: 12px; font-weight: 600;
}
.badge-success { background: #e6f9ed; color: var(--success); }
.badge-warning { background: #fff8e6; color: var(--warning); }
.badge-info { background: var(--accent-light); color: #0c5460; }

/* Pricing table on product page */
.pricing-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin: 20px 0;
}
.pricing-card {
  background: var(--card-bg); border: 2px solid var(--border);
  border-radius: var(--radius); padding: 24px 16px;
  text-align: center; transition: all 0.2s;
}
.pricing-card:hover { border-color: var(--accent); box-shadow: 0 4px 20px rgba(51,192,240,0.15); }
.pricing-card.featured { border-color: var(--accent); background: linear-gradient(135deg, #f0faff, #fff); }
.pricing-card .plan-name { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.pricing-card .plan-price { font-size: 28px; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.pricing-card .plan-price small { font-size: 14px; font-weight: 400; color: var(--text-light); }
.pricing-card .plan-period { font-size: 13px; color: var(--text-light); margin-bottom: 16px; }
.pricing-card .plan-tag { display: inline-block; padding: 2px 12px; background: var(--accent); color: #fff; border-radius: 12px; font-size: 12px; margin-bottom: 12px; }

/* Comparison table */
.compare-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.compare-table th, .compare-table td { padding: 12px 16px; border: 1px solid var(--border); }
.compare-table th { background: var(--primary); color: #fff; text-align: center; }
.compare-table th:first-child { text-align: left; }
.compare-table td { text-align: center; }
.compare-table td:first-child { text-align: left; font-weight: 600; }
.compare-table tr:nth-child(even) td { background: #f8f9fc; }

/* Responsive */
@media (max-width: 768px) {
  .docs-sidebar { display: none; }
  .docs-main { padding: 24px 16px; }
  .docs-header .top-nav { display: none; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
