/* ==========================================================================
   西瓜视频 - 整站样式表
   自然科普风：白底、自然色、清晰分类标签感
   ========================================================================== */

/* ==========================================================================
   Base / 基础
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333333;
  background: #FFFFFF;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #2F5D50;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #C9703E;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  line-height: 1.4;
  font-weight: 700;
  color: #333333;
}

p {
  margin: 0;
}

figure {
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==========================================================================
   Layout / 布局骨架
   ========================================================================== */

.site-header {
  background: #FFFFFF;
  border-bottom: 1px solid #E8E4DE;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: #2F5D50;
  letter-spacing: 0.02em;
}

.brand-tagline {
  font-size: 13px;
  color: #8AA6A3;
}

.site-nav {
  flex-shrink: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  color: #333333;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-list li a:hover {
  background: #F0F5F3;
  color: #2F5D50;
}

.nav-list li a.is-current {
  background: #2F5D50;
  color: #FFFFFF;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-icon {
  display: block;
  width: 22px;
  height: 2px;
  background: #2F5D50;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.site-footer {
  background: #2F5D50;
  color: #E8F0EE;
  margin-top: 0;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-brand-name {
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.footer-brand-desc {
  font-size: 14px;
  line-height: 1.8;
  color: #C9DCD8;
  max-width: 360px;
}

.footer-group-title {
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.footer-group ul li {
  margin-bottom: 8px;
}

.footer-group ul li a {
  font-size: 14px;
  color: #C9DCD8;
  transition: color 0.2s ease;
}

.footer-group ul li a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-bottom p {
  font-size: 13px;
  color: #A8C4BF;
}

/* ==========================================================================
   Components / 通用组件
   ========================================================================== */

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #8AA6A3;
  margin-bottom: 24px;
}

.breadcrumb a {
  color: #3B6B62;
}

.breadcrumb a:hover {
  color: #C9703E;
}

.breadcrumb-sep {
  color: #B8C9C6;
}

.breadcrumb-current {
  color: #666666;
}

/* 页标题区 */
.page-header {
  margin-bottom: 36px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: #333333;
  margin-bottom: 12px;
  line-height: 1.4;
}

.page-description {
  font-size: 16px;
  color: #666666;
  line-height: 1.8;
  max-width: 720px;
}

/* 章节标题 */
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: #2F5D50;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #E8E4DE;
}

/* 内页主容器 */
.inner-main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

/* 内页侧栏 */
.page-aside {
  min-width: 0;
}

.aside-block {
  background: #F7FAF9;
  border: 1px solid #E4EEEB;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}

.aside-title {
  font-size: 16px;
  font-weight: 700;
  color: #2F5D50;
  margin-bottom: 14px;
}

.aside-list li {
  margin-bottom: 10px;
}

.aside-list li:last-child {
  margin-bottom: 0;
}

.aside-list li a {
  font-size: 14px;
  color: #3B6B62;
  display: inline-block;
  padding: 4px 0;
}

.aside-list li a:hover {
  color: #C9703E;
}

/* 侧栏链接 */
.sidebar-links {
  min-width: 0;
}

.sidebar-card {
  background: #F7FAF9;
  border: 1px solid #E4EEEB;
  border-radius: 8px;
  padding: 24px;
}

.sidebar-card h2 {
  font-size: 16px;
  font-weight: 700;
  color: #2F5D50;
  margin-bottom: 14px;
}

.sidebar-card ul li {
  margin-bottom: 10px;
}

.sidebar-card ul li:last-child {
  margin-bottom: 0;
}

.sidebar-card ul li a {
  font-size: 14px;
  color: #3B6B62;
}

.sidebar-card ul li a:hover {
  color: #C9703E;
}

/* ==========================================================================
   Pages / 首页
   ========================================================================== */

.home-main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

/* 筛选区 */
.filter-section {
  padding: 48px 0 8px;
}

.filter-heading-wrap {
  margin-bottom: 28px;
}

.filter-heading-wrap .page-title {
  font-size: 30px;
  color: #2F5D50;
  margin-bottom: 12px;
}

.filter-intro {
  font-size: 16px;
  color: #666666;
  max-width: 720px;
  line-height: 1.8;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #F7FAF9;
  border: 1px solid #E4EEEB;
  border-radius: 8px;
  padding: 16px 20px;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tab {
  display: inline-block;
  padding: 8px 18px;
  font-size: 14px;
  color: #3B6B62;
  background: #FFFFFF;
  border: 1px solid #D5E4E0;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-tab:hover {
  border-color: #2F5D50;
  color: #2F5D50;
}

.filter-tab.is-active {
  background: #2F5D50;
  border-color: #2F5D50;
  color: #FFFFFF;
  font-weight: 600;
}

.result-count {
  font-size: 14px;
  color: #666666;
  white-space: nowrap;
}

.result-count strong {
  color: #C9703E;
  font-size: 18px;
  margin: 0 2px;
}

/* 条目列表 */
.entry-list-section {
  padding: 40px 0 8px;
}

.entry-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.entry-card {
  background: #FFFFFF;
  border: 1px solid #E8E4DE;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.entry-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(47, 93, 80, 0.08);
}

.entry-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #F0F5F3;
}

.entry-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.entry-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  color: #3B6B62;
  background: #E8F0EE;
  padding: 3px 10px;
  border-radius: 4px;
}

.entry-card:nth-child(3n+2) .entry-tag {
  color: #8A6D3B;
  background: #F5EDE0;
}

.entry-card:nth-child(3n+3) .entry-tag {
  color: #A34E2A;
  background: #F8E8E0;
}

.entry-title {
  font-size: 18px;
  font-weight: 700;
  color: #333333;
  line-height: 1.4;
}

.entry-desc {
  font-size: 14px;
  color: #666666;
  line-height: 1.7;
  flex: 1;
}

.entry-link {
  font-size: 14px;
  font-weight: 600;
  color: #2F5D50;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.entry-link:hover {
  color: #C9703E;
}

.entry-link::after {
  content: "→";
  font-size: 14px;
  transition: transform 0.2s ease;
}

.entry-link:hover::after {
  transform: translateX(3px);
}

/* 路径提示带 */
.guide-path-section {
  padding: 48px 0 8px;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.guide-step {
  background: #F7FAF9;
  border: 1px solid #E4EEEB;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.guide-step .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #2F5D50;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

.step-title {
  font-size: 17px;
  font-weight: 700;
  color: #333333;
}

.step-desc {
  font-size: 14px;
  color: #666666;
  line-height: 1.7;
  min-width: 0;
  word-break: break-word;
}

.guide-more {
  margin-top: 24px;
  font-size: 14px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.guide-more a {
  color: #2F5D50;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}

.guide-more a:hover {
  color: #C9703E;
  border-bottom-color: #C9703E;
}

/* 更新摘要 */
.update-summary-section {
  padding: 48px 0 8px;
}

.update-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.update-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 18px;
  background: #FAFCFB;
  border: 1px solid #E8E4DE;
  border-radius: 6px;
  transition: border-color 0.2s ease;
}

.update-item:hover {
  border-color: #C89B6D;
}

.update-date {
  font-size: 13px;
  color: #8A6D3B;
  white-space: nowrap;
  font-weight: 600;
}

.update-item a {
  font-size: 15px;
  color: #333333;
}

.update-item a:hover {
  color: #2F5D50;
}

.more-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: #2F5D50;
  padding: 8px 16px;
  border: 1px solid #2F5D50;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}

.more-link:hover {
  background: #2F5D50;
  color: #FFFFFF;
}

/* 帮助入口 */
.help-entry-section {
  padding: 48px 0 8px;
}

.help-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.help-card {
  background: #FFFFFF;
  border: 1px solid #E8E4DE;
  border-radius: 8px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.help-card:hover {
  border-color: #2F5D50;
  box-shadow: 0 4px 16px rgba(47, 93, 80, 0.08);
  transform: translateY(-2px);
}

.help-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #2F5D50;
}

.help-card-desc {
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
}

/* ==========================================================================
   Pages / 入门指南
   ========================================================================== */

.layout-shell.sidebar-left {
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 24px 64px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}

.layout-shell.sidebar-left .page-aside {
  grid-column: 1;
  grid-row: 1;
}

.layout-shell.sidebar-left .inner-main {
  grid-column: 2;
  grid-row: 1;
  padding: 0;
  max-width: none;
}

.guide-step {
  margin-bottom: 36px;
  scroll-margin-top: 88px;
}

.guide-step .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #2F5D50;
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 14px;
}

.step-content h2 {
  font-size: 22px;
  color: #2F5D50;
  margin-bottom: 14px;
}

.step-content p {
  font-size: 15px;
  color: #444444;
  line-height: 1.8;
  margin-bottom: 14px;
}

.step-content p:last-child {
  margin-bottom: 0;
}

.guide-figure {
  margin: 20px 0;
  border: 1px solid #E8E4DE;
  border-radius: 8px;
  overflow: hidden;
  background: #F7FAF9;
}

.guide-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.guide-figure figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: #666666;
  background: #F7FAF9;
  border-top: 1px solid #E8E4DE;
}

.next-guide {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid #E8E4DE;
}

.next-guide h2 {
  font-size: 20px;
  color: #2F5D50;
  margin-bottom: 12px;
}

.next-guide > p {
  font-size: 14px;
  color: #666666;
  margin-bottom: 20px;
}

.guide-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.guide-link-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #F7FAF9;
  border: 1px solid #E4EEEB;
  border-radius: 8px;
  padding: 18px 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.guide-link-card:hover {
  border-color: #2F5D50;
  box-shadow: 0 4px 14px rgba(47, 93, 80, 0.08);
}

.guide-link-title {
  font-size: 16px;
  font-weight: 700;
  color: #2F5D50;
}

.guide-link-desc {
  font-size: 13px;
  color: #666666;
  line-height: 1.6;
}

/* ==========================================================================
   Pages / 浏览任务
   ========================================================================== */

.task-tabs {
  margin-bottom: 32px;
}

.tab-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab-item {
  display: inline-block;
  padding: 8px 18px;
  font-size: 14px;
  color: #3B6B62;
  background: #FFFFFF;
  border: 1px solid #D5E4E0;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tab-item:hover {
  border-color: #2F5D50;
  color: #2F5D50;
}

.task-groups {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 40px;
}

.task-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  background: #FFFFFF;
  border: 1px solid #E8E4DE;
  border-radius: 8px;
  padding: 28px;
  scroll-margin-top: 88px;
}

.task-copy {
  min-width: 0;
}

.task-copy h2 {
  font-size: 20px;
  color: #2F5D50;
  margin-bottom: 12px;
}

.task-copy > p {
  font-size: 15px;
  color: #444444;
  line-height: 1.8;
  margin-bottom: 14px;
}

.task-steps {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.task-steps li {
  position: relative;
  padding: 6px 0 6px 28px;
  font-size: 14px;
  color: #444444;
  line-height: 1.7;
}

.task-steps li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #C89B6D;
}

.task-steps li strong {
  color: #333333;
  font-weight: 600;
  margin-right: 4px;
}

.task-media {
  border: 1px solid #E8E4DE;
  border-radius: 8px;
  overflow: hidden;
  background: #F7FAF9;
  align-self: start;
}

.task-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.task-media figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: #666666;
  background: #F7FAF9;
  border-top: 1px solid #E8E4DE;
}

