/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #FF5722;
  --primary-dark: #E64A19;
  --primary-light: #FFF3F0;
  --accent: #1565C0;
  --text: #1A1A2E;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --bg: #FFFFFF;
  --bg-light: #F8F9FB;
  --bg-card: #FFFFFF;
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  --radius: 10px;
  --radius-lg: 16px;
  --radius-sm: 6px;
  --font-head: 'Sora', sans-serif;
  --font-body: 'Noto Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== CONTAINER ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,87,34,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}
.logo-icon { font-size: 22px; }
.logo-accent { color: var(--primary); }
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.15s;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.2s;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.mobile-nav .nav-link {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.mobile-nav.open { display: flex; }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 72px 0 64px;
  overflow: hidden;
  text-align: center;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,87,34,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(21,101,192,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,87,34,0.15);
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
}
.accent { color: var(--primary); }
.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}
.stat-div {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ===== AD SLOT ===== */
.ad-slot {
  margin: 24px auto;
  min-height: 90px;
  background: var(--bg-light);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 728px;
}
.ad-label {
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== SECTIONS ===== */
.section { padding: 64px 0; }
.bg-light { background: var(--bg-light); }
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: var(--text);
}
.section-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 6px;
}
.see-all {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  transition: gap 0.15s;
}
.see-all:hover { text-decoration: underline; }

/* ===== CATEGORIES ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
}
.cat-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.cat-icon { font-size: 32px; margin-bottom: 10px; }
.cat-name {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.cat-count { font-size: 12px; color: var(--text-muted); }

/* ===== ARTICLES GRID ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(255,87,34,0.2);
}
.article-card.featured {
  border-color: var(--primary);
  background: linear-gradient(135deg, #FFFAF9 0%, #FFFFFF 100%);
}
.article-badge {
  position: absolute;
  top: -1px;
  right: 20px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 0 0 8px 8px;
  letter-spacing: 0.04em;
}
.article-cat {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.article-title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}
.article-title a { transition: color 0.15s; }
.article-title a:hover { color: var(--primary); }
.article-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}
.article-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-light);
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

/* ===== LIST ARTICLES ===== */
.list-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.list-article {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s;
}
.list-article:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.list-num {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-light);
  -webkit-text-stroke: 1px var(--primary);
  flex-shrink: 0;
  line-height: 1;
  min-width: 36px;
}
.list-title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 6px;
  transition: color 0.15s;
}
.list-article:hover .list-title { color: var(--primary); }
.list-meta { font-size: 12px; color: var(--text-light); }

/* ===== NEWSLETTER ===== */
.newsletter-section {
  padding: 48px 0;
  background: var(--text);
}
.newsletter-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.nl-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.nl-sub { font-size: 14px; color: rgba(255,255,255,0.65); }
.nl-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 280px;
  justify-content: flex-end;
}
.nl-input {
  flex: 1;
  min-width: 220px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.nl-input::placeholder { color: rgba(255,255,255,0.4); }
.nl-input:focus { border-color: var(--primary); }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  padding-top: 48px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding-bottom: 40px;
}
.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 10px;
  max-width: 200px;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 0;
  font-size: 13px;
  color: var(--text-light);
  text-align: center;
  line-height: 1.8;
}

/* ===== ARTICLE PAGE ===== */
.article-hero {
  padding: 48px 0 0;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.article-page-title {
  font-family: var(--font-head);
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 16px;
  max-width: 760px;
}
.article-info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 16px 0;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 48px 0;
  align-items: start;
}
.article-content h2 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
}
.article-content h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 10px;
}
.article-content p {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 18px;
}
.article-content ul, .article-content ol {
  margin: 0 0 18px 20px;
}
.article-content li {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 6px;
}
.article-content .tip-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 15px;
  color: var(--primary-dark);
}
.article-content .tip-box strong { display: block; margin-bottom: 4px; }
.step-box {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 16px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.step-num {
  background: var(--primary);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.step-text { flex: 1; }
.step-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 4px;
}
.step-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.widget-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-light);
}
.related-post {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.related-post:last-child { border-bottom: none; }
.related-num {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--border);
  flex-shrink: 0;
  width: 28px;
}
.related-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.45;
  transition: color 0.15s;
}
.related-post:hover .related-title { color: var(--primary); }

/* ===== ABOUT PAGE ===== */
.about-hero {
  padding: 64px 0;
  text-align: center;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
}
.about-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.about-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}
.about-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 20px;
}
.about-content h2 {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 40px 0 14px;
}
.about-content p {
  font-size: 16px;
  color: #444;
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.about-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.about-card-icon { font-size: 28px; margin-bottom: 10px; }
.about-card-title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 48px 0 40px; }
  .hero-stats { gap: 20px; }
  .stat-div { display: none; }
  .section { padding: 44px 0; }
  .articles-grid { grid-template-columns: 1fr; }
  .list-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .newsletter-box { flex-direction: column; }
  .nl-form { justify-content: flex-start; }
  .section-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 30px; }
  .footer-links { grid-template-columns: 1fr; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-badge, .hero-title, .hero-sub, .hero-actions {
  animation: fadeUp 0.5s ease both;
}
.hero-title { animation-delay: 0.1s; }
.hero-sub { animation-delay: 0.2s; }
.hero-actions { animation-delay: 0.3s; }
