/* GOLD FACE SIGN - WordPress additions (loaded after the page stylesheet) */

/* ---------- WordPress admin bar vs sticky header ---------- */
.admin-bar .site-header{top:32px}
@media screen and (max-width:782px){.admin-bar .site-header{top:46px}}
@media screen and (max-width:600px){.admin-bar .site-header{top:0}}

/* ---------- Contact Form 7 inside the theme's .form / .field markup ---------- */
.wpcf7{width:100%}
.wpcf7 form.form{margin:0}
.wpcf7 .hidden-fields-container,.wpcf7 fieldset.hidden-fields-container{display:none;border:0;padding:0;margin:0}
.wpcf7-form-control-wrap{display:block;position:relative}
.field .wpcf7-form-control-wrap input,
.field .wpcf7-form-control-wrap textarea{width:100%;display:block}
/* CF7 emits rows="10"; the design uses a 118px box (resize:vertical still allows expanding). */
.field textarea.wpcf7-textarea{height:118px;min-height:118px}
.wpcf7-not-valid-tip{display:block;margin-top:6px;font-size:12px;line-height:1.5;color:#d6380d}
.field .wpcf7-not-valid{border-color:#d6380d !important}
.wpcf7-spinner{margin:0 0 0 4px;vertical-align:middle}
.form__foot .wpcf7-submit{cursor:pointer}
.form__foot .wpcf7-submit:disabled{opacity:.6;cursor:wait}
.wpcf7 form .wpcf7-response-output{
  margin:18px 0 0;padding:12px 14px;border:1px solid var(--c-line);
  font-size:13px;line-height:1.6;background:var(--c-white);
}
.wpcf7 form.sent .wpcf7-response-output{border-color:#2e9b57;color:#1d6b3b}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output{border-color:var(--c-orange);color:#a34800}
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output{border-color:#d6380d;color:#a3290a}
.screen-reader-response{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- Generic views: search, 404, default page / posts ---------- */
.gf-generic main{min-height:52vh}
.gx{padding:var(--sec-y, 72px) 0}
.gx__title{
  font-family:'OPPO Sans Heavy','OPPOSans-H','OPPOSans',Arial,sans-serif;
  font-size:34px;line-height:1.3;color:var(--c-ink-deep);margin-bottom:12px;text-align:center;
}
.gx__sub{text-align:center;font-size:14.5px;opacity:.78;margin-bottom:36px}
.gx__form{display:flex;max-width:560px;margin:0 auto 44px;border:1px solid var(--c-line-mid)}
.gx__form input{flex:1;min-width:0;padding:12px 14px;font-size:14px;border:0;background:var(--c-paper)}
.gx__form input:focus{outline:none;background:#fff}
.gx__form .btn{height:auto}
.gx__list{list-style:none;margin:0 auto;max-width:860px;padding:0}
.gx__item{padding:22px 0;border-bottom:1px solid var(--c-line)}
.gx__item h2{font-size:20px;line-height:1.4;margin-bottom:8px}
.gx__item h2 a:hover{color:var(--c-orange-ink)}
.gx__item p{font-size:14px;line-height:1.75;opacity:.8}
.gx__item .gx__url{font-size:12px;opacity:.55;margin-top:6px;word-break:break-all}
.gx__empty{text-align:center;font-size:15px;opacity:.8}
.gx__pager{display:flex;justify-content:center;gap:8px;margin-top:36px}
.gx__pager .page-numbers{min-width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--c-line);padding:0 10px;font-size:13px}
.gx__pager .page-numbers.current,.gx__pager .page-numbers:hover{background:var(--c-orange);border-color:var(--c-orange);color:#fff}
.gx__actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}
.entry{max-width:860px;margin:0 auto;font-size:15px;line-height:1.85}
.entry > * + *{margin-top:1em}
.entry h2,.entry h3,.entry h4{line-height:1.4;margin-top:1.6em}
.entry ul,.entry ol{padding-left:1.4em}
.entry ul{list-style:disc}
.entry ol{list-style:decimal}
.entry a{color:var(--c-orange-ink);text-decoration:underline}
.entry img{max-width:100%;height:auto}
.entry table{width:100%;border-collapse:collapse}
.entry th,.entry td{border:1px solid var(--c-line);padding:8px 10px;text-align:left}
.entry__meta{text-align:center;font-size:12.5px;opacity:.6;margin-bottom:30px}

/* ---------- Primary CTA hover: one colour site-wide ----------
   Page stylesheets disagreed: home used #C95200, five pages #000, why-us had a
   duplicate rule that resolved to #e56400. The static design brief says inner
   pages must match the home page, so home's darker brand orange wins.
   Loaded after every page stylesheet, same specificity -> cascade order wins. */
/* Literal value on purpose: --c-orange-ink is the bright brand orange (#FE7001)
   since the 2026-11 token unification, not the darker hover shade. */
.btn--primary:hover,
.btn--primary:focus-visible{
  background:#C95200;
  border-color:#C95200;
}

/* ---------- Home banner: optional whole-slide link wrapper ----------
   Slides are absolutely positioned with a full-bleed img; the anchor must
   fill the slide so hit area and layout match the no-link markup exactly.
   The 5 invisible slides (opacity:0) still stacked on top and swallowed all
   clicks, so only the active slide may receive pointer events. */
.banner__link{display:block;width:100%;height:100%}
.banner__link img{pointer-events:none}
.banner__slide{pointer-events:none}
.banner__slide.is-active{pointer-events:auto}

/* Product entries may now hold several images; keep a small seam between them. */
.prod-entry__media img + img{margin-top:8px}
/* Merged 工艺/特点 editor outputs stacked <p> inside one wrapper; keep the old 3px seam. */
.prod-entry__p p + p{margin-top:3px}

/* ---------- Collapsed nav drawer: no stray line under the header ----------
   Every page stylesheet gives .nav a 1px bottom border at <=1200px. While the
   drawer is shut (max-height:0 + overflow:hidden) the padding box has zero
   height but the border is still painted, so a full-width hairline shows up
   right under the header on tablet/phone. Hide the border until it is open. */
@media (max-width:1200px){
  .nav{border-bottom:0}
  .nav.is-open{border-bottom:1px solid var(--c-line,#D9D9D9)}
}

/* ---------- Header search: anchored overlay, no layout shift ----------
   The old inline input grew 0 -> 190px inside the flex row and pushed the nav.
   The panel is now absolutely positioned, so opening it never moves the header.
   Loaded after every page stylesheet, so it overrides them site-wide. */
.hd-search{position:relative;display:flex;align-items:center}
.hd-search__panel{
  position:absolute;top:50%;right:46px;right:calc(38px + 8px);
  transform:translateY(-50%) translateX(6px);
  display:flex;align-items:center;
  width:340px;height:44px;
  opacity:0;visibility:hidden;pointer-events:none;
  background:var(--c-white,#fff);
  border:1px solid var(--c-line-mid,#D4D4D4);
  box-shadow:0 10px 28px rgba(0,0,0,.12);
  /* visibility must flip to visible on the SAME frame the class is added, otherwise
     the element is still unfocusable when the click handler calls focus().
     Closing keeps it visible for .2s so the fade-out still plays. */
  transition:opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  z-index:60;
}

.hd-search.is-open .hd-search__panel{
  opacity:1;visibility:visible;pointer-events:auto;
  transform:translateY(-50%) translateX(0);
  transition:opacity .2s ease, transform .2s ease, visibility 0s linear 0s;
}
.hd-search:focus-within .hd-search__panel{border-color:var(--c-orange,#FE7001)}
.hd-search__panel .hd-search__input{
  flex:1;min-width:0;width:auto;height:100%;
  padding:0 4px 0 14px;border:0;background:transparent;
  font-size:14px;color:var(--c-ink,#2B2B2B);
}
.hd-search__panel .hd-search__input:focus{outline:none}
.hd-search__panel .hd-search__input::placeholder{color:#9A9A9A}
.hd-search__panel .hd-search__input::-webkit-search-cancel-button{display:none}

.hd-search__close{
  flex:0 0 auto;display:flex;align-items:center;justify-content:center;
  width:38px;height:42px;border:0;background:transparent;cursor:pointer;
}
.hd-search__close svg{width:14px;height:14px;stroke:#8A8A8A;fill:none;stroke-width:1.9}
.hd-search__close:hover svg{stroke:var(--c-ink,#2B2B2B)}
.hd-search__close:focus-visible{outline:2px solid var(--c-orange,#FE7001);outline-offset:-2px}
/* Toggled-on state for the magnifier, matching the icon-button hover language. */
.hd-search.is-open > .btn-ico{background:var(--c-ink,#2B2B2B);border-color:var(--c-ink,#2B2B2B)}
.hd-search.is-open > .btn-ico svg{stroke:#fff}

/* Tablet / phone: drop the panel below the header instead of covering the nav. */
@media (max-width:1180px){
  /* Anchor to the sticky header (a positioned ancestor) instead of the 38px-wide
     search wrapper, otherwise right:0 hangs the panel off the left edge. */
  .hd-search{position:static}
  .hd-search__panel{
    top:calc(100% + 8px);left:12px;right:12px;width:auto;
    transform:translateY(-6px);
    box-shadow:0 3px 10px rgba(0,0,0,.10), 0 14px 34px rgba(0,0,0,.16);
  }
  .hd-search.is-open .hd-search__panel{transform:translateY(0)}
}
@media (prefers-reduced-motion: reduce){
  .hd-search__panel{transition:none}
}
