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

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

html {
  font-size: 16px;
  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", Helvetica, Arial, sans-serif;
  background-color: #000000;
  color: #DDDDDD;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.panel-open {
  overflow: hidden;
}

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;
}

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

ul, ol {
  list-style: none;
}

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

p {
  margin-bottom: 1em;
}

/* ========== 顶部信息栏 ========== */
.top-bar {
  background: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
  color: #A5A5A5;
  position: relative;
  z-index: 1002;
}

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

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

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

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

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

.top-bar-right {
  display: flex;
  gap: 18px;
  flex: 1;
  justify-content: flex-end;
  align-items: center;
}

.top-bar-right a,
.top-bar-right button {
  color: #A5A5A5;
  font-size: 0.8125rem;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

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

.top-bar-search-btn {
  background: transparent;
  border: none;
  padding: 0 4px;
}

/* 手机端顶部信息栏 */
@media (max-width: 768px) {
  .top-bar-inner {
    padding: 0 14px;
    height: 34px;
  }
  .top-bar-left {
    font-size: 0.75rem;
  }
  .top-bar-center {
    display: none;
  }
  .top-bar-right {
    gap: 12px;
  }
  .top-bar-right a:not(.mobile-premiere),
  .top-bar-right button:not(.top-bar-search-btn) {
    display: none;
  }
  .mobile-premiere {
    display: inline-flex !important;
  }
}

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

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

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

.nav-menu-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 8px;
  color: #DDDDDD;
  font-size: 0.875rem;
  background: transparent;
  border: none;
}

.nav-menu-btn:hover {
  color: #FFFFFF;
}

.nav-menu-icon {
  width: 18px;
  height: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav-menu-icon span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

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

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

.brand-logo a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

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

.brand-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.15em;
  line-height: 1.1;
}

.brand-logo-sub {
  font-size: 0.625rem;
  color: #C7C7C7;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.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: 0.875rem;
  font-weight: 600;
  border-radius: 4px;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 2px;
}

.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: 36px;
  padding: 0 14px;
  font-size: 0.8125rem;
}

@media (max-width: 768px) {
  .brand-nav {
    height: 56px;
  }
  .brand-nav-inner {
    padding: 0 14px;
  }
  .current-channel {
    display: none;
  }
  .brand-logo-text {
    font-size: 1.125rem;
  }
  .brand-logo-sub {
    font-size: 0.5625rem;
  }
  .brand-nav-right .btn {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.8125rem;
  }
  .brand-nav-right .btn-hide-mobile {
    display: none;
  }
}

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

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

.channel-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.channel-list a {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 14px;
  font-size: 0.875rem;
  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;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: #FFFFFF;
}

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

.channel-more-btn {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 14px;
  font-size: 0.875rem;
  color: #A5A5A5;
  background: transparent;
  border: none;
}

.channel-more-btn:hover,
.channel-more-btn[aria-expanded="true"] {
  color: #FFFFFF;
}

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

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

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

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

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

/* ========== 主内容区 ========== */
.main-content {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

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

/* ========== 首页主视觉 ========== */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

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

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.hero-desc {
  font-size: 1rem;
  color: #DDDDDD;
  line-height: 1.7;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.hero-news {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.hero-news-label {
  font-size: 0.75rem;
  color: #C7C7C7;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-news-text {
  font-size: 0.875rem;
  color: #A5A5A5;
  line-height: 1.5;
}

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

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

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

.section:last-of-type {
  border-bottom: none;
}

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

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #F7F7F7;
  letter-spacing: 0.03em;
}

.section-more {
  font-size: 0.875rem;
  color: #A5A5A5;
  white-space: nowrap;
}

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

.section-desc {
  font-size: 0.9375rem;
  color: #A5A5A5;
  max-width: 640px;
  margin-bottom: 24px;
  line-height: 1.65;
}

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

.card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

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

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

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

.card {
  background: #0B0B0B;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: #121212;
  box-shadow: 0 12px 34px rgba(255, 255, 255, 0.04);
}

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

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%);
}

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

.card-body {
  padding: 16px 18px 20px;
}

.card-tag {
  display: inline-block;
  font-size: 0.6875rem;
  color: #C7C7C7;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

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

.card-text {
  font-size: 0.8125rem;
  color: #A5A5A5;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-link {
  display: block;
  color: inherit;
}

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

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

.list-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  align-items: flex-start;
}

.list-item:last-child {
  border-bottom: none;
}

.list-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #C7C7C7;
}

.list-content {
  flex: 1;
  min-width: 0;
}

.list-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #F7F7F7;
  margin-bottom: 6px;
}

.list-meta {
  font-size: 0.75rem;
  color: #727272;
  margin-bottom: 8px;
}

.list-text {
  font-size: 0.875rem;
  color: #A5A5A5;
  line-height: 1.6;
}

/* ========== 页面头部 ========== */
.page-header {
  padding: 40px 0 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 8px;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.page-header-desc {
  font-size: 1rem;
  color: #A5A5A5;
  max-width: 720px;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .page-header {
    padding: 28px 0 24px;
  }
  .page-header h1 {
    font-size: 1.625rem;
  }
}

/* ========== 文章/内容区 ========== */
.content-block {
  padding: 28px 0;
}

.content-block h2 {
  font-size: 1.25rem;
  margin-bottom: 14px;
  margin-top: 28px;
  color: #F7F7F7;
}

.content-block h2:first-child {
  margin-top: 0;
}

.content-block h3 {
  font-size: 1.0625rem;
  margin-bottom: 10px;
  margin-top: 22px;
  color: #F7F7F7;
}

.content-block p {
  color: #DDDDDD;
  margin-bottom: 1em;
  line-height: 1.75;
}

.content-block ul {
  margin: 12px 0 16px 0;
  padding-left: 0;
}

.content-block li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  color: #DDDDDD;
  line-height: 1.65;
}

.content-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  background: #C7C7C7;
  border-radius: 50%;
}

.note-box {
  background: #0B0B0B;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.875rem;
  color: #A5A5A5;
  line-height: 1.65;
}

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

.editor-note {
  font-size: 0.8125rem;
  color: #727272;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ========== FAQ ========== */
.faq-list details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0;
}

.faq-list summary {
  padding: 18px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #F7F7F7;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
}

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

.faq-list summary::after {
  content: "+";
  font-size: 1.25rem;
  color: #A5A5A5;
  flex-shrink: 0;
}

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

.faq-list details p {
  padding: 0 0 18px;
  color: #A5A5A5;
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ========== APP 区块 ========== */
.app-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0;
}

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

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

.app-visual-placeholder {
  color: #727272;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
}

.app-info h2 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.app-info p {
  color: #A5A5A5;
  margin-bottom: 12px;
  line-height: 1.7;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

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

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

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
  max-width: 420px;
}

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

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

.footer-logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.12em;
}

.footer-logo-sub {
  font-size: 0.625rem;
  color: #C7C7C7;
  letter-spacing: 0.15em;
}

.footer-brand-desc {
  font-size: 0.8125rem;
  color: #A5A5A5;
  line-height: 1.65;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 36px;
}

.footer-col-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #C7C7C7;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: #A5A5A5;
  padding: 5px 0;
  min-height: 32px;
}

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

.footer-notice {
  font-size: 0.8125rem;
  color: #727272;
  line-height: 1.65;
  max-width: 900px;
  margin-bottom: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-copy {
  font-size: 0.75rem;
  color: #727272;
}

@media (max-width: 900px) {
  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
  }
}

@media (max-width: 500px) {
  .footer-cols {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    padding: 0 14px;
  }
}

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

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

.side-panel {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: min(520px, 90vw);
  background: #050505;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 2001;
  transform: translateX(-100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.25s ease, visibility 0.25s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

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

.side-panel-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.side-panel-brand img {
  height: 24px;
  width: auto;
}

.side-panel-brand-text {
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.1em;
}

.side-panel-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A5A5A5;
  font-size: 1.5rem;
  background: transparent;
  border: none;
  border-radius: 4px;
}

.side-panel-close:hover {
  color: #FFFFFF;
  background: #1A1A1A;
}

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

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

.panel-group-title {
  font-size: 0.75rem;
  color: #727272;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

.panel-link-desc {
  font-size: 0.8125rem;
  color: #A5A5A5;
  line-height: 1.5;
}

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

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

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

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

.search-panel-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A5A5A5;
  font-size: 1.5rem;
  background: transparent;
  border: none;
  border-radius: 4px;
}

.search-panel-close:hover {
  color: #FFFFFF;
  background: #1A1A1A;
}

.search-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px 40px;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.search-input-wrap {
  margin-bottom: 32px;
}

.search-input {
  width: 100%;
  height: 52px;
  background: #0B0B0B;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  padding: 0 18px;
  font-size: 1.0625rem;
  color: #FFFFFF;
  outline: none;
  transition: border-color 0.2s ease;
}

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

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

.search-section-title {
  font-size: 0.75rem;
  color: #727272;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.search-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.search-keyword {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  font-size: 0.875rem;
  color: #DDDDDD;
}

.search-keyword:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-result-item {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.search-result-item .name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #F7F7F7;
  margin-bottom: 2px;
}

.search-result-item .desc {
  font-size: 0.8125rem;
  color: #A5A5A5;
}

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

.search-result-item.hidden {
  display: none;
}

.search-empty {
  font-size: 0.875rem;
  color: #727272;
  padding: 20px 0;
  display: none;
}

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

/* ========== 手机底部导航 ========== */
.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: 1500;
  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: 0.6875rem;
  color: #A5A5A5;
  min-height: 48px;
}

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

.mobile-bottom-nav a span.icon {
  font-size: 1.125rem;
  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-8 {
  margin-top: 8px;
}

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

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

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

.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;
}

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

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

/* 内容宽度约束 */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

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