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

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, 'Noto Sans', sans-serif;
  background-color: #f9fafb;
  color: #1e293b;
  line-height: 1.5;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

i,
.fas,
.far {
  pointer-events: none;
}

.site-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.article-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.navbar {
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo-area {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  text-decoration: none;
}

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f6b3a;
  letter-spacing: -0.02em;
}

.logo span {
  color: #f59e0b;
}

.slogan {
  font-size: 0.85rem;
  color: #5b6e8c;
  border-left: 2px solid #e2e8f0;
  padding-left: 0.75rem;
  margin-left: 0.25rem;
}

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

.nav-links a {
  text-decoration: none;
  color: #334155;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #0f6b3a;
}

.nav-links .btn-outline {
  border: 1px solid #cbd5e1;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-size: 0.9rem;
}

.nav-links .btn-outline:hover,
.nav-links .btn-outline.active {
  background-color: #f1f5f9;
  border-color: #0f6b3a;
}

.hero {
  background: linear-gradient(135deg, #eef2ff 0%, #ffffff 100%);
  padding: 3rem 0 3.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.hero-content {
  text-align: center;
  max-width: 850px;
}

.hero h1 {
  font-size: 2.3rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.hero h1 span {
  color: #0f6b3a;
}

.tagline {
  font-size: 1.2rem;
  color: #334155;
  margin-bottom: 2rem;
}

.search-box {
  background: white;
  border-radius: 60px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;
  border: 1px solid #e2e8f0;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.search-box:focus-within {
  box-shadow: 0 20px 25px -12px rgba(0, 0, 0, 0.1);
  border-color: #0f6b3a;
}

.search-box i {
  color: #94a3b8;
  font-size: 1.2rem;
}

.search-box input {
  flex: 1;
  border: none;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  background: transparent;
  outline: none;
  font-weight: 500;
  min-width: 0;
}

.search-box input::placeholder {
  color: #94a3b8;
  font-weight: normal;
}

.search-box button,
.submit-form button {
  background-color: #0f6b3a;
  border: none;
  color: white;
  padding: 0.7rem 1.8rem;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}

.search-box button:hover,
.submit-form button:hover {
  background-color: #0a5330;
}

.example-query {
  margin-top: 1.2rem;
  font-size: 0.88rem;
  color: #5b6e8c;
}

.example-query a,
.more-link {
  color: #0f6b3a;
  text-decoration: none;
  border-bottom: 1px dashed #cbd5e1;
  margin: 0 0.3rem;
}

.categories-section {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: #0f172a;
}

.section-title span {
  background: linear-gradient(120deg, #e0f2fe 0%, #e0f2fe 40%, transparent 80%);
  padding: 0 0.2rem;
}

.grid-cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1.8rem;
  text-align: center;
}

.cat-card,
.category-list-card {
  background: white;
  border-radius: 1.5rem;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  text-decoration: none;
  color: #1e293b;
}

.cat-card {
  padding: 1.2rem 0.5rem;
  display: block;
}

.cat-card:hover,
.category-list-card:hover,
.article-list-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -12px rgba(0, 0, 0, 0.12);
  border-color: #cbd5e1;
}

.cat-icon {
  font-size: 2.5rem;
  color: #0f6b3a;
  margin-bottom: 0.8rem;
}

.cat-name {
  font-weight: 600;
  font-size: 1rem;
}

.cat-desc {
  font-size: 0.75rem;
  color: #5b6e8c;
  margin-top: 0.3rem;
}

.latest-articles {
  padding: 2rem 0 3rem;
  background-color: white;
}

.articles-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.articles-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.8rem;
}

.article-list-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.2rem 1.2rem 1.5rem;
  box-shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.2s;
  border: 1px solid #edf2f7;
}

.article-cat,
.category-badge {
  display: inline-block;
  font-size: 0.72rem;
  background: #eef2ff;
  color: #1e40af;
  padding: 0.22rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 0.7rem;
  font-weight: 500;
  text-decoration: none;
}

.article-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.article-title a {
  text-decoration: none;
  color: #0f172a;
  transition: color 0.2s;
}

.article-title a:hover {
  color: #0f6b3a;
}

.article-summary {
  color: #475569;
  font-size: 0.92rem;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.78rem;
  color: #94a3b8;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.8rem;
  margin-top: 0.5rem;
}

.article-meta i {
  margin-right: 0.2rem;
}

.breadcrumb {
  margin: 1.2rem 0 0.8rem;
  font-size: 0.85rem;
  color: #5b6e8c;
}

.breadcrumb a {
  color: #0f6b3a;
  text-decoration: none;
}

.breadcrumb span {
  color: #94a3b8;
}

.article-detail-card {
  background: white;
  border-radius: 1.5rem;
  padding: 2rem 1.8rem;
  margin: 1rem 0 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #edf2f7;
}

.article-meta-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  font-size: 0.85rem;
  color: #5b6e8c;
  border-bottom: 1px solid #eef2ff;
  padding-bottom: 0.8rem;
}

