/* dapianhd.cn | 原创影视阅读站 | 样式分区明确，便于维护 */
:root {
  color-scheme: dark;
  --bg: #0d1118;
  --panel: #171d27;
  --panel-soft: #202735;
  --text: #f7f0e5;
  --muted: #b3bbca;
  --gold: #e9b574;
  --line: #354050;
  --max: 1180px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.8 system-ui, -apple-system, 'Microsoft YaHei', sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--gold);
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
.container {
  width: min(calc(100% - 36px), var(--max));
  margin: auto;
}
.skip {
  position: absolute;
  top: -80px;
  left: 12px;
  background: #fff;
  color: #000;
  z-index: 100;
  padding: 8px;
}
.skip:focus {
  top: 8px;
}
.site-header {
  position: relative;
  z-index: 5;
  background: #0a0e15;
  border-bottom: 1px solid #2b3544;
}
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 13px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: .03em;
}
.brand-mark {
  display: grid;
  place-items: center;
  height: 43px;
  width: 43px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 21px;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.main-nav a {
  padding: 7px 0;
  font-size: 14px;
  white-space: nowrap;
}
.main-nav a[aria-current='page'] {
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
}
.hero {
  position: relative;
  min-height: 430px;
  isolation: isolate;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9,13,19,.94), rgba(9,13,19,.78) 46%, rgba(9,13,19,.08)), url('../img/hero.webp') center/cover;
  z-index: -1;
}
.hero-inner {
  padding: 65px 0 72px;
}
.eyebrow {
  text-transform: uppercase;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: .22em;
  font-weight: 800;
}
h1, h2, h3 {
  line-height: 1.35;
  letter-spacing: .015em;
}
h1 {
  font-size: clamp(32px, 4vw, 55px);
  max-width: 800px;
  margin: 15px 0 20px;
}
.hero-description {
  max-width: 700px;
  font-size: 17px;
  color: #e6e0d7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.cta {
  display: inline-flex;
  justify-content: center;
  padding: 9px 21px;
  border-radius: 6px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-weight: 700;
}
.cta.primary {
  background: var(--gold);
  color: #19202a;
}
.quick-nav {
  background: #171d26;
  border-bottom: 1px solid var(--line);
}
.quick-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.quick-inner a {
  padding: 18px 15px;
  border-right: 1px solid var(--line);
  font-size: 15px;
  font-weight: 700;
}
.quick-inner a:last-child {
  border-right: 0;
}
.quick-inner a span {
  color: var(--gold);
  margin-right: 8px;
}
.section {
  padding: 64px 0 12px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 15px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.section-title h2 {
  margin: 0 0 15px;
  font-size: 27px;
}
.section-title p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 14px;
}
.feature-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 18px;
}
.feature-card {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid #303a49;
  border-radius: 11px;
}
.feature-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.feature-card.lead img {
  height: 250px;
}
.feature-card .body {
  padding: 20px;
}
.tag {
  display: inline-block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}
.feature-card h3 {
  font-size: 19px;
  margin: 9px 0;
}
.feature-card p {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}
.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, .8fr);
  gap: 24px;
}
.editor-pick {
  display: grid;
  grid-template-columns: 44% 1fr;
  overflow: hidden;
  border-radius: 11px;
  background: #222833;
  border: 1px solid var(--line);
}
.editor-pick img {
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  width: 100%;
}
.editor-pick > div {
  padding: 26px;
}
.editor-pick h3 {
  font-size: 25px;
}
.editor-pick p {
  color: var(--muted);
}
.topic-list {
  background: #171d26;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 16px 22px;
}
.topic-list h3 {
  color: var(--gold);
  margin-top: 0;
}
.topic-list a {
  display: block;
  border-top: 1px solid var(--line);
  padding: 13px 0;
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 19px;
}
.article-card {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}
.article-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.article-card .body {
  padding: 16px 17px 20px;
}
.article-card h3 {
  font-size: 17px;
  margin: 7px 0;
}
.article-card p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.intro-block {
  background: #151a22;
  border-top: 1px solid var(--line);
  margin-top: 65px;
  padding: 42px 0;
}
.intro-block p {
  max-width: 870px;
  color: var(--muted);
}
.site-footer {
  background: #090d13;
  border-top: 1px solid var(--line);
  padding: 33px 0;
  color: var(--muted);
  font-size: 13px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
}
.breadcrumb {
  margin: 28px 0;
  color: var(--muted);
  font-size: 13px;
}
.article-head {
  max-width: 850px;
  padding: 5px 0 26px;
}
.article-head h1 {
  font-size: clamp(29px, 3.8vw, 43px);
}
.article-head p {
  color: var(--muted);
  font-size: 17px;
}
.article-cover {
  border-radius: 12px;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 278px;
  gap: 50px;
  margin-top: 35px;
}
.article-body {
  min-width: 0;
  font-size: 17px;
  line-height: 1.95;
}
.article-body h2 {
  border-left: 4px solid var(--gold);
  padding-left: 15px;
  margin: 42px 0 15px;
  font-size: 25px;
}
.article-body h3 {
  font-size: 19px;
  margin-top: 25px;
}
.article-body p {
  color: #dadce2;
}
.article-side {
  align-self: start;
  position: sticky;
  top: 22px;
}
.read-more {
  border-top: 1px solid var(--line);
  margin-top: 42px;
  padding: 24px 0;
}
.read-more a {
  display: inline-block;
  margin: 7px 15px 7px 0;
  color: var(--gold);
}
.notice {
  border-left: 3px solid var(--gold);
  background: #202633;
  padding: 16px 19px;
  color: #d5d8df;
  margin: 24px 0;
}
@media (max-width: 1000px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 15px 0;
  }
  .main-nav {
    gap: 16px;
  }
  .feature-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .feature-card.lead {
    grid-column: 1 / -1;
  }
  .feature-card.lead img {
    height: 310px;
  }
  .article-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media (max-width: 680px) {
  body {
    font-size: 15px;
  }
  .container {
    width: min(calc(100% - 28px),var(--max));
  }
  .brand {
    font-size: 19px;
  }
  .main-nav {
    gap: 5px 15px;
  }
  .main-nav a {
    font-size: 13px;
    padding: 3px 0;
  }
  .hero {
    min-height: 420px;
  }
  .hero::before {
    background: linear-gradient(90deg,rgba(9,13,19,.95),rgba(9,13,19,.73)),url('../img/hero.webp') center/cover;
  }
  .hero-inner {
    padding: 42px 0 50px;
  }
  .hero-description {
    font-size: 15px;
  }
  .quick-inner {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .quick-inner a {
    font-size: 13px;
    padding: 13px 8px;
  }
  .section {
    padding-top: 44px;
  }
  .section-title {
    display: block;
  }
  .section-title h2 {
    font-size: 23px;
    margin-bottom: 5px;
  }
  .section-title p {
    margin-bottom: 12px;
  }
  .feature-grid,.article-grid,.editor-layout,.article-layout {
    grid-template-columns: minmax(0,1fr);
  }
  .feature-card.lead {
    grid-column: auto;
  }
  .feature-card img,.feature-card.lead img {
    height: 205px;
  }
  .editor-pick {
    grid-template-columns: minmax(0,1fr);
  }
  .editor-pick img {
    min-height: 0;
    height: 220px;
  }
  .article-side {
    position: static;
  }
  .article-body {
    font-size: 16px;
  }
  .article-body h2 {
    font-size: 23px;
  }
}
/* ===== 第二版：导航清晰度、卡片层次与阅读体验 ===== */
:root {
  --gold: #f0bb77;
  --line: #384354;
}
body {
  overflow-wrap: break-word;
}
:focus-visible {
  outline: 3px solid #f0bb77;
  outline-offset: 3px;
}
.header-inner {
  min-width: 0;
}
.main-nav {
  min-width: 0;
}
.main-nav a {
  transition: color .15s ease;
}
.hero::before {
  background-position: center center;
}
.hero-description {
  line-height: 1.85;
}
.section-title {
  align-items: end;
}
.feature-card,.article-card,.editor-pick,.topic-list {
  box-shadow: 0 8px 25px rgba(0,0,0,.12);
}
.feature-card,.article-card {
  transition: border-color .15s ease, transform .15s ease;
}
.feature-card:hover,.article-card:hover {
  border-color: #b28a5b;
  transform: translateY(-2px);
}
.feature-card h3 a,.article-card h3 a {
  overflow-wrap: anywhere;
}
.feature-card img,.article-card img {
  object-position: center;
  background: #222936;
}
.feature-grid {
  align-items: stretch;
}
.feature-card {
  display: flex;
  flex-direction: column;
}
.feature-card .body {
  flex: 1;
}
.topic-list a {
  line-height: 1.6;
}
.article-body p {
  max-width: 75ch;
}
@media (max-width: 1000px) {
  .header-inner {
    gap: 12px;
  }
  .main-nav {
    width: 100%;
  }
}
@media (max-width: 680px) {
  .site-header {
    position: relative;
  }
  .header-inner {
    gap: 9px;
    padding: 12px 0 0;
  }
  .brand {
    font-size: 18px;
  }
  .brand-mark {
    width: 37px;
    height: 37px;
    flex: 0 0 37px;
  }
  .brand small {
    font-size: 10px;
  }
  .main-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    gap: 18px;
    padding: 5px 0 10px;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav a {
    flex: 0 0 auto;
    font-size: 13px;
    padding: 5px 0;
  }
  .hero {
    min-height: 385px;
  }
  .hero-inner {
    padding: 38px 0 45px;
  }
  h1 {
    font-size: clamp(28px, 7.4vw, 38px);
    line-height: 1.32;
  }
  .quick-inner a {
    min-width: 0;
  }
  .section {
    padding-top: 38px;
  }
  .feature-card .body,.article-card .body {
    padding: 17px;
  }
  .editor-pick > div {
    padding: 20px;
  }
  .editor-pick h3 {
    font-size: 22px;
  }
  .article-cover {
    aspect-ratio: 16/10;
  }
}
@media (max-width: 360px) {
  .container {
    width: min(calc(100% - 24px),var(--max));
  }
  .quick-inner a {
    font-size: 12px;
  }
  .hero-description {
    font-size: 14px;
  }
  .cta {
    padding: 8px 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .feature-card,.article-card {
    transition: none;
  }
  .feature-card:hover,.article-card:hover {
    transform: none;
  }
}

/* 避免桌面端H1最后单字换行 */
.hero h1 {
  text-wrap: balance;
  max-width: 940px;
}
