/* 日韩动漫 / rihandm2026.cn · 独立原创样式表 */
:root {
  color-scheme: light;
  --ink: #242849;
  --muted: #666c84;
  --violet: #6355b7;
  --pink: #e779a9;
  --line: #e8e6f4;
  --paper: #ffffff;
  --surface: #f6f6fc;
  --radius: 20px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #f8f8fc; font: 16px/1.75 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--violet); }
button, input { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin-top: 0; }
.container { width: min(1220px, calc(100% - 44px)); margin-inline: auto; }
.skip { position: absolute; top: -60px; left: 12px; background: white; padding: 8px; z-index: 999; }
.skip:focus { top: 8px; }
.sr-only { 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: #fff; box-shadow: 0 4px 26px #181c5210; }
.top-line { min-height: 94px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { font-size: 53px; color: #e76da8; line-height: 1; }
.brand strong { display: block; font-size: 29px; line-height: 1.15; letter-spacing: 1px; }
.brand small { display: block; color: #777c9a; font-size: 10px; letter-spacing: 2px; }
.brand-description { margin: 0 auto 0 0; color: #8185a0; font-size: 13px; }
.search-form { display: flex; width: min(360px, 35vw); border: 1px solid #dcdcf4; border-radius: 100px; overflow: hidden; background: white; }
.search-form input { padding: 10px 16px; min-width: 0; border: 0; flex: 1; outline-offset: -3px; }
.search-form button { border: 0; background: #6755b9; color: #fff; padding: 8px 20px; }
.main-nav { background: #27284f; color: white; }
.nav-links { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: thin; }
.nav-links a { white-space: nowrap; flex: 1; text-align: center; font-size: 14px; font-weight: 700; padding: 13px 11px; border-bottom: 3px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current] { background: #ffffff14; border-color: #f08bbb; color: white; }
.homepage { padding-top: 26px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(240px, .8fr); gap: 18px; }
.hero-feature { min-height: 400px; position: relative; display: flex; align-items: flex-end; overflow: hidden; background: #383568; border-radius: var(--radius); color: white; }
.hero-image { position: absolute; inset: 0; background: linear-gradient(0deg, #1c1c4ce9 1%, #2a2a6980 41%, #22246c00 100%), url('/assets/img/hero-anime.webp') center / cover no-repeat; }
.hero-content { z-index: 1; position: relative; max-width: 680px; padding: 30px 38px 37px; }
.eyebrow { display: block; font-size: 11px; font-weight: 800; letter-spacing: 1.7px; text-transform: uppercase; color: #9a74db; }
.hero-content .eyebrow { color: #ffb8d9; }
h1 { font-size: clamp(30px, 4vw, 50px); line-height: 1.3; letter-spacing: -.5px; }
.hero-content h1 { margin: 10px 0; }
.hero-content p { max-width: 550px; color: #fff; font-size: 16px; }
.primary-link { display: inline-block; padding: 10px 18px; border-radius: 100px; color: #2c2650; background: #fff; font-weight: 800; }
.primary-link:hover { background: #ffe7f1; }
.hero-aside { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; min-width: 0; }
.spotlight { position: relative; overflow: hidden; border-radius: var(--radius); min-height: 180px; background: #333; }
.spotlight img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.spotlight:hover img { transform: scale(1.04); }
.spotlight::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, #10102daa); }
.spotlight span { position: absolute; bottom: 13px; left: 18px; right: 14px; color: #fff; z-index: 1; font-size: 12px; }
.spotlight b { display: block; font-size: 18px; line-height: 1.4; }
.intro-strip { margin-top: 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.intro-strip div { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line); padding: 16px 20px; border-radius: 15px; }
.intro-strip b { color: #e476a3; font-size: 12px; }
.intro-strip strong { font-size: 15px; }
.intro-strip span { color: var(--muted); font-size: 12px; }
.feature-row { margin-top: 54px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 38px; align-items: center; }
.feature-copy { padding: 16px 0 16px 12px; }
.feature-copy h2, .editorial-banner h2 { font-size: clamp(26px, 3.1vw, 38px); line-height: 1.4; margin: 11px 0; }
.feature-copy p, .editorial-banner p { color: var(--muted); }
.feature-row img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 20px; }
.text-link { font-weight: 800; color: var(--violet); }
.library-section { margin-top: 55px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-heading h2 { font-size: 29px; line-height: 1.4; margin: 5px 0; }
.section-heading p { font-size: 14px; color: var(--muted); margin: 0; }
.section-heading > a { font-size: 13px; color: var(--violet); font-weight: 800; white-space: nowrap; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 20px; }
.filter-pills button { border: 1px solid #e4e1ef; border-radius: 50px; background: white; color: #5c6079; padding: 7px 14px; font-size: 13px; }
.filter-pills button.active, .filter-pills button:hover { background: #6055b3; border-color: #6055b3; color: white; }
.story-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.story-card { overflow: hidden; border: 1px solid #e9e8f2; background: #fff; border-radius: 17px; box-shadow: 0 8px 24px #25244b07; }
.story-card[hidden] { display: none !important; }
.card-image { display: block; position: relative; aspect-ratio: 1.36; overflow: hidden; background: #e4e1f4; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.card-image:hover img { transform: scale(1.04); }
.card-type { position: absolute; top: 12px; left: 12px; background: #fffef4ed; padding: 3px 10px; border-radius: 100px; color: #54448b; font-size: 11px; font-weight: 700; }
.card-copy { padding: 15px 16px 19px; }
.card-copy small { font-size: 11px; color: #8a83a7; }
.card-copy h3 { font-size: 19px; margin: 1px 0 5px; }
.card-copy p { font-size: 13px; line-height: 1.7; margin: 0; color: #75798b; }
.search-status { border-radius: 12px; background: #eeebfa; padding: 12px 16px; }
.editorial-banner { margin-top: 58px; display: grid; grid-template-columns: 1.2fr .9fr; overflow: hidden; align-items: center; border-radius: 23px; background: linear-gradient(110deg, #30305e, #5f528e); color: white; }
.editorial-banner div { padding: 36px 45px; }
.editorial-banner p { color: #e0dff2; }
.editorial-banner a { color: #ffc4db; font-weight: 800; }
.editorial-banner img { width: 100%; height: 100%; max-height: 300px; object-fit: cover; }
.seo-article { margin: 56px 0 75px; padding: 32px 35px; border-radius: 21px; background: #fff; border: 1px solid var(--line); }
.seo-article h2 { margin: 6px 0 20px; font-size: 25px; }
.guide-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.guide-columns h3 { font-size: 16px; margin-bottom: 5px; }
.guide-columns p, .seo-article p { color: var(--muted); font-size: 14px; }
.site-footer { background: #242648; color: #f1f1fc; padding: 34px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
.footer-grid p { color: #c6c6df; font-size: 13px; margin: 8px 0; }
.footer-grid a:hover { color: #ffbde2; }
.copyright { border-top: 1px solid #ffffff1f; padding: 16px 0; color: #aaaac5; font-size: 12px; margin-top: 20px; }
.inner-page { min-height: 70vh; }
.breadcrumb { font-size: 12px; color: #777d97; padding: 20px 0; }
.page-banner { border-radius: 20px; background: linear-gradient(110deg, #e9e6fc, #fff0f7); padding: 40px 46px; }
.page-banner h1 { font-size: clamp(28px, 4vw, 42px); margin: 6px 0 10px; }
.page-banner p { margin: 0; color: #60637d; }
.inner-page .library-section { margin-top: 30px; }
.detail-layout { padding-bottom: 60px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 27px; align-items: start; }
.article-body { background: white; border: 1px solid var(--line); border-radius: 20px; padding: 35px 46px; }
.article-body h1 { font-size: clamp(28px, 3.4vw, 38px); margin: 12px 0 14px; }
.article-body h2 { font-size: 24px; margin: 30px 0 9px; }
.article-body h3 { font-size: 19px; }
.article-body p { color: #555b74; line-height: 2; }
.article-body .lead { font-size: 17px; }
.article-cover { width: 100%; max-height: 460px; object-fit: cover; border-radius: 13px; margin: 20px 0; }
.article-body .notice { border-left: 3px solid #dc84af; padding: 10px 14px; background: #fff3f8; font-size: 13px; }
.article-body a { color: #5a50b0; text-decoration: underline; text-underline-offset: 4px; }
.article-nav { border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 15px; padding-top: 18px; }
.side-panel { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.side-panel h2 { font-size: 18px; margin: 0 0 9px; }
.side-panel h2:not(:first-child) { margin-top: 24px; }
.side-panel p { font-size: 13px; margin: 8px 0; }
.standalone { margin: 28px 0 65px; }
@media (max-width: 980px) {
  .brand-description { display: none; }
  .search-form { margin-left: auto; width: 310px; }
  .story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-feature { min-height: 340px; }
  .hero-grid { grid-template-columns: minmax(0, 1.7fr) minmax(200px, .8fr); }
  .guide-columns { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 680px) {
  .container { width: min(100% - 26px, 1220px); }
  .top-line { min-height: 72px; gap: 8px; flex-wrap: wrap; padding: 8px 0; }
  .brand strong { font-size: 23px; }
  .brand-mark { font-size: 37px; }
  .brand small { letter-spacing: 1px; font-size: 9px; }
  .search-form { width: 100%; margin: 6px 0; }
  .search-form input { font-size: 14px; }
  .nav-links a { flex: none; padding: 10px 15px; font-size: 13px; }
  .homepage { padding-top: 13px; }
  .hero-grid { grid-template-columns: 1fr; gap: 10px; }
  .hero-feature { min-height: 390px; }
  .hero-content { padding: 24px; }
  .hero-content h1 { font-size: 30px; }
  .hero-aside { grid-template-columns: 1fr 1fr; grid-template-rows: 120px; gap: 10px; }
  .spotlight { min-height: 0; }
  .spotlight b { font-size: 13px; }
  .spotlight span { left: 10px; bottom: 8px; }
  .intro-strip { grid-template-columns: 1fr 1fr; gap: 8px; }
  .intro-strip div { padding: 11px 12px; }
  .feature-row, .editorial-banner { grid-template-columns: 1fr; gap: 14px; }
  .feature-row { margin-top: 37px; }
  .feature-copy { padding: 4px; }
  .feature-row img { order: -1; }
  .library-section { margin-top: 38px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 23px; }
  .section-heading > a { padding-top: 28px; }
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .card-copy { padding: 10px 11px 14px; }
  .card-copy h3 { font-size: 16px; }
  .card-copy p { font-size: 12px; }
  .card-image { aspect-ratio: 1.12; }
  .editorial-banner { margin-top: 38px; }
  .editorial-banner div { padding: 24px; }
  .editorial-banner img { max-height: 180px; }
  .seo-article { padding: 23px; margin: 35px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 12px; }
  .page-banner { padding: 26px; }
  .detail-grid { grid-template-columns: 1fr; }
  .article-body { padding: 22px; }
  .side-panel { display: none; }
  .article-nav { flex-direction: column; }
}
@media (max-width: 370px) { .story-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } }
