:root {
  --bg: #f7f5f0;
  --card: #ffffff;
  --text: #0f1b2a;
  --muted: #6b7280;
  --accent: #1a73e8;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(15, 27, 42, 0.08);
  --gap: 18px;
}
/* 全站深色主题变量覆盖 */
.theme-dark {
  --bg: #0b1116; /* 背景深黑蓝 */
  --card: #111920; /* 卡片深色 */
  --text: #e6edf3; /* 正文浅色 */
  --muted: #9aa5b1; /* 次要文字 */
  --accent: #22a6f2; /* 高亮蓝青 */
  --radius: 14px;
  --shadow: 0 12px 28px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif; }
a { color: var(--accent); text-decoration: none; }
/* 全局平滑滚动：锚点跳转更自然 */
html { scroll-behavior: smooth; }


.container { max-width: 960px; margin: 0 auto; padding: 0 18px; }
.theme-dark .container { max-width: 960px; }

/* Navbar */
.navbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.9); border-bottom: 1px solid rgba(0,0,0,0.06); }
.theme-dark .navbar { background: rgba(8,13,18,0.85); border-bottom: 1px solid rgba(255,255,255,0.06); backdrop-filter: saturate(180%) blur(10px); }
.nav-inner { display: grid; grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr); align-items: center; height: 56px; gap: 12px; }
.nav-left { display: flex; align-items: center; gap: 10px; min-width: 120px; }
.logo { font-weight: 700; letter-spacing: 1px; color: var(--text); }
.menu { display: flex; gap: 18px; justify-content: center; white-space: nowrap; }
.menu a { color: var(--text); opacity: 0.9; padding: 8px 2px; position: relative; }
.theme-dark .menu a { color: #cbd5e1; }
.menu a[aria-current="page"], .menu a.active { color: var(--accent); }
.theme-dark .menu a[aria-current="page"], .theme-dark .menu a.active { color: var(--accent); }
.theme-dark .menu a.active::after, .theme-dark .menu a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent); border-radius: 2px; }
.menu-toggle { display: none; background: transparent; color: var(--text); font-size: 20px; border: none; }
/* 右侧动作区 */
.nav-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; min-width: 80px; }
.search { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); padding: 4px 8px; border-radius: 999px; }
.theme-dark .search { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.08); }
.search input { width: 200px; background: transparent; border: none; outline: none; color: var(--text); font-size: 13px; }
.search input::placeholder { color: #9aa5b1; }
.icon-btn { background: transparent; border: none; color: var(--text); font-size: 16px; cursor: pointer; }
.theme-toggle { 
  background: transparent; 
  border: none; 
  color: var(--text); 
  font-size: 18px; 
  cursor: pointer; 
  padding: 6px; 
  border-radius: 6px;
  transition: background-color 0.2s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-toggle:hover {
  background: rgba(0,0,0,0.05);
}
.theme-dark .theme-toggle:hover {
  background: rgba(255,255,255,0.08);
}
.nav-avatar { 
  width: 30px; 
  height: 30px; 
  border-radius: 50%; 
  background: linear-gradient(180deg, #2b3a46, #1a2430); 
  border: 1px solid rgba(255,255,255,0.08); 
  display: inline-block; 
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .menu-toggle { display: inline-block; }
  .menu { position: fixed; right: 16px; top: 56px; background: var(--card); padding: 10px; border-radius: 10px; box-shadow: var(--shadow); display: none; flex-direction: column; }
  .menu.open { display: flex; }
}

/* Sections */
.hero { padding: 32px 0 10px; }
.subtitle { color: var(--muted); }
.section { padding: 22px 0; }
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.link { color: var(--accent); }

/* Painting carousel */
.carousel-controls { display: flex; gap: 12px; align-items: center; }
.arrow-btn { width: 44px; height: 44px; border-radius: 50%; border: none; background: #ececec; color: #4b5563; display: grid; place-items: center; font-size: 24px; cursor: pointer; box-shadow: var(--shadow); }
.arrow-btn:hover { background: #e5e7eb; }
.arrow-btn:disabled { opacity: .35; cursor: default; visibility: hidden; }

.painting-carousel { overflow: hidden; }
.painting-track { display: flex; gap: var(--gap); transition: transform .35s ease; will-change: transform; }
.painting-item { position: relative; flex: 0 0 calc((100% - 2 * var(--gap)) / 3); border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid rgba(0,0,0,0.06); box-shadow: var(--shadow); }
.painting-item img { width: 100%; height: 220px; object-fit: cover; display: block; transition: transform .25s ease, box-shadow .25s ease; }
.painting-item.zoomed img { transform: scale(1.08); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
/* 轮播项说明标签 */
.item-caption { position: absolute; left: 8px; bottom: 8px; padding: 4px 8px; font-size: 12px; color: #fff; border-radius: 6px; background: rgba(0,0,0,0.55); backdrop-filter: saturate(150%) blur(6px); }
.caption-note { margin-left: 8px; font-size: 12px; color: #6b7280; }
@media (max-width: 960px) {
  .painting-item { flex: 0 0 calc((100% - var(--gap)) / 2); }
}
@media (max-width: 640px) {
  .painting-item { flex: 0 0 100%; }
}

/* Grid and cards */
.grid { display: grid; gap: var(--gap); }
.cards { grid-template-columns: 1fr; }
.photos-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) {
  .photos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .photos-grid { grid-template-columns: 1fr; }
}

.card { display: block; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(0,0,0,0.06); transition: transform .15s ease-out, box-shadow .15s ease-out; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* 音乐视频样式 */
.video-wrap { background: var(--card); border: 1px solid rgba(0,0,0,0.06); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.responsive-video { width: 100%; height: auto; display: block; }
.card-media { background: transparent; display: block; overflow: hidden; }
.card-media img { width: 100%; height: auto; object-fit: contain; display: block; background: #fff; }
.card-body { padding: 12px; }
.card-title { margin: 0 0 6px; font-size: 18px; color: var(--text); }
.card-meta { margin: 0 0 6px; color: var(--muted); font-size: 12px; }
.card-desc { margin: 0; color: var(--text); opacity: 0.9; }

/* Photos */
.photo { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid rgba(0,0,0,0.06); }
.photo img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .15s ease-out; }
.photo:hover img { transform: scale(1.01); }
.photo .title { position: absolute; left: 8px; bottom: 8px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.45); font-size: 13px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.75); display: none; align-items: center; justify-content: center; z-index: 100; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 80vh; border-radius: var(--radius); box-shadow: var(--shadow); }
.lightbox-close { position: absolute; top: 16px; right: 16px; background: rgba(0,0,0,0.4); color: #fff; border: none; padding: 6px 10px; border-radius: 8px; font-size: 18px; cursor: pointer; }
.lightbox-title { margin-top: 10px; color: var(--text); }

/* Article */
.article { padding: 22px 0; }
.article h1 { font-size: 26px; margin: 0 0 6px; font-weight: 700; }
.article-meta { color: var(--muted); margin-bottom: 14px; }
.article-content { line-height: 1.85; }
.article-content pre { background: #f5f7fa; padding: 12px; border-radius: 8px; overflow: auto; }
.article-content code { color: #34495e; }

/* Footer */
.footer { border-top: 1px solid rgba(0,0,0,0.06); padding: 18px 0; margin-top: 22px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.social { display: flex; align-items: center; gap: 12px; }
.social a { color: var(--text); opacity: .9; }
.social img.qr { width: 96px; height: 96px; border-radius: 16px; box-shadow: var(--shadow); object-fit: cover; }
.hero-wrap { min-height: 52vh; display: grid; place-items: center; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 24px; }
.hero-left { padding: 12px 0; }
.hero-title { margin: 0 0 10px; display: flex; align-items: baseline; gap: 16px; }
.hero-strong { font-size: 92px; font-weight: 800; letter-spacing: 2px; color: #0b1a2b; }
.hero-outline { font-size: 92px; font-weight: 800; color: transparent; -webkit-text-stroke: 2px #0b1a2b; text-stroke: 2px #0b1a2b; letter-spacing: 8px; }
.theme-dark .hero-strong { color: #ffffff; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.theme-dark .hero-outline { -webkit-text-stroke: 2px rgba(226, 232, 240, .35); text-stroke: 2px rgba(226, 232, 240, .35); }
.hero-slogan p { font-size: 28px; margin: 8px 0; color: var(--text); }
.theme-dark .hero-slogan p { color: #e8eff6; opacity: .95; }

.hero-right { position: relative; }
.hero-figure { position: relative; width: 100%; height: 306px; }
.hero-circle { position: absolute; inset: 0; margin: auto; width: 88%; height: 88%; border-radius: 50%; background: radial-gradient(closest-side, #fee9d8, #e8f1ff 70%); filter: blur(2px); }
.theme-dark .hero-circle { background: radial-gradient(closest-side, rgba(64,51,42,.7), rgba(32,27,22,.4) 70%); }
.hero-avatar { position: absolute; right: 8%; bottom: 0; width: 70%; height: 86%; border-radius: 24px; overflow: hidden; background: #1a2430; box-shadow: var(--shadow); }
.hero-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.theme-dark .hero-avatar { border: 1px solid rgba(255,255,255,0.06); }

.hero-actions { position: relative; }
.scroll-btn { position: absolute; left: -56px; bottom: -40px; width: 44px; height: 70px; display: grid; place-items: center; border-radius: 22px; background: #22a6f2; color: #fff; font-size: 22px; box-shadow: var(--shadow); }
.app-stack { position: absolute; right: -8px; bottom: -24px; display: flex; flex-direction: column; gap: 12px; }
.app-item { width: 56px; height: 56px; display: grid; place-items: center; background: var(--card); border: 1px solid rgba(0,0,0,0.06); border-radius: 16px; box-shadow: var(--shadow); font-size: 22px; }
.theme-dark .app-item { background: #111920; border-color: rgba(255,255,255,0.08); color: #e6edf3; }
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-strong, .hero-outline { font-size: 64px; }
  .scroll-btn { left: 0; bottom: -32px; }
  .app-stack { right: 0; bottom: -20px; flex-direction: row; }
}

/* PDF viewer */
.pdf-wrap { height: calc(100vh - 160px); overflow: auto; border: 1px solid rgba(0,0,0,0.06); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.pdf-page { display: block; margin: 12px auto; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }