/* 麻豆影院 / Editorial cinema design system */
:root {
  --ink: #192229;
  --muted: #657078;
  --paper: #f8f6f1;
  --line: #dedfdc;
  --accent: #d15e48;
  --dark: #13252a;
  --radius: 10px;
  --max: 1260px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.75 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  object-fit: cover;
}

button {
  font: inherit;
}

a:focus-visible,button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 100;
}

.skip:focus {
  left: 10px;
  background: #fff;
  padding: 8px;
}

.site-shell {
  overflow: hidden;
}

.site-header {
  position: relative;
  background: var(--paper);
  z-index: 5;
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  max-width: var(--max);
  margin: auto;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 30px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  background: var(--dark);
  color: #fff;
  width: 51px;
  height: 51px;
  border-radius: 50%;
  font-family: Georgia,serif;
  font-size: 29px;
  font-weight: bold;
  letter-spacing: -3px;
}

.brand-mark span {
  color: var(--accent);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-copy strong {
  font-size: 19px;
  letter-spacing: 3px;
}

.brand-copy small {
  font-size: 9px;
  letter-spacing: 2.8px;
  color: #748087;
  margin-top: 6px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 27px;
}

.desktop-nav a {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: #39464c;
}

.desktop-nav a:hover,.text-link:hover,.section-more:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 26px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
}

.hero-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 44px 24px 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 5%;
  min-height: 550px;
  align-items: center;
}

.overline,.section-kicker {
  font-size: 11px;
  letter-spacing: 3px;
  font-weight: 800;
  color: var(--accent);
}

.mini-line {
  display: inline-block;
  width: 22px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 8px;
}

.hero-copy {
  padding: 25px 0 35px;
}

.hero-copy h1 {
  font-size: clamp(42px,5vw,72px);
  line-height: 1.25;
  letter-spacing: -2px;
  font-weight: 750;
  margin: 25px 0 30px;
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-desc {
  font-size: 14px;
  line-height: 2.1;
  max-width: 530px;
  color: #657077;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 35px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  padding: 14px 23px;
  background: var(--dark);
  color: #fff;
  font-weight: 650;
  font-size: 13px;
}

.primary-button:hover {
  background: var(--accent);
}

.ghost-button {
  font-size: 13px;
  border-bottom: 1px solid #9b9e9b;
}

.hero-note {
  font-size: 11px;
  letter-spacing: 1px;
  margin-top: 46px;
  color: #8a8f90;
}

.tiny-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
}

.hero-media {
  position: relative;
  height: 570px;
  background: #293234;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  filter: saturate(.78);
}

.hero-media:after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent,rgba(0,0,0,.68));
}

.hero-image-caption {
  position: absolute;
  z-index: 1;
  bottom: 36px;
  left: 34px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-image-caption span {
  font-size: 10px;
  letter-spacing: 2px;
}

.hero-image-caption b {
  font-size: 22px;
  letter-spacing: 1px;
}

.hero-corner {
  position: absolute;
  top: 26px;
  right: 26px;
  z-index: 1;
  color: #fff;
  border: 1px solid #ffffff90;
  padding: 6px 14px;
  font-size: 12px;
  letter-spacing: 2px;
}

.signal-strip {
  background: #eae9e2;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-around;
  gap: 20px;
  padding: 16px 30px;
  color: #677277;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 2px;
}

.section-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 24px 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 34px;
}

.section-heading h2 {
  font-size: clamp(25px,2.7vw,36px);
  line-height: 1.35;
  letter-spacing: -.8px;
  margin: 12px 0 10px;
}

.section-heading h2 i {
  font-style: normal;
  color: var(--accent);
  font-weight: 400;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.side-number {
  font: 20px Georgia,serif;
  color: #9aa09c;
  white-space: nowrap;
}

.featured-grid,.library-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 20px;
}

.work-card {
  min-width: 0;
  background: #fff;
  border: 1px solid #e7e7e3;
  transition: transform .2s,box-shadow .2s;
}

.work-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px #172c3020;
}

