:root{
  --bg:#f5f6f8;
  --surface:#ffffff;
  --surface-soft:#fafafc;
  --line:#e5e7eb;
  --line-strong:#d1d5db;
  --text:#1f2937;
  --muted:#6b7280;
  --muted-2:#9ca3af;
  --accent:#14b85a;
  --accent-soft:#e8fff1;
  --tag:#eef2ff;
  --shadow:0 12px 32px rgba(15,23,42,0.08);
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:"Segoe UI", "Malgun Gothic", sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
}

html.blog-ready body{
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

img{
  display:block;
  max-width:100%;
}

a{
  color:inherit;
}

body.blog-home{
  min-height:100vh;
}

.blog-shell{
  width:min(1280px, calc(100% - 32px));
  margin:0 auto;
  padding:24px 0 48px;
}

.blog-header{
  display:flex;
  justify-content:space-between;
  gap:24px;
  align-items:flex-end;
  margin-bottom:24px;
  padding:28px 32px;
  border:1px solid var(--line);
  border-radius:24px;
  background:
    linear-gradient(135deg, rgba(20,184,90,0.16), rgba(255,255,255,0.92) 48%),
    var(--surface);
  box-shadow:var(--shadow);
}

.blog-brand{
  display:grid;
  gap:10px;
}

.blog-kicker{
  margin:0;
  font-size:13px;
  font-weight:700;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--accent);
}

.blog-title{
  margin:0;
  font-size:clamp(30px, 4vw, 42px);
  line-height:1.15;
}

.blog-intro{
  max-width:720px;
  margin:0;
  color:var(--muted);
}

.blog-top-nav{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-self:flex-start;
}

.blog-top-nav a{
  padding:10px 14px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,0.84);
  text-decoration:none;
  font-size:14px;
  font-weight:600;
}

.blog-top-nav a:hover,
.blog-top-nav a.is-current{
  border-color:var(--accent);
  color:var(--accent);
  background:var(--accent-soft);
}

.blog-layout{
  display:grid;
  grid-template-columns:260px minmax(0, 1fr) 320px;
  gap:24px;
  align-items:start;
}

.blog-sidebar,
.blog-main{
  min-width:0;
}

.blog-stack{
  display:grid;
  gap:16px;
}

.blog-panel{
  padding:20px;
  border:1px solid var(--line);
  border-radius:20px;
  background:var(--surface);
  box-shadow:var(--shadow);
}

.blog-panel h2,
.blog-panel h3{
  margin:0 0 12px;
  font-size:18px;
}

.blog-panel p{
  margin:0;
  color:var(--muted);
}

.blog-profile{
  display:grid;
  gap:14px;
}

.blog-avatar{
  width:72px;
  height:72px;
  border-radius:22px;
  object-fit:cover;
  border:1px solid var(--line);
}

.blog-profile-meta{
  display:grid;
  gap:6px;
}

.blog-profile-meta strong{
  font-size:18px;
}

.blog-profile-meta span{
  color:var(--muted);
  font-size:14px;
}

.blog-link-list,
.blog-tag-list,
.blog-mini-list{
  display:grid;
  gap:10px;
}

.blog-link-list a,
.blog-mini-list a{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  padding:11px 12px;
  border-radius:14px;
  text-decoration:none;
  background:var(--surface-soft);
  font-weight:600;
}

.blog-link-list a span,
.blog-mini-list a span{
  color:var(--muted-2);
  font-size:13px;
  font-weight:600;
}

.blog-link-list a.is-current,
.blog-mini-list a.is-current{
  background:var(--accent-soft);
  color:var(--accent);
}

.blog-tag-list{
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.blog-tag{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  min-height:40px;
  padding:8px 12px;
  border-radius:999px;
  background:var(--tag);
  color:#334155;
  text-decoration:none;
  font-size:13px;
  font-weight:700;
}

.blog-main{
  display:grid;
  gap:18px;
}

.blog-feed-head{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-end;
}

.blog-feed-head h2{
  margin:0;
  font-size:24px;
}

.blog-feed-head p{
  margin:0;
  color:var(--muted);
}

.blog-card-list{
  display:grid;
  gap:18px;
}

.blog-card{
  border:1px solid var(--line);
  border-radius:24px;
  background:var(--surface);
  box-shadow:var(--shadow);
  overflow:hidden;
}

.blog-card-link{
  display:grid;
  grid-template-columns:minmax(220px, 280px) minmax(0, 1fr);
  min-height:100%;
  text-decoration:none;
}

.blog-card-media{
  position:relative;
  min-height:220px;
  background:
    linear-gradient(160deg, rgba(20,184,90,0.18), rgba(15,23,42,0.04)),
    #dbeafe;
}

.blog-card-media img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.blog-card-badge{
  position:absolute;
  left:16px;
  top:16px;
  padding:7px 12px;
  border-radius:999px;
  background:rgba(255,255,255,0.92);
  font-size:12px;
  font-weight:800;
  letter-spacing:0.04em;
}

.blog-card-body{
  display:grid;
  gap:14px;
  padding:24px;
}

.blog-card-meta{
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}

.blog-card-body h3{
  margin:0;
  font-size:26px;
  line-height:1.3;
}

.blog-card-body p{
  margin:0;
  color:var(--muted);
}

.blog-card-tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.blog-card-tags span{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  background:var(--surface-soft);
  font-size:13px;
  font-weight:700;
  color:#475569;
}

.blog-sidebar-right .blog-panel{
  position:sticky;
  top:24px;
}

.blog-ad-frame{
  display:block;
  width:300px;
  max-width:100%;
  margin:0 auto;
  border:0;
}

.blog-promo-card{
  display:grid;
  gap:12px;
  padding:18px;
  border-radius:18px;
  background:linear-gradient(180deg, #f8fffb, #eefbf3);
  border:1px solid rgba(20,184,90,0.18);
}

.blog-promo-card strong{
  font-size:17px;
}

.blog-promo-card a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  border-radius:12px;
  background:var(--accent);
  color:#fff;
  text-decoration:none;
  font-weight:700;
}

body.blog-article-page{
  min-height:100vh;
}

body.blog-article-page .blog-sidebar-right .blog-panel{
  position:static;
}

body.blog-article-page .blog-sidebar-right .blog-stack{
  position:sticky;
  top:24px;
}

.blog-article-shell{
  padding:32px;
  border:1px solid var(--line);
  border-radius:28px;
  background:var(--surface);
  box-shadow:var(--shadow);
}

.blog-article-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:12px;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}

