/* =========================================================
 * 麻豆tv —— 直播间霓虹风主样式表
 * 主色 #480082 / 辅助 #FF00FF / 点缀 #00FFFF / 背景 #121212
 * 全站自定义 class 与 id 一律使用 mt- 前缀
 * ========================================================= */

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Source Han Sans CN", "Source Han Sans", "Hiragino Sans GB",
               "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #121212;
  color: #f3eaff;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #ff66ff; text-decoration: none; transition: color .2s ease, text-shadow .2s ease; }
a:hover { color: #00ffff; text-shadow: 0 0 6px rgba(0,255,255,.7); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- 全站背景氛围 ---------- */
.mt-bg-aura {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(72,0,130,.55), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(255,0,255,.30), transparent 60%),
    radial-gradient(1000px 700px at 50% 110%, rgba(0,255,255,.18), transparent 60%),
    #0a0010;
}

/* ---------- 顶部导航 ---------- */
.mt-header {
  position: relative; z-index: 30;
  background: rgba(10, 0, 20, .92);
  border-bottom: 1px solid rgba(255, 0, 255, .25);
  backdrop-filter: blur(8px);
}
.mt-nav-wrap {
  max-width: 1280px; margin: 0 auto; padding: 14px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.mt-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 22px; letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 0 6px #ff00ff, 0 0 14px rgba(255,0,255,.7);
}
.mt-logo img { width: 36px; height: 36px; border-radius: 8px; }
.mt-logo span.mt-logo-tv { color: #00ffff; text-shadow: 0 0 6px #00ffff; }

.mt-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.mt-nav a {
  position: relative; padding: 8px 14px; color: #f3eaff; font-size: 15px;
  border-radius: 8px;
  transition: all .25s cubic-bezier(.23,1,.32,1);
}
.mt-nav a:hover { color: #fff; transform: translateY(-1px); }
.mt-nav a:hover::after, .mt-nav a.mt-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: linear-gradient(90deg, #ff00ff, #00ffff);
  box-shadow: 0 0 10px rgba(255, 0, 255, .8);
  border-radius: 2px;
}
.mt-nav a.mt-active { color: #fff; }

.mt-nav-cta {
  padding: 8px 18px; border-radius: 999px;
  background: linear-gradient(90deg, #ff00ff, #480082);
  color: #fff; font-weight: 600;
  box-shadow: 0 0 14px rgba(255,0,255,.5), inset 0 0 0 1px rgba(255,255,255,.18);
  transition: transform .15s ease, box-shadow .25s ease;
}
.mt-nav-cta:hover { transform: translateY(-1px); box-shadow: 0 0 22px rgba(255,0,255,.8); color: #fff; }
.mt-nav-cta:active { transform: scale(.97); }

/* 汉堡菜单 (移动端) */
.mt-burger { display: none; width: 40px; height: 40px; border: none; background: transparent; }
.mt-burger span { display: block; width: 22px; height: 2px; margin: 5px auto;
  background: #ff66ff; box-shadow: 0 0 6px #ff00ff; border-radius: 2px; transition: .2s; }

/* ---------- 主内容容器 ---------- */
.mt-container { max-width: 1280px; margin: 0 auto; padding: 0 22px; }

/* ---------- Hero ---------- */
.mt-hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid rgba(255,0,255,.18);
}
.mt-hero-inner {
  max-width: 1280px; margin: 0 auto; padding: 60px 22px 80px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
}
.mt-hero h1 {
  font-size: 44px; line-height: 1.18; font-weight: 800;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 0, 255, .35);
}
.mt-hero h1 .mt-grad { background: linear-gradient(90deg, #ff00ff, #00ffff);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.mt-hero p { margin-top: 18px; font-size: 17px; color: #d9c8ff; max-width: 560px; }
.mt-hero-cta { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.mt-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: none; transition: transform .15s ease, box-shadow .25s ease, background .25s;
}
.mt-btn-primary {
  background: linear-gradient(90deg, #ff00ff, #6a00b3);
  color: #fff;
  box-shadow: 0 0 16px rgba(255,0,255,.55), inset 0 0 0 1px rgba(255,255,255,.18);
}
.mt-btn-primary:hover { box-shadow: 0 0 24px rgba(255,0,255,.85); transform: translateY(-1px); }
.mt-btn-primary:active { transform: scale(.97); }
.mt-btn-ghost {
  background: rgba(0,255,255,.08); color: #aafcff;
  border: 1px solid rgba(0,255,255,.4);
  box-shadow: inset 0 0 12px rgba(0,255,255,.18);
}
.mt-btn-ghost:hover { color: #fff; background: rgba(0,255,255,.18); box-shadow: 0 0 16px rgba(0,255,255,.4); }

.mt-hero-art {
  position: relative; border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(255,0,255,.35);
  box-shadow: 0 0 40px rgba(255,0,255,.25), 0 18px 60px rgba(0,0,0,.55);
}
.mt-hero-art img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/9; }
.mt-hero-art::after {
  content: "LIVE"; position: absolute; top: 14px; left: 14px;
  padding: 4px 10px; font-size: 12px; font-weight: 800; letter-spacing: 1px;
  background: #ff0066; color: #fff; border-radius: 6px;
  box-shadow: 0 0 10px rgba(255, 0, 102, .7);
}

/* 弹幕条 */
.mt-danmaku {
  position: absolute; left: 0; right: 0; bottom: 12%;
  height: 36px; pointer-events: none; overflow: hidden;
}
.mt-danmaku-track { display: flex; gap: 30px; animation: mt-marquee 30s linear infinite; white-space: nowrap; }
.mt-danmaku-track span {
  padding: 4px 12px; font-size: 13px; color: #fff;
  background: rgba(72,0,130,.6); border-radius: 999px;
  border: 1px solid rgba(255,0,255,.4);
  box-shadow: 0 0 10px rgba(255,0,255,.4);
}
@keyframes mt-marquee { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* ---------- 区块 ---------- */
.mt-section { padding: 70px 0 30px; }
.mt-section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.mt-section-head h2 {
  font-size: 30px; font-weight: 800; color: #fff;
  letter-spacing: 1px;
  border-left: 4px solid #ff00ff; padding-left: 12px;
  text-shadow: 0 0 8px rgba(255, 0, 255, .35);
}
.mt-section-head .mt-section-tag {
  font-size: 13px; color: #aafcff; padding: 4px 10px;
  border: 1px solid rgba(0,255,255,.4); border-radius: 999px;
  box-shadow: inset 0 0 10px rgba(0,255,255,.15);
}
.mt-section-desc { color: #d4c4ee; max-width: 760px; margin-bottom: 30px; }

/* ---------- 卡片 ---------- */
.mt-grid { display: grid; gap: 22px; grid-template-columns: repeat(4, minmax(0,1fr)); }
.mt-grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.mt-grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }

.mt-card {
  position: relative;
  background: linear-gradient(180deg, rgba(72,0,130,.30), rgba(18,18,18,.85));
  border: 1px solid rgba(255,0,255,.25);
  border-radius: 16px; overflow: hidden;
  transition: transform .25s cubic-bezier(.23,1,.32,1), box-shadow .25s, border-color .25s;
}
.mt-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,255,255,.55);
  box-shadow: 0 0 28px rgba(255,0,255,.35), 0 16px 30px rgba(0,0,0,.5);
}
.mt-card-img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.mt-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mt-card:hover .mt-card-img img { transform: scale(1.05); }
.mt-card-badge {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 9px; font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(90deg, #ff0066, #ff00ff); border-radius: 6px;
  box-shadow: 0 0 10px rgba(255,0,102,.6);
}
.mt-card-meta {
  position: absolute; right: 10px; top: 10px;
  font-size: 12px; color: #fff;
  padding: 3px 9px; background: rgba(0,0,0,.55); border-radius: 6px;
  border: 1px solid rgba(0,255,255,.4);
}
.mt-card-body { padding: 14px 16px 16px; }
.mt-card-title { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.mt-card-sub { color: #cdb8ff; font-size: 13px; }

/* ---------- 模块图文 ---------- */
.mt-feature {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center;
  background: linear-gradient(180deg, rgba(72,0,130,.20), rgba(18,18,18,.6));
  border: 1px solid rgba(255,0,255,.18);
  border-radius: 18px; padding: 26px; margin-top: 20px;
}
.mt-feature.mt-reverse { grid-template-columns: 1fr 1.1fr; }
.mt-feature.mt-reverse .mt-feature-art { order: -1; }
.mt-feature-art img { border-radius: 14px; border: 1px solid rgba(0,255,255,.3); box-shadow: 0 0 24px rgba(0,255,255,.2); }
.mt-feature h3 { font-size: 22px; color: #fff; margin-bottom: 10px;
  text-shadow: 0 0 6px rgba(255, 0, 255, .35); }
.mt-feature p { color: #d6c8ff; }

/* ---------- 排行榜 ---------- */
.mt-rank-list { display: grid; gap: 12px; }
.mt-rank-item {
  display: grid; grid-template-columns: 50px 60px 1fr auto; gap: 14px; align-items: center;
  padding: 12px 16px;
  background: rgba(255,0,255,.06);
  border: 1px solid rgba(255,0,255,.18);
  border-radius: 12px;
  transition: all .25s cubic-bezier(.23,1,.32,1);
}
.mt-rank-item:hover { border-color: rgba(0,255,255,.5); transform: translateX(4px); }
.mt-rank-no {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #ff00ff, #480082);
  box-shadow: 0 0 12px rgba(255,0,255,.55);
}
.mt-rank-no.mt-no-1 { background: linear-gradient(135deg, #ffd700, #ff00aa); box-shadow: 0 0 18px #ffd700; }
.mt-rank-no.mt-no-2 { background: linear-gradient(135deg, #c0c0ff, #6a00b3); }
.mt-rank-no.mt-no-3 { background: linear-gradient(135deg, #00ffff, #480082); }
.mt-rank-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,0,255,.5); box-shadow: 0 0 8px rgba(255,0,255,.5); }
.mt-rank-name { font-weight: 700; color: #fff; }
.mt-rank-room { font-size: 13px; color: #b6a8e0; }
.mt-rank-gift { font-weight: 800; color: #00ffff; text-shadow: 0 0 6px rgba(0,255,255,.7); }

/* ---------- 公告条 ---------- */
.mt-noticebar {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 16px; margin: 18px 0 0;
  background: rgba(255,0,255,.08);
  border: 1px solid rgba(255,0,255,.3); border-radius: 999px;
  overflow: hidden;
}
.mt-noticebar .mt-tag {
  flex-shrink: 0; padding: 4px 10px; border-radius: 999px;
  background: linear-gradient(90deg, #ff00ff, #00ffff); color: #0a0010;
  font-weight: 800; font-size: 12px;
}
.mt-noticebar p { color: #f3eaff; white-space: nowrap; animation: mt-noticeloop 28s linear infinite; }
@keyframes mt-noticeloop { 0% { transform: translateX(40%); } 100% { transform: translateX(-100%); } }

/* ---------- 表单 ---------- */
.mt-form { display: grid; gap: 14px; max-width: 760px; }
.mt-form .mt-row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.mt-form label { display: block; font-weight: 600; color: #fff; margin-bottom: 6px; }
.mt-form input, .mt-form select, .mt-form textarea {
  width: 100%; padding: 12px 14px; font-size: 15px; color: #fff;
  background: rgba(10, 0, 20, .65);
  border: 1px solid rgba(255,0,255,.35); border-radius: 10px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
}
.mt-form input:focus, .mt-form select:focus, .mt-form textarea:focus {
  border-color: #00ffff; box-shadow: 0 0 12px rgba(0,255,255,.45);
}
.mt-form .mt-checks { display: flex; flex-wrap: wrap; gap: 10px; }
.mt-form .mt-check {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-size: 13px;
  background: rgba(0,255,255,.06); border: 1px solid rgba(0,255,255,.3);
  color: #aafcff; cursor: pointer; transition: .2s;
}
.mt-form .mt-check input { width: auto; }
.mt-form .mt-check:hover { color: #fff; border-color: #00ffff; }
.mt-form .mt-submit { justify-self: start; padding: 14px 32px; }

/* ---------- 流程图 ---------- */
.mt-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 22px 0 30px; }
.mt-step {
  position: relative; padding: 22px 18px 20px; border-radius: 14px;
  background: rgba(72,0,130,.25);
  border: 1px solid rgba(255,0,255,.25);
  text-align: center;
}
.mt-step .mt-step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; margin-bottom: 10px;
  background: linear-gradient(135deg, #ff00ff, #480082);
  color: #fff; font-weight: 800;
  box-shadow: 0 0 14px rgba(255,0,255,.55);
}
.mt-step h4 { font-size: 16px; color: #fff; margin-bottom: 4px; }
.mt-step p { font-size: 13px; color: #cdb8ff; }
.mt-step::after {
  content: "›"; position: absolute; top: 50%; right: -14px; transform: translateY(-50%);
  font-size: 28px; color: #00ffff; text-shadow: 0 0 8px #00ffff;
}
.mt-step:last-child::after { display: none; }

/* ---------- App download ---------- */
.mt-app {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center;
  padding: 30px; border-radius: 22px;
  background: linear-gradient(135deg, rgba(72,0,130,.45), rgba(255,0,255,.18));
  border: 1px solid rgba(255,0,255,.35);
}
.mt-qrwrap { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.mt-qr {
  width: 150px; height: 150px; border-radius: 14px;
  background:
    repeating-conic-gradient(from 0deg at 50% 50%, #ff00ff 0 25%, #00ffff 25% 50%) ,
    #0a0010;
  background-size: 14px 14px;
  border: 4px solid #00ffff; box-shadow: 0 0 16px rgba(0,255,255,.4);
  position: relative;
}
.mt-qr::before {
  content: ""; position: absolute; inset: 18%; background: rgba(10,0,20,.7);
  border-radius: 6px;
}

/* ---------- 页脚 ---------- */
.mt-footer {
  margin-top: 90px; padding: 50px 0 28px;
  background: rgba(5, 0, 12, .92);
  border-top: 1px solid rgba(255,0,255,.25);
}
.mt-footer-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 30px;
  max-width: 1280px; margin: 0 auto; padding: 0 22px;
}
.mt-footer h5 { color: #fff; margin-bottom: 14px; font-size: 16px; letter-spacing: 1px;
  border-left: 3px solid #00ffff; padding-left: 8px; }
.mt-footer ul li { margin-bottom: 6px; }
.mt-footer a { color: #cdb8ff; }
.mt-footer-bottom {
  margin-top: 30px; padding: 18px 22px 0;
  border-top: 1px solid rgba(255,0,255,.15);
  text-align: center; color: #b6a8e0; font-size: 13px; line-height: 1.9;
}
.mt-footer-bottom a { color: #cdb8ff; }
.mt-honor {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px; margin: 0 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff00ff, #00ffff);
  color: #0a0010; font-weight: 700; font-size: 12px;
}

/* ---------- Tab Bar (移动端) ---------- */
.mt-tabbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0;
  background: rgba(5, 0, 12, .96);
  border-top: 1px solid rgba(255,0,255,.3);
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom)); z-index: 40;
}
.mt-tabbar a {
  flex: 1; text-align: center; color: #cdb8ff; font-size: 12px; padding: 6px 0;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.mt-tabbar a.mt-active { color: #00ffff; text-shadow: 0 0 6px #00ffff; }
.mt-tabbar svg { width: 22px; height: 22px; }

/* ---------- 轻量进入动画 ---------- */
@media (prefers-reduced-motion: no-preference) {
  .mt-fade-up { opacity: 0; transform: translateY(16px); transition: opacity .6s ease-out, transform .6s cubic-bezier(.23,1,.32,1); }
  .mt-fade-up.mt-in { opacity: 1; transform: translateY(0); }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1280px) {
  .mt-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 1024px) {
  .mt-hero h1 { font-size: 36px; }
  .mt-hero-inner { grid-template-columns: 1fr; padding-top: 36px; }
  .mt-feature, .mt-feature.mt-reverse { grid-template-columns: 1fr; }
  .mt-feature.mt-reverse .mt-feature-art { order: 0; }
  .mt-app { grid-template-columns: 1fr; }
  .mt-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .mt-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .mt-grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .mt-steps { grid-template-columns: repeat(2, 1fr); }
  .mt-step::after { display: none; }
  .mt-form .mt-row { grid-template-columns: 1fr; }
  .mt-burger { display: inline-block; }
  .mt-nav, .mt-nav-cta { display: none; }
  .mt-nav.mt-open { display: flex; flex-basis: 100%; flex-direction: column; gap: 4px; padding-top: 10px; }
  .mt-nav.mt-open a { padding: 10px 14px; border-radius: 8px; background: rgba(255,0,255,.06); }
  .mt-tabbar { display: flex; }
  body { padding-bottom: 64px; }
  .mt-hero h1 { font-size: 28px; }
  .mt-section { padding: 50px 0 20px; }
  .mt-footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 375px) {
  .mt-grid, .mt-grid-3 { grid-template-columns: 1fr; }
}

/* ---------- 干扰块强制隐藏 ---------- */
.live-jammer-block { display: none !important; }
