:root {
  --primary-color: #4C6FFF;
  --secondary-color: #6B7C93;
  --cta-color: #4C6FFF;
  --background-color: #F6F7F9;
  --text-color: #16181D;
  --text-secondary: #5B6472;
  --card-bg: #FFFFFF;
  --card-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  --card-hover-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Exo', sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

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

/* Navigation */
.top-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #E2E8F0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'Exo', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s ease;
}

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

.nav-dropdown {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
}

.nav-dropdown span {
  cursor: pointer;
  color: var(--text-color);
  transition: color 0.2s ease;
}

.nav-dropdown:hover span {
  color: var(--primary-color);
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 200px;
  box-shadow: var(--card-hover-shadow);
  border-radius: 6px;
  padding: 0.5rem 0;
  top: 100%;
  left: 0;
  z-index: 101;
}

.nav-dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.dropdown-content a:hover {
  background-color: var(--background-color);
}

.nav-divider {
  height: 1px;
  background-color: #E2E8F0;
  margin: 0.5rem 0;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
}

/* Hero Section */
.hero-section {
  background: #F7F5F2;
  color: var(--text-color);
  padding: 72px 20px 56px;
  text-align: center;
  border-bottom: 1px solid #E6EAF0;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  opacity: 0.95;
  font-weight: 400;
}

.hero-desc {
  font-size: 1.125rem;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  opacity: 0.9;
  line-height: 1.7;
}

.cta-button {
  display: inline-block;
  background-color: var(--cta-color);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

/* Blog Intro Section */
.blog-intro {
  background: white;
  padding: 56px 20px 36px;
}

.intro-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.intro-card,
.focus-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--card-shadow);
}

.intro-card h2,
.focus-card h3 {
  margin-bottom: 1rem;
}

.intro-card p,
.focus-card p,
.focus-card li {
  color: var(--text-secondary);
  line-height: 1.8;
}

.focus-list {
  padding-left: 1.25rem;
  display: grid;
  gap: 0.75rem;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.quick-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 1rem;
  border-radius: 9999px;
  background: #EFF6FF;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.quick-link:hover {
  background: #DBEAFE;
}

/* Highlight Section */
.highlight-section {
  padding: 24px 20px 80px;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.highlight-card {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 1.5rem;
}

.highlight-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.highlight-card p {
  color: var(--text-secondary);
}

/* Content Grid Section */
.content-section {
  padding: 80px 20px;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.section-desc {
  text-align: center;
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 3rem;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.content-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.content-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 28px;
}

.card-icon.data {
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
  color: white;
}

.card-icon.ai {
  background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
  color: white;
}

.card-icon.openclaw {
  background: linear-gradient(135deg, #0F172A 0%, #334155 100%);
  color: white;
}

.card-icon.sales {
  background: linear-gradient(135deg, #EA580C 0%, #FB923C 100%);
  color: white;
}

.card-icon.tools {
  background: linear-gradient(135deg, #0D9488 0%, #14B8A6 100%);
  color: white;
}

.card-icon.news {
  background: linear-gradient(135deg, #DB2777 0%, #F472B6 100%);
  color: white;
}

.content-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

.content-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: var(--background-color);
  color: var(--text-secondary);
  font-weight: 500;
}

/* Writing Principles Section */
.writing-section {
  background: #F8FAFC;
  padding: 24px 20px 80px;
}

.writing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.writing-card {
  background: white;
  border-radius: 14px;
  padding: 1.5rem;
  border: 1px solid #E2E8F0;
}

.writing-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
}

.writing-card p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Recent Articles */
.recent-section {
  background-color: white;
  padding: 80px 20px;
}

.recent-list {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.recent-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  background: #FFFFFF;
  align-items: start;
}

.recent-item:last-child {
  border-bottom: 1px solid #E2E8F0;
}

.recent-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  border-radius: 9999px;
  background: #F8FAFC;
  color: #475569;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
}

.recent-content {
  min-width: 0;
}

.recent-item a {
  display: block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.75;
  margin-bottom: 0.7rem;
  word-break: break-word;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.recent-item a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.recent-item p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.85;
}

.view-all {
  text-align: center;
  margin-top: 2rem;
}

.view-all a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

/* CTA Section */
.cta-section {
  background: #EEF2FF;
  color: var(--text-color);
  padding: 60px 20px;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-section .cta-button {
  background: var(--primary-color);
  color: white;
}
.cta-section .cta-button:hover {
  background: #405FE0;
}

/* Footer */
.footer {
  background-color: #16181D;
  color: white;
  padding: 60px 20px 30px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: white;
}

.footer-info p {
  color: #94A3B8;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links h4 {
  color: white;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.footer-links a {
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-copyright {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid #334155;
  text-align: center;
  color: #64748B;
}

/* Responsive */
@media (max-width: 768px) {
  .intro-grid {
    grid-template-columns: 1fr;
  }

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

  .nav-links {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .recent-item {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1.2rem;
  }
  
  .recent-date {
    min-width: auto;
    justify-content: flex-start;
    width: fit-content;
  }

  .recent-item a {
    font-size: 1rem;
    line-height: 1.7;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


:focus-visible {
  outline: 2px solid #4F46E5;
  outline-offset: 2px;
}
button:focus-visible, a:focus-visible {
  outline-offset: 4px;
}
