/*
Theme Name: AskAI AEO Theme
Theme URI: https://askai-tools.com
Description: Custom theme optimized for AEO and SEO
Version: 1.0
Author: AskAI Tools
Text Domain: askai-aeo
*/

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --border: #e5e7eb;
  --radius: 8px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans TC', 'Noto Sans SC', sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.content-wrap { max-width: 800px; margin: 0 auto; padding: 0 20px; }

/* Quick Answer Box - AEO 核心元素 */
.quick-answer {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-left: 4px solid var(--primary);
  padding: 20px 24px;
  margin: 0 0 32px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.1em;
  line-height: 1.6;
}

.quick-answer strong { color: var(--primary-dark); }

/* Header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title a {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  margin-left: 24px;
  font-weight: 500;
  transition: color 0.2s;
}

.main-nav a:hover { color: var(--primary); }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0;
}

.main-nav li { display: inline; }

/* Article */
article { padding: 40px 0; }
article h1 { font-size: 2em; margin-bottom: 16px; line-height: 1.3; }
article h2 { font-size: 1.5em; margin: 32px 0 16px; }
article h3 { font-size: 1.2em; margin: 24px 0 12px; }
article p { margin-bottom: 16px; }
article img { max-width: 100%; height: auto; border-radius: var(--radius); }
article ul, article ol { margin: 0 0 16px 24px; }
article li { margin-bottom: 8px; }

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

/* Code */
article code {
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

article pre {
  background: #1f2937;
  color: #e5e7eb;
  padding: 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 16px;
}

article pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* FAQ Section - AEO */
.faq-section {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 32px;
  margin: 40px 0;
}

.faq-section h2 { margin-top: 0; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.faq-item:last-child { border-bottom: none; }
.faq-item h3 { font-size: 1.1em; margin-bottom: 8px; color: var(--primary-dark); }
.faq-item p { color: var(--text-light); margin-bottom: 0; }

/* Footer */
.site-footer {
  background: #111827;
  color: #9ca3af;
  padding: 40px 0;
  margin-top: 60px;
  text-align: center;
}

.site-footer a { color: #60a5fa; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { margin-bottom: 8px; }

/* Post Meta */
.post-meta { color: var(--text-light); font-size: 0.9em; }

/* Pagination */
.nav-links { display: flex; gap: 8px; justify-content: center; }
.nav-links a, .nav-links span {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
}
.nav-links .current { background: var(--primary); color: white; border-color: var(--primary); }

/* Responsive */
@media (max-width: 768px) {
  article h1 { font-size: 1.5em; }
  .quick-answer { padding: 16px; font-size: 1em; }
  .faq-section { padding: 20px; }
  .site-header .container { flex-direction: column; gap: 12px; }
  .main-nav a { margin-left: 16px; }
  .main-nav a:first-child { margin-left: 0; }
}
