/* ============================================================
   薛亮 XueLiang — 全站样式 (v0.6, 2026-06-06 重做)
   配色: 深青墨 #0e1822 / 暗金 #c9a962 / 宣纸白 #f5ecd9
   字体: Noto Serif SC + Cormorant Garamond
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* 核心配色 */
    --bg-dark: #0e1822;          /* 深青墨（替代旧 #1a1a2e） */
    --bg-medium: #1a2735;        /* 中间色（卡片底） */
    --bg-soft: #243240;          /* 软背景（hover） */
    --accent: #c9a962;           /* 主金色 */
    --accent-light: #e8d5a8;     /* 浅金 */
    --accent-dark: #8a6d2c;      /* 深金 */
    --text: #f5ecd9;             /* 宣纸白（主文字） */
    --text-muted: #8a8a9a;       /* 弱化文字 */
    --text-dim: #5a5a6a;         /* 更弱文字 */
    --line: rgba(201, 169, 98, 0.2);
    --line-strong: rgba(201, 169, 98, 0.5);
    --font-cn: 'Noto Serif SC', 'STSong', 'SimSun', serif;
    --font-en: 'Cormorant Garamond', 'Georgia', serif;
}

/* 全局 page-hero（v0.9 浅色：6 个非首页页面的页头：历程/作品库/赏析/艺术生活/展览/出版） */
.page-hero {
    text-align: center;
    padding: 140px 24px 32px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-light);
    position: relative;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to bottom,
        rgba(248, 244, 236, 0.7) 0%,
        rgba(248, 244, 236, 0.3) 50%,
        transparent 100%);
    pointer-events: none;
    z-index: 0;
}
.page-hero h1 {
    font-family: var(--font-cn);
    font-size: 3.2rem;
    font-weight: 500;
    letter-spacing: 0.4em;
    text-indent: 0.4em;
    color: var(--ink);
    margin: 0 0 4px;
    line-height: 1.1;
    position: relative;
    z-index: 1;
}
.page-hero .eyebrow {
    font-family: var(--font-en);
    font-size: 0.88rem;
    font-style: italic;
    color: #5a4a25;
    letter-spacing: 0.32em;
    margin: 0 0 4px;
    text-transform: uppercase;
    font-weight: 500;
    position: relative;
    z-index: 1;
}
.page-hero p,
.page-hero .subtitle {
    font-family: var(--font-en);
    font-size: 0.88rem;
    font-style: italic;
    color: #6a5e4a;
    letter-spacing: 0.12em;
    margin: 0;
    position: relative;
    z-index: 1;
}
@media (max-width: 1024px) { .page-hero { padding: 130px 24px 36px; } .page-hero h1 { font-size: 2.4rem; } }
@media (max-width: 640px)  { .page-hero { padding: 110px 20px 24px; } .page-hero h1 { font-size: 1.7rem; letter-spacing: 0.18em; text-indent: 0.18em; } .page-hero .eyebrow { font-size: 0.7rem; } }
@media (max-width: 400px)  { .page-hero { padding: 100px 16px 20px; } .page-hero h1 { font-size: 1.45rem; letter-spacing: 0.14em; text-indent: 0.14em; } }

/* ============ v0.9 通用组件（所有 xl-body 页面可用） ============ */
:root {
    --bg-light:     #f8f4ec;   /* 宣纸米黄（页面底） */
    --bg-soft:      #fffcf3;   /* 卡底（更亮） */
    --ink:          #2a2520;   /* 主文字 深褐 */
    --ink-soft:     #5a5045;   /* 次要文字 */
    --ink-dim:      #6a5e4a;   /* 副标题/装饰文字 */
    --ink-faint:    #8a7a62;   /* eyebrow 等装饰小字 */
    --line:         rgba(201, 169, 98, 0.25);
    --line-soft:    rgba(122, 105, 80, 0.12);

    /* 4 分类色（水墨淡彩 — 低饱和度） */
    --cat-honor:     #b89554;  /* 赭金（荣誉） */
    --cat-creation:  #7a8a6b;  /* 花青绿（创作） */
    --cat-exhibition:#6b8aa3;  /* 花青蓝（展览） */
    --cat-position:  #a37a5a;  /* 朱砂褐（任职） */
}

