:root {
  --paper: #f1ede5;
  --paper-deep: #e3dbce;
  --ink: #171411;
  --ink-soft: #29231e;
  --wood: #8d4d2f;
  --amber: #c58a4b;
  --sage: #516052;
  --line: rgba(23, 20, 17, 0.18);
  --light-line: rgba(255, 255, 255, 0.2);
  --serif: "Bodoni 72", Didot, "Songti SC", SimSun, Georgia, serif;
  --sans: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  --max: 1240px;
}

html {
  background: var(--ink);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.78;
  letter-spacing: 0.012em;
}

::selection {
  background: var(--wood);
  color: #fff;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.07;
  background-image: radial-gradient(rgba(23, 20, 17, 0.34) 0.55px, transparent 0.7px);
  background-size: 4px 4px;
  mix-blend-mode: multiply;
}

a {
  text-underline-offset: 0.22em;
}

main a:not(.button):not(.panel) {
  text-decoration: underline;
  text-decoration-color: rgba(141, 77, 47, 0.42);
  text-decoration-thickness: 1px;
}

main a:not(.button):not(.panel):hover {
  color: var(--wood);
  text-decoration-color: var(--wood);
}

.header-inner,
.section,
.footer-inner {
  width: min(100% - 40px, var(--max));
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border: 0;
  background: linear-gradient(180deg, rgba(13, 11, 10, 0.66), transparent);
  color: #fff;
  backdrop-filter: none;
  transition: background 260ms ease, border-color 260ms ease, backdrop-filter 260ms ease;
}

.is-scrolled .site-header,
.site-header:has(.site-nav.is-open) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 15, 13, 0.94);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 86px;
  gap: 28px;
}

.brand {
  min-width: max-content;
  color: #fff;
}

.brand:hover {
  color: #fff;
}

.brand strong {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.4vw, 1.28rem);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.brand span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-toggle {
  border-color: rgba(255, 255, 255, 0.32);
  border-radius: 0;
  background: rgba(10, 9, 8, 0.2);
  color: #fff;
}

.site-nav {
  top: 86px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(18, 15, 13, 0.98);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.site-nav a,
.nav-guide-toggle,
.nav-dropdown-toggle {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.nav-guide-toggle:hover,
.nav-guide-toggle[aria-current="page"],
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle[aria-current="page"] {
  color: #fff;
}

.site-nav .language-switcher {
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.48);
}

.site-nav .language-switcher [aria-current="true"] {
  color: var(--amber);
}

.hero {
  min-height: 100svh;
  align-items: center;
  background:
    radial-gradient(circle at 22% 42%, rgba(141, 77, 47, 0.28), transparent 34%),
    var(--ink);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(17, 14, 12, 0.98) 0%, rgba(17, 14, 12, 0.86) 34%, rgba(17, 14, 12, 0.16) 72%),
    linear-gradient(0deg, rgba(17, 14, 12, 0.7), transparent 44%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 20%;
  background: linear-gradient(transparent, var(--paper));
  opacity: 0.16;
}

.hero picture {
  left: auto;
  right: 0;
  width: min(68vw, 980px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 100%);
}

.hero img {
  object-position: center 43%;
  opacity: 0.88;
  filter: saturate(0.72) contrast(1.12) brightness(0.9);
  transform: scale(1.015);
}

.hero-content {
  z-index: 2;
  width: min(100% - 40px, var(--max));
  padding: 160px 0 120px;
}

.eyebrow {
  color: var(--amber);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
}

h1 {
  max-width: 10.5ch;
  margin-bottom: 28px;
  font-size: clamp(3.2rem, 7.7vw, 7.4rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
}

.brand-title {
  max-width: 10.5em;
}

.brand-title span {
  display: inline-block;
  white-space: nowrap;
}

h2 {
  margin-bottom: 28px;
  font-size: clamp(2.2rem, 4.8vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

h3 {
  font-family: var(--serif);
  font-size: clamp(1.22rem, 1.8vw, 1.65rem);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.lead {
  max-width: 720px;
  color: rgba(23, 20, 17, 0.68);
  font-size: clamp(1.02rem, 1.5vw, 1.24rem);
}

.hero .lead {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.72);
}

.cta-row {
  gap: 20px;
  margin-top: 38px;
}

.button {
  min-height: 48px;
  padding: 9px 22px;
  border: 1px solid var(--wood);
  border-radius: 0;
  background: var(--wood);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.button:hover {
  border-color: var(--ink);
  background: var(--ink);
}

.button.secondary {
  border-color: currentColor;
  background: transparent;
}

.hero .button.secondary {
  border-color: rgba(255, 255, 255, 0.44);
}

.section {
  padding: clamp(84px, 10vw, 144px) 0;
}

.section > h2:first-child::before,
.band .section > h2:first-child::before {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  margin-bottom: 26px;
  background: var(--wood);
}

.page-hero {
  position: relative;
  display: grid;
  min-height: min(76svh, 820px);
  align-items: end;
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}

.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
}

.page-hero::before {
  z-index: -2;
  background-image: var(--page-hero-image);
  background-position: var(--page-hero-position, center);
  background-size: cover;
  filter: saturate(0.68) contrast(1.1) brightness(0.72);
  transform: scale(1.018);
}

.page-hero::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 12, 10, 0.94), rgba(14, 12, 10, 0.46) 58%, rgba(14, 12, 10, 0.16)),
    linear-gradient(0deg, rgba(14, 12, 10, 0.84), transparent 58%);
}

.page-hero .section {
  padding-top: 190px;
  padding-bottom: 88px;
}

.page-hero h1 {
  max-width: 13ch;
  margin-bottom: 24px;
  font-size: clamp(3rem, 6.6vw, 6.6rem);
}

.page-hero .lead {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.74);
}

