/* 影视大全：清爽目录型影库界面 */
:root {
  --ink: #143642;
  --ink-deep: #0B1920;
  --blue-gray: #2B6E7D;
  --canvas: #F5F6F8;
  --paper: #FFFFFF;
  --text: #1A242B;
  --muted: #5A6872;
  --line: #DDE3E7;
  --soft-line: #E9EDF0;
  --accent: #C85019;
  --accent-soft: #FFF0E8;
  --radius: 6px;
  --content-width: 1240px;
  --shadow: 0 8px 24px rgba(20, 54, 66, .06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(var(--content-width), calc(100% - 48px)); margin-inline: auto; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 9px 14px; background: var(--ink); color: #fff; border-radius: 4px;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.topline { border-bottom: 1px solid var(--soft-line); }
.top-line-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand span { display: flex; flex-direction: column; line-height: 1.35; }
.brand strong { font-size: 22px; letter-spacing: .02em; font-weight: 800; }
.brand small { color: var(--muted); font-size: 11px; margin-top: 3px; }
.header-note { color: var(--muted); font-size: 13px; }
.nav-wrap { background: #fff; }
.nav-inner { min-height: 48px; display: flex; align-items: center; justify-content: space-between; }
.main-nav { display: flex; align-items: center; gap: 30px; height: 48px; }
.main-nav a { height: 48px; display: inline-flex; align-items: center; color: #394A53; font-weight: 650; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--ink); border-bottom-color: var(--accent); }
.nav-action { color: var(--ink); font-size: 13px; font-weight: 700; }
.nav-action span { color: var(--accent); margin-left: 5px; }
.hero-strip {
  background: linear-gradient(115deg, #EDF3F4 0%, #F5F6F8 54%, #F8F1EB 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding-block: 42px 38px; }
.eyebrow { margin: 0 0 8px; color: var(--blue-gray); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.hero-copy h1 { margin: 0; color: var(--ink); font-size: clamp(30px, 3.3vw, 43px); line-height: 1.25; letter-spacing: -.035em; font-weight: 800; }
.hero-copy h1 span { color: #345C68; }
.hero-description { max-width: 650px; margin: 16px 0 18px; color: #53636B; font-size: 15px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; color: #41545D; font-size: 12px; font-weight: 650; }
.hero-points span { display: inline-flex; align-items: center; gap: 7px; }
.hero-points i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero-search-panel { padding: 23px; background: rgba(255,255,255,.9); border: 1px solid #E1E6E8; border-radius: var(--radius); box-shadow: var(--shadow); }
.search-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.search-title strong { color: var(--ink); font-size: 17px; }
.search-title span { color: var(--muted); font-size: 12px; }
.search-form { display: flex; min-height: 46px; border: 1px solid #C9D3D8; border-radius: 4px; overflow: hidden; background: #fff; }
.search-form:focus-within { border-color: var(--blue-gray); box-shadow: 0 0 0 3px rgba(43,110,125,.1); }
.search-form input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 0 13px; color: var(--text); background: transparent; }
.search-form button { width: 86px; border: 0; background: var(--ink); color: #fff; font-weight: 700; cursor: pointer; }
.search-form button:hover { background: var(--blue-gray); }
.quick-search { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 13px; margin-top: 13px; font-size: 12px; }
.quick-search span { color: var(--muted); }
.quick-search a { color: #385D69; }
.quick-search a:hover { color: var(--accent); }
.search-foot { display: flex; gap: 7px; align-items: center; margin-top: 19px; padding-top: 13px; border-top: 1px solid var(--soft-line); color: var(--muted); font-size: 11px; }
.search-foot span { padding: 2px 7px; background: #F1F4F5; border-radius: 3px; }
.search-foot b { margin-left: auto; color: var(--accent); font-weight: 750; }
.filter-section { padding-block: 22px 6px; }
.filter-heading { display: flex; align-items: baseline; gap: 12px; margin-bottom: 11px; }
.filter-heading strong { color: var(--ink); font-size: 15px; }
.filter-heading span { color: var(--muted); font-size: 12px; }
.filter-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.filter-chip { padding: 5px 15px; border: 1px solid #E0E6E9; border-radius: 4px; color: #465860; font-size: 13px; font-weight: 650; }
.filter-chip:hover, .filter-chip.is-active { color: #fff; border-color: var(--ink); background: var(--ink); }
.filter-divider { width: 1px; height: 21px; margin-inline: 6px; background: var(--line); }
.filter-label { color: var(--muted); font-size: 12px; }
.filter-static { padding: 4px 9px; background: #F1F4F5; border-radius: 3px; color: #52636B; font-size: 11px; }
.content-section { padding-block: 30px 4px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.section-heading h2 { margin: 0; color: var(--ink); font-size: 23px; line-height: 1.35; font-weight: 800; letter-spacing: -.02em; }
.section-heading p:not(.eyebrow) { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.section-heading .eyebrow { margin-bottom: 4px; }
.result-count { padding: 5px 10px; color: var(--muted); background: #EDF1F3; border-radius: 3px; font-size: 12px; white-space: nowrap; }
.movie-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 17px 14px; }
.movie-card { min-width: 0; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .18s ease, transform .18s ease; }
.movie-card:hover { border-color: #B8C8CE; transform: translateY(-2px); }
.poster-link { position: relative; display: block; overflow: hidden; background: #E5EAEC; aspect-ratio: 2 / 3; }
.poster { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.movie-card:hover .poster { transform: scale(1.025); }
.poster-corner { position: absolute; top: 8px; left: 8px; padding: 3px 7px; color: #fff; background: var(--accent); border-radius: 3px; font-size: 10px; font-weight: 750; }
.movie-info { padding: 10px 10px 11px; }
.movie-info h3 { margin: 0; overflow: hidden; color: var(--text); font-size: 14px; font-weight: 750; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.movie-info h3 a:hover { color: var(--accent); }
.movie-meta { margin: 4px 0 5px; color: #7A878D; font-size: 11px; }
.movie-summary { display: -webkit-box; min-height: 40px; margin: 0 0 8px; overflow: hidden; color: #58666D; font-size: 11px; line-height: 1.65; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.badge-row, .detail-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.badge { display: inline-flex; align-items: center; padding: 2px 6px; border: 1px solid #E2E8EB; border-radius: 3px; color: #52636B; background: #F6F8F9; font-size: 10px; line-height: 1.5; white-space: nowrap; }
.badge-hot { color: #A84216; border-color: #F2D2C2; background: var(--accent-soft); }
.special-section { padding-top: 38px; }
.special-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.special-card { display: flex; min-width: 0; gap: 13px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.special-card:hover { border-color: #B6C7CD; }
.special-card img { width: 104px; height: 144px; flex: 0 0 auto; object-fit: cover; border-radius: 3px; background: #E7ECEE; }
.special-card-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.special-card-copy b { color: var(--ink); font-size: 14px; line-height: 1.45; }
.special-card-copy small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.special-card-copy > span { display: -webkit-box; margin-top: 8px; overflow: hidden; color: #58666D; font-size: 11px; line-height: 1.65; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.special-card-copy em { margin-top: auto; padding-top: 7px; color: var(--accent); font-size: 11px; font-style: normal; font-weight: 700; }
.version-note { margin-top: 13px; padding: 13px 16px; background: #F0F4F5; border-left: 3px solid var(--blue-gray); }
.version-note strong { color: var(--ink); font-size: 13px; }
.version-note p { margin: 4px 0 0; color: #5D6A71; font-size: 12px; }
.discovery-section { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 22px; padding-top: 38px; align-items: start; }
.discovery-main { min-width: 0; }
.collection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.collection-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.collection-card > img { width: 100%; height: 104px; object-fit: cover; background: #E5EAEC; }
.collection-copy { padding: 12px; }
.collection-genre { color: var(--accent); font-size: 10px; font-weight: 750; }
.collection-copy h3 { margin: 3px 0 4px; color: var(--ink); font-size: 15px; }
.collection-copy p { min-height: 42px; margin: 0; color: #5A6870; font-size: 11px; line-height: 1.7; }
.collection-links { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--soft-line); }
.collection-links a { color: #42616C; font-size: 10px; }
.collection-links a:hover { color: var(--accent); }
.ranking-panel { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.ranking-title { padding: 16px 16px 12px; background: #EFF4F5; border-bottom: 1px solid var(--line); }
.ranking-title h2 { margin: 0; color: var(--ink); font-size: 18px; }
.ranking-title p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.ranking-list { margin: 0; padding: 4px 14px; list-style: none; }
.ranking-list li { display: flex; align-items: center; gap: 10px; min-height: 57px; border-bottom: 1px solid var(--soft-line); }
.ranking-list li:last-child { border-bottom: 0; }
.rank-number { color: #B5C0C5; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ranking-list li:nth-child(-n+3) .rank-number { color: var(--accent); }
.ranking-list li a { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.ranking-list li b { overflow: hidden; color: #263941; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.ranking-list li small { color: #829097; font-size: 10px; }
.rank-arrow { color: #9AA6AB; font-size: 20px; }
.ranking-disclaimer { margin: 0; padding: 0 14px 14px; color: #89949A; font-size: 10px; }
.guide-section { padding-top: 38px; padding-bottom: 45px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.guide-grid article { position: relative; padding: 18px 17px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.guide-icon { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; color: #fff; background: var(--ink); border-radius: 4px; font-size: 11px; font-weight: 800; }
.guide-grid h3 { margin: 10px 0 4px; color: var(--ink); font-size: 15px; }
.guide-grid p { margin: 0; color: #5A6870; font-size: 12px; }
.legal-note { margin-top: 14px; padding: 15px 17px; background: #FFF8F3; border: 1px solid #F1D8C9; border-radius: var(--radius); }
.legal-note strong { color: #8D3B19; font-size: 13px; }
.legal-note p { margin: 4px 0 0; color: #725B50; font-size: 12px; }
.site-footer { background: #102B35; color: #D8E1E4; }
.footer-main { display: grid; grid-template-columns: 1.5fr .7fr .7fr; gap: 50px; padding-block: 34px 26px; }
.brand-footer { color: #fff; }
.brand-footer strong { color: #fff; font-size: 19px; }
.brand-footer small { color: #B8C9CE; }
.brand-footer img { width: 38px; height: 38px; }
.footer-brand p { max-width: 470px; margin: 13px 0 0; color: #B4C3C8; font-size: 12px; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.footer-links strong { margin-bottom: 4px; color: #fff; font-size: 13px; }
.footer-links a { color: #B9C8CD; font-size: 12px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 13px; border-top: 1px solid rgba(255,255,255,.13); color: #91A6AD; font-size: 10px; }
.empty-state { padding: 42px 20px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.empty-state strong { color: var(--ink); font-size: 18px; }
.empty-state p { color: var(--muted); font-size: 13px; }
.empty-state a { color: var(--accent); font-weight: 700; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; padding-block: 20px; color: #7A878D; font-size: 12px; }
.breadcrumb a { color: #48616B; }
.detail-page { padding-bottom: 50px; }
.detail-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 35px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.detail-poster-wrap { position: relative; max-width: 280px; }
.detail-poster { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; background: #E6EAEC; }
.detail-corner { position: absolute; top: 10px; left: 10px; padding: 4px 8px; color: #fff; background: var(--accent); border-radius: 3px; font-size: 11px; }
.detail-copy { min-width: 0; padding-block: 5px; }
.detail-copy h1 { margin: 0; color: var(--ink); font-size: clamp(25px, 3vw, 34px); line-height: 1.3; }
.detail-lead { max-width: 760px; margin: 12px 0 15px; color: #596970; font-size: 14px; }
.detail-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; margin: 18px 0; border-top: 1px solid var(--soft-line); }
.detail-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--soft-line); font-size: 12px; }
.detail-facts dt { color: #7A888E; }
.detail-facts dd { margin: 0; color: #2B3D45; text-align: right; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 19px; }
.button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; padding: 8px 16px; border: 1px solid transparent; border-radius: 4px; font-size: 13px; font-weight: 750; cursor: pointer; }
.button-primary { color: #fff; background: var(--accent); }
.button-primary:hover { color: #fff; background: #A94115; }
.button-outline { color: var(--ink); border-color: #BFCBD0; background: #fff; }
.button-outline:hover { color: var(--ink); border-color: var(--ink); }
.button-disabled { color: #89949A; border-color: #E0E5E8; background: #F3F5F6; cursor: not-allowed; }
.source-hint { margin: 12px 0 0; color: #8A969B; font-size: 11px; }
.detail-description { margin-top: 22px; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.detail-description h2 { margin: 0 0 10px; color: var(--ink); font-size: 20px; }
.detail-description p { margin: 7px 0; color: #4F6068; font-size: 13px; }
.related-section { padding-top: 32px; }
.related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.not-found { min-height: 430px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-symbol { color: #D6E0E3; font-size: 76px; line-height: 1; font-weight: 900; }
.not-found h1 { margin: 15px 0 4px; color: var(--ink); font-size: 26px; }
.not-found p { margin: 0 0 18px; color: var(--muted); }
:focus-visible { outline: 3px solid rgba(200,80,25,.55); outline-offset: 3px; }
@media (max-width: 1050px) {
  .movie-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-grid { gap: 30px; }
  .discovery-section { grid-template-columns: minmax(0, 1fr) 260px; gap: 15px; }
  .special-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .container { width: min(100% - 30px, var(--content-width)); }
  .top-line-inner { min-height: 67px; }
  .brand strong { font-size: 19px; }
  .header-note { display: none; }
  .nav-inner { min-height: auto; align-items: stretch; flex-direction: column; gap: 0; }
  .main-nav { height: 43px; justify-content: space-between; gap: 10px; overflow-x: auto; }
  .main-nav a { height: 43px; flex: 0 0 auto; font-size: 13px; }
  .nav-action { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; padding-block: 28px; }
  .hero-copy h1 { font-size: 31px; }
  .hero-description { margin-block: 11px 13px; font-size: 13px; }
  .hero-points { gap: 7px 13px; }
  .hero-search-panel { padding: 16px; }
  .filter-section { padding-top: 16px; }
  .filter-row { gap: 7px; padding: 9px; }
  .filter-chip { padding: 5px 11px; }
  .filter-divider { display: none; }
  .filter-label { width: 100%; padding-top: 4px; }
  .content-section { padding-top: 25px; }
  .section-heading h2 { font-size: 20px; }
  .movie-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px 9px; }
  .movie-info { padding: 8px; }
  .movie-info h3 { font-size: 12px; }
  .movie-meta { font-size: 10px; }
  .movie-summary { font-size: 10px; min-height: 34px; }
  .badge { font-size: 9px; }
  .special-grid { grid-template-columns: 1fr; }
  .special-card img { width: 88px; height: 124px; }
  .discovery-section { grid-template-columns: 1fr; }
  .ranking-panel { order: 2; }
  .collection-grid { gap: 9px; }
  .collection-copy { padding: 9px; }
  .collection-copy h3 { font-size: 13px; }
  .collection-copy p { font-size: 10px; }
  .guide-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 25px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 4px; }
  .detail-layout { grid-template-columns: 145px minmax(0, 1fr); gap: 17px; padding: 14px; }
  .detail-copy h1 { font-size: 22px; }
  .detail-lead { font-size: 12px; margin-block: 8px; }
  .detail-facts { grid-template-columns: 1fr; margin-block: 11px; }
  .detail-facts div { padding: 6px 0; }
  .detail-actions { gap: 7px; }
  .button { min-height: 36px; padding: 7px 10px; font-size: 11px; }
  .detail-description { padding: 17px; }
  .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 430px) {
  .container { width: calc(100% - 22px); }
  .hero-copy h1 { font-size: 27px; }
  .search-title { align-items: flex-start; flex-direction: column; gap: 2px; }
  .movie-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .movie-info h3 { font-size: 13px; }
  .movie-summary { font-size: 11px; min-height: 37px; }
  .badge { font-size: 9px; }
  .collection-grid { grid-template-columns: 1fr; }
  .collection-card > img { height: 120px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-poster-wrap { width: min(62%, 220px); margin-inline: auto; }
  .detail-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
  .detail-facts div { flex-direction: column; gap: 1px; }
  .detail-facts dd { text-align: left; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
