* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans',
  'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol'; color: #1f2937; background: #ffffff;
}
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.site-header { position: sticky; top: 0; backdrop-filter: saturate(180%) blur(6px); background: rgba(255,255,255,0.85); border-bottom: 1px solid #eee; }
.site-header .logo { margin: 12px 0; font-size: 20px; }
.nav { display: flex; gap: 16px; align-items: center; }
.nav a { color: #374151; text-decoration: none; padding: 12px 6px; }
.nav a:hover { color: #111827; }

.hero { background: linear-gradient(135deg,#1e293b 0%,#0ea5e9 100%); color: #fff; padding: 80px 0; }
.hero h2 { font-size: 36px; margin: 0 0 12px; }
.hero p { font-size: 18px; opacity: 0.9; }
.cta { margin-top: 24px; }
.btn { display: inline-block; border: 1px solid rgba(255,255,255,0.5); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.btn.primary { background: #0ea5e9; border-color: #0ea5e9; }
.btn + .btn { margin-left: 10px; }

.section { padding: 56px 0; }
.section.alt { background: #f8fafc; }
.section h3 { margin: 0 0 24px; font-size: 24px; }

.grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }
.card { border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; background: #fff; }
.card h4 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: #4b5563; }
#query .card { padding: 12px; }

.steps { margin: 0; padding-left: 18px; }
.steps li { margin: 10px 0; }
.note { color: #6b7280; }

/* API Documentation Styles */
.api-overview { display: flex; flex-direction: column; gap: 32px; }
.api-category { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px; }
.api-category h4 { margin: 0 0 16px; font-size: 20px; color: #1f2937; border-bottom: 2px solid #0ea5e9; padding-bottom: 8px; }
.api-desc { color: #6b7280; margin: 0 0 20px; font-style: italic; }

.api-item { margin-bottom: 20px; padding: 16px; background: #f8fafc; border-radius: 8px; border-left: 4px solid #0ea5e9; }
.api-item h5 { margin: 0 0 8px; font-size: 16px; color: #1f2937; }
.api-item p { margin: 8px 0 0; color: #4b5563; font-size: 14px; }

.api-branches { display: flex; flex-direction: column; gap: 16px; }
.api-branch { border: 1px solid #d1d5db; border-radius: 8px; padding: 16px; background: #fafafa; }
.api-branch h5 { margin: 0 0 12px; font-size: 16px; color: #1f2937; font-weight: 600; }
.api-format { margin: 12px 0; }
.api-format strong { color: #374151; }
.api-branch p { margin: 8px 0 0; color: #4b5563; font-size: 14px; }

.api-details { margin-top: 12px; padding: 12px; background: #f3f4f6; border-radius: 6px; border-left: 3px solid #fbbf24; }
.api-details strong { color: #374151; display: block; margin-bottom: 6px; }
.api-details ul { margin: 6px 0; padding-left: 20px; }
.api-details li { margin: 2px 0; color: #4b5563; font-size: 13px; }

code { 
  display: inline-block; 
  background: #111827; 
  color: #e5e7eb; 
  padding: 4px 6px; 
  border-radius: 4px; 
  margin: 2px 0; 
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono','Courier New', monospace; 
  font-size: 13px;
  word-break: break-all;
  line-height: 1.4;
}

.api-format code {
  background: #1e293b;
  color: #cbd5e1;
  padding: 8px 12px;
  border-radius: 6px;
  display: block;
  margin: 8px 0;
  font-size: 12px;
  overflow-x: auto;
  white-space: nowrap;
}

/* Responsive adjustments for API documentation */
@media (max-width: 768px) {
  .api-format code {
    font-size: 11px;
    padding: 6px 8px;
    white-space: pre-wrap;
    word-break: break-all;
  }
  .api-branch {
    padding: 12px;
  }
  .api-category {
    padding: 16px;
  }
}

.site-footer { border-top: 1px solid #eee; padding: 24px 0; color: #6b7280; }

/* 备案信息样式 */
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.copyright {
  margin-bottom: 0;
}

.beian-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
}

.beian-icon {
  width: 12px;
  height: 12px;
  vertical-align: middle;
  margin-right: 4px;
}

.separator {
  color: #6b7280;
  margin: 0 4px;
}

.beian-info a {
  color: #6b7280;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}

.beian-info a:hover {
  color: #374151;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .beian-info {
    flex-direction: column;
    gap: 4px;
  }
  
  .separator {
    display: none;
  }
}

/* 客户端部分样式 */
.client-image {
  text-align: center;
  margin-top: 32px;
}

.client-image img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
}

@media (max-width: 768px) {
  .client-image {
    margin-top: 24px;
  }
}


/* 新功能高亮样式 */
.api-branch.highlight-new {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 2px solid #0ea5e9;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

.api-branch.highlight-new h5 {
  color: #0369a1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.code-block {
  background: #1e293b;
  color: #e2e8f0;
  padding: 16px;
  border-radius: 8px;
  margin: 12px 0;
  overflow-x: auto;
}

.code-block pre {
  margin: 0;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  line-height: 1.6;
}

.api-branch.highlight-new .api-details {
  background: rgba(255, 255, 255, 0.7);
  padding: 12px;
  border-radius: 6px;
  margin-top: 12px;
}

.api-branch.highlight-new .api-details strong {
  color: #0369a1;
}

.api-branch.highlight-new .api-details ul {
  margin: 8px 0;
  padding-left: 20px;
}

.api-branch.highlight-new .api-details ol {
  margin: 8px 0;
  padding-left: 20px;
}

.api-branch.highlight-new .api-details li {
  margin: 6px 0;
  color: #334155;
}

.api-branch.highlight-new code {
  background: #1e293b;
  color: #22d3ee;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

/* 新特性卡片高亮 */
.card.highlight-feature {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 2px solid #0ea5e9;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

.card.highlight-feature h4 {
  color: #0369a1;
}

/* 免费工具轮播 */
.carousel {
  position: relative;
  max-width: 1080px;
  margin: 24px auto;
}
.carousel img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  user-select: none;
}
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; }
.carousel-btn { position: static; background: linear-gradient(135deg,#0ea5e9,#1e293b); color: #fff; border: none; border-radius: 999px; min-width: 44px; height: 44px; font-size: 18px; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.carousel-btn:hover { filter: brightness(1.05); }
.carousel-dots {
  position: absolute;
  bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(0,0,0,0.1);
  cursor: pointer;
}
.carousel-dot.active { background: #0ea5e9; }