.page-about { --page-hero-image: url("../images/线下店实拍/工作室-场景4.jpg"); --page-hero-position: center 48%; }
.page-luthier { --page-hero-image: url("../images/制作过程/微信图片_20260806131412_95_3.jpg"); --page-hero-position: center 46%; }
.page-violin { --page-hero-image: url("../images/小提琴指南/工作室-场景-小提琴2.jpg"); --page-hero-position: center 46%; }
.page-cello { --page-hero-image: url("../images/大提琴指南/工作室-场景-大提琴.jpg"); --page-hero-position: center 52%; }
.page-teaching { --page-hero-image: url("../images/教学活动/大提琴学员交响乐音乐会.jpg"); --page-hero-position: center 45%; }
.page-orchestra { --page-hero-image: url("../images/Bridge乐团介绍/concert2.webp"); --page-hero-position: center 40%; }
.page-cases { --page-hero-image: url("../images/工作室活动/微信图片_20260806131301_30_3.jpg"); --page-hero-position: center 48%; }
.page-contact { --page-hero-image: url("../images/线下店实拍/工作室-场景-门头.jpg"); --page-hero-position: center 48%; }

.grid {
  gap: clamp(28px, 4vw, 56px);
}

.grid.two,
.grid.three {
  align-items: stretch;
}

.panel {
  position: relative;
  padding: 30px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

a.panel {
  display: block;
}

.panel::after {
  content: "↗";
  position: absolute;
  top: 28px;
  right: 4px;
  color: var(--wood);
  opacity: 0;
  transform: translate(-8px, 8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

a.panel:hover::after {
  opacity: 1;
  transform: none;
}

.panel.featured {
  padding: 32px;
  border: 0;
  background: var(--ink-soft);
  color: #fff;
  box-shadow: 28px 28px 0 var(--paper-deep);
}

.band {
  border: 0;
  background: var(--paper-deep);
}

.band:nth-of-type(even) {
  background: #ddd6ca;
}

.media-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 72px;
  gap: 16px;
  margin-top: 48px;
}

.media-item {
  position: relative;
  grid-column: span 4;
  grid-row: span 5;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--ink);
}

.media-item:nth-child(7n + 1) {
  grid-column: span 8;
  grid-row: span 7;
}

.media-item:nth-child(7n + 4) {
  grid-column: span 5;
  grid-row: span 6;
}

.media-item:nth-child(7n + 5) {
  grid-column: span 7;
  grid-row: span 6;
}

.media-item picture,
.media-item img {
  width: 100%;
  height: 100%;
}

.media-item img {
  aspect-ratio: auto;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.06);
  transition: filter 420ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0, 1);
}

.media-item::after {
  content: "";
  position: absolute;
  inset: 48% 0 0;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(12, 10, 9, 0.72));
}

.media-item:hover img {
  filter: saturate(0.92) contrast(1.02);
  transform: scale(1.035);
}

.media-item figcaption,
.media-item > span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 18px 20px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

section[id],
article[id],
p[id],
h2[id] {
  scroll-margin-top: 110px;
}

