
:root {
  --primary: #ea580c;
  --primary-dark: #c2410c;
  --primary-light: #ffedd5;
  --accent: #3b82f6;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.65;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--primary-dark); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; color: var(--text-main); }
.brand-badge {
  background: var(--primary);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.nav-menu { display: flex; gap: 18px; font-weight: 500; align-items: center; flex-wrap: wrap; }
.nav-menu a { color: var(--text-main); font-size: 0.95rem; }
.nav-menu a:hover, .nav-menu a.active { color: var(--primary); font-weight: 600; }

.hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, #ffffff 100%);
  padding: 55px 0;
  border-bottom: 1px solid var(--border);
}
.hero-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 15px; color: var(--text-main); line-height: 1.2; }
.hero-subtitle { font-size: 1.15rem; color: var(--text-muted); max-width: 800px; margin-bottom: 25px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 7px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
  transition: all 0.2s ease;
}
.badge:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}
.badge-primary { background: var(--primary); color: #ffffff; border-color: var(--primary); }

.section { padding: 50px 0; }
.section-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 25px; color: var(--text-main); }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-img-wrap { position: relative; width: 100%; height: 215px; overflow: hidden; background: #e2e8f0; }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.card:hover .card-img { transform: scale(1.04); }
.card-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; line-height: 1.4; color: var(--text-main); }
.card-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; flex: 1; line-height: 1.55; }
.card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 12px; }

.article-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; margin: 40px 0; }
.article-main { background: #ffffff; border: 1px solid var(--border); border-radius: 12px; padding: 40px; box-shadow: var(--shadow-sm); }
.breadcrumbs { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--primary); }
.article-header h1 { font-size: 2.2rem; font-weight: 800; line-height: 1.25; margin-bottom: 15px; color: var(--text-main); }
.article-author-bar { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.author-avatar-sm { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.author-info-sm h4 { font-size: 0.95rem; margin: 0; }
.author-info-sm p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }
.article-cover { width: 100%; height: 420px; object-fit: cover; border-radius: 8px; margin-bottom: 30px; }

.article-content { font-size: 1.05rem; color: #334155; line-height: 1.8; }
.article-content h2 { font-size: 1.5rem; font-weight: 700; margin: 35px 0 15px; color: var(--text-main); border-bottom: 2px solid var(--primary-light); padding-bottom: 8px; }
.article-content h3 { font-size: 1.2rem; font-weight: 600; margin: 25px 0 10px; color: var(--text-main); }
.article-content p { margin-bottom: 20px; }
.article-content ul, .article-content ol { margin-bottom: 20px; padding-left: 25px; }
.article-content li { margin-bottom: 8px; }

.callout { padding: 20px; border-radius: 8px; margin: 25px 0; }
.callout-summary { background: #f0fdf4; border-left: 4px solid var(--primary); }
.callout-tip { background: #eff6ff; border-left: 4px solid #3b82f6; }
.callout-warning { background: #fffbeb; border-left: 4px solid #f59e0b; }

.data-table { width: 100%; border-collapse: collapse; margin: 25px 0; font-size: 0.95rem; }
.data-table th, .data-table td { padding: 12px 16px; border: 1px solid var(--border); text-align: left; }
.data-table th { background: #f8fafc; font-weight: 700; color: var(--text-main); }
.data-table tr:nth-child(even) { background: #f8fafc; }

.toc-box { background: #f8fafc; border: 1px solid var(--border); border-radius: 8px; padding: 20px; margin: 25px 0; }
.toc-title { font-weight: 700; margin-bottom: 10px; }
.toc-list { list-style: none; padding-left: 0; }
.toc-list li { margin-bottom: 6px; }

.faq-box { margin: 25px 0; }
.faq-item { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 12px; overflow: hidden; }
.faq-question { background: #f8fafc; padding: 15px 20px; font-weight: 700; font-size: 1rem; }
.faq-answer { padding: 15px 20px; background: #ffffff; border-top: 1px solid var(--border); color: #475569; }

.author-box { display: flex; gap: 20px; background: var(--primary-light); padding: 25px; border-radius: 12px; margin: 40px 0; align-items: center; }
.author-avatar-lg { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.author-box-body h3 { font-size: 1.1rem; margin-bottom: 5px; }
.author-box-body p { font-size: 0.9rem; color: #334155; margin: 0; }

.sidebar { display: flex; flex-direction: column; gap: 30px; }
.sidebar-widget { background: #ffffff; border: 1px solid var(--border); border-radius: 12px; padding: 25px; box-shadow: var(--shadow-sm); }
.widget-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 15px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }

.cat-list { list-style: none; }
.cat-list li { margin-bottom: 10px; }
.cat-list a { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 6px; background: #f8fafc; border: 1px solid var(--border); font-weight: 500; font-size: 0.9rem; }
.cat-list a:hover { background: var(--primary-light); color: var(--primary-dark); }

.site-footer { background: #0f172a; color: #94a3b8; padding: 60px 0 20px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-title { color: #ffffff; font-size: 1.1rem; font-weight: 700; margin-bottom: 15px; }
.footer-desc { font-size: 0.9rem; line-height: 1.6; margin-bottom: 15px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #94a3b8; font-size: 0.9rem; }
.footer-links a:hover { color: #ffffff; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 20px; font-size: 0.85rem; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

.cookie-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 420px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  border-radius: 12px;
  padding: 20px;
  z-index: 999;
  display: none;
}
.cookie-banner p { font-size: 0.85rem; color: #475569; margin-bottom: 15px; }
.cookie-actions { display: flex; gap: 10px; }
.btn { padding: 8px 16px; border-radius: 6px; font-size: 0.85rem; font-weight: 600; cursor: pointer; border: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-main); }

@media (max-width: 768px) {
  .article-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .articles-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.8rem; }
}
