/* =========================================================
   RINNO — 藤田琴音應援頁
   杂志式高级感 · 黄色主调 + 红色点缀 + 白/米白留白
   直角切割 · 色块 · 粗细字型对比 · 克制而有质感的动效
   ========================================================= */

:root{
    /* 色彩系统 */
    --yellow:      #F6C64B;   /* 琴音甜黄 */
    --yellow-deep: #EDAF1F;   /* 深黄 */
    --yellow-soft: #FCEFC9;   /* 淡黄 */
    --red:         #E2443B;   /* 点缀红 */
    --red-deep:    #C22E26;
    --ink:         #161616;   /* 墨黑 */
    --ink-soft:    #2A2A2A;
    --paper:       #F6F4EF;   /* 米白纸底 */
    --white:       #FFFFFF;
    --gray:        #8B8780;   /* 次级文字 */
    --line:        #DFDAD0;   /* 细线 */

    /* 字体 */
    --font-cn: "PingFang SC","Microsoft YaHei","Noto Sans CJK SC","Source Han Sans SC",sans-serif;
    --font-en: "Helvetica Neue","Arial","Noto Sans SC",sans-serif;
    --font-serif: Georgia,"Times New Roman","Songti SC","SimSun",serif;

    /* 尺寸 */
    --container: 1200px;
    --pad: 20px;
    --header-h: 64px;
}

*{ margin:0; padding:0; box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
    font-family: var(--font-cn);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; color:inherit; }
ul{ list-style:none; }

.container{
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--pad);
}

/* ---------- 通用工具 ---------- */
::selection{ background: var(--yellow); color: var(--ink); }

/* ---------- 顶部导航 ---------- */
.site-header{
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(22,22,22,0.92);
    color: #fff;
    backdrop-filter: blur(8px);
    transition: transform .35s ease, background .35s ease;
}
.site-header.is-hidden{ transform: translateY(-100%); }

.header-inner{
    max-width: var(--container);
    margin: 0 auto;
    height: 100%;
    padding: 0 var(--pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo{
    font-size: 26px;
    font-weight: 900;
    letter-spacing: .06em;
    color: #fff;
}
.logo-dot{ color: var(--yellow); }

.header-nav{ display: flex; gap: 4px; }
.nav-link{
    position: relative;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .12em;
    color: rgba(255,255,255,.78);
    transition: color .25s;
}
.nav-link::after{
    content:"";
    position:absolute;
    left:14px; right:14px; bottom:4px;
    height:2px;
    background: var(--yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}
.nav-link:hover{ color:#fff; }
.nav-link:hover::after{ transform: scaleX(1); }
.nav-link.is-active{ color: var(--yellow); }

/* 汉堡按钮（移动端） */
.nav-toggle{
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.nav-toggle span{
    display: block;
    width: 24px; height: 2px;
    background: #fff;
    transition: transform .3s, opacity .3s;
}
.nav-toggle.is-open span:first-child{ transform: translateY(3.5px) rotate(45deg); }
.nav-toggle.is-open span:last-child{ transform: translateY(-3.5px) rotate(-45deg); }

/* 滚动进度条 */
.header-progress{
    position: absolute;
    left:0; bottom:-2px;
    height: 2px;
    width: 100%;
    background: var(--yellow);
    transform-origin: left;
    transform: scaleX(0);
}

/* ---------- Hero ---------- */
.hero{
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    background: var(--ink);
}
.hero-bg{
    position:absolute; inset:0;
    background-size: cover;
    background-position: center 22%;
    animation: heroZoom 12s ease forwards;
}
@keyframes heroZoom{
    from{ transform: scale(1.12); }
    to  { transform: scale(1); }
}
.hero-scrim{
    position:absolute; inset:0;
    /* 深色渐变遮罩，保证白字框对比度，避免廉价感 */
    background:
        linear-gradient(90deg, rgba(15,15,15,.78) 0%, rgba(15,15,15,.42) 46%, rgba(15,15,15,.25) 100%),
        linear-gradient(0deg, rgba(15,15,15,.55) 0%, rgba(15,15,15,0) 40%);
}

.hero-inner{
    position: relative;
    z-index: 2;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--pad);
    width: 100%;
}

.hero-tagline{
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-en);
    font-size: 13px;
    letter-spacing: .34em;
    font-weight: 600;
    color: var(--yellow);
    margin-bottom: 40px;
    opacity:0; transform: translateY(14px);
    animation: heroIn .7s .15s ease forwards;
}
.tagline-bar{
    width: 48px; height: 2px;
    background: var(--yellow);
    display:inline-block;
}

/* 白字框 + 黑框垫底（右下露边） */
.hero-title-wrap{
    position: relative;
    max-width: 720px;
}
.hero-title-shadow{
    position:absolute;
    inset: 18px -18px -18px 18px;   /* 右下偏移露出 */
    background: var(--ink);
    z-index: 0;
    opacity:0; transform: translateY(18px);
    animation: heroIn .7s .35s ease forwards;
}
.hero-title-frame{
    position: relative;
    z-index: 1;
    background: #fff;
    color: var(--ink);
    padding: 38px 46px 40px;
    opacity:0; transform: translateY(18px);
    animation: heroIn .7s .35s ease forwards;
}
.hero-title{
    font-size: clamp(64px, 12vw, 132px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: .02em;
    font-family: var(--font-en);
}
.hero-sub{
    margin-top: 18px;
    font-size: clamp(14px, 1.6vw, 18px);
    color: #444;
    line-height: 1.9;
}
@keyframes heroIn{
    to{ opacity:1; transform: translateY(0); }
}

/* 直铺大黑体字 */
.hero-bigtext{
    position: absolute;
    right: -2%;
    bottom: 8%;
    font-size: clamp(80px, 17vw, 210px);
    font-weight: 900;
    line-height: .9;
    color: rgba(255,255,255,.14);
    -webkit-text-stroke: 1.5px rgba(246,198,75,.5);
    letter-spacing: .02em;
    user-select: none;
    pointer-events: none;
    font-family: var(--font-cn);
    opacity:0; transform: translateX(40px);
    animation: heroIn .9s .6s ease forwards;
}

.hero-meta{
    margin-top: 56px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    opacity:0; transform: translateY(14px);
    animation: heroIn .7s .7s ease forwards;
}
.hero-meta span{
    border: 1px solid rgba(255,255,255,.4);
    padding: 4px 14px;
    font-size: 12.5px;
    letter-spacing: .12em;
    color: rgba(255,255,255,.9);
}

.hero-scroll{
    position: absolute;
    left: var(--pad);
    bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-en);
    font-size: 11px;
    letter-spacing: .4em;
    color: rgba(255,255,255,.8);
    z-index: 3;
    opacity:0;
    animation: heroIn 1s 1.1s ease forwards;
}
.scroll-line{
    width: 34px; height: 1px;
    background: var(--yellow);
    overflow: hidden;
    position: relative;
}
.scroll-line::after{
    content:"";
    position:absolute; left:-100%; top:0;
    width:100%; height:100%;
    background:#fff;
    animation: scrollDrop 1.8s ease-in-out infinite;
}
@keyframes scrollDrop{
    0%{ left:-100%; } 60%{ left:0; } 100%{ left:100%; }
}

/* ---------- 通用区块 ---------- */
.section{ padding: 96px 0; }
.section:nth-of-type(even){ background: var(--white); }

.section-head{
    display: flex;
    align-items: baseline;
    gap: 18px;
    margin-bottom: 52px;
}
.section-no{
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 20px;
    color: var(--red);
    font-weight: 700;
}
.section-title{
    font-size: clamp(30px, 5vw, 46px);
    font-weight: 900;
    letter-spacing: .04em;
    font-family: var(--font-en);
    text-transform: uppercase;
}
.title-en{
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .18em;
    color: var(--gray);
    margin-left: 10px;
    text-transform: none;
    font-family: var(--font-cn);
}

/* 进入视口的动效（位移+旋转，非纯淡入） */
.card-reveal{
    opacity: 0;
    transform: translateY(34px) rotate(0.4deg);
    transition: opacity .8s cubic-bezier(.22,.68,.26,1),
                transform .8s cubic-bezier(.22,.68,.26,1);
    will-change: opacity, transform;
}
.card-reveal.in-view{
    opacity: 1;
    transform: translateY(0) rotate(0);
}

/* ---------- About ---------- */
.about-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-card{
    background: var(--white);
    border: 1px solid var(--line);
    padding: 40px;
    position: relative;
}
/* 左上角黄色色块 */
.about-card::before{
    content:"";
    position:absolute;
    top:-1px; left:-1px;
    width: 64px; height: 8px;
    background: var(--yellow);
}

.about-id{ display:flex; align-items:center; gap: 18px; margin-bottom: 26px; }
.about-avatar{
    width: 72px; height: 72px;
    border: 2px solid var(--ink);
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}
.about-avatar img{
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity .55s ease;
}
.about-name{ font-size: 26px; font-weight: 900; letter-spacing:.04em; }
.about-role{
    font-size: 13px;
    color: var(--gray);
    letter-spacing: .06em;
    margin-top: 2px;
}

.about-text{
    font-size: 15px;
    line-height: 2.1;
    color: #333;
    margin-bottom: 24px;
}
.about-text strong{ color: var(--red); }

.about-tags{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}
.about-tags li{
    font-size: 12.5px;
    letter-spacing: .05em;
    padding: 4px 12px;
    background: var(--yellow-soft);
    color: #6b5200;
    border: 1px solid #ead8a0;
}

.about-code{
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--ink);
    color: #fff;
    padding: 14px 18px;
}
.code-label{
    font-size: 11px;
    letter-spacing: .2em;
    color: var(--yellow);
    font-family: var(--font-en);
}
.code-value{
    font-family: var(--font-en);
    font-weight: 700;
    letter-spacing: .12em;
    font-size: 15px;
}
.code-copy{
    margin-left: auto;
    font-size: 12px;
    padding: 5px 12px;
    border: 1px solid rgba(255,255,255,.5);
    color: #fff;
    transition: background .2s, color .2s;
}
.code-copy:hover{ background: var(--yellow); color: var(--ink); border-color: var(--yellow); }

/* 名刺图 + 签名（竖排、居中、沿文字栏中轴上下分布） */
.about-visual{
    position: relative;
    padding-top: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
}
.meishi-col{ position: relative; }
.about-meishi-wrap{ position: relative; }
.about-meishi-shadow{
    position:absolute;
    inset: 16px -16px -16px 16px;
    background: var(--yellow);
    z-index: 0;
}
.about-meishi{
    position: relative;
    z-index: 1;
    width: 100%;
    border: 1px solid var(--ink);
    box-shadow: 0 18px 40px rgba(0,0,0,.16);
}
.about-sign{
    position: absolute;
    width: 130px;
    right: -10px;
    top: -20px;
    transform: rotate(8deg);
    filter: drop-shadow(0 6px 12px rgba(0,0,0,.25));
    z-index: 2;
}

/* ---------- Gallery（多行交错 · 横向无限滑动 · 自动漫游） ---------- */
.gallery-scroller{
    padding-bottom: 10px;
}
.gallery-tabs{
    display: flex;
    gap: 10px;
    margin-bottom: 26px;
}
.g-tab{
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .14em;
    padding: 10px 28px;
    border: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    transition: background .25s, color .25s;
}
.g-tab:hover{ background: var(--yellow-soft); }
.g-tab.is-active{ background: var(--ink); color: var(--yellow); }

.g-hscroll{
    position: relative;              /* 供 .g-mask 遮罩定位 */
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;               /* 隐藏滚动条 */
    cursor: grab;
    padding: 10px 0 18px;
    min-height: 562px;                   /* 桌面两行高度，切换时不塌缩 */
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;                 /* 垂直交给浏览器翻页，横向由 JS 手动处理 */
}
.g-hscroll::-webkit-scrollbar{ display: none; }
.g-hscroll.is-dragging{ cursor: grabbing; }

/* 切换图集时的白色遮罩：较长渐变淡出，盖住加载/布局产生的残影 */
.g-mask{
    position: absolute;
    inset: 0;
    background: var(--paper);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity .5s ease;
}

/* 静音降级提示（file:// 自动播放被静音时） */
.autoplay-hint{
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 300;
    background: var(--ink);
    color: var(--yellow);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 10px 16px;
    border: 1px solid var(--yellow);
    box-shadow: 4px 4px 0 rgba(0,0,0,.18);
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100vw - 32px);
    animation: hint-pop .3s ease;
}
.autoplay-hint[hidden]{ display: none !important; }
@keyframes hint-pop{
    from{ transform: translateY(10px); opacity: 0; }
    to{ transform: none; opacity: 1; }
}

.g-track{
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: max-content;
    position: relative;
    padding: 0 20px;
}
.g-set{
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-right: 12px;
}
.g-row{
    display: flex;
    align-items: center;
    gap: 12px;
    width: max-content;
}
.g-row-0{ padding-left: 0; }
.g-row-1{ padding-left: 76px; }
.g-row-2{ padding-left: 152px; }

.g-slide{
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--ink);
    cursor: zoom-in;
    background: var(--ink-soft);
    transition: transform .3s ease;
}
.g-slide img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.g-slide:hover{ transform: translateY(-4px); }

/* 色块：填补交错布局的空隙 */
.g-block{
    flex-shrink: 0;
    border: 1px solid var(--ink);
}
.g-block.bl-yellow{ background: var(--yellow); }
.g-block.bl-ink{ background: var(--ink); }
.g-block.bl-red{ background: var(--red); }
.g-block.bl-soft{ background: var(--yellow-soft); }

/* ---------- 迷你播放器（紧随首屏） ---------- */
.minibar{
    background: var(--ink);
    color: #fff;
    padding: 26px 0;
    position: relative;
}
.minibar::before{
    content:"";
    position:absolute;
    top:0; left:0; right:0;
    height: 3px;
    background: var(--yellow);
}

.mini-player{
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 20px;
    align-items: center;
}

.mini-cover{
    position: relative;
    width: 96px;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid #fff;
    background: var(--ink-soft);
}
.mini-cover img{
    width: 100%; height: 100%;
    object-fit: cover;
}
/* 播放中：封面轻微呼吸 */
.mini-cover.is-playing img{ animation: coverBreath 3.2s ease-in-out infinite; }
@keyframes coverBreath{
    0%,100%{ transform: scale(1); }
    50%    { transform: scale(1.04); }
}
/* 封面角标 */
.mini-cover::after{
    content:"♫";
    position:absolute;
    right:4px; top:4px;
    width:22px; height:22px;
    background: var(--yellow);
    color: var(--ink);
    display:flex; align-items:center; justify-content:center;
    font-size:12px;
}

