/* 麻豆 MADOU FILMS - 官方影视网站样式 */
/* 纯黑深灰白银灰极简现代影视品牌视觉 */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background-color: #000000;
  color: #DDDDDD;
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #FFFFFF;
}

a:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 3px;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

button:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 3px;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  color: #F7F7F7;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: 0.04em;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  color: #DDDDDD;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 14px;
  }
}

/* ===== 顶部信息栏 ===== */
.top-bar {
  background: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: #A5A5A5;
  height: 36px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 100;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.top-bar-left {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-bar-center {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex: 1;
}

.top-bar-center a {
  color: #A5A5A5;
  transition: color 0.2s;
}

.top-bar-center a:hover {
  color: #FFFFFF;
}

.top-bar-right {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  flex: 1;
}

.top-bar-right a,
.top-bar-right button {
  color: #A5A5A5;
  font-size: 13px;
}

.top-bar-right a:hover,
.top-bar-right button:hover {
  color: #FFFFFF;
}

@media (max-width: 900px) {
  .top-bar-center {
    display: none;
  }
  .top-bar-left {
    font-size: 12px;
  }
  .top-bar-right a:not(.top-search-btn):not(.top-premiere-link) {
    display: none;
  }
}

/* ===== 品牌导航 ===== */
.brand-nav {
  background: #050505;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: sticky;
  top: 0;
  z-index: 90;
  height: 64px;
  display: flex;
  align-items: center;
}

.brand-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
}

.brand-nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  color: #F7F7F7;
  background: transparent;
  flex-shrink: 0;
}

.menu-toggle:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: #1A1A1A;
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.current-channel {
  font-size: 14px;
  color: #A5A5A5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
  padding: 0 12px;
}

.brand-logo img {
  height: 36px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.brand-logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
}

.brand-logo-text .zh {
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.15em;
}

.brand-logo-text .en {
  font-size: 10px;
  color: #A5A5A5;
  letter-spacing: 0.2em;
  margin-top: 2px;
}

.brand-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: flex-end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  white-space: nowrap;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary {
  background: #FFFFFF;
  color: #000000;
  border: 1px solid #FFFFFF;
}

.btn-primary:hover {
  background: #EDEDED;
  color: #000000;
}

.btn-secondary {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.06);
}

.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
}

@media (max-width: 768px) {
  .brand-nav {
    height: 56px;
  }
  .current-channel {
    display: none;
  }
  .brand-nav-right .btn-secondary {
    display: none;
  }
  .brand-logo-text .zh {
    font-size: 18px;
  }
}

/* ===== 影视频道导航 ===== */
.channel-nav {
  background: #0B0B0B;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  z-index: 80;
}

.channel-nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 48px;
  overflow: hidden;
}

.channel-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  height: 100%;
}

.channel-list::-webkit-scrollbar {
  display: none;
}

.channel-list a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 14px;
  font-size: 14px;
  color: #A5A5A5;
  white-space: nowrap;
  position: relative;
  flex-shrink: 0;
}

.channel-list a:hover {
  color: #FFFFFF;
}

.channel-list a.active {
  color: #FFFFFF;
  font-weight: 600;
}

.channel-list a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background: #FFFFFF;
}

.channel-more-wrap {
  position: relative;
  flex-shrink: 0;
  margin-left: 8px;
}

.channel-more-btn {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 14px;
  font-size: 14px;
  color: #A5A5A5;
  white-space: nowrap;
}

.channel-more-btn:hover {
  color: #FFFFFF;
}

.channel-more-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  min-width: 180px;
  padding: 8px 0;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.48);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 100;
}

.channel-more-wrap.open .channel-more-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.channel-more-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  color: #DDDDDD;
}

.channel-more-menu a:hover {
  background: #1A1A1A;
  color: #FFFFFF;
}

@media (max-width: 768px) {
  .channel-nav-inner {
    padding: 0 14px;
  }
  .channel-list a {
    padding: 0 12px;
    font-size: 13px;
  }
}

/* ===== 主视觉 ===== */
.hero {
  background: #050505;
  padding: 48px 0 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-banner {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #121212;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%) contrast(1.05);
}

.hero-banner-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0B0B0B 0%, #1A1A1A 100%);
  color: #727272;
  font-size: 14px;
  letter-spacing: 0.1em;
}

.hero-content h1 {
  margin-bottom: 16px;
  color: #FFFFFF;
}

.hero-content .lead {
  font-size: 16px;
  color: #A5A5A5;
  margin-bottom: 28px;
  line-height: 1.8;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-news {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-news-item {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-news-item:first-child {
  border-top: none;
  padding-top: 0;
}

.hero-news-item .tag {
  font-size: 12px;
  color: #C7C7C7;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.hero-news-item p {
  font-size: 14px;
  color: #A5A5A5;
  margin: 0;
  line-height: 1.6;
}

.hero-news-item a {
  color: #DDDDDD;
}

.hero-news-item a:hover {
  color: #FFFFFF;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-content {
    order: 1;
  }
  .hero-banner {
    order: 2;
  }
  .hero-news {
    order: 3;
  }
  .hero {
    padding: 32px 0 40px;
  }
}

/* ===== 通用区块 ===== */
.section {
  padding: 56px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-header h2 {
  margin-bottom: 0;
}

.section-header .more-link {
  font-size: 14px;
  color: #A5A5A5;
  white-space: nowrap;
}

.section-header .more-link:hover {
  color: #FFFFFF;
}

.section-desc {
  color: #A5A5A5;
  font-size: 15px;
  max-width: 720px;
  margin-bottom: 28px;
  line-height: 1.75;
}

/* ===== 卡片网格 ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1100px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 800px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: #0B0B0B;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: #121212;
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #121212;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(25%);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.card:hover .card-media img {
  transform: scale(1.03);
  filter: grayscale(10%);
}

.card-media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #121212;
  color: #727272;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.card-body {
  padding: 18px 16px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-tag {
  font-size: 12px;
  color: #C7C7C7;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: #F7F7F7;
  margin-bottom: 8px;
  line-height: 1.4;
}

.card-text {
  font-size: 13.5px;
  color: #A5A5A5;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 0;
}

.card-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: #C7C7C7;
  font-weight: 500;
}

.card-link:hover {
  color: #FFFFFF;
}

/* ===== 列表式内容 ===== */
.list-block {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.list-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 20px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.list-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.list-num {
  font-size: 28px;
  font-weight: 700;
  color: #2A2A2A;
  line-height: 1;
  letter-spacing: -0.02em;
}

.list-content h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.list-content p {
  font-size: 14px;
  color: #A5A5A5;
  margin: 0;
  line-height: 1.65;
}

.list-link {
  font-size: 13px;
  color: #C7C7C7;
  white-space: nowrap;
  align-self: center;
}

.list-link:hover {
  color: #FFFFFF;
}

@media (max-width: 640px) {
  .list-item {
    grid-template-columns: 48px 1fr;
    gap: 12px;
  }
  .list-link {
    grid-column: 2;
    margin-top: 8px;
  }
  .list-num {
    font-size: 22px;
  }
}

/* ===== 两栏内容 ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 800px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.content-block {
  background: #0B0B0B;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 28px 24px;
}

.content-block h3 {
  margin-bottom: 12px;
}

.content-block p {
  font-size: 14.5px;
  color: #A5A5A5;
  margin-bottom: 12px;
}

.content-block p:last-child {
  margin-bottom: 0;
}

/* ===== 页面标题区 ===== */
.page-hero {
  background: #050505;
  padding: 48px 0 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-hero h1 {
  margin-bottom: 12px;
}

.page-hero .page-lead {
  font-size: 16px;
  color: #A5A5A5;
  max-width: 680px;
  line-height: 1.8;
  margin: 0;
}

/* ===== 正文内容区 ===== */
.page-content {
  padding: 48px 0 64px;
}

.article-body {
  max-width: 820px;
}

.article-body h2 {
  margin-top: 40px;
  margin-bottom: 16px;
  padding-top: 8px;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  margin-top: 28px;
  margin-bottom: 12px;
}

.article-body p {
  margin-bottom: 16px;
  line-height: 1.85;
}

.article-body ul,
.article-body ol {
  margin: 16px 0 20px 1.25rem;
  list-style: disc;
  color: #DDDDDD;
}

.article-body li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.article-body strong {
  color: #F7F7F7;
  font-weight: 600;
}

.note-box {
  background: #0B0B0B;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 20px 22px;
  margin: 28px 0;
  font-size: 14.5px;
  color: #A5A5A5;
  line-height: 1.75;
}

.note-box strong {
  color: #F7F7F7;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
}

.tag-item {
  display: inline-block;
  padding: 6px 12px;
  font-size: 12px;
  color: #C7C7C7;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  letter-spacing: 0.03em;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 860px;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item summary {
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: #F7F7F7;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: #A5A5A5;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .faq-answer {
  padding: 0 0 22px;
  font-size: 14.5px;
  color: #A5A5A5;
  line-height: 1.8;
}

/* ===== APP 相关 ===== */
.app-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.app-visual {
  background: #0B0B0B;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  aspect-ratio: 4 / 5;
  max-width: 360px;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
}

.app-visual-placeholder {
  color: #727272;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 20px;
}

@media (max-width: 800px) {
  .app-hero {
    grid-template-columns: 1fr;
  }
  .app-visual {
    max-width: 280px;
  }
}

/* ===== 页脚 ===== */
.site-footer {
  background: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 56px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 48px;
}

.footer-brand .logo-wrap {
  margin-bottom: 16px;
}

.footer-brand .logo-wrap img {
  height: 32px;
  width: auto;
}

.footer-brand .logo-text .zh {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.12em;
}

.footer-brand .logo-text .en {
  font-size: 11px;
  color: #A5A5A5;
  letter-spacing: 0.18em;
  margin-top: 2px;
}

.footer-brand p {
  font-size: 13.5px;
  color: #A5A5A5;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 13px;
  color: #C7C7C7;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: #A5A5A5;
}

.footer-col a:hover {
  color: #FFFFFF;
}

.footer-notice {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  margin-bottom: 24px;
}

.footer-notice p {
  font-size: 13px;
  color: #727272;
  line-height: 1.7;
  max-width: 900px;
  margin: 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom p {
  font-size: 13px;
  color: #727272;
  margin: 0;
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 560px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .site-footer {
    padding-bottom: 100px;
  }
}

/* ===== 全站栏目面板 ===== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s, visibility 0.25s;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.side-panel {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  max-width: 520px;
  background: #0B0B0B;
  z-index: 210;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

.side-panel.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.side-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.side-panel-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.side-panel-logo img {
  height: 28px;
  width: auto;
}

.side-panel-logo .zh {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.1em;
}

.panel-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #F7F7F7;
  font-size: 20px;
}

.panel-close:hover {
  background: #1A1A1A;
  border-color: rgba(255, 255, 255, 0.4);
}

.side-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px 40px;
  -webkit-overflow-scrolling: touch;
}

.panel-group {
  margin-bottom: 32px;
}

.panel-group h3 {
  font-size: 12px;
  color: #727272;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  font-weight: 600;
}

.panel-link {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.panel-link:last-child {
  border-bottom: none;
}

.panel-link .name {
  font-size: 16px;
  font-weight: 600;
  color: #F7F7F7;
  margin-bottom: 4px;
  display: block;
}

.panel-link .desc {
  font-size: 13px;
  color: #A5A5A5;
  line-height: 1.5;
  display: block;
}

.panel-link:hover .name {
  color: #FFFFFF;
}

@media (max-width: 560px) {
  .side-panel {
    max-width: 90%;
  }
}

/* ===== 搜索面板 ===== */
.search-panel {
  position: fixed;
  inset: 0;
  background: #000000;
  z-index: 220;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s, visibility 0.25s;
}

.search-panel.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.search-panel-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 16px 24px;
}

.search-panel-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 24px 60px;
  overflow-y: auto;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.search-form {
  width: 100%;
  margin-bottom: 40px;
}

.search-input-wrap {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  height: 56px;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0 20px;
  font-size: 17px;
  color: #FFFFFF;
  outline: none;
  transition: border-color 0.2s;
}

.search-input::placeholder {
  color: #727272;
}

.search-input:focus {
  border-color: rgba(255, 255, 255, 0.5);
}

.search-section {
  width: 100%;
  margin-bottom: 32px;
}

.search-section h3 {
  font-size: 13px;
  color: #727272;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search-tags a {
  display: inline-block;
  padding: 10px 16px;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  font-size: 14px;
  color: #DDDDDD;
}

.search-tags a:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
  background: #1A1A1A;
}

.search-results {
  width: 100%;
  display: none;
}

.search-results.show {
  display: block;
}

.search-results .result-item {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #DDDDDD;
  font-size: 15px;
}

.search-results .result-item:hover {
  color: #FFFFFF;
}

.search-results .no-result {
  color: #727272;
  font-size: 14px;
  padding: 20px 0;
}

/* ===== 手机底部导航 ===== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 150;
  padding-bottom: env(safe-area-inset-bottom, 0);
  height: calc(56px + env(safe-area-inset-bottom, 0));
}

.mobile-bottom-nav-inner {
  display: flex;
  height: 56px;
}

.mobile-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 11px;
  color: #A5A5A5;
  min-height: 48px;
}

.mobile-bottom-nav a.active {
  color: #FFFFFF;
}

.mobile-bottom-nav a span.icon {
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: block;
  }
  body {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0));
  }
}

/* ===== 工具类 ===== */
.text-center {
  text-align: center;
}

.mt-24 {
  margin-top: 24px;
}

.mb-24 {
  margin-bottom: 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 防止横向滚动 */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

/* body 滚动锁定 */
body.panel-open {
  overflow: hidden;
}

/* 焦点可见性增强 */
:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 3px;
}