body.xl-body {
    /* v0.6 token → v0.9 浅色映射（让旧 CSS 文件自动变浅色） */
    --bg-dark: var(--bg-light);
    --bg-medium: var(--bg-soft);
    --bg-soft: var(--bg-soft);
    --text: var(--ink);
    --text-muted: var(--ink-soft);
    --text-dim: var(--ink-dim);

    background-color: var(--bg-light);
    background-image:
        radial-gradient(ellipse at top, rgba(201,169,98,0.05), transparent 60%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.45 0 0 0 0 0.35 0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><filter id='m'><feTurbulence type='fractalNoise' baseFrequency='0.012' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.6 0 0 0 0 0.5 0 0 0 0 0.4 0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23m)'/></svg>");
    background-size: auto, 180px 180px, 400px 400px;
    background-blend-mode: normal, multiply, normal;
    background-attachment: fixed, fixed, fixed;
    color: var(--ink);
    /* PPT 翻页：每次滑动必停在一屏 */
    scroll-snap-type: y mandatory;
    overflow-x: hidden;
}

/* v0.9 浅色 page-container（works/artlife/articles 内容区） */
.xl-body .page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 32px 64px;
    scroll-snap-align: start;
}
@media (max-width: 640px) {
    .xl-body .page-container { padding: 24px 16px 48px; }
}

/* v0.9 浅色 section 标题 */
.xl-body h2 {
    font-family: var(--font-cn);
    color: var(--ink);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    margin: 0 0 20px;
    position: relative;
    padding-left: 16px;
}
.xl-body h2::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 24px;
    background: linear-gradient(to bottom, var(--accent), var(--accent-light));
    border-radius: 2px;
}

/* v0.9 浅色 work-card（玻璃毛玻璃 + 浅色） */
.xl-body .work-card {
    background: rgba(255, 252, 244, 0.55);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid rgba(201, 169, 98, 0.16);
    border-radius: 10px;
    padding: 14px;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 2px 8px -2px rgba(42, 37, 32, 0.04);
    color: var(--ink);
}
.xl-body .work-card:hover {
    border-color: var(--accent);
    background: rgba(255, 252, 244, 0.78);
    transform: translateY(-2px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 12px 28px -8px rgba(42, 37, 32, 0.18);
}
.xl-body .work-card .work-info { padding: 10px 4px 4px; }
.xl-body .work-card .work-info h3 {
    font-family: var(--font-cn);
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0 0 4px;
    letter-spacing: 0.05em;
}
.xl-body .work-card .work-year {
    color: var(--ink-dim);
    font-size: 0.78rem;
    font-family: var(--font-en);
    font-style: italic;
    letter-spacing: 0.05em;
    margin: 0 0 6px;
}
.xl-body .work-card .work-meta { color: var(--ink-soft); font-size: 0.82rem; }
.xl-body .work-card .work-img {
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-soft);
}
.xl-body .work-card .work-img-overlay {
    background: linear-gradient(to bottom, rgba(42,37,32,0.0), rgba(42,37,32,0.55));
    color: #fff;
}

/* v0.9 浅色 article-card / appreciation-card */
.xl-body .article-card,
.xl-body .appreciation-card,
.xl-body .xl-card {
    background: rgba(255, 252, 244, 0.55);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid rgba(201, 169, 98, 0.16);
    border-radius: 10px;
    padding: 18px 20px;
    color: var(--ink);
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 2px 8px -2px rgba(42, 37, 32, 0.04);
}
.xl-body .article-card:hover,
.xl-body .appreciation-card:hover,
.xl-body .xl-card:hover {
    border-color: var(--accent);
    background: rgba(255, 252, 244, 0.78);
    transform: translateY(-2px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 10px 24px -6px rgba(42, 37, 32, 0.14);
}

/* v0.9 浅色筛选 chip（玻璃） */
.xl-body .filter-chip,
.xl-body .xl-chip,
.xl-body .tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    border: 1px solid rgba(201, 169, 98, 0.18);
    border-radius: 18px;
    color: var(--ink-soft);
    font-family: inherit;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.xl-body .filter-chip:hover,
.xl-body .xl-chip:hover,
.xl-body .tab-btn:hover {
    border-color: var(--accent);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.7);
}
.xl-body .filter-chip.active,
.xl-body .xl-chip.active,
.xl-body .tab-btn.active {
    background: var(--ink);
    color: var(--bg-light);
    border-color: var(--ink);
    backdrop-filter: blur(8px) saturate(160%);
    -webkit-backdrop-filter: blur(8px) saturate(160%);
    box-shadow: 0 4px 14px -4px rgba(42, 37, 32, 0.4);
}

