/* =========================================================
   蜜芽视频 · 整站样式表
   音乐杂志风 · 视频内容导航与专题说明站
   ========================================================= */

/* =========================================================
   Base · 基础变量与全局重置
   ========================================================= */
:root {
  --ink: #141619;
  --paper: #f5f0e8;
  --signal: #ff5a36;
  --teal: #1b6f5c;
  --gray: #d9d4cc;
  --gray-deep: #8a847a;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(20, 22, 25, 0.06);
  --shadow-md: 0 6px 20px rgba(20, 22, 25, 0.1);
  --radius: 6px;
  --container: 1200px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Fira Code", Consolas, "Liberation Mono",
    monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--signal);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   Layout · 全站布局骨架
   ========================================================= */

/* 统一内容容器 */
.header-inner,
.home-layout,
.footer-inner,
.page-layout,
.layout-shell,
.inner-main {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* 站点主体 */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
}

/* =========================================================
   Components · 页头与导航
   ========================================================= */

.site-header {
  background: var(--ink);
  border-bottom: 3px solid var(--signal);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.brand-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--paper);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.brand-slogan {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.4;
  display: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--paper);
  transition: transform 0.2s ease;
}

.nav-toggle-icon::before {
  transform: translateY(-7px);
}

.nav-toggle-icon::after {
  transform: translateY(5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  transform: rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  position: relative;
}

.nav-list a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray);
  line-height: 1.4;
  border-radius: var(--radius);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-list a:hover {
  color: var(--paper);
  background: rgba(245, 240, 232, 0.1);
}

.nav-list a.is-current {
  color: var(--paper);
  font-weight: 700;
}

.nav-list a.is-current::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 3px;
  background: var(--signal);
  border-radius: 2px;
}

/* =========================================================
   Components · 页脚
   ========================================================= */

.site-footer {
  background: var(--ink);
  color: var(--gray);
  margin-top: 64px;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 40px;
}

.footer-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--paper);
  margin-bottom: 16px;
  line-height: 1.4;
}

.footer-list li {
  margin-bottom: 8px;
}

.footer-list a {
  font-size: 14px;
  color: var(--gray);
  transition: color 0.2s ease;
}

.footer-list a:hover {
  color: var(--signal);
}

.footer-bottom {
  border-top: 1px solid rgba(217, 212, 204, 0.15);
  padding: 20px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--gray-deep);
  max-width: var(--container);
  margin: 0 auto;
}

/* =========================================================
   Components · 面包屑
   ========================================================= */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0 8px;
  font-size: 14px;
  color: var(--gray-deep);
}

.breadcrumb a {
  color: var(--teal);
}

.breadcrumb a:hover {
  color: var(--signal);
}

.breadcrumb-sep {
  color: var(--gray-deep);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 500;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0 8px;
  font-size: 14px;
  color: var(--gray-deep);
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-list li + li::before {
  content: "/";
  color: var(--gray-deep);
}

.breadcrumb-list a {
  color: var(--teal);
}

.breadcrumb-list a:hover {
  color: var(--signal);
}

/* =========================================================
   Components · 首页 hero 焦点区
   ========================================================= */

.hero-focus {
  background: var(--ink);
  color: var(--paper);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 64px 24px;
}

.hero-copy {
  max-width: 560px;
  justify-self: end;
}

.hero-issue {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--signal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.hero-focus h1 {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.15;
  color: var(--paper);
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 17px;
  line-height: 1.75;
  color: var(--gray);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--signal);
  color: var(--paper);
}

.btn-primary:hover {
  background: #e84a28;
  color: var(--paper);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 90, 54, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--gray);
}

.btn-secondary:hover {
  border-color: var(--paper);
  color: var(--paper);
  background: rgba(245, 240, 232, 0.08);
}

.hero-visual {
  margin: 0;
}

.hero-visual img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* =========================================================
   Components · 首页布局：侧栏 + 内容
   ========================================================= */

.home-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 64px;
  align-items: start;
}

