/* Base styles：课程中的重置、公共容器与 BEM 命名 */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root { color-scheme: dark; --gold: #f8d597; --cream: #e8dfc8; --muted: #c6b89f; --background: #090b0c; }
html { scroll-behavior: smooth; }
body { max-width: 1920px; margin: 0 auto; background: var(--background); color: var(--cream); font-family: Garamond, "Times New Roman", "Songti SC", serif; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; height: auto; }
button { border: 0; background: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
[id] { scroll-margin-top: 24px; }
.container { width: 92.5%; max-width: 1776px; margin: 0 auto; }
.skip-link { position: absolute; top: -80px; left: 16px; z-index: 10; padding: 12px; background: #000; }
.skip-link:focus { top: 10px; }
.button { border: 1px solid #b5a570; border-radius: 4px; background: #b5a570; color: #191916; padding: 8px 18px; }
/* Header：父元素 flex 布局，内部导航独立嵌套 */
.header { background: #080a17; }
.header__inner { min-height: 70px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 17px; white-space: nowrap; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.header__menu { margin-left: auto; padding: 10px; border: 1px solid #6c6655; }
.header__nav { display: none; flex-basis: 100%; order: 3; }
.header__nav--open { display: block; }
.header__links { display: flex; flex-direction: column; gap: 18px; padding: 12px 0; }
.header__links a:hover { color: var(--gold); }
.header__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.icon-button { padding: 5px; }
.icon-button img { width: 23px; height: 23px; object-fit: contain; }
.button--login { font: 600 12px Arial, sans-serif; padding: 5px 13px; }
/* Main content：移动端优先；桌面艺术展板按设计图比例定位 */
.hero { position: relative; aspect-ratio: 1920 / 1000; background: url("assets/dfc9826ac709879b1686ab74ef9c5ec762ea6c22.webp") center bottom / 100% auto no-repeat; }
.hero__title { position: absolute; left: 7.3%; top: 12%; font-size: clamp(25px, 5vw, 96px); line-height: 1.08; }
.hero__gallery { position: absolute; font-weight: bold; line-height: 1.05; }
.hero__gallery a { display: block; padding: 4px; transition: color .2s, background .2s; }
.hero__gallery a:hover { color: #fff; background: #1b160a77; }
.hero__gallery i { display: block; font-weight: normal; margin-top: 1.5em; }
.hero__gallery--bird { left: 72%; top: 28%; font-size: clamp(9px, 2.08vw, 40px); }
.hero__gallery--poetry { left: 57%; top: 36%; font-size: clamp(8px, 1.67vw, 32px); }
.hero__gallery--figure { left: 48%; top: 42%; font-size: clamp(7px, 1.46vw, 28px); }
.hero__gallery--geometric { left: 41%; top: 48%; font-size: clamp(6px, 1.04vw, 20px); width: 6%; }
.hero__gallery--vessel { left: 36%; top: 49%; font-size: clamp(5px, .94vw, 18px); width: 5%; }
.hero__prompt { position: absolute; bottom: 6%; width: 100%; text-align: center; font-size: clamp(10px, 1.67vw, 32px); color: var(--muted); }
.patterns { background: url("assets/98d52f5617563bf9cb16980898e9696c927885cd.webp") center / cover; padding: 45px 5%; }
.patterns__intro { color: var(--muted); font-size: 14px; max-width: 240px; }
.patterns__intro p + p { margin-top: 20px; }
.patterns__heading { text-align: center; margin: 30px 0; color: var(--gold); }
.patterns__heading h2 { font-size: clamp(44px, 6.67vw, 128px); font-weight: normal; line-height: .85; margin-bottom: 28px; }
.patterns__heading p { margin-top: 8px; font-size: clamp(15px, 1.67vw, 32px); }
.patterns__list { display: grid; gap: 16px; }
.pattern-card { width: 100%; transition: transform .25s; }
.pattern-card:hover { transform: translateY(-6px); }
.pattern-card img { width: 100%; }
.patterns__closing { color: var(--muted); margin-top: 30px; font-size: 14px; }
.exhibitions { padding: 50px 0 85px; background: url("assets/98d52f5617563bf9cb16980898e9696c927885cd.webp") center / cover; }
.exhibitions__title { color: var(--gold); font-size: clamp(24px, 1.875vw, 36px); margin-bottom: 35px; }
.exhibitions__list { display: grid; gap: 35px; }
.exhibition__button { display: block; width: 100%; text-align: center; }
.exhibition__image { width: 100%; aspect-ratio: 1.5; object-fit: cover; border-radius: 12px; transition: filter .2s; }
.exhibition__button:hover .exhibition__image { filter: brightness(1.15); }
.exhibition h3 { font-size: clamp(17px, 1.67vw, 32px); font-weight: normal; color: var(--gold); padding: 18px 0; }
.exhibition h3 span { margin-left: 8px; }
.exhibition__media { display: block; position: relative; }
.exhibition__play { position: absolute; top: 50%; left: 50%; width: 24%; transform: translate(-50%, -50%); }
/* Footer：设计源文件中的页脚合成素材，配有真实可用的导航 */
.footer { position: relative; }
.footer__art { width: 100%; }
.footer__links { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; padding: 18px; font-size: 13px; color: var(--muted); }
/* Dialog / Search：原生 JavaScript 只处理交互，不参与主体页面生成 */
.dialog { width: min(900px, 92vw); max-height: 88vh; margin: auto; padding: 36px; border: 1px solid #756445; background: #11120f; color: var(--cream); }
.dialog::backdrop { background: #000c; }
.dialog h2 { padding-right: 28px; margin-bottom: 24px; font-size: 28px; font-weight: normal; color: var(--gold); }
.dialog__close { position: absolute; right: 12px; top: 6px; padding: 8px; font-size: 30px; }
.dialog__image { max-height: 58vh; margin: auto; object-fit: contain; }
.dialog__description { line-height: 1.8; margin-top: 20px; }
.dialog--search { max-width: 650px; }
.search { display: flex; gap: 10px; margin-top: 12px; }
.search input { min-width: 0; flex: 1; padding: 12px; border: 1px solid #756445; background: #080a09; color: #fff; }
.search__results { display: grid; gap: 15px; margin-top: 25px; }
.search__results button { text-align: left; padding: 8px; color: var(--gold); }
@media (min-width: 768px) {
  .patterns__list { grid-template-columns: repeat(2, 1fr); }
  .exhibitions__list { grid-template-columns: repeat(6, 1fr); gap: 35px 5%; }
  .exhibitions__list > li { grid-column: span 2; }
  .exhibitions__list > li:nth-child(4) { grid-column: 2 / span 2; }
  .exhibitions__list > li:nth-child(n+4) .exhibition__image { aspect-ratio: 1.78; }
}
@media (min-width: 1000px) {
  .header__inner { height: clamp(55px, 4.167vw, 80px); min-height: 0; padding: 0; flex-wrap: nowrap; gap: 4%; }
  .brand { font-size: clamp(12px, 1.04vw, 20px); gap: 12px; }
  .brand img { width: clamp(40px, 3.7vw, 71px); height: auto; }
  .header__menu { display: none; }
  .header__nav { display: block; flex-basis: auto; order: 0; }
  .header__links { flex-direction: row; align-items: center; gap: 22px; padding: 0; font-size: clamp(12px, 1.04vw, 20px); }
  .header__links a { white-space: nowrap; }
  .header__actions { gap: 10px; }
  .patterns { position: relative; aspect-ratio: 1920 / 1080; padding: 0; }
  .patterns__intro { position: absolute; left: 2.76%; top: 3.4%; max-width: 16.25%; font-size: clamp(13px, 1.25vw, 24px); }
  .patterns__intro p + p { margin-top: 6%; }
  .patterns__heading { position: absolute; left: 31.5%; top: 29.3%; width: 38%; margin: 0; z-index: 1; }
  .patterns__heading h2 { margin-bottom: 7%; }
  .patterns__item { position: absolute; }
  .patterns__item--bird { left: 2.76%; top: 29.35%; width: 33.07%; }
  .patterns__item--poetry { left: 50.99%; top: 1.48%; width: 31.25%; }
  .patterns__item--figure { left: 68.07%; top: 31.85%; width: 28.85%; }
  .patterns__item--geometric { left: 24.22%; top: 62.31%; width: 24.58%; }
  .patterns__item--vessel { left: 57.13%; top: 62.31%; width: 26.51%; }
  .patterns__closing { position: absolute; left: 2.76%; bottom: 5%; font-size: clamp(13px, 1.25vw, 24px); }
  .exhibitions { padding-top: 3%; padding-bottom: 7%; }
  .exhibitions__title { margin-bottom: 3%; }
  .footer__links { position: absolute; bottom: 0; width: 100%; background: #080909d9; padding: 10px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
