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

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  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-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;
}

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

ul, ol {
  list-style: none;
}

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

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

/* ========== 顶部信息栏 ========== */
.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: 1002;
}

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

.top-bar-left {
  flex: 1;
}

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

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

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

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

.top-bar-right a,
.top-bar-right button {
  color: #A5A5A5;
  font-size: 13px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

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

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

/* ========== 品牌导航 ========== */
.brand-nav {
  background: #000000;
  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;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.menu-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #FFFFFF;
  font-size: 14px;
  padding: 10px 12px;
  min-height: 44px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  cursor: pointer;
}

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

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

.current-channel {
  color: #A5A5A5;
  font-size: 13px;
  display: none;
}

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

.brand-logo a {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #FFFFFF;
}

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

.brand-logo .logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #FFFFFF;
  line-height: 1.1;
}

.brand-logo .logo-en {
  font-size: 10px;
  letter-spacing: 0.25em;
  color: #C7C7C7;
  margin-top: 2px;
  text-transform: uppercase;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  color: #000000 !important;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  min-height: 44px;
  border-radius: 4px;
  white-space: nowrap;
  border: 1px solid #FFFFFF;
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #FFFFFF !important;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  min-height: 44px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}

.btn-secondary:hover {
  border-color: #FFFFFF;
  background: #1A1A1A;
}

/* ========== 影视频道导航 ========== */
.channel-nav {
  background: #050505;
  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;
  overflow: hidden;
}

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

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

.channel-list a {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  height: 48px;
  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 {
  position: relative;
  margin-left: 8px;
  flex-shrink: 0;
}

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

.channel-more-btn:hover,
.channel-more-btn.open {
  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);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1100;
}

.channel-more-menu.open {
  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;
}

/* ========== 主内容区 ========== */
main {
  min-height: 60vh;
}

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

.section {
  padding: 64px 0;
}

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

.section-desc {
  font-size: 15px;
  color: #A5A5A5;
  margin-bottom: 36px;
  max-width: 680px;
}

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

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

.section-link {
  font-size: 14px;
  color: #C7C7C7;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 2px;
}

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

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

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  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.08);
}

.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(135deg, #0B0B0B 0%, #1A1A1A 100%);
  color: #727272;
  font-size: 14px;
  letter-spacing: 0.1em;
}

.hero-content h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.25;
  margin-bottom: 20px;
  color: #FFFFFF;
}

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

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

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

.hero-news-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

.hero-news-text {
  font-size: 14px;
  color: #A5A5A5;
  line-height: 1.6;
}

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

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

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

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

.card-grid-4 {
  grid-template-columns: repeat(4, 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;
}

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

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

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

.card:hover .card-img img {
  transform: scale(1.03);
}

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

.card-body {
  padding: 20px 20px 22px;
}

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

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

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

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

.card-meta {
  font-size: 12px;
  color: #727272;
  margin-top: 12px;
}

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

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

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

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

.list-content h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

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

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

/* ========== 双栏 ========== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

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

.page-hero h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.page-hero p {
  font-size: 16px;
  color: #A5A5A5;
  max-width: 640px;
  margin-bottom: 0;
}

.page-content {
  padding: 48px 0 64px;
}

/* ========== 文章内容 ========== */
.article-body {
  max-width: 760px;
}

.article-body h2 {
  font-size: 22px;
  margin: 36px 0 16px;
}

.article-body h3 {
  font-size: 18px;
  margin: 28px 0 12px;
}

.article-body p {
  margin-bottom: 1.1em;
  font-size: 15px;
  line-height: 1.8;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.2em 1.4em;
  color: #DDDDDD;
}

.article-body li {
  margin-bottom: 0.5em;
  font-size: 15px;
  line-height: 1.7;
}

.article-body blockquote {
  border-left: 3px solid rgba(255, 255, 255, 0.3);
  padding: 12px 0 12px 20px;
  margin: 24px 0;
  color: #A5A5A5;
  font-style: italic;
}

.note-box {
  background: #0B0B0B;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 28px 0;
  font-size: 14px;
  color: #A5A5A5;
}

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

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

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

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

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

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

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

.faq-item .faq-answer {
  padding: 0 0 20px;
  font-size: 14px;
  color: #A5A5A5;
  line-height: 1.75;
}

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

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

.footer-brand .logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #FFFFFF;
  margin-bottom: 4px;
}

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

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

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

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

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

