/*! Smiley Sans license (distributed with the webfont)
Copyright (c) 2022--2024, atelierAnchor <https://atelier-anchor.com>,
with Reserved Font Name <Smiley> and <得意黑>.

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL

-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded, 
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

*/
/* Scoped to the two requested product headings. Native Smiley Sans has one weight;
   do not synthesize a heavier face. Source and OFL are kept with the font. */
@font-face{font-family:"Tenon Product Display";src:url("fonts/smiley-product-headings.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
.category-hero--lock-library{height:auto;aspect-ratio:2.4;color:#f2f2f2;background:#202226}
.category-hero--lock-library::before{background:linear-gradient(90deg,rgba(13,15,18,.24),transparent 54%)}
.category-hero--lock-library .category-hero-photo img{object-position:center}
.category-hero--door .category-hero-content,.category-hero--lock-library .category-hero-content{width:83.333%;max-width:none;padding:28px 0 clamp(60px,6.95vw,134px)}
.category-hero--door .category-hero-title,.category-hero--lock-library .category-hero-title{font-family:"Tenon Product Display",sans-serif;font-weight:400;font-style:normal;font-synthesis:none;font-size:clamp(48px,4.167vw,80px);letter-spacing:0;line-height:1.1;text-shadow:none;padding-right:.12em}
.category-hero--lock-library .hero-route{color:#d7d8da;text-shadow:none}
.category-hero--door{color:#1f1f1f}
.category-hero--door .category-hero-title{font-size:clamp(50px,4.445vw,86px)}
/* The original door array is dark behind its lower-left text; a local light wash
   makes the author's charcoal title readable without adding a separate banner. */
.category-hero--door::before{background:radial-gradient(ellipse at left bottom,rgba(230,235,238,.97),rgba(230,235,238,.84) 22%,transparent 64%)}
.category-hero--door .hero-route{color:#27323a;text-shadow:0 1px 6px #eef2f4}
@media(max-width:760px){
 .category-hero--door,.category-hero--lock-library{height:460px;aspect-ratio:auto}
 .category-hero--door .category-hero-content,.category-hero--lock-library .category-hero-content{width:calc(100% - 48px);padding:16px 0 60px}
 .category-hero--lock-library .category-hero-photo img{object-position:center}
 .category-hero--lock-library::before{background:linear-gradient(180deg,rgba(14,16,19,.65),transparent 25%),linear-gradient(0deg,rgba(15,17,20,.85),transparent 50%)}
 .category-hero--lock-library .category-hero-title{font-size:32px;line-height:1.2}
 .category-hero--door .category-hero-title{font-size:34px;line-height:1.2}
 .category-hero--door::before{background:linear-gradient(180deg,rgba(230,235,238,.85),transparent 28%),radial-gradient(ellipse at left bottom,rgba(230,235,238,.98),rgba(230,235,238,.85) 21%,transparent 65%)}
 .category-hero--door .hero-route,.category-hero--lock-library .hero-route{gap:8px}
}

/* 2026-09-20 approved typography — exact two-page preview */
/* ============================================================
   统一栏目横幅标题排版 - MiSans 500 方案（修正版）
   本轮试做：.category-hero--door（智能门）
            .category-hero--lock-library（智能锁资料）
   ============================================================ */

/* ============================================================
   1. 智能门页（浅底 → 白字 + 底部轻暗渐变）
   ============================================================ */

/* 蒙层：取消径向白蒙层；仅底部加暗渐变托白字，顶部零蒙层，产品中上部完全原色 */
.category-hero--door::before {
  background:
    linear-gradient(
      0deg,
      rgba(10, 18, 23, 0.42),
      transparent 45%
    );
}

/* 内容容器：统一上下留白 */
.category-hero--door .category-hero-content {
  padding-top: 20px;
  padding-bottom: 96px;
}

/* 标题：白、MiSans 500、端正不斜不扁，白影彻底取消 */
.category-hero--door .category-hero-title {
  font-family: MiSans, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-stretch: normal;
  font-synthesis: none;
  font-size: 56px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-shadow: none;
}

/* 面包屑：顶部在亮区，深灰字，去白影 */
.category-hero--door .hero-route {
  font-family: MiSans, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.5;
  color: #2a353e;
  text-shadow: none;
}
.category-hero--door .hero-route .back-link {
  font-family: inherit;
  font-weight: 400;
  font-size: 13px;
  color: #2a353e;
}

/* ============================================================
   2. 智能锁资料页（深底）
   ============================================================ */

/* 蒙层：顶底都轻薄，不压锁具细节；白字在深底上本身足够清晰 */
.category-hero--lock-library::before {
  background:
    linear-gradient(
      180deg,
      rgba(14, 16, 19, 0.2),
      transparent 25%
    ),
    linear-gradient(
      0deg,
      rgba(15, 17, 20, 0.38),
      transparent 50%
    );
}

/* 内容容器：统一上下留白 */
.category-hero--lock-library .category-hero-content {
  padding-top: 20px;
  padding-bottom: 96px;
}

/* 标题：白、五字自然宽，不压扁不倾斜 */
.category-hero--lock-library .category-hero-title {
  font-family: MiSans, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-stretch: normal;
  font-synthesis: none;
  font-size: 52px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-shadow: none;
}

/* 面包屑：浅灰白色，去多余阴影 */
.category-hero--lock-library .hero-route {
  font-family: MiSans, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.5;
  color: #e8ecf0;
  text-shadow: none;
}
.category-hero--lock-library .hero-route .back-link {
  font-family: inherit;
  font-weight: 400;
  font-size: 13px;
  color: #e8ecf0;
}

/* ============================================================
   手机端（≤ 760px，对应 390 宽视口）
   ============================================================ */

@media (max-width: 760px) {
  /* —— 智能门手机端 —— */
  .category-hero--door .category-hero-content {
    width: calc(100% - 48px);
    padding-top: 16px;
    padding-bottom: 56px;
  }
  .category-hero--door .category-hero-title {
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: -0.01em;
  }
  .category-hero--door .hero-route {
    font-size: 12px;
    gap: 8px;
  }
  .category-hero--door .hero-route .back-link {
    font-size: 12px;
    padding-right: 14px;
    margin-right: 2px;
  }
  /* 手机端字号小，底部蒙层稍加厚以保可读，仍不压产品主体 */
  .category-hero--door::before {
    background:
      linear-gradient(
        0deg,
        rgba(10, 18, 23, 0.55),
        transparent 48%
      );
  }

  /* —— 智能锁资料手机端 —— */
  .category-hero--lock-library .category-hero-content {
    width: calc(100% - 48px);
    padding-top: 16px;
    padding-bottom: 56px;
  }
  .category-hero--lock-library .category-hero-title {
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.01em;
  }
  .category-hero--lock-library .hero-route {
    font-size: 12px;
    gap: 8px;
  }
  .category-hero--lock-library .hero-route .back-link {
    font-size: 12px;
    padding-right: 14px;
    margin-right: 2px;
  }
  .category-hero--lock-library::before {
    background:
      linear-gradient(180deg, rgba(14, 16, 19, 0.3), transparent 25%),
      linear-gradient(0deg, rgba(15, 17, 20, 0.55), transparent 50%);
  }
}

@media (min-width: 761px) {
/* ============================================================
   门页增量修正（仅改两项，其余沿用修正版）
   ============================================================ */

/* 桌面：标题微缩 + 微降，减少与门框竖线的交叉面积 */
.category-hero--door .category-hero-title {
  font-size: 50px;
}
.category-hero--door .category-hero-content {
  padding-bottom: 108px;
}

/* 手机：面包屑改白 + 微投影，解决门顶斜边处看不清的问题 */

}
@media (max-width: 760px) {
  .category-hero--door .hero-route {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  }
  .category-hero--door .hero-route .back-link {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  }
}

@media (max-width: 760px) {
  .category-hero--door .hero-route .back-link { text-shadow: none; }
  .category-hero--door .hero-route {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 108px;
    color: #ffffff;
    text-shadow: none;
  }
}

/* Keep the author's unchanged title bottom alignment after the route leaves flex flow. */
@media (max-width:760px){.category-hero--door .category-hero-title{margin-top:auto}}