.task-outcome {
  background: #F7FAF9;
  border: 1px solid #E4EEEB;
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 32px;
}

.task-outcome h2 {
  font-size: 20px;
  color: #2F5D50;
  margin-bottom: 10px;
}

.task-outcome > p {
  font-size: 15px;
  color: #444444;
  line-height: 1.8;
  margin-bottom: 16px;
}

.outcome-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.outcome-links li a {
  display: inline-block;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #2F5D50;
  background: #FFFFFF;
  border: 1px solid #D5E4E0;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}

.outcome-links li a:hover {
  background: #2F5D50;
  color: #FFFFFF;
}

/* ==========================================================================
   Pages / 常见误区
   ========================================================================== */

.mistake-index {
  margin-bottom: 40px;
}

.mistake-index h2 {
  font-size: 20px;
  color: #2F5D50;
  margin-bottom: 10px;
}

.mistake-index > p {
  font-size: 15px;
  color: #444444;
  line-height: 1.8;
  margin-bottom: 16px;
}

.index-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.index-list li a {
  display: inline-block;
  padding: 8px 18px;
  font-size: 14px;
  color: #3B6B62;
  background: #FFFFFF;
  border: 1px solid #D5E4E0;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.index-list li a:hover {
  border-color: #2F5D50;
  color: #2F5D50;
}

.mistake-category {
  margin-bottom: 40px;
  scroll-margin-top: 88px;
}

.mistake-category > h2 {
  font-size: 20px;
  color: #2F5D50;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid #E8E4DE;
}

.mistake-item {
  background: #FFFFFF;
  border: 1px solid #E8E4DE;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 16px;
}

.mistake-item h3 {
  font-size: 17px;
  color: #333333;
  margin-bottom: 12px;
  padding-left: 14px;
  border-left: 4px solid #C89B6D;
}

.mistake-item p {
  font-size: 14px;
  color: #444444;
  line-height: 1.8;
  margin-bottom: 10px;
}

.mistake-item p:last-child {
  margin-bottom: 0;
}

.mistake-item p strong {
  color: #2F5D50;
  font-weight: 600;
  margin-right: 4px;
}

.mistake-figure {
  margin: 20px 0;
  border: 1px solid #E8E4DE;
  border-radius: 8px;
  overflow: hidden;
  background: #F7FAF9;
}

.mistake-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.mistake-figure figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: #666666;
  background: #F7FAF9;
  border-top: 1px solid #E8E4DE;
}

.self-help-path {
  background: #F7FAF9;
  border: 1px solid #E4EEEB;
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 32px;
}

.self-help-path h2 {
  font-size: 20px;
  color: #2F5D50;
  margin-bottom: 10px;
}

.self-help-path > p {
  font-size: 15px;
  color: #444444;
  line-height: 1.8;
  margin-bottom: 18px;
}

.path-steps {
  list-style: none;
  counter-reset: path-step;
}

.path-steps li {
  counter-increment: path-step;
  position: relative;
  padding: 8px 0 8px 44px;
  font-size: 14px;
  color: #444444;
  line-height: 1.7;
}

.path-steps li::before {
  content: counter(path-step);
  position: absolute;
  left: 0;
  top: 8px;
  width: 28px;
  height: 28px;
  background: #2F5D50;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.path-steps li strong {
  color: #333333;
  font-weight: 600;
  margin-right: 4px;
}

.related-links {
  background: #F7FAF9;
  border: 1px solid #E4EEEB;
  border-radius: 8px;
  padding: 24px;
}

.related-links h2 {
  font-size: 16px;
  font-weight: 700;
  color: #2F5D50;
  margin-bottom: 14px;
}

.related-links ul li {
  margin-bottom: 10px;
}

.related-links ul li:last-child {
  margin-bottom: 0;
}

.related-links ul li a {
  font-size: 14px;
  color: #3B6B62;
}

.related-links ul li a:hover {
  color: #C9703E;
}

/* ==========================================================================
   Pages / 进阶技巧
   ========================================================================== */

.page-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}

.tips-article {
  min-width: 0;
}

.tip-group {
  margin-bottom: 40px;
  scroll-margin-top: 88px;
}

.tip-group-title {
  font-size: 22px;
  color: #2F5D50;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid #E8E4DE;
}

.tip-intro {
  font-size: 15px;
  color: #444444;
  line-height: 1.8;
  margin-bottom: 18px;
}

.tip-detail {
  background: #FFFFFF;
  border: 1px solid #E8E4DE;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 18px;
}

.tip-subtitle {
  font-size: 16px;
  font-weight: 700;
  color: #333333;
  margin-bottom: 8px;
}

.tip-detail p {
  font-size: 14px;
  color: #444444;
  line-height: 1.8;
  margin-bottom: 14px;
}

.tip-detail p:last-child {
  margin-bottom: 0;
}

.tip-figure {
  border: 1px solid #E8E4DE;
  border-radius: 8px;
  overflow: hidden;
  background: #F7FAF9;
}

.tip-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.tip-figure figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: #666666;
  background: #F7FAF9;
  border-top: 1px solid #E8E4DE;
}

