﻿:root {
  --primary: rgb(48,209,88);
  --primary-hover: rgb(40,180,75);
  --bg-dark: #0f172a;
  --bg-light: #f8fafc;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
body { background-color: var(--bg-light); color: var(--text-main); line-height: 1.8; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }
img { max-width: 100%; height: auto; display: block; border-radius: 8px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }


.header { background: var(--bg-dark); position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { display: block; height: 40px; width: auto; max-width: 160px; object-fit: contain; flex-shrink: 0; }
.logo span { display: inline-block; font-size: 22px; font-weight: 800; line-height: 1; color: #fff; white-space: nowrap; }
.desktop-nav { display: flex; gap: 24px; align-items: center; }
.desktop-nav a { color: #f8fafc; font-size: 16px; font-weight: 500; }
.desktop-nav a:hover { color: var(--primary); }
.mobile-menu-btn { display: none; background: none; border: none; color: #fff; cursor: pointer; }
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); opacity: 0; visibility: hidden; transition: 0.3s; z-index: 999; }
.drawer { position: fixed; top: 0; left: -320px; width: 280px; height: 100%; background: #fff; z-index: 1000; transition: left 0.3s ease; display: flex; flex-direction: column; }
.drawer.active { left: 0; }
.drawer-overlay.active { opacity: 1; visibility: visible; }
.drawer-header { padding: 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }
.drawer-header .logo span { color: var(--text-main); }
.close-btn { background: none; border: none; font-size: 28px; cursor: pointer; color: var(--text-muted); }
.drawer-nav { padding: 20px; display: flex; flex-direction: column; gap: 15px; }
.drawer-nav a { font-size: 16px; color: var(--text-main); padding-bottom: 12px; border-bottom: 1px solid #f1f5f9; font-weight: 500; }
.drawer-nav a:hover { color: var(--primary); }
.footer { background: var(--bg-dark); color: #94a3b8; padding: 60px 0 24px; margin-top: 60px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer .logo span { color: #fff; }
.footer-desc { margin-top: 16px; font-size: 14px; line-height: 1.8; max-width: 400px; }
.footer-nav h4 { color: #f8fafc; margin-bottom: 20px; font-size: 18px; }
.footer-nav ul { list-style: none; }
.footer-nav ul li { margin-bottom: 12px; }
.footer-nav ul li a:hover { color: var(--primary); }
.footer-bottom { text-align: center; border-top: 1px solid #1e293b; padding-top: 24px; font-size: 14px; }


.breadcrumb { font-size: 14px; color: var(--text-muted); margin: 30px 0; }
.breadcrumb a { color: var(--text-main); }
.breadcrumb a:hover { color: var(--primary); }

.article-layout { display: flex; gap: 40px; }
.article-main { flex: 1; background: #fff; padding: 50px; border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 4px 20px rgba(0,0,0,0.02); }
.article-sidebar { width: 320px; flex-shrink: 0; }

.article-header { border-bottom: 1px solid var(--border); padding-bottom: 30px; margin-bottom: 30px; }
.article-title { font-size: 32px; font-weight: 800; color: var(--text-main); line-height: 1.4; margin-bottom: 20px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; color: var(--text-muted); }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }

.article-body { font-size: 16px; color: #334155; margin-bottom: 40px; word-wrap: break-word; overflow-wrap: break-word; }
.article-body h2, .article-body h3 { margin: 30px 0 15px; color: var(--text-main); }
.article-body p { margin-bottom: 16px; }
.article-body img { margin: 24px auto; }

.article-tags { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.article-tags strong { color: var(--text-main); font-size: 15px; }
.article-tags a { background: rgba(48,209,88,0.1); color: var(--primary); padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 500; }

.article-nav { display: flex; justify-content: space-between; margin-top: 40px; gap: 20px; flex-wrap: wrap; }
.article-nav a { flex: 1; padding: 20px; background: var(--bg-light); border-radius: 8px; border: 1px solid var(--border); transition: all 0.3s; }
.article-nav a:hover { border-color: var(--primary); background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.nav-label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.nav-title { font-size: 16px; font-weight: 600; color: var(--text-main); }

.related-section { margin-top: 60px; }
.related-title { font-size: 24px; font-weight: 800; margin-bottom: 30px; border-left: 4px solid var(--primary); padding-left: 16px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.related-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: 0.3s; }
.related-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.rc-img img { width: 100%; height: 160px; object-fit: cover; }
.rc-content { padding: 16px; }
.rc-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rc-meta { font-size: 12px; color: var(--text-muted); display: flex; justify-content: space-between; }

.widget { background: #fff; border-radius: 12px; border: 1px solid var(--border); padding: 24px; margin-bottom: 30px; }
.widget-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.guide-box { background: linear-gradient(135deg, rgba(48,209,88,0.1), rgba(48,209,88,0.02)); padding: 20px; border-radius: 8px; border: 1px dashed var(--primary); text-align: center; }
.guide-box p { font-size: 14px; color: var(--text-main); margin-bottom: 16px; }
.btn-guide { display: inline-block; background: var(--primary); color: #fff; padding: 10px 20px; border-radius: 6px; font-weight: 600; font-size: 14px; }

@media(max-width: 992px){
  .article-layout { flex-direction: column; }
  .article-sidebar { width: 100%; }
}
@media(max-width: 768px){
  .desktop-nav { display: none; }
  .mobile-menu-btn { display: block; }
  .footer-inner { grid-template-columns: 1fr; }
  .article-main { padding: 24px; }
  .article-title { font-size: 24px; }
}