/* =====================================================
 * 云和古琴 · 前台主题样式
 * 1. 主题变量（宣纸 + 金棕 + 水墨）
 * 2. 顶部导航（覆盖 bny-nav 默认深棕）
 * 3. Hero / Section 通用
 * 4. 琴馆简介 + 馆舍轮播
 * 5. 修习路径 tab
 * 6. 琴师 cards
 * 7. 琴曲（深色）
 * 8. 琴闻 / FAQ / 预约
 * 9. 页脚
 * 10. 响应式
 * ===================================================== */

/* ---------- 1. 主题变量 ---------- */
:root {
    --paper: #f7f3ec;
    /* 宣纸 */
    --paper-2: #f0ebe2;
    /* 浅宣 */
    --paper-3: #e8e2d6;
    --ink: #1c1a17;
    /* 主文字 */
    --ink-2: #5a544c;
    /* 次文字 */
    --ink-mute: #8a8378;
    /* 辅助文字 */
    --gold: #b8a07c;
    /* 金棕主色 */
    --gold-light: #d4c4a8;
    --gold-dark: #8a7555;
    --gold-soft: rgba(184, 160, 124, .08);
    --border-1: #e0d8cc;
    --border-2: #d0c8bc;
    --ink-dark: #1c1a17;
    /* 深色区块背景 */
    --ink-dark-2: #25221e;
    --seal: #c94f3d;
    /* 朱砂印章 */

    --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
    --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;

    --container: 1200px;
    --radius-sm: 4px;
    --radius: 10px;

    --shadow-soft: 0 4px 24px rgba(0, 0, 0, .06);
    --shadow-medium: 0 12px 40px rgba(0, 0, 0, .10);

    --ease: all .35s cubic-bezier(.25, .46, .45, .94);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-serif);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--gold);
    color: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ---------- 2. 顶部导航（覆盖 bny-nav 默认深棕） ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: rgba(247, 243, 236, .22);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-bottom: 1px solid transparent;
    transition: var(--ease);
    box-shadow: 0 1px 0 var(--border-1);
}

.site-header.is-scrolled {
    background: rgba(247, 243, 236, .96);
    border-bottom-color: var(--border-1);
    box-shadow: 0 1px 0 var(--border-1);
}

.site-header .bny-container {
    display: flex;
    align-items: center;
    padding: 0 24px;
}

.site-header [hx-ext*="bny-nav"] {
    width: 100%;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--ink);
    padding: 0;
}

.site-header .head {
    padding: 16px 0 !important;
    background: transparent !important;
}

.site-header .toggle-btn {
    background: var(--ink-2) !important;
}

.site-header .logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink) !important;
    font-weight: 500 !important;
}

.site-header .logo-seal {
    width: 38px;
    min-width: 38px;
    height: 38px;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
    background: #fff;
}

.site-header .logo-text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.1;
}

.site-header .logo-name {
    font-size: 17px;
    letter-spacing: 4px;
    color: var(--ink);
}

.site-header .logo-sub {
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--ink-mute);
    margin-top: 2px;
    font-family: var(--font-sans);
}