/* ========== 全站栏目面板 ========== */
.side-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 500px;
  max-width: 90vw;
  height: 100%;
  background: #0B0B0B;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.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.1);
  position: sticky;
  top: 0;
  background: #0B0B0B;
  z-index: 1;
}

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

.side-panel-brand .logo-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #FFFFFF;
}

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

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

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

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

.panel-group-title {
  font-size: 12px;
  color: #727272;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
  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.05);
}

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

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

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

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

/* ========== 搜索面板 ========== */
.search-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000000;
  z-index: 2100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 20px 40px;
  overflow-y: auto;
}

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

.search-panel-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A5A5A5;
  font-size: 28px;
  border-radius: 4px;
}

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

.search-box {
  width: 100%;
  max-width: 640px;
  margin-bottom: 40px;
}

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

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

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

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

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

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

.search-tags a {
  display: inline-block;
  padding: 8px 16px;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  font-size: 13px;
  color: #A5A5A5;
}

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

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

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

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

/* ========== 遮罩 ========== */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s;
}

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

/* ========== 手机底部导航 ========== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 1000;
  height: 56px;
  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;
  max-width: 100%;
}

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

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

.mobile-bottom-nav a span {
  font-size: 11px;
}

/* ========== 通用工具 ========== */
.text-muted {
  color: #A5A5A5;
}

.text-light {
  color: #C7C7C7;
}

.text-dim {
  color: #727272;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }

.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 */
a:focus-visible,
button:focus-visible,
.menu-toggle:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.search-input:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 2px;
}

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

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-content h1 {
    font-size: 30px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .three-col {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar {
    height: 34px;
  }
  .top-bar-center,
  .top-bar-left {
    display: none;
  }
  .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: 12px;
    color: #A5A5A5;
  }
  .top-bar-mobile a,
  .top-bar-mobile button {
    font-size: 12px;
    color: #A5A5A5;
    background: none;
    border: none;
    padding: 4px 8px;
  }
  .top-bar-mobile a:hover,
  .top-bar-mobile button:hover {
    color: #FFFFFF;
  }

  .brand-nav {
    height: 56px;
  }
  .brand-nav-inner {
    padding: 0 14px;
  }
  .current-channel {
    display: none;
  }
  .brand-logo .logo-text {
    font-size: 18px;
  }
  .brand-logo .logo-en {
    font-size: 9px;
  }
  .brand-nav-right .btn-secondary {
    display: none;
  }
  .brand-nav-right .btn-primary {
    padding: 8px 14px;
    font-size: 13px;
  }

  .channel-nav-inner {
    padding: 0 14px;
    overflow: hidden;
  }
  .channel-list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .channel-list a {
    padding: 0 12px;
    font-size: 13px;
  }

  .container {
    padding: 0 14px;
  }

  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 22px;
  }

  .hero {
    padding: 32px 0 40px;
  }
  .hero-content h1 {
    font-size: 26px;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .card-grid,
  .card-grid-2,
  .card-grid-4 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .list-item {
    grid-template-columns: 48px 1fr;
    gap: 12px;
  }
  .list-num {
    font-size: 22px;
  }

  .page-hero {
    padding: 32px 0 28px;
  }
  .page-hero h1 {
    font-size: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .three-col {
    grid-template-columns: 1fr;
  }

  .mobile-bottom-nav {
    display: block;
  }

  body {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0));
  }

  .site-footer {
    padding-bottom: 24px;
  }

  .side-panel {
    width: 90vw;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 22px;
  }
  .section-title {
    font-size: 20px;
  }
  .card-body {
    padding: 16px;
  }
}

/* body lock when panel open */
body.panel-open {
  overflow: hidden;
}
