/* 麻豆 MADOU FILMS - Official Style */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

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

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

a:hover {
  color: #FFFFFF;
}

ul, ol {
  list-style: none;
}

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

:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
}

/* Top Info Bar */
.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 {
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

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

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

.top-bar-right {
  display: flex;
  gap: 18px;
  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;
}

.top-bar-mobile {
  display: none;
}

/* Brand Navigation */
.brand-nav {
  background: #050505;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: sticky;
  top: 0;
  z-index: 90;
  height: 64px;
}

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

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

.nav-menu-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  font-size: 14px;
  color: #F7F7F7;
  min-height: 44px;
}

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

.nav-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: #FFFFFF;
  position: relative;
}

.nav-menu-btn span::before,
.nav-menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #FFFFFF;
}

.nav-menu-btn span::before {
  top: -6px;
}

.nav-menu-btn span::after {
  top: 6px;
}

.current-channel {
  font-size: 14px;
  color: #A5A5A5;
}

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

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

.brand-logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #FFFFFF;
  line-height: 1.2;
}

.brand-logo-sub {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #C7C7C7;
  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;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  min-height: 44px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

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

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

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

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

/* Channel Navigation */
.channel-nav {
  background: #0B0B0B;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: sticky;
  top: 64px;
  z-index: 80;
}

.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 {
  padding: 8px 14px;
  font-size: 14px;
  color: #A5A5A5;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  min-height: 44px;
  display: flex;
  align-items: center;
}

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

.channel-list a.active {
  color: #FFFFFF;
  border-bottom-color: #FFFFFF;
}

.channel-more {
  position: relative;
  margin-left: 8px;
}

.channel-more-btn {
  padding: 8px 14px;
  font-size: 14px;
  color: #A5A5A5;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.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: 6px;
  min-width: 180px;
  padding: 8px 0;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.48);
  display: none;
  z-index: 100;
}

.channel-more-menu.open {
  display: block;
}

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

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

/* Main Content */
.main-content {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 56px 0;
}

.section-header {
  margin-bottom: 32px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: #F7F7F7;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.section-desc {
  font-size: 15px;
  color: #A5A5A5;
  max-width: 640px;
}

/* Hero */
.hero {
  padding: 48px 0 64px;
}

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

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

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

.hero-content h1 {
  font-size: 36px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.3;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}

.hero-content p {
  font-size: 16px;
  color: #DDDDDD;
  margin-bottom: 28px;
  line-height: 1.8;
}

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

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

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

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

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

.hero-news-item a {
  font-size: 14px;
  color: #DDDDDD;
  display: block;
}

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

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.card:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

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

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

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

.card-body {
  padding: 20px;
}

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

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

.card-text {
  font-size: 14px;
  color: #A5A5A5;
  line-height: 1.7;
  margin-bottom: 16px;
}