.site-header .menu {
    list-style: none;
    display: flex;
    gap: 4px;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.site-header .menu>li>.trigger {
    color: var(--ink-2) !important;
    font-family: var(--font-sans) !important;
    font-size: 13px !important;
    letter-spacing: 3px;
    padding: 22px 16px !important;
    transition: var(--ease);
    position: relative;
    text-decoration: none;
    background: transparent;
}

.site-header .menu>li>.trigger:hover,
.site-header .menu>li>.trigger.active {
    color: var(--ink) !important;
}

.site-header .menu>li>.trigger.active::before {
    background: var(--ink) !important;
}

/* 默认导航移动端面板收起 */
.site-header [hx-ext*="bny-nav"][nav-collapsed] .menu {
    border-top: 1px solid var(--border-1);
    box-shadow: var(--shadow-medium);
    flex-direction: column;
    align-items: stretch;
}

.site-header [hx-ext*="bny-nav"][nav-collapsed] .menu>li {
    width: 100%;
}

.site-header [hx-ext*="bny-nav"][nav-collapsed] .menu>li>.trigger {
    padding: 14px 24px !important;
    border-bottom: 1px solid var(--border-1);
}

.site-header .toggle-btn {
    display: none;
}

@media (max-width: 768px) {
    .tracks-tab {
        padding: 18px;
    }

    .tracks-tab .head {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .tracks-tab .head::-webkit-scrollbar {
        display: none;
    }

    .tracks-tab .head li {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 12px 16px;
    }
}

/* ---------- 3. Hero / Section ---------- */
.site-main {
    padding-top: 72px;
}

.hero-section {
    position: relative;
    overflow: hidden;
    background: var(--paper);
    min-height: calc(100vh - 72px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 88% 18%, var(--gold-soft), transparent 38%),
        linear-gradient(180deg, var(--paper), var(--paper-2));
}

.hero-bg::after {
    content: "琴";
    position: absolute;
    right: 4%;
    bottom: -2%;
    font-size: 320px;
    color: rgba(184, 160, 124, .05);
    font-weight: 700;
    letter-spacing: -16px;
    line-height: 1;
    font-family: var(--font-serif);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 60px;
    align-items: center;
}

.hero-kicker {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 6px;
    color: var(--gold-dark);
    margin-bottom: 26px;
    font-family: var(--font-sans);
    border-left: 2px solid var(--gold);
    padding-left: 14px;
}

.hero-title {
    font-size: 72px;
    letter-spacing: 14px;
    font-weight: 500;
    margin: 0 0 18px;
    line-height: 1.12;
    color: var(--ink);
}

.hero-sub {
    font-size: 20px;
    letter-spacing: 5px;
    color: var(--ink-2);
    margin: 0 0 30px;
    font-weight: 400;
}

.hero-desc {
    font-size: 15px;
    color: var(--ink-mute);
    letter-spacing: 1.5px;
    line-height: 2.1;
    margin: 0 0 38px;
    max-width: 560px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-circle {
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 1px solid var(--border-2);
    background: rgba(255, 255, 255, .4);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-circle::before {
    content: "";
    position: absolute;
    inset: -12px;
    border: 1px dashed var(--border-1);
    border-radius: 50%;
}

.hero-circle-inner {
    text-align: center;
    color: var(--gold-dark);
}

.hero-char {
    display: block;
    font-size: 190px;
    font-weight: 500;
    line-height: 1;
    font-family: var(--font-serif);
    transform: rotate(-8deg);
    transition: transform .8s cubic-bezier(.25, .46, .45, .94);
}

/* Hero 圆内图片（替换原「琴」字）：圆形团扇式裁切 */
img.hero-char {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-soft);
}

.hero-circle:hover .hero-char {
    transform: rotate(0deg);
    cursor: pointer;
}

.hero-seal {
    position: absolute;
    right: 6%;
    bottom: -10px;
    width: 56px;
    height: 56px;
    background: var(--seal);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    letter-spacing: 2px;
    border-radius: 4px;
    transform: rotate(6deg);
    box-shadow: 0 4px 12px rgba(201, 79, 61, .3);
    font-weight: 500;
}

.hero-scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--ink-mute);
    font-size: 10px;
    letter-spacing: 4px;
    font-family: var(--font-sans);
    z-index: 1;
}

.hero-scroll-line {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, var(--border-2), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: .3;
        transform: scaleY(.8);
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* 通用 Section */
.section {
    padding: 90px 0;
    position: relative;
}

.section-head {
    max-width: 720px;
    margin-bottom: 48px;
}

.section-label {
    display: block;
    font-size: 12px;
    letter-spacing: 6px;
    color: var(--gold-dark);
    margin-bottom: 14px;
    font-weight: 500;
    font-family: var(--font-sans);
}

.section-title {
    font-size: 38px;
    font-weight: 500;
    letter-spacing: 6px;
    margin: 0 0 14px;
    color: var(--ink);
    line-height: 1.25;
}

.section-sub {
    font-size: 14px;
    color: var(--ink-mute);
    letter-spacing: 1.5px;
    line-height: 2;
    margin: 0;
}

.section-head-dark .section-title {
    color: var(--paper);
}

.section-head-dark .section-label {
    color: var(--gold-light);
}

.section-head-dark .section-sub {
    color: rgba(232, 228, 220, .85);
}

.section-more {
    text-align: center;
    margin-top: 36px;
}

.section-more-light .bny-btn {
    color: var(--paper) !important;
    border-color: var(--gold-light) !important;
}

.section-more-light .bny-btn:hover {
    background: var(--gold) !important;
    color: #fff !important;
}

/* ---------- 4. 琴馆简介 ---------- */
.about-section {
    background: var(--paper);
}

.about-section::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: var(--border-1);
}

.about-text p,
.about-text pre {
    color: var(--ink-2);
    font-size: 15px;
    letter-spacing: 1px;
    line-height: 2.2;
    margin: 0 0 18px;
}

/* pre 默认等宽字体且不折行，这里继承正文字体并允许自动换行，避免长内容溢出 */
.about-text pre {
    font-family: inherit;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: break-word;
    margin: 0;
}

.about-carousel {
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--paper-2);
    box-shadow: var(--shadow-soft);
    min-height: 420px;
    /* 轮播图由 bunny-js 注入 height，此处为 JS 加载前兜底，避免塌陷 */
}

.carousel-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-label {
    position: relative;
    z-index: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent);
    color: #fff;
    padding: 28px 18px 16px;
    width: 100%;
    text-align: center;
    font-size: 12px;
    letter-spacing: 4px;
    font-family: var(--font-sans);
}

.slide-hall {
    background: linear-gradient(160deg, #d8cdb6 0%, #b9a98b 100%);
}

.slide-yard {
    background: linear-gradient(160deg, #cdd2bb 0%, #9aa487 100%);
}

.slide-tea {
    background: linear-gradient(160deg, #d6c3a8 0%, #a98864 100%);
}

.slide-study {
    background: linear-gradient(160deg, #c8c0b2 0%, #8d826f 100%);
}

/* ---------- 5. 修习路径 ---------- */
.tracks-section {
    background: var(--paper-2);
}

.tracks-tab {
    background: var(--paper);
    border-radius: var(--radius-sm);
    padding: 28px;
    box-shadow: var(--shadow-soft);
}

.tracks-tab .head {
    gap: 4px;
    border-bottom: 1px solid var(--border-1);
    margin-bottom: 24px;
}

.tracks-tab .head li {
    padding: 12px 22px;
    cursor: pointer;
    color: var(--ink-mute);
    font-family: var(--font-sans);
    font-size: 13px;
    letter-spacing: 2px;
    border-bottom: 2px solid transparent;
    transition: var(--ease);
}

.tracks-tab .head li.this {
    color: var(--ink);
    border-bottom-color: var(--gold);
}

/* 关闭 bunny 自带的蓝色下划线伪元素，统一用金色 border-bottom */
.tracks-tab .head li:after {
    display: none;
}

.track-title {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 4px;
    margin: 0 0 12px;
    color: var(--ink);
}

.track-desc {
    font-size: 14px;
    color: var(--ink-2);
    letter-spacing: 1px;
    line-height: 2;
    margin: 0 0 20px;
    max-width: 640px;
}

.track-meta {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 18px 36px;
    font-family: var(--font-sans);
}

.track-meta li {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.mt-k {
    font-size: 11px;
    color: var(--ink-mute);
    letter-spacing: 3px;
}

.mt-v {
    font-size: 14px;
    color: var(--ink);
    letter-spacing: 1px;
}

.track-cta {
    display: inline-block;
    color: var(--gold-dark);
    font-family: var(--font-sans);
    font-size: 13px;
    letter-spacing: 2px;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 2px;
    margin-top: 14px;
}

/* ===== 修习路径 · 费用与课程内容 ===== */
.track-fee {
    background: var(--paper-2);
    border: 1px solid var(--border-1);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: 18px 22px;
    margin-bottom: 26px;
}

.fee-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--gold-dark);
    margin-bottom: 6px;
}

.fee-note {
    font-size: 14px;
    color: var(--ink-2);
    letter-spacing: 1px;
    margin: 0 0 12px;
}

.fee-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fee-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    align-items: baseline;
    font-size: 14px;
}

.fee-kind {
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--ink-mute);
    min-width: 72px;
}

.fee-detail {
    color: var(--ink);
    letter-spacing: .5px;
}

.track-intro {
    font-size: 15px;
    color: var(--ink-2);
    line-height: 2;
    letter-spacing: 1px;
    margin: 0;
    max-width: 760px;
}

/* ---------- 6. 琴师 ---------- */
.masters-section {
    background: var(--paper);
}

.master-card {
    position: relative;
    background: var(--paper);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-1);
    box-shadow: var(--shadow-soft);
    transition: transform .55s cubic-bezier(.22, 1, .36, 1),
        box-shadow .55s cubic-bezier(.22, 1, .36, 1),
        border-color .55s cubic-bezier(.22, 1, .36, 1);
    height: 100%;
}

.master-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
    border-color: var(--border-2);
}

.master-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.master-avatar-wrap {
    padding: 32px 0 16px;
    text-align: center;
    background: linear-gradient(180deg, var(--paper-2), var(--paper));
}

.master-avatar {
    width: 176px;
    height: 176px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 6px 16px rgba(184, 160, 124, .25);
    display: inline-block;
    background: var(--paper-2);
    transition: transform .6s cubic-bezier(.22, 1, .36, 1),
        box-shadow .6s cubic-bezier(.22, 1, .36, 1);
}

.master-card:hover .master-avatar {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(184, 160, 124, .35);
}

.master-info {
    padding: 20px 28px 28px;
    text-align: center;
}

.master-name {
    font-size: 22px;
    letter-spacing: 4px;
    font-weight: 500;
    margin: 0 0 4px;
}

.master-title {
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--gold-dark);
    margin: 0 0 12px;
    font-family: var(--font-sans);
}

.master-bio {
    font-size: 13px;
    color: var(--ink-mute);
    letter-spacing: 1px;
    line-height: 1.9;
    margin: 0 0 14px;
    font-family: var(--font-sans);
}

/* 简介过长时截断 3 行（末尾自动带省略号）；悬停/聚焦整卡时浮出全文 */
.master-bio-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 全文浮层：绝对定位在卡片下半部，不参与文档流 → 卡片高度不变、不推挤下方内容；
   由 .master-card 的 overflow:hidden 裁切，不会溢出卡片 */
.master-bio-full {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 2;
    max-height: calc(100% - 32px);
    overflow-y: auto;
    padding: 14px 16px;
    background: var(--paper);
    border: 1px solid var(--gold);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-medium);
    text-align: left;
    font-family: var(--font-sans);
    font-size: 13px;
    line-height: 1.9;
    letter-spacing: 1px;
    color: var(--ink-2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .32s ease, visibility .32s ease;
}

/* .master-link 是卡片的父级，焦点落在链接上时用 :focus-within 命中 */
.master-card:hover .master-bio-full,
.master-link:focus-within .master-bio-full {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* 浮层内富文本（content|raw）：段落间距归整、图片不撑破浮层（超长由浮层自身 overflow-y 滚动） */
.master-bio-full p {
    margin: 0 0 8px;
}

.master-bio-full p:last-child {
    margin-bottom: 0;
}

.master-bio-full img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

.master-tags {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- 7. 琴曲（深色） ---------- */
.melodies-section {
    /* 轻微渐变 + 金色上下细线，使深色带与同色的页脚底部分离，避免整页黑块感 */
    background: linear-gradient(180deg, #211e1a 0%, var(--ink-dark) 45%, var(--ink-dark) 100%);
    color: var(--paper);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(184, 160, 124, .22);
    border-bottom: 1px solid rgba(184, 160, 124, .22);
}

.melodies-section::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184, 160, 124, .10), transparent 70%);
    pointer-events: none;
}

.melody-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.melody-item {
    display: block;
}

.melody-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--ink-dark-2);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color .45s cubic-bezier(.22, 1, .36, 1),
        transform .45s cubic-bezier(.22, 1, .36, 1),
        box-shadow .45s cubic-bezier(.22, 1, .36, 1);
}

.melody-card:hover {
    border-color: rgba(184, 160, 124, .45);
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .38);
}

.melody-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--ink-dark-2);
}

.melody-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .7s cubic-bezier(.22, 1, .36, 1);
}

.melody-card:hover .melody-cover {
    transform: scale(1.07);
}

.melody-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .85);
    background: rgba(20, 18, 16, .42);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    transition: background .35s ease, transform .35s cubic-bezier(.22, 1, .36, 1),
        border-color .35s ease;
}

.melody-card:hover .melody-play {
    background: var(--gold);
    border-color: var(--gold);
    transform: translate(-50%, -50%) scale(1.1);
}

.melody-body {
    padding: 18px 20px 20px;
}

.melody-title {
    font-size: 16px;
    letter-spacing: 3px;
    font-weight: 500;
    color: var(--paper);
    transition: color .35s ease;
}

.melody-card:hover .melody-title {
    color: var(--gold-light);
}

.melody-artist {
    font-size: 12px;
    letter-spacing: 2px;
    color: rgba(232, 228, 220, .6);
    margin-top: 6px;
    font-family: var(--font-sans);
}

.melody-body .bny-tag {
    margin-top: 12px;
    display: inline-block;
    background: rgba(184, 160, 124, .15);
    color: var(--gold-light);
    border: 1px solid rgba(184, 160, 124, .3);
}

/* ---------- 琴曲独立页：浅色展墙上的深色视频卡 ---------- */
/* 背景用浅宣，避免与页脚深色同色相融；卡片在浅底上悬浮，对比强烈 */
.video-section {
    background: var(--paper);
}

.video-section .melody-card {
    box-shadow: var(--shadow-soft);
}

.video-section .melody-card:hover {
    box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
}

/* ---------- 琴曲页 · 曲谱模块（bunny-ui 图片预览堆叠式） ---------- */
.score-section {
    background: var(--paper-2);
}

.score-grid {
    margin-top: 8px;
}

.score-card {
    margin: 0;
    background: #fff;
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 26px 22px 20px;
    text-align: center;
    transition: transform .3s ease, box-shadow .35s ease, border-color .3s ease;
}

.score-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(28, 26, 23, .14);
    border-color: var(--gold);
}

.score-pile {
    display: flex;
    justify-content: center;
    padding: 8px 0 18px;
}

.score-pile .bny-image-tags {
    display: none;
}

.score-caption {
    border-top: 1px solid var(--border-2);
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.score-name {
    font-family: var(--font-serif);
    font-size: 19px;
    letter-spacing: 3px;
    color: var(--ink);
}

.score-meta {
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--ink-mute);
}

/* 曲谱搜索（GET 表单，服务端直出） */
.score-search {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: nowrap;
}

.score-search-input {
    width: 340px;
    max-width: 100%;
}

.score-search-reset {
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--ink-mute);
    white-space: nowrap;
    transition: color .2s ease;
}

.score-search-reset:hover {
    color: var(--gold-dark);
}

.score-search-tip {
    margin-top: 14px;
    text-align: center;
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--ink-mute);
}

.score-search-tip em {
    font-style: normal;
    color: var(--gold-dark);
}

.score-empty {
    margin-top: 8px;
    padding: 48px 20px;
    text-align: center;
    color: var(--ink-mute);
    background: #fff;
    border: 1px dashed var(--border-2);
    border-radius: var(--radius);
}

.score-empty p {
    margin: 0 0 18px;
    font-size: 14px;
    letter-spacing: 1px;
}

@media (max-width: 640px) {
    .score-search-input {
        width: 100%;
    }
}

/* ---------- 琴器页 · 在售/租借模块 ---------- */

.product-grid {
    margin-top: 8px;
}

.product-card {
    margin: 0;
    background: #fff;
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 26px 22px 20px;
    text-align: center;
    transition: transform .3s ease, box-shadow .35s ease, border-color .3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(28, 26, 23, .14);
    border-color: var(--gold);
}

.product-shot {
    display: flex;
    justify-content: center;
    padding: 8px 0 18px;
}

.product-shot img {
    max-width: 100%;
    height: auto;
}

.product-caption {
    border-top: 1px solid var(--border-2);
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.product-name {
    font-family: var(--font-serif);
    font-size: 19px;
    letter-spacing: 3px;
    color: var(--ink);
}

.product-price {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--gold-dark);
}

.product-desc {
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--ink-mute);
}

/* 咨询按钮沉底，不同高度卡片的按钮对齐 */

.product-empty {
    margin-top: 8px;
    padding: 48px 20px;
    text-align: center;
    color: var(--ink-mute);
    background: #fff;
    border: 1px dashed var(--border-2);
    border-radius: var(--radius);
}

.product-empty p {
    margin: 0;
    font-size: 14px;
    letter-spacing: 1px;
}

/* ---------- 8. 琴闻 ---------- */
.news-section {
    background: var(--paper-2);
}

.news-card {
    background: var(--paper);
    border-radius: var(--radius-sm);
    padding: 28px 32px;
    box-shadow: var(--shadow-soft);
    height: 100%;
    border: 1px solid var(--border-1);
    transition: var(--ease);
}

.news-card:hover {
    border-color: var(--border-2);
    transform: translateY(-4px);
}

.news-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.news-date {
    font-size: 12px;
    color: var(--ink-mute);
    letter-spacing: 1.5px;
    font-family: var(--font-sans);
}

.news-tag {
    font-size: 11px !important;
}

.news-title {
    font-size: 19px;
    letter-spacing: 2px;
    font-weight: 500;
    margin: 0 0 10px;
    line-height: 1.5;
}

.news-excerpt {
    font-size: 13px;
    color: var(--ink-mute);
    letter-spacing: 1px;
    line-height: 1.9;
    margin: 0 0 14px;
    font-family: var(--font-sans);
}

.news-more {
    font-size: 13px;
    color: var(--gold-dark);
    letter-spacing: 1.5px;
    font-family: var(--font-sans);
}

/* ---------- 9. FAQ ---------- */
.faq-section {
    background: var(--paper);
}

.faq-collapse .item {
    border-bottom: 1px solid var(--border-1) !important;
    background: transparent;
}

/* 覆盖 bunny 默认的 display:flex —— flex 容器上 text-overflow:ellipsis 不生效，
   改回 block 后标题文本才能单行溢出省略 */
.faq-collapse .item .title {
    display: block;
}

.faq-collapse .title {
    padding: 20px 0;
    font-size: 16px;
    letter-spacing: 2px;
    color: var(--ink);
    cursor: pointer;
    position: relative;
    transition: var(--ease);
    font-family: var(--font-serif);
}

/* 关闭 bunny 自带的左侧箭头伪元素，避免与右侧 +/- 重复 */
.faq-collapse .item .title:before {
    display: none;
}

.faq-collapse .title:hover {
    color: var(--gold-dark);
}

.faq-collapse .title::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-dark);
    font-size: 22px;
    font-weight: 300;
    transition: var(--ease);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-collapse .item.show .title::after {
    content: "-";
}

.faq-collapse .content {
    max-height: 0;
    overflow: hidden;
    transition: var(--ease);
    color: var(--ink-2);
}

.faq-collapse .item.show .content {
    max-height: 400px;
}

.faq-collapse .content p {
    font-size: 14px;
    line-height: 2;
    letter-spacing: 1px;
    font-family: var(--font-sans);
    margin: 0;
}

/* ---------- 9.5 琴闻文章详情 ---------- */
.article-detail {
    background: var(--paper);
    padding: 72px 0 76px;
}

.article-wrap {
    max-width: 780px;
    margin: 0 auto;
}

.article-hero {
    margin-bottom: 34px;
}

.article-cate {
    display: inline-block;
    margin-bottom: 18px;
}

.article-title {
    font-family: var(--font-serif);
    font-size: 32px;
    line-height: 1.45;
    letter-spacing: 4px;
    font-weight: 500;
    color: var(--ink);
    margin: 0 0 22px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    font-family: var(--font-sans);
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--ink-mute);
}

.article-meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--border-2);
}

.article-cover {
    margin: 0 0 36px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-1);
}

.article-cover img {
    width: 100%;
    display: block;
    height: auto;
}

.article-body p {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 2.15;
    letter-spacing: .5px;
    color: var(--ink-2);
    margin: 0 0 22px;
}

.article-body h2 {
    font-family: var(--font-serif);
    font-size: 22px;
    letter-spacing: 2px;
    font-weight: 500;
    color: var(--ink);
    margin: 40px 0 18px;
    padding-left: 14px;
    border-left: 3px solid var(--gold);
}

.article-body blockquote {
    margin: 30px 0;
    padding: 18px 24px;
    background: var(--paper-2);
    border-left: 3px solid var(--gold-dark);
    border-radius: var(--radius-sm);
    font-family: var(--font-serif);
    font-size: 16px;
    line-height: 1.95;
    letter-spacing: 1px;
    color: var(--ink);
}

.article-body figure {
    margin: 32px 0;
}

.article-body figure img {
    width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-1);
    display: block;
}

.article-body figcaption {
    margin-top: 10px;
    text-align: center;
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--ink-mute);
}

.article-foot {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--border-1);
    text-align: center;
}

/* ---------- 10. 预约到访 ---------- */
.contact-section {
    background: var(--paper-2);
}

.contact-info {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--border-1);
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--ink-2);
    letter-spacing: 1.5px;
}

.contact-info li:last-child {
    border-bottom: none;
}

.contact-info .bny-icon {
    color: var(--gold-dark);
    font-size: 18px;
    flex-shrink: 0;
}

.contact-form {
    background: var(--paper);
    border-radius: var(--radius-sm);
    padding: 36px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-1);
}

.contact-label {
    display: block;
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--ink-2);
    margin-bottom: 8px;
    font-family: var(--font-sans);
}

.contact-form .bny-input,
.contact-form .bny-textarea {
    background: var(--paper-2) !important;
    border-color: var(--border-2) !important;
}

/* select 的下拉箭头是用 background-image 画的，这里只改 background-color，避免盖掉箭头 */
.contact-form .bny-select {
    background-color: var(--paper-2) !important;
    border-color: var(--border-2) !important;
}

.contact-form .bny-input:focus,
.contact-form .bny-textarea:focus,
.contact-form .bny-select:focus {
    border-color: var(--gold) !important;
}

.contact-form .bny-textarea {
    min-height: 100px;
}

.contact-submit {
    width: 100%;
}

/* ---------- 11. 页脚 ---------- */
.site-footer {
    background: var(--ink-dark);
    color: rgba(232, 228, 220, .7);
    padding: 64px 0 28px;
    font-family: var(--font-sans);
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    letter-spacing: 4px;
    color: var(--paper);
    margin-bottom: 14px;
    font-family: var(--font-serif);
}

.footer-brand .footer-logo .logo-seal {
    width: 38px;
    height: 38px;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--gold-dark);
    background: transparent;
}

.footer-desc {
    font-size: 12px;
    line-height: 2;
    color: rgba(232, 228, 220, .6);
    letter-spacing: 1.5px;
    margin: 0;
}

.footer-title {
    font-size: 13px;
    letter-spacing: 4px;
    color: var(--paper);
    margin: 8px 0 18px;
    font-weight: 500;
    font-family: var(--font-serif);
}

.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-list li {
    margin-bottom: 10px;
    font-size: 12px;
    letter-spacing: 2px;
}

.footer-list a {
    color: rgba(232, 228, 220, .65);
    transition: var(--ease);
}

.footer-list a:hover {
    color: var(--gold-light);
    padding-left: 4px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.footer-contact-list .bny-icon {
    color: var(--gold);
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .06);
    margin-top: 48px;
    padding-top: 24px;
    text-align: center;
    font-size: 11px;
    letter-spacing: 3px;
    color: rgba(168, 162, 148, .7);
}

.footer-bottom .icp {
    margin-left: 12px;
    color: inherit;
}

/* ---------- 12. 回到顶部按钮 ---------- */
.bny-backtop {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 90;
}

/* ---------- 12.5 翻页条（bunny-pagination 前台主题化） ---------- */
/* bunny 默认是中性蓝灰风，这里换成宣纸 + 金棕，与全站保持一致 */
.bny-pagination {
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    padding: 0;
    color: var(--ink-2);
    font-family: var(--font-sans);
}

.bny-pagination .bny-pagination-total {
    margin-right: 6px;
    color: var(--ink-mute);
    letter-spacing: 1px;
}

.bny-pagination .bny-pagination-total em {
    color: var(--gold-dark);
}

.bny-pagination .bny-pagination-btn,
.bny-pagination .bny-pagination-prev,
.bny-pagination .bny-pagination-next {
    min-width: 34px;
    height: 34px;
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    background: var(--paper);
    color: var(--ink-2);
    transition: var(--ease);
}

.bny-pagination .bny-pagination-btn:hover:not(.disabled):not(.active),
.bny-pagination .bny-pagination-prev:hover:not(.disabled):not(.active),
.bny-pagination .bny-pagination-next:hover:not(.disabled):not(.active) {
    border-color: var(--gold);
    background: var(--gold-soft);
    color: var(--gold-dark);
}

.bny-pagination .bny-pagination-btn.active,
.bny-pagination .bny-pagination-prev.active,
.bny-pagination .bny-pagination-next.active {
    border-color: var(--gold);
    background: var(--gold);
    color: #fff;
}

.bny-pagination .bny-pagination-btn.disabled,
.bny-pagination .bny-pagination-prev.disabled,
.bny-pagination .bny-pagination-next.disabled {
    border-color: var(--border-1);
    background: var(--paper-2);
    color: var(--ink-mute);
}

.bny-pagination .bny-pagination-ellipsis {
    color: var(--ink-mute);
}

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-kicker {
        display: inline-block;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-circle {
        width: 280px;
        height: 280px;
    }

    .hero-char {
        font-size: 100px;
    }

    img.hero-char {
        width: 260px;
        height: 260px;
    }

    .section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 30px;
        letter-spacing: 4px;
    }

    .melody-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .site-footer .footer-grid {
        row-gap: 32px;
    }
}

@media (max-width: 640px) {
    .site-main {
        padding-top: 64px;
    }

    .hero-section {
        padding: 50px 0 100px;
    }

    .hero-title {
        font-size: 40px;
        letter-spacing: 6px;
    }

    .hero-sub {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .hero-circle {
        width: 220px;
        height: 220px;
    }

    .hero-char {
        font-size: 78px;
    }

    img.hero-char {
        width: 200px;
        height: 200px;
    }

    .hero-bg::after {
        font-size: 200px;
    }

    .section {
        padding: 56px 0;
    }

    .section-title {
        font-size: 24px;
        letter-spacing: 3px;
    }

    /* 手机端改单列：两列时 16 字标题（原 nowrap）会把列宽顶到 302px，
       列表 scrollWidth 远超容器宽，右侧卡片被裁掉 */
    .melody-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .melody-body {
        padding: 14px 14px 16px;
    }

    /* 单列下允许换行、最多 2 行，长标题不再被硬截断；
       也不能再用 nowrap —— 它会让列宽无法收缩（grid 列改单列时同理） */
    .melody-title {
        font-size: 15px;
        letter-spacing: 2px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .melody-artist {
        font-size: 11px;
        letter-spacing: 1px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .faq-collapse .title {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding-right: 44px;
    }

    .contact-form {
        padding: 22px;
    }

    .news-card {
        padding: 22px;
    }

    .site-header .logo-name {
        font-size: 15px;
    }

    .site-header .logo-sub {
        display: none;
    }

    /* 横向溢出保护，避免个别元素把页面撑出滚动条 */
    body {
        overflow-x: hidden;
    }

    .tracks-tab {
        padding: 16px;
    }

    .track-fee {
        padding: 16px 18px;
    }

    .track-intro,
    .track-desc {
        font-size: 14px;
    }

    .track-cta {
        margin-top: 12px;
    }

    /* 页脚：手机端各列改为单列堆叠，避免两列 50%+gap 撑出横向滚动 */
    .site-footer .footer-grid {
        row-gap: 28px;
    }

    .site-footer .footer-grid [class*="col-"] {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100%;
    }

    .footer-contact-list li .footer-ic,
    .footer-contact-list li .bny-icon {
        flex-shrink: 0;
        margin-top: 2px;
    }

    .about-carousel {
        height: 300px !important;
    }
}

/* =====================================================
 * 14. 强制修正层（兼容页面构建器对 HTML 的偶发回写）
 * 不依赖 HTML 的属性/类名是否正确，直接保证视觉正确。
 * ===================================================== */

/* 栅格间距：bunny 的 grid-gap 是 .bny-row 的属性；若被回写成 class 或未命中内置值，
   这里用 !important 兜底，确保各栅格之间始终有 24px 间距。 */
.bny-row {
    gap: 24px !important;
}

.about-grid,
.masters-grid,
.news-grid,
.contact-grid,
.footer-grid {
    gap: 24px !important;
}

/* 预约表单内部字段行列距稍紧凑 */
.contact-form .bny-row {
    gap: 18px !important;
}

/* 按钮：bunny 用 btn-size / btn-model 属性；若被回写成 class token，这里兜底 */
.bny-btn.btn-size-lg {
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 8px;
}

.bny-btn.btn-size-sm {
    padding: 5px 12px;
    font-size: 13px;
    border-radius: 4px;
}

.bny-btn.btn-model\=\'border\' {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--border-2);
    box-shadow: none;
}

.bny-btn.btn-model\=\'border\':hover {
    background: var(--gold-soft);
    color: var(--ink);
}

/* 图标：页面中曾误用 icon-environment / icon-clock-circle（bunny 字体中不存在），
   映射到正确字形，避免渲染出空白图标。codepoint 取自 bunny .icon-location / .icon-time-circle */
.bny-icon.icon-environment::before {
    content: "\ue7a5";
}

/* = icon-location */
.bny-icon.icon-clock-circle::before {
    content: "\ue791";
}

/* = icon-time-circle */

/* 修习路径 tab：bunny 用 .this / .show 管理状态；兼容 class="active" 被回写的情况 */
.tracks-tab .head li.active {
    color: var(--ink);
    border-bottom-color: var(--gold);
}

.tracks-tab .body>div.active {
    display: block;
}

/* =====================================================
 * 琴景页（/scene）专用样式
 * 复用首页视觉语言：宣纸 + 金棕 + 水墨、section-head 三段式
 * ===================================================== */

/* 页面头图（非 Hero，留给子页的轻量引导区） */
.scene-page-hero {
    background:
        radial-gradient(circle at 82% -20%, rgba(184, 160, 124, .16), transparent 55%),
        var(--paper-2);
    padding: 124px 0 64px;
    text-align: center;
    border-bottom: 1px solid var(--border-1);
}

.scene-page-hero .section-label {
    margin-bottom: 14px;
}

.scene-hero-title {
    font-family: var(--font-serif);
    font-size: 46px;
    letter-spacing: 12px;
    font-weight: 500;
    color: var(--ink);
    margin: 0 0 18px;
    padding-left: 12px;
    /* 抵消 letter-spacing 造成的右偏，保证视觉居中 */
}

.scene-hero-sub {
    font-size: 15px;
    letter-spacing: 2px;
    color: var(--ink-2);
    line-height: 2;
    margin: 0 auto;
    max-width: 560px;
    font-family: var(--font-sans);
}

/* 板块背景变体（与首页节奏一致：宣纸 → 浅宣 → 深色 → 宣纸） */
.scene-section--alt {
    background: var(--paper-2);
}

.scene-section--dark {
    background: var(--ink-dark);
    color: var(--paper);
    position: relative;
    overflow: hidden;
}

.scene-section--dark::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184, 160, 124, .12), transparent 70%);
    pointer-events: none;
}

/* 轮播容器外观（与 about-carousel 一致：圆角 + 裁切 + 阴影） */
.scene-carousel {
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--paper-2);
    box-shadow: var(--shadow-soft);
    /* bunny 注入 height 前的兜底，避免塌陷 */
    min-height: 320px;
}

.scene-carousel--main {
    border-radius: var(--radius);
    box-shadow: var(--shadow-medium);
}

/* coverflow 异形卡片上的标签略放大，更易读 */
.scene-carousel .carousel-slide .slide-label {
    font-size: 13px;
    letter-spacing: 3px;
}

/* ---------- 师友剪影：手风琴折叠（bny-collapse），照片堆 + 简介按需展开 ---------- */
.portrait-accordion {
    margin-top: 8px;
    border-top: 1px solid var(--border-1);
}

/* 标题行：序号 + 姓名 + 身份；关闭 bunny 默认左箭头，改用右侧 +/− */
.portrait-accordion .item .title {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    height: auto;
    min-height: 66px;
    padding: 14px 52px 14px 6px;
    line-height: normal;
    border-bottom: 1px solid var(--border-1);
    background: transparent;
    cursor: pointer;
    transition: var(--ease);
}