.site-directory {
  position: sticky;
  top: 92px;
}

.dir-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--signal);
  line-height: 1.4;
}

.dir-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dir-list a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--ink);
  border-radius: var(--radius);
  transition: background 0.2s ease, color 0.2s ease;
}

.dir-list a:hover {
  background: var(--gray);
  color: var(--ink);
}

.home-content {
  min-width: 0;
}

.content-section {
  margin-bottom: 56px;
}

.content-section h2 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 8px;
}

.section-desc {
  font-size: 16px;
  color: var(--gray-deep);
  margin-bottom: 24px;
  max-width: 640px;
}

.section-more {
  margin-top: 24px;
}

.section-more a {
  font-size: 15px;
  font-weight: 600;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.section-more a:hover {
  color: var(--signal);
}

.section-more a::after {
  content: "→";
  transition: transform 0.2s ease;
}

.section-more a:hover::after {
  transform: translateX(4px);
}

/* 频道分类索引 */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.channel-card {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.channel-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.channel-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}

.channel-card p {
  font-size: 14px;
  color: var(--gray-deep);
  line-height: 1.6;
  margin-bottom: 16px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-list li {
  font-size: 12px;
  color: var(--teal);
  background: rgba(27, 111, 92, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
  line-height: 1.4;
}

/* 精选专题推荐 */
.special-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.special-card {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.special-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.special-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.special-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  padding: 16px 20px 4px;
  line-height: 1.3;
}

.special-card p {
  font-size: 14px;
  color: var(--gray-deep);
  padding: 0 20px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.card-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
  margin: 0 20px 16px;
}

.card-link:hover {
  color: var(--signal);
}

/* 观看指南摘要 */
.guide-steps {
  counter-reset: guide-step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.guide-steps li {
  counter-increment: guide-step;
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}

.guide-steps li::before {
  content: "0" counter(guide-step);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--signal);
  display: block;
  margin-bottom: 8px;
}

.guide-steps h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}

.guide-steps p {
  font-size: 14px;
  color: var(--gray-deep);
  line-height: 1.6;
}

/* 首页相关链接 */
.related-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--gray);
  padding-top: 24px;
  margin-top: 16px;
}

.related-links-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.related-links-item {
  font-size: 14px;
  color: var(--teal);
}

.related-links-item:hover {
  color: var(--signal);
}

/* =========================================================
   Components · 内页双栏布局（侧栏 + 主内容）
   ========================================================= */

.page-layout,
.layout-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding-top: 32px;
  padding-bottom: 64px;
}

/* 侧栏统一样式 */
.page-sidebar,
.page-aside,
.sidebar,
.sidebar-nav {
  position: sticky;
  top: 92px;
  min-width: 0;
}

.sidebar-inner,
.aside-nav,
.sidebar-nav {
  display: flex;
  flex-direction: column;
}

.sidebar-title,
.aside-title,
.sidebar-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--signal);
  line-height: 1.4;
}

.sidebar-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-deep);
  border-bottom: 1px solid var(--gray);
}

.sidebar-list,
.aside-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-list a,
.aside-list a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--ink);
  border-radius: var(--radius);
  transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-list a:hover,
.aside-list a:hover {
  background: var(--gray);
  color: var(--ink);
}

/* 主内容区 */
.inner-main {
  min-width: 0;
  max-width: 860px;
  margin-left: 0;
  margin-right: 0;
}

.page-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray);
}

.page-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 8px;
}

.page-description {
  font-size: 16px;
  color: var(--gray-deep);
  line-height: 1.7;
  max-width: 640px;
}

/* 内页内容区块 */
.section-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 8px;
}

.section-lead,
.section-intro {
  font-size: 15px;
  color: var(--gray-deep);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 640px;
}

/* =========================================================
   Pages · 主题导航页
   ========================================================= */

.theme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.theme-card {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.theme-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.theme-figure {
  margin: 0;
  overflow: hidden;
}

.theme-figure img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.theme-body {
  padding: 20px;
}

.theme-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}

