/* 大發家：白底黑字，照片保留原色。 */
:root{--green:#111;--gold:#111;--line:#d9d9d9;--paper:#fff;--surface:#fff;--muted:#555;color:#111;background:#fff;color-scheme:light}
body{color:#111;background:#fff}
header{max-width:1320px;background:#fff;border-color:#ddd;color:#111}
header .brand{color:#111}
header .brand .channel-avatar{display:block;width:48px;height:48px;flex:none;object-fit:cover;border-radius:50%;border:2px solid #aaa}
.brand small{color:#555}
nav a{color:#333}nav a:hover,nav a.active{color:#000;border-bottom-color:#111}
main{max-width:1280px}
footer{max-width:1280px;border-color:#ddd;color:#333}footer span{color:#666}
h1,h2,h3,.price{color:#111}
.eyebrow{color:#555}.heading p,.result-count,.guide-section .toolbar p{color:#555}
.channel-banner{overflow:hidden;border-radius:14px;background:#f4f4f4;margin:0 0 18px;box-shadow:0 10px 30px #00000012}
.channel-banner img{display:block;width:100%;height:auto;aspect-ratio:2560/424;object-fit:cover}
.shop-hero.selected-banner{background:#f4f4f4}
.button,button{background:#fff;color:#111;border-color:#999}.button:hover,button:hover{background:#f1f1f1;color:#111}
.button.primary,button.primary,.tabs button.selected{background:#111;color:#fff;border-color:#111}.button.primary:hover,button.primary:hover,.tabs button.selected:hover{background:#333;color:#fff}
button:disabled{opacity:.5}
.panel,.product,.metric,.cart,.checkout-dialog,.media-card,.camp-card,.category-card,.entry-grid a{background:#fff;border-color:#ddd;color:#111}
.entry-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:44px}
.entry-grid a{min-height:124px;background:#fff;transition:transform .2s,border-color .2s}
.entry-grid a:hover{transform:translateY(-3px);border-color:#111}
.entry-grid span,.product p,.help,.muted,.status-text,small{color:#555}
.product img,.camp-card>img,.media-card img{background:#f2f2f2}
.photo-empty{background:#f2f2f2;color:#555}
input,select,textarea{background:#fff;color:#111;border-color:#aaa;color-scheme:light}
input::placeholder,textarea::placeholder{color:#666}
input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,a:focus-visible{outline:2px solid #111;outline-offset:2px}
input[type=checkbox]{accent-color:#111}
.category-nav a,.region-links button{background:#fff;color:#111;border-color:#aaa}
.category-nav a.selected,.region-links button.selected{background:#111;color:#fff;border-color:#111}
.badge,.sub-pill{background:#eee;color:#111}
.watch,.camp-video-list a,.location-source,.full-rules a,.full-rules-link{color:#111;text-underline-offset:3px}
.total,.receipt-item,.cart h2,th,td,.camp-card details,.camp-region>h2{border-color:#ddd}th{background:#f4f4f4;color:#111}
.table-wrap,.table-wrap td{background:#fff;color:#111}.table-wrap td strong{color:#111}.table-wrap td a{color:#111;text-decoration:underline}.table-wrap td small{color:#555}
.order-code{background:#f1f1f1;color:#111}
#notice:not(:empty){background:#111;color:#fff;border:1px solid #111}
.alert,.alert.error,.error{background:#f5f5f5;border-color:#aaa;color:#111}
.success,.quick-pickup,.wish-panel{border-top-color:#111}
dialog{background:#fff;color:#111;border-color:#aaa}
dialog::backdrop,.checkout-dialog::backdrop{background:#0009}
.consent-row,.checkout-dialog-actions{background:#f7f7f7;border-color:#ddd;color:#111}
.checkout-dialog-heading{border-color:#ddd}.dialog-close{background:#eee;color:#111}
.dialog-kicker,.checkout-dialog-body>p,.checkout-rule-list p{color:#555}
.checkout-rule-list li{border-color:#ddd}.rule-number{background:#eee;color:#111}
.rules{background:#f5f5f5;color:#111;border-color:#ddd}.rules strong{color:#111}
.stock-countdown{background:#eee;color:#111}.stock-countdown.sold-out{background:#ddd;color:#111}
.image-upload,.image-picker{background:#fafafa;border-color:#bbb}.image-preview,.image-picker img,.image-picker .photo-empty{background:#f2f2f2;color:#555}
.file-button{background:#111;border-color:#111;color:#fff}
@media(max-width:900px){.entry-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){
 header .brand .channel-avatar{width:42px;height:42px}
 .channel-banner{border-radius:12px;margin-bottom:16px}
 .channel-banner img{width:100%;height:auto;aspect-ratio:1526/414;object-fit:contain}
 .entry-grid{grid-template-columns:1fr}.entry-grid a{min-height:100px}
}
/* 商城式首頁：品牌導覽、寬幅輪播與商品區。 */
.announcement{background:#111;color:#fff;text-align:center;padding:9px 18px;font-size:12px;letter-spacing:.16em}
header{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:22px 24px 16px}
header .brand{font-size:24px;gap:13px}
header nav{margin:0;justify-content:center;gap:12px 30px}
header nav a{font-size:14px;letter-spacing:.03em}
.home-carousel{position:relative;overflow:hidden;border-radius:2px;background:#f1f1f1;aspect-ratio:1526/414;margin:0 0 36px}
.carousel-track,.carousel-slide,.carousel-slide>picture,.carousel-slide>img{width:100%;height:100%}
.carousel-slide{position:absolute;inset:0;display:block;visibility:hidden;opacity:0;transition:opacity .5s ease;overflow:hidden;color:#fff;text-decoration:none}
.carousel-slide.is-active{visibility:visible;opacity:1;z-index:1}
.carousel-slide img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.family-slide img{object-fit:contain;background:#171717}
.editorial-slide::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#000b 0%,#0005 55%,transparent 100%)}
.carousel-caption{position:absolute;z-index:1;left:7%;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:flex-start;gap:14px;color:#fff}
.carousel-caption small{font-size:12px;color:#fff;letter-spacing:.2em}
.carousel-caption strong{font-size:clamp(24px,4vw,52px);line-height:1.2;letter-spacing:.04em}
.carousel-caption>span{border:1px solid #fff;padding:10px 18px;font-size:14px;font-weight:700}
.carousel-arrow{position:absolute;z-index:2;top:50%;transform:translateY(-50%);width:42px;height:42px;min-height:42px;padding:0;border:1px solid #ffffffaa;border-radius:50%;background:#1118;color:#fff;font-size:30px;line-height:1}
.carousel-arrow:hover{background:#111;color:#fff}.carousel-prev{left:14px}.carousel-next{right:14px}
.carousel-dots{position:absolute;z-index:2;bottom:14px;left:50%;transform:translateX(-50%);display:flex;gap:8px}
.carousel-dots button{width:9px;height:9px;min-height:9px;padding:0;border:1px solid #fff;border-radius:50%;background:#ffffff88}
.carousel-dots button.is-active{background:#fff}
.home-products .products{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.home-products .product img,.home-products .photo-empty{aspect-ratio:1/1}
.home-products .toolbar h2{font-size:27px;letter-spacing:.02em}
@media(max-width:900px){.home-products .products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){
 .announcement{font-size:11px;padding:8px 10px}
 header{gap:12px;padding:14px 12px 12px}
 header .brand{font-size:20px}
 header nav{margin:0;gap:5px 15px;justify-content:center}
 header nav a{font-size:12px;padding:7px 0}
 .home-carousel{aspect-ratio:1526/414;margin:0 0 24px;border-radius:0}
 .carousel-caption{left:9%;gap:5px}.carousel-caption small{font-size:8px}.carousel-caption strong{font-size:clamp(13px,4.5vw,22px)}.carousel-caption>span{font-size:10px;padding:5px 8px}
 .carousel-arrow{width:26px;height:26px;min-height:26px;font-size:19px}.carousel-prev{left:5px}.carousel-next{right:5px}
 .carousel-dots{bottom:5px;gap:5px}.carousel-dots button{width:6px;height:6px;min-height:6px}
 .home-products .toolbar h2{font-size:23px}
}
@media(prefers-reduced-motion:reduce){.carousel-slide{transition:none}}
/* 後台手機照片選取與 Banner 管理。 */
.image-upload input[type=file],dialog input[type=file]{position:static;width:100%;height:auto;min-height:48px;clip:auto;overflow:visible;white-space:normal;padding:10px;background:#fff;border:1px solid #aaa;border-radius:8px;color:#111}
.image-upload{margin:16px 0}.image-upload label{margin-top:0}
.image-preview{max-height:280px;aspect-ratio:4/3;overflow:hidden;border:1px solid #ddd;border-radius:10px;display:grid;place-items:center;margin:12px 0;background:#f4f4f4}
.image-preview img{width:100%;height:100%;object-fit:contain}
.banner-preview{max-height:320px;aspect-ratio:1526/414}
.banner-admin-list{display:grid;gap:14px}.banner-admin-card{display:grid;grid-template-columns:minmax(180px,38%) 1fr;gap:18px;align-items:center;margin:0}.banner-admin-card>img{width:100%;aspect-ratio:1526/414;object-fit:cover;background:#eee}.banner-admin-card p{color:#555}
@media(max-width:640px){.banner-admin-card{grid-template-columns:1fr}.banner-admin-card>img{max-height:210px}.banner-preview{min-height:100px}}

/* 前台與後台共用的台灣時間列。 */
.site-clock{display:flex;justify-content:center;align-items:center;min-height:36px;padding:7px 14px;background:#111;color:#fff;text-align:center;font-size:13px;font-weight:500;letter-spacing:.06em;font-variant-numeric:tabular-nums}
.site-clock time{color:#fff}
@media(max-width:640px){.site-clock{min-height:32px;padding:6px 10px;font-size:12px}}

@media(min-width:901px){.entry-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* 商城只顯示購物車圖示，明細與結帳資料在需要時展開。 */
.shop-products .products{grid-template-columns:repeat(3,minmax(0,1fr))}
.cart-toggle{position:fixed;right:20px;top:42%;z-index:39;display:flex;align-items:center;gap:6px;min-width:72px;height:56px;padding:10px 12px;border:1px solid #111;border-radius:30px;background:#111;color:#fff;box-shadow:0 6px 22px #0003}
.cart-toggle:hover{background:#333;color:#fff}
.cart-toggle svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cart-count{display:grid;place-items:center;min-width:20px;height:20px;padding:0 4px;border-radius:50%;background:#fff;color:#111;font-size:11px;font-weight:800}
.cart-chevron{font-size:18px;line-height:1}
.cart-backdrop{position:fixed;inset:0;z-index:40;background:#0006}
.cart-drawer{position:fixed;right:0;top:0;bottom:0;z-index:41;width:min(400px,100vw);margin:0;padding:24px;overflow-y:auto;border-radius:0;box-shadow:-12px 0 30px #0002}
.cart-drawer-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #ddd}
.cart-drawer-heading h2{margin:0;padding:0 0 14px;border:0}
.cart-drawer-heading button{width:40px;min-height:40px;padding:0;font-size:26px;line-height:1}
.cart-drawer .full{margin-top:22px}
.cart-backdrop[hidden],.cart-drawer[hidden]{display:none!important}
#checkout-summary{padding-bottom:12px;border-bottom:1px solid #ddd}
@media(max-width:900px){.shop-products .products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.cart-toggle{right:12px;top:auto;bottom:16px;height:52px;min-width:66px}.cart-drawer{width:min(360px,100vw);padding:20px}.shop-products .products{grid-template-columns:repeat(2,minmax(0,1fr))}}

.cart-hint{position:absolute;right:0;bottom:calc(100% + 6px);padding:5px 9px;border:1px solid #111;border-radius:999px;background:#fff;color:#111;white-space:nowrap;font-size:12px;font-weight:700;line-height:1.2;box-shadow:0 3px 10px #0002}

.video-category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:26px 0 48px}.video-category-card{position:relative;display:flex;gap:20px;align-items:flex-start;padding:28px;border:1px solid #ddd;border-radius:14px;color:#111;background:#fff;text-decoration:none;transition:border-color .2s,transform .2s}.video-category-card:hover{border-color:#111;transform:translateY(-3px)}.video-category-number{font-size:12px;letter-spacing:.08em;color:#777;border:1px solid #ddd;border-radius:50%;height:34px;width:34px;display:grid;place-items:center;flex-shrink:0}.video-category-card h2{border:0;margin:0 0 8px;padding:0;font-size:23px}.video-category-card p{font-size:14px;line-height:1.8;margin:0 20px 12px 0;color:#555}.video-category-card small{font-size:12px;color:#777}.video-category-arrow{margin-left:auto;font-size:23px}.video-category-context{margin-bottom:30px}.video-breadcrumb{display:flex;gap:10px;align-items:center;font-size:13px;color:#777;margin:0 0 20px}.video-breadcrumb a{color:#333}.video-subnav{display:flex;gap:9px;justify-content:flex-start;flex-wrap:wrap}.video-subnav a{padding:9px 16px;border:1px solid #ddd;border-radius:999px;font-size:14px;color:#333;text-decoration:none}.video-subnav a:hover,.video-subnav a.selected{background:#111;border-color:#111;color:#fff}.video-category-card:focus-visible,.video-subnav a:focus-visible{outline:3px solid #777;outline-offset:3px}@media(max-width:640px){.video-category-grid{grid-template-columns:1fr;gap:12px}.video-category-card{padding:22px;gap:14px}.video-category-card h2{font-size:21px}.video-subnav{gap:7px}.video-subnav a{padding:8px 12px;font-size:13px}}

.banner-preview{overflow:hidden;position:relative;max-height:none;min-height:0;height:auto}.banner-preview img{display:block;width:100%;height:100%;position:absolute;inset:0}.banner-crop-controls{margin:18px 0}.banner-crop-controls input[type="range"]{padding:0;width:100%;accent-color:#12382f}
