:root {
  --max: 860px;
  font-family: -apple-system, system-ui, Segoe UI, Roboto, Arial, "Noto Sans", sans-serif;
}

.logo {
  font-weight: 700;
  text-decoration: none;
}

nav a {
  margin-right: 12px;
  text-decoration: none;
}

.post-list {
  list-style: none;
  padding: 0;
}

.post-list li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
}

.date {
  color: #888;
  font-size: 0.9em;
}

.post h1 {
  margin-bottom: 0;
}

.foot {
  color: #666;
  border-top: 1px solid #eee;
  margin-top: 24px;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: saturate(140%) blur(6px);
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
  z-index: 50;
}

.nav a {
  opacity: .9
}

.nav a:hover {
  opacity: 1
}

.site-header .container {
  max-width: 1080px;
  height: 64px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: bold;
  color: #0f172a;
  text-decoration: none;
}

.brand img {
  height: 40px;
  width: 40px;
  border-radius: 8px;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  color: #0f172a;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #2563eb;
  transition: width 0.25s ease;
}

.nav a:hover::after {
  width: 100%;
}

.site-footer {
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
  padding: 20px 0;
  margin-top: 40px;
}

.site-footer .container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #475569;
}

.footer-left img {
  height: 28px;
  width: 28px;
  border-radius: 6px;
}

.footer-right {
  display: flex;
  gap: 20px;
}

.footer-right a {
  font-size: 14px;
  color: #475569;
  text-decoration: none;
}

.footer-right a:hover {
  color: #2563eb;
}

/* 基础样式 */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #222;
  background-color: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 首页 hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 60px 20px;

  background: linear-gradient(180deg, #fff, #fafcff);
  border-bottom: 1px solid #eef2f7;
  border-radius: 12px;
  margin-top: 24px;
  padding: 72px 20px;
}

.hero-left {
  flex: 1;
}

.hero-title {
  font-size: 36px;
  margin-bottom: 10px;
}

.hero-sub {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
}

.core-grid {
  display: flex;
  gap: 20px;
}

.core-card {
  flex: 1;
  background: #f7f7f7;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #ddd;
  transition: all 0.2s ease;
}

.core-card:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.core-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 8px;
}

.core-desc {
  font-size: 14px;
  color: #555;
  margin-bottom: 15px;
}

.core-cta {
  font-size: 14px;
  font-weight: bold;
  color: #007acc;
}

/* 右侧配图 */
.hero-right img {
  margin-left: 20px;
  max-width: 400px;
  display: block;
}

/* ===== Section 1: What is an Android SBC? ===== */
.content-section {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.75;
  color: #333;
}

.content-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #222;
  position: relative;
}

.content-section h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: #0078d7;
  margin-top: 8px;
}

.content-section p {
  font-size: 1.05rem;
  margin-bottom: 20px;
  text-align: justify;
}

.content-section p:first-of-type {
  font-weight: 500;
}

@media (min-width: 768px) {
  .content-section {
    padding: 0 40px;
  }
}

/* ===== Section: Explore More (CTA) ===== */
.cta-section {
  background: #f5f8ff;
  padding: 50px 20px;
  text-align: center;
  border-radius: 8px;
  margin: 60px auto;
  max-width: 1100px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #222;
}

.cta-section p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #555;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.cta-btn {
  background: #0078d7;
  color: #fff;
  padding: 12px 25px;
  border-radius: 6px;
  font-size: 1rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background: #005bb5;
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .cta-section h2 {
    font-size: 1.5rem;
  }

  .cta-section p {
    font-size: 1rem;
  }
}

/* ===== Table 通用样式 ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 16px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
}

table thead {
  background-color: #f5f5f5;
}

table th,
table td {
  padding: 12px 15px;
  text-align: left;
  border: 1px solid #ddd;
}

table th {
  font-weight: 600;
}

table tbody tr:nth-child(even) {
  background-color: #fafafa;
  /* 条纹背景 */
}

table tbody tr:hover {
  background-color: #f0f7ff;
  /* 悬停高亮 */
}