.blog-article-title{
  margin:0;
  font-size:clamp(30px, 4vw, 42px);
  line-height:1.24;
}

.article-summary-box{
  margin-top:18px;
  padding:16px 18px;
  border-radius:18px;
  border:1px solid rgba(20,184,90,0.18);
  background:linear-gradient(180deg, #f8fffb, #eefbf3);
  font-weight:700;
  line-height:1.65;
}

.article-hero{
  margin:24px 0 0;
  overflow:hidden;
  border-radius:24px;
  background:var(--surface-soft);
  border:1px solid var(--line);
}

.article-hero img{
  width:100%;
  aspect-ratio:16 / 9;
  object-fit:cover;
}

.article-hero figcaption{
  padding:12px 16px 16px;
  color:var(--muted);
  font-size:13px;
}

.article-body{
  margin-top:28px;
}

.article-body h2{
  margin:36px 0 14px;
  font-size:28px;
  line-height:1.3;
}

.article-body h3{
  margin:0 0 8px;
  font-size:20px;
  line-height:1.4;
}

.article-body p{
  margin:0 0 16px;
  color:#334155;
  font-size:17px;
  line-height:1.85;
}

.article-body a{
  color:#0f766e;
  text-underline-offset:3px;
}

.article-lead{
  font-size:20px;
  font-weight:700;
  color:#0f172a;
}

.article-ad{
  margin:28px 0;
  padding:18px;
  border:1px solid var(--line);
  border-radius:22px;
  background:var(--surface-soft);
}

.article-ad-label{
  margin:0 0 12px;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  letter-spacing:0.08em;
  text-transform:uppercase;
}

.article-ad-frame-block{
  display:grid;
  justify-items:center;
}

.article-ad-frame-block iframe{
  display:block;
  max-width:100%;
  border:0;
}

.article-product-card{
  display:grid;
  grid-template-columns:140px minmax(0, 1fr);
  gap:18px;
  align-items:center;
}

.article-product-media{
  display:block;
  overflow:hidden;
  border-radius:18px;
  background:#fff;
  border:1px solid var(--line);
}

.article-product-media img{
  width:100%;
  aspect-ratio:1 / 1;
  object-fit:cover;
}

.article-product-copy{
  display:grid;
  gap:10px;
}

.article-product-copy strong{
  font-size:20px;
  line-height:1.4;
}

.article-product-copy p{
  margin:0;
  font-size:15px;
  line-height:1.75;
}

.article-product-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 16px;
  border-radius:12px;
  background:var(--accent);
  color:#fff;
  text-decoration:none;
  font-weight:800;
}

.faq-list{
  margin-top:40px;
  padding-top:8px;
}

.faq-item{
  padding:20px 0;
  border-top:1px solid var(--line);
}

.faq-item:last-child{
  border-bottom:1px solid var(--line);
}

.faq-item p{
  margin-bottom:0;
}

.related-posts{
  margin-top:36px;
  padding:24px;
  border-radius:22px;
  background:var(--surface-soft);
  border:1px solid var(--line);
}

.related-posts h2{
  margin-top:0;
}

.related-posts ul{
  margin:0;
  padding-left:20px;
}

.related-posts li + li{
  margin-top:10px;
}

.blog-toc-list a{
  align-items:flex-start;
}

@media (max-width:1100px){
  .blog-layout{
    grid-template-columns:240px minmax(0, 1fr);
  }

  .blog-sidebar-right{
    grid-column:1 / -1;
  }

  .blog-sidebar-right .blog-panel{
    position:static;
  }

  body.blog-article-page .blog-sidebar-right .blog-stack{
    position:static;
  }
}

@media (max-width:760px){
  .blog-shell{
    width:min(100% - 24px, 1280px);
    padding:16px 0 32px;
  }

  .blog-header{
    padding:22px 18px;
    border-radius:20px;
  }

  .blog-layout{
    grid-template-columns:1fr;
  }

  .blog-top-nav,
  .blog-feed-head{
    align-items:flex-start;
  }

  .blog-card-link{
    grid-template-columns:1fr;
  }

  .blog-card-media{
    min-height:180px;
  }

  .blog-card-body{
    padding:20px;
  }

  .blog-card-body h3{
    font-size:22px;
  }

  .blog-tag-list{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .blog-article-shell{
    padding:22px 18px;
    border-radius:22px;
  }

  .blog-article-title{
    font-size:30px;
  }

  .article-summary-box{
    padding:14px 16px;
  }

  .article-body{
    margin-top:24px;
  }

  .article-body h2{
    font-size:24px;
    margin:30px 0 12px;
  }

  .article-body p,
  .article-lead{
    font-size:16px;
    line-height:1.8;
  }

  .article-product-card{
    grid-template-columns:1fr;
  }

  .article-product-media{
    max-width:220px;
  }

  .article-ad{
    margin:24px 0;
    padding:16px;
    border-radius:18px;
  }

  .related-posts{
    padding:18px;
  }
}