.visual-story {
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.visual-story .lead {
  color: rgba(255, 255, 255, 0.64);
}

.visual-story .media-gallery {
  width: min(1400px, 100vw);
  margin-right: 50%;
  margin-left: 50%;
  transform: translateX(-50%);
}

.contact-strip {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(17, 14, 12, 0.95), rgba(17, 14, 12, 0.48)),
    url("../images/线下店实拍/工作室-场景4.jpg") center / cover;
  color: #fff;
}

.contact-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(141, 77, 47, 0.32), transparent 48%);
}

.contact-strip .section {
  position: relative;
  z-index: 1;
}

.contact-strip h2 {
  max-width: 13ch;
}

.contact-strip .lead,
.contact-strip p {
  color: rgba(255, 255, 255, 0.72);
}

.faq details {
  padding: 26px 0;
  border-color: var(--line);
}

.faq summary {
  position: relative;
  padding-right: 44px;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 500;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  top: 0;
  right: 2px;
  color: var(--wood);
  font-family: var(--sans);
  font-weight: 300;
}

.faq details[open] summary::after {
  content: "−";
}

.map-placeholder {
  min-height: 320px;
  border: 0;
  border-left: 1px solid var(--wood);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 2.6rem);
  line-height: 1.4;
}

.site-footer {
  position: relative;
  overflow: hidden;
  background: #100e0c;
  color: rgba(255, 255, 255, 0.6);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -120px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(197, 138, 75, 0.16);
  border-radius: 50%;
}

.footer-inner {
  position: relative;
  padding: 76px 0 54px;
}

.footer-inner > strong {
  display: block;
  max-width: 680px;
  margin-bottom: 32px;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 1.06;
}

.footer-links {
  padding: 22px 0;
  border-block: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-links a {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 1180px) {
  .header-inner {
    width: min(100% - 56px, 1380px);
  }

  .brand span {
    display: block;
  }

  .site-nav {
    background: transparent;
    box-shadow: none;
  }

  .site-nav ul {
    gap: 16px;
  }

  .site-nav .nav-guide-menu,
  .site-nav .nav-dropdown-menu {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(18, 15, 13, 0.98);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.32);
  }

  .site-nav a,
  .nav-guide-toggle,
  .nav-dropdown-toggle {
    position: relative;
    font-size: 0.7rem;
  }

  .site-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: var(--amber);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 200ms ease;
  }

  .site-nav a:hover::after,
  .site-nav a[aria-current="page"]::after {
    transform: scaleX(1);
    transform-origin: left;
  }
}

@media (max-width: 920px) {
  .hero picture {
    width: 100%;
    opacity: 0.64;
    -webkit-mask-image: linear-gradient(0deg, #000 0%, #000 58%, transparent 100%);
    mask-image: linear-gradient(0deg, #000 0%, #000 58%, transparent 100%);
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(17, 14, 12, 0.92), rgba(17, 14, 12, 0.28));
  }

  .media-gallery {
    grid-auto-rows: 58px;
  }

  .media-item,
  .media-item:nth-child(7n + 1),
  .media-item:nth-child(7n + 4),
  .media-item:nth-child(7n + 5) {
    grid-column: span 6;
    grid-row: span 5;
  }

  .media-item:nth-child(5n + 1) {
    grid-column: span 12;
    grid-row: span 7;
  }
}

@media (max-width: 620px) {
  .header-inner,
  .section,
  .footer-inner,
  .hero-content {
    width: min(100% - 28px, var(--max));
  }

  .header-inner {
    min-height: 76px;
  }

  .brand strong {
    max-width: 260px;
    white-space: normal;
  }

  .brand span {
    display: none;
  }

  .site-nav {
    top: 76px;
  }

  .hero-content {
    padding-top: 128px;
  }

  .page-hero {
    min-height: 72svh;
  }

  .page-hero .section {
    padding-top: 150px;
    padding-bottom: 64px;
  }

  h1 {
    font-size: clamp(2.85rem, 14vw, 4.3rem);
  }

  h2 {
    font-size: clamp(2.2rem, 11vw, 3.35rem);
  }

  .section {
    padding: 76px 0;
  }

  .grid.two,
  .grid.three {
    gap: 24px;
  }

  .media-gallery {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 12px;
  }

  .media-item,
  .media-item:nth-child(n) {
    grid-column: 1;
    grid-row: auto;
    aspect-ratio: 4 / 5;
  }

  .media-item:nth-child(3n + 1) {
    aspect-ratio: 4 / 3;
  }

  .panel.featured {
    box-shadow: 14px 14px 0 var(--paper-deep);
  }

  .footer-inner {
    padding-top: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

