/* MEDIASTORM 影视飓风风格 — PbootCMS 模板样式 */
:root {
  --bg: #14161d;
  --fg: #f5f2ec;
  --muted: #9aa0ad;
  --accent: #f08a1d;
  --card: #1d2029;
  --card-light: #f3f1ec;
  --card-light-fg: #1d2029;
  --border: rgba(255, 255, 255, 0.1);
  --radius: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- 导航 ---------- */
.site-nav { position: fixed; inset: 0 0 auto 0; z-index: 50; }
.nav-inner {
  display: flex; align-items: center; gap: 2rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(to bottom, rgba(0,0,0,.7), transparent);
}
.brand { display: flex; align-items: center; gap: .5rem; font-size: 1.15rem; font-weight: 900; letter-spacing: .25em; }
.logo { width: 28px; height: 28px; }
.nav-links { display: none; gap: 1.75rem; }
.nav-links a { font-size: .875rem; font-weight: 500; color: rgba(245,242,236,.7); transition: color .2s; }
.nav-links a:hover { color: var(--fg); }
@media (min-width: 768px) { .nav-links { display: flex; } }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; min-height: 560px; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-mask { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.4), transparent 60%, var(--bg)); }
.hero-content { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hero-slogan {
  font-size: clamp(3.5rem, 10vw, 9rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
  transform: skewX(-8deg);
  text-shadow: .04em .04em 0 rgba(240,138,29,.35), .08em .08em 0 rgba(0,0,0,.6);
}
.hero-sub {
  margin-top: 2rem; display: flex; flex-direction: column; align-items: center; gap: .25rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .5em; text-transform: uppercase;
  color: rgba(245,242,236,.8);
}
.hero-sub .dim { color: rgba(245,242,236,.5); }
.hero-down { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); color: rgba(245,242,236,.7); }
.hero-down svg { width: 24px; height: 24px; animation: bounce 1.6s infinite; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ---------- 区块 ---------- */
.section { padding: 4rem 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2rem; padding: 0 2.5rem; }
.section-kicker { font-size: .75rem; font-weight: 700; letter-spacing: .4em; text-transform: uppercase; color: var(--accent); }
.section-title { margin-top: .5rem; font-size: 1.75rem; font-weight: 900; letter-spacing: .05em; }
.section-more { display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--muted); transition: color .2s; }
.section-more:hover { color: var(--fg); }
.section-more svg { width: 16px; height: 16px; }

/* ---------- 作品横滑 ---------- */
.rail {
  display: flex; gap: 1rem; overflow-x: auto; padding: 0 2.5rem .5rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}
.rail::-webkit-scrollbar { display: none; }
.work-card { position: relative; flex-shrink: 0; width: 300px; scroll-snap-align: start; background: var(--card); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 1024px) { .work-card { width: 360px; } }
.work-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.work-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.work-card:hover .work-cover img { transform: scale(1.05); }
.work-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(0,0,0,.5); color: var(--fg);
  box-shadow: 0 0 0 1px rgba(245,242,236,.4); backdrop-filter: blur(4px);
  transition: all .3s;
}
.work-play svg { width: 16px; height: 16px; margin-left: 2px; }
.work-card:hover .work-play { transform: translate(-50%, -50%) scale(1.1); background: var(--fg); color: var(--bg); }
.work-badge {
  position: absolute; bottom: .5rem; right: .75rem; padding: .15rem .5rem;
  border-radius: 4px; background: rgba(0,0,0,.5);
  font-size: .625rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.work-title { padding: .75rem 1rem; font-size: .875rem; font-weight: 500; color: rgba(245,242,236,.9); }
.work-card:hover .work-title { color: var(--fg); }

/* ---------- 商店 ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; padding: 0 2.5rem; }
@media (min-width: 1024px) { .shop-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }
.shop-card { background: var(--card-light); color: var(--card-light-fg); border-radius: var(--radius); overflow: hidden; }
.shop-img { aspect-ratio: 1 / 1; overflow: hidden; }
.shop-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.shop-card:hover .shop-img img { transform: scale(1.05); }
.shop-info { padding: .75rem 1rem; }
.shop-name { font-size: .875rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-desc { font-size: .75rem; color: rgba(29,32,41,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-price { padding-top: .25rem; font-size: .875rem; font-weight: 700; }

/* ---------- 列表页 / 内容页 ---------- */
.page-head { padding: 9rem 2.5rem 2rem; }
.page-title { margin-top: .5rem; font-size: 2rem; font-weight: 900; }
.page-desc { margin-top: .5rem; color: var(--muted); font-size: .9rem; }
.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; padding: 0 2.5rem; }
.list-grid .work-card { width: auto; }
.pagination { display: flex; justify-content: center; gap: .5rem; padding: 2.5rem; }
.pagination a, .pagination span { padding: .4rem .8rem; border: 1px solid var(--border); border-radius: 6px; font-size: .85rem; color: var(--muted); }
.pagination a:hover { color: var(--fg); border-color: var(--fg); }

.article { max-width: 760px; margin: 0 auto; padding: 9rem 1.5rem 4rem; }
.article-title { margin-top: .5rem; font-size: 1.9rem; font-weight: 900; line-height: 1.3; }
.article-meta { margin-top: .75rem; color: var(--muted); font-size: .8rem; }
.article-body { margin-top: 2.5rem; color: rgba(245,242,236,.85); }
.article-body p { margin-bottom: 1.25rem; }
.article-body img { border-radius: var(--radius); margin: 1.5rem 0; }
.article-pn { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: .875rem; color: var(--muted); display: grid; gap: .5rem; }
.article-pn a:hover { color: var(--fg); }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 3rem 2.5rem; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: .5rem; font-weight: 900; letter-spacing: .25em; color: rgba(245,242,236,.8); }
.footer-brand .logo { width: 24px; height: 24px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; font-size: .75rem; color: var(--muted); }
.footer-links a:hover { color: var(--fg); }
.footer-slogan { font-size: .625rem; letter-spacing: .4em; text-transform: uppercase; color: rgba(154,160,173,.6); }
.footer-icp { font-size: .7rem; color: rgba(154,160,173,.4); }

::selection { background: var(--accent); color: var(--bg); }