.theme-desc {
  font-size: 14px;
  color: var(--gray-deep);
  line-height: 1.6;
  margin-bottom: 12px;
}

.theme-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.theme-tags li {
  font-size: 12px;
  color: var(--teal);
  background: rgba(27, 111, 92, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
  line-height: 1.4;
}

/* 标签分组 */
.tag-groups {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tag-group {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.tag-group-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.4;
}

.tag-group .tag-list {
  gap: 8px;
}

.tag-group .tag-list li {
  font-size: 13px;
  color: var(--teal);
  background: rgba(27, 111, 92, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  line-height: 1.5;
}

/* 延伸专题入口 */
.extension-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.extension-card {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 20px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.extension-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.extension-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}

.extension-desc {
  font-size: 14px;
  color: var(--gray-deep);
  line-height: 1.6;
  margin-bottom: 12px;
}

.extension-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
}

.extension-link:hover {
  color: var(--signal);
}

.section-outro {
  margin-top: 24px;
  font-size: 14px;
  color: var(--gray-deep);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.section-outro a {
  color: var(--teal);
}

.section-outro a:hover {
  color: var(--signal);
}

/* =========================================================
   Pages · 观看指南页
   ========================================================= */

.guide-section {
  margin-bottom: 48px;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray);
}

.timeline-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding-bottom: 32px;
  position: relative;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--signal);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.step-body {
  min-width: 0;
}

.step-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}

.step-input,
.step-process,
.step-result {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 6px;
}

.step-input::before {
  content: "输入 · ";
  font-weight: 600;
  color: var(--teal);
}

.step-process::before {
  content: "过程 · ";
  font-weight: 600;
  color: var(--teal);
}

.step-result::before {
  content: "结果 · ";
  font-weight: 600;
  color: var(--signal);
}

/* 入口核验清单 */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.check-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 4px;
}

.check-item p {
  font-size: 15px;
  line-height: 1.7;
}

.check-item strong {
  font-weight: 700;
  color: var(--ink);
}

.guide-figure {
  margin: 24px 0;
}

.guide-figure img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
}

.guide-figure figcaption {
  font-size: 13px;
  color: var(--gray-deep);
  padding: 8px 4px;
  line-height: 1.5;
}

/* 延伸阅读 */
.link-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.link-card {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 20px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.link-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}

.card-text {
  font-size: 14px;
  color: var(--gray-deep);
  line-height: 1.6;
  margin-bottom: 12px;
}

.link-card a {
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
}

.link-card a:hover {
  color: var(--signal);
}

.feedback-note {
  margin-top: 24px;
  background: rgba(27, 111, 92, 0.06);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}

.feedback-note a {
  color: var(--teal);
  font-weight: 600;
}

.feedback-note a:hover {
  color: var(--signal);
}

/* =========================================================
   Pages · 进阶技巧页
   ========================================================= */

.method-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.method-item {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 24px;
}

.method-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.method-index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--signal);
  font-weight: 700;
}

.method-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.method-desc {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 16px;
}

.method-example {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: rgba(245, 240, 232, 0.6);
  border-radius: var(--radius);
  padding: 12px 16px;
}

.example-tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  background: rgba(27, 111, 92, 0.08);
  padding: 4px 12px;
  border-radius: 999px;
  line-height: 1.5;
}

.example-plus {
  font-size: 14px;
  color: var(--gray-deep);
}

.example-result {
  font-size: 13px;
  color: var(--signal);
  font-weight: 600;
  margin-left: 8px;
}

/* 跨主题对比 */
.compare-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.compare-figure {
  margin: 0;
}

.compare-figure img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
}

.compare-figure figcaption {
  font-size: 13px;
  color: var(--gray-deep);
  padding: 8px 4px;
  line-height: 1.5;
}

.compare-table-wrap {
  overflow-x: auto;
}

.compare-table {
  font-size: 14px;
  line-height: 1.6;
}

.compare-table thead th {
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
}

