@import url('/lang-fonts.css');

/* ============================================================
   StoreClaw Blog Articles — Shared Stylesheet
   /public/articles/styles.css
   ============================================================ */

/* ===== BILINGUAL ===== */
html[lang="en"] .zh { display: none; }
html[lang="zh"] .en { display: none; }

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

html {
  scroll-behavior: smooth;
}

body {
  background: #f5f4ed;
  color: #2d3432;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ===== BANNER ===== */
.banner {
  background: #f5f4ed;
}
.banner-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 20px 32px;
}
@media (min-width: 768px) {
  .banner-inner {
    padding: 48px 80px 40px;
  }
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #5e5d59;
  margin-bottom: 16px;
}
.breadcrumb a {
  color: #5e5d59;
  text-decoration: none;
}
.breadcrumb a:hover {
  color: #2d3432;
}
.breadcrumb svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ===== BANNER HEADING ===== */
.banner h1 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  color: #181f1d;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
@media (min-width: 768px) {
  .banner h1 {
    font-size: 44px;
  }
}

/* ===== BANNER META ===== */
.banner-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.banner-read-time {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #5e5d59;
}
.banner-read-time svg {
  width: 14px;
  height: 14px;
}
.banner-date {
  font-size: 13px;
  color: #5e5d59;
}
.banner-tag {
  background: rgba(195, 199, 197, 0.15);
  color: #434846;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

/* ===== PAGE BODY ===== */
.page-body {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 80px;
  display: flex;
  gap: 48px;
}
@media (min-width: 768px) {
  .page-body {
    padding: 0 80px 80px;
  }
}

/* ===== ARTICLE CONTENT ===== */
.article-content {
  min-width: 0;
  flex: 1;
  padding-top: 40px;
}

/* hero cover image */
.article-content .hero-img {
  width: 100%;
  border-radius: 12px;
  margin: 0 0 36px;
  object-fit: cover;
  /* max-height: 500px; */
  display: block;
}

/* inline section images */
.article-content .section-img {
  width: 100%;
  border-radius: 12px;
  margin: 8px 0 28px;
  /* object-fit: cover; */
  /* max-height: 420px; */
  display: block;
}

.article-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: #181f1d;
  letter-spacing: -0.3px;
  margin: 40px 0 14px;
  line-height: 1.3;
}

.article-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: #181f1d;
  margin: 28px 0 10px;
}

.article-content p {
  font-size: 15px;
  color: #2d3432;
  line-height: 1.75;
  margin-bottom: 16px;
}

.article-content p.intro {
  font-size: 16px;
  color: #434846;
  margin-bottom: 24px;
}

.article-content ul,
.article-content ol {
  margin: 12px 0 18px 24px;
}
.article-content li {
  font-size: 15px;
  color: #2d3432;
  line-height: 1.75;
  margin-bottom: 8px;
}

.article-content strong {
  font-weight: 700;
  color: #181f1d;
}
.article-content em {
  font-style: italic;
}

.article-content a {
  color: #2d3432;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-content a:hover {
  opacity: 0.7;
}

/* ===== CALLOUT ===== */
.callout {
  background: rgba(195, 199, 197, 0.12);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 15px;
  line-height: 1.7;
}

/* ===== ARTICLE NAV (prev / next) ===== */
.article-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(195, 199, 197, 0.3);
}
.article-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 20px;
  background: #faf9f5;
  border: 1px solid #f0eee6;
  border-radius: 12px;
  text-decoration: none;
  max-width: 280px;
  transition: border-color 0.15s;
  color: inherit;
}
.article-nav a:hover {
  border-color: rgba(195, 199, 197, 0.6);
}
.article-nav a.next {
  align-items: flex-end;
  text-align: right;
}
.article-nav a:only-child {
  margin: 0 auto;
}
.article-nav-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #5e5d59;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.article-nav-label svg {
  width: 14px;
  height: 14px;
}
.article-nav a.next .article-nav-label {
  flex-direction: row-reverse;
}
.article-nav-title {
  font-size: 13px;
  font-weight: 500;
  color: #2d3432;
  line-height: 1.4;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 260px;
  flex-shrink: 0;
  display: none;
  padding-top: 40px;
}
@media (min-width: 1024px) {
  .sidebar {
    display: block;
  }
}
.sidebar-inner {
  position: sticky;
  top: 16px;
}
.sidebar-card {
  background: #faf9f5;
  border: 1px solid #f0eee6;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}
.sidebar-title {
  font-size: 13px;
  font-weight: 600;
  color: #5e5d59;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}
#outline-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.outline-link {
  display: block;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  color: #5e5d59;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color 0.15s, background-color 0.15s;
  cursor: pointer;
}
.outline-link:hover {
  color: #2d3432;
}
.outline-link.active {
  background: rgba(195, 199, 197, 0.15);
  color: #2d3432;
}