/* 关闭 bunny 默认左侧箭头伪元素 */
.portrait-accordion .item .title:before {
    display: none;
}

.portrait-accordion .item .title .portrait-acc-index {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--gold);
    min-width: 26px;
}

.portrait-accordion .item .title .portrait-acc-name {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--ink);
    transition: var(--ease);
}

.portrait-accordion .item .title .portrait-acc-role {
    margin-left: 14px;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--gold-dark);
    font-family: var(--font-sans);
}

/* 右侧 +/− 指示器（与 FAQ 折叠风格一致） */
.portrait-accordion .item .title::after {
    content: "+";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-dark);
    font-size: 22px;
    font-weight: 300;
    transition: var(--ease);
}

.portrait-accordion .item.show .title::after {
    content: "\2212";
}

/* 悬浮 / 展开态 */
.portrait-accordion .item .title:hover .portrait-acc-name {
    color: var(--gold-dark);
}

.portrait-accordion .item.show .title {
    background: var(--gold-soft);
}

.portrait-accordion .item.show .title .portrait-acc-name {
    color: var(--gold-dark);
}

/* 展开内容：宣纸卡片，照片堆 + 简介，左侧金线分隔 */
.portrait-accordion .item .content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .45s cubic-bezier(.22, 1, .36, 1);
}

.portrait-accordion .item.show .content {
    max-height: 960px;
}

.portrait-detail {
    display: flex;
    gap: 32px;
    align-items: stretch;
    margin: 4px 0 12px;
    padding: 26px 28px 30px;
    background: var(--paper-2);
    border: 1px solid var(--border-2);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.portrait-detail .portrait-pile {
    flex: 0 0 auto;
}

.portrait-detail .portrait-bio {
    position: relative;
    margin: 0;
    flex: 1;
    max-width: 54ch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 32px;
    border-left: 1px solid var(--border-2);
    font-size: 14px;
    line-height: 2;
    letter-spacing: .5px;
    color: var(--ink-2);
}

/* 淡雅水印：填补短文案时的右侧留白，呼应古琴意趣 */
.portrait-detail .portrait-bio::after {
    content: "\7434";
    position: absolute;
    right: 6px;
    bottom: -6px;
    font-family: var(--font-serif);
    font-size: 130px;
    line-height: 1;
    color: var(--gold);
    opacity: .06;
    pointer-events: none;
    user-select: none;
}

/* 照片堆：bunny-ui 默认堆叠堆（.bny-image-group），多图自动包成 .bny-image-item 旋转叠放，原生支持任意张数；尺寸由容器 img-preview-size 控制 */
.portrait-pile {
    align-self: center;
}

.portrait-pile .bny-image-tags {
    display: none;
}

/* 琴景页 · 平板端 */
@media (max-width: 768px) {
    .scene-page-hero {
        padding: 104px 0 48px;
    }

    .scene-hero-title {
        font-size: 34px;
        letter-spacing: 8px;
    }

    /* bunny 将 carousel-height 写进容器 inline style，用 !important 覆盖以适配移动端 */
    .scene-carousel {
        height: 360px !important;
        border-radius: var(--radius-sm);
    }

    .scene-carousel--main {
        height: 380px !important;
    }

    /* 师友剪影：平板/手机端，标题与内容堆叠，照片堆居中在上 */
    .portrait-accordion .item .title {
        padding: 14px 48px 14px 4px;
        gap: 10px 14px;
        flex-wrap: wrap;
    }

    .portrait-accordion .item .title .portrait-acc-index {
        min-width: 22px;
    }

    .portrait-accordion .item .title .portrait-acc-name {
        font-size: 17px;
    }

    .portrait-accordion .item .title .portrait-acc-role {
        margin-left: 0;
        font-size: 11px;
    }

    .portrait-detail {
        flex-direction: column;
        gap: 18px;
        align-items: center;
        text-align: center;
        padding: 22px 20px 26px;
    }

    .portrait-detail .portrait-bio {
        padding-left: 0;
        border-left: 0;
        max-width: 100%;
    }
}

/* 琴景页 · 手机端 */
@media (max-width: 640px) {
    .scene-page-hero {
        padding: 92px 0 40px;
    }

    .scene-hero-title {
        font-size: 27px;
        letter-spacing: 6px;
        padding-left: 6px;
    }

    .scene-hero-sub {
        font-size: 13px;
        letter-spacing: 1px;
        line-height: 1.9;
    }

    .scene-carousel {
        height: 280px !important;
    }

    .scene-carousel--main {
        height: 300px !important;
    }

    /* 师友剪影：手机端收紧字号 */
    .portrait-accordion .item .title {
        padding: 14px 44px 14px 2px;
        gap: 8px 12px;
    }

    .portrait-accordion .item .title .portrait-acc-name {
        font-size: 16px;
    }

    .portrait-detail {
        padding: 18px 14px 22px;
    }

    .portrait-detail .portrait-bio {
        font-size: 13px;
        line-height: 1.9;
    }

    .portrait-detail .portrait-bio::after {
        font-size: 92px;
        right: 2px;
        bottom: 0;
    }
}

/* 琴闻详情页 · 窄屏 */
@media (max-width: 640px) {
    .article-detail {
        padding: 44px 0 56px;
    }

    .article-title {
        font-size: 24px;
        letter-spacing: 3px;
    }
}