/* ==========================================================================
   site.css —— 站点全新视觉样式
   主题：高端智能安防门业 · 深空蓝黑 + 鎏金
   说明：覆盖/扩展 main.css，兼容原有模板 JS 钩子
   ========================================================================== */

:root {
  --gold: #c9a063;
  --gold-dark: #a8863f;
  --gold-light: #e6c88f;
  --ink: #161b23;
  --ink-2: #1d242f;
  --ink-3: #2a3342;
  --text: #4a5261;
  --text-2: #8b93a3;
  --bg-gray: #f5f6f8;
  --border: #e7e9ee;
  --white: #ffffff;
  --shadow: 0 6px 24px rgba(22, 27, 35, 0.08);
  --shadow-lg: 0 14px 40px rgba(22, 27, 35, 0.14);
  --radius: 10px;
}

/* ---------------- 基础覆盖 ---------------- */
body {
  font-family: "Rubik", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: #fff;
}
h1, h2, h3, h4, h5, h6 {
  font-family: "Rubik", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  font-weight: 600;
}
a { color: var(--ink); transition: color .2s ease; }
a:hover { color: var(--gold-dark) !important; }
.container { max-width: 1240px; }
/* 清除 footer 外层辅助类带来的额外内边距（兼容 tpshop.css 风格页面的 .footer 包裹层） */
footer.footer, .footer { padding: 0 !important; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.wrapper.bg--shaft { background: #fff; }

/* 顶部信息条 */
.site-topbar {
  background: var(--ink);
  color: #aeb6c2;
  font-size: 13px;
  line-height: 40px;
  border-bottom: 2px solid var(--gold);
}
.site-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.site-topbar-slogan i { color: var(--gold); margin-right: 6px; }
.site-topbar-right { display: flex; align-items: center; }
.site-topbar-phone { margin-right: 22px; color: #cdd4de; }
.site-topbar-phone i { color: var(--gold); margin-right: 6px; }
.site-topbar-link {
  color: #aeb6c2;
  padding: 0 12px;
  display: inline-block;
}
.site-topbar-link:hover { color: var(--gold-light) !important; }
.site-topbar-sep { color: #3d4654; }

/* 主头部 */
.site-header-main {
  background: #fff;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.site-header-main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.site-logo img { max-height: 64px; width: auto; }
.site-logo a { display: block; }

/* 搜索框 */
.site-header-search { flex: 1; max-width: 560px; margin: 0 auto; }
.site-search-form {
  display: flex;
  border: 2px solid var(--gold);
  border-radius: 40px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 14px rgba(201, 160, 99, .18);
  transition: box-shadow .25s ease;
}
.site-search-form:focus-within { box-shadow: 0 6px 20px rgba(201, 160, 99, .32); }
.site-search-input {
  flex: 1;
  border: 0;
  outline: none;
  padding: 0 22px;
  height: 46px;
  font-size: 14px;
  color: var(--ink);
  background: transparent;
}
.site-search-btn {
  border: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  padding: 0 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 2px;
  transition: filter .2s ease;
}
.site-search-btn:hover { filter: brightness(1.08); }

/* 右侧工具 */
.site-header-tools { display: flex; align-items: center; gap: 16px; }
.site-cart-link {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 18px;
  color: var(--ink);
  font-size: 14px;
  transition: all .25s ease;
}
.site-cart-link:hover {
  border-color: var(--gold);
  color: var(--gold-dark) !important;
  box-shadow: var(--shadow);
}
.site-cart-link i { font-size: 22px; color: var(--gold); }
.site-cart-text { font-weight: 600; }

/* 主导航栏 */
.site-navbar {
  background: linear-gradient(90deg, var(--ink) 0%, var(--ink-2) 60%, var(--ink-3) 100%);
  position: relative;
  z-index: 900;
}
.site-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-mainmenu {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-mainmenu::-webkit-scrollbar { display: none; }
.site-mainmenu > .mainmenu__item { list-style: none; }
.site-mainmenu > .mainmenu__item > .site-nav-link {
  display: block;
  color: #dfe4ec;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
  padding: 0 26px;
  line-height: 56px;
  position: relative;
  transition: color .25s ease, background .25s ease;
}
.site-mainmenu > .mainmenu__item > .site-nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: width .3s ease;
}
.site-mainmenu > .mainmenu__item > .site-nav-link:hover,
.site-mainmenu > .mainmenu__item > .site-nav-link.is-active {
  color: #fff !important;
  background: rgba(255, 255, 255, .05);
}
.site-mainmenu > .mainmenu__item > .site-nav-link:hover::after,
.site-mainmenu > .mainmenu__item > .site-nav-link.is-active::after { width: 60%; }

.site-nav-hotline {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #dfe4ec;
  font-size: 12px;
  line-height: 1.4;
  padding-left: 26px;
  border-left: 1px solid rgba(255, 255, 255, .12);
  flex-shrink: 0;
}
.site-nav-hotline i {
  font-size: 28px;
  color: var(--gold);
}
.site-nav-hotline strong {
  display: block;
  color: var(--gold-light);
  font-size: 18px;
  letter-spacing: 1px;
}

/* 头部在非首页保持统一风格，导航固定效果（原 fixed-header 保留） */
.site-navbar.fixed-header { box-shadow: 0 8px 24px rgba(22, 27, 35, .22); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: #9aa3b1;
  font-size: 14px;
}
.site-footer-main {
  border-top: 3px solid var(--gold);
  padding: 56px 0 40px;
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(201, 160, 99, .10), transparent 60%),
    var(--ink);
}
.site-footer-grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(auto-fit, minmax(170px, 1fr));
  gap: 36px;
}
.site-footer-logo img { max-height: 52px; margin-bottom: 18px; }
.site-footer-about p { margin-bottom: 14px; line-height: 1.8; }
.site-footer-title {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  margin: 4px 0 20px;
  padding-bottom: 12px;
  position: relative;
}
.site-footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 2px;
  background: var(--gold);
}
.site-footer-links { margin: 0; padding: 0; }
.site-footer-links li {
  list-style: none;
  line-height: 2.4;
}
.site-footer-links a { color: #9aa3b1; font-size: 14px; transition: color .2s ease, padding-left .2s ease; }
.site-footer-links a:hover { color: var(--gold-light) !important; padding-left: 6px; }
.site-footer-contact { margin: 18px 0 0; padding: 0; }
.site-footer-contact li {
  list-style: none;
  line-height: 2.2;
  font-size: 14px;
}
.site-footer-contact i { color: var(--gold); margin-right: 10px; width: 16px; }
.site-footer-qr-box {
  display: inline-block;
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
}
.site-footer-qr-box img { width: 128px; height: 128px; display: block; }
.site-footer-qr-box span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-2);
}
.site-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: #7d8594;
}
.site-footer-bottom p { margin: 4px 0; color: #7d8594; }
.site-footer-bottom a { color: #9aa3b1; }
.site-footer-bottom a:hover { color: var(--gold-light) !important; }

/* ==========================================================================
   首页 - 通用区块
   ========================================================================== */
.section-head {
  text-align: center;
  margin-bottom: 38px;
}
.section-head .section-eyebrow {
  display: inline-block;
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-head h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: 1px;
}
.section-head .section-line {
  width: 72px;
  height: 4px;
  margin: 0 auto;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold-dark));
}
.section-head p { color: var(--text-2); margin-top: 12px; }

/* 服务承诺条 */
.service-bar {
  background: var(--ink);
  background-image:
    linear-gradient(rgba(22, 27, 35, .85), rgba(22, 27, 35, .85)),
    repeating-linear-gradient(45deg, rgba(201, 160, 99, .04) 0 2px, transparent 2px 12px);
  padding: 26px 0;
}
.service-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.service-bar-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #dfe4ec;
  padding: 8px 20px;
  position: relative;
}
.service-bar-item + .service-bar-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 40px;
  width: 1px;
  background: rgba(255, 255, 255, .10);
}
.service-bar-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(201, 160, 99, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--gold);
  flex-shrink: 0;
  transition: all .25s ease;
}
.service-bar-item:hover .service-bar-icon {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.service-bar-text strong {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}
.service-bar-text span { font-size: 13px; color: #8b93a3; }

/* Hero 轮播（覆盖原 slider） */
.slider-area { background: var(--ink); }
.homepage-slider .single-slider {
  background-size: cover;
  background-position: center;
  min-height: 480px;
  position: relative;
  display: flex;
  align-items: center;
}
.homepage-slider .single-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(22, 27, 35, .82) 0%, rgba(22, 27, 35, .45) 48%, rgba(22, 27, 35, .15) 100%);
}
.homepage-slider .slider-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}
.homepage-slider .slider-content h5 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 18px;
  border-left: 3px solid var(--gold);
  padding-left: 16px;
}
.homepage-slider .slider-content h1 {
  font-size: 54px;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 22px;
  letter-spacing: 2px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .4);
}
.homepage-slider .slick-dots { bottom: 26px; }
.homepage-slider .slick-dots li button::before {
  font-size: 12px;
  color: #fff;
  opacity: .5;
}
.homepage-slider .slick-dots li.slick-active button::before { color: var(--gold); opacity: 1; }
.homepage-slider .slick-btn {
  color: #fff;
  z-index: 3;
  width: 52px;
  height: 52px;
  line-height: 52px;
  text-align: center;
  border-radius: 50%;
  background: rgba(22, 27, 35, .4);
  border: 1px solid rgba(255, 255, 255, .35);
  font-size: 20px;
  transition: all .25s ease;
}
.homepage-slider .slick-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
}
.homepage-slider .slick-prev { left: 30px; }
.homepage-slider .slick-next { right: 30px; }

/* ==========================================================================
   首页 - 转让信息卡片墙
   ========================================================================== */
.news-section { padding: 70px 0 30px; background: var(--bg-gray); }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.news-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(22, 27, 35, .05);
  transition: transform .3s ease, box-shadow .3s ease;
  display: block;
  border: 1px solid transparent;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 160, 99, .4);
}
.news-card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.news-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(22, 27, 35, .35));
}
.news-card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 1px;
}
.news-card-body { padding: 22px 24px 24px; }
.news-card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed var(--border);
  padding-top: 14px;
  font-size: 13px;
  color: var(--text-2);
}
.news-card-meta .meta-item i { color: var(--gold); margin-right: 5px; }

/* ==========================================================================
   首页 - 商品展示
   ========================================================================== */
.shop-section { padding: 70px 0; }
.shop-section--dark { background: var(--bg-gray); }
.shop-section .section-head h2 { color: var(--ink); }

/* 商品卡片 */
.product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.mirora-product {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(22, 27, 35, .05);
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative;
}
.mirora-product:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.mirora-product .product-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--bg-gray);
}
.mirora-product .product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.mirora-product:hover .product-img img { transform: scale(1.06); }
.mirora-product .product-img-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 27, 35, .35);
  opacity: 0;
  transition: opacity .3s ease;
}
.mirora-product:hover .product-img-overlay { opacity: 1; }
.mirora-product .product-label {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #d9534f, #c9302c);
  color: #fff;
  font-size: 12px;
  padding: 3px 12px;
  border-radius: 16px;
  z-index: 2;
  letter-spacing: 1px;
}
.product-label--new { background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important; }
.mirora-product .btn-view {
  display: inline-block;
  background: #fff;
  color: var(--ink) !important;
  padding: 9px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  transition: all .25s ease;
  z-index: 2;
}
.mirora-product .btn-view:hover { background: var(--gold); color: #fff !important; }
.mirora-product .product-content { padding: 16px 18px 20px; }
.mirora-product .product-content .product-cat {
  display: block;
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.mirora-product .product-content h4 { margin: 0 0 10px; }
.mirora-product .product-content h4 a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s ease;
}
.mirora-product .product-content h4 a:hover { color: var(--gold-dark) !important; }
.mirora-product .product-price-wrapper { display: flex; align-items: center; }
.mirora-product .money {
  font-size: 20px;
  font-weight: 700;
  color: #d9534f;
}
.mirora-product .buy-now {
  margin-top: 12px;
  display: inline-block;
  width: 100%;
  text-align: center;
  background: linear-gradient(135deg, var(--ink-2), var(--ink));
  color: #fff !important;
  padding: 9px 0;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  transition: background .25s ease, transform .2s ease;
}
.mirora-product .buy-now:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  transform: translateY(-2px);
}

/* 轮播箭头 */
.product-carousel .slick-btn,
.mostviewed-product-area .slick-btn {
  color: var(--ink);
  width: 42px;
  height: 42px;
  line-height: 40px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 16px;
  transition: all .25s ease;
}
.product-carousel .slick-btn:hover,
.mostviewed-product-area .slick-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff !important;
}

/* 热销区（深色背景） */
.mostviewed-product-area { background: var(--ink); }
.mostviewed-product-area.border-bottom { border-bottom: 1px solid rgba(255, 255, 255, .06); }
.mostviewed-product-area .section-title h2,
.mostviewed-product-area .section-head h2 { color: #fff; }
.mostviewed-product-area .section-head .section-eyebrow { color: var(--gold-light); }
.mostviewed-product-area .section-head p { color: #7d8594; }
.mostviewed-product-area .mirora-product { background: var(--ink-2); }
.mostviewed-product-area .product-content .product-cat { color: #7d8594; }
.mostviewed-product-area .product-content h4 a { color: #fff; }
.mostviewed-product-area .product-content h4 a:hover { color: var(--gold-light) !important; }
.mostviewed-product-area .product-img { background: #242b37; }
.mostviewed-product-area .buy-now {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
}
.mostviewed-product-area .buy-now:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #fff !important;
}
.mostviewed-product-area .product-img-overlay { background: rgba(0, 0, 0, .45); }

/* ==========================================================================
   首页 - 促销横幅
   ========================================================================== */
.promo-box-area { background: #fff; }
.promo-box-area .promo { position: relative; overflow: hidden; border-radius: var(--radius); }
.promo-box-area .promo__box { display: block; position: relative; overflow: hidden; }
.promo-box-area .promo__box img {
  width: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform .6s ease;
  display: block;
}
.promo-box-area .promo:hover .promo__box img { transform: scale(1.05); }
.promo-box-area .promo__content {
  position: absolute;
  left: 34px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
.promo-box-area .promo__name {
  display: inline-block;
  background: rgba(255, 255, 255, .92);
  color: var(--ink) !important;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3px;
  padding: 12px 26px;
  border-radius: 6px;
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow);
}

/* ==========================================================================
   回到顶部
   ========================================================================== */
.scroll-to-top {
  position: fixed;
  right: 30px;
  bottom: 40px;
  width: 46px;
  height: 46px;
  line-height: 46px;
  text-align: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  font-size: 20px;
  z-index: 999;
  box-shadow: 0 8px 22px rgba(201, 160, 99, .4);
  transition: transform .25s ease, box-shadow .25s ease;
}
.scroll-to-top:hover { transform: translateY(-4px); color: #fff !important; }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1199.98px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .site-footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
}
@media (max-width: 991.98px) {
  .site-topbar-right .site-topbar-phone { display: none; }
  .site-header-search { order: 3; flex-basis: 100%; max-width: 100%; }
  .service-bar-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .service-bar-item + .service-bar-item::before { display: none; }
  .site-nav-hotline { display: none; }
  .homepage-slider .single-slider { min-height: 400px; }
  .homepage-slider .slider-content h1 { font-size: 40px; }
  .site-footer-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 575.98px) {
  .news-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .homepage-slider .single-slider { min-height: 320px; }
  .homepage-slider .slider-content h1 { font-size: 30px; }
  .site-header-main-inner { flex-wrap: wrap; gap: 14px; }
  .site-logo { margin: 0 auto; }
  .service-bar-grid { grid-template-columns: 1fr 1fr; }
  .site-footer-grid { grid-template-columns: 1fr; }
}