/* v0.9 浅色搜索 input */
.xl-body .search-input,
.xl-body .xl-search {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(201, 169, 98, 0.18);
    border-radius: 18px;
    color: var(--ink);
    padding: 8px 16px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.xl-body .search-input:focus,
.xl-body .xl-search:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.12);
}

/* v0.9 浅色 stats 计数 chip */
.xl-body .stats-chip,
.xl-body .xl-stats {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-soft);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    padding: 6px 14px;
    background: rgba(255, 252, 244, 0.5);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(201, 169, 98, 0.18);
    border-radius: 18px;
    font-family: var(--font-en);
    font-style: italic;
    text-transform: uppercase;
}

/* v0.9 浅色 footer */
.xl-body .footer {
    background: rgba(248, 244, 236, 0.6);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-top: 1px solid rgba(201, 169, 98, 0.18);
    color: var(--ink-dim);
    text-align: center;
    padding: 24px 20px;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
}
.xl-body .footer p { color: var(--ink-dim); margin: 0; }

/* 4 分类色（tag / dot 通用） */
.xl-body .tag-honor      { background: rgba(184, 149, 84, 0.14);  color: #8a6d2c; border: 1px solid rgba(184, 149, 84, 0.4); }
.xl-body .tag-creation   { background: rgba(122, 138, 107, 0.14); color: #5a6a4a; border: 1px solid rgba(122, 138, 107, 0.4); }
.xl-body .tag-exhibition { background: rgba(107, 138, 163, 0.14); color: #4a6a85; border: 1px solid rgba(107, 138, 163, 0.4); }
.xl-body .tag-position   { background: rgba(163, 122, 90, 0.14);  color: #7a5a3a; border: 1px solid rgba(163, 122, 90, 0.4); }
.xl-body .tag-dot-honor      { background: var(--cat-honor); }
.xl-body .tag-dot-creation   { background: var(--cat-creation); }
.xl-body .tag-dot-exhibition { background: var(--cat-exhibition); }
.xl-body .tag-dot-position   { background: var(--cat-position); }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-cn);
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; transition: color 0.3s; }

/* ── 导航（参考 arron.net：极简、细体、大留白、淡背景） */
/* ============ Navbar（v0.9：iOS 毛玻璃 + 圆角胶囊 + 渐变金边） ============ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; width: 100%;
    z-index: 1000;
    background: rgba(248, 244, 236, 0.92);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    padding: 22px 64px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid rgba(201, 169, 98, 0.18);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 6px 24px -8px rgba(42, 37, 32, 0.08);
    transition: padding 0.35s, background 0.35s, border-color 0.35s;
    color: #2a2520;
}
.navbar.scrolled {
    padding: 14px 64px;
    background: rgba(248, 244, 236, 0.96);
    border-bottom-color: rgba(201, 169, 98, 0.32);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 8px 28px -6px rgba(42, 37, 32, 0.12);
}
.nav-logo {
    font-size: 1.25rem; color: var(--accent);
    letter-spacing: 0.28em; font-weight: 400;
    flex-shrink: 0; line-height: 1.2;
    display: flex; align-items: center; gap: 14px;
}
.nav-logo a { color: var(--accent); transition: opacity 0.3s; }
.nav-logo a:hover { opacity: 0.7; }
.nav-menu {
    display: flex; align-items: center; gap: 32px;
    flex: 1; justify-content: flex-end;
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
    color: #2a2520;
    opacity: 0.75;
    transition: all 0.3s;
    font-size: 0.88rem;
    letter-spacing: 0.22em;
    font-weight: 400;
    position: relative;
    padding: 8px 2px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.nav-links a::after {
    content: ''; position: absolute; left: 0; bottom: 6px;
    width: 0; height: 1px; background: var(--accent);
    transition: all 0.35s ease;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--accent); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* 中英切换 — 胶囊式（取消方框） */
.lang-switch {
    display: flex; gap: 4px;
    margin-left: 12px;
    background: rgba(201, 169, 98, 0.08);
    border: 1px solid rgba(201, 169, 98, 0.18);
    border-radius: 24px;
    padding: 3px;
}
.lang-switch button {
    background: none; border: none; color: #5a5045;
    padding: 6px 16px;
    cursor: pointer; transition: all 0.3s;
    font-size: 0.72rem; letter-spacing: 0.18em; font-weight: 400;
    min-height: 32px; min-width: 48px;
    border-radius: 20px;
}
.lang-switch button + button { border-left: none; }
.lang-switch button.active {
    background: var(--accent);
    color: #fff;
    font-weight: 500;
}
.lang-switch button:hover:not(.active) { color: var(--accent); }

/* lightbox 模式下提升到 z-index 10001 之上 + 背景加深保证可读（iPad 上 .lang-switch 默认会被黑色 overlay 遮挡） */
.lang-switch.above-lightbox {
    position: relative;
    z-index: 10001;
    background: rgba(248, 244, 236, 0.96) !important;
    border-color: rgba(201, 169, 98, 0.5) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.lang-switch.above-lightbox button { color: #2a2520; }

/* Pro 按钮（pro.js 动态注入的 #pro-nav-btn）— 胶囊式 */
#pro-nav-btn {
    padding: 6px 16px !important;
    font-size: 0.72rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.18em !important;
    border-radius: 20px !important;
    margin-left: 10px !important;
    border: 1px solid rgba(201, 169, 98, 0.3) !important;
    background: rgba(201, 169, 98, 0.06) !important;
    color: var(--accent) !important;
    min-height: 32px !important;
}
#pro-nav-btn.unlocked {
    background: var(--accent) !important;
    color: #fff !important;
    border-color: var(--accent) !important;
}

/* 汉堡按钮 — 胶囊式 */
.nav-toggle {
    display: none;
    background: rgba(201, 169, 98, 0.06);
    border: 1px solid rgba(201, 169, 98, 0.22);
    color: var(--accent);
    width: 44px; height: 44px;
    cursor: pointer;
    align-items: center; justify-content: center;
    font-size: 1.4rem;
    border-radius: 22px;
    transition: all 0.3s;
    -webkit-tap-highlight-color: rgba(201, 169, 98, 0.2);
}
.nav-toggle:hover { background: rgba(201, 169, 98, 0.14); }
.nav-toggle.active { background: var(--accent); color: #fff; }

/* 触屏设备禁用 hover-only 效果，改为 active */
@media (hover: none) {
    .nav-links a:hover { opacity: 0.75; color: var(--text); }
    .nav-links a:hover::after { width: 0; }
    .nav-links a:active { opacity: 1; color: var(--accent); }
    .work-card:hover { transform: none; border-color: var(--line); }
    .work-card:active { transform: scale(0.98); }
}

/* ── 欢迎页面 Hero（4-6 竖条随机山水拼接） ────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: var(--bg-dark);
    padding-top: 70px;  /* 给 fixed nav 留位 */
    scroll-snap-align: start;
    scroll-snap-stop: always;
}
.hero-strips {
    position: absolute; inset: 0;
    display: flex; flex-wrap: nowrap;
    z-index: 1;
}
.hero-strip {
    flex: 1 1 0;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: flex 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero-strip::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg,
        rgba(14, 24, 34, 0.35) 0%,
        rgba(14, 24, 34, 0.55) 60%,
        rgba(14, 24, 34, 0.85) 100%);
    pointer-events: none;
}
.hero-strip:hover { flex: 1.5 1 0; }

.hero-overlay {
    position: relative; z-index: 2;
    min-height: calc(100vh - 70px);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    padding: 40px 20px;
    pointer-events: none;
}
.hero-overlay > * { pointer-events: auto; }
.hero-title {
    font-family: var(--font-cn);
    font-size: 5rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0.4em;
    margin-bottom: 16px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}
.hero-title .en {
    display: block;
    font-family: var(--font-en);
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    color: var(--accent-light);
    margin-top: 10px;
}
.hero-divider {
    width: 60px; height: 1px;
    background: var(--accent);
    margin: 28px auto;
    opacity: 0.7;
}
.hero-subtitle {
    font-family: var(--font-en);
    font-size: 1.05rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 12px;
}
.hero-tagline {
    font-size: 1rem;
    color: rgba(245, 236, 217, 0.75);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 2;
    letter-spacing: 0.08em;
}
.hero-actions {
    display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
.hero-scroll {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    z-index: 3; color: var(--text-muted);
    font-size: 0.75rem; letter-spacing: 0.3em;
    animation: heroScrollPulse 2.5s ease-in-out infinite;
}
@keyframes heroScrollPulse {
    0%, 100% { opacity: 0.4; transform: translate(-50%, 0); }
    50%      { opacity: 1;   transform: translate(-50%, 6px); }
}

/* ── xl-body 浅色 hero 覆盖（首页底色统一 v0.9 宣纸） ── */
.xl-body .hero { background: var(--bg-light); }
/* 关键：移除 strip 上的米色 overlay（避免洗白图片），保留原图色彩 */
.xl-body .hero-strip::after { display: none; }
/* ── 浅色 hero 中央"圆形毛玻璃"——平滑渐变到清晰 ── */
/* 思路：full-screen 毛玻璃层 + radial mask（中心 black 露出毛玻璃 → 边缘 transparent 露出原图） */
.xl-body .hero::after {
    content: '';
    position: absolute; inset: 0;
    background: rgba(248, 244, 236, 0.45);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    -webkit-mask-image: radial-gradient(ellipse 480px 560px at center,
        black 0%,
        rgba(0,0,0,0.95) 25%,
        rgba(0,0,0,0.7)  55%,
        rgba(0,0,0,0.35) 80%,
        transparent 100%);
            mask-image: radial-gradient(ellipse 480px 560px at center,
        black 0%,
        rgba(0,0,0,0.95) 25%,
        rgba(0,0,0,0.7)  55%,
        rgba(0,0,0,0.35) 80%,
        transparent 100%);
    pointer-events: none;
    z-index: 1;
}
/* 移除之前的椭圆 ::before 实现 */
.xl-body .hero-overlay::before { content: none; }
.xl-body .hero-title { color: var(--ink); text-shadow: 0 2px 14px rgba(255, 255, 255, 0.55); }
.xl-body .hero-title .en { color: var(--ink-soft); text-shadow: none; }
.xl-body .hero-subtitle { color: var(--ink-soft); }
.xl-body .hero-tagline { color: var(--ink-soft); }
.xl-body .hero-divider { background: var(--accent); }
.xl-body .hero-scroll { color: var(--ink-soft); }
.xl-body .btn-ghost { color: var(--ink); border-color: var(--ink-soft); background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(8px); }
.xl-body .btn-ghost:hover { background: var(--ink); color: var(--bg-light); border-color: var(--ink); }
/* ── xl-body 浅色 v0.9 圆角胶囊按钮（统一主+次 CTA 样式） ── */
.xl-body .btn-primary,
.xl-body .btn-secondary {
    border-radius: 100px;
    padding: 14px 38px;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid transparent;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
}
.xl-body .btn-primary {
    background: var(--ink);
    color: var(--bg-light);
    border-color: var(--ink);
}
.xl-body .btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(42, 37, 32, 0.22);
}
.xl-body .btn-secondary {
    background: rgba(255, 252, 244, 0.55);
    color: var(--ink);
    border-color: rgba(42, 37, 32, 0.28);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
}
.xl-body .btn-secondary:hover {
    background: var(--ink);
    color: var(--bg-light);
    border-color: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(42, 37, 32, 0.18);
}

@media (max-width: 768px) {
    .hero-strip { flex: 1 1 50%; }
    .hero-strip:nth-child(n+5) { display: none; }
    .hero-title { font-size: 3rem; letter-spacing: 0.3em; }
    .hero-title .en { font-size: 1.2rem; }
}
@media (max-width: 480px) {
    .hero-strip { flex: 1 1 33.33%; }
    .hero-strip:nth-child(n+4) { display: none; }
}

/* ── 通用区块 ─────────────────────────────────────────── */
.section {
    padding: 100px 40px;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}
.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 18px;
    letter-spacing: 0.25em;
    color: var(--accent);
    font-weight: 500;
    position: relative;
}
.section-title::before, .section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: var(--line);
}
.section-title::before { left: calc(50% - 200px); }
.section-title::after  { right: calc(50% - 200px); }
.section-title-en {
    text-align: center;
    font-family: var(--font-en);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 60px;
}
.nav-en { font-size: 0.72em; color: var(--text-muted); margin-left: 3px; opacity: 0.7; }

/* ── 按钮 ─────────────────────────────────────────────── */
.btn-primary, .btn-secondary, .btn-inquire {
    font-family: var(--font-cn);
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid var(--accent);
    padding: 12px 36px;
    font-size: 0.92rem;
}
.btn-primary {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-light); border-color: var(--accent-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201, 169, 98, 0.25); }
.btn-secondary {
    background: transparent;
    color: var(--accent);
}
.btn-secondary:hover { background: rgba(201, 169, 98, 0.12); transform: translateY(-2px); }

/* ── 关于 ─────────────────────────────────────────────── */
.about-content {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 60px;
    align-items: start;
}
.about-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid var(--line);
    position: relative;
}
.about-img::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 70%, rgba(14, 24, 34, 0.4) 100%);
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-text p.about-para {
    margin-bottom: 18px;
    color: var(--ink);
    line-height: 2;
    font-size: 0.96rem;
    text-indent: 2em;
    text-align: justify;
}
.xl-body .about-text p.about-para { color: var(--ink); }

/* ── 历程时间线 ───────────────────────────────────────── */
.timeline { position: relative; padding-left: 36px; }
.timeline::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent) 0%, var(--line) 100%);
}
.timeline-item {
    position: relative;
    margin-bottom: 36px;
    padding-left: 32px;
}
.timeline-item::before {
    content: '';
    position: absolute; left: -42px; top: 8px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--accent);
    box-shadow: 0 0 0 4px rgba(201, 169, 98, 0.12);
}
.timeline-year {
    font-family: var(--font-en);
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 6px;
    letter-spacing: 0.12em;
    font-weight: 500;
}
.timeline-content h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--text);
    letter-spacing: 0.06em;
}
.timeline-content p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.9;
}

/* ── 作品筛选 ─────────────────────────────────────────── */
.works-filter {
    display: flex; justify-content: center;
    gap: 12px; margin-bottom: 40px; flex-wrap: wrap;
}
.works-filter button {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text-muted);
    padding: 8px 22px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.88rem;
    font-family: var(--font-cn);
    letter-spacing: 0.08em;
}
.works-filter button.active,
.works-filter button:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(201, 169, 98, 0.06);
}

/* ── 作品网格 ─────────────────────────────────────────── */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}
.work-card {
    background: var(--bg-medium);
    border: 1px solid var(--line);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}
.work-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
.work-img {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: var(--bg-soft);
}
.work-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.work-card:hover .work-img img { transform: scale(1.05); }
.work-img-overlay {
    position: absolute; inset: 0;
    background: rgba(14, 24, 34, 0.4);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s;
}
.work-card:hover .work-img-overlay { opacity: 1; }
.work-img-overlay span {
    color: var(--text);
    border: 1px solid var(--text);
    padding: 6px 18px;
    font-size: 0.78rem;
    letter-spacing: 0.15em;
}
.work-info { padding: 22px; }
.work-info h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text);
}
.work-year {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}
.work-price {
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 15px;
    font-family: var(--font-en);
}
.btn-inquire {
    background: transparent;
    color: var(--accent);
    width: 100%;
    font-size: 0.82rem;
    padding: 8px 0;
}
.btn-inquire:hover { background: var(--accent); color: var(--bg-dark); }
.btn-print {
    background: transparent;
    border: 1px solid var(--accent-dark);
    color: var(--accent-dark);
    padding: 8px 0;
    width: 100%;
    font-size: 0.82rem;
    margin-top: 6px;
    font-family: var(--font-cn);
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-print:hover { background: rgba(138, 109, 44, 0.15); }
.work-actions { display: flex; flex-direction: column; gap: 0; }

/* ── 衍生品 ───────────────────────────────────────────── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}
.product-card {
    background: var(--bg-medium);
    border: 1px solid var(--line);
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}
.product-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.product-img {
    height: 200px;
    margin-bottom: 15px;
    overflow: hidden;
    background: var(--bg-soft);
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card h3 { font-size: 1rem; margin-bottom: 10px; font-weight: 500; letter-spacing: 0.08em; }
.product-price { color: var(--accent); font-size: 1.15rem; margin-bottom: 15px; font-family: var(--font-en); }

/* ── 媒体 / 影像 ──────────────────────────────────────── */
.media-tabs {
    display: flex; justify-content: center; gap: 16px;
    margin-bottom: 40px; flex-wrap: wrap;
}
.media-tabs button {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text-muted);
    padding: 10px 28px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-cn);
    font-size: 0.88rem;
    letter-spacing: 0.1em;
}
.media-tabs button.active { border-color: var(--accent); color: var(--accent); background: rgba(201, 169, 98, 0.06); }
.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.photo-item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    transition: all 0.3s;
}
.photo-item:hover { border-color: var(--accent); }
.photo-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.photo-item:hover img { transform: scale(1.04); }
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.video-item p { padding: 10px 0; font-size: 0.9rem; color: var(--text-muted); }

