/* HL3C product backend + frontend v2 */
.product-toolbar{display:grid;grid-template-columns:260px 1fr auto;gap:16px;align-items:end}
.product-toolbar label{display:block;margin-bottom:6px;font-weight:700}
.toolbar-actions{display:flex;gap:8px}
.form-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.form-grid-3{display:grid;grid-template-columns:1fr 1fr 160px;gap:16px}
.product-editor h2{margin-top:0}
.img-preview-box{margin-top:10px;border:1px solid var(--line);border-radius:14px;padding:10px;background:#f8fafc;width:240px}
.img-preview-box img{max-width:100%;height:130px;object-fit:contain;display:block}
.product-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:20px}
.product-admin-card{display:grid;grid-template-columns:190px 1fr;background:white;border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 6px 24px rgba(0,0,0,.04)}
.product-admin-img{position:relative;background:#f1f5f9}
.product-admin-img img{width:100%;height:100%;min-height:180px;object-fit:cover}
.product-admin-img span{position:absolute;left:10px;top:10px;background:var(--brand);color:white;border-radius:999px;padding:4px 10px;font-size:13px}
.product-admin-body{padding:18px}
.product-admin-body h3{margin:0 0 8px;font-size:20px}
.product-admin-body p{margin:4px 0;color:#4b5563}
.admin-card-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.admin-card-actions a{background:#f3f4f6;border:1px solid #e5e7eb;border-radius:8px;padding:6px 10px}
.admin-card-actions a.danger{background:#fff1f2;color:#be123c}

.category-hero-v2{background:linear-gradient(135deg,#111827 0%,#1f2937 60%,#e8422c 160%);padding:76px 7vw}
.eyebrow{font-size:13px;letter-spacing:.18em;color:#fca5a5;font-weight:800;margin-bottom:14px}
.category-search-v2{display:flex;gap:10px;margin-bottom:26px}
.category-search-v2 input{flex:1}
.product-card-v2{transition:.2s ease}
.product-card-v2:hover{transform:translateY(-4px);box-shadow:0 16px 40px rgba(0,0,0,.08)}
.product-card-img-wrap{position:relative;overflow:hidden;background:#f3f4f6}
.product-card-img-wrap img{height:220px}
.product-card-img-wrap span{position:absolute;left:12px;top:12px;background:var(--brand);color:white;border-radius:999px;padding:5px 12px;font-size:14px;font-weight:700}
.sku-v2{font-size:13px;color:#6b7280;margin-bottom:6px}

.product-hero-v2{display:grid;grid-template-columns:1fr 1fr;gap:44px;padding:70px 7vw;background:linear-gradient(180deg,#fff 0%,#f8fafc 100%)}
.product-gallery-v2{background:white;border:1px solid var(--line);border-radius:28px;padding:18px;box-shadow:0 16px 45px rgba(0,0,0,.06)}
.product-main-img-v2{width:100%;height:480px;object-fit:contain;background:#f8fafc;border-radius:20px}
.product-thumbs-v2{display:flex;gap:10px;margin-top:12px;overflow:auto}
.product-thumbs-v2 button{border:1px solid var(--line);border-radius:12px;background:white;padding:4px;cursor:pointer}
.product-thumbs-v2 img{width:90px;height:70px;object-fit:cover;border-radius:8px}
.product-info-v2{align-self:center}
.product-info-v2 h1{font-size:clamp(34px,4.5vw,58px);line-height:1.15;margin:12px 0 16px}
.product-badge-v2{display:inline-block;background:#fee2e2;color:#b91c1c;border-radius:999px;padding:6px 13px;font-weight:800}
.product-cat-v2{display:inline-block;color:#e8422c;font-weight:800;margin-left:0}
.product-summary-v2{font-size:20px;color:#4b5563}
.product-price-v2{font-size:22px;color:#e8422c;font-weight:900;margin:20px 0}
.product-cta-v2{margin:20px 0}
.product-note-v2{background:white;border:1px solid var(--line);border-radius:16px;padding:16px;color:#4b5563}
.product-detail-v2{display:grid;grid-template-columns:1.3fr .7fr;gap:30px;padding:60px 7vw}
.product-content-v2,.product-spec-v2{background:white;border:1px solid var(--line);border-radius:24px;padding:28px;box-shadow:0 10px 30px rgba(0,0,0,.04)}
.product-spec-v2 table{border-collapse:collapse}
.product-spec-v2 th{width:120px;color:#111827;background:#f8fafc}
.product-spec-v2 th,.product-spec-v2 td{border-bottom:1px solid var(--line);padding:13px;text-align:left}

@media(max-width:900px){
  .product-toolbar,.form-grid-2,.form-grid-3,.product-admin-grid,.product-admin-card,.product-hero-v2,.product-detail-v2{grid-template-columns:1fr}
  .category-search-v2{flex-direction:column}
  .product-main-img-v2{height:320px}
}


/* =========================================================
   HL3C Product V2 - Soft Professional Bright Theme
========================================================= */
.category-hero-v2{
  background:
    radial-gradient(circle at 88% 18%, rgba(217,106,69,.2), transparent 34%),
    linear-gradient(135deg,#172033 0%,#25364c 70%,#31465f 100%);
  color:#f8fafc;
}
.eyebrow{color:#f3b49c}
.category-search-v2 input{
  background:#fff;
  border-color:#d7e0ea;
  box-shadow:0 8px 22px rgba(23,32,51,.045);
}
.product-card-v2{
  background:#fff;
  border:1px solid rgba(23,32,51,.08);
  border-radius:24px;
  box-shadow:0 10px 28px rgba(23,32,51,.055);
}
.product-card-v2:hover{transform:translateY(-5px);box-shadow:0 20px 52px rgba(23,32,51,.11)}
.product-card-img-wrap{background:#eef3f7}
.product-card-img-wrap span{background:var(--brand);box-shadow:0 8px 18px rgba(217,106,69,.22)}
.sku-v2{color:#64748b}
.product-hero-v2{
  background:
    radial-gradient(circle at 88% 16%, rgba(217,106,69,.11), transparent 32%),
    linear-gradient(180deg,#f8fafc 0%,#eef3f7 100%);
}
.product-gallery-v2,.product-content-v2,.product-spec-v2{
  background:#fff;
  border:1px solid rgba(23,32,51,.08);
  box-shadow:0 16px 42px rgba(23,32,51,.07);
}
.product-main-img-v2{background:#f3f6f9}
.product-thumbs-v2 button{border-color:#d7e0ea;background:#fff}
.product-thumbs-v2 button:hover{border-color:rgba(217,106,69,.65);box-shadow:0 8px 18px rgba(217,106,69,.13)}
.product-info-v2 h1{color:var(--ink-strong);letter-spacing:-.02em}
.product-badge-v2{background:#fff0ea;color:#b9573b}
.product-cat-v2,.product-price-v2{color:var(--brand)}
.product-summary-v2{color:#475569;line-height:1.85}
.product-note-v2{background:#fffaf7;border-color:#f0ded4;color:#475569}
.product-spec-v2 th{background:#eef3f7;color:var(--ink-strong)}
.product-spec-v2 th,.product-spec-v2 td{border-bottom-color:#dbe3ec}

/* =========================================================
   HL3C 前台統一柔和專業主題 v29
   放在最後載入；或覆蓋目前 active 的 site-theme 檔
   風格：明亮柔和、不刺眼、專業影音設備租賃
   ========================================================= */
:root{
  --brand:#d8643f !important;
  --brand-2:#ef8b68 !important;
  --brand-soft:#fff1eb !important;
  --ink:#1e293b !important;
  --muted:#64748b !important;
  --line:#dfe7ef !important;
  --soft:#f3f6fa !important;
  --soft-2:#eaf1f7 !important;
  --dark:#172033 !important;
  --navy:#172033 !important;
  --card:#ffffff !important;
  --shadow:0 14px 36px rgba(30,41,59,.08) !important;
  --shadow-hover:0 20px 52px rgba(30,41,59,.12) !important;
}
html{background:#f3f6fa !important;}
body{
  background:
    radial-gradient(circle at 10% 0%, rgba(216,100,63,.10), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(93,120,150,.12), transparent 32%),
    linear-gradient(180deg,#f7f9fc 0%,#eef3f8 52%,#f7f9fc 100%) !important;
  color:var(--ink) !important;
}
a{color:inherit;}
.site-header,
.header,
.main-header,
.navbar{
  background:rgba(255,255,255,.92) !important;
  color:var(--ink) !important;
  border-bottom:1px solid rgba(30,41,59,.08) !important;
  box-shadow:0 10px 28px rgba(30,41,59,.06) !important;
  backdrop-filter:blur(14px) !important;
}
.brand,
.logo,
.site-logo,
.site-title{
  color:var(--navy) !important;
}
.brand::after,
.logo::after{background:var(--brand) !important;}
.top-nav a,
.site-header a,
.navbar a{
  color:var(--ink) !important;
}
.top-nav a:hover,
.site-header a:hover,
.navbar a:hover{
  color:var(--brand) !important;
  border-color:var(--brand) !important;
}
.nav-toggle{background:var(--navy) !important;color:#fff !important;}

/* Hero / 首頁主視覺 */
.hero,
.home-hero-v2,
.category-hero,
.category-hero-v2,
.page-hero-v2,
.product-hero-v2{
  background:
    radial-gradient(circle at 12% 16%, rgba(216,100,63,.16), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(93,120,150,.18), transparent 34%),
    linear-gradient(135deg,#f7f9fc 0%,#eef4f9 52%,#f9f4ef 100%) !important;
  color:var(--ink) !important;
}
.hero h1,
.home-hero-content-v2 h1,
.category-hero h1,
.category-hero-v2 h1,
.page-hero-text-v2 h1,
.product-info-v2 h1{
  color:var(--navy) !important;
  letter-spacing:.01em;
}
.hero p,
.home-hero-content-v2 p,
.category-hero p,
.category-hero-v2 p,
.page-hero-text-v2 p,
.product-summary-v2{
  color:#475569 !important;
}
.eyebrow,
.section-eyebrow,
.product-cat-v2,
.sku-v2{
  color:var(--brand) !important;
}
.hero-card,
.hero-floating-card-v2,
.product-gallery-v2,
.product-content-v2,
.product-spec-v2,
.product-note-v2,
.page-content-card-v2,
.page-side-card-v2,
.home-seo-box-v2,
.card,
.product-card,
.product-card-v2,
.home-service-card-v2,
.category-card,
.case-card,
.service-card,
.area-card,
.feature-card{
  background:rgba(255,255,255,.96) !important;
  border:1px solid rgba(30,41,59,.08) !important;
  border-radius:24px !important;
  box-shadow:var(--shadow) !important;
  color:var(--ink) !important;
}
.card:hover,
.product-card:hover,
.product-card-v2:hover,
.home-service-card-v2:hover,
.category-card:hover,
.case-card:hover,
.service-card:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow-hover) !important;
}
.card p,
.product-card p,
.product-card-v2 p,
.home-service-card-v2 p,
.page-side-card-v2 p,
.page-content-card-v2 p,
.page-content-card-v2 li,
.home-seo-box-v2 p{
  color:#475569 !important;
}
.section,
.home-featured-v2,
.page-body-v2,
.home-seo-v2,
.product-detail-v2{
  background:transparent !important;
}
.section:nth-of-type(even),
.home-featured-v2{
  background:rgba(234,241,247,.55) !important;
}
.section-title,
.section h2,
.home-seo-box-v2 h2,
.page-content-card-v2 h2,
.page-content-card-v2 h3{
  color:var(--navy) !important;
}
.section-sub{color:var(--muted) !important;}

/* 深色區塊改柔和深藍灰 */
.home-cases-v2,
.site-footer,
.footer,
.main-footer{
  background:linear-gradient(135deg,#172033 0%,#243247 100%) !important;
  color:#eef4fa !important;
}
.home-cases-v2 .section-title,
.home-cases-v2 h2,
.site-footer h3,
.footer h3{
  color:#fff !important;
}
.home-cases-v2 .section-sub,
.home-cases-v2 p,
.site-footer p,
.site-footer a,
.footer p,
.footer a{
  color:#d8e3ee !important;
}
.home-case-grid-v2 article{
  background:rgba(255,255,255,.08) !important;
  border:1px solid rgba(255,255,255,.14) !important;
  box-shadow:none !important;
}
.case-number-v2{color:#f6b69f !important;}
.copyright{color:#cbd8e4 !important;border-top-color:rgba(255,255,255,.16) !important;}

/* CTA / 按鈕 */
.btn,
.primary-btn,
.button,
button.btn,
a.btn,
.home-cta-v2 .btn{
  background:linear-gradient(135deg,#d8643f,#ea805d) !important;
  color:#fff !important;
  border:0 !important;
  border-radius:999px !important;
  box-shadow:0 12px 26px rgba(216,100,63,.20) !important;
  font-weight:800 !important;
}
.btn:hover,
.primary-btn:hover,
.button:hover,
a.btn:hover{
  transform:translateY(-1px);
  box-shadow:0 16px 34px rgba(216,100,63,.26) !important;
}
.btn.secondary,
.secondary-btn,
a.btn.secondary{
  background:linear-gradient(135deg,#172033,#2b3a52) !important;
  color:#fff !important;
}
.home-cta-v2{
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.18), transparent 30%),
    linear-gradient(135deg,#d8643f,#b95234) !important;
  color:#fff !important;
}
.home-cta-v2 h2{color:#fff !important;}
.home-cta-v2 p{color:#fff2ed !important;}

/* 圖片與商品卡 */
.hero img,
.home-hero-visual-v2 img,
.page-hero-image-v2 img,
.product-main-img-v2,
.product-card img,
.product-card-img-wrap img{
  border-radius:24px !important;
  box-shadow:0 18px 45px rgba(30,41,59,.12) !important;
}
.product-card-img-wrap,
.product-main-img-v2,
.img-preview-box{
  background:#eef3f8 !important;
}
.product-badge-v2,
.product-card-img-wrap span,
.product-admin-img span,
.service-icon-v2{
  background:#fff0e9 !important;
  color:#c45332 !important;
}
.price,
.product-price-v2{color:var(--brand) !important;}
.product-thumbs-v2 button{border-color:var(--line) !important;background:#fff !important;}
.product-spec-v2 th,
.page-content-card-v2 th{background:#eef3f8 !important;color:var(--navy) !important;}

/* 表單、搜尋 */
input,textarea,select{
  border-color:#cfd9e5 !important;
  background:#fff !important;
  color:var(--ink) !important;
  border-radius:12px !important;
}
input:focus,textarea:focus,select:focus{
  outline:2px solid rgba(216,100,63,.18) !important;
  border-color:#df8a6b !important;
}
.category-search-v2 input{
  box-shadow:0 10px 24px rgba(30,41,59,.05) !important;
}

/* 讓舊版強烈紅黑漸層失效 */
[style*="#111827"],
[style*="#991b1b"],
[style*="#e8422c"]{
  color:inherit;
}

@media(max-width:900px){
  .top-nav{background:rgba(255,255,255,.96) !important;}
  .home-hero-v2,
  .hero,
  .category-hero-v2,
  .page-hero-v2,
  .product-hero-v2{padding-top:48px !important;padding-bottom:48px !important;}
}