.card-link {
  font-size: 14px;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-link:hover {
  opacity: 0.85;
}

/* Two Column */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* Feature List */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-item {
  padding: 24px;
  background: #0B0B0B;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.feature-item h3 {
  font-size: 17px;
  color: #F7F7F7;
  margin-bottom: 10px;
  font-weight: 600;
}

.feature-item p {
  font-size: 14px;
  color: #A5A5A5;
  line-height: 1.7;
}

/* Text Block */
.text-block {
  max-width: 800px;
}

.text-block h2 {
  font-size: 26px;
  color: #F7F7F7;
  margin-bottom: 16px;
  font-weight: 700;
}

.text-block h3 {
  font-size: 20px;
  color: #F7F7F7;
  margin: 28px 0 12px;
  font-weight: 600;
}

.text-block p {
  font-size: 15px;
  color: #DDDDDD;
  margin-bottom: 16px;
  line-height: 1.85;
}

.text-block ul {
  margin: 12px 0 20px 20px;
}

.text-block li {
  font-size: 15px;
  color: #DDDDDD;
  margin-bottom: 8px;
  list-style: disc;
}

/* Page Header */
.page-header {
  padding: 48px 0 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 40px;
}

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

.page-header p {
  font-size: 16px;
  color: #A5A5A5;
  max-width: 680px;
  line-height: 1.8;
}

/* Content Sections */
.content-section {
  margin-bottom: 48px;
}

.content-section h2 {
  font-size: 22px;
  color: #F7F7F7;
  margin-bottom: 16px;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.content-section p {
  font-size: 15px;
  color: #DDDDDD;
  margin-bottom: 14px;
  line-height: 1.85;
}

.content-section ul {
  margin: 12px 0 20px 18px;
}

.content-section li {
  font-size: 15px;
  color: #DDDDDD;
  margin-bottom: 8px;
  list-style: disc;
}

/* Notice Box */
.notice-box {
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 24px 0;
}

.notice-box p {
  font-size: 14px;
  color: #A5A5A5;
  margin: 0;
  line-height: 1.7;
}

/* FAQ */
.faq-list details {
  background: #0B0B0B;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
}

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

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

.faq-list summary::after {
  content: "+";
  font-size: 18px;
  color: #C7C7C7;
}

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

.faq-list details p {
  padding: 0 20px 18px;
  font-size: 14px;
  color: #A5A5A5;
  line-height: 1.8;
}

/* Footer */
.site-footer {
  background: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 56px 0 32px;
  margin-top: 64px;
}

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

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 32px;
  margin-bottom: 12px;
}

.footer-brand-name {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.footer-brand-en {
  font-size: 11px;
  color: #C7C7C7;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

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

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.footer-col h4 {
  font-size: 14px;
  color: #F7F7F7;
  margin-bottom: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: #A5A5A5;
  margin-bottom: 10px;
}

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

.footer-note {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  font-size: 13px;
  color: #727272;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-copy {
  font-size: 13px;
  color: #727272;
}

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

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

.side-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 500px;
  max-width: 90vw;
  height: 100%;
  background: #0B0B0B;
  z-index: 210;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  visibility: hidden;
  pointer-events: none;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

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

.side-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: sticky;
  top: 0;
  background: #0B0B0B;
  z-index: 2;
}

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

.side-panel-brand img {
  height: 28px;
}

.side-panel-brand span {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.08em;
}

.panel-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #A5A5A5;
  border-radius: 4px;
}

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

.side-panel-body {
  padding: 24px;
}

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

.panel-group h3 {
  font-size: 13px;
  color: #C7C7C7;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

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

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

.panel-link-title {
  font-size: 16px;
  color: #F7F7F7;
  font-weight: 500;
  margin-bottom: 4px;
}

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

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

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

.search-panel-header {
  display: flex;
  justify-content: flex-end;
  padding: 20px 24px;
}

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

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

.search-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding: 16px 0;
  font-size: 24px;
  color: #FFFFFF;
  outline: none;
}

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

.search-input:focus {
  border-bottom-color: #FFFFFF;
}

.search-section {
  margin-bottom: 36px;
}

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

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

.search-tags a {
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  font-size: 14px;
  color: #DDDDDD;
}

.search-tags a:hover {
  border-color: #FFFFFF;
  color: #FFFFFF;
}

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

.search-links a:hover {
  color: #FFFFFF;
}

/* Mobile Bottom Nav */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 70;
  padding-bottom: env(safe-area-inset-bottom);
  height: 56px;
}

.mobile-bottom-nav-inner {
  display: flex;
  height: 100%;
}

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

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

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

/* Utility */
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .feature-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar-center,
  .top-bar-left,
  .top-bar-right {
    display: none;
  }
  .top-bar-mobile {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 0 14px;
  }
  .top-bar-mobile .brand-short {
    font-size: 13px;
    color: #A5A5A5;
  }
  .brand-nav {
    height: 56px;
  }
  .channel-nav {
    top: 56px;
  }
  .brand-nav-left .current-channel {
    display: none;
  }
  .brand-logo-text {
    font-size: 18px;
  }
  .brand-logo-sub {
    font-size: 9px;
  }
  .hero-content h1 {
    font-size: 26px;
  }
  .section-title {
    font-size: 22px;
  }
  .page-header h1 {
    font-size: 26px;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .main-content {
    padding: 0 14px;
  }
  .top-bar-inner {
    padding: 0;
  }
  .brand-nav-inner,
  .channel-nav-inner {
    padding: 0 14px;
  }
  .mobile-bottom-nav {
    display: block;
  }
  body {
    padding-bottom: 70px;
  }
  .site-footer {
    margin-bottom: 20px;
  }
  .side-panel {
    width: 90vw;
  }
  .channel-list a {
    padding: 8px 12px;
    font-size: 13px;
  }
  .btn {
    padding: 10px 16px;
    font-size: 13px;
  }
  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .brand-nav-right .btn-secondary {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}