/* ── 联系 ─────────────────────────────────────────────── */
.contact-section { background: var(--bg-medium); }
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 960px; margin: 0 auto;
}
.contact-info p { margin-bottom: 16px; color: var(--text-muted); line-height: 1.9; }
.contact-info a { color: var(--accent); }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form input, .contact-form textarea {
    background: var(--bg-dark);
    border: 1px solid var(--line);
    padding: 14px 18px;
    color: var(--text);
    font-family: var(--font-cn);
    font-size: 0.95rem;
    transition: border-color 0.3s;
    letter-spacing: 0.05em;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(201, 169, 98, 0.04);
}
.contact-form textarea { resize: vertical; min-height: 120px; }

/* ── 页脚 ─────────────────────────────────────────────── */
.footer-credit {
    border-top: 1px solid rgba(201, 169, 98, 0.18);
    margin-top: 48px;
}

/* ── 弹窗 ─────────────────────────────────────────────── */
.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(14, 24, 34, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    z-index: 2000;
    padding: 20px;
}
.modal-content {
    background: var(--bg-medium);
    padding: 40px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    border: 1px solid var(--accent);
    position: relative;
}
.modal-content h3 {
    color: var(--accent);
    margin-bottom: 20px;
    letter-spacing: 0.15em;
    font-weight: 500;
}
.modal-content p { margin-bottom: 15px; color: var(--text-muted); }
.modal-content button {
    background: var(--accent);
    color: var(--bg-dark);
    border: none;
    padding: 10px 32px;
    cursor: pointer;
    margin-top: 12px;
    font-family: var(--font-cn);
    letter-spacing: 0.12em;
    transition: all 0.3s;
}
.modal-content button:hover { background: var(--accent-light); }

/* ── 图片占位 ─────────────────────────────────────────── */
.img-placeholder {
    display: flex; align-items: center; justify-content: center;
    color: var(--text-dim); font-size: 0.85rem;
}

/* ── 灯箱 ─────────────────────────────────────────────── */
.lightbox {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex; align-items: center; justify-content: center;
    z-index: 2000;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}
.lightbox-close {
    position: absolute; top: 20px; right: 30px;
    background: none; border: none; color: var(--text);
    font-size: 2.5rem; cursor: pointer; line-height: 1;
    padding: 5px 12px; opacity: 0.7;
    transition: opacity 0.3s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-img {
    max-width: 90vw; max-height: 75vh;
    object-fit: contain;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
    background: var(--bg-dark);
}
.lightbox-info { text-align: center; color: var(--text); max-width: 600px; }
.lightbox-info h3 { font-size: 1.3rem; font-weight: 500; letter-spacing: 0.15em; margin-bottom: 8px; }
.lightbox-info p { color: var(--text-muted); font-size: 0.9rem; }

/* ── 首页文章卡片 ─────────────────────────────────────── */
.articles-list { display: flex; flex-direction: column; gap: 20px; }
.article-card {
    background: var(--bg-medium);
    border: 1px solid var(--line);
    padding: 28px 32px;
    transition: all 0.3s;
    cursor: pointer;
}
.article-card:hover { border-color: var(--accent); background: rgba(201, 169, 98, 0.04); }
.article-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px;
}
.article-header h3 { font-size: 1.05rem; font-weight: 500; letter-spacing: 0.08em; margin-bottom: 4px; }
.article-author { color: var(--text-muted); font-size: 0.82rem; }
.article-toggle { color: var(--accent); font-size: 1.5rem; line-height: 1; margin-left: 15px; flex-shrink: 0; }
.article-excerpt p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.9; margin-bottom: 10px; }
.article-full p { color: var(--text-muted); font-size: 0.9rem; line-height: 2; margin-bottom: 1em; }

/* ── 媒体网格 / 艺术生活卡片 ─────────────────────────── */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.video-card {
    background: var(--bg-medium);
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}
.video-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.video-thumb {
    position: relative;
    height: 180px;
    background: var(--bg-soft);
    display: flex;
    align-items: center; justify-content: center;
    overflow: hidden;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 0.3s; }
.video-card:hover .video-thumb img { opacity: 1; }
.video-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 56px; height: 56px;
    background: rgba(201, 169, 98, 0.9);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    color: var(--bg-dark);
    padding-left: 4px;
    transition: transform 0.3s;
}
.video-card:hover .video-play-btn { transform: translate(-50%, -50%) scale(1.1); }
.video-info { padding: 18px; }
.video-info h3 { font-size: 0.98rem; color: var(--text); margin-bottom: 4px; font-weight: 500; letter-spacing: 0.06em; }
.video-info p { font-size: 0.82rem; color: var(--text-muted); }

/* ── 艺术生活首页网格 ─────────────────────────────────── */
.artlife-home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

/* ── 学术首页网格 ─────────────────────────────────────── */
.articles-home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.articles-home-grid .article-card {
    background: rgba(255, 252, 244, 0.6);
    border: 1px solid rgba(201, 169, 98, 0.25);
    border-radius: 6px;
    padding: 20px 24px;
    transition: all 0.3s;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.articles-home-grid .article-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(42, 37, 32, 0.1);
}
.articles-home-grid .article-card .article-meta {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px;
    font-size: 0.78rem; color: var(--ink-soft); letter-spacing: 0.06em;
}
.articles-home-grid .article-card .article-tag {
    background: rgba(201, 169, 98, 0.12); color: #8a6d2c;
    padding: 2px 10px; border-radius: 12px; font-size: 0.72rem;
}
.articles-home-grid .article-card .article-title {
    font-size: 1.05rem; font-weight: 500; color: var(--ink);
    line-height: 1.5; margin-bottom: 8px; letter-spacing: 0.04em;
}
.articles-home-grid .article-card .article-summary {
    font-size: 0.86rem; color: var(--ink-soft); line-height: 1.7;
    margin-bottom: 10px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden;
}
.articles-home-grid .article-card .read-more {
    font-size: 0.82rem; color: var(--accent); text-decoration: none;
    letter-spacing: 0.08em;
}
.articles-home-grid .article-card .read-more:hover { color: var(--ink); }
.artlife-home-card {
    background: var(--bg-medium);
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
    display: block;
    text-decoration: none;
    color: inherit;
}
.artlife-home-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.artlife-home-card img {
    width: 100%; height: 200px;
    object-fit: cover;
    background: var(--bg-soft);
}
.artlife-home-card .card-info { padding: 16px; }
.artlife-home-card h4 {
    font-size: 0.98rem; font-weight: 500; color: var(--text);
    margin-bottom: 6px; letter-spacing: 0.08em;
}
.artlife-home-card p { font-size: 0.82rem; color: var(--text-muted); }

/* ── 文章正文排版 ─────────────────────────────────────── */
.article-text { text-align: justify; line-height: 2.1; font-size: 1rem; color: var(--ink); }
.xl-body .article-text { color: var(--ink); }
.article-para { text-indent: 0; margin-bottom: 1.4em; line-height: 2.1; text-align: justify; }
.article-para-first { text-indent: 2em; }
.article-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.article-tag {
    font-size: 0.72rem;
    color: var(--accent);
    border: 1px solid var(--line-strong);
    padding: 2px 10px;
    letter-spacing: 0.1em;
    border-radius: 2px;
}
.article-author { color: var(--text-muted); font-size: 0.82rem; }
.article-title { font-size: 1.1rem; font-weight: 500; margin-bottom: 6px; letter-spacing: 0.08em; }
.article-summary { color: var(--text-muted); font-size: 0.9rem; line-height: 1.9; margin-bottom: 12px; }
.read-more { color: var(--accent); font-size: 0.85rem; letter-spacing: 0.1em; }
.read-more::after { content: ' →'; }

/* ── 响应式 ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .navbar { padding: 12px 16px; }
    .nav-logo { font-size: 1.3rem; letter-spacing: 0.1em; }
    .nav-toggle { display: inline-flex; }
    .nav-menu {
        position: fixed;
        top: 0; right: 0;
        height: 100vh; width: 280px;
        max-width: 80vw;
        background: rgba(14, 24, 34, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 70px 24px 30px;
        border-left: 1px solid var(--line);
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 999;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
    }
    .nav-menu.open { transform: translateX(0); }
    .nav-links { flex-direction: column; gap: 0; align-items: stretch; }
    .nav-links a {
        font-size: 1rem;
        padding: 14px 0;       /* 触屏大点击区 */
        border-bottom: 1px solid var(--line);
        min-height: 48px;
    }
    .lang-switch { margin-top: 20px; align-self: flex-start; }
    /* 菜单打开时的背景遮罩 */
    body.nav-open { overflow: hidden; }
    body.nav-open::after {
        content: ''; position: fixed; inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }
}
@media (max-width: 768px) {
    .section { padding: 70px 20px; }
    .section-title { font-size: 1.7rem; }
    .section-title::before, .section-title::after { display: none; }
    .about-content { grid-template-columns: 1fr; gap: 30px; }
    .about-img { aspect-ratio: 4 / 3; }
    .contact-content { grid-template-columns: 1fr; gap: 30px; }
    .works-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
    .work-img { height: 200px; }
    .work-info { padding: 14px; }
    .work-info h3 { font-size: 0.9rem; }
    .lang-switch button { padding: 8px 14px; min-width: 50px; }
}
@media (max-width: 480px) {
    .works-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .work-img { height: 160px; }
    .work-info h3 { font-size: 0.85rem; letter-spacing: 0.05em; }
    .work-year { font-size: 0.72rem; }
}