.tip-notes {
  background: #F7FAF9;
  border: 1px solid #E4EEEB;
  border-radius: 8px;
  padding: 24px;
}

.notes-title {
  font-size: 18px;
  color: #2F5D50;
  margin-bottom: 12px;
}

.tip-notes p {
  font-size: 14px;
  color: #444444;
  line-height: 1.8;
  margin-bottom: 10px;
}

.tip-notes p:last-child {
  margin-bottom: 0;
}

.sidebar-title {
  font-size: 16px;
  font-weight: 700;
  color: #2F5D50;
  margin-bottom: 14px;
}

.sidebar-list li {
  margin-bottom: 10px;
}

.sidebar-list li:last-child {
  margin-bottom: 0;
}

.sidebar-list li a {
  font-size: 14px;
  color: #3B6B62;
}

.sidebar-list li a:hover {
  color: #C9703E;
}

/* ==========================================================================
   Pages / 版本更新
   ========================================================================== */

.update-summary {
  margin-bottom: 40px;
}

.update-summary > h2 {
  font-size: 20px;
  color: #2F5D50;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid #E8E4DE;
}

.update-summary-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.update-summary-list .update-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 16px 20px;
  background: #FAFCFB;
  border: 1px solid #E8E4DE;
  border-radius: 6px;
  align-items: start;
  transition: border-color 0.2s ease;
}

.update-summary-list .update-item:hover {
  border-color: #C89B6D;
}

.update-summary-list .update-item time {
  font-size: 13px;
  font-weight: 600;
  color: #8A6D3B;
  white-space: nowrap;
}

.update-summary-list .update-item h3 {
  font-size: 16px;
  color: #333333;
  margin-bottom: 4px;
}

.update-summary-list .update-item p {
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 6px;
}

.update-summary-list .update-item a {
  font-size: 13px;
  font-weight: 600;
  color: #2F5D50;
}

.update-entry {
  margin-bottom: 40px;
  scroll-margin-top: 88px;
}

.update-entry > h2 {
  font-size: 20px;
  color: #2F5D50;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid #E8E4DE;
}

.update-detail {
  background: #FFFFFF;
  border: 1px solid #E8E4DE;
  border-radius: 8px;
  padding: 24px;
}

.update-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.update-meta time {
  font-size: 14px;
  font-weight: 600;
  color: #8A6D3B;
}

.update-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #3B6B62;
  background: #E8F0EE;
  padding: 3px 10px;
  border-radius: 4px;
}

.update-detail h3 {
  font-size: 17px;
  color: #333333;
  margin-bottom: 12px;
}

.update-detail > p {
  font-size: 14px;
  color: #444444;
  line-height: 1.8;
  margin-bottom: 14px;
}

.update-detail > p:last-child {
  margin-bottom: 0;
}

.update-figure {
  margin: 16px 0;
  border: 1px solid #E8E4DE;
  border-radius: 8px;
  overflow: hidden;
  background: #F7FAF9;
}

.update-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.update-figure figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: #666666;
  background: #F7FAF9;
  border-top: 1px solid #E8E4DE;
}

/* ==========================================================================
   Pages / 内容边界
   ========================================================================== */

.content-section {
  margin-bottom: 36px;
  scroll-margin-top: 88px;
}

.content-section h2 {
  font-size: 20px;
  color: #2F5D50;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #E8E4DE;
}

.content-section > p {
  font-size: 15px;
  color: #444444;
  line-height: 1.8;
  margin-bottom: 14px;
}

.content-section > p:last-child {
  margin-bottom: 0;
}

.scope-list {
  margin-bottom: 14px;
}

.scope-list li {
  position: relative;
  padding: 6px 0 6px 24px;
  font-size: 14px;
  color: #444444;
  line-height: 1.7;
}

.scope-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2F5D50;
}

.scope-list li strong {
  color: #333333;
  font-weight: 600;
  margin-right: 4px;
}

.content-figure {
  margin: 24px 0;
  border: 1px solid #E8E4DE;
  border-radius: 8px;
  overflow: hidden;
  background: #F7FAF9;
}

.content-figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.content-figure figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: #666666;
  background: #F7FAF9;
  border-top: 1px solid #E8E4DE;
}

/* ==========================================================================
   Pages / 404
   ========================================================================== */

.error-main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 80px 24px;
}

.error-panel {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.error-panel h1 {
  font-size: 72px;
  font-weight: 700;
  color: #2F5D50;
  line-height: 1;
  margin-bottom: 8px;
}

.error-lead {
  font-size: 20px;
  color: #333333;
  margin-bottom: 12px;
}

.error-home-link {
  display: inline-block;
  margin: 16px 0 32px;
  padding: 10px 28px;
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
  background: #2F5D50;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.error-home-link:hover {
  background: #C9703E;
  color: #FFFFFF;
}

.error-suggestions {
  text-align: left;
  background: #F7FAF9;
  border: 1px solid #E4EEEB;
  border-radius: 8px;
  padding: 24px;
}

.error-suggest-title {
  font-size: 15px;
  font-weight: 700;
  color: #2F5D50;
  margin-bottom: 12px;
}

.error-suggest-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 24px;
}

.error-suggest-list li a {
  font-size: 14px;
  color: #3B6B62;
  padding: 4px 0;
  display: inline-block;
}

.error-suggest-list li a:hover {
  color: #C9703E;
}

.error-help {
  margin-top: 20px;
  font-size: 14px;
  color: #666666;
}

/* ==========================================================================
   Responsive / 响应式
   ========================================================================== */

@media (max-width: 1024px) {
  .help-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .layout-shell.sidebar-left {
    grid-template-columns: 220px 1fr;
    gap: 28px;
  }

  .page-layout {
    grid-template-columns: 1fr 240px;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 60px;
    padding: 0 16px;
  }

  .brand-tagline {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-icon:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-icon:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-icon:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-bottom: 1px solid #E8E4DE;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
    gap: 2px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    padding: 12px 14px;
    border-radius: 6px;
  }

  .site-main,
  .inner-main,
  .home-main {
    padding: 28px 16px 48px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 16px 24px;
  }

  .footer-bottom {
    padding: 14px 16px 20px;
  }

  .filter-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
  }

  .filter-tabs {
    width: 100%;
  }

  .filter-tab {
    flex: 1;
    text-align: center;
    padding: 8px 10px;
  }

  .result-count {
    white-space: normal;
  }

  .entry-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .guide-steps {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .help-cards {
    grid-template-columns: 1fr;
  }

  .layout-shell.sidebar-left {
    display: flex;
    flex-direction: column;
    padding: 28px 16px 48px;
    gap: 28px;
  }

  .layout-shell.sidebar-left .page-aside {
    order: 2;
    width: 100%;
  }

  .layout-shell.sidebar-left .inner-main {
    order: 1;
    width: 100%;
  }

  .page-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .sidebar-links {
    order: 2;
    width: 100%;
  }

  .tips-article {
    order: 1;
    width: 100%;
  }

  .task-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .task-media {
    order: -1;
  }

  .guide-links {
    grid-template-columns: 1fr;
  }

  .update-summary-list .update-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .error-main {
    padding: 48px 16px;
  }

  .error-panel h1 {
    font-size: 56px;
  }

  .error-suggest-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 24px;
  }

  .filter-heading-wrap .page-title {
    font-size: 26px;
  }

  .entry-body {
    padding: 14px 16px 16px;
  }

  .entry-title {
    font-size: 17px;
  }

  .guide-step {
    padding: 20px;
  }

  .help-card {
    padding: 18px 16px;
  }

  .task-card {
    padding: 16px;
  }

  .task-steps li {
    padding-left: 24px;
  }

  .mistake-item {
    padding: 18px 16px;
  }

  .self-help-path {
    padding: 20px 16px;
  }

  .path-steps li {
    padding-left: 40px;
  }

  .update-detail {
    padding: 18px 16px;
  }

  .error-suggest-list {
    grid-template-columns: 1fr;
  }
}
