/* ============================================================
   pages.css — 栏目页共享样式
   适用：news/ products/ resources/ 等自建栏目
   ============================================================ */

/* ========== Breadcrumb ========== */
.breadcrumb {
  max-width: var(--max-width); margin: 0 auto; padding: 20px 24px 0;
  font-size: 13px; color: var(--text-muted);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-secondary); transition: color var(--transition-fast); }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb .sep { color: var(--text-muted); font-size: 12px; }
.breadcrumb .current { color: var(--color-accent); font-weight: 500; }

/* Breadcrumb-bar variant (used in tutorial/news) */
.breadcrumb-bar {
  background: var(--bg-secondary); border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
}
.breadcrumb-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  font-size: 13px; color: var(--text-muted);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.breadcrumb-inner a { color: var(--text-secondary); transition: color var(--transition-fast); text-decoration: none; }
.breadcrumb-inner a:hover { color: var(--accent, var(--color-accent)); }
.breadcrumb-inner .sep { color: var(--text-muted); font-size: 12px; }

/* Page Main container */
.page-main {
  max-width: var(--max-width); margin: 0 auto; padding: 24px;
  min-height: 60vh;
}

/* ========== Page Header ========== */
.page-header {
  max-width: var(--max-width); margin: 0 auto; padding: 16px 24px 0;
}
.page-title-section {
  display: flex; align-items: flex-end; gap: 16px;
  padding-bottom: 20px; border-bottom: 1px solid var(--border-color);
  margin-bottom: 4px;
}
.page-title-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: #fff; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(14,165,233,0.25);
}
.page-title-icon.blue  { background: linear-gradient(135deg, #0ea5e9, #38bdf8); }
.page-title-icon.green { background: linear-gradient(135deg, #10b981, #34d399); }
.page-title-icon.amber { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.page-title-info { flex: 1; }
.page-title-info h1 { font-size: 26px; font-weight: 800; line-height: 1.2; }
.page-title-info p { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }
.page-meta { display: flex; gap: 16px; margin-top: 8px; font-size: 12px; color: var(--text-muted); }
.page-meta span { display: flex; align-items: center; gap: 4px; }

/* ========== Main Layout: Content + Sidebar ========== */
.main-layout {
  max-width: var(--max-width); margin: 0 auto; padding: 24px 24px 60px;
  display: flex; gap: 28px; align-items: flex-start;
}
.content-area { flex: 1; min-width: 0; }
.sidebar { width: 300px; flex-shrink: 0; }

/* ========== Category / Channel Tabs ========== */
.category-tabs {
  display: flex; gap: 6px; margin-bottom: 24px; flex-wrap: wrap;
  background: var(--bg-card); padding: 6px; border-radius: 12px;
  border: 1px solid var(--border-color);
}
.category-tab {
  padding: 8px 18px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  transition: all var(--transition-fast); white-space: nowrap;
  cursor: pointer;
}
.category-tab:hover { color: var(--color-accent); background: rgba(14,165,233,0.05); }
.category-tab.active {
  background: linear-gradient(135deg, #0ea5e9, #7c3aed);
  color: #fff; font-weight: 600;
}

/* ========== Card Grid (通用) ========== */
.card-grid { display: grid; gap: 16px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.base-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 22px;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  display: block; color: inherit;
}
.base-card:hover {
  transform: translateY(-2px);
  border-color: rgba(14,165,233,0.25);
  box-shadow: var(--shadow-hover);
}

/* ========== Pagination ========== */
.pagination {
  display: flex; justify-content: center; align-items: center; gap: 8px;
  margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border-color);
}
.page-btn {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  border: 1px solid var(--border-color);
  background: var(--bg-card); transition: all var(--transition-fast);
}
.page-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.page-btn.active {
  background: linear-gradient(135deg, #0ea5e9, #7c3aed);
  color: #fff; border-color: transparent; font-weight: 600;
}
.page-btn.arrow { font-size: 16px; }

/* ========== Sidebar ========== */
.sidebar-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 20px; margin-bottom: 16px;
}
.sidebar-card h4 {
  font-size: 15px; font-weight: 700; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.sidebar-card h4::before {
  content: ''; width: 4px; height: 18px; border-radius: 2px;
  background: linear-gradient(180deg, #0ea5e9, #7c3aed); flex-shrink: 0;
}

/* Hot List */
.hot-list-item {
  display: flex; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}
.hot-list-item:last-child { border-bottom: none; }
.hot-list-item:hover { padding-left: 6px; }
.hot-list-rank {
  width: 22px; height: 22px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0; color: #fff;
}
.hot-list-rank.top1 { background: linear-gradient(135deg, #ef4444, #f97316); }
.hot-list-rank.top2 { background: linear-gradient(135deg, #f97316, #f59e0b); }
.hot-list-rank.top3 { background: linear-gradient(135deg, #f59e0b, #eab308); }
.hot-list-rank.normal { background: #94a3b8; }
.hot-list-content h5 { font-size: 13px; font-weight: 600; line-height: 1.4; }
.hot-list-content span { font-size: 11px; color: var(--text-muted); }

/* Tags Cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  padding: 6px 14px; border-radius: 16px;
  font-size: 12px; font-weight: 500; color: var(--text-secondary);
  background: var(--bg-secondary); transition: all var(--transition-fast);
  border: 1px solid transparent;
}
.tag-cloud a:hover {
  color: var(--color-accent); background: rgba(14,165,233,0.06);
  border-color: rgba(14,165,233,0.2);
}

/* CTA Card */
.sidebar-cta {
  background: linear-gradient(135deg, #0a1628, #132244);
  border-radius: var(--radius-md); padding: 24px 20px; margin-bottom: 16px;
  text-align: center; position: relative; overflow: hidden;
}
.sidebar-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(14,165,233,0.15) 0%, transparent 70%);
}
.sidebar-cta * { position: relative; z-index: 1; }
.sidebar-cta h4 { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.sidebar-cta p { color: rgba(255,255,255,0.6); font-size: 13px; margin-bottom: 16px; line-height: 1.5; }
.sidebar-cta .btn-join { display: inline-block; padding: 10px 24px; font-size: 14px; }

/* ========== Article Layout (detail page) ========== */
.article-wrapper {
  max-width: 860px; margin: 0 auto;
  padding: 0 24px 60px;
}
.article-container {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); padding: 48px 52px;
  box-shadow: var(--shadow-sm);
  margin-top: 24px;
}

/* Article Header */
.article-header { margin-bottom: 36px; }
.article-category {
  display: inline-block; padding: 4px 14px; border-radius: 14px;
  font-size: 12px; font-weight: 600; margin-bottom: 16px;
  background: rgba(124,58,237,0.1); color: #7c3aed;
}
.article-title {
  font-size: 32px; font-weight: 800; line-height: 1.4;
  color: var(--text-primary); margin-bottom: 16px;
  letter-spacing: 0.3px;
}
.article-meta {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding-bottom: 24px; border-bottom: 1px solid var(--border-light);
}
.article-meta-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); }
.article-meta-divider { width: 1px; height: 16px; background: var(--border-color); }
.article-tags { display: flex; gap: 6px; margin-left: auto; }
.article-tags span {
  font-size: 11px; padding: 3px 10px; border-radius: 12px;
  background: var(--bg-secondary); color: var(--text-muted);
  transition: all var(--transition-fast);
  cursor: pointer;
}
.article-tags span:hover { background: rgba(14,165,233,0.08); color: var(--color-accent); }

/* ========== Article Content Typography ========== */
.article-content {
  font-size: 16px; line-height: 1.85; color: var(--text-primary);
}
.article-content .lead {
  font-size: 17px; line-height: 1.9; color: var(--text-secondary);
  padding: 20px 24px; margin-bottom: 32px;
  background: var(--bg-secondary); border-radius: var(--radius-md);
  border-left: 4px solid var(--color-accent);
}
.article-content h2 {
  font-size: 22px; font-weight: 800; margin: 40px 0 16px;
  padding-left: 14px; border-left: 4px solid;
  border-image: linear-gradient(180deg, #0ea5e9, #7c3aed) 1;
  line-height: 1.3;
}
.article-content h3 {
  font-size: 18px; font-weight: 700; margin: 28px 0 12px;
  color: var(--text-primary);
}
.article-content p { margin-bottom: 16px; color: var(--text-primary); }
.article-content .highlight-box {
  background: linear-gradient(135deg, rgba(14,165,233,0.04), rgba(124,58,237,0.04));
  border: 1px solid rgba(14,165,233,0.15);
  border-radius: var(--radius-md); padding: 20px 24px;
  margin: 24px 0;
}
.article-content .highlight-box p { margin-bottom: 0; font-weight: 500; }
.article-content blockquote {
  margin: 24px 0; padding: 20px 24px;
  background: var(--bg-secondary); border-radius: var(--radius-md);
  border-left: 4px solid var(--color-purple);
  font-style: italic; color: var(--text-secondary);
}
.article-content ul { margin: 16px 0 24px; }
.article-content ul li {
  position: relative; padding: 6px 0 6px 24px;
  color: var(--text-primary); line-height: 1.7;
}
.article-content ul li::before {
  content: ''; position: absolute; left: 8px;
  top: 14px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-accent);
}
.article-content ul li.cross::before { background: #ef4444; }
.article-content ul li.check::before { background: #10b981; }
.article-content .data-table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
  font-size: 14px; border-radius: var(--radius-md);
  overflow: hidden; border: 1px solid var(--border-color);
}
.article-content .data-table thead th {
  background: linear-gradient(135deg, #0ea5e9, #7c3aed);
  color: #fff; padding: 12px 16px; text-align: left;
  font-weight: 600; font-size: 13px;
}
.article-content .data-table tbody td {
  padding: 11px 16px; border-bottom: 1px solid var(--border-light);
  color: var(--text-primary); background: var(--bg-card);
}
.article-content .data-table tbody tr:hover td { background: var(--bg-secondary); }
.article-divider {
  margin: 36px 0; text-align: center; color: var(--text-muted);
  font-size: 18px; letter-spacing: 8px; user-select: none;
}
.article-content .conclusion-box {
  margin: 32px 0; padding: 28px 32px;
  background: linear-gradient(135deg, #0a1628, #132244);
  border-radius: var(--radius-lg); position: relative; overflow: hidden;
}
.article-content .conclusion-box::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(14,165,233,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.article-content .conclusion-box h3 {
  color: #38bdf8; margin-top: 0; position: relative; z-index: 1;
}
.article-content .conclusion-box p, .article-content .conclusion-box li {
  color: rgba(255,255,255,0.8); position: relative; z-index: 1;
}
.article-content .conclusion-box ul li::before { background: #38bdf8; }

/* ========== Article Footer ========== */
.article-footer {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--border-color);
}
.article-actions { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.btn-action {
  padding: 8px 18px; border-radius: 8px;
  font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 6px;
  background: var(--bg-secondary); color: var(--text-secondary);
  border: 1px solid var(--border-color); transition: all var(--transition-fast);
}
.btn-action:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn-action.like:hover { border-color: #ef4444; color: #ef4444; background: rgba(239,68,68,0.05); }
.article-statement {
  font-size: 12px; color: var(--text-muted); line-height: 1.8;
  padding: 16px; background: var(--bg-secondary); border-radius: var(--radius-sm);
}

/* ========== Related Items ========== */
.related-section { max-width: 860px; margin: 0 auto; padding: 40px 24px 60px; }
.related-section h3 {
  font-size: 18px; font-weight: 700; margin-bottom: 16px;
  padding-left: 12px; border-left: 3px solid var(--color-accent);
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 18px 20px;
  transition: all var(--transition-fast); overflow: hidden;
  box-shadow: var(--shadow-sm); display: block; color: inherit;
}
.related-card:hover {
  transform: translateY(-2px);
  border-color: rgba(14,165,233,0.2);
  box-shadow: var(--shadow-hover);
}
.related-card .badge-row { margin-bottom: 10px; }
.related-card .badge-row span {
  font-size: 11px; padding: 2px 8px; border-radius: 10px;
  font-weight: 500;
}
.related-card .badge-row span.report  { background: rgba(14,165,233,0.08);  color: #0ea5e9; }
.related-card .badge-row span.insight { background: rgba(124,58,237,0.08);  color: #7c3aed; }
.related-card .badge-row span.event   { background: rgba(16,185,129,0.08);  color: #10b981; }
.related-card .badge-row span.tool    { background: rgba(245,158,11,0.08);  color: #f59e0b; }
.related-card h4 { font-size: 14px; font-weight: 600; line-height: 1.5; margin-bottom: 8px; }
.related-card p { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* ========== Reading Progress Bar ========== */
.reading-progress {
  position: fixed; top: 64px; left: 0; width: 100%; height: 3px;
  background: var(--border-color); z-index: 999;
}
.reading-progress-bar {
  height: 100%; background: linear-gradient(90deg, #0ea5e9, #7c3aed);
  width: 0%; transition: width 0.1s ease;
}

/* ========== Search Bar (products/resources listing) ========== */
.search-bar {
  display: flex; gap: 10px; margin-bottom: 20px; align-items: center;
}
.search-bar input {
  flex: 1; padding: 11px 16px; border-radius: 10px;
  border: 1px solid var(--border-color); background: var(--bg-card);
  font-size: 14px; color: var(--text-primary);
  transition: border-color var(--transition-fast);
}
.search-bar input::placeholder { color: var(--text-muted); }
.search-bar input:focus { border-color: var(--color-accent); }
.search-bar .btn-search {
  padding: 11px 20px; border-radius: 10px;
  font-size: 14px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #0ea5e9, #7c3aed);
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.search-bar .btn-search:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(14,165,233,0.3); }

/* ========== Responsive ========== */
@media (max-width: 1199px) {
  .card-grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991px) {
  .main-layout { flex-direction: column; }
  .sidebar { width: 100%; }
  .related-grid { grid-template-columns: 1fr; }
  .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .page-title-section { flex-direction: column; align-items: flex-start; gap: 12px; }
  .page-title-info h1 { font-size: 22px; }
  .category-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .pagination { flex-wrap: wrap; }
  .article-container { padding: 28px 20px; }
  .article-title { font-size: 24px; }
  .article-content { font-size: 15px; }
  .article-content h2 { font-size: 19px; }
  .article-meta { gap: 12px; }
  .article-tags { margin-left: 0; width: 100%; margin-top: 4px; }
  .card-grid.cols-2, .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: 1fr; }
  .search-bar { flex-direction: column; }
}

/* ========== Tutorial Detail Page ========== */

/* Layout */
.tutorial-container {
  max-width: var(--max-width); margin: 24px auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 300px; gap: 32px;
}
.tutorial-article { min-width: 0; }

/* Tutorial Header */
.tutorial-header { margin-bottom: 28px; }
.tutorial-badges { display: flex; gap: 8px; margin-bottom: 12px; }
.tutorial-badge {
  display: inline-block; padding: 3px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.5px;
}
.tutorial-badge.beginner { background: #e8f5e9; color: #2e7d32; }
.tutorial-badge.intermediate { background: #fff3e0; color: #e65100; }
.tutorial-badge.advanced { background: #fce4ec; color: #c62828; }
.tutorial-badge.popular { background: #fff8e1; color: #f57f17; }
.tutorial-title {
  font-size: 28px; font-weight: 700; line-height: 1.4;
  color: var(--text-primary); margin: 0 0 14px;
}
.tutorial-meta {
  display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px;
  color: var(--text-secondary);
}

/* Info Box */
.tutorial-info-box {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  background: var(--bg-secondary); border-radius: 12px;
  padding: 20px; margin-bottom: 28px;
}
.info-item { text-align: center; }
.info-label {
  display: block; font-size: 12px; color: var(--text-muted);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px;
}
.info-value { display: block; font-size: 15px; font-weight: 600; color: var(--text-primary); }

/* Table of Contents */
.toc-box {
  background: var(--bg-secondary); border-left: 4px solid var(--color-accent);
  border-radius: 8px; padding: 20px 24px; margin-bottom: 32px;
}
.toc-box h3 { margin: 0 0 12px; font-size: 16px; }
.toc-box ol { margin: 0; padding-left: 20px; list-style: decimal; }
.toc-box li { padding: 4px 0; line-height: 1.6; }
.toc-box a { color: var(--color-accent); text-decoration: none; }
.toc-box a:hover { text-decoration: underline; }

/* Sections */
.tutorial-section {
  margin-bottom: 36px; padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}
.tutorial-section:last-of-type { border-bottom: none; }
.tutorial-section h2 {
  font-size: 22px; font-weight: 700; margin: 0 0 16px;
  color: var(--text-primary); padding-bottom: 8px;
  border-bottom: 2px solid var(--color-accent); display: inline-block;
}
.tutorial-section h3 {
  font-size: 17px; font-weight: 600; margin: 20px 0 10px;
  color: var(--text-primary);
}
.tutorial-section p { line-height: 1.8; color: var(--text-secondary); margin-bottom: 12px; }
.tutorial-section ul { padding-left: 24px; margin-bottom: 14px; list-style: disc; }
.tutorial-section ol { padding-left: 24px; margin-bottom: 14px; list-style: decimal; }
.tutorial-section li { line-height: 1.8; color: var(--text-secondary); margin-bottom: 4px; list-style: inherit; }

/* Tip Boxes */
.tip-box {
  padding: 14px 18px; border-radius: 8px; margin: 16px 0;
  font-size: 14px; line-height: 1.7;
}
.tip-box.info {
  background: #e3f2fd; border-left: 4px solid #1976d2; color: #0d47a1;
}
.tip-box.warning {
  background: #fff8e1; border-left: 4px solid #f9a825; color: #e65100;
}
.tip-box.success {
  background: #e8f5e9; border-left: 4px solid #43a047; color: #1b5e20;
}

/* Example Box */
.example-box {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0;
}
.example-bad, .example-good {
  padding: 16px; border-radius: 8px;
}
.example-bad { background: #fce4ec; border: 1px solid #ef9a9a; }
.example-good { background: #e8f5e9; border: 1px solid #a5d6a7; }
.example-bad strong { color: #c62828; }
.example-good strong { color: #2e7d32; }
.example-bad p, .example-good p { margin: 8px 0 0; font-size: 14px; line-height: 1.6; }

/* Code / Pre */
.tutorial-section pre {
  background: #1e1e2e; color: #cdd6f4; padding: 16px 20px;
  border-radius: 8px; overflow-x: auto; font-size: 13px;
  line-height: 1.6; margin: 12px 0;
}
.tutorial-section code { font-family: 'Fira Code', 'Consolas', monospace; }

/* Formula Box */
.formula-box {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff; padding: 18px 24px; border-radius: 10px;
  font-size: 18px; text-align: center; margin: 16px 0;
  letter-spacing: 1px;
}

/* Prompt Example */
.prompt-example {
  background: var(--bg-secondary); border-radius: 10px;
  padding: 20px; margin: 16px 0; border: 1px solid var(--border-color);
}
.prompt-example h4 { margin: 0 0 12px; font-size: 15px; color: var(--color-accent); }
.prompt-example pre { margin: 0; background: #1e1e2e; }

/* Comparison Table */
.comparison-table {
  width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px;
}
.comparison-table th, .comparison-table td {
  padding: 12px 16px; text-align: center; border: 1px solid var(--border-color);
}
.comparison-table th { background: var(--color-accent); color: #fff; font-weight: 600; }
.comparison-table tr:nth-child(even) td { background: var(--bg-secondary); }
.comparison-table td:first-child { text-align: left; font-weight: 600; }

/* FAQ */
.faq-item { padding: 16px 0; border-bottom: 1px solid var(--border-color); }
.faq-item:last-child { border-bottom: none; }
.faq-item h4 { font-size: 15px; font-weight: 600; margin: 0 0 8px; color: var(--text-primary); }
.faq-item p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--text-secondary); }

/* Download Box */
.download-box { background: var(--bg-secondary); border-radius: 12px; padding: 24px; margin: 28px 0; }
.download-box h3 { margin: 0 0 16px; font-size: 17px; }
.download-list { list-style: none; padding: 0; margin: 0; }
.download-list li { margin-bottom: 10px; list-style: none; }
.download-list li:last-child { margin-bottom: 0; }
.download-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; background: var(--bg-primary);
  border: 1px solid var(--border-color); border-radius: 8px;
  text-decoration: none; transition: all 0.2s;
}
.download-item:hover { border-color: var(--color-accent); box-shadow: 0 2px 8px rgba(0,0,0,0.08); transform: translateY(-1px); }
.file-icon { font-size: 28px; }
.file-info { display: flex; flex-direction: column; }
.file-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.file-size { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Feedback Box */
.feedback-box { text-align: center; padding: 28px; margin: 28px 0; background: var(--bg-secondary); border-radius: 12px; }
.feedback-box h3 { margin: 0 0 16px; font-size: 17px; }
.rating-buttons { display: flex; justify-content: center; gap: 16px; }
.btn-rating {
  padding: 10px 28px; border: 2px solid var(--border-color); border-radius: 24px;
  background: var(--bg-primary); font-size: 15px; cursor: pointer; transition: all 0.2s;
}
.btn-rating:hover { border-color: var(--color-accent); background: var(--color-accent); color: #fff; }

/* Tutorial Sidebar */
.tutorial-sidebar { position: sticky; top: 80px; align-self: start; }
.tutorial-sidebar .sidebar-card { background: var(--bg-secondary); border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.tutorial-sidebar .sidebar-card h3 { font-size: 16px; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--color-accent); }
.related-tutorials { list-style: none; padding: 0; margin: 0; }
.related-tutorials li { padding: 6px 0; }
.related-tutorials a { font-size: 14px; color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.related-tutorials a:hover { color: var(--color-accent); }
.tutorial-sidebar .tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tutorial-sidebar .tag {
  display: inline-block; padding: 4px 12px; border-radius: 16px;
  font-size: 12px; background: var(--bg-primary); color: var(--text-secondary);
  border: 1px solid var(--border-color); cursor: pointer; transition: all 0.2s;
}
.tutorial-sidebar .tag:hover { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }

/* Responsive */
@media (max-width: 900px) {
  .tutorial-container { grid-template-columns: 1fr; }
  .tutorial-sidebar { position: static; }
  .tutorial-info-box { grid-template-columns: repeat(2, 1fr); }
  .example-box { grid-template-columns: 1fr; }
  .tutorial-title { font-size: 22px; }
}
@media (max-width: 500px) {
  .tutorial-info-box { grid-template-columns: 1fr; }
  .tutorial-meta { flex-direction: column; gap: 6px; }
  .comparison-table { font-size: 12px; }
  .comparison-table th, .comparison-table td { padding: 8px; }
}
