
#style-gallery *{box-sizing:border-box}#style-gallery{scroll-behavior:smooth}#style-gallery{margin:0;background:#f5f8fc;color:#20344a;font:15px/1.65 'Noto Sans CJK TC','Microsoft JhengHei',system-ui,sans-serif}#style-gallery button,#style-gallery input,#style-gallery select{font:inherit}#style-gallery button{cursor:pointer}#style-gallery a{color:inherit;text-decoration:none}#style-gallery .wrap{width:min(94%,1390px);margin:auto}#style-gallery .top{background:white;border-bottom:1px solid #dfe8f1}#style-gallery .top .wrap{display:flex;align-items:center;justify-content:space-between;height:68px}#style-gallery .brand{font-weight:800;letter-spacing:.05em;font-size:18px;color:#174f87}#style-gallery .brand small{font-size:10px;display:block;line-height:1.2;letter-spacing:.13em;color:#7890a8}#style-gallery .home{font-size:13px;color:#527290}#style-gallery .intro{background:#e9f2fb;border-bottom:1px solid #d8e6f5;padding:36px 0 32px;position:relative;overflow:hidden}#style-gallery .intro .wrap{display:flex;align-items:center;justify-content:space-between;gap:28px}#style-gallery .intro-copy{max-width:800px}#style-gallery .kicker{font-size:12px;letter-spacing:.18em;color:#397bb5;font-weight:800}#style-gallery .intro h1{font-size:clamp(27px,4vw,42px);line-height:1.3;letter-spacing:.03em;margin:8px 0 11px;color:#143d65}#style-gallery .intro p{margin:0;color:#4c647d}#style-gallery .intro .meta{display:flex;gap:13px;margin-top:17px;flex-wrap:wrap;font-size:13px;color:#2d6297}#style-gallery .meta span{border-left:2px solid #8cb8e1;padding-left:9px}#style-gallery .count-big{flex:none;text-align:center;border:1px solid #c5dbf1;background:#ffffff83;padding:15px 29px;border-radius:15px;color:#28669d}#style-gallery .count-big strong{display:block;font-size:42px;line-height:1.15;font-weight:750}#style-gallery .count-big small{font-size:12px}#style-gallery .controls{padding:24px 0 14px}#style-gallery .control-top{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}#style-gallery .tabs{display:flex;gap:7px;flex-wrap:wrap}#style-gallery .tab,#style-gallery .favorite-filter{border:1px solid #d9e3ee;background:white;color:#486078;padding:8px 14px;border-radius:7px;font-size:13px;white-space:nowrap}#style-gallery .tab.active,#style-gallery .favorite-filter.active{background:#236ab0;color:white;border-color:#236ab0}#style-gallery .tools{display:flex;gap:8px;align-items:center}#style-gallery .tools input,#style-gallery .tools select{border:1px solid #d9e3ee;border-radius:7px;padding:8px 10px;background:white;min-width:0;color:#34516d;font-size:13px}#style-gallery .tools input{width:160px}#style-gallery .results-line{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:#64798f;margin:15px 0 3px}#style-gallery .results-line button{border:0;background:transparent;color:#2868a4;font-size:13px}#style-gallery .gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;padding-bottom:36px}#style-gallery .card{border:1px solid #dbe5ef;border-radius:12px;background:white;overflow:hidden;box-shadow:0 3px 9px #263e5b06;transition:transform .2s,box-shadow .2s;position:relative}#style-gallery .card:hover{transform:translateY(-3px);box-shadow:0 8px 24px #263e5b12}#style-gallery .thumb{border:0;display:block;padding:8px;width:100%;background:#e8edf3;position:relative;cursor:zoom-in}#style-gallery .thumb img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;object-position:top;background:white;border:1px solid #d1d8df;box-shadow:0 3px 8px #122c4d16}#style-gallery .thumb:after{content:'＋ 放大首頁';position:absolute;bottom:14px;right:14px;background:#fff;color:#285e91;font-size:12px;padding:6px 9px;border-radius:5px;box-shadow:0 2px 12px #112f4825}#style-gallery .card-body{padding:10px 12px 11px}#style-gallery .card-title{display:flex;align-items:center;gap:7px;justify-content:space-between}#style-gallery .card-title h2{font-size:17px;margin:0;color:#263c53;line-height:1.45}#style-gallery .num{font-size:11px;color:#7289a0;letter-spacing:.08em;margin-right:5px}#style-gallery .heart{background:transparent;border:1px solid #dce5ef;border-radius:7px;color:#6b8299;font-size:20px;width:35px;height:34px;line-height:1;flex:none}#style-gallery .heart.on{color:#b83b64;background:#fdf0f4;border-color:#efd0dd}#style-gallery .desc{font-size:12px;color:#60758a;margin:3px 0 7px}#style-gallery .swatches{display:flex;gap:5px}#style-gallery .swatches span{height:15px;flex:1;border:1px solid #00000013;border-radius:3px}#style-gallery .bottom-row{display:flex;justify-content:space-between;align-items:center;margin-top:7px;gap:4px;font-size:12px;color:#687c90}#style-gallery .bottom-row button{border:0;background:none;color:#236ab0;font-weight:700;padding:0;font-size:12px}#style-gallery .empty{grid-column:1/-1;text-align:center;background:white;border:1px dashed #cbd9e8;padding:50px;border-radius:10px}#style-gallery .disclaimer{padding:17px 0 25px;font-size:12px;color:#73869b;text-align:center;border-top:1px solid #dbe5ef}#style-gallery .selection{position:sticky;bottom:0;z-index:3;background:#fff;border-top:1px solid #d8e3ee;box-shadow:0 -4px 18px #152f4c0d}#style-gallery .selection .wrap{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 0;font-size:13px}#style-gallery .selection .wrap>div{min-width:0}#style-gallery .chosen{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#6d8094;max-width:70vw}#style-gallery .primary{border:1px solid #236ab0;border-radius:7px;background:#236ab0;color:white;padding:8px 16px;font-weight:700;font-size:13px;white-space:nowrap}#style-gallery .primary:disabled{opacity:.45;cursor:default}#style-gallery dialog{border:0;padding:0;width:min(95vw,1180px);max-height:94vh;background:#f1f5f9;border-radius:12px;color:#20344a;box-shadow:0 20px 80px #0005;overflow:auto}#style-gallery dialog::backdrop{background:#152b44b5;backdrop-filter:blur(3px)}#style-gallery .modal-head{position:sticky;top:0;background:white;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:12px 16px;gap:10px;border-bottom:1px solid #dbe5ef}#style-gallery .modal-head h2{font-size:18px;margin:0}#style-gallery .modal-actions{display:flex;align-items:center;gap:6px}#style-gallery .modal-actions button,#style-gallery .modal-actions a{background:white;border:1px solid #cddae6;border-radius:6px;padding:6px 10px;color:#30597f;font-size:13px;white-space:nowrap}#style-gallery .modal-actions .close{font-size:22px;line-height:1}#style-gallery .modal-image{padding:15px}#style-gallery .modal-image img{width:100%;height:auto;display:block;box-shadow:0 3px 14px #152f4c1a}#style-gallery .modal-caption{padding:0 15px 15px;font-size:12px;color:#62758b}#style-gallery .notice{position:fixed;z-index:10;bottom:68px;left:50%;transform:translateX(-50%);background:#1b466e;color:white;padding:10px 20px;border-radius:8px;box-shadow:0 5px 20px #0002;font-size:13px}#style-gallery .notice[hidden]{display:none}@media(max-width:1050px){#style-gallery .gallery{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:730px){#style-gallery .gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#style-gallery .intro .wrap{align-items:start}#style-gallery .count-big{padding:9px 12px}#style-gallery .count-big strong{font-size:28px}#style-gallery .intro{padding:22px 0}#style-gallery .intro h1{font-size:26px}#style-gallery .intro p{font-size:13px}#style-gallery .intro .meta{gap:6px;font-size:11px}#style-gallery .tabs{gap:5px}#style-gallery .tab,#style-gallery .favorite-filter{font-size:11px;padding:6px 8px}#style-gallery .tools{width:100%}#style-gallery .tools input{flex:1}#style-gallery .thumb{padding:6px}#style-gallery .thumb:after{bottom:10px;right:10px;font-size:10px;padding:4px 5px}#style-gallery .card-body{padding:9px}#style-gallery .card-title h2{font-size:13px}#style-gallery .num{font-size:10px;margin-right:2px}#style-gallery .heart{width:28px;height:28px;font-size:16px}#style-gallery .desc,#style-gallery .bottom-row{font-size:10px}#style-gallery .bottom-row button{font-size:10px}#style-gallery .modal-head h2{font-size:14px}#style-gallery .modal-actions button,#style-gallery .modal-actions a{font-size:11px;padding:5px}#style-gallery .modal-image{padding:5px}#style-gallery .home{font-size:11px}#style-gallery .brand{font-size:15px}#style-gallery .chosen{max-width:50vw}}@media(prefers-reduced-motion:reduce){#style-gallery *{scroll-behavior:auto!important;transition:none!important}}

