/* 文件用途：为希卡 FM 2.0 宣传首页及原有内容页面提供深色品牌视觉、响应式布局与动效。 */

:root {
  color-scheme: dark;
  --ink: #f7f5f3;
  --muted: #a9a5b0;
  --rose: #ffc300;
  --red: #ffc300;
  --paper: #111116;
  --line: #33313b;
  --gold: #ffc300;
  --violet: #8551c7;
  --surface: #1b1b22;
  --surface-raised: #23232b;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  background: var(--paper);
}
/* 所有页面预留同一滚动条槽位，避免短页与长页切换时视口横向变化。 */
html { scroll-behavior: smooth; overflow-y: scroll; scrollbar-gutter: stable; }
body { background: #111116; color: var(--ink); }
body > header, body > main, body > footer, body > .skip-link { position: relative; z-index: 1; }
::selection { background: #ffc300; color: #161316; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: #4a4651; border: 2px solid #111116; border-radius: 10px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
#ambient-particles { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; opacity: .8; }
.inner { width: min(1200px, calc(100% - 48px)); }

/* 顶部导航与品牌标识。 */
.top-nav { position: sticky; top: 0; z-index: 30; border-color: #ffffff17; background: #141419ed; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.nav-row { min-height: 74px; gap: clamp(18px, 2.4vw, 32px); }
.logo { display: inline-flex; align-items: center; gap: 11px; white-space: nowrap; }
.logo img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 0 13px #ffc3002b); }
.brand-wordmark { color: #f7f5f3; font-size: 21px; font-weight: 800; letter-spacing: -.045em; }
.brand-wordmark small { display: inline-block; margin-left: 5px; color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .02em; vertical-align: super; }
.nav-links { gap: clamp(12px, 1.55vw, 23px); }
.nav-links a { color: #d8d5dc; padding: 27px 0; font-size: 13px; font-weight: 600; transition: color .25s ease; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--gold); }
.nav-links a[aria-current] { font-weight: 600; box-shadow: inset 0 -2px var(--gold); }
.nav-links a.download-link { color: #171318; background: var(--gold); padding: 9px 15px; border-radius: 10px; box-shadow: 0 5px 20px #ffc30020; transition: transform .25s ease, box-shadow .25s ease; }
.nav-links a.download-link:hover { background: #ffda45; transform: translateY(-2px); box-shadow: 0 7px 25px #ffc30038; }
.search-form { width: 202px; background: #25242d; border-color: #3e3b47; transition: border-color .25s ease; }
.search-form:focus-within { border-color: var(--gold); }
.search-form input { color: var(--ink); font-size: 12px; }
/* 搜索框由外层统一显示焦点，避免输入框再绘制第二层轮廓。 */
.search-form input:focus-visible { outline: none; }
.search-form input::placeholder { color: #a3a0aa; }
.search-form button img { filter: brightness(0) invert(1); opacity: .7; }
.nav-toggle { display: none; }
.skip-link:focus { z-index: 50; background: var(--gold); color: #151318; }

/* 宣传首页首屏。 */
.marketing-hero { position: relative; overflow: hidden; isolation: isolate; min-height: 640px; display: flex; align-items: center; padding: clamp(65px, 8vw, 112px) 0 105px; background: radial-gradient(ellipse 55% 70% at 75% 40%, #31243f66, transparent 73%), linear-gradient(145deg, #111116, #17141d 65%, #111116); }
.marketing-hero::after { position: absolute; inset: auto -5% 0; height: 125px; background: linear-gradient(transparent, #111116); content: ""; z-index: -1; }
.hero-glow { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; filter: blur(64px); }
.hero-glow-gold { width: 270px; height: 270px; top: 7%; left: -8%; background: #ffc30017; }
.hero-glow-violet { width: 500px; height: 450px; right: 4%; top: 12%; background: #7c3fc92d; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); align-items: center; gap: clamp(36px, 7vw, 105px); }
.hero-copy { max-width: 610px; }
.hero-badge, .section-kicker, .eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-size: 12px; font-weight: 750; letter-spacing: .16em; }
.hero-badge { padding: 9px 16px; border: 1px solid #ffc30070; border-radius: 100px; background: #ffc30012; letter-spacing: .11em; }
.hero-badge::before { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 9px var(--gold); content: ""; }
.marketing-hero h1 { margin-top: 27px; color: #fbf9f5; font-size: clamp(42px, 4.45vw, 67px); font-weight: 850; line-height: 1.24; letter-spacing: -.055em; text-wrap: balance; }
.marketing-hero h1 span, .section-heading h2 span, .discover-copy h2 span, .listen-panel h2 span { color: var(--gold); }
.hero-intro { max-width: 565px; margin-top: 23px; color: #bfbac5; font-size: 16px; line-height: 1.9; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.hero-pills span { padding: 7px 13px; border: 1px solid #ffffff27; border-radius: 100px; background: #ffffff0c; color: #d9d5de; font-size: 12px; }
.hero-actions, .listen-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 35px; }
.primary-link, .hero-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; padding: 11px 22px; border: 1px solid transparent; border-radius: 11px; font-weight: 750; text-align: center; transition: transform .3s ease, box-shadow .3s ease, background .3s ease, border-color .3s ease; }
.primary-link { margin-right: 0; color: #19151b; background: var(--gold); }
.primary-link:hover { color: #19151b; background: #ffda47; transform: translateY(-3px); box-shadow: 0 10px 30px #ffc30035; }
.hero-secondary { color: #f2ecf8; background: #ffffff0c; border-color: #ffffff40; }
.hero-secondary:hover { border-color: var(--gold); background: #ffc30015; transform: translateY(-3px); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 35px; color: #aba5b2; font-size: 12px; }
.hero-facts strong { color: var(--gold); font-size: 19px; }
.hero-player { position: relative; overflow: hidden; border: 1px solid #e5b93b4a; border-radius: 26px; background: linear-gradient(140deg, #2e2934e8, #1d1c27f2 48%, #251b33e8); box-shadow: 0 35px 90px #0504089c, inset 0 1px #ffffff1b; transform: rotate(2deg); transition: transform .45s ease, box-shadow .45s ease; }
.hero-player:hover { transform: rotate(0) translateY(-5px); box-shadow: 0 45px 100px #050408b5, 0 0 60px #8d4bcc2c; }
.hero-player::before { position: absolute; inset: 0; background: linear-gradient(130deg, #ffffff0a, transparent 45%); content: ""; pointer-events: none; }
.player-top { display: flex; justify-content: space-between; align-items: center; padding: 17px 23px; border-bottom: 1px solid #ffffff16; color: #a6a0ae; font-size: 10px; font-weight: 700; letter-spacing: .17em; }
.player-leds { display: flex; gap: 5px; }
.player-leds i { width: 6px; height: 6px; border-radius: 50%; background: #ffc300; }
.player-leds i:nth-child(2) { background: #9d69d6; }
.player-leds i:nth-child(3) { background: #ddd8e3; }
.player-stage { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: center; gap: 22px; min-height: 285px; padding: 30px 25px; }
.signal-ring { display: grid; place-items: center; width: 175px; height: 175px; border-radius: 50%; background: radial-gradient(circle, #34264e 0 32%, #241f33 33% 48%, #ffc300 49% 50%, #3a3043 51% 61%, #ffc30044 62% 63%, #211d2b 64%); box-shadow: 0 0 0 14px #8d4bcc0e, 0 0 60px #ffc30029; animation: signal-breathe 4s ease-in-out infinite; }
.signal-core { display: grid; place-items: center; width: 81px; height: 81px; border: 2px solid #ffc3009c; border-radius: 50%; color: var(--gold); background: #17141f; font-size: 23px; font-weight: 850; letter-spacing: -.06em; }
.player-copy { min-width: 0; }
.player-copy strong { display: block; margin: 15px 0 8px; font-size: clamp(20px, 2vw, 29px); line-height: 1.3; overflow-wrap: anywhere; }
.player-copy p { color: #aba5b0; font-size: 12px; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.player-bottom { padding: 19px 24px 24px; border-top: 1px solid #ffffff16; background: #1010175c; }
.sound-bars { display: flex; align-items: center; justify-content: space-between; gap: 4px; height: 56px; }
.sound-bars i { flex: 1; height: var(--bar-height); max-height: 42px; border-radius: 3px; background: linear-gradient(#ffe08a, #bb7e20); opacity: .55; transform-origin: center; animation: sound-wave 1.5s ease-in-out infinite alternate; animation-delay: var(--bar-delay); }
.player-bottom-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 8px; color: #aaa5b2; font-size: 12px; }
.player-work-link { color: var(--gold); font-weight: 700; }
.player-work-link:hover { text-decoration: underline; }

/* 内容区块与卡片。 */
.home-section { position: relative; padding-block: clamp(62px, 7vw, 96px); }
.section-heading { margin: 0 auto 36px; max-width: 720px; text-align: center; }
.section-heading h2, .discover-copy h2, .listen-panel h2 { margin-top: 14px; font-size: clamp(30px, 3vw, 43px); line-height: 1.3; letter-spacing: -.05em; }
.section-heading p, .discover-copy p, .listen-panel p { margin-top: 13px; color: #aaa6b1; font-size: 14px; line-height: 1.8; }
.spotlight-section { background: linear-gradient(#111116, #17161b); }
.spotlight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
.spotlight-card, .advantage-card { overflow: hidden; border: 1px solid #ffffff18; border-radius: 24px; background: #242329bb; transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease; }
.spotlight-card:hover, .advantage-card:hover { border-color: #ffc30073; transform: translateY(-7px); box-shadow: 0 19px 38px #0005; }
.spotlight-art { position: relative; overflow: hidden; height: 215px; background: radial-gradient(circle at 40% 40%, #754cac, #26202e 65%); }
.spotlight-cover { width: 100%; height: 100%; object-fit: cover; filter: brightness(.74); transition: transform .6s ease, filter .6s ease; }
.spotlight-card:hover .spotlight-cover { transform: scale(1.06); filter: brightness(.94); }
.spotlight-art::after { position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, #1110169e); content: ""; pointer-events: none; }
.spotlight-index { position: absolute; z-index: 1; top: 17px; left: 17px; padding: 7px 11px; border-radius: 7px; background: #ffc300; color: #241927; font-size: 11px; font-weight: 800; }
.spotlight-body { padding: 22px; }
.spotlight-type { color: var(--gold); font-size: 11px; font-weight: 750; }
.spotlight-body h3 { margin: 9px 0; font-size: 19px; line-height: 1.4; }
.spotlight-body p { min-height: 3.5em; color: #aca7b2; font-size: 12px; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.spotlight-status { display: block; margin-top: 14px; color: #d3cadb; font-size: 11px; }
.advantage-section { background: #17161b; }
.advantage-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.advantage-card { padding: 26px 23px; min-height: 205px; }
.advantage-icon { display: grid; place-items: center; width: 47px; height: 47px; border-radius: 14px; color: var(--gold); background: #ffc3001c; font-size: 23px; }
.advantage-card:nth-child(2) .advantage-icon, .advantage-card:nth-child(4) .advantage-icon { color: #bf94f2; background: #9c55ed22; }
.advantage-card h3 { margin: 18px 0 10px; font-size: 18px; }
.advantage-card p { color: #aaa5b0; font-size: 12px; line-height: 1.75; }
.discover-section { overflow: hidden; background: radial-gradient(circle at 72% 50%, #552e6c4a, transparent 46%), #151219; }
.discover-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(35px, 7vw, 100px); align-items: center; }
.discover-copy p { max-width: 390px; }
.discover-copy .subtle-link { display: inline-block; margin-top: 26px; }
.discover-tags { padding: 28px; border: 1px solid #ffffff24; border-radius: 24px; background: #24202abf; box-shadow: 0 20px 70px #0004; }
.discover-tags .tag-list { gap: 12px; }
.tag-chip { padding: 9px 15px; border: 1px solid #ffffff20; border-radius: 100px; background: #ffffff0d; color: #ece7f0; transition: background .25s ease, border-color .25s ease, transform .25s ease; }
.tag-chip:hover { color: #1c1720; background: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.subtle-link { color: var(--gold); font-weight: 700; }
.subtle-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.library-section { background: #111116; }
.home-columns, .detail-columns { gap: 20px; }
.panel { padding: 22px; background: #212128d9; border: 1px solid #ffffff18; border-radius: 20px; }
.panel-head h2::before { background: var(--gold); }
.work-cover { background: #312d38; border-radius: 12px; transition: transform .35s ease, box-shadow .35s ease; }
.work-card:hover .work-cover { transform: translateY(-4px); box-shadow: 0 10px 24px #0008; }
.work-card:hover .work-name, .rank-list a:hover .rank-name, .related-item:hover strong { color: var(--gold); }
.rank-num { color: #bcb7c2; }
.rank-list li:nth-child(1) .rank-num, .rank-list li:nth-child(2) .rank-num, .rank-list li:nth-child(3) .rank-num { color: var(--gold); }
.rank-list .rank-row { min-height: 50px; }
.listen-section { padding-top: 20px; background: #111116; }
.listen-panel { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: clamp(30px, 5vw, 55px); border: 1px solid #ffc30057; border-radius: 28px; background: radial-gradient(circle at 85% 10%, #6e40925e, transparent 35%), linear-gradient(110deg, #312a32, #1d1b25); }
.listen-actions { margin: 0; flex: none; }

/* 剧库、榜单、作品详情、搜索、关于及下载页共用深色组件。 */
.standalone { padding-block: 46px 70px; }
/* 子页面外层与顶部导航共用 1200px 容器；表单内部维持舒适的阅读宽度。 */
.about-page, .full-ranking { max-width: none; }
.contact-form { max-width: 930px; }
.page-head { margin-bottom: 25px; }
.page-head h1 { color: #fbf9f5; font-size: clamp(28px, 3.5vw, 42px); }
.page-head p { max-width: 720px; line-height: 1.7; }
.category-filters .tag-chip[aria-current="page"], .category-pagination .page-current, .rank-tabs a[aria-current] { background: var(--gold); color: #1c1820; border-color: var(--gold); }
.category-pagination a { background: var(--surface); border-color: var(--line); }
.category-pagination a:hover { background: #ffc30025; color: var(--gold); }
.category-pagination .page-disabled { color: #77727e; background: #19191f; border: 1px solid var(--line); }
.rank-tabs a { background: var(--surface); border-color: var(--line); border-radius: 9px; }
.rank-tabs a:hover { color: var(--gold); border-color: var(--gold); }
.empty { background: #242329; border: 1px solid #ffffff12; }
.detail-hero { background: #201b26; }
.detail-background { opacity: .2; }
.detail-mask { background: linear-gradient(90deg, #1b1923eb, #1c1a24bc), linear-gradient(0deg, #111116, transparent 60%); }
.crumbs { color: #aca4b3; }
.detail-status { color: #c8c0cb; }
.detail-cover { background: #2b2731; box-shadow: 0 14px 35px #0008; }
.synopsis-toggle { color: var(--gold); }
.episode-group { border-color: var(--line); }
.episode-group summary { background: #29272e; color: #f3dfab; }
.episode-link { background: #2a2930; }
.episode-link:hover, .episode-link:focus-visible { background: #493b24; color: var(--gold); }
.episode-num { color: #c2a96b; }
.related-cover { background: #302c38; }
.about-hero { border-color: #ffc30044; border-radius: 24px; background: radial-gradient(circle at 90% 5%, #8d4bcc54, transparent 40%), linear-gradient(110deg, #2c272e, #1d1b23); }
.contact-form input, .contact-form textarea, .admin-form input { color: var(--ink); background: #292831; border-color: #4a4552; }
.contact-form input:focus, .contact-form textarea:focus, .admin-form input:focus { border-color: var(--gold); }
/* 联系表单沿用控件自身的金色焦点边框，不再叠加全站外轮廓。 */
.contact-form :is(input, textarea):focus-visible { outline: none; }
.form-notice { background: #24362d; color: #dbf5de; }
.form-error { background: #43232b; color: #ffd5dc; }
.download-dialog { color: var(--ink); background: #222029; border-color: #5a4a62; box-shadow: 0 25px 90px #000a; }
.download-dialog::backdrop { background: #050407d6; }
.dialog-close, .platform-card { color: var(--ink); background: #2e2b35; }
.platform-card { border-color: #4b4551; }
.platform-card p { color: var(--muted); }
.site-footer { padding: 44px 0 30px; background: #17171c; border-color: #ffffff16; }
.footer-top { margin-bottom: 23px; }
.footer-top strong { color: #f8f6f2; font-size: 21px; }
.footer-top strong span { color: var(--gold); font-size: 13px; }
.footer-top p { margin-top: 6px; color: #a9a5b0; font-size: 13px; }
.site-footer nav a:hover { color: var(--gold); }
.footer-note { color: #898591; }

/* 导航、卡片与动效在窄屏保持完整可用。 */
@media (max-width: 1100px) {
  .search-form { width: 170px; }
  .hero-layout { gap: 35px; }
  .player-stage { grid-template-columns: 135px minmax(0, 1fr); gap: 15px; }
  .signal-ring { width: 135px; height: 135px; }
}
@media (max-width: 920px) {
  .nav-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; padding: 11px 0; }
  .logo { grid-column: 1; grid-row: 1; }
  .nav-toggle { grid-column: 3; grid-row: 1; display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; padding: 10px; border: 1px solid #ffffff35; border-radius: 10px; background: #ffffff0a; }
  .nav-toggle span { display: block; height: 2px; border-radius: 5px; background: #f5f1f6; transition: transform .25s ease, opacity .25s ease; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .nav-links { grid-column: 1 / -1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 5px 24px; padding: 10px 0 2px; border-top: 1px solid #ffffff16; }
  body.nav-enhanced .nav-links:not(.is-open) { display: none; }
  .nav-links a, .nav-links a.download-link { padding: 9px 2px; }
  .nav-links a.download-link { padding-inline: 12px; }
  .search-form { grid-column: 2; grid-row: 1; width: min(100%, 280px); margin: 0 0 0 auto; }
  .hero-layout { grid-template-columns: 1fr; gap: 50px; text-align: center; }
  .hero-copy { margin-inline: auto; }
  .hero-intro { margin-inline: auto; }
  .hero-pills, .hero-actions, .hero-facts { justify-content: center; }
  .hero-player { width: min(100%, 570px); margin: auto; transform: none; text-align: left; }
  .spotlight-grid { gap: 14px; }
  .advantage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listen-panel { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 700px) {
  .inner { width: calc(100% - 30px); }
  .logo img { width: 39px; height: 39px; }
  .brand-wordmark { font-size: 18px; }
  .nav-links { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; font-size: 13px; }
  .search-form { grid-column: 2; grid-row: 1; }
  .marketing-hero { min-height: 0; padding: 74px 0 72px; }
  .marketing-hero h1 { font-size: clamp(36px, 7.2vw, 52px); }
  .hero-intro { font-size: 14px; }
  .hero-player { width: min(100%, 520px); }
  .spotlight-grid { grid-template-columns: minmax(0, 1fr); max-width: 540px; margin-inline: auto; }
  .spotlight-art { height: 240px; }
  .discover-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .discover-copy { text-align: center; }
  .discover-copy p { margin-inline: auto; }
  .discover-tags { padding: 20px; }
  .home-columns, .detail-columns { grid-template-columns: minmax(0, 1fr); }
  .site-footer nav { gap: 12px 20px; }
}
@media (max-width: 480px) {
  .nav-row { grid-template-columns: auto 1fr auto; gap: 9px; }
  .brand-wordmark { font-size: 17px; }
  .brand-wordmark small { font-size: 10px; }
  .search-form { width: 100%; }
  .search-form input { padding-left: 11px; font-size: 11px; }
  .search-form button { width: 31px; }
  .marketing-hero h1 { font-size: 35px; }
  .hero-facts { gap: 13px; }
  .hero-player { border-radius: 19px; }
  .player-stage { grid-template-columns: 105px minmax(0, 1fr); gap: 14px; min-height: 205px; padding: 19px 16px; }
  .signal-ring { width: 105px; height: 105px; box-shadow: 0 0 30px #ffc30022; }
  .signal-core { width: 57px; height: 57px; font-size: 17px; }
  .player-copy strong { font-size: 19px; }
  .player-bottom { padding: 12px 17px 17px; }
  .sound-bars { height: 44px; }
  .home-section { padding-block: 60px; }
  .advantage-grid { grid-template-columns: minmax(0, 1fr); }
  .advantage-card { min-height: 0; }
  .listen-panel { padding: 25px; }
  .listen-actions { width: 100%; }
  .listen-actions a { flex: 1; }
  .download-options { grid-template-columns: minmax(0, 1fr); }
}
@keyframes signal-breathe { 50% { box-shadow: 0 0 0 18px #8d4bcc1a, 0 0 80px #ffc30040; } }
@keyframes sound-wave { to { transform: scaleY(.35); opacity: .88; } }
@media (prefers-reduced-motion: no-preference) {
  body.has-motion .reveal:not(.is-visible) { opacity: 0; transform: translateY(24px); }
  .reveal { transition: opacity .65s ease, transform .65s ease; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  #ambient-particles { display: none; }
}
