/* =========================================================
   Garsh Lamp 全站 UI 增强层（首页 + 所有前台内页，可安全移除）
   设计：暖金质感 + 卡片化 + 柔和阴影 + 细腻动效
   说明：不修改 HTML 结构，不改变轮播插件依赖的固定宽度
   引入：inc_head.html（内页） / index.html（首页）
   ========================================================= */

:root{
  --gl-gold:#c9a227;
  --gl-gold-d:#a98512;
  --gl-ink:#1f2024;
  --gl-sub:#6b6f76;
  --gl-line:#ececec;
  --gl-bg:#ffffff;
  --gl-soft:#f7f6f3;
  --gl-shadow:0 10px 30px rgba(20,20,20,.08);
  --gl-shadow-h:0 18px 44px rgba(20,20,20,.16);
}

html{ scroll-behavior:smooth; }
body{
  background:var(--gl-bg);
  color:var(--gl-ink);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  font-family:"Fira Sans","Segoe UI","Helvetica Neue",Arial,"Microsoft YaHei",sans-serif;
}
*{ font-family:inherit; }
a{ transition:color .25s ease; }

/* 自适应容器：不影响轮播(固定1200)的前提下让头/页脚/内页更友好 */
.w1200{ width:auto; max-width:1200px; padding-left:24px; padding-right:24px; box-sizing:border-box; }

/* ============ 顶部 Header / 导航 ============ */
header{
  position:sticky; top:0; left:0; right:0;
  z-index:1000;
  background:rgba(255,255,255,.98);
  backdrop-filter:saturate(180%) blur(10px);
  -webkit-backdrop-filter:saturate(180%) blur(10px);
  box-shadow:0 2px 16px rgba(0,0,0,.06);
  border-bottom:1px solid rgba(0,0,0,.04);
}
/* 下拉子菜单层级高于吸顶头部，避免被内容遮挡 */
header nav li blockquote{ z-index:1001; }
header form input{
  border:1px solid var(--gl-line);
  border-radius:30px 0 0 30px;
  height:48px; line-height:48px;
  transition:border-color .25s ease, box-shadow .25s ease;
  background:#fbfbfb;
}
header form input:focus{
  outline:none;
  border-color:var(--gl-gold);
  box-shadow:0 0 0 3px rgba(201,162,39,.15);
}
header form button.searchbtn,
header form button{
  border-radius:0 30px 30px 0;
  height:50px; width:54px; border:0;
  background-color:var(--gl-gold);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='20' y1='20' x2='16.5' y2='16.5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:center;
  background-size:22px 22px;
  cursor:pointer;
  transition:background-color .25s ease, transform .15s ease;
}
header form button:hover{ background-color:var(--gl-gold-d); }
header form button:active{ transform:scale(.96); }

header nav li a{
  position:relative;
  color:var(--gl-ink);
  letter-spacing:.3px;
  padding-bottom:6px;
}
header nav li a:hover{ color:var(--gl-gold-d); }
header nav li > a::after{
  content:""; position:absolute; left:0; bottom:0;
  width:0; height:2px; background:var(--gl-gold);
  transition:width .28s ease;
}
header nav li > a:hover::after{ width:100%; }

header nav li blockquote{
  top:36px;
  background:rgba(255,255,255,.98);
  border:1px solid var(--gl-line);
  border-radius:12px;
  padding:14px 22px;
  box-shadow:var(--gl-shadow);
  min-width:170px;
}
header nav li blockquote a{
  line-height:2.2; color:var(--gl-sub);
  border-bottom:1px dashed transparent;
}
header nav li blockquote a:hover{ color:var(--gl-gold-d); padding-left:4px; }

/* ============ 横幅 Banner（首页） ============ */
.banner{ background:#0d0d0f !important; overflow:hidden; }
.banner .bd li img{ transition:transform 6s ease; }
.banner:hover .bd li img{ transform:scale(1.05); }
.banner .hd{ margin-top:-46px; height:46px; background:transparent !important; opacity:1 !important; }
.banner .hd ul{ padding-top:14px; }
.banner .hd ul li{
  width:12px !important; height:12px !important; border-radius:50%;
  background:rgba(255,255,255,.45) !important;
  margin:0 6px !important; transition:all .25s ease;
}
.banner .hd ul .on{
  background:var(--gl-gold) !important;
  width:30px !important; border-radius:7px;
}

/* ============ 区块标题 h2 ============ */
.lastproduct h2{
  position:relative;
  font-size:28px; font-weight:600; color:var(--gl-ink);
  letter-spacing:1px; padding:54px 0 26px;
}
.lastproduct h2 a{ color:inherit; }
.lastproduct h2 a:hover{ color:var(--gl-gold-d); }
.lastproduct h2::after{
  content:""; display:block; width:54px; height:3px; border-radius:3px;
  background:linear-gradient(90deg,var(--gl-gold),var(--gl-gold-d));
  margin:16px auto 0;
}

/* ============ “Latest product” 大图（首页） ============ */
.lastproduct p a{ display:inline-block; overflow:hidden; border-radius:14px; margin:6px; box-shadow:var(--gl-shadow); }
.lastproduct p a img{ display:block; border-radius:14px; transition:transform .5s ease; max-width:100%; height:auto; }
.lastproduct p a:hover img{ transform:scale(1.06); }

/* ============ 产品轮播卡片（首页/详情/单页共用，保留插件宽度） ============ */
.slide_left{ padding-bottom:10px; }
.mr_frUl ul li{ text-align:center; }
.mr_frUl ul li a:first-child{
  display:block; width:calc(100% - 24px); height:220px; margin:0 auto;
  border-radius:14px; overflow:hidden;
  background:#fff; border:1px solid var(--gl-line);
  box-shadow:var(--gl-shadow);
  transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.mr_frUl ul li a:first-child img{
  width:100% !important; height:100% !important; margin:0 !important;
  object-fit:cover; transition:transform .5s ease;
}
.mr_frUl ul li a:first-child:hover{
  transform:translateY(-6px);
  box-shadow:var(--gl-shadow-h);
  border-color:rgba(201,162,39,.5);
}
.mr_frUl ul li a:first-child:hover img{ transform:scale(1.09); }
.mr_frUl ul li a.title{
  width:auto !important; padding:14px 14px 4px !important;
  font-size:15px; font-weight:600; color:var(--gl-ink);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.mr_frUl ul li a.title:hover{ color:var(--gl-gold-d); }
.mr_frUl ul li .price{
  width:auto !important; padding:0 14px 6px !important;
  text-align:center; color:var(--gl-sub); font-size:13px;
}
.mr_frUl ul li .price span{ color:var(--gl-gold-d); }
.mr_frBtnL, .mr_frBtnR{ opacity:.55; transition:opacity .2s ease; }
.mr_frBtnL:hover, .mr_frBtnR:hover{ opacity:1; }

/* ============ 新闻卡片（首页） ============ */
.news{ display:flex; gap:20px; }
.news a{
  flex:1 1 0; width:auto !important; margin-left:0 !important;
  border-radius:14px; overflow:hidden; background:#fff;
  box-shadow:var(--gl-shadow); transition:transform .3s ease, box-shadow .3s ease;
}
.news a img{ display:block; width:100% !important; height:auto !important; transition:transform .5s ease; }
.news a:hover{ transform:translateY(-6px); box-shadow:var(--gl-shadow-h); }
.news a:hover img{ transform:scale(1.06); }
.news a span{ display:none; }
.news a strong{
  display:block; padding:16px 14px; font-size:16px; font-weight:600;
  color:var(--gl-ink); background:#fff;
}
.news a:hover strong{ color:var(--gl-gold-d); }

/* ============ 认证横幅 ============ */
.link1{
  background:var(--gl-soft); padding:56px 0; margin-top:60px;
  border-top:1px solid var(--gl-line);
}
.link1 a img{ border-radius:12px; box-shadow:var(--gl-shadow); transition:transform .4s ease; max-width:100%; }
.link1 a:hover img{ transform:scale(1.03); }

/* ============ 页脚 Footer ============ */
.footer{
  background:linear-gradient(180deg,#1c1d21 0%,#16171a 100%);
  color:#cfd2d6; height:auto; padding:56px 0 30px; line-height:2;
}
.footer ul li a{ color:#f2f3f5; font-size:17px; font-weight:600; }
.footer ul li a:hover{ color:var(--gl-gold); }
.footer ul li blockquote a{ color:#9a9ea6; font-size:14px; }
.footer ul li blockquote a:hover{ color:var(--gl-gold); padding-left:4px; }
.footer ol li{ color:#9a9ea6; }
.footer ol li.title{ color:#fff; font-size:17px; font-weight:600; margin-top:14px; }
.footer ol li input{
  border:1px solid #3a3c42; background:#26282d; color:#eee;
  height:42px; line-height:42px; border-radius:8px; text-align:left; padding:0 14px;
  width:220px; box-sizing:border-box; transition:border-color .25s ease;
}
.footer ol li input::placeholder{ color:#7c8088; }
.footer ol li input:focus{ outline:none; border-color:var(--gl-gold); }
.footer ol li input.btn{
  background:linear-gradient(90deg,var(--gl-gold),var(--gl-gold-d));
  color:#1a1a1a; font-weight:700; border:0; cursor:pointer;
  width:224px; height:44px; line-height:44px; border-radius:8px;
  margin-top:12px; transition:filter .2s ease, transform .15s ease;
}
.footer ol li input.btn:hover{ filter:brightness(1.08); }
.footer ol li input.btn:active{ transform:scale(.98); }
.footer ol li a img{
  width:34px; height:34px; margin:6px 8px 6px 0; border-radius:8px;
  background:#26282d; padding:4px; box-sizing:border-box;
  opacity:.85; transition:opacity .2s ease, transform .2s ease, background .2s ease;
}
.footer ol li a:hover img{ opacity:1; transform:translateY(-3px); background:var(--gl-gold); }
.footer .copy{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
  margin-top:34px; padding-top:20px; border-top:1px solid rgba(255,255,255,.08);
  color:#8b8f97 !important; font-size:13px;
}
.footer .copy-left{ flex:1 1 auto; min-width:0; }
.footer .copy-right{ flex:0 0 auto; margin-left:auto; white-space:nowrap; }
.footer .copy a{ color:#8b8f97; text-decoration:none; transition:color .2s ease; }
.footer .copy a:hover{ color:var(--gl-gold); }

/* =========================================================
   内页通用：面包屑 / 容器
   ========================================================= */
.loc{
  color:var(--gl-sub) !important; font-size:13px; padding:22px 0 6px;
  letter-spacing:.3px;
}
.product_list{ width:auto; max-width:1200px; margin:24px auto 10px; padding:0 24px; box-sizing:border-box; }

/* ============ 产品列表：左侧分类 ============ */
.pro_left{
  width:208px !important;
  background:#fff; border:1px solid var(--gl-line); border-radius:14px;
  padding:20px 18px; box-shadow:var(--gl-shadow); box-sizing:border-box;
}
/* 右侧随容器自适应，避免固定 1000px 超出而换行错位 */
.pro_right{
  width:calc(100% - 208px) !important; padding-left:24px !important; box-sizing:border-box;
}
.pro_left dt{
  border-bottom:2px solid var(--gl-gold); padding:0 0 10px; margin-bottom:6px;
  font-weight:700; color:var(--gl-ink); font-size:15px;
}
.pro_left dt + dd{ margin-top:6px; }
.pro_left dd{ padding:6px 0 16px; }
.pro_left dd a{
  display:block; padding:8px 10px 8px 28px; border-radius:8px;
  background:url(../images/2018-07-26_232937.png) no-repeat 10px center;
  color:var(--gl-sub); transition:background-color .2s ease, color .2s ease;
}
.pro_left dd a:hover{ background-color:var(--gl-soft); color:var(--gl-ink); }
.pro_left dd a.on{
  background-image:url(../images/2018-07-26_232938.png);
  background-color:rgba(201,162,39,.10); color:var(--gl-gold-d); font-weight:600;
}

/* ============ 产品列表：右侧网格卡片 ============ */
.pro_right .sort{ background:var(--gl-soft); border-radius:10px; padding:16px 20px; }
.pro_right .sort a{ background:#fff; border:1px solid var(--gl-line); border-radius:20px; padding:4px 12px; }
.pro_right .sort a.on, .pro_right .sort a:hover{ background:var(--gl-gold); border-color:var(--gl-gold); color:#1a1a1a; }

.pro_list ul{ display:flex; flex-wrap:wrap; gap:22px; }
.pro_list ul li{
  width:calc((100% - 44px) / 3) !important; height:auto !important;
  padding:0 !important; margin:0 !important; float:none !important; box-sizing:border-box;
}
.pro_list ul li a:first-child{
  display:block; border-radius:14px; overflow:hidden;
  background:#fff; border:1px solid var(--gl-line); box-shadow:var(--gl-shadow);
  transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.pro_list ul li a:first-child img{
  width:100% !important; height:228px; object-fit:cover; display:block;
  transition:transform .5s ease;
}
.pro_list ul li a:first-child:hover{
  transform:translateY(-6px); box-shadow:var(--gl-shadow-h); border-color:rgba(201,162,39,.5);
}
.pro_list ul li a:first-child:hover img{ transform:scale(1.08); }
.pro_list ul li a.title{
  display:block; width:auto !important; padding:14px 4px 4px; font-size:15px;
  font-weight:600; color:var(--gl-ink);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.pro_list ul li a.title:hover{ color:var(--gl-gold-d); }
.pro_list ul li .price{ width:auto !important; padding:0 4px 4px; color:var(--gl-sub); font-size:13px; }
.pro_list ul li .price span{ color:var(--gl-gold-d); }

/* ============ 分页 ============ */
.pageurl{ padding:36px 0 10px; }
.pageurl a, .pageurl span{
  display:inline-block; min-width:20px; padding:9px 15px; margin:0 4px;
  border:1px solid var(--gl-line); border-radius:9px; background:#fff;
  color:var(--gl-ink) !important; transition:all .2s ease;
}
.pageurl a:hover{ background:var(--gl-gold); border-color:var(--gl-gold); color:#1a1a1a !important; }
.pageurl a.on, .pageurl span.on, .pageurl .current{
  background:var(--gl-gold); border-color:var(--gl-gold); color:#1a1a1a !important;
}

/* ============ 产品详情 ============ */
.product_detail .detail{
  display:flex; flex-wrap:wrap; gap:36px; align-items:flex-start;
  background:#fff; border:1px solid var(--gl-line); border-radius:16px;
  padding:30px; box-shadow:var(--gl-shadow); box-sizing:border-box; margin-top:8px;
}
.product_detail .detail .big_img{
  flex:0 1 600px; width:auto !important; max-width:640px; min-width:280px; height:auto;
  float:none !important; margin:0 !important;
  border-radius:14px; box-shadow:var(--gl-shadow); background:var(--gl-soft);
}
.product_detail .detail .pro_detail{
  flex:1 1 340px; width:auto !important; float:none !important;
  padding-left:0 !important; box-sizing:border-box;
}
.product_detail .detail .pro_detail h1{ font-size:26px; font-weight:700; line-height:1.3; }
.product_detail .detail .price{ font-size:20px; }
.product_detail .detail .price span{ color:var(--gl-gold-d); font-weight:700; }
.product_detail .detail .buy input#buy{
  background:linear-gradient(90deg,var(--gl-gold),var(--gl-gold-d)) !important;
  color:#1a1a1a !important; border:0; border-radius:10px; padding:12px 28px;
  font-weight:700; cursor:pointer; transition:filter .2s ease, transform .15s ease;
}
.product_detail .detail .buy input#buy:hover{ filter:brightness(1.08); }
.product_detail .detail .buy input#buy:active{ transform:scale(.98); }
.product_detail .detail .buy form{ border-radius:14px; box-shadow:var(--gl-shadow-h); }
.product_detail .detail .buy form td input{ border-radius:8px; border:1px solid var(--gl-line); }
.product_detail .detail .buy form td input[type=submit]{
  background:var(--gl-gold); color:#1a1a1a; border:0; font-weight:700; cursor:pointer;
}

dl.tabs{ margin-top:14px; }
dl.tabs dt a{
  border-radius:10px 10px 0 0; border:1px solid var(--gl-line); background:var(--gl-soft);
  padding:11px 18px; font-size:13px;
}
dl.tabs dt a.on{ background:#fff; color:var(--gl-gold-d); font-weight:600; border-bottom-color:#fff; }
dl.tabs dd blockquote{ border:1px solid var(--gl-line); border-radius:0 10px 10px 10px; line-height:1.9; }

.product_content{
  background:#fff; border:1px solid var(--gl-line); border-radius:16px;
  padding:36px 40px 44px; box-shadow:var(--gl-shadow);
  margin-top:32px; color:#3a3d44;
}
.product_content .pc-title{
  margin:0 0 30px; padding-bottom:14px;
  font-size:22px; font-weight:700; color:var(--gl-ink); letter-spacing:.5px;
  border-bottom:2px solid var(--gl-gold);
}

/* ---- 重排后的干净图集结构（content 已在库中清洗为 .pc-gallery） ---- */
.product_content .pc-gallery{
  display:flex; flex-direction:column; gap:26px; align-items:center;
}
/* 整行大图 */
.product_content .pc-shot{
  margin:0; width:100%; max-width:880px;
  background:var(--gl-soft); border:1px solid var(--gl-line);
  border-radius:14px; padding:16px; box-sizing:border-box;
  overflow:hidden; box-shadow:var(--gl-shadow);
}
.product_content .pc-shot img{
  display:block; margin:0 auto;
  max-width:100%; width:auto; height:auto; border-radius:8px;
  transition:transform .5s ease;
}
.product_content .pc-shot:hover img{ transform:scale(1.035); }

/* 竖/方图自动两列网格 */
.product_content .pc-grid{
  width:100%; max-width:880px;
  display:grid; grid-template-columns:repeat(2,1fr); gap:22px;
}
.product_content .pc-grid .pc-shot{ max-width:none; padding:14px; }
.product_content .pc-grid .pc-shot img{ width:100%; }

/* 尺寸/说明小标题 */
.product_content .pc-spec{
  width:100%; max-width:880px; margin:14px 0 0;
  font-size:17px; font-weight:700; color:var(--gl-ink);
  text-align:center; line-height:1.5;
}
.product_content .pc-spec::before{
  content:""; display:inline-block; width:18px; height:2px; border-radius:2px;
  background:var(--gl-gold); vertical-align:middle; margin-right:10px;
}
.product_content .pc-spec::after{
  content:""; display:inline-block; width:18px; height:2px; border-radius:2px;
  background:var(--gl-gold); vertical-align:middle; margin-left:10px;
}

/* 滚动渐显效果 */
@keyframes pcFadeUp{ from{ opacity:0; transform:translateY(18px);} to{ opacity:1; transform:none;} }
.product_content .pc-shot, .product_content .pc-grid, .product_content .pc-spec{
  animation:pcFadeUp .6s ease both;
}

@media (max-width:768px){
  .product_content{ padding:24px 16px 30px; }
  .product_content .pc-title{ font-size:19px; margin-bottom:22px; }
  .product_content .pc-gallery{ gap:18px; }
  .product_content .pc-shot{ padding:10px; }
  .product_content .pc-grid{ gap:12px; }
}

/* ============ 单页 / 新闻详情 ============ */
.page_detail h1{
  text-align:center; font-size:28px; font-weight:700; padding-top:26px; color:var(--gl-ink);
}
.page_detail .detail{
  background:#fff; border:1px solid var(--gl-line); border-radius:16px;
  padding:34px 38px; box-shadow:var(--gl-shadow); line-height:1.95; color:#3a3d44;
  margin-top:22px;
}
.page_detail .detail img{ max-width:100%; height:auto; border-radius:10px; }
.page_detail .detail p{ padding-bottom:14px; }

/* ============ 响应式 ============ */
@media (max-width:1024px){
  .footer ul{ width:100%; }
  .footer ol{ width:100%; margin-top:24px; }
  .pro_left{ width:100% !important; float:none; margin-bottom:22px; }
  .pro_right{ width:100% !important; float:none; padding-left:0 !important; }
  .product_detail .detail .big_img{ flex:1 1 100%; max-width:100%; }
  .product_detail .detail .pro_detail{ flex:1 1 100%; }
}
@media (max-width:768px){
  header{ position:static; }
  header form a.logo{ background-size:contain; }
  .footer .copy{ flex-direction:column; align-items:flex-start; }
  .footer .copy-right{ margin-left:0; }
  .lastproduct h2{ font-size:23px; padding-top:40px; }
  .news{ flex-direction:column; }
  .lastproduct p a{ display:block; margin:10px auto; }
  .pro_left{ width:100% !important; }
  .pro_right{ width:100% !important; padding-left:0 !important; }
  .pro_list ul li{ width:calc(50% - 11px) !important; }
}