/* Compact, independently scrollable full-homepage preview */
#style-gallery .thumb{cursor:default}#style-gallery .thumb:after{content:none;display:none}#style-gallery .thumb-scroll{width:100%;aspect-ratio:4/3.75;overflow-x:hidden;overflow-y:scroll;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#a8a8a8 #f1f1f1;scrollbar-gutter:stable;border:1px solid #d1d8df;background:#fff;box-shadow:0 3px 8px #122c4d16;touch-action:pan-y;scroll-behavior:auto}/* Chromium: standard non-auto scrollbar properties override pseudo-element styles. */
@supports selector(::-webkit-scrollbar){#style-gallery .thumb-scroll{scrollbar-width:auto;scrollbar-color:auto}#style-gallery .thumb-scroll::-webkit-scrollbar{width:3px;height:3px}#style-gallery .thumb-scroll::-webkit-scrollbar-track{background:#f1f1f1}#style-gallery .thumb-scroll::-webkit-scrollbar-thumb{background:#a8a8a8;border:0;border-radius:3px}#style-gallery .thumb-scroll::-webkit-scrollbar-thumb:hover{background:#858585}#style-gallery .thumb-scroll::-webkit-scrollbar-button{display:none;width:0;height:0}#style-gallery .thumb-scroll::-webkit-scrollbar-corner{background:#f1f1f1}}#style-gallery .thumb-scroll:focus-visible{outline:2px solid #236ab0;outline-offset:1px}#style-gallery .thumb .thumb-scroll img{width:100%;height:auto;aspect-ratio:auto;object-fit:initial;border:0;box-shadow:none;display:block}#style-gallery .thumb-zoom{position:absolute;bottom:14px;right:24px;background:#fff;color:#285e91;font-size:12px;padding:6px 9px;border:1px solid #dbe5ef;border-radius:5px;box-shadow:0 2px 12px #112f4825;cursor:zoom-in}#style-gallery .thumb-zoom:focus-visible{outline:2px solid #236ab0}#style-gallery .thumb-zoom:hover{background:#eef5fd}@media(max-width:730px){#style-gallery .thumb-zoom{bottom:10px;right:19px;font-size:10px;padding:4px 5px}}


/* V9 | 2026-11-30：依使用者核准圖，滿版預覽、藍灰資訊底座、深藍章標及獨立色票盤。 */
#style-gallery .gallery .card{border:1px solid #c9d5e1;border-radius:12px;background:#e0e8f2;box-shadow:0 8px 20px rgba(30,49,76,.19),0 3px 6px rgba(30,49,76,.11);display:flex;flex-direction:column}
#style-gallery .gallery .card:hover{transform:translateY(-2px);box-shadow:0 12px 24px rgba(30,49,76,.24),0 4px 8px rgba(30,49,76,.13)}
/* 上半部滿版，保留原圖片比例、獨立捲動與灰色 3px 捲軸。 */
#style-gallery .gallery .thumb{background:#fff;padding:0}
#style-gallery .gallery .thumb-scroll{border:0;border-radius:0;box-shadow:none}
#style-gallery .gallery .thumb-scroll:focus-visible{outline-offset:-2px}
#style-gallery .gallery .thumb-zoom{bottom:8px;right:12px;border-radius:9px;background:#625b54;color:#fff;border:1px solid #ffffffdf;box-shadow:0 2px 6px #18263840;font-weight:600}
#style-gallery .gallery .thumb-zoom:hover{background:#49433e;color:#fff}
/* 資訊區刻意採冷色，與暖色、淺色及深色網站截圖明確分離。 */
#style-gallery .gallery .card-body{padding:13px 12px 12px;background: linear-gradient(145deg, #e4ebf5, #f6fff2);border-top:2px solid #f8fbff;box-shadow:inset 0 2px 3px #273d5724;flex:1;display:flex;flex-direction:column;min-width:0}
#style-gallery .gallery .card-title{gap:7px}
#style-gallery .gallery .card-title h2{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;min-width:0;flex:1;overflow-wrap:anywhere;color:#1a2c43;font-size:17px}
#style-gallery .gallery .card-title .num{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:30px;padding:0 5px;margin:0;border:1px solid #183459;border-radius:6px;background:#173052;color:#fff;box-shadow:0 2px 4px #18305225;font-size:15px;font-weight:750;letter-spacing:.025em;font-variant-numeric:tabular-nums;line-height:1;white-space:nowrap}
#style-gallery .gallery .heart{background:#f7faff;border:1px solid #fff;color:#536a83;box-shadow:0 2px 5px #263e5b25;border-radius:7px}
#style-gallery .gallery .heart.on{background:#fce5eb;border-color:#edb9ca;color:#b83b64}
#style-gallery .gallery .desc{margin:6px 0 9px;color:#455a70}
/* 白色色票盤與色票細框：保持四個真實色值，避免白色與淺色色票消失。 */
#style-gallery .gallery .swatches{background:#f8faff;border:1px solid #fff;padding:6px;gap:5px;border-radius:7px;box-shadow:0 2px 5px #263e5b26;margin-bottom:10px}
#style-gallery .gallery .swatches span{height:24px;min-width:0;border:1px solid #17283f2b;border-radius:4px}
#style-gallery .gallery .bottom-row{margin-top:auto;padding-top:7px;border-top:1px solid #a9bbcf;color:#455a70;gap:5px;flex-wrap:wrap}
#style-gallery .gallery .bottom-row button{color:#183b67}
/* 手機維持雙欄：按鈕與色票縮放，長標題可自然換行。 */
@media(max-width:730px){
 #style-gallery .gallery .card{border-radius:9px;box-shadow:0 5px 12px #263e5b35,0 2px 4px #263e5b20}
 #style-gallery .gallery .card-body{padding:9px 8px 9px}
 #style-gallery .gallery .thumb-zoom{bottom:6px;right:8px}
 #style-gallery .gallery .card-title{gap:4px}
 #style-gallery .gallery .card-title h2{font-size:13px;gap:4px}
 #style-gallery .gallery .card-title .num{min-width:25px;height:24px;font-size:12px;padding:0 3px;border-radius:5px}
 #style-gallery .gallery .desc{margin:5px 0 7px}
 #style-gallery .gallery .swatches{padding:4px;gap:3px;margin-bottom:7px}
 #style-gallery .gallery .swatches span{height:19px;border-radius:3px}
 #style-gallery .gallery .bottom-row{padding-top:6px}
}
@media(prefers-reduced-motion:reduce){#style-gallery .gallery .card:hover{transform:none}}

/* V9 窄手機：底部資訊一律上下排列，避免基準風格與一般卡片的分隔線不齊。 */
@media(max-width:430px){#style-gallery .gallery .bottom-row{display:grid;grid-template-columns:minmax(0,1fr);justify-items:start;gap:3px}#style-gallery .gallery .bottom-row button{justify-self:start}}

/* V13 | 2026-11-30: 同頁雙模式入口，原卡片 CSS 不變。 */
#style-gallery .intro .wrap{display:block}
#style-gallery .intro-copy{max-width:none}
#style-gallery .mode-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:22px}
#style-gallery .mode-choice{display:flex;align-items:center;text-align:left;gap:16px;padding:18px 20px;background:#fff;color:#204568;border:1px solid #b7cce0;border-radius:12px;box-shadow:0 4px 12px #244b7512;min-width:0;transition:background .15s,box-shadow .15s}
#style-gallery .mode-choice.active{background:#173C65;color:#fff;border-color:#173C65;box-shadow:0 5px 14px #173c6526}
#style-gallery .mode-choice:focus-visible,#style-gallery .custom-color button:focus-visible{outline:3px solid #7299c2;outline-offset:3px}
#style-gallery .mode-art{flex:none;width:48px;color:inherit}#style-gallery .mode-art svg{display:block;width:100%}
#style-gallery .mode-text{display:grid;gap:4px;min-width:0;flex:1}
#style-gallery .mode-text strong{font-size:20px;line-height:1.35}#style-gallery .mode-text small{font-size:13px;line-height:1.5;opacity:.86}
#style-gallery .mode-count{text-align:center;flex:none;padding-left:15px;border-left:1px solid currentColor}#style-gallery .mode-count b{display:block;font-size:29px;line-height:1.1}#style-gallery .mode-count small{font-size:11px;white-space:nowrap}
#style-gallery .tab .color-dot{display:inline-block;width:13px;height:13px;border-radius:50%;border:1px solid #0003;margin-right:5px;vertical-align:-1px}
#style-gallery .custom-color{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;background:#fff;border:1px solid #d6e3ef;border-radius:10px;padding:12px 15px;margin-bottom:14px}
#style-gallery .custom-color[hidden],#style-gallery .tools select[hidden]{display:none!important}
#style-gallery .custom-color>div{flex:1;min-width:180px}#style-gallery .custom-color>div small{display:block;color:#526d85;font-size:12px}
#style-gallery .custom-color form{display:flex;align-items:center;gap:7px;flex-wrap:wrap}#style-gallery .custom-color input[type=color]{width:36px;height:35px;padding:2px;border:1px solid #cbd9e7;border-radius:5px;background:white}#style-gallery .custom-color input[type=text]{width:96px;padding:6px;border:1px solid #cbd9e7;border-radius:5px;color:#234568}
#style-gallery .custom-swatches{display:flex;gap:3px}#style-gallery .custom-swatches span{width:23px;height:22px;border:1px solid #0002;border-radius:3px}
@media(max-width:730px){#style-gallery .mode-options{gap:9px;margin-top:15px}#style-gallery .mode-choice{display:grid;grid-template-columns:1fr auto;gap:6px;padding:12px 10px}#style-gallery .mode-art{width:31px}#style-gallery .mode-text{grid-column:1/-1;grid-row:2}#style-gallery .mode-text strong{font-size:14px}#style-gallery .mode-text small{font-size:11px}#style-gallery .mode-count{grid-column:2;grid-row:1;border:0;padding:0}#style-gallery .mode-count b{font-size:20px}#style-gallery .mode-count small{font-size:10px}#style-gallery .custom-color{padding:10px}#style-gallery .custom-color form{gap:5px}#style-gallery .custom-color .primary{padding:7px 9px}#style-gallery .tools{flex-wrap:wrap}#style-gallery .tools input{min-width:90px}}

/* V14 | 2026-11-30：品牌配色卡依指定示意圖，保持固定比例與色彩位置。
   僅 .palette-card 生效；原36款完整首頁卡與圖庫格線不變。 */
#style-gallery .gallery .palette-card .palette-visual{display:block;width:100%;padding:0;border:0;background:none;cursor:default;line-height:0}
#style-gallery .palette-mockup{display:block;width:100%;height:auto;aspect-ratio:452/203}
#style-gallery .gallery .palette-card .card-body{padding:9px 10px 8px;gap:6px;border-top:0;box-shadow:none}
#style-gallery .gallery .palette-card .card-title h2{font-weight:500;font-size:16px;gap:6px}
#style-gallery .gallery .palette-card .card-title .num{height:30px;min-width:34px;font-size:14px}
#style-gallery .gallery .palette-card .swatches{padding:4px;gap:4px;margin:0;border-radius:8px;box-shadow:none;background:#fff}
#style-gallery .gallery .palette-card .swatches span{height:20px;border-radius:5px}
#style-gallery .custom-preview{width:152px;flex:none;overflow:hidden;border:1px solid #d6e3ef;border-radius:7px;background:white}
#style-gallery .custom-preview:empty{display:none}
@media(max-width:730px){
 #style-gallery .gallery .palette-card .card-body{padding:7px 6px;gap:5px}
 #style-gallery .gallery .palette-card .card-title h2{font-size:12px;gap:4px}
 #style-gallery .gallery .palette-card .card-title .num{min-width:29px;height:24px;font-size:11px}
 #style-gallery .gallery .palette-card .heart{width:25px;height:25px;font-size:15px}
 #style-gallery .gallery .palette-card .swatches{padding:3px;gap:3px}
 #style-gallery .gallery .palette-card .swatches span{height:16px}
 #style-gallery .custom-preview{width:120px}
}

/* 自訂示意維持小尺寸，不受文字說明區 flex 規則影響。 */
#style-gallery .custom-color>.custom-preview{flex:0 0 152px;min-width:0;width:152px}
@media(max-width:730px){#style-gallery .custom-color>.custom-preview{flex-basis:120px;width:120px}}

/* V16：取消首頁入口後，色票即為卡片底部，保留緊湊間距。 */
#style-gallery .gallery .palette-card .card-body{padding-bottom:10px}
@media(max-width:730px){#style-gallery .gallery .palette-card .card-body{padding-bottom:8px}}

/* V17 | 2026-12-01：Banner 置中、雙正方形入口；僅限 intro，不改圖庫。 */
#style-gallery .intro{background:#e9f1f9;border-bottom:1px solid #d2e1ef;padding:36px 0 34px;isolation:isolate}
#style-gallery .intro::before,#style-gallery .intro::after{content:"";position:absolute;z-index:-1;pointer-events:none;width:420px;height:420px;border:1px solid #c9dbea;border-radius:34px;transform:rotate(35deg)}
#style-gallery .intro::before{left:-245px;top:-208px;box-shadow:0 0 0 38px #e1ebf5,0 0 0 39px #cfdfee}
#style-gallery .intro::after{right:-235px;bottom:-240px;box-shadow:0 0 0 38px #e1ebf5,0 0 0 39px #cfdfee}
#style-gallery .intro .wrap{display:block;position:relative}
#style-gallery .intro .intro-copy{max-width:820px;margin:0 auto;text-align:center}
#style-gallery .intro .intro-copy h1{margin:10px auto 12px}
#style-gallery .intro .intro-copy p{line-height:1.85}
#style-gallery .intro .meta{justify-content:center;align-items:center;gap:0;margin-top:16px}
#style-gallery .intro .meta span{border:0;border-left:1px solid #a9c0d7;padding:0 12px}
#style-gallery .intro .meta span:first-child{border-left:0}
#style-gallery .intro .mode-options{width:min(100%,500px);margin:25px auto 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
#style-gallery .intro .mode-choice{position:relative;aspect-ratio:1/1;min-height:0;width:100%;padding:20px 12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;border:1px solid #b7ccdf;border-radius:16px;background:#fff;color:#204568;box-shadow:0 5px 14px #254d7210;transition:background .18s,border-color .18s,box-shadow .18s,transform .18s}
#style-gallery .intro .mode-choice.active{background:#173c65;color:#fff;border-color:#173c65;box-shadow:0 8px 18px #173c6528}
#style-gallery .intro .mode-choice:hover{transform:translateY(-2px);border-color:#729bc0}
#style-gallery .intro .mode-choice.active:hover{border-color:#173c65}
#style-gallery .intro .mode-art{display:grid;place-items:center;width:54px;height:54px;color:inherit;flex:none}
#style-gallery .intro .mode-art svg{width:100%;height:auto;display:block}
#style-gallery .intro .mode-text{display:grid;gap:4px;flex:0 0 auto;min-width:0;max-width:100%}
#style-gallery .intro .mode-text strong{font-size:19px;line-height:1.4;letter-spacing:.015em}
#style-gallery .intro .mode-text small{font-size:12px;line-height:1.5;opacity:1;color:#55738f}
#style-gallery .intro .mode-choice.active .mode-text small{color:#d5e5f5}
#style-gallery .intro .mode-count{display:flex;gap:5px;align-items:baseline;justify-content:center;flex:none;padding:10px 0 0;margin:0;width:64%;border:0;border-top:1px solid #d5e2ef}
#style-gallery .intro .mode-choice.active .mode-count{border-top-color:#ffffff40}
#style-gallery .intro .mode-count b{font-size:32px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}
#style-gallery .intro .mode-count small{font-size:12px;line-height:1.4;white-space:nowrap}
@media(max-width:730px){
 #style-gallery .intro{padding:26px 0 23px}
 #style-gallery .intro::before,#style-gallery .intro::after{width:230px;height:230px}
 #style-gallery .intro::before{left:-165px;top:-150px}
 #style-gallery .intro::after{right:-165px;bottom:-175px}
 #style-gallery .intro .intro-copy h1{margin:8px auto 10px}
 #style-gallery .intro .intro-copy p{line-height:1.7}
 #style-gallery .intro .meta{margin-top:13px}
 #style-gallery .intro .meta span{padding:0 6px}
 #style-gallery .intro .mode-options{width:min(100%,380px);gap:10px;margin-top:18px}
 #style-gallery .intro .mode-choice{border-radius:12px;gap:6px;padding:9px 5px}
 #style-gallery .intro .mode-art{width:34px;height:34px}
 #style-gallery .intro .mode-text{gap:3px}
 #style-gallery .intro .mode-text strong{font-size:14px;line-height:1.35}
 #style-gallery .intro .mode-text small{font-size:10px;line-height:1.35}
 #style-gallery .intro .mode-count{padding-top:6px;width:76%}
 #style-gallery .intro .mode-count b{font-size:24px}
 #style-gallery .intro .mode-count small{font-size:10px}
}
@media(max-width:350px){
 #style-gallery .intro .mode-choice{gap:4px;padding:7px 4px}
 #style-gallery .intro .mode-art{width:27px;height:27px}
 #style-gallery .intro .mode-text strong{font-size:13px}
 #style-gallery .intro .mode-count b{font-size:21px}
}
@media(prefers-reduced-motion:reduce){#style-gallery .intro .mode-choice:hover{transform:none}}

/* V18 | 2026-12-01：緊湊橫向 Banner，桌機文案與雙入口同列，手機置中。 */
#style-gallery .intro{padding:24px 0;background:#e9f1f9}
#style-gallery .intro .wrap{display:grid;grid-template-columns:minmax(0,560px) auto;align-items:center;justify-content:center;gap:36px}
#style-gallery .intro .intro-copy{max-width:560px;margin:0;text-align:center}
#style-gallery .intro .intro-copy h1{margin:5px auto 8px;font-size:clamp(28px,3vw,38px)}
#style-gallery .intro .intro-copy p{line-height:1.65;font-size:14px}
#style-gallery .intro .meta{margin-top:11px}
#style-gallery .intro .mode-options{width:342px;max-width:100%;margin:0;gap:12px}
#style-gallery .intro .mode-choice{padding:10px 6px;gap:6px;border-radius:12px}
#style-gallery .intro .mode-art{width:36px;height:36px}
#style-gallery .intro .mode-text{gap:3px}
#style-gallery .intro .mode-text strong{font-size:15px;line-height:1.35}
#style-gallery .intro .mode-text small{font-size:11px;line-height:1.4;max-width:13em;margin:auto}
#style-gallery .intro .mode-count{padding-top:6px;width:76%}
#style-gallery .intro .mode-count b{font-size:25px}
#style-gallery .intro .mode-count small{font-size:11px}
@media(max-width:900px) and (min-width:731px){
 #style-gallery .intro .wrap{gap:18px;grid-template-columns:minmax(0,1fr) auto}
 #style-gallery .intro .mode-options{width:308px}
 #style-gallery .intro .mode-choice{padding:7px 4px;gap:5px}
 #style-gallery .intro .mode-art{width:30px;height:30px}
 #style-gallery .intro .mode-text strong{font-size:14px}
 #style-gallery .intro .mode-text small{font-size:10px}
 #style-gallery .intro .mode-count b{font-size:23px}
 #style-gallery .intro .intro-copy h1{font-size:29px}
}
@media(max-width:730px){
 #style-gallery .intro{padding:15px 0 16px}
 #style-gallery .intro .wrap{display:flex;flex-direction:column;align-items:center;gap:12px}
 #style-gallery .intro .intro-copy{max-width:100%}
 #style-gallery .intro .intro-copy h1{font-size:clamp(22px,5.7vw,27px);margin:3px auto 5px}
 #style-gallery .intro .intro-copy p{font-size:12px;line-height:1.55}
 #style-gallery .intro .intro-copy .kicker{font-size:10px}
 #style-gallery .intro .meta{margin-top:8px;font-size:10px}
 #style-gallery .intro .meta span{padding:0 6px}
 #style-gallery .intro .mode-options{width:min(100%,306px);gap:10px;margin:0}
 #style-gallery .intro .mode-choice{padding:6px 4px;gap:5px}
 #style-gallery .intro .mode-art{width:28px;height:28px}
 #style-gallery .intro .mode-text strong{font-size:13px}
 #style-gallery .intro .mode-text small{font-size:10px;line-height:1.35}
 #style-gallery .intro .mode-count{padding-top:5px}
 #style-gallery .intro .mode-count b{font-size:21px}
 #style-gallery .intro .mode-count small{font-size:10px}
}
@media(max-width:350px){#style-gallery .intro .mode-options{width:min(100%,282px)}#style-gallery .intro .mode-choice{gap:4px}#style-gallery .intro .mode-art{width:24px;height:24px}#style-gallery .intro .mode-text strong{font-size:12px}#style-gallery .intro .mode-text small{font-size:9px}}

/* V18：短副標均衡換行，避免單字孤行。 */
#style-gallery .intro .mode-text small{text-wrap:balance}

/* V19 | 2026-12-01：核准藍白橫幅、分色提示；手機優先，保留雙模式互動。 */
#style-gallery{color:#10285c;background:#f3f8ff}
#style-gallery .top .brand{color:#102c70;font-size:clamp(16px,1.7vw,23px)}
#style-gallery .top .brand small{color:#57719a;font-size:11px;letter-spacing:.2em}
#style-gallery .top .home{color:#173b7b}
#style-gallery .intro{padding:25px 0;background-color:#eaf6ff;background-image:linear-gradient(180deg,#edf7ff 0%,#edf7fff5 47%,#edf7ff12 75%),url('../assets/gallery-banner.png');background-position:center;background-size:cover;background-repeat:no-repeat;isolation:isolate}
#style-gallery .intro::before,#style-gallery .intro::after{display:none}
#style-gallery .intro .wrap{display:grid;grid-template-columns:minmax(0,1fr);gap:22px}
#style-gallery .intro .intro-copy{max-width:660px;text-align:left;margin:0}
#style-gallery .intro .intro-copy .kicker{color:#004cce;font-size:11px;letter-spacing:.26em}
#style-gallery .intro .intro-copy h1{margin:10px 0 14px;color:#092565;font-size:clamp(25px,5.9vw,46px);line-height:1.25;letter-spacing:.015em;text-wrap:balance}
#style-gallery .intro h1>span{position:relative;color:#007fff;display:inline-block}
#style-gallery .intro h1>span::after{content:'';position:absolute;height:5px;background:#ffd320;bottom:-5px;left:0;width:100%;border-radius:50%;transform:rotate(-5deg)}
#style-gallery .intro .intro-copy p{font-size:16px;line-height:1.8;color:#152e65;margin:0}
/* 參考提醒是次要資訊；操作提示保留醒目黃色。 */
#style-gallery .reference-note{display:flex;align-items:flex-start;gap:10px;padding:12px;margin-top:18px;border:1px solid #88bff4;border-radius:9px;background:#edf6fff5;color:#17356c;font-size:14px;line-height:1.65}
#style-gallery .reference-label{display:flex;align-items:center;gap:6px;flex:none;font-weight:750;white-space:nowrap}
#style-gallery .reference-label svg{width:20px;height:20px;color:#0084fa;flex:none;margin-top:1px}
#style-gallery .reference-note>span:last-child{min-width:0}
#style-gallery .mode-panel{width:100%;max-width:470px;justify-self:center;min-width:0}
#style-gallery .intro .mode-options{width:100%;margin:0;gap:12px;max-width:none;grid-template-columns:repeat(2,minmax(0,1fr))}
#style-gallery .intro .mode-choice{aspect-ratio:auto;min-height:196px;padding:16px 8px;gap:10px;border-radius:16px;background:#fff;color:#102d70;border:1px solid #b7ddfb;box-shadow:0 5px 12px #004c9022}
#style-gallery .intro .mode-choice.active{background:linear-gradient(145deg,#063b80,#071e52);color:white;border-color:#1c548e}
#style-gallery .intro .mode-art{width:75px;height:60px;padding:5px;background:#f4fbff;color:#177dcc;border-radius:7px;box-shadow:0 2px 6px #102b6833}
#style-gallery .intro .mode-text{gap:4px}
#style-gallery .intro .mode-text strong{font-size:clamp(14px,3.8vw,20px);line-height:1.4}
#style-gallery .intro .mode-text small{font-size:12px;line-height:1.5;color:#244778;max-width:15em}
#style-gallery .intro .mode-choice.active .mode-text small{color:#dcecff}
#style-gallery .intro .mode-count{border:0;margin-top:auto;padding:0;width:100%;gap:6px;align-items:baseline}
#style-gallery .intro .mode-count b{font-size:36px;color:#007dff}
#style-gallery .intro .mode-choice.active .mode-count b{color:white}
#style-gallery .intro .mode-count small{font-size:14px}
#style-gallery .intro .mode-choice::after{content:'↗';position:absolute;right:12px;bottom:12px;font-size:26px;line-height:1;color:#0080ff}
#style-gallery .intro .mode-choice.active::after{content:'✓';display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:white;color:#0080ff;font-size:20px}
#style-gallery .intro .mode-hint{display:flex;align-items:center;justify-content:center;gap:9px;background:#ffed83;color:#183368;border-radius:50px;padding:8px 12px;margin:11px 0 0;font-size:14px;font-weight:750;line-height:1.5;box-shadow:0 4px 7px #123f7520}
#style-gallery .mode-hint svg{width:32px;height:32px;flex:none;color:#173b76}
/* 圖庫及觸控控制：手機一欄、平板兩欄、桌機四欄。 */
#style-gallery .gallery{grid-template-columns:minmax(0,1fr);gap:20px}
#style-gallery .control-top{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
#style-gallery .tabs{flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding-bottom:4px;scrollbar-width:thin;scrollbar-color:#87b6e0 transparent}
#style-gallery .tab,#style-gallery .favorite-filter,#style-gallery .tools input,#style-gallery .tools select{min-height:44px;font-size:14px}
#style-gallery .tab{flex:none;padding:8px 15px}
#style-gallery .tab.active,#style-gallery .favorite-filter.active{background:#007cf2;border-color:#007cf2}
#style-gallery .tools{display:flex;flex-wrap:wrap;width:100%;gap:8px}
#style-gallery .tools input{flex:1 1 140px;width:auto;font-size:16px}
#style-gallery .tools select{flex:1 1 105px}
#style-gallery .favorite-filter{flex:1 1 130px}
#style-gallery .gallery .heart{min-width:44px;height:44px;font-size:22px}
#style-gallery .gallery .card-title h2,#style-gallery .gallery .palette-card .card-title h2{font-size:17px}
#style-gallery .gallery .desc,#style-gallery .gallery .bottom-row,#style-gallery .gallery .bottom-row button{font-size:14px}
#style-gallery .gallery .bottom-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between}
#style-gallery .gallery .bottom-row button,#style-gallery .gallery .thumb-zoom{min-height:44px;font-size:13px}
#style-gallery .gallery .card-body{padding:12px}
#style-gallery .selection .wrap{align-items:center;gap:10px;font-size:12px;padding:10px 0 max(10px,env(safe-area-inset-bottom))}
#style-gallery .selection .primary{min-height:44px;padding:8px 10px;font-size:12px;white-space:normal;max-width:46%}
#style-gallery .selection .chosen{max-width:47vw}
#style-gallery .chosen,#style-gallery .disclaimer{color:#536c88}
#style-gallery .modal-head{flex-wrap:wrap;padding:10px}
#style-gallery .modal-head h2{flex:1 1 100%;font-size:17px}
#style-gallery .modal-actions{width:100%;justify-content:space-between;gap:4px}
#style-gallery .modal-actions button,#style-gallery .modal-actions a{min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:6px 9px;font-size:12px}
#style-gallery .modal-actions .close{margin-left:auto}
#style-gallery button:focus-visible,#style-gallery a:focus-visible,#style-gallery input:focus-visible,#style-gallery select:focus-visible{outline:3px solid #0084ef;outline-offset:3px}
#style-gallery ::selection{background:#c9e7ff;color:#07265f}
/* 平板先閱讀說明，再選模式；照片在入口後方呈現。 */
@media(min-width:768px){
 #style-gallery .intro{padding:30px 0;background-position:center}
 #style-gallery .intro .wrap{gap:24px}
 #style-gallery .intro .intro-copy{max-width:760px;justify-self:center}
 #style-gallery .intro .intro-copy .kicker{font-size:13px}
 #style-gallery .intro .intro-copy h1{font-size:42px}
 #style-gallery .mode-panel{max-width:470px}
 #style-gallery .intro .mode-choice{min-height:220px;padding:18px 12px}
 #style-gallery .intro .mode-art{width:90px;height:70px}
 #style-gallery .intro .mode-text strong{font-size:20px}
 #style-gallery .intro .mode-text small{font-size:13px}
 #style-gallery .intro .mode-count b{font-size:40px}
 #style-gallery .intro .mode-hint{font-size:16px}
 #style-gallery .gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
 #style-gallery .tools{width:auto;flex:1;justify-content:flex-end}
 #style-gallery .tools input{flex:0 1 190px}
 #style-gallery .tools select,#style-gallery .favorite-filter{flex:0 0 auto}
 #style-gallery .selection .wrap{font-size:14px}
 #style-gallery .selection .primary{font-size:14px;padding:10px 20px}
 #style-gallery .selection .chosen{max-width:65vw}
 #style-gallery .modal-head{flex-wrap:nowrap}
 #style-gallery .modal-head h2{flex:1}
 #style-gallery .modal-actions{width:auto}
}
/* 桌機忠實保留左右構圖，中間留給色票照片。 */
@media(min-width:1200px){
 #style-gallery .intro{padding:30px 0;min-height:300px;background-image:linear-gradient(90deg,#edf7fff5 0%,#edf7ffcf 30%,#edf7ff00 59%),url('../assets/gallery-banner.png')}
 #style-gallery .intro .wrap{grid-template-columns:minmax(0,650px) minmax(380px,470px);justify-content:space-between;gap:60px}
 #style-gallery .intro .intro-copy{justify-self:start;max-width:650px}
 #style-gallery .intro .intro-copy h1{font-size:46px}
 #style-gallery .intro .intro-copy p{font-size:16px}
 #style-gallery .reference-note{font-size:14px}
 #style-gallery .mode-panel{justify-self:end}
 #style-gallery .gallery{grid-template-columns:repeat(4,minmax(0,1fr))}
 #style-gallery .control-top{display:flex;flex-wrap:nowrap}
 #style-gallery .tools{flex:none}
}
@media(max-width:374px){
 #style-gallery .reference-note{display:block}
 #style-gallery .reference-label{margin-bottom:5px}
 #style-gallery .intro .mode-choice{min-height:205px;padding:12px 5px}
 #style-gallery .intro .mode-choice::after{right:7px;bottom:10px;font-size:20px}
 #style-gallery .intro .mode-choice.active::after{width:22px;height:22px;font-size:17px}
 #style-gallery .intro .mode-count{justify-content:flex-start;padding-left:9px}
 #style-gallery .intro .mode-count b{font-size:30px}
 #style-gallery .intro .mode-count small{font-size:12px}
}

/* V20 | 2026-12-01：依原圖恢復藍青幾何與黃色色帶；照片僅為中央陪襯。 */
#style-gallery .intro{
 background-color:#e9f5ff;
 background-image:
  linear-gradient(132deg,#63c8f4 0 4%,transparent 4% 8%,#c7eaff 8% 11%,transparent 11%),
  linear-gradient(132deg,transparent 0 85%,#a7e0fd 85% 90%,#36b4ee 90% 95%,#008edc 95%),
  linear-gradient(115deg,#f0f8ff,#dff2ff);
 background-size:100% 100%;background-position:center;background-repeat:no-repeat;
}
#style-gallery .intro::before{
 display:block;content:'';position:absolute;z-index:-1;inset:0;width:auto;height:auto;
 border:0;border-radius:0;transform:none;box-shadow:none;pointer-events:none;
 background-image:url('../assets/gallery-banner.png');background-size:auto 260px;
 background-position:center bottom;background-repeat:no-repeat;
 mask-image:linear-gradient(to bottom,transparent 0 45%,#000 68%),linear-gradient(to right,transparent,#000 30% 70%,transparent);
 mask-composite:intersect;opacity:.72;
}
#style-gallery .intro::after{
 display:block;content:'';position:absolute;inset:0;z-index:-1;width:auto;height:auto;
 border:0;border-radius:0;transform:none;box-shadow:none;pointer-events:none;
 background:
  linear-gradient(132deg,transparent 0 15%,#fff8 15% 15.2%,transparent 15.2% 81%,#fff9 81% 81.2%,transparent 81.2%),
  linear-gradient(132deg,#ffd900 0 36%,transparent 36% 42%,#ffd900 42% 46%,transparent 46%) left 42%/80px 110px no-repeat,
  linear-gradient(132deg,transparent 0 47%,#ffda00 47% 64%,transparent 64%) right top/94px 48px no-repeat,
  linear-gradient(132deg,transparent 0 40%,#ffdd19 40% 53%,transparent 53%) right bottom/145px 68px no-repeat;
}
#style-gallery .intro .wrap{z-index:1}
@media(min-width:768px){
 #style-gallery .intro::before{background-size:auto 320px;opacity:.85}
 #style-gallery .intro::after{background-size:auto,94px 135px,140px 42px,230px 80px}
}
@media(min-width:1200px){
 #style-gallery .intro{
  background-image:
   linear-gradient(132deg,#67c9f2 0 4%,transparent 4% 8%,#c6eaff 8% 12%,transparent 12% 44%,#79d3fa 44% 48%,#26ade8 48% 52%,transparent 52%),
   linear-gradient(132deg,transparent 0 84%,#bbe8ff 84% 89%,#55c4f5 89% 94%,#0099e7 94%),
   linear-gradient(105deg,#edf8ff,#d3edff);
 }
 #style-gallery .intro::before{
  left:38%;right:24%;background-size:auto 100%;background-position:center;
  mask-image:linear-gradient(to right,transparent,#000 22% 80%,transparent);
  mask-composite:add;opacity:1;
 }
 #style-gallery .intro::after{background-size:auto,96px 145px,180px 46px,300px 80px}
 #style-gallery .intro .intro-copy{max-width:620px}
}

/* V21 | 2026-12-01：補齊參考圖兩下角點陣；照片上半部景深獨立於前景色票。 */
#style-gallery .banner-dots{position:absolute;bottom:9px;z-index:0;width:63px;height:47px;pointer-events:none;background-image:radial-gradient(circle,#fff 1.6px,transparent 1.9px);background-size:14px 14px;background-position:0 0}
#style-gallery .banner-dots-left{left:0;bottom:0;width:106px;height:73px;background-color:#67c8f3;background-position:18px 19px;clip-path:polygon(0 0,100% 0,55% 100%,0 100%)}
#style-gallery .banner-dots-right{right:8px;clip-path:polygon(30% 0,100% 0,100% 100%,0 100%)}
#style-gallery .banner-photo-blur{display:none}
@media(min-width:1200px){
 #style-gallery .banner-photo-blur{display:block;position:absolute;top:0;bottom:0;left:38%;right:24%;z-index:0;pointer-events:none;background:url('../assets/gallery-banner.png') center/auto 100% no-repeat;filter:blur(5px);mask-image:linear-gradient(to bottom,#000 0 32%,transparent 59%),linear-gradient(to right,transparent,#000 22% 80%,transparent);mask-composite:intersect}
}
@media(max-width:767px){#style-gallery .banner-dots{width:44px;height:35px;background-size:11px 11px}#style-gallery .banner-dots-left{left:8px}#style-gallery .banner-dots-right{right:5px}}

/* V22 | 2026-12-01：使用者核准A版，標籤底塊與細分隔線；窄版分層避免擠壓內文。 */
#style-gallery .reference-note{
 display:flex;flex-direction:column;align-items:stretch;gap:12px;
 padding:16px 18px;border:1px solid #bcd9f4;border-radius:12px;
 background:#f6fbfff5;box-shadow:0 4px 14px #143e7010;
 color:#15356c;font-size:14px;line-height:1.8;
}
#style-gallery .reference-note .reference-label{
 align-self:flex-start;display:inline-flex;align-items:center;gap:8px;
 padding:6px 10px;border-radius:8px;background:#e4f1ff;
 color:#1260a8;font-size:14px;font-weight:700;margin:0;
}
#style-gallery .reference-note .reference-label svg{width:20px;height:20px;margin:0;color:inherit}
#style-gallery .reference-note>span:last-child{padding-top:11px;border-top:1px solid #c9dff2}
@media(min-width:768px){
 #style-gallery .reference-note{flex-direction:row;align-items:center;gap:16px;padding:18px 20px}
 #style-gallery .reference-note .reference-label{align-self:center}
 #style-gallery .reference-note>span:last-child{padding-top:0;padding-left:16px;border-top:0;border-left:1px solid #c9dff2}
}

/* V23 | 2026-12-01：依使用者要求縮小字級與內距；寬版整句單行。 */
#style-gallery .reference-note{padding:10px 12px;gap:8px;font-size:12px;line-height:1.65;margin-top:14px;border-radius:10px}
/* V24 | 2026-12-01：提醒外框依內容收寬，不再撐滿介紹欄。 */
#style-gallery .reference-note{width:fit-content;max-width:100%}

/* V25 | 2026-12-01：核准A版雙實心按鈕；諮詢按鈕僅視覺，尚未啟用。 */
#style-gallery .selection .wrap{flex-direction:column;align-items:stretch;gap:10px;padding-block:12px max(12px,env(safe-area-inset-bottom))}
#style-gallery .selection .chosen{max-width:100%}
#style-gallery .selection-actions{display:flex;gap:8px;width:100%}
#style-gallery .selection .selection-actions .primary{flex:1;max-width:none;min-width:0;min-height:46px;padding:10px 8px;border-radius:99px;font-size:clamp(11px,3vw,12px);line-height:1.5;white-space:nowrap;font-weight:700}
#style-gallery .selection #copy{background:#071b50;border-color:#071b50;color:#fff;box-shadow:0 4px 10px #0e36611c}
#style-gallery .selection #copy:disabled{opacity:1;color:#b8c5dd;box-shadow:none;cursor:default}
#style-gallery .selection #copy:not(:disabled):hover{background:#123779;border-color:#123779}
#style-gallery .selection #consult-preview{background:#ffd900;border-color:#ffd900;color:#071b50;box-shadow:0 4px 10px #0e36611c;opacity:1;cursor:default}
@media(min-width:768px){
 #style-gallery .selection .wrap{flex-direction:row;align-items:center;gap:20px}
 #style-gallery .selection .wrap>.selection-summary{flex:1;min-width:0}
 #style-gallery .selection-actions{width:auto;flex:none;gap:10px}
 #style-gallery .selection .selection-actions .primary{flex:0 0 180px;min-width:180px;font-size:13px;padding:10px 16px}
}

/* V26 | 2026-12-01：使用者指定圖的三步驟品牌色操作區；所有色彩以本區token管理。 */
#style-gallery{--color-test-ink:#083767;--color-test-copy:#28527c;--color-test-blue:#0874d7;--color-test-sky:#dcecff;--color-test-paper:#fbfdff;--color-test-line:#b9d7f5;--color-test-shadow:#184d8a24;--color-test-clear:transparent;--color-test-palette:#9bd3ff;--color-test-step:#f8fbff}
#style-gallery #customColor{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;padding:20px 16px;margin-bottom:24px;position:relative;isolation:isolate;overflow:clip;border:1px solid var(--color-test-line);border-radius:16px;background:linear-gradient(120deg,var(--color-test-paper),var(--color-test-sky));box-shadow:0 4px 8px var(--color-test-shadow);color:var(--color-test-ink)}
#style-gallery #customColor::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(137deg,var(--color-test-clear) 0 3%,var(--color-test-sky) 3% 6%,var(--color-test-clear) 6% 9%,var(--color-test-paper) 9% 10%,var(--color-test-clear) 10% 65%,var(--color-test-paper) 65% 68%,var(--color-test-clear) 68% 83%,var(--color-test-paper) 83% 85%,var(--color-test-clear) 85%)}
#style-gallery #customColor>div{min-width:0;flex:none}
#style-gallery .brand-color-intro{display:flex;gap:12px;align-items:center}
#style-gallery .brand-palette-icon{width:42px;height:48px;flex:none;fill:var(--color-test-palette);stroke:var(--color-test-blue);stroke-width:2.8;stroke-linejoin:round}
#style-gallery .brand-palette-icon circle{fill:var(--color-test-paper)}
#style-gallery .brand-palette-icon .palette-brush{fill:var(--color-test-paper);stroke:var(--color-test-blue)}
#style-gallery .brand-color-copy{min-width:0;border-inline-start:4px solid var(--color-test-blue);padding-inline-start:12px}
#style-gallery .brand-color-copy h2{margin:0 0 6px;font-size:23px;line-height:1.25;font-weight:800;color:var(--color-test-ink);overflow-wrap:break-word;min-width:0}
#style-gallery .brand-color-copy h2 strong{font-weight:inherit}
#style-gallery .brand-color-copy p{font-size:13px;line-height:1.7;margin:0;color:var(--color-test-copy)}
#style-gallery .brand-color-steps{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding:0;margin:0;align-items:stretch}
#style-gallery .brand-color-steps li{min-width:0;position:relative;text-align:center;background:var(--color-test-step);box-shadow:0 3px 6px var(--color-test-shadow);border-radius:12px;padding:9px 3px}
#style-gallery .brand-color-steps li>div{display:flex;justify-content:center;gap:4px;align-items:center}
#style-gallery .brand-color-steps b{display:grid;place-items:center;width:23px;height:23px;flex:none;border-radius:50%;background:linear-gradient(135deg,var(--color-test-blue),var(--color-test-ink));color:var(--color-test-paper);font-size:15px;line-height:1}
#style-gallery .brand-color-steps strong{font-size:13px;line-height:1.4;white-space:nowrap}
#style-gallery .brand-color-steps li>span{display:block;font-size:11px;line-height:1.5;color:var(--color-test-copy);margin-top:5px}
#style-gallery .brand-color-steps li:not(:last-child)::after{content:'';position:absolute;width:9px;height:14px;inset-inline-end:-14px;top:50%;transform:translateY(-50%);background:var(--color-test-blue);clip-path:polygon(0 0,42% 0,100% 50%,42% 100%,0 100%,58% 50%)}
#style-gallery .brand-color-tool{min-width:0}
#style-gallery .brand-color-tool-heading{display:flex;align-items:center;gap:10px;margin-bottom:7px;flex-wrap:wrap}
#style-gallery .brand-color-tool-heading>strong{display:inline-flex;align-items:center;gap:6px;font-size:15px;color:var(--color-test-paper);background:linear-gradient(120deg,var(--color-test-blue),var(--color-test-ink));padding:6px 16px 6px 12px;border-radius:22px 0 22px 0;white-space:nowrap}
#style-gallery .brand-color-tool-heading svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round}
#style-gallery .brand-color-tool-heading>span{font-size:12px;line-height:1.5;font-weight:700;color:var(--color-test-copy)}
#style-gallery .brand-color-tool-body{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;padding:12px;background:var(--color-test-paper);border-radius:14px;box-shadow:0 3px 5px var(--color-test-shadow)}
#style-gallery #customColor form{display:flex;justify-content:center;align-items:center;gap:7px;flex-wrap:nowrap;width:100%;margin:0}
#style-gallery #customColor form label{font-size:14px;font-weight:700;color:var(--color-test-ink);white-space:nowrap}
#style-gallery #customColor input[type=color]{width:40px;height:44px;flex:none;padding:3px;background:var(--color-test-paper);border:1px solid var(--color-test-line);border-radius:6px}
#style-gallery #customColor input[type=text]{width:108px;min-width:0;min-height:44px;padding:7px 9px;color:var(--color-test-ink);background:var(--color-test-paper);border:1px solid var(--color-test-line);border-radius:6px;font-size:16px}
#style-gallery #customColor .custom-preview{width:142px;min-width:0;flex:0 1 142px;border:0;border-radius:6px;overflow:clip;background:var(--color-test-paper)}
#style-gallery #customColor .custom-swatches{display:flex;gap:4px;flex:none}
#style-gallery #customColor .custom-swatches span{width:21px;height:24px;border:1px solid var(--color-test-line);border-radius:4px}
#style-gallery #customColor input:focus-visible{outline:2px solid var(--color-test-blue);outline-offset:3px}
@media(min-width:768px){
 #style-gallery #customColor{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;padding:22px 24px}
 #style-gallery .brand-color-copy h2{font-size:26px}
 #style-gallery .brand-palette-icon{width:52px;height:58px}
 #style-gallery .brand-color-steps{align-self:center;gap:22px}
 #style-gallery .brand-color-steps strong{font-size:14px}
 #style-gallery .brand-color-steps li>span{font-size:12px}
 #style-gallery .brand-color-tool{grid-column:1/-1}
 #style-gallery .brand-color-tool-heading>span{font-size:13px}
 #style-gallery .brand-color-tool-body{gap:16px;justify-content:flex-start}
 #style-gallery #customColor form{width:auto}
 #style-gallery #customColor .custom-preview{width:152px;flex-basis:152px}
}
@media(min-width:1280px){
 #style-gallery #customColor{grid-template-columns:minmax(0,1.2fr) minmax(0,1.2fr) minmax(0,1.45fr);gap:20px;padding:18px}
 #style-gallery .brand-color-intro{gap:12px}
 #style-gallery .brand-palette-icon{width:44px;height:54px}
 #style-gallery .brand-color-copy{padding-inline-start:12px}
 #style-gallery .brand-color-copy h2{font-size:clamp(24px,1.8vw,28px);white-space:nowrap}
 #style-gallery .brand-color-copy p{font-size:13px}
 #style-gallery .brand-color-steps{gap:18px}
 #style-gallery .brand-color-steps li{padding:10px 3px}
 #style-gallery .brand-color-steps strong{font-size:13px}
 #style-gallery .brand-color-steps li>span{font-size:11px}
 #style-gallery .brand-color-tool{grid-column:auto;border-inline-start:1px solid var(--color-test-line);padding-inline-start:18px}
 #style-gallery .brand-color-tool-heading{gap:8px;flex-wrap:nowrap}
 #style-gallery .brand-color-tool-heading>strong{font-size:14px;padding:5px 12px}
 #style-gallery .brand-color-tool-heading>span{font-size:11px;line-height:1.6}
 #style-gallery .brand-color-tool-body{flex-wrap:nowrap;padding:9px;gap:9px}
 #style-gallery #customColor form{gap:5px;flex:none}
 #style-gallery #customColor form label{font-size:12px}
 #style-gallery #customColor input[type=color]{width:32px;height:38px}
 #style-gallery #customColor input[type=text]{width:85px;min-height:38px;font-size:14px;padding:6px}
 #style-gallery #customColor .custom-preview{width:103px;flex:1 1 103px}
 #style-gallery #customColor .custom-swatches{gap:3px}
 #style-gallery #customColor .custom-swatches span{width:16px;height:22px}
}
@media(max-width:374px){#style-gallery .brand-color-steps li>div{flex-direction:column;gap:4px}#style-gallery .brand-color-copy h2{font-size:21px}#style-gallery .brand-palette-icon{width:36px}}

/* V27 | 2026-12-01：依指定圖重新校準白底、局部幾何、工具大小及配色卡材質。 */
#style-gallery{--color-test-faint:#f6faff;--color-test-header:#d8eaff;--color-palette-base:#f4faf7;--color-palette-edge:#d2e3ef;--color-palette-shadow:#163f6b2d;--color-palette-number:#062d4c;--color-palette-favorite-bg:#fce5eb;--color-palette-favorite-line:#edb9ca;--color-palette-favorite-ink:#b83b64}
#style-gallery #customColor{background:linear-gradient(105deg,var(--color-test-paper) 0%,var(--color-test-faint) 70%,var(--color-test-sky) 100%);border-color:var(--color-palette-edge);box-shadow:0 3px 5px var(--color-test-shadow)}
#style-gallery #customColor::before{background:linear-gradient(135deg,var(--color-test-clear) 0% 16%,var(--color-test-sky) 16% 32%,var(--color-test-clear) 32% 48%,var(--color-test-faint) 48% 58%,var(--color-test-clear) 58%) left top/115px 100% no-repeat,linear-gradient(137deg,var(--color-test-clear) 0% 46%,var(--color-test-sky) 46% 60%,var(--color-test-clear) 60% 69%,var(--color-test-paper) 69% 72%,var(--color-test-clear) 72%) right bottom/310px 100% no-repeat;opacity:.65}
#style-gallery .brand-color-tool-heading{background:linear-gradient(105deg,var(--color-test-header),var(--color-test-sky));border-radius:21px 0 15px 0;gap:8px;margin-bottom:4px}
#style-gallery .brand-color-tool-heading>strong{border-radius:21px 0 15px 0;clip-path:polygon(0 0,100% 0,92% 100%,0 100%);padding-inline-end:18px}
#style-gallery .brand-color-tool-heading>span{flex:1;text-align:center;padding:4px 8px 4px 0}
#style-gallery .brand-color-tool-body{box-shadow:0 2px 5px var(--color-test-shadow)}
#style-gallery .brand-color-steps li{background:linear-gradient(155deg,var(--color-test-paper),var(--color-test-faint));box-shadow:0 3px 6px var(--color-test-shadow)}
#style-gallery .brand-color-steps b{box-shadow:inset 0 1px 1px var(--color-test-paper),0 1px 2px var(--color-test-shadow)}
#style-gallery .gallery .palette-card{border-color:var(--color-palette-edge);border-radius:14px;background:var(--color-test-paper);box-shadow:0 8px 16px var(--color-palette-shadow),0 3px 5px var(--color-test-shadow)}
#style-gallery .gallery .palette-card .card-body{padding:12px 10px 10px;gap:10px;background:linear-gradient(135deg,var(--color-test-faint),var(--color-palette-base));border-top:0}
#style-gallery .gallery .palette-card .card-title h2{font-size:16px;font-weight:500;color:var(--color-test-ink)}
#style-gallery .gallery .palette-card .card-title .num{background:var(--color-palette-number);border-color:var(--color-palette-number);border-radius:7px;min-width:38px;height:32px;font-size:15px}
#style-gallery .gallery .palette-card .heart{background:var(--color-test-paper);color:var(--color-test-copy);border-color:var(--color-test-paper);border-radius:8px;box-shadow:0 4px 9px var(--color-test-shadow)}
#style-gallery .gallery .palette-card .heart.on{background:var(--color-palette-favorite-bg);border-color:var(--color-palette-favorite-line);color:var(--color-palette-favorite-ink)}
#style-gallery .gallery .palette-card .swatches{gap:5px;padding:5px;border-radius:9px;background:var(--color-test-paper);border-color:var(--color-palette-edge)}
#style-gallery .gallery .palette-card .swatches span{height:23px;border-radius:5px;border-color:var(--color-palette-edge)}
@media(min-width:768px){
 #style-gallery[data-gallery-mode=palette] .gallery{padding-inline:24px}
}
@media(min-width:1280px){
 #style-gallery #customColor{grid-template-columns:minmax(0,1.1fr) minmax(0,1.1fr) minmax(0,1.2fr);gap:16px;padding:8px 16px;margin-bottom:24px}
 #style-gallery[data-gallery-mode=palette] .gallery-content{width:min(calc(100% - 36px),1390px)}
 #style-gallery #customColor::before{background-size:115px 100%,370px 100%}
 #style-gallery .brand-palette-icon{width:45px;height:54px}
 #style-gallery .brand-color-copy h2{font-size:clamp(23px,1.85vw,28px);margin-bottom:5px}
 #style-gallery .brand-color-copy p{font-size:12px;line-height:1.6}
 #style-gallery .brand-color-steps{gap:24px}
 #style-gallery .brand-color-steps li{padding:7px 3px;border-radius:12px}
 #style-gallery .brand-color-steps li>div{gap:5px}
 #style-gallery .brand-color-steps b{width:26px;height:26px;font-size:17px}
 #style-gallery .brand-color-steps strong{font-size:14px}
 #style-gallery .brand-color-steps li>span{font-size:12px;margin-top:3px}
 #style-gallery .brand-color-steps li:not(:last-child)::after{width:15px;height:22px;inset-inline-end:-20px}
 #style-gallery .brand-color-tool{padding-inline-start:13px}
 #style-gallery .brand-color-tool-heading{flex-wrap:nowrap;min-height:28px}
 #style-gallery .brand-color-tool-heading>strong{font-size:14px;padding:4px 18px 4px 12px}
 #style-gallery .brand-color-tool-heading>span{font-size:11px;line-height:1.4}
 #style-gallery .brand-color-tool-body{display:flex;justify-content:space-between;min-height:63px;gap:8px;padding:6px 10px;border-radius:14px}
 #style-gallery #customColor input[type=color]{width:30px;height:36px}
 #style-gallery #customColor input[type=text]{width:85px;min-height:36px;height:36px}
 #style-gallery #customColor .custom-preview{width:110px;max-width:110px;flex:0 0 110px}
 #style-gallery #customColor .custom-swatches span{width:17px;height:22px}
 #style-gallery[data-gallery-mode=palette] .gallery{padding-inline:32px;gap:20px}
}
#style-gallery .reference-note .reference-label{padding:4px 7px;gap:6px;font-size:12px;line-height:1.5;border-radius:6px}
#style-gallery .reference-note .reference-label svg{width:16px;height:16px}
#style-gallery .reference-note>span:last-child{padding-top:7px}
@media(min-width:768px){
 #style-gallery .reference-note{gap:10px;flex-wrap:nowrap}
 #style-gallery .reference-note>span:last-child{padding-top:0;padding-left:10px;white-space:nowrap;font-size:12px}
}

/* V28 | 2026-12-01：逐項補回原稿底部長帶、步驟下的重疊斜片與標題帶右側斜口。 */
#style-gallery{--color-test-ribbon:#cfe3f8;--color-test-ribbon-light:#edf5ff;--color-test-overlap:#e8f2fe;--color-test-band-end:#c4dfff}
#style-gallery .brand-color-bottom-ribbon{position:absolute;pointer-events:none;z-index:-1;left:16px;bottom:1px;width:52%;height:6px;transform:skewX(-34deg);transform-origin:left bottom;background:linear-gradient(90deg,var(--color-test-ribbon),var(--color-test-ribbon-light));box-shadow:0 -1px 0 var(--color-test-paper)}
#style-gallery .brand-color-overlap{position:absolute;pointer-events:none;z-index:-1;left:50%;bottom:5px;width:17%;height:44%;background:linear-gradient(136deg,var(--color-test-clear) 0 33%,var(--color-test-overlap) 33% 49%,var(--color-test-clear) 49% 55%,var(--color-test-paper) 55% 68%,var(--color-test-clear) 68% 73%,var(--color-test-paper) 73% 79%,var(--color-test-clear) 79%);opacity:.9}
#style-gallery .brand-color-tool-heading{position:relative;clip-path:polygon(0 0,100% 0,97.5% 100%,0 100%);padding-inline-end:12px;isolation:isolate}
#style-gallery .brand-color-tool-heading::after{content:'';position:absolute;right:2px;top:0;bottom:0;width:12px;background:var(--color-test-band-end);transform:skewX(-18deg);pointer-events:none;z-index:-1}
#style-gallery .brand-color-copy h2{font-weight:900;-webkit-text-stroke:.6px currentColor}
#style-gallery .brand-color-steps strong{font-weight:900;-webkit-text-stroke:.15px currentColor}
#style-gallery .brand-palette-icon{stroke-width:3;filter:drop-shadow(0 1px 1px var(--color-test-shadow))}
@media(min-width:1280px){
 #style-gallery #customColor{grid-template-columns:minmax(0,1.13fr) minmax(0,1.1fr) minmax(0,1.17fr);padding-inline-start:22px}
 #style-gallery .brand-color-intro{gap:16px}
 #style-gallery .brand-palette-icon{width:54px}
 #style-gallery .brand-color-copy{padding-inline-start:14px}
 #style-gallery .brand-color-copy h2{font-size:clamp(25px,2.2vw,31.5px)}
 #style-gallery .brand-color-copy p{font-size:12.5px}
 #style-gallery .brand-color-steps{gap:32px}
 #style-gallery .brand-color-steps strong{font-size:15px}
 #style-gallery .brand-color-steps b{width:28px;height:28px;font-size:18px}
 #style-gallery .brand-color-steps li:not(:last-child)::after{inset-inline-end:-24px}
 #style-gallery .brand-color-overlap{left:54%;width:13%;height:36%}
 #style-gallery .brand-color-tool-heading>strong{font-size:15px}
 #style-gallery .brand-color-tool-heading>span{font-size:12px;font-weight:700}
 #style-gallery #customColor form label{font-size:14px}
 #style-gallery #customColor .custom-preview{width:118px;max-width:118px;flex-basis:118px}
}
@media(max-width:767px){
 #style-gallery .brand-color-bottom-ribbon{width:80%;height:5px}
 #style-gallery .brand-color-overlap{left:47%;width:48%;height:24%}
}

/* V29 | 2026-12-01：圈選處代表整條小標題底色，移除誤加的細色邊。 */
#style-gallery{--color-test-title-band:#cfe4ff}
#style-gallery .brand-color-tool-heading{background:var(--color-test-title-band);border:0;box-shadow:none;border-radius:21px 0 0 0;clip-path:polygon(0 0,100% 0,97.5% 100%,0 100%)}
#style-gallery .brand-color-tool-heading::after{content:none;display:none}
#style-gallery .brand-color-tool-heading>span{background:var(--color-test-clear)}

/* V30 | 2026-12-01：依使用者直接指定改為黑底白字「放大檢視」。 */
#style-gallery{--color-zoom-background:#000;--color-zoom-foreground:#fff;--color-zoom-hover:#202020;--color-zoom-border:#ffffff99}
#style-gallery .gallery .thumb-zoom{background:var(--color-zoom-background);color:var(--color-zoom-foreground);border-color:var(--color-zoom-border);border-radius:8px;padding:8px 14px;min-height:44px;font-size:13px;font-weight:600}
#style-gallery .gallery .thumb-zoom:hover{background:var(--color-zoom-hover);color:var(--color-zoom-foreground)}

/* V32 | 2026-12-01：補回與文字對齊的放大鏡圖示。 */
#style-gallery .gallery .thumb-zoom{display:inline-flex;align-items:center;justify-content:center;gap:7px}
#style-gallery .gallery .thumb-zoom svg{width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* V33 | 2026-12-01：核准B版淡藍膠囊，縮小外觀；透明點擊區補足觸控高度。 */
#style-gallery{--color-zoom-background:#e7f3ff;--color-zoom-foreground:#0c5798;--color-zoom-border:#b6d5f3;--color-zoom-hover:#d7ebff;--color-zoom-shadow:#153e7026}
#style-gallery .gallery .thumb-zoom{min-height:30px;padding:4px 8px;gap:5px;border-radius:99px;font-size:12px;line-height:1.5;box-shadow:0 3px 9px var(--color-zoom-shadow)}
#style-gallery .gallery .thumb-zoom svg{width:14px;height:14px}
#style-gallery .gallery .thumb-zoom::before{content:'';position:absolute;inset:-7px -2px;border-radius:inherit}

/* V34 | 2026-12-01：放大檢視按鈕使用一般手形游標。 */
#style-gallery .gallery .thumb-zoom{cursor:pointer}

/* V35 | 2026-12-01：已收藏項目採淡藍圓角標籤，數字後方用小弧線分隔名稱。 */
#style-gallery{--color-chosen-bg:#eaf3ff;--color-chosen-edge:#c8ddf4;--color-chosen-ink:#284d78;--color-chosen-code:#145b9b;--color-chosen-arc:#9ebfe3}
#style-gallery .selection #chosen{display:flex;flex-wrap:wrap;gap:6px;max-width:100%;max-height:76px;white-space:normal;overflow-x:clip;overflow-y:auto;margin-top:6px;scrollbar-width:thin;scrollbar-color:var(--color-chosen-edge) transparent}
#style-gallery .selection .chosen-chip{display:inline-flex;align-items:center;max-width:100%;padding:3px 10px 3px 9px;background:var(--color-chosen-bg);border:1px solid var(--color-chosen-edge);border-radius:99px;color:var(--color-chosen-ink);font-size:12px;line-height:1.6}
#style-gallery .chosen-chip b{position:relative;display:inline-flex;align-items:center;justify-content:center;align-self:stretch;flex:none;min-width:22px;padding-inline-end:8px;margin-inline-end:7px;font-weight:700;color:var(--color-chosen-code)}
#style-gallery .chosen-chip b::after{content:'';position:absolute;right:0;top:-2px;bottom:-2px;width:10px;border-right:1px solid var(--color-chosen-arc);border-radius:0 60% 60% 0;pointer-events:none}
#style-gallery .chosen-chip-name{min-width:0;overflow-wrap:anywhere}