.cover-link {
  display: block;
  overflow: hidden;
  background: #d7d4cc;
  aspect-ratio: 1.14;
}

.cover-link img {
  width: 100%;
  height: 100%;
  transition: transform .35s;
}

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

.work-info {
  padding: 19px 18px 23px;
}

.eyebrow {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 1.6px;
}

.work-info h3 {
  font-size: 18px;
  line-height: 1.5;
  margin: 9px 0;
}

.work-info p {
  color: #717a7e;
  font-size: 12px;
  line-height: 1.9;
  margin: 0 0 17px;
  min-height: 68px;
}

.text-link {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .4px;
}

.text-link span {
  margin-left: 7px;
  color: var(--accent);
}

.editorial-band {
  margin-top: 105px;
  background: var(--dark);
  color: white;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 460px;
}

.editorial-img {
  overflow: hidden;
}

.editorial-img img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  filter: grayscale(.3);
}

.editorial-copy {
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 70px 12%;
}

.editorial-copy h2 {
  font-size: clamp(32px,3.6vw,49px);
  line-height: 1.4;
  margin: 20px 0;
}

.editorial-copy p {
  font-size: 14px;
  line-height: 2.2;
  color: #c2cdd0;
  max-width: 470px;
}

.light-button {
  margin-top: 25px;
  padding-bottom: 7px;
  border-bottom: 1px solid #fff;
  font-size: 13px;
}

.light-button span {
  margin-left: 15px;
  color: #f1a794;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 14px;
}

.topic-card {
  min-height: 240px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  background: #e1e8e4;
}

.topic-card:after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border: 35px solid #ffffff40;
  border-radius: 50%;
  right: -60px;
  top: 70px;
}

.topic-mystery {
  background: #cbd8d7;
}

.topic-romance {
  background: #f3dfd4;
}

.topic-visual {
  background: #dcd9e9;
}

.topic-index {
  font: 15px Georgia,serif;
  color: #566369;
}

.topic-card strong {
  display: block;
  font-size: 25px;
  letter-spacing: 2px;
}

.topic-card small {
  font-size: 12px;
  color: #69767a;
}

.topic-arrow {
  position: absolute;
  bottom: 26px;
  right: 24px;
  font-size: 24px;
  z-index: 1;
}

.library-section {
  padding-bottom: 110px;
}

