/* ============================================================
   消費者目線 by TWELVE — Article Page (Dark Theme)
   ============================================================ */

/* --- Layout --- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px) clamp(16px, 4vw, 48px);
}
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
}

/* --- Main --- */
.article-main { min-width: 0; }

.article-hero {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
  border: 1px solid var(--border);
}
.article-hero img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.article-meta {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px; font-size: 12px;
}
.article-meta-cat {
  background: rgba(0,229,160,0.15);
  color: var(--accent);
  font-weight: 700; padding: 3px 12px;
  border-radius: 100px; font-size: 11px;
}
.article-meta-date { color: var(--gray); }

.article-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900; line-height: 1.5;
  color: var(--white);
  margin-bottom: 24px; padding-bottom: 20px;
  border-bottom: 2px solid var(--accent);
}

/* --- Lead --- */
.article-lead {
  background: var(--dark2);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin-bottom: 32px;
  font-size: 14px; line-height: 1.9;
  color: var(--gray-light);
}

/* --- TOC --- */
.toc-box {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 40px;
}
.toc-title {
  font-size: 13px; font-weight: 700;
  color: var(--white);
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.toc-title::before {
  content: ''; display: inline-block;
  width: 16px; height: 16px;
  background: var(--accent); border-radius: 3px;
}
.toc-list { list-style: none; counter-reset: toc; }
.toc-list li { counter-increment: toc; margin-bottom: 8px; }
.toc-list li a {
  font-size: 13px; color: var(--gray-light);
  display: flex; align-items: baseline; gap: 10px;
  padding: 4px 0; transition: color var(--transition);
}
.toc-list li a::before {
  content: counter(toc);
  font-family: var(--font-en);
  font-size: 11px; font-weight: 700;
  color: var(--accent);
  background: rgba(0,229,160,0.12);
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.toc-list li a:hover, .toc-list li a.active { color: var(--accent); }

/* --- Body --- */
.article-body h2 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 900; color: var(--white);
  margin: 48px 0 20px;
  padding: 16px 20px;
  background: var(--dark2);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  line-height: 1.5;
}
.article-body h2:first-child { margin-top: 0; }

.article-body h3 {
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 700; color: var(--white);
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}

.article-body p { margin-bottom: 20px; line-height: 2.0; color: var(--gray-light); }
.article-body strong {
  color: var(--white); font-weight: 700;
  background: linear-gradient(transparent 60%, rgba(0,229,160,0.15) 60%);
}

.article-body ul, .article-body ol { margin: 16px 0 24px 24px; color: var(--gray-light); }
.article-body li { margin-bottom: 8px; line-height: 1.8; }

/* --- Tables --- */
.article-body table {
  width: 100%; border-collapse: collapse;
  margin: 24px 0 32px; font-size: 13px;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
}
.article-body thead th {
  background: var(--accent); color: var(--black);
  font-weight: 700; padding: 12px 16px;
  text-align: left; font-size: 12px;
}
.article-body tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--gray-light);
}
.article-body tbody tr { background: var(--dark2); }
.article-body tbody tr:nth-child(even) { background: var(--dark3); }
.article-body tbody tr:hover { background: rgba(0,229,160,0.05); }

/* --- Links --- */
.article-body a.inline-link {
  color: var(--accent); font-weight: 600;
  border-bottom: 1px dashed var(--accent);
  padding-bottom: 1px; transition: all var(--transition);
}
.article-body a.inline-link:hover { color: var(--accent2); border-bottom-style: solid; }
.article-body a.inline-link::after { content: ' \2192'; font-size: 0.9em; }

/* --- Blockquote --- */
.article-body blockquote {
  border-left: 3px solid var(--accent3);
  background: rgba(255,107,157,0.06);
  padding: 16px 20px; margin: 24px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--gray-light);
}

/* --- Article CTA --- */
.article-cta {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px; text-align: center;
  margin-top: 48px;
}
.article-cta-label {
  font-family: var(--font-en);
  font-size: 10px; font-weight: 700; letter-spacing: 0.2em;
  color: var(--gray); margin-bottom: 12px;
}
.article-cta-title {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 900; color: var(--white);
  line-height: 1.6; margin-bottom: 8px;
}
.article-cta-desc {
  font-size: 13px; color: var(--gray);
  margin-bottom: 24px; line-height: 1.8;
}
.article-cta-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.article-cta-btn {
  display: inline-block; font-size: 13px; font-weight: 700;
  padding: 12px 28px; border-radius: 100px;
  transition: all var(--transition);
}
.article-cta-btn--primary {
  background: var(--gradient); color: var(--black) !important;
}
.article-cta-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,229,160,0.25); }
.article-cta-btn--secondary {
  background: transparent; color: var(--white) !important;
  border: 1px solid var(--border);
}
.article-cta-btn--secondary:hover { border-color: var(--accent); color: var(--accent) !important; }

/* --- Sidebar --- */
.article-sidebar {
  position: sticky; top: 80px; align-self: start;
  display: flex; flex-direction: column; gap: 20px;
}
.sb-widget {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.sb-widget-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--white); padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 6px;
}
.sb-widget-title::before {
  content: ''; width: 3px; height: 14px;
  background: var(--accent); border-radius: 2px;
}

/* Sidebar CTA */
.sb-cta {
  background: var(--dark2);
  border: 1px solid var(--border);
  padding: 24px 16px; text-align: center;
  border-radius: var(--radius);
  position: relative; overflow: hidden;
}
.sb-cta::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient);
}
.sb-cta-title { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 8px; line-height: 1.6; }
.sb-cta-desc { font-size: 11px; color: var(--gray); margin-bottom: 16px; line-height: 1.7; }
.sb-cta-btn {
  display: inline-block;
  background: var(--gradient); color: var(--black) !important;
  font-size: 12px; font-weight: 700;
  padding: 10px 24px; border-radius: 100px;
  transition: all var(--transition);
}
.sb-cta-btn:hover { box-shadow: 0 4px 16px rgba(0,229,160,0.25); }

/* Sidebar Articles */
.sb-article-item {
  display: flex; gap: 10px;
  padding: 12px 16px; text-decoration: none; color: inherit;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.sb-article-item:last-child { border-bottom: none; }
.sb-article-item:hover { background: var(--dark3); }
.sb-article-rank {
  font-family: var(--font-en);
  font-size: 11px; font-weight: 700;
  color: var(--accent);
  background: rgba(0,229,160,0.1);
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.sb-article-text {
  font-size: 12px; font-weight: 600; line-height: 1.5;
  color: var(--gray-light);
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* Sidebar Categories */
.sb-cat-list { list-style: none; }
.sb-cat-list li { border-bottom: 1px solid var(--border); }
.sb-cat-list li:last-child { border-bottom: none; }
.sb-cat-list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; font-size: 13px; color: var(--gray-light);
  transition: all var(--transition);
}
.sb-cat-list a:hover { background: var(--dark3); color: var(--accent); }
.sb-cat-count {
  font-size: 11px; color: var(--gray);
  background: var(--dark3); padding: 2px 8px; border-radius: 100px;
}

/* --- Related --- */
.related-section {
  margin-top: 56px; padding-top: 40px;
  border-top: 1px solid var(--border);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 768px) { .related-grid { grid-template-columns: 1fr; } }