/* 响应式表格（小屏幕滚动） */
@media (max-width: 768px) {
  table {
    border-radius: 8px;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* ===== Posts list ===== */
.post-hero.container {
  max-width: 1080px;
  margin: 40px auto 10px;
  padding: 0 20px;
}

.post-hero h1 {
  font-size: 34px;
  margin: 0 0 6px;
}

.post-hero-sub {
  color: #5b6470;
  margin: 0 0 18px;
}

.post-grid.container {
  max-width: 1080px;
  margin: 10px auto 40px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.post-card {
  grid-column: span 12;
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 12px;
  box-shadow: 0 1px 0 #eef2f7 inset;
  transition: .2s ease;
}

@media (min-width: 900px) {
  .post-card {
    grid-column: span 6;
  }
}

.post-card-link {
  display: block;
  padding: 20px;
  color: #0f172a;
  text-decoration: none;
  height: 100%;
}

.post-card:hover {
  border-color: #9ec5ff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, .08);
  transform: translateY(-2px);
}

.post-card-title {
  font-size: 20px;
  margin: 0 0 6px;
}

.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #6b7280;
  font-size: 14px;
}

.post-card-meta .dot {
  color: #cbd5e1
}

.post-tags {
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.post-tags li {
  background: #f1f5ff;
  color: #2563eb;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
}

.post-card-excerpt {
  color: #334155;
  margin: 10px 0 12px;
  line-height: 1.7;
}

.post-card-cta {
  color: #2563eb;
  font-weight: 600;
}

.pager.container {
  max-width: 1080px;
  margin: 10px auto 60px;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #64748b;
}

.pager-btn {
  background: #fff;
  border: 1px solid #e6ebf2;
  padding: 8px 14px;
  border-radius: 8px;
  color: #0f172a;
  text-decoration: none;
}

.pager-btn:hover {
  border-color: #9ec5ff;
  color: #2563eb;
}

/* ===== Single Post ===== */
.post.container {
  max-width: 1080px;
  margin: 32px auto 60px;
  padding: 0 20px;
}

.post-header {
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 12px;
  padding: 22px 20px;
  box-shadow: 0 1px 0 #eef2f7 inset;
}

.post-title {
  font-size: 30px;
  margin: 0 0 8px;
  letter-spacing: .2px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: #6b7280;
  font-size: 14px;
}

.post-meta .dot {
  color: #cbd5e1
}

.post-tags {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-desc {
  color: #475569;
  margin: 10px 0 0;
}

.post-cover {
  margin: 18px 0 0;
}

.post-cover img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(2, 6, 23, .07);
}

.post-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

@media (min-width: 1080px) {
  .post-body {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}

/* 正文排版（prose） */
.prose {
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 12px;
  padding: 24px 24px 28px;
  box-shadow: 0 1px 0 #eef2f7 inset;
  color: #222;
  line-height: 1.9;
}

.prose p {
  margin: 0 0 1.1em;
  color: #2b2f36;
}

.prose h2 {
  font-size: 1.6rem;
  margin: 1.6em 0 .6em;
  position: relative;
}

.prose h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  border-radius: 3px;
  margin-top: 8px;
}

.prose h3 {
  font-size: 1.25rem;
  margin: 1.2em 0 .4em;
}

.prose ul,
.prose ol {
  padding-left: 1.1em;
  margin: .6em 0 1em;
}

.prose li {
  margin: .2em 0;
}

.prose a {
  color: #2563eb;
}

.prose a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose blockquote {
  margin: 1.2em 0;
  padding: .8em 1em;
  background: #f7faff;
  border-left: 4px solid #9ec5ff;
  color: #334155;
  border-radius: 6px;
}

.prose code {
  background: #f3f6fb;
  padding: .1em .35em;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.prose pre {
  background: #0b1220;
  color: #e2e8f0;
  padding: 14px 16px;
  border-radius: 10px;
  overflow: auto;
}

.prose pre code {
  background: transparent;
  padding: 0;
}

.prose img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(2, 6, 23, .06);
}

.prose hr {
  border: 0;
  height: 1px;
  background: #eef2f7;
  margin: 28px 0;
}

/* 目录 (TOC) */
.toc {
  position: sticky;
  top: 92px;
  align-self: start;
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 12px;
  box-shadow: 0 1px 0 #eef2f7 inset;
  padding: 16px 14px;
}

.toc-title {
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 8px;
}

.toc-body {
  font-size: 14px;
  line-height: 1.6;
}

.toc-body ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.toc-body ul ul {
  padding-left: 16px;
}

.toc-body a {
  color: #334155;
  text-decoration: none;
  display: block;
  padding: 4px 0;
}

.toc-body a:hover {
  color: #2563eb;
}

.sidebar-card{
  margin-top:16px;
  border:1px solid #e5e7eb;
  background:#f9fafb;
  border-radius:10px;
  padding:14px;
}
.sidebar-card h3{margin:0 0 8px;font-size:14px}
.sidebar-card .cta-btn{
  background:none;
  display:block; font-size:14px; color:#2563eb; margin:6px 0;
  text-decoration:none;
}
.sidebar-card .cta-btn:hover{color:#1e40af; text-decoration:underline;}

/* 标签/导航 */
.post-footer {
  margin-top: 24px;
}

.post-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 16px;
}

.tag-chip {
  background: #f1f5ff;
  color: #2563eb;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #dbe7ff;
  font-size: 12px;
  text-decoration: none;
}

.tag-chip:hover {
  background: #e7f0ff;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e6ebf2;
  padding-top: 14px;
  color: #64748b;
}

.post-nav a {
  color: #0f172a;
  text-decoration: none;
}

.post-nav a:hover {
  color: #2563eb;
}