// content.jsx — 中英双语内容层
// 约定:标题类中英混排(「The Crown of 华夏」是招牌,两种语言下都保留);
//       正文 / 标签 / 导航随 lang 整体切换。
// 展厅名、展览名、藏品名属专有名词,两种语言下均保留中文本名,英文侧补注释。
// 标记语法: | = 换行(<br/>)   *…* = <span class="em">…</span>

const T = {

  // 21 件已完成三维数字化的藏品。hero:true 的 8 件上首屏,全部进典藏库。
  // 说明只取藏品名可直接推出的部分(材质/产地/工艺);年代未著录,一律不写。
  objects: [
    { slug:'fengguan', hero:true, zh:'鎏金点翠双龙戏珠八仙凤冠', zhSub:'鎏金 · 点翠 · 双龙戏珠 · 八仙',
      en:'Phoenix crown with dragons and the Eight Immortals', enSub:'Gilding · kingfisher feather' },
    { slug:'guguguan', hero:true, zh:'银镶珊瑚孔雀石顾姑冠', zhSub:'银 · 珊瑚 · 孔雀石 · 2 450 克',
      en:'Boqta with coral and malachite', enSub:'Silver · coral · malachite · 2,450 g' },
    { slug:'toukui', hero:true, zh:'鎏金錾刻凤龙纹珊瑚顶插双龙羽头盔', zhSub:'鎏金 · 錾刻 · 珊瑚顶',
      en:'Gilt helmet with coral finial and dragon plumes', enSub:'Gilding · chased relief · coral finial' },
    { slug:'prussian', hero:true, zh:'普鲁士军盔', zhSub:'欧洲 · 军用头盔',
      en:'Prussian Pickelhaube', enSub:'Europe · military helmet' },
    { slug:'miao', hero:true, zh:'贵州台江盘金绣苗族童帽', zhSub:'贵州台江 · 盘金绣',
      en:'Miao child’s hat, couched gold embroidery', enSub:'Taijiang, Guizhou · couched gold thread' },
    { slug:'dior', hero:true, zh:'Christian Dior 羽毛包头帽', zhSub:'当代时装 · 羽毛',
      en:'Christian Dior feathered turban', enSub:'Contemporary couture · feather' },
    { slug:'hutou', hero:true, zh:'虎头帽', zhSub:'民间 · 童帽',
      en:'Tiger-head child’s hat', enSub:'Folk · child’s hat' },
    { slug:'caomao', hero:true, zh:'手编细麦秆草帽', zhSub:'细麦秆手编',
      en:'Hand-plaited wheat-straw hat', enSub:'Fine wheat straw, hand-plaited' },

    { slug:'yin-longfeng', zh:'银点翠龙凤冠', zhSub:'银 · 点翠 · 龙凤',
      en:'Silver phoenix-and-dragon crown', enSub:'Silver · kingfisher feather' },
    { slug:'yin-longfeng2', zh:'银点翠龙凤冠 · 之二', zhSub:'银 · 点翠 · 龙凤',
      en:'Silver phoenix-and-dragon crown, second example', enSub:'Silver · kingfisher feather' },
    { slug:'dianzi-huahui', zh:'鎏金点翠双龙花卉钿子', zhSub:'鎏金 · 点翠 · 双龙花卉',
      en:'Gilt dianzi with dragons and flowers', enSub:'Gilding · kingfisher feather' },
    { slug:'dianzi-dujin', zh:'银镀金点翠花卉纹钿子', zhSub:'银镀金 · 点翠 · 花卉纹',
      en:'Silver-gilt dianzi with floral kingfisher inlay', enSub:'Silver gilt · kingfisher feather' },
    { slug:'dianzi-shaolan', zh:'烧蓝嵌宝石花卉银饰钿子', zhSub:'银 · 烧蓝 · 嵌宝石',
      en:'Silver dianzi with enamel and inset gemstones', enSub:'Silver · enamel · gemstones' },
    { slug:'dianzi-liyu', zh:'点翠双龙鲤鱼牡丹钿子', zhSub:'点翠 · 双龙 · 鲤鱼牡丹',
      en:'Dianzi with dragons, carp and peony', enSub:'Kingfisher feather' },
    { slug:'falang-jia', zh:'清宫廷画珐琅冠架', zhSub:'画珐琅 · 冠架 · 仿制品',
      en:'Painted-enamel hat stand, Qing court', enSub:'Painted enamel · reproduction' },
    { slug:'qihua-jia', zh:'漆画花瓶纹帽架', zhSub:'漆画 · 花瓶纹 · 帽架',
      en:'Lacquered hat stand with vase motif', enSub:'Lacquer painting · hat stand' },
    { slug:'diaohua-jia', zh:'雕花木帽架', zhSub:'木 · 雕花 · 帽架',
      en:'Carved wooden hat stand', enSub:'Wood · carved' },
    { slug:'ouzhou-jia', zh:'欧洲木质可调帽架', zhSub:'欧洲 · 木质 · 可调帽楦',
      en:'European adjustable wooden hat block', enSub:'Europe · wood · adjustable' },
    { slug:'celiangqi', zh:'头部测量器', zhSub:'制帽工具 · 头型测量',
      en:'Conformateur, head-measuring device', enSub:'Hatmaking tool' },
    { slug:'gainian', zh:'概念帽饰', zhSub:'当代 · 概念创作',
      en:'Concept headpiece', enSub:'Contemporary' },
    { slug:'c20230', zh:'C20230', zhSub:'编号待著录',
      en:'C20230', enSub:'Accession code, catalogue entry pending' }
  ],

  // 典藏库:21 件可转动藏品
  lib: {
    zh: { kicker:'三维典藏', title:'21 件，可以转着看',
          lede:'这批藏品已完成三维扫描。点开任意一件，用鼠标或手指拖动，从任何角度看它——包括在展柜前看不到的背面与顶面。',
          open:'展开全部 21 件', close:'收起',
          prev:'上一件', next:'下一件', esc:'关闭',
          loading:'正在载入', hint:'拖动旋转', noThumb:'暂无预览图' },
    en: { kicker:'The collection in 3D', title:'Twenty-one objects, yours to turn',
          lede:'These pieces have been 3D-scanned. Open any one and drag it with a mouse or finger to see it from any angle — including the back and the crown, which no vitrine will show you.',
          open:'Show all 21', close:'Collapse',
          prev:'Previous', next:'Next', esc:'Close',
          loading:'Loading', hint:'Drag to rotate', noThumb:'No preview' }
  },

  // 明信片:访客把文物转到喜欢的角度,那个角度就是明信片正面
  card: {
    zh: {
      open: '寄一张明信片',
      title: '把这一面寄出去',
      lede: '你现在看到的角度,就是明信片的正面。转到满意为止,再写一段话。',
      recut: '用当前角度重取',
      msgLabel: '写给他的话(会印在卡上)',
      msgPh: '在南通富美帽饰博物馆,我看见一顶……',
      fromLabel: '你的署名',
      fromPh: '你的名字',
      toLabel: '收件人邮箱',
      toPh: 'name@example.com',
      send: '寄出',
      sending: '正在寄出…',
      sent: '已寄出。对方会在几分钟内收到。',
      download: '保存图片',
      share: '分享 · 发给他',
      sharing: '正在准备…',
      shared: '已交给分享面板',
      longpress: '在手机上也可以长按上面的图片保存',
      mailSoon: '邮寄到对方邮箱的功能正在开通中。现在可以先保存或直接分享,效果是一样的。',
      guide: '转到你喜欢的角度 → 选一种版式 → 保存或分享',
      close: '关闭',
      errMail: '请填写一个能收到信的邮箱',
      errMsg: '还没写内容',
      errNet: '寄送失败,请稍后再试(或先保存图片)',
      offline: '邮件通道尚未开通,可先保存图片自行发送',
      paper: '未来可在馆内领取纸质版',
      styleLabel: '版式',
      stylePaper: '纸本',
      styleRiso: '珂罗版',
      styleInk: '水墨',
      styleDuo: '单色印刷',
      count: '字'
    },
    en: {
      open: 'Send a postcard',
      title: 'Send this view',
      lede: 'The angle you are looking at is the front of the card. Turn it until it feels right, then write.',
      recut: 'Use current angle',
      msgLabel: 'Your message (printed on the card)',
      msgPh: 'At the Foremost Hats Museum in Nantong, I saw a…',
      fromLabel: 'From',
      fromPh: 'Your name',
      toLabel: 'Recipient email',
      toPh: 'name@example.com',
      send: 'Send',
      sending: 'Sending…',
      sent: 'Sent. It should arrive within a few minutes.',
      download: 'Save image',
      share: 'Share',
      sharing: 'Preparing…',
      shared: 'Handed to your share sheet',
      longpress: 'On a phone you can also press and hold the image to save it',
      mailSoon: 'Sending by email is being switched on. For now, save or share the card — it works just as well.',
      guide: 'Turn it to the angle you like → pick a format → save or share',
      close: 'Close',
      errMail: 'Please enter a valid email address',
      errMsg: 'Your message is still empty',
      errNet: 'Could not send — please try again, or save the image',
      offline: 'Email delivery is not switched on yet — you can save the image and send it yourself',
      paper: 'A printed edition will be available at the museum',
      styleLabel: 'Format',
      stylePaper: 'Paper',
      styleRiso: 'Risograph',
      styleInk: 'Ink wash',
      styleDuo: 'Duotone',
      count: 'chars'
    }
  },

  nav: {
    zh: { about: '关于', exhibitions: '展览', collection: '典藏', gallery: '影像', visit: '参观', festival: '920', home: '首页', open: '打开菜单', close: '关闭菜单' },
    en: { about: 'About', exhibitions: 'Exhibitions', collection: 'Collection', gallery: 'Gallery', visit: 'Visit', festival: '920', home: 'Home', open: 'Open menu', close: 'Close menu' }
  },

  hero: {
    zh: {
      eyebrow: '南通 · 一座关于帽子的博物馆',
      nowLabel: '在展',
      now: '观帽 —— 一场关于头顶之上千年风物的展览',
      collLabel: '典藏',
      coll: '自元代顾姑冠、明清朝冠，至近代手编麦秆礼帽。',
      hoursLabel: '开放',
      hours: '全年无休 · 09:00 – 18:00',
      place: '南通 · Nantong',
      scroll: '向下',
      mast: '观帽 · 基本陈列',
      hint: '拖动旋转 · 点选切换',
      loading: '正在载入三维扫描',
      objLabel: '馆藏三维'
    },
    en: {
      eyebrow: 'Est. Nantong · A Museum of Headwear',
      nowLabel: 'Now Showing',
      now: '观帽 · A Reading of Crowns — a millennium of what we wear above the head',
      collLabel: 'Collection',
      coll: 'From Yuan-dynasty boqta and Qing court hats to hand-plaited wheat-straw fedoras.',
      hoursLabel: 'Hours',
      hours: 'Open daily · 09:00 – 18:00',
      place: '南通 · Nantong',
      scroll: 'Scroll',
      mast: '观帽 · A Reading of Crowns',
      hint: 'Drag to rotate · tap to switch',
      loading: 'Loading 3D scan',
      objLabel: 'In 3D'
    }
  },

  // 页码(报刊页眉「02 / 展览」)
  pages: {
    zh: { home: '首页', festival: '920 帽子节', exhibitions: '展览', collection: '典藏', gallery: '影像', about: '关于', visit: '参观', site: 'hatsmuseum.org' },
    en: { home: 'Front page', festival: '920 Festival', exhibitions: 'Exhibitions', collection: 'Collection', gallery: 'Inside', about: 'About', visit: 'Visit', site: 'hatsmuseum.org' }
  },

  // 首页首屏之下的「头版」
  // 首页轮播:六张外观 / 建筑实拍(园区美图合集 + 顾姐严选),图注只写画面里看得到的
  carousel: {
    zh: {
      h1: '南通市富美帽饰博物馆',
      sub: '中国首座帽饰专题博物馆 · 免费开放 · 全年无休 09:00–18:00',
      cta1: '920 中国帽子节', cta2: '馆藏三维',
      prev: '上一张', next: '下一张',
      slides: { 'pond-day': '博艺楼 · 水院', 'pond-dusk': '博艺楼 · 暮色', 'aerial': '帽饰文创园 · 航拍', 'tree': '老树 · 博艺楼', 'sky': '博艺楼 · 立面', 'columns': '柱廊 · 仰望' }
    },
    en: {
      h1: 'Nantong Foremost Hats Museum',
      sub: 'China’s first museum of headwear · free admission · open daily 09:00–18:00',
      cta1: '920 China Hat Festival', cta2: 'Collection in 3D',
      prev: 'Previous', next: 'Next',
      slides: { 'pond-day': 'The Boyi Building over the water', 'pond-dusk': 'Dusk', 'aerial': 'The Hat Creative Park from above', 'tree': 'The old tree and the Boyi Building', 'sky': 'The façade', 'columns': 'Looking up through the colonnade' }
    }
  },

  // 首页第二格:920 倒计时(日历天,北京时间)
  count: {
    zh: { label: '第五届 920 中国帽子节', days: '天', today: '就是今天', past: '已于 9 月 20 日举行', date: '2026 年 9 月 20 日 · 周日 · 南通', line: '主题、场地与嘉宾即将公布。', more: '920 专页', share: '分享', copied: '链接已复制', dialNow: '今天', dialTarget: '9·20', editions: '2014 · 2015 · 2018 · 2023 · 2026' },
    en: { label: 'The fifth 920 China Hat Festival', days: 'days', today: 'It is today', past: 'Held on 20 September', date: 'Sunday, 20 September 2026 · Nantong', line: 'Theme, venue and guests to be announced.', more: 'The 920 page', share: 'Share', copied: 'Link copied', dialNow: 'today', dialTarget: '9·20', editions: '2014 · 2015 · 2018 · 2023 · 2026' }
  },

  front: {
    zh: {
      folio: '南通 · 全年无休 09:00–18:00',
      festLabel: '第五届 920 中国帽子节 · 2026',
      festTitle: '9 月 20 日，|帽子的节日回来了。',
      festRunin: '2026 年 9 月 20 日 · 南通。',
      festBody: '孙建华 2014 年发起的中国帽子节，此后于 2015、2018、2023 年再办三届；今年第五届在南通举行，主题、场地与嘉宾即将公布。',
      days: '天后开幕', today: '今天开幕', past: '已于 2026 年 9 月 20 日举行',
      festMore: '920 专页',
      onLabel: '在展',
      onMore: '全部展览',
      quote: '「一顶高级帽子，从本质上讲不是帽子，而是一种人生态度。」',
      quoteBy: '—— 馆内展墙',
      idxLabel: '目录',
      idx: [
        { k: '典藏', v: '21 件三维扫描藏品，可全角度转动', href: '/collection' },
        { k: '影像', v: '走进展厅', href: '/gallery' },
        { k: '关于', v: '一份私人收藏，向公众开启', href: '/about' },
        { k: '参观', v: '免费开放 · 全年无休 09:00–18:00', href: '/visit' }
      ]
    },
    en: {
      folio: 'Nantong · Open daily 09:00–18:00',
      festLabel: 'The fifth 920 China Hat Festival · 2026',
      festTitle: 'On 20 September,|the hat has its day again.',
      festRunin: '20 September 2026 · Nantong.',
      festBody: 'Initiated by Jeffrey Sun in 2014 and staged again in 2015, 2018 and 2023, the China Hat Festival returns to Nantong this year for its fifth edition. Programme, venue and guests to be announced.',
      days: 'days to go', today: 'Opens today', past: 'Held on 20 September 2026',
      festMore: 'The 920 page',
      onLabel: 'Now showing',
      onMore: 'All exhibitions',
      quote: '“The substance that makes a hat noble is essentially not the hat itself, but the life attitude of the wearer.”',
      quoteBy: '— from the gallery wall',
      idxLabel: 'Index',
      idx: [
        { k: 'Collection', v: '21 objects scanned in 3D, turn them any way you like', href: '/collection' },
        { k: 'Inside', v: 'Walk the galleries', href: '/gallery' },
        { k: 'About', v: 'A private collection, turned public', href: '/about' },
        { k: 'Visit', v: 'Free · open daily 09:00–18:00', href: '/visit' }
      ]
    }
  },

  // 920 中国帽子节 —— 事实来源:
  //  · 四届(2014/2015/2018/2023)= 孙建华 2023 年访谈原话「我们公司…2014、2015、2018和2023年主办了四届“中国帽子节”」;
  //    2026 年《凤凰艺术》报道亦作「主办四届」
  //  · 引言 = 《管理者文集》孙建华原文
  //  · 2026 年 9 月 20 日 = 本届日期;「第五届」与「南通」= 2026-09-05 王晨锡确认;主题、场地、嘉宾以官方公布为准,站上不写
  fest: {
    zh: {
      folio: '第五届 920 中国帽子节 · 2026',
      kicker: '920 · China Hat Festival',
      name: '第五届中国帽子节',
      date: '2026 年 9 月 20 日 · 周日 · 南通',
      days: '天后开幕', today: '今天开幕', past: '已于 2026 年 9 月 20 日举行',
      label: '节日',
      title: '把爱帽的人，|聚在一起。',
      runin: '2026 年 9 月 20 日（周日）· 南通。',
      p1: '「中国帽子节」由本馆创办人孙建华发起：2014 年首届，此后于 2015、2018、2023 年再办三届——设计师、匠人和爱戴帽子的人，为一顶帽子聚在一起。2026 年 9 月 20 日，第五届在南通举行。',
      p2: '本届的主题、场地与嘉宾，将在本页与创办人个人站陆续公布。',
      quote: '「我们举办 920 帽子节，把一批爱美爱帽的人集聚在一起，而这些人会带来更多的爱帽之人，星星之火可以燎原。」',
      quoteBy: '—— 孙建华，《管理者文集》',
      histLabel: '历届',
      hist: [['2014', '首届中国帽子节'], ['2015', '第二届'], ['2018', '第三届'], ['2023', '第四届'], ['2026', '第五届 · 9 月 20 日 · 南通']],
      figCap: '第四届中国帽子节现场 · 2023',
      initiator: '发起人', initiatorName: '孙建华（帽子哥）', initiatorHref: 'https://jeffreysuns.com/#festival',
      visitLabel: '来馆', visitText: '免费开放 · 全年无休 09:00–18:00 · 崇川区新康路 98 号'
    },
    en: {
      folio: 'The fifth 920 China Hat Festival · 2026',
      kicker: '920 · 中国帽子节',
      name: 'The Fifth China Hat Festival',
      date: 'Sunday, 20 September 2026 · Nantong',
      days: 'days to go', today: 'Opens today', past: 'Held on 20 September 2026',
      label: 'Festival',
      title: 'Bringing hat-lovers|together.',
      runin: 'Sunday, 20 September 2026 · Nantong.',
      p1: 'The China Hat Festival was initiated by the museum’s founder, Jeffrey Sun: a first edition in 2014, then again in 2015, 2018 and 2023 — designers, makers and people who simply love wearing hats, gathered for the hat. On 20 September 2026 the fifth edition takes place in Nantong.',
      p2: 'This year’s theme, venue and guests will be announced here and on the founder’s own site.',
      quote: '“We hold the 920 Hat Festival to bring together people who love beauty and love hats — and they will bring more hat-lovers with them. A single spark can start a prairie fire.”',
      quoteBy: '— Jeffrey Sun, Collected Writings for Managers',
      histLabel: 'Editions',
      hist: [['2014', 'The first China Hat Festival'], ['2015', 'Second edition'], ['2018', 'Third edition'], ['2023', 'Fourth edition'], ['2026', 'Fifth edition · 20 September · Nantong']],
      figCap: 'The fourth China Hat Festival · 2023',
      initiator: 'Initiator', initiatorName: 'Jeffrey Sun (Hat Brother)', initiatorHref: 'https://jeffreysuns.com/#festival',
      visitLabel: 'Visit', visitText: 'Free admission · open daily 09:00–18:00 · 98 Xinkang Road, Chongchuan, Nantong'
    }
  },

  about: {
    zh: {
      num: '02 / 关于',
      label: '关于本馆',
      dtCity: '所在', dtMember: '资质', dtFounded: '成立',
      metaFounded: '2014 年 9 月揭牌 · 2019 年 6 月备案（非国有博物馆）',
      founderQuote: '「一顶一顶做帽子。若只看帽子，一辈子也做不好帽子。」',
      founderBy: '—— 孙建华，创办人',
      founderLink: '创办人个人站 jeffreysuns.com',
      caption: '为那些戴在头顶之物，以及它们之下承载的世界，造一处居所。',
      metaCity: '江苏 · 南通',
      metaMember: '中国博物馆协会会员单位',
      h2: '一份私人收藏，|向*公众*|开启。',
      p1: '南通富美帽饰博物馆位于江苏南通，是中国首座专注帽饰文化的专题博物馆，由企业家孙建华历经三十余年私人收藏发起。馆藏涵盖元代顾姑冠、明清冠帽、近代手编草帽，以及来自欧亚多国的礼仪头饰与当代设计师作品。',
      p2: '近两千平方米的展陈空间以「数字魔墙」、沉浸式场景与智慧导览串联，让清代官帽的翎羽与欧洲礼帽并肩，苗族银冠的璀璨与当代设计的前卫呼应。',
      p3: '我们收藏、修护、策展；与学者、匠人和当代设计师协作；并向愿意认真对待「衣冠」与「礼仪」之别的品牌开放馆藏档案。',
      p4: '从制帽人到史学者，从朝堂到通勤——这座博物馆属于每一个曾在镜前驻足、把什么戴上头顶的人。'
    },
    en: {
      num: '02 / About',
      label: 'About the museum',
      dtCity: 'Where', dtMember: 'Member', dtFounded: 'Founded',
      metaFounded: 'Opened September 2014 · registered June 2019 (non-state museum)',
      founderQuote: '“One hat at a time. Look only at the hat, and you will never make a good one.”',
      founderBy: '— Jeffrey Sun, founder',
      founderLink: 'The founder’s site, jeffreysuns.com',
      caption: 'A house for the things we wear above the head, and the worlds they hold below.',
      metaCity: 'Nantong · Jiangsu',
      metaMember: 'Member, Chinese Museums Association',
      h2: 'A private|collection,|turned *public*.',
      p1: 'Founded by the entrepreneur and collector Jeffrey Sun over more than three decades of private collecting, the Nantong Foremost Hats Museum is China’s first museum devoted to headwear culture — Yuan-dynasty boqta, Ming and Qing court hats, hand-plaited straw boaters, ceremonial headdresses from across Eurasia, and the work of contemporary designers.',
      p2: 'A near-2,000 m² display space, threaded by digital walls, immersive settings and smart guidance, sets the plume of a Qing official’s hat beside a European topper, and the silver crown of a Miao bride beside the edge of contemporary design.',
      p3: 'We collect, conserve, and stage exhibitions; we work with scholars, craftspeople and contemporary designers; and we license the museum’s archive to brands who want to think seriously about the line between dress and ceremony.',
      p4: 'From hatmaker to historian, from courtier to commuter — the museum is for anyone who has ever paused, in front of a mirror, to put something on their head.'
    }
  },

  exh: {
    zh: {
      num: '03 / 展览',
      label: '展览',
      title: '正在展出的，|与*即将到来*的。',
      items: [
        { h: '观帽 —— 一场关于冠冕的阅读', runin: '基本陈列 · 常设。', body: '分序厅、一代昭度、世界大同、巧手天工、百工志业、羽毛厅、时尚庞儿、富美创意八个展区展开。', img: 'assets/interior-arch.jpg', alt: '观帽 基本陈列入口', cap: '基本陈列入口' },
        { h: '101 —— 国际帽饰设计师创作集萃', runin: '特展。', body: '为未来收藏今天。', img: 'assets/exh-101.jpg', alt: '101 国际帽饰设计师创作集萃', cap: '101 特展' },
        { h: '浮翠鎏金 —— 点翠大展', runin: '特展。', body: '无点翠，不凤冠。', img: 'assets/exh-diancui.jpg', alt: '浮翠鎏金 点翠大展', cap: '点翠大展' },
        { h: '博艺楼 · FAD book house', runin: '图书馆分馆。', body: '帽饰艺术与设计。' },
        { h: '《移动花园》', runin: '公共艺术。', body: '唐承华装置作品。' },
        { h: '博物馆商店与创意工坊', runin: '文创区。', body: '' },
        { h: '草帽展 · 青年画家联展', runin: '临展。', body: '详情以馆内公告为准。' }
      ],
      note: '展期与票务以馆内公告为准。'
    },
    en: {
      num: '03 / Exhibitions',
      label: 'Exhibitions',
      title: 'What is on,|and what is *coming*.',
      items: [
        { h: '观帽 — A Reading of Crowns', runin: 'Permanent display.', body: 'Across eight galleries: 序 · 一代昭度 · 世界大同 · 巧手天工 · 百工志业 · 羽毛厅 · 时尚庞儿 · 富美创意.', img: 'assets/interior-arch.jpg', alt: 'Entrance to the permanent display', cap: 'Entrance to the permanent display' },
        { h: '101 — An Anthology of International Milliners', runin: 'Special exhibition.', body: 'Collecting today, for tomorrow.', img: 'assets/exh-101.jpg', alt: '101 exhibition', cap: 'The 101 exhibition' },
        { h: '浮翠鎏金 — The Kingfisher-Feather Crown', runin: 'Special exhibition.', body: 'No diancui, no phoenix crown.', img: 'assets/exh-diancui.jpg', alt: 'Kingfisher-feather headdress exhibition', cap: 'The diancui exhibition' },
        { h: 'FAD Book House', runin: 'Library branch.', body: 'Headwear art and design.' },
        { h: 'A Moving Garden', runin: 'Public art.', body: 'An installation by Tang Chenghua.' },
        { h: 'Museum shop & creative studio', runin: 'Shop.', body: '' },
        { h: 'Straw Hat Show · Young Painters', runin: 'Temporary.', body: 'See the on-site notice for dates.' }
      ],
      note: 'Dates and admission as posted on site.'
    }
  },
  coll: {
    zh: {
      num: '04 / 典藏',
      label: '典藏',
      threeLabel: '三维数字化',
      h2: '来自馆藏的|*精选*之物。',
      kicker: '精选藏品',
      leadTitle: '夏朝冠 —— *清代夏季朝冠*',
      leadP: '笠形帽胎覆朱纬红缨，顶承鎏金累丝顶座与顶珠。清代冠服制度里，夏朝冠为夏季朝会所戴，顶珠的材质与色泽即是佩戴者品级的凭证。',
      dtEra: '年代',
      ddEra: '清代（1636—1912）',
      dtOn: '展区',
      ddOn: '观帽 · 基本陈列',
      quote: '「一顶一顶做帽子。若只看帽子，一辈子也做不好帽子。」',
      quoteBy: '— 孙建华，创办人',
      side: '基本陈列「观帽」分序厅、一代昭度、世界大同、巧手天工、百工志业、羽毛厅、时尚庞儿、富美创意等展区展开。部分重点藏品已完成三维数字化，可在线全角度观看。',
      a1: '银镶珊瑚孔雀石顾姑冠', a1k: '顾姑冠', a1m1: '银 · 珊瑚 · 孔雀石', a1m2: '2 450 克',
      a2: '手编细麦秆草帽', a2k: '草编', a2m1: '细麦秆手编', a2m2: '近代',
      a3: '夏朝冠', a3k: '朝冠', a3m1: '清代', a3m2: '朱纬 · 鎏金顶座'
    },
    en: {
      num: '04 / Collection',
      label: 'Collection',
      threeLabel: 'Digitised in 3D',
      h2: 'Selected *objects*|from the archive.',
      kicker: 'Featured Object',
      leadTitle: '夏朝冠 — A Qing *summer court hat*',
      leadP: 'A conical crown veiled in red silk floss, topped by a gilt filigree finial and its finial bead. Under Qing dress code the summer court hat was worn for warm-weather audiences — and the material and colour of that bead declared the wearer’s rank.',
      dtEra: 'Era',
      ddEra: 'Qing dynasty (1636—1912)',
      dtOn: 'On view',
      ddOn: '观帽 · Permanent display',
      quote: '“One hat at a time. Look only at the hat, and you will never make a good one.”',
      quoteBy: '— Jeffrey Sun, founder',
      side: 'The permanent display 观帽 unfolds across eight galleries. Selected objects have been digitised in 3D and can be turned through every angle online.',
      a1: 'Boqta with coral and malachite', a1k: 'Boqta', a1m1: 'Silver · coral · malachite', a1m2: '2,450 g',
      a2: 'Hand-plaited wheat-straw hat', a2k: 'Straw', a2m1: 'Fine wheat straw, hand-plaited', a2m2: 'Modern',
      a3: 'Summer court hat', a3k: 'Court', a3m1: 'Qing dynasty', a3m2: 'Red floss · gilt finial'
    }
  },

  // 展厅实拍。说明只写画面里能看到的,不指认具体展厅(待馆方确认)
  photos: [
    { slug:'exterior-101', zh:'博艺楼外观 · 101 特展期间', en:'The pavilion, during the 101 exhibition', wide:true },
    { slug:'red-curve',    zh:'弧形展廊',       en:'The curved gallery' },
    { slug:'red-corridor', zh:'长廊展柜',       en:'Corridor of vitrines' },
    { slug:'quote-wall',   zh:'展墙文字',       en:'The wall text', wide:true },
    { slug:'dark-display', zh:'暗场陈列',       en:'Objects in low light' },
    { slug:'red-arches',   zh:'拱廊',           en:'The arcade' },
    { slug:'fad-books',    zh:'FAD book house · 图书馆分馆', en:'FAD Book House' },
    { slug:'vitrines',     zh:'展柜',           en:'Vitrines' },
    { slug:'hat-wall',     zh:'帽饰陈列',       en:'Hats on display' },
    { slug:'steps',        zh:'阶梯陈列',       en:'The stepped display' }
  ],

  gallery: {
    zh: {
      num: '05 / 馆内',
      label: '影像',
      h2: '走进*展厅*。',
      quote: '「一顶高级帽子，从本质上讲不是帽子，而是一种人生态度。」',
      attr: '— 馆内展墙',
      zoom: '点开看大图'
    },
    en: {
      num: '05 / Inside',
      label: 'Inside',
      h2: 'Walk the *galleries*.',
      quote: '“The substance that makes a hat noble is essentially not the hat itself, but the life attitude of the wearer.”',
      attr: '— from the gallery wall',
      zoom: 'Tap to enlarge'
    }
  },

  // 地址 / 免费开放 / 2014 揭牌 2019 备案:中国江苏网 2024 省「我最喜爱的博物馆」评选页 + 百度百科(2026-09-05 核);开放时间:王晨锡确认
  visit: {
    zh: {
      num: '06 / 参观',
      label: '参观',
      postcard: '电子明信片', postcardText: '在首页把一件文物转到你喜欢的角度，写一段话，寄给谁——四套印刷版式，可保存或直接分享。', postcardMore: '去首页寄一张',
      h2: '安排*你的*|半日。',
      dtAddr: '地址', ddAddr: '南通市崇川区新康路 98 号 · 帽饰文创园博艺楼',
      dtHours: '开放时间', ddHours: '09:00 – 18:00', ddClosed: '全年无休，周一不闭馆',
      dtAdm: '门票', ddAdm: '免费开放',
      dtMuseum: '资质', ddMuseum: '中国博物馆协会会员单位',
      cta1: '在展', cta2: '典藏',
      mapAria: '方位罗盘：以南通为中心，标出到各城市的方向与直线距离', compassHead: '方位 · 自南通', compassNote: '直线距离，按城市中心计算', compassHere: '南通', compassN: '北'
    },
    en: {
      num: '06 / Visit',
      label: 'Visit',
      postcard: 'E-postcard', postcardText: 'On the front page, turn an object to the angle you like, write a line and send it — four print styles, save or share.', postcardMore: 'Send one from the front page',
      h2: 'Plan *your*|afternoon.',
      dtAddr: 'Address', ddAddr: 'Boyi Building, Hat Creative Park, 98 Xinkang Road, Chongchuan District, Nantong, Jiangsu',
      dtHours: 'Hours', ddHours: '09:00 – 18:00', ddClosed: 'Open every day of the year, Mondays included',
      dtAdm: 'Admission', ddAdm: 'Free',
      dtMuseum: 'Museum', ddMuseum: 'Member, Chinese Museums Association',
      cta1: 'What’s on', cta2: 'Collection',
      mapAria: 'Bearings from Nantong: direction and straight-line distance to other cities', compassHead: 'Bearings · from Nantong', compassNote: 'Great-circle distances between city centres', compassHere: 'Nantong', compassN: 'N'
    }
  },

  footer: {
    zh: {
      colMuseum: '本馆',
      name1: '南通市富美帽饰博物馆',
      name2: 'Nantong Foremost Hats Museum',
      tag: '中国首座帽饰专题博物馆',
      colVisit: '参观', v1: '开放时间', v2: '地址', v3: '关于本馆',
      colProg: '展览', p0: '920 中国帽子节', p1: '观帽 · 基本陈列', p2: '101 · 国际帽饰设计师创作集萃', p3: '典藏',
      colGroup: '关联', g1: '创办人 · 孙建华', g2: '富美集团', g3: '江苏南通',
      copy: '© 2026 南通富美帽饰博物馆'
    },
    en: {
      colMuseum: 'The Museum',
      name1: '南通市富美帽饰博物馆',
      name2: 'Nantong Foremost Hats Museum',
      tag: 'China’s first headwear museum',
      colVisit: 'Visit', v1: 'Hours', v2: 'Address', v3: 'About',
      colProg: 'Programme', p0: '920 China Hat Festival', p1: '观帽 · Permanent display', p2: '101 · International milliners', p3: 'Collection',
      colGroup: 'Group', g1: 'Founder · Jeffrey Sun', g2: 'Foremost Group', g3: 'Nantong, Jiangsu',
      copy: '© 2026 Nantong Foremost Hats Museum'
    }
  }
};

// rich(str) — 把标记语法渲染成 JSX: | → <br/>,*…* → <span class="em">
function rich(str) {
  return String(str).split('|').map((line, li, arr) => (
    <React.Fragment key={li}>
      {line.split(/(\*[^*]+\*)/).map((seg, si) =>
        seg.startsWith('*') && seg.endsWith('*') && seg.length > 2
          ? <span className="em" key={si}>{seg.slice(1, -1)}</span>
          : <React.Fragment key={si}>{seg}</React.Fragment>
      )}
      {li < arr.length - 1 ? <br /> : null}
    </React.Fragment>
  ));
}

Object.assign(window, { T, rich });