.mini-main{ min-width: 0; }
.mini-now{
    display:flex;
    align-items: baseline;
    gap: 12px;
    min-width: 0;
}
.mini-title{
    flex: 1;
    min-width: 0;
    font-size: 18px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: .02em;
}
.mini-artist{
    font-size: 12px;
    color: rgba(255,255,255,.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
}

.mini-controls{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}
.mini-btn{
    width: 36px; height: 36px;
    border: 1px solid rgba(255,255,255,.5);
    display:flex; align-items:center; justify-content:center;
    font-size: 16px;
    color:#fff;
    background: transparent;
    transition: background .2s, color .2s, border-color .2s;
    flex-shrink: 0;
}
.mini-btn:hover{ background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.mini-play{
    background: var(--yellow);
    color: var(--ink);
    border-color: var(--yellow);
    border-radius: 50%;
    width: 42px; height: 42px;
}
.mini-play:hover{ background: var(--red); color:#fff; border-color: var(--red); }
.mini-play .play-icon{ display:inline-block; transform: translateX(1px); }

.mini-volume{
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.vol-icon{
    font-size: 14px;
    color: rgba(255,255,255,.7);
}
.mini-volume input[type="range"]{
    width: 84px;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: rgba(255,255,255,.25);
    border-radius: 0;
    outline: none;
    cursor: pointer;
}
.mini-volume input[type="range"]::-webkit-slider-thumb{
    -webkit-appearance: none;
    appearance: none;
    width: 12px; height: 12px;
    background: var(--yellow);
    border: none;
    border-radius: 50%;
    cursor: pointer;
}
.mini-volume input[type="range"]::-moz-range-thumb{
    width: 12px; height: 12px;
    background: var(--yellow);
    border: none;
    border-radius: 50%;
    cursor: pointer;
}
.mini-volume input[type="range"]::-moz-range-track{
    height: 4px;
    background: rgba(255,255,255,.25);
}

.mini-progress{ flex: 1; min-width: 120px; }
.progress-track{
    position: relative;
    height: 5px;
    background: rgba(255,255,255,.22);
    cursor: pointer;
}
.progress-fill{
    position:absolute; left:0; top:0;
    height: 100%;
    background: var(--yellow);
    width: 0%;
}
.progress-thumb{
    position:absolute; top:50%;
    width: 12px; height: 12px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%,-50%);
    left: 0%;
    pointer-events: none;
}
.progress-time{
    display:flex; justify-content:space-between;
    font-family: var(--font-en);
    font-size: 11px;
    color: rgba(255,255,255,.55);
    margin-top: 5px;
    letter-spacing: .06em;
}

/* 歌词条（紧凑） */
.mini-lyrics{
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,.14);
    padding-top: 14px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.mini-lyrics-label{
    font-family: var(--font-en);
    font-size: 11px;
    letter-spacing: .4em;
    color: var(--yellow);
    flex-shrink: 0;
}
.lyrics-window{
    flex: 1;
    height: 84px;
    overflow: hidden;
    position: relative;
    scroll-behavior: smooth;
}
.lyrics-window::-webkit-scrollbar{ width: 4px; }
.lyrics-window::-webkit-scrollbar-thumb{ background: rgba(246,198,75,.5); }

.lyrics-inner{
    position: relative;
    text-align: center;
}
.lyrics-line{
    padding: 6px 0;
    font-size: 15px;
    color: rgba(255,255,255,.42);
    line-height: 1.6;
    transition: color .3s, transform .3s, opacity .3s;
}
.lyrics-line .jp{ display:block; }
.lyrics-line .cn{
    display:block;
    font-size: 11.5px;
    color: rgba(255,255,255,.26);
    transition: color .3s;
}
.lyrics-line.is-current{
    color: var(--yellow);
    transform: scale(1.05);
    font-weight: 700;
}
.lyrics-line.is-current .cn{ color: rgba(246,198,75,.72); }
.lyrics-empty{
    color: rgba(255,255,255,.5);
    padding: 26px 0;
    font-size: 13px;
    letter-spacing: .1em;
}

/* 纯音乐状态 */
.lyrics-instrumental{
    color: var(--yellow);
    font-size: 15px;
    letter-spacing: .1em;
    padding: 26px 0;
}

/* ---------- Message 句子墙（页尾） ---------- */
.quote-wall{
    background: var(--yellow);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.quote-wall::before{
    content:"KOTONE";
    position:absolute;
    right:-20px; top:-46px;
    font-size: clamp(80px, 16vw, 190px);
    font-weight: 900;
    color: rgba(22,22,22,.07);
    letter-spacing: .02em;
    pointer-events:none;
    font-family: var(--font-en);
    white-space: nowrap;
}
.quote-wall-inner{
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
}
.q-card{
    border: 1px solid var(--ink);
    padding: 18px 24px;
    font-weight: 800;
    line-height: 1.8;
    box-shadow: 4px 4px 0 rgba(22,22,22,.12);
    transition: transform .3s cubic-bezier(.22,.68,.26,1), box-shadow .3s;
}
.q-card:hover{
    transform: translateY(-5px) rotate(0deg);
    box-shadow: 7px 7px 0 var(--ink);
}
/* 大小错落 */
.q-card.q-xl{ font-size: 27px; }
.q-card.q-md{ font-size: 19px; }
.q-card.q-lg{ font-size: 15.5px; }
/* 配色 + 旋转错落 */
.q-card:nth-child(5n+1){ background:#fff; transform: rotate(-1.2deg); }
.q-card:nth-child(5n+2){ background:var(--ink); color:#fff; transform: rotate(1deg); }
.q-card:nth-child(5n+3){ background:var(--yellow-soft); transform: rotate(-.6deg); }
.q-card:nth-child(5n+4){ background:#fff; transform: rotate(1.3deg); }
.q-card:nth-child(5n){ background:var(--red); color:#fff; transform: rotate(-1deg); }
/* 彩色感叹号 */
.q-card .c{ font-weight: 900; }
.q-card .c1{ color:#f34e6c; }
.q-card .c2{ color:#2582c8; }
.q-card .c3{ color:#fec20a; }
.q-card .c4{ color:#13be94; }
.q-card .c5{ color:#8dbafe; }
.q-card .c6{ color:#f39800; }

/* ---------- Links ---------- */
.links-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
}
.link-card{
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    background: var(--white);
    border: 1px solid var(--ink);
    transition: transform .3s cubic-bezier(.22,.68,.26,1), box-shadow .3s, background .25s;
}
.link-card:hover{
    transform: translateY(-5px);
    box-shadow: 8px 8px 0 var(--yellow);
    background: var(--ink);
    color: #fff;
}
.link-icon{
    width: 42px; height: 42px;
    display:flex; align-items:center; justify-content:center;
    background: var(--paper);
    border: 1px solid var(--line);
    flex-shrink: 0;
}
.link-icon img{ width: 26px; height: 26px; object-fit: contain; }
.link-card:hover .link-icon{ background: #fff; }
.link-text{
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.link-name{ font-size: 16px; font-weight: 700; display: block; }
.link-id{
    font-size: 12px;
    color: var(--gray);
    margin-top: 4px;
    letter-spacing: .04em;
    font-family: var(--font-en);
    display: block;
}
.link-card:hover .link-id{ color: rgba(255,255,255,.6); }
/* X logo 时刻保持黑色（白底可见；hover 时 icon 保持浅色底，黑 logo 清晰） */
.link-card.is-invert .link-icon img{ filter: brightness(0); }

/* ---------- Footer ---------- */
.site-footer{
    background: var(--ink);
    color: rgba(255,255,255,.7);
    padding: 46px 0;
}
.footer-inner{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-brand{
    font-size: 30px;
    font-weight: 900;
    color: #fff;
    letter-spacing: .05em;
}
.footer-note{
    font-size: 12.5px;
    line-height: 1.9;
    text-align: right;
    color: rgba(255,255,255,.5);
}

/* ---------- 灯箱 ---------- */
.lightbox{
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(15,15,15,.92);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    padding: 40px;
    backdrop-filter: blur(6px);
}
.lightbox.is-open{ display: flex; }
.lightbox-img{
    max-width: 90vw;
    max-height: 80vh;
    border: 2px solid #fff;
    opacity: 0;
    transform: scale(.96);
    transition: opacity .3s, transform .3s;
}
.lightbox.is-open .lightbox-img{ opacity:1; transform: scale(1); }
.lightbox-caption{
    color: #fff;
    font-size: 14px;
    letter-spacing: .08em;
}
.lightbox-close{
    position: absolute;
    top: 20px; right: 24px;
    font-size: 28px;
    color: #fff;
    width: 48px; height: 48px;
    border: 1px solid rgba(255,255,255,.4);
    transition: background .2s, color .2s;
}
.lightbox-close:hover{ background: var(--red); border-color: var(--red); }

/* ---------- 响应式 ---------- */
@media (max-width: 980px){
    .about-grid{ grid-template-columns: 1fr; gap: 40px; }
    .mini-player{ grid-template-columns: 84px 1fr; gap: 14px; }
    .section{ padding: 72px 0; }
}

@media (max-width: 640px){
    .nav-toggle{ display: flex; }
    .header-nav{
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0;
        background: var(--ink);
        flex-direction: column;
        padding: 12px 20px 20px;
        gap: 4px;
        transform: translateY(-120%);
        visibility: hidden;                 /* 关闭时完全隐藏，避免黄线透过横栏 */
        opacity: 0;
        transition: transform .35s ease, opacity .35s ease, visibility .35s;
        border-bottom: 3px solid var(--yellow);
    }
    .header-nav.is-open{ transform: translateY(0); opacity: 1; visibility: visible; }
    .nav-link{ padding: 12px 8px; }

    .hero-title-frame{ padding: 26px 24px 28px; }
    .hero-bigtext{ bottom: 12%; font-size: clamp(48px, 15vw, 78px); }
    .hero-meta{ margin-top: 34px; }
    .hero-scroll{ display: none; }
    .about-card{ padding: 26px; }
    .about-visual{ padding-top: 56px; gap: 36px; max-width: 360px; }

    .mini-player{ grid-template-columns: 72px 1fr; gap: 12px; }
    .mini-cover{ width: 72px; }
    .mini-now{ flex-direction: column; align-items: flex-start; gap: 2px; }
    .mini-controls{ flex-wrap: wrap; }
    .mini-volume input[type="range"]{ width: 64px; }
    .mini-lyrics{ flex-direction: column; align-items: stretch; gap: 8px; }
    .lyrics-window{ height: 76px; flex: none; }

    /* 手机端下拉菜单隐藏「音乐」「应援」 */
    .nav-hide-mobile{ display: none; }
    .g-row-1{ padding-left: 46px; }
    .g-row-2{ padding-left: 92px; }
    .g-hscroll{ min-height: 392px; }   /* 移动两行高度，切换时不塌缩 */

    .footer-inner{ flex-direction: column; }
    .footer-note{ text-align: left; }
}