.compare-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray);
  vertical-align: top;
}

.compare-table tbody tr:nth-child(even) {
  background: rgba(245, 240, 232, 0.5);
}

.section-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--gray-deep);
}

.section-note a {
  color: var(--teal);
}

.section-note a:hover {
  color: var(--signal);
}

/* 个人片单建议 */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tip-card {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.tip-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.tip-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}

.tip-desc {
  font-size: 14px;
  color: var(--gray-deep);
  line-height: 1.6;
  margin-bottom: 12px;
}

.tip-card a {
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
}

.tip-card a:hover {
  color: var(--signal);
}

/* 延伸阅读区 */
.extend-section {
  margin-top: 48px;
  border-top: 1px solid var(--gray);
  padding-top: 24px;
}

.extend-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.3;
}

.extend-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.extend-list li {
  border-left: 2px solid var(--gray);
  padding: 4px 0 4px 16px;
  transition: border-color 0.2s ease;
}

.extend-list li:hover {
  border-color: var(--signal);
}

.extend-list a {
  font-size: 15px;
  color: var(--teal);
}

.extend-list a:hover {
  color: var(--signal);
}

/* =========================================================
   Pages · 术语表页
   ========================================================= */

.page-content {
  min-width: 0;
}

.content-media-inline {
  margin: 0 0 24px;
}

.content-media-inline img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
}

.content-media-inline figcaption {
  font-size: 13px;
  color: var(--gray-deep);
  padding: 8px 4px;
  line-height: 1.5;
}

.term-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.term-item {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.term-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}

.term-definition {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 8px;
}

.term-relate {
  font-size: 13px;
  color: var(--gray-deep);
  line-height: 1.6;
}

.term-relate a {
  color: var(--teal);
}

.term-relate a:hover {
  color: var(--signal);
}

/* 术语对照表 */
.term-table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
}

.term-table {
  font-size: 14px;
  line-height: 1.6;
}

.term-table thead th {
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
}

.term-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray);
  vertical-align: top;
}

.term-table tbody tr:nth-child(even) {
  background: rgba(245, 240, 232, 0.5);
}

/* 相关链接 */
.related-section {
  margin-top: 48px;
  border-top: 1px solid var(--gray);
  padding-top: 24px;
}

.related-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.related-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 8px 16px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.related-link:hover {
  color: var(--signal);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

/* =========================================================
   Pages · 精选专题页
   ========================================================= */

.special-card {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.special-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.special-media {
  overflow: hidden;
}

.special-media img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.special-body {
  padding: 24px;
}

.special-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}

.special-count {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--signal);
  margin-bottom: 8px;
}

.special-desc {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 12px;
}

.special-audience {
  font-size: 14px;
  color: var(--gray-deep);
  line-height: 1.6;
}

.special-audience strong {
  font-weight: 600;
  color: var(--teal);
}

/* 专题内容构成 */
.structure-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.structure-item {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.structure-item h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.3;
}

.structure-item p {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 6px;
}

.structure-item p strong {
  font-weight: 600;
  color: var(--teal);
}

/* 同类专题延伸 */
.related-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-card {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 20px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.related-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.related-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.related-card h3 a {
  color: var(--ink);
}

.related-card h3 a:hover {
  color: var(--signal);
}

.related-card p {
  font-size: 14px;
  color: var(--gray-deep);
  line-height: 1.6;
}

/* =========================================================
   Pages · 常见问题页
   ========================================================= */

.content-wrap {
  min-width: 0;
}

.faq-section {
  margin-bottom: 48px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  line-height: 1.5;
  transition: background 0.2s ease;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--signal);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question {
  background: rgba(245, 240, 232, 0.5);
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 20px 16px;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.7;
}

.faq-answer a {
  color: var(--teal);
  font-weight: 600;
}

.faq-answer a:hover {
  color: var(--signal);
}

/* =========================================================
   Pages · 404 页
   ========================================================= */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  min-height: 60vh;
}

.error-content {
  max-width: 560px;
  text-align: center;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 80px;
  font-weight: 800;
  color: var(--signal);
  line-height: 1;
  margin-bottom: 16px;
}

.error-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.2;
}

.error-desc {
  font-size: 16px;
  color: var(--gray-deep);
  line-height: 1.7;
  margin-bottom: 28px;
}

.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.error-back,
.error-guide {
  display: inline-block;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.error-back {
  background: var(--signal);
  color: var(--paper);
}

.error-back:hover {
  color: var(--paper);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 90, 54, 0.3);
}

.error-guide {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--gray);
}

.error-guide:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.error-help {
  font-size: 14px;
  color: var(--gray-deep);
}

.error-help a {
  color: var(--teal);
}

.error-help a:hover {
  color: var(--signal);
}

/* =========================================================
   Responsive · 响应式断点
   ========================================================= */

/* 平板：768-1024px */
@media (max-width: 1024px) {
  .hero-focus {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 24px;
  }

  .hero-copy {
    max-width: 100%;
    justify-self: auto;
  }

  .hero-visual img {
    height: 300px;
  }

  .channel-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .special-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .theme-grid {
    grid-template-columns: 1fr;
  }

  .extension-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .link-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tips-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .compare-wrap {
    grid-template-columns: 1fr;
  }

  .related-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-layout,
  .layout-shell {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 32px;
  }
}

/* 手机：≤767px */
@media (max-width: 767px) {
  .header-inner {
    height: 60px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand-slogan {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--ink);
    border-bottom: 2px solid var(--signal);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list a {
    display: block;
    padding: 14px 12px;
    font-size: 16px;
    border-radius: var(--radius);
  }

  .nav-list a.is-current::after {
    display: none;
  }

  .nav-list a.is-current {
    background: rgba(255, 90, 54, 0.15);
    color: var(--signal);
  }

  /* 首页 */
  .hero-focus {
    padding: 40px 16px;
    gap: 24px;
  }

  .hero-focus h1 {
    font-size: 28px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-visual img {
    height: 220px;
  }

  .home-layout {
    display: block;
    padding: 32px 16px 48px;
  }

  .site-directory {
    display: none;
  }

  .content-section h2 {
    font-size: 22px;
  }

  .channel-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .special-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .guide-steps {
    gap: 16px;
  }

  .related-links {
    gap: 12px;
  }

  /* 内页 */
  .page-layout,
  .layout-shell {
    display: block;
    padding: 0 16px 48px;
  }

  .page-sidebar,
  .page-aside,
  .sidebar,
  .sidebar-nav {
    display: none;
  }

  .inner-main {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
  }

  .page-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-description {
    font-size: 15px;
  }

  .section-title {
    font-size: 20px;
  }

  .theme-grid {
    gap: 16px;
  }

  .theme-figure img {
    height: 160px;
  }

  .extension-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .link-card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tips-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .related-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-step {
    grid-template-columns: 40px 1fr;
    gap: 16px;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .step-title {
    font-size: 18px;
  }

  .special-media img {
    height: 200px;
  }

  .special-body {
    padding: 20px;
  }

  .special-body h3 {
    font-size: 18px;
  }

  .compare-table-wrap {
    margin-top: 16px;
  }

  .faq-question {
    font-size: 15px;
    padding: 14px 16px;
  }

  .faq-answer {
    font-size: 14px;
    padding: 0 16px 14px;
  }

  .error-code {
    font-size: 56px;
  }

  .error-title {
    font-size: 24px;
  }

  /* 页脚 */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 16px 32px;
  }

  .footer-bottom {
    padding: 16px;
  }
}

/* 小屏手机：≤390px */
@media (max-width: 390px) {
  .hero-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    text-align: center;
    width: 100%;
  }

  .special-grid {
    grid-template-columns: 1fr;
  }

  .theme-grid {
    grid-template-columns: 1fr;
  }

  .method-example {
    flex-direction: column;
    align-items: flex-start;
  }

  .example-result {
    margin-left: 0;
  }
}