.article-meta-top .category-badge {
  margin-bottom: 0;
}

.article-detail-card h1 {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: #0f172a;
}

.one-sentence {
  background: #f0fdf4;
  border-left: 4px solid #0f6b3a;
  padding: 1.2rem;
  border-radius: 1rem;
  margin: 1.5rem 0;
  font-weight: 500;
  font-size: 1.05rem;
  color: #14532d;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.one-sentence i {
  margin-right: 0.5rem;
}

.need-prepare {
  background: #f8fafc;
  border-radius: 1rem;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid #e2e8f0;
}

.need-prepare h2,
.steps h2,
.warning-box h2,
.advanced-tip h2,
.related-questions h2 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #0f172a;
}

.checklist {
  list-style: none;
  padding-left: 0;
}

.checklist li {
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  font-size: 0.95rem;
}

.checklist li i {
  width: 1.4rem;
  color: #94a3b8;
  transition: color 0.2s;
}

.checklist li.checked i {
  color: #0f6b3a;
}

.checklist li.checked span {
  text-decoration: line-through;
  color: #6c757d;
}

.helper-note {
  font-size: 0.8rem;
  color: #5b6e8c;
  margin-top: 0.5rem;
}

.steps {
  margin: 1.8rem 0;
}

.step-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.8rem;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 1.2rem;
}

.step-number {
  background: #0f6b3a;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.step-desc {
  color: #334155;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.step-img {
  background: #f1f5f9;
  border-radius: 0.75rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
  font-size: 0.85rem;
  color: #475569;
  gap: 0.5rem;
  border: 1px dashed #cbd5e1;
}

.step-img i {
  font-size: 1.4rem;
  color: #0f6b3a;
}

.warning-box {
  background: #fff7ed;
  border-left: 4px solid #f97316;
  padding: 1rem 1.2rem;
  border-radius: 0.8rem;
  margin: 1.5rem 0;
}

.warning-box h2 {
  color: #c2410c;
}

.warning-box ul {
  margin-left: 1.5rem;
  color: #78350f;
}

.warning-box li,
.static-section-card li {
  margin-bottom: 0.35rem;
}

.advanced-tip {
  background: #eef2ff;
  padding: 1rem 1.2rem;
  border-radius: 0.8rem;
  margin: 1.5rem 0;
}

.advanced-tip h2 {
  color: #1e3a8a;
}

.advanced-tip p + p {
  margin-top: 0.7rem;
}

.summary-container {
  text-align: center;
  margin: 1rem 0 1.8rem;
}

.summary-tag {
  background: #f1f5f9;
  padding: 0.8rem 1rem;
  border-radius: 60px;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  display: inline-block;
  color: #0f172a;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0;
}

.article-tags a {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  color: #0f6b3a;
  font-size: 0.82rem;
  padding: 0.35rem 0.8rem;
  text-decoration: none;
}

.article-tags a:hover {
  background: #f0fdf4;
  border-color: #86efac;
}

.related-questions {
  background: #f9fafb;
  border-radius: 1rem;
  padding: 1.2rem;
  margin-top: 2rem;
}

.related-list,
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  list-style: none;
}

.related-list li a,
.pill-list a {
  background: white;
  padding: 0.4rem 1rem;
  border-radius: 60px;
  text-decoration: none;
  font-size: 0.85rem;
  border: 1px solid #e2e8f0;
  color: #0f6b3a;
  display: inline-block;
  transition: all 0.2s;
}

.related-list li a:hover,
.pill-list a:hover {
  background: #0f6b3a;
  color: white;
  border-color: #0f6b3a;
}

.article-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #edf2f7;
  flex-wrap: wrap;
  gap: 1rem;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.action-buttons button,
.share-button {
  background: none;
  border: 1px solid #e2e8f0;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  cursor: pointer;
  font-size: 0.85rem;
  transition: 0.2s;
  color: #334155;
}

.action-buttons button:hover,
.share-button:hover,
.action-buttons button.success,
.action-buttons button.liked {
  background: #f0fdf4;
  border-color: #86efac;
  color: #0f6b3a;
}

.page-message {
  min-height: 1.4rem;
  margin-top: 0.8rem;
  color: #0f6b3a;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.page-message.show {
  opacity: 1;
}

.page-main {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.page-hero {
  background: linear-gradient(135deg, #eef2ff 0%, #ffffff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  padding: 2rem;
  margin-bottom: 2rem;
}

.compact-hero h1 {
  font-size: 2rem;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.compact-hero p {
  color: #475569;
}

.eyebrow {
  color: #0f6b3a !important;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.category-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.2rem;
}

.category-list-card {
  display: flex;
  gap: 1rem;
  padding: 1.2rem;
}

.category-list-card .cat-icon {
  font-size: 2rem;
  margin-bottom: 0;
  flex-shrink: 0;
}

.category-list-card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.category-list-card p {
  color: #475569;
  margin-bottom: 0.5rem;
}

.category-list-card span {
  color: #5b6e8c;
  font-size: 0.85rem;
}

.category-hero {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.category-hero .cat-icon {
  margin-bottom: 0;
}

.listing-grid {
  margin-top: 1.2rem;
}

.listing-summary {
  color: #5b6e8c;
  font-size: 0.92rem;
  margin: 0.5rem 0 1rem;
}

.listing-summary strong {
  color: #0f6b3a;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.pagination a,
.pagination span {
  min-width: 2.35rem;
  height: 2.35rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid #e2e8f0;
  background: white;
  color: #334155;
  font-size: 0.9rem;
}

.pagination a:hover,
.pagination .current {
  background: #0f6b3a;
  border-color: #0f6b3a;
  color: white;
}

.pagination .disabled {
  color: #94a3b8;
  background: #f8fafc;
}

.search-box-inline {
  margin-top: 1.2rem;
  max-width: 760px;
}

.search-suggestions,
.search-results,
.static-sections,
.form-card,
.notice-card,
.empty-state {
  margin-top: 1.5rem;
}

.search-suggestions h2 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.empty-state,
.notice-card,
.form-card,
.static-section-card {
  background: white;
  border: 1px solid #edf2f7;
  border-radius: 1.2rem;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.empty-state h2,
.notice-card h2,
.static-section-card h2 {
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.empty-state p,
.notice-card p {
  color: #475569;
  margin-bottom: 1rem;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.65rem 1.2rem;
  font-weight: 600;
}

.primary-link {
  background: #0f6b3a;
  color: white;
}

.secondary-link {
  border: 1px solid #cbd5e1;
  color: #334155;
}

.static-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.static-section-card ul {
  margin-left: 1.2rem;
  color: #475569;
}

.submit-form {
  display: grid;
  gap: 1rem;
}

.submit-form label {
  display: grid;
  gap: 0.35rem;
  color: #334155;
  font-weight: 600;
}

.submit-form input,
.submit-form select,
.submit-form textarea {
  border: 1px solid #cbd5e1;
  border-radius: 0.85rem;
  padding: 0.75rem 0.9rem;
  background: #fff;
  color: #1e293b;
  outline: none;
}

.submit-form input:focus,
.submit-form select:focus,
.submit-form textarea:focus {
  border-color: #0f6b3a;
  box-shadow: 0 0 0 3px rgba(15, 107, 58, 0.1);
}

.submit-form button {
  justify-self: start;
}

.error-state {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.error-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-stats {
  background-color: #0f172a;
  color: #e2e8f0;
  padding: 2rem 0 1.5rem;
}

.stats-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.today-solved {
  background: #1e293b;
  padding: 0.7rem 1.5rem;
  border-radius: 60px;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1rem;
}

.today-solved i {
  font-size: 1.4rem;
  color: #facc15;
}

.solved-number {
  font-size: 1.8rem;
  font-weight: 800;
  margin-right: 0.3rem;
  color: white;
}

.stats-note {
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
}

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

.copyright {
  text-align: center;
  font-size: 0.75rem;
  border-top: 1px solid #1e293b;
  padding-top: 1.5rem;
  margin-top: 0.5rem;
  color: #5b6e8c;
}

@media (max-width: 800px) {
  .site-container,
  .article-container {
    padding: 0 1.2rem;
  }

  .nav-inner {
    flex-direction: column;
    gap: 0.8rem;
  }

  .nav-links {
    gap: 1.2rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .search-box {
    flex-wrap: wrap;
    border-radius: 2rem;
    padding: 0.8rem;
  }

  .search-box input {
    width: 100%;
    flex-basis: calc(100% - 2rem);
    padding: 0.7rem;
    margin-bottom: 0.6rem;
    background: #f8fafc;
    border-radius: 3rem;
  }

  .search-box button {
    width: 100%;
    padding: 0.7rem;
  }

  .articles-grid,
  .category-list-grid {
    grid-template-columns: 1fr;
  }

  .stats-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .category-hero {
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  .article-detail-card {
    padding: 1.2rem;
  }

  .article-detail-card h1,
  .compact-hero h1 {
    font-size: 1.5rem;
  }

  .step-item {
    flex-direction: column;
    gap: 0.4rem;
  }

  .step-number {
    align-self: flex-start;
  }

  .article-footer-actions,
  .action-buttons,
  .share-button {
    width: 100%;
  }

  .action-buttons button,
  .share-button {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .logo-area {
    justify-content: center;
  }

  .slogan {
    border-left: 0;
    padding-left: 0;
    margin-left: 0;
  }

  .nav-links {
    gap: 0.8rem;
    font-size: 0.9rem;
  }

  .cat-card {
    padding: 0.8rem 0.2rem;
  }

  .cat-icon {
    font-size: 2rem;
  }

  .page-hero {
    padding: 1.3rem;
  }
}