.section-more {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.library-grid {
  row-gap: 22px;
}

.compact-card .cover-link {
  aspect-ratio: 1.45;
}

.compact-card .work-info p {
  min-height: 68px;
}

.closing-banner {
  text-align: center;
  padding: 100px 24px;
  background: #efe9e0;
  border-top: 1px solid #ded7d0;
}

.closing-banner h2 {
  font-size: clamp(34px,4vw,55px);
  line-height: 1.35;
  margin: 20px 0;
}

.closing-banner p {
  font-size: 13px;
  color: #697176;
}

.closing-banner a {
  display: inline-flex;
  gap: 30px;
  background: var(--accent);
  color: #fff;
  padding: 12px 23px;
  font-size: 12px;
  font-weight: bold;
  margin-top: 25px;
}

.site-footer {
  background: #172b30;
  color: #f5f3ec;
}

.footer-inner {
  max-width: var(--max);
  margin: auto;
  padding: 58px 24px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer-brand {
  font-size: 23px;
  font-weight: bold;
  letter-spacing: 2px;
}

.footer-brand span {
  font-size: 11px;
  color: #879ea2;
  letter-spacing: 2px;
}

.footer-inner p {
  font-size: 13px;
  color: #c5d0cf;
}

.footer-inner small {
  display: block;
  font-size: 11px;
  max-width: 600px;
  color: #97a8aa;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-content: center;
  font-size: 12px;
}

.foot-bottom {
  max-width: var(--max);
  margin: auto;
  padding: 16px 24px;
  border-top: 1px solid #33474b;
  display: flex;
  justify-content: space-between;
  color: #98a8a9;
  font-size: 11px;
}

.interior-head {
  background: #e9ebe7;
  border-bottom: 1px solid #d7ddda;
}

.interior-inner {
  max-width: var(--max);
  margin: auto;
  padding: 65px 24px 70px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #6d797c;
  font-size: 11px;
  margin-bottom: 38px;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.interior-head h1 {
  font-size: clamp(36px,5vw,62px);
  line-height: 1.3;
  margin: 10px 0;
}

.interior-head h1 span {
  font-size: .45em;
  color: #8e9898;
  font-weight: 400;
}

.interior-head p {
  max-width: 720px;
  color: #667377;
  font-size: 14px;
}

.category-related {
  padding-bottom: 100px;
}

.article-top {
  max-width: var(--max);
  margin: auto;
  padding: 42px 24px 0;
}

.article-heading {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.article-heading .breadcrumbs {
  justify-content: center;
}

.article-heading h1 {
  font-size: clamp(37px,5vw,62px);
  line-height: 1.35;
  margin: 12px 0 18px;
}

.article-heading>p {
  font-size: 16px;
  color: #617076;
  line-height: 2;
}

.article-meta {
  display: flex;
  gap: 13px;
  justify-content: center;
  flex-wrap: wrap;
  color: #8b9698;
  font-size: 11px;
  letter-spacing: 1px;
  margin: 25px 0 42px;
}

.article-hero {
  max-width: 1050px;
  margin: auto;
}

.article-hero img {
  width: 100%;
  height: auto;
  max-height: 600px;
  aspect-ratio: 1.9;
  object-fit: cover;
}

.article-hero p {
  font-size: 11px;
  color: #999;
  text-align: right;
}

.article-layout {
  max-width: 1040px;
  margin: 65px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 225px minmax(0,1fr);
  gap: 74px;
}

.article-aside {
  position: sticky;
  top: 30px;
  align-self: start;
  border-top: 2px solid var(--dark);
  padding-top: 20px;
}

.article-aside p {
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 800;
}

.article-aside>a {
  display: block;
  margin: 17px 0;
  font-size: 12px;
  color: #68757b;
}

.article-aside>a span {
  display: inline-block;
  color: var(--accent);
  width: 34px;
}

.article-aside .back-category {
  margin-top: 35px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  color: var(--accent);
}

.article-prose {
  min-width: 0;
}

.intro-lede {
  font-size: 21px !important;
  color: #2d4149 !important;
  font-weight: 500;
  border-left: 3px solid var(--accent);
  padding-left: 23px;
  margin: 0 0 50px !important;
}

.article-section {
  margin-bottom: 48px;
}

.article-section-num {
  font: 15px Georgia,serif;
  color: var(--accent);
}

.article-section h2 {
  font-size: 24px;
  line-height: 1.5;
  margin: 8px 0 16px;
}

.article-section p,.article-prose p {
  font-size: 15px;
  color: #59666a;
  line-height: 2.25;
}

.article-end {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  color: #9c9d9a;
  font-size: 12px;
}

.related-area {
  padding-bottom: 100px;
}

.related-area .library-grid {
  grid-template-columns: repeat(2,minmax(0,1fr));
}

.about-layout {
  max-width: 960px;
  margin: 65px auto 100px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
}

.about-layout h2 {
  font-size: 25px;
}

.about-layout p {
  line-height: 2.2;
  color: #657276;
  font-size: 15px;
}

@media (max-width:1100px) {
  .desktop-nav {
    gap: 15px;
  }

  .desktop-nav a {
    font-size: 12px;
  }

  .hero-copy h1 {
    font-size: 52px;
  }

  .featured-grid,.library-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }

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

}

@media (max-width:760px) {
  .nav-wrap {
    min-height: 74px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-nav:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 12px;
    padding: 17px 24px 26px;
    border-top: 1px solid var(--line);
  }

  .mobile-nav a {
    font-size: 14px;
  }

  .hero-section {
    padding: 30px 20px 50px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .hero-copy {
    padding: 0;
  }

  .hero-copy h1 {
    font-size: 45px;
    letter-spacing: -1px;
    margin: 20px 0;
  }

  .hero-desc {
    font-size: 13px;
  }

  .hero-note {
    margin-top: 25px;
  }

  .hero-media {
    height: 390px;
  }

  .hero-image-caption {
    bottom: 22px;
    left: 20px;
  }

  .hero-image-caption b {
    font-size: 16px;
  }

  .signal-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 14px 20px;
    font-size: 10px;
  }

  .section-wrap {
    padding: 68px 20px 0;
  }

  .section-heading {
    align-items: flex-start;
  }

  .section-heading p {
    font-size: 12px;
  }

  .featured-grid,.library-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 13px;
  }

  .work-info {
    padding: 13px;
  }

  .work-info h3 {
    font-size: 15px;
  }

  .work-info p {
    font-size: 11px;
    min-height: 0;
  }

  .cover-link {
    aspect-ratio: 1;
  }

  .editorial-band {
    margin-top: 70px;
    grid-template-columns: 1fr;
  }

  .editorial-img img {
    min-height: 270px;
    max-height: 330px;
  }

  .editorial-copy {
    padding: 50px 24px;
  }

  .topic-grid {
    gap: 10px;
  }

  .topic-card {
    min-height: 180px;
    padding: 17px;
  }

  .topic-card strong {
    font-size: 20px;
  }

  .topic-arrow {
    bottom: 17px;
    right: 15px;
  }

  .library-section {
    padding-bottom: 70px;
  }

  .closing-banner {
    padding: 70px 20px;
  }

  .footer-inner {
    flex-direction: column;
    padding: 44px 20px;
  }

  .foot-bottom {
    padding: 16px 20px;
    flex-direction: column;
    gap: 5px;
  }

  .interior-inner {
    padding: 40px 20px 48px;
  }

  .article-top {
    padding: 25px 18px 0;
  }

  .article-heading .breadcrumbs {
    margin-bottom: 25px;
  }

  .article-heading h1 {
    font-size: 35px;
  }

  .article-heading>p {
    font-size: 14px;
  }

  .article-hero img {
    aspect-ratio: 1.35;
  }

  .article-layout {
    display: block;
    margin: 35px auto 0;
    padding: 0 22px;
  }

  .article-aside {
    position: static;
    display: none;
  }

  .intro-lede {
    font-size: 17px !important;
  }

  .article-section h2 {
    font-size: 21px;
  }

  .article-section p {
    font-size: 14px;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 35px auto 65px;
  }

  .related-area .library-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

}

@media (max-width:420px) {
  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-actions {
    gap: 12px;
  }

  .primary-button {
    gap: 14px;
    padding: 12px 15px;
  }

  .section-heading h2 {
    font-size: 24px;
  }

  .section-more,.side-number {
    display: none;
  }

  .work-info p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .eyebrow {
    font-size: 9px;
  }

  .topic-card strong {
    font-size: 18px;
  }

}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  *,*:before,*:after {
    transition: none !important;
  }

}

/* Homepage: readable grids, stable proportions, and safe mobile widths. */
.hero-copy, .hero-media, .section-heading > div, .work-info { min-width: 0; }
.work-info h3, .work-info p, .section-heading h2 { overflow-wrap: anywhere; }
.cover-link img { object-position: center; }
.topic-card { isolation: isolate; }
.topic-card > * { position: relative; z-index: 1; }
@media (max-width: 760px) {
  .hero-grid { min-height: 0; }
  .hero-media { max-height: 58vh; min-height: 280px; }
  .featured-grid, .library-grid { align-items: stretch; }
  .work-card { display: flex; flex-direction: column; }
  .work-info { display: flex; flex: 1; flex-direction: column; }
  .work-info .text-link { margin-top: auto; }
}
@media (max-width: 360px) {
  .featured-grid, .library-grid, .related-area .library-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-actions { flex-wrap: wrap; }
  .topic-grid { grid-template-columns: minmax(0, 1fr); }
}
