/*
Theme Name: Genshin Anime
Theme URI: https://genshin.ly-y.cn
Description: 原神资讯站的轻量二次元子主题，基于 Astra，带 PJAX 风格局部刷新。
Author: Site Team
Version: 1.0.0
Template: astra
Text Domain: genshin-anime
*/

:root {
    --ga-ink: #20213a;
    --ga-muted: #7c7f9a;
    --ga-pink: #ff6f9f;
    --ga-cyan: #54c9d7;
    --ga-purple: #8f78e8;
    --ga-yellow: #ffd56a;
    --ga-paper: #fffafd;
    --ga-line: rgba(67, 53, 112, .11);
    --ga-shadow: 0 18px 45px rgba(69, 45, 103, .13);
    --ga-radius: 22px;
}

html { scroll-behavior: smooth; }
body {
    background: var(--ga-paper);
    color: var(--ga-ink);
    font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
a { color: inherit; }
.site { overflow: clip; }
.ga-shell { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }

.ga-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 250, 253, .86);
    border-bottom: 1px solid rgba(67, 53, 112, .08);
    backdrop-filter: blur(18px);
    transition: box-shadow .3s ease, background .3s ease;
}
.ga-header.is-scrolled { box-shadow: 0 10px 30px rgba(55, 38, 91, .09); background: rgba(255, 250, 253, .96); }
.ga-header__inner { min-height: 74px; display: flex; align-items: center; gap: 28px; }
.ga-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; min-width: max-content; }
.ga-brand__mark {
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: 15px 15px 15px 4px;
    color: #fff; font-size: 21px; background: linear-gradient(145deg, var(--ga-pink), var(--ga-purple));
    box-shadow: 0 9px 20px rgba(228, 94, 151, .25); transform: rotate(-5deg);
}
.ga-brand__copy { display: grid; gap: 1px; }
.ga-brand__title { font-size: 18px; font-weight: 800; letter-spacing: .02em; }
.ga-brand__tag { color: var(--ga-muted); font-size: 11px; letter-spacing: .13em; }
.ga-nav { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.ga-nav a { padding: 10px 13px; border-radius: 12px; color: #696c87; font-size: 14px; text-decoration: none; transition: background .2s ease, color .2s ease, transform .2s ease; }
.ga-nav a:hover, .ga-nav a:focus-visible { color: var(--ga-pink); background: #fff; transform: translateY(-2px); }
.ga-menu-toggle { display: none; border: 0; background: transparent; color: var(--ga-ink); font-size: 22px; padding: 7px; cursor: pointer; }

.ga-main { padding: 28px 0 76px; }
.ga-hero {
    position: relative; isolation: isolate; min-height: 435px; display: grid; align-items: end; overflow: hidden;
    border-radius: 30px; padding: clamp(30px, 6vw, 72px); color: #fff;
    background: linear-gradient(90deg, rgba(37, 31, 72, .92) 0%, rgba(60, 47, 111, .68) 48%, rgba(60, 47, 111, .12) 100%), url("https://images.unsplash.com/photo-1578632767115-351597cf2477?auto=format&fit=crop&w=1800&q=86") center/cover;
    box-shadow: var(--ga-shadow);
}
.ga-hero::before, .ga-hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(2px); opacity: .75; }
.ga-hero::before { width: 230px; height: 230px; right: 9%; top: -80px; border: 1px solid rgba(255,255,255,.45); box-shadow: 0 0 0 28px rgba(255,255,255,.08), 0 0 0 56px rgba(255,255,255,.05); }
.ga-hero::after { width: 14px; height: 14px; right: 28%; bottom: 25%; background: var(--ga-yellow); box-shadow: 55px -60px 0 4px var(--ga-pink), -45px 38px 0 2px var(--ga-cyan); }
.ga-hero__content { max-width: 580px; animation: ga-rise .8s both; }
.ga-kicker { margin: 0 0 15px; color: #ffd8e8; font-size: 12px; font-weight: 800; letter-spacing: .2em; }
.ga-hero h1 { margin: 0 0 18px; color: #fff; font-size: clamp(34px, 5vw, 68px); line-height: 1.1; letter-spacing: -.04em; }
.ga-hero p { max-width: 480px; margin: 0; color: rgba(255,255,255,.78); font-size: 16px; line-height: 1.9; }
.ga-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ga-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 0; border-radius: 14px; padding: 0 18px; color: #fff; background: var(--ga-pink); box-shadow: 0 10px 22px rgba(238, 86, 145, .24); font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.ga-button:hover, .ga-button:focus-visible { color: #fff; background: #f65c91; transform: translateY(-3px); box-shadow: 0 15px 28px rgba(238, 86, 145, .3); }
.ga-button--ghost { color: #fff; border: 1px solid rgba(255,255,255,.38); background: rgba(255,255,255,.1); box-shadow: none; }
.ga-button--ghost:hover, .ga-button--ghost:focus-visible { background: rgba(255,255,255,.2); }

.ga-section { margin-top: 58px; }
.ga-section__head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.ga-section__head h2 { margin: 0; color: var(--ga-ink); font-size: clamp(24px, 3vw, 34px); letter-spacing: -.035em; }
.ga-section__head p { margin: 4px 0 0; color: var(--ga-muted); font-size: 13px; }
.ga-section__more { color: var(--ga-pink); font-size: 13px; font-weight: 700; text-decoration: none; }
.ga-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ga-card { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 270px; border: 1px solid var(--ga-line); border-radius: var(--ga-radius); background: rgba(255,255,255,.82); box-shadow: 0 8px 20px rgba(89, 63, 126, .05); animation: ga-rise .65s both; transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease; }
.ga-card:hover { transform: translateY(-7px); border-color: rgba(255,111,159,.38); box-shadow: var(--ga-shadow); }
.ga-card__media { aspect-ratio: 16/8; overflow: hidden; background: linear-gradient(135deg, #ffe9f1, #e4f7f7); }
.ga-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.ga-card:hover .ga-card__media img { transform: scale(1.06); }
.ga-card__body { display: flex; flex: 1; flex-direction: column; padding: 19px 20px 21px; }
.ga-card__meta { display: flex; gap: 10px; margin-bottom: 8px; color: var(--ga-muted); font-size: 11px; }
.ga-card__tag { color: var(--ga-pink); font-weight: 800; }
.ga-card h3 { margin: 0; color: var(--ga-ink); font-size: 18px; line-height: 1.45; }
.ga-card h3 a { text-decoration: none; }
.ga-card p { margin: 8px 0 0; color: #81839c; font-size: 13px; line-height: 1.75; }
.ga-card__arrow { align-self: flex-end; margin-top: auto; color: var(--ga-pink); font-size: 20px; line-height: 1; }
.ga-empty { grid-column: 1/-1; border: 1px dashed rgba(143,120,232,.3); border-radius: var(--ga-radius); padding: 34px; color: var(--ga-muted); text-align: center; background: rgba(255,255,255,.6); }
.ga-load-more { display: flex; justify-content: center; margin-top: 28px; }
.ga-load-more[hidden] { display: none; }
.ga-status { min-height: 22px; margin-top: 12px; color: var(--ga-muted); font-size: 13px; text-align: center; }

.ga-single { max-width: 820px; margin: 0 auto; }
.ga-single__head { margin-bottom: 25px; }
.ga-single__head h1 { margin: 10px 0; color: var(--ga-ink); font-size: clamp(32px, 5vw, 54px); line-height: 1.15; }
.ga-single__meta { color: var(--ga-muted); font-size: 13px; }
.ga-content { color: #42435e; font-size: 17px; line-height: 2; }
.ga-content img { max-width: 100%; height: auto; border-radius: 18px; }
.ga-content h2, .ga-content h3 { color: var(--ga-ink); margin-top: 1.8em; }
.ga-content a { color: var(--ga-pink); }
.ga-footer { border-top: 1px solid var(--ga-line); padding: 28px 0 36px; color: var(--ga-muted); font-size: 12px; }
.ga-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.ga-progress { position: fixed; z-index: 100; top: 0; left: 0; width: 0; height: 3px; background: linear-gradient(90deg, var(--ga-pink), var(--ga-purple), var(--ga-cyan)); box-shadow: 0 0 12px rgba(255,111,159,.7); opacity: 0; transition: width .35s ease, opacity .2s ease; }
.ga-progress.is-loading { width: 75%; opacity: 1; }
.ga-progress.is-done { width: 100%; opacity: 0; }
.ga-page { animation: ga-page-in .45s ease both; }
.ga-card:nth-child(2) { animation-delay: .06s; }
.ga-card:nth-child(3) { animation-delay: .12s; }
.ga-card:nth-child(4) { animation-delay: .18s; }
body.ga-is-loading .ga-page { opacity: .54; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease; }

@keyframes ga-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ga-page-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 760px) {
    .ga-shell { width: min(100% - 26px, 620px); }
    .ga-header__inner { min-height: 64px; }
    .ga-menu-toggle { display: block; margin-left: auto; }
    .ga-nav { position: absolute; top: calc(100% + 8px); left: 13px; right: 13px; display: grid; gap: 3px; padding: 8px; border: 1px solid var(--ga-line); border-radius: 18px; background: rgba(255,250,253,.98); box-shadow: var(--ga-shadow); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease; }
    .ga-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
    .ga-nav a { padding: 12px 14px; }
    .ga-main { padding-top: 15px; }
    .ga-hero { min-height: 520px; border-radius: 23px; padding: 28px; background-position: 62% center; }
    .ga-hero h1 { font-size: 40px; }
    .ga-grid { grid-template-columns: 1fr; }
    .ga-section { margin-top: 42px; }
    .ga-section__head { align-items: start; flex-direction: column; gap: 7px; }
    .ga-footer__inner { align-items: start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
