/* 中山文创非遗传承馆 官网样式
   色彩：宫墙朱、金、墨、纸。对标故宫博物院官网的克制与留白。 */
:root {
  --red: #9b2b22;
  --red-2: #b53a2c;
  --red-d: #7a1f18;
  --gold: #b48a45;
  --gold-l: #d8bd84;
  --ink: #1e1915;
  --ink-2: #4a413a;
  --ink-3: #7a6f64;
  --paper: #f6f0e4;
  --paper-2: #ece2cf;
  --line: #dccfb7;
  --indigo: #24405e;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --w: 1200px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.75; font-size: 16px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.wrap { width: min(var(--w), 100% - 48px); margin: 0 auto; }
.serif { font-family: var(--serif); }

/* 顶栏 */
.topbar { background: var(--ink); color: #d9cfbf; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 36px; gap: 16px; }
.topbar b { color: var(--gold-l); font-weight: 500; }
.topbar .lang a { margin-left: 18px; opacity: .85; }
.topbar .lang a:hover, .topbar .lang a.on { color: var(--gold-l); opacity: 1; }

/* 页头 */
.header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header .wrap { display: flex; align-items: center; height: 84px; gap: 28px; }
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.seal { width: 52px; height: 52px; background: var(--red); color: #f6e7cf; font-family: var(--serif); font-size: 18px; line-height: 1.05; display: grid; grid-template-columns: 1fr 1fr; place-items: center; padding: 6px; border-radius: 4px; box-shadow: inset 0 0 0 2px var(--red), inset 0 0 0 3px #e9cfa6; font-weight: 700; }
.brand-text strong { display: block; font-family: var(--serif); font-size: 21px; letter-spacing: .08em; }
.brand-text small { display: block; font-size: 11px; color: var(--ink-3); letter-spacing: .12em; text-transform: uppercase; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { white-space: nowrap; font-family: var(--serif); font-size: 17px; padding: 8px 14px; position: relative; color: var(--ink-2); }
.nav a::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 0; height: 2px; background: var(--red); transition: .25s; transform: translateX(-50%); }
.nav a:hover, .nav a.on { color: var(--red); }
.nav a.on::after, .nav a:hover::after { width: 22px; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: #fbf3e4; font-family: var(--serif); font-size: 16px; padding: 10px 22px; border-radius: 2px; letter-spacing: .1em; border: 0; cursor: pointer; transition: .2s; }
.btn:hover { background: var(--red-d); }
.btn.ghost { background: transparent; color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.btn.ghost:hover { background: var(--red); color: #fbf3e4; }
.btn.gold { background: var(--gold); }
.btn.gold:hover { background: #9a733a; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; font-size: 26px; color: var(--ink); cursor: pointer; }

/* 首页大图 */
.hero { position: relative; background: var(--red); color: #f8ead2; overflow: hidden; }
.hero .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s; display: flex; }
.hero .slide.on { opacity: 1; position: relative; }
.hero .slide .wrap { display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; min-height: 560px; gap: 40px; }
.hero .copy { display: flex; gap: 36px; align-items: flex-start; }
.hero .vtitle { writing-mode: vertical-rl; font-family: var(--serif); font-size: 54px; letter-spacing: .28em; line-height: 1.25; font-weight: 700; color: #fbefd8; text-shadow: 0 2px 0 rgba(0,0,0,.12); padding-left: 6px; }
.hero .side { padding-top: 12px; max-width: 300px; }
.hero .side .kicker { font-size: 13px; letter-spacing: .3em; color: var(--gold-l); }
.hero .side h2 { font-family: var(--serif); font-size: 26px; font-weight: 500; margin: 14px 0 16px; line-height: 1.5; }
.hero .side p { font-size: 15px; color: #ecd6b6; margin-bottom: 26px; }
.hero .art { color: var(--gold-l); }
.hero .art svg { width: 100%; height: auto; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 75% 40%, rgba(255,220,160,.16), transparent 60%), repeating-linear-gradient(90deg, rgba(0,0,0,.035) 0 2px, transparent 2px 9px); pointer-events: none; }
.hero .dots { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.hero .dots button { width: 28px; height: 3px; border: 0; background: rgba(248,234,210,.35); cursor: pointer; }
.hero .dots button.on { background: var(--gold-l); }
.hero-edge { height: 14px; background: url(../img/huiwen.svg) repeat-x center / auto 14px, var(--red-d); }

/* 参观信息条 */
.infobar { background: #fffaf0; border-bottom: 1px solid var(--line); }
.infobar .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.infobar .cell { padding: 26px 24px; border-left: 1px solid var(--line); display: flex; gap: 16px; align-items: center; }
.infobar .cell:first-child { border-left: 0; }
.infobar .ic { width: 44px; height: 44px; flex-shrink: 0; border: 1px solid var(--gold); color: var(--red); display: grid; place-items: center; font-family: var(--serif); font-size: 20px; transform: rotate(45deg); }
.infobar .ic span { transform: rotate(-45deg); }
.infobar small { display: block; font-size: 12px; color: var(--ink-3); letter-spacing: .15em; }
.infobar strong { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.infobar .cell.cta { justify-content: center; }

/* 区块标题 */
.sec { padding: 88px 0; }
.sec.alt { background: var(--paper-2); }
.sec-head { text-align: center; margin-bottom: 52px; }
.sec-head .en { font-size: 12px; letter-spacing: .4em; color: var(--gold); text-transform: uppercase; }
.sec-head h2 { font-family: var(--serif); font-size: 34px; font-weight: 600; letter-spacing: .2em; margin-top: 8px; display: inline-flex; align-items: center; gap: 22px; }
.sec-head h2::before, .sec-head h2::after { content: ""; width: 48px; height: 10px; background: url(../img/huiwen-ink.svg) repeat-x center / auto 10px; opacity: .55; }
.sec-head p { color: var(--ink-3); margin-top: 12px; font-size: 15px; }
.more { text-align: center; margin-top: 44px; }

/* 资讯 */
.news { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; }
.news-feature { background: var(--red); color: #f8ead2; padding: 40px; position: relative; overflow: hidden; min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end; }
.news-feature .bg { position: absolute; right: -40px; top: -40px; width: 300px; color: rgba(216,189,132,.28); }
.news-feature .date { font-size: 13px; letter-spacing: .2em; color: var(--gold-l); }
.news-feature h3 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin: 10px 0; line-height: 1.45; position: relative; }
.news-feature p { color: #ecd6b6; position: relative; }
.news-list li { list-style: none; display: flex; gap: 22px; padding: 20px 0; border-bottom: 1px dashed var(--line); }
.news-list li:first-child { padding-top: 0; }
.news-list .d { flex-shrink: 0; width: 76px; text-align: center; border-right: 1px solid var(--line); padding-right: 18px; font-family: var(--serif); }
.news-list .d b { display: block; font-size: 22px; color: var(--red); line-height: 1.2; }
.news-list .d span { font-size: 12px; color: var(--ink-3); }
.news-list h4 { font-family: var(--serif); font-size: 18px; font-weight: 600; line-height: 1.5; }
.news-list p { font-size: 14px; color: var(--ink-3); margin-top: 4px; }

/* 数字 */
.stats { background: var(--ink); color: #eadfcd; padding: 64px 0; position: relative; }
.stats::before, .stats::after { content: ""; position: absolute; left: 0; right: 0; height: 10px; background: url(../img/huiwen.svg) repeat-x center / auto 10px; opacity: .5; }
.stats::before { top: 14px; } .stats::after { bottom: 14px; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stats .n { font-family: var(--serif); font-size: 52px; color: var(--gold-l); line-height: 1.1; }
.stats .l { font-size: 14px; margin-top: 8px; letter-spacing: .1em; }
.stats .note { grid-column: 1 / -1; font-size: 12px; color: #8f8477; margin-top: 30px; }

/* 项目卡 */
.grid { display: grid; gap: 28px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fffaf0; border: 1px solid var(--line); padding: 30px 26px; position: relative; transition: .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -18px rgba(60,30,10,.35); border-color: var(--gold-l); }
.card::before { content: ""; position: absolute; inset: 6px; border: 1px solid transparent; pointer-events: none; transition: .25s; }
.card:hover::before { border-color: rgba(180,138,69,.35); }
.glyph { width: 76px; height: 76px; background: var(--red); color: #f8e7c8; font-family: var(--serif); font-size: 40px; display: grid; place-items: center; margin-bottom: 20px; box-shadow: inset 0 0 0 3px var(--red), inset 0 0 0 4px #e3c393; font-weight: 700; }
.glyph.ink { background: var(--ink); box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 4px var(--gold); color: var(--gold-l); }
.glyph.gold { background: var(--gold); box-shadow: inset 0 0 0 3px var(--gold), inset 0 0 0 4px #f3e2bd; color: #fff8ea; }
.card .cat { font-size: 12px; color: var(--gold); letter-spacing: .2em; }
.card h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; margin: 4px 0 10px; }
.card p { font-size: 14px; color: var(--ink-2); }
.tag { display: inline-block; font-size: 12px; padding: 1px 10px; border: 1px solid var(--red); color: var(--red); margin-top: 14px; }

/* 楼层 */
.floors { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); background: #fffaf0; }
.floor { padding: 44px; display: flex; gap: 28px; }
.floor + .floor { border-left: 1px solid var(--line); }
.floor .no { font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--red); writing-mode: vertical-rl; letter-spacing: .1em; }
.floor h3 { font-family: var(--serif); font-size: 24px; margin-bottom: 10px; }
.floor p { color: var(--ink-2); }

/* 国家级名录 */
.national li { list-style: none; display: grid; grid-template-columns: 54px 1fr auto; gap: 20px; align-items: center; padding: 20px 6px; border-bottom: 1px solid var(--line); }
.national .i { font-family: var(--serif); font-size: 26px; color: var(--gold); }
.national h4 { font-family: var(--serif); font-size: 19px; }
.national p { font-size: 14px; color: var(--ink-3); }
.national .c { font-size: 12px; padding: 2px 10px; background: var(--paper-2); color: var(--ink-2); }

/* 体验 */
.exp { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.exp .item { background: var(--red); color: #f8ead2; padding: 34px 22px 28px; text-align: center; position: relative; overflow: hidden; }
.exp .item::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(216,189,132,.45); pointer-events: none; }
.exp .item .gl { font-family: var(--serif); font-size: 58px; color: var(--gold-l); line-height: 1; }
.exp .item h4 { font-family: var(--serif); font-size: 18px; margin: 18px 0 4px; }
.exp .item span { font-size: 12px; color: #e7c9a2; letter-spacing: .1em; }
.exp-note { text-align: center; color: var(--ink-3); font-size: 14px; margin-top: 26px; }

/* 年历 */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 2px solid var(--red); }
.cal .m { padding: 26px 16px; border-right: 1px solid var(--line); background: #fffaf0; }
.cal .m:last-child { border-right: 0; }
.cal .m b { font-family: var(--serif); font-size: 22px; color: var(--red); display: block; }
.cal .m h4 { font-family: var(--serif); font-size: 16px; margin: 8px 0 6px; }
.cal .m p { font-size: 13px; color: var(--ink-3); }

/* 国际之友 */
.friends { background: var(--indigo); color: #e8e2d4; padding: 76px 0; position: relative; overflow: hidden; }
.friends .wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: center; }
.friends h2 { font-family: var(--serif); font-size: 34px; letter-spacing: .12em; color: #f4ead6; }
.friends .en { font-size: 13px; letter-spacing: .3em; color: var(--gold-l); text-transform: uppercase; margin-top: 8px; }
.friends p { font-size: 16px; }
.friends .rose { position: absolute; right: -120px; top: -120px; width: 420px; color: rgba(216,189,132,.12); }

/* 内页横幅 */
.pagehero { background: var(--red); color: #f8ead2; padding: 70px 0 64px; position: relative; overflow: hidden; }
.pagehero .rose { position: absolute; right: 4%; top: 50%; transform: translateY(-50%); width: 300px; color: rgba(216,189,132,.25); }
.pagehero .crumb { font-size: 13px; color: #e2c49b; letter-spacing: .1em; }
.pagehero h1 { font-family: var(--serif); font-size: 44px; letter-spacing: .25em; margin: 10px 0 8px; }
.pagehero .en { font-size: 13px; letter-spacing: .4em; color: var(--gold-l); text-transform: uppercase; }

/* 正文块 */
.prose { max-width: 820px; margin: 0 auto; }
.prose h3 { font-family: var(--serif); font-size: 24px; margin: 36px 0 12px; padding-left: 16px; border-left: 4px solid var(--red); }
.prose p { color: var(--ink-2); margin-bottom: 12px; }
.kv { display: grid; grid-template-columns: 120px 1fr; border-top: 1px solid var(--line); }
.kv > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.kv > div:nth-child(odd) { font-family: var(--serif); color: var(--red); font-size: 17px; }
.notice { background: #fffaf0; border: 1px solid var(--line); border-left: 4px solid var(--gold); padding: 18px 22px; color: var(--ink-2); font-size: 14px; margin-top: 24px; }

/* 文创 */
.shop .card { text-align: center; padding: 34px 20px; }
.shop .glyph { margin: 0 auto 18px; }

/* 页脚 */
.footer { background: var(--ink); color: #b5aa9a; padding: 64px 0 28px; font-size: 14px; }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h5 { font-family: var(--serif); color: #efe4d0; font-size: 17px; margin-bottom: 16px; font-weight: 500; }
.footer li { list-style: none; margin-bottom: 8px; }
.footer a:hover { color: var(--gold-l); }
.footer .brand-text strong { color: #f3e8d4; }
.footer .copy { grid-column: 1 / -1; border-top: 1px solid #3a322b; padding-top: 22px; margin-top: 20px; display: flex; justify-content: space-between; font-size: 12px; color: #8a7f71; }
.qr { width: 104px; height: 104px; background: #f6efe2; padding: 8px; color: var(--ink); display: grid; place-items: center; font-size: 12px; text-align: center; line-height: 1.4; }

/* 弹窗 */
.modal { position: fixed; inset: 0; background: rgba(20,14,10,.6); display: none; place-items: center; z-index: 100; padding: 20px; }
.modal.on { display: grid; }
.modal .box { background: var(--paper); max-width: 440px; width: 100%; padding: 40px 36px; text-align: center; position: relative; border-top: 4px solid var(--red); }
.modal .box h3 { font-family: var(--serif); font-size: 24px; margin-bottom: 12px; }
.modal .box p { color: var(--ink-2); font-size: 15px; margin-bottom: 8px; }
.modal .x { position: absolute; right: 14px; top: 10px; background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--ink-3); }

/* 进场动画 */
.rise { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s; }
.rise.in { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .nav a { padding: 8px 9px; font-size: 16px; }
  .header .btn { display: none; }
  .exp { grid-template-columns: repeat(3, 1fr); }
  .cal { grid-template-columns: repeat(4, 1fr); }
  .g4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 84px; left: 0; right: 0; background: var(--paper); flex-direction: column; padding: 8px 24px 20px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .hero .slide .wrap { grid-template-columns: 1fr; min-height: auto; padding: 48px 0 70px; gap: 24px; }
  .hero .vtitle { font-size: 38px; }
  .hero .art { max-width: 520px; }
  .infobar .wrap, .stats .wrap { grid-template-columns: 1fr 1fr; }
  .infobar .cell:nth-child(3) { border-left: 0; }
  .infobar .cell { border-top: 1px solid var(--line); }
  .stats .wrap { gap: 30px 0; }
  .news, .floors, .friends .wrap, .g2 { grid-template-columns: 1fr; }
  .floor + .floor { border-left: 0; border-top: 1px solid var(--line); }
  .g4, .g3 { grid-template-columns: 1fr 1fr; }
  .exp { grid-template-columns: 1fr 1fr; }
  .cal { grid-template-columns: 1fr 1fr; }
  .footer .wrap { grid-template-columns: 1fr 1fr; }
  .sec { padding: 64px 0; }
  .sec-head h2 { font-size: 28px; }
  .pagehero h1 { font-size: 34px; }
}
@media (max-width: 520px) {
  .topbar .info { display: none; }
  .brand-text strong { font-size: 18px; }
  .g4, .g3, .exp { grid-template-columns: 1fr 1fr; gap: 14px; }
  .card { padding: 22px 16px; }
  .glyph { width: 60px; height: 60px; font-size: 32px; }
  .floor { padding: 28px 22px; }
  .footer .wrap { grid-template-columns: 1fr; }
  .footer .copy { flex-direction: column; gap: 6px; }
  .national li { grid-template-columns: 40px 1fr; }
  .national .c { display: none; }
}
@media (prefers-reduced-motion: reduce) { .rise { opacity: 1; transform: none; } .hero .slide { transition: none; } }
