body[data-view="designs"] { color: #272521; background: #f7f6f2; }
body[data-style][data-view="designs"] #app { padding: 0; }
.proposal { min-height: 100vh; max-width: 1740px; margin: auto; padding: 0 clamp(18px,4.7vw,86px) 70px; color: #292623; }
.proposal-bar { padding: 17px 0; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #cfcac2; gap: 14px; }
.proposal-bar a:first-child { font-weight: 650; letter-spacing: .055em; color: var(--citic-red); }
.proposal-bar a:last-child { font-size: 13px; }
.proposal-head { padding: clamp(25px,3.5vw,54px) 0 25px; }
.proposal-head h1 { font: 650 clamp(34px,3.5vw,65px)/1.2 "Songti SC",STSong,SimSun,serif; letter-spacing: .02em; }
.proposal-head p { color: #655f59; font-size: 15px; margin-top: 10px; line-height: 1.7; }
.proposal-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; border-bottom: 1px solid #c8c2b9; }
.board-modes,.board-devices { display: flex; align-items: stretch; gap: 18px; }
.board-modes a { padding: 10px 0 12px; font-size: 16px; margin-bottom: -1px; border-bottom: 3px solid transparent; }
.board-modes a[aria-current] { color: var(--citic-red); border-color: currentColor; font-weight: 650; }
.board-devices { gap: 0; border: 1px solid #b9b4ac; margin-bottom: 6px; }
.board-devices a { padding: 4px 13px; font-size: 13px; }
.board-devices a[aria-current] { background: #292522; color: #fff8ed; }
.design-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px 22px; }
.design-card,.design-comparison { min-width: 0; }
.design-preview { display: grid; place-items: center; overflow: hidden; padding: 10px; width: 100%; background: #e7e4de; border: 1px solid #d3d0c9; }
.design-preview img { display: block; width: 100%; height: auto; box-shadow: 0 3px 8px #24201919; }
.preview-mobile { height: clamp(260px,24vw,360px); background: #e4e0d9; }
.preview-mobile img { height: 100%; width: auto; min-height: 0; max-width: 100%; object-fit: contain; }
.design-card-title { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; margin: 13px 0 5px; }
.design-card-title h2,.design-comparison h2 { font: 650 clamp(21px,1.8vw,30px)/1.45 "Songti SC",STSong,SimSun,serif; }
.design-card p,.design-comparison p { line-height: 1.7; color: #625c57; font-size: 14px; }
.design-open { display: inline-flex; flex-shrink: 0; gap: 5px; align-items: center; color: var(--citic-red-deep); font-size: 14px; font-weight: 600; padding-block: 3px; }
.design-open:hover,.design-card-title a:hover,.proposal-bar a:hover { text-decoration: underline; text-underline-offset: 5px; }
.design-preview:hover { border-color: #99716e; }
.comparison-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(15px,2.6vw,42px); }
.design-comparison>label { display: flex; align-items: center; gap: 15px; font-size: 13px; color: #685e55; margin: 0 0 12px; }
.design-comparison select { width: auto; font-size: 16px; padding: 7px 32px 7px 12px; border: 1px solid #bab3a8; color: #292420; border-radius: 0; background: white; }
.design-comparison h2 { margin: 0; }
.comparison-grid .preview-mobile { height: min(66vh,680px); }
.proposal-files { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin-top: 34px; border-top: 1px solid #c8c2b9; padding-top: 15px; font-size: 13px; }
.proposal-files span { color: #625c57; }
.proposal-files a { color: var(--citic-red-deep); text-decoration: underline; text-underline-offset: 3px; }
@media(max-width:1000px) {
  .design-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:640px) {
  .proposal { padding-inline: 16px; }
  .proposal-bar { font-size: 14px; }
  .proposal-bar a:last-child { font-size: 12px; }
  .proposal-head { padding: 24px 0 14px; }
  .proposal-head p { font-size: 14px; }
  .board-modes { gap: 14px; }
  .board-modes a { font-size: 14px; }
  .board-devices a { padding: 5px 10px; }
  .design-grid,.comparison-grid { grid-template-columns: minmax(0,1fr); gap: 26px; }
  .design-grid.device-mobile,.comparison-grid.device-mobile { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 12px; }
  .device-mobile .design-preview { padding: 5px; height: auto; }
  .device-mobile .design-preview img { width: 100%; height: auto; }
  .device-mobile .design-card-title { flex-wrap: wrap; gap: 0 8px; }
  .device-mobile .design-card p,.device-mobile .design-comparison p { font-size: 12px; }
  .device-mobile .design-comparison>label { flex-wrap: wrap; gap: 4px; }
  .device-mobile .design-comparison select { width: 100%; }
}

.demo-switcher.presentation-bar { padding: 3px clamp(12px,2vw,34px); gap: 18px; color: #5e5a57; background: #f3f2ef; border-bottom: 1px solid #dedad4; align-items: center; min-height: 34px; }
.presentation-bar .proposal-entry { color: var(--citic-red-deep); font-weight: 650; border: 0; border-right: 1px solid #c6c0ba; padding: 3px 16px 3px 0; }
.presentation-bar .desktop-designs { gap: 4px; }
.presentation-bar .desktop-designs a { font-size: 12px; padding: 4px 10px; border: 0; }
.presentation-bar .desktop-designs a[aria-current] { background: #e6ddd9; color: var(--citic-red-deep); }
.presentation-bar .structure-entry { font-size: 12px; color: #59504a; padding: 3px 0 3px 12px; font-weight: 400; text-decoration: none; }
.presentation-bar .mobile-designs { display: none; }
@media(max-width:760px) {
  .demo-switcher.presentation-bar { flex-wrap: nowrap; gap: 10px; min-height: 38px; }
  .presentation-bar .desktop-designs { display: none; }
  .presentation-bar .mobile-designs { display: flex; align-items: center; font-size: 11px; gap: 3px; }
  .presentation-bar .mobile-designs select { width: auto; border: none; padding: 3px; background: transparent; color: var(--citic-red-deep); font-size: 12px; font-weight: 600; }
  .presentation-bar .proposal-entry { padding-right: 10px; font-size: 12px; }
  .presentation-bar .structure-entry { margin-left: auto; font-size: 11px; }
}
.board-display { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.board-screen { display: flex; align-items: center; color: #615953; gap: 7px; font-size: 13px; margin-bottom: 6px; }
.board-screen select { width: auto; border: 1px solid #b9b4ac; border-radius: 0; background: transparent; color: #302b27; font-size: 13px; min-height: 30px; padding: 4px 7px; }
@media(max-width:640px) {
  .proposal-controls { flex-wrap: wrap; gap: 5px; }
  .board-display { gap: 6px; }
  .board-screen>span { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .board-screen select { max-width: 90px; padding: 3px; }
  .board-devices a { padding-inline: 7px; }
}
.design-preview { position: relative; }
.design-preview>span { position: absolute; right: 13px; bottom: 12px; padding: 4px 8px; font-size: 11px; color: white; background: #302b28ed; opacity: 0; }
.design-preview:hover>span,.design-preview:focus-visible>span { opacity: 1; }
dialog.design-projector { width: min(1320px,96vw); max-width: 96vw; height: min(94dvh,1060px); max-height: 94dvh; padding: 0; border: 1px solid #756d63; border-radius: 0; color: #f4eee6; background: #211f1f; overflow: hidden; }
.design-projector[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.projector-title,.projector-actions { padding: 10px clamp(12px,2vw,25px); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.projector-title>div,.projector-actions>div { display: flex; align-items: baseline; gap: 12px; }
.projector-title h2 { font: 600 20px/1.4 "Songti SC",STSong,SimSun,serif; }
.projector-title span,.projector-actions span { color: #d4cbc6; font-size: 13px; }
.projector-title button,.projector-actions button,.projector-actions a { padding: 5px 10px; color: #f8f0e6; border: 1px solid #8a7d73; font-size: 13px; }
.projector-actions a { color: #302324; background: #f0dfcd; border-color: #f0dfcd; }
.projector-image { display: grid; place-items: center; min-height: 0; padding: 4px 10px; }
.projector-image img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
dialog.device-demo { width: 424px; max-width: 95vw; height: min(94dvh,915px); max-height: 94dvh; padding: 0 16px 14px; border: 1px solid #706861; border-radius: 8px; background: #282524; color: #f8f3ed; overflow: hidden; }
.device-demo[open] { display: grid; grid-template-rows: auto minmax(0,1fr); }
.device-title { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; gap: 14px; }
.device-title h2 { font-size: 16px; font-weight: 600; margin: 0; }
.device-title button { color: #f7f1eb; padding: 3px 9px; border: 1px solid #93877d; font-size: 13px; }
.device-demo iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
@media(max-width:640px) {
  dialog.design-projector { width: 100vw; max-width: 100vw; height: auto; max-height: 96dvh; }
  .projector-image img { height: auto; max-height: 73dvh; }
  .projector-title,.projector-actions { padding: 8px 10px; }
}
@media(min-width:1001px) {
  .design-grid { grid-template-columns: repeat(6,minmax(0,1fr)); }
  .design-card { grid-column: span 2; }
  .design-card:nth-child(4) { grid-column: 2 / span 2; }
}
@media(min-width:1001px) and (max-height:1200px) {
  .proposal-bar { padding-block: 11px; }
  .proposal-head { padding-block: 14px 10px; }
  .proposal-head>div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 20px; }
  .proposal-head h1 { font-size: 32px; }
  .proposal-head p { font-size: 13px; margin: 0; }
  .proposal-controls { margin-bottom: 14px; }
  .design-grid { gap: 18px 22px; }
  .design-grid.device-desktop { width: min(100%,max(820px,calc((100svh - 353px) * 2.4 + 44px))); margin-inline: auto; }
  .design-card-title { margin: 7px 0 2px; }
  .design-card-title h2 { font-size: 21px; }
  .design-card p { font-size: 13px; line-height: 1.55; }
  .design-card .design-open { font-size: 13px; }
  .design-preview { padding: 6px; }
}
