/* ============================================================
   KINGRAYS — Site shell styles
   ============================================================ */

/* 自定义字体：Loew Next Bold（标题字体）
   注意：该字体为 Fontspring DEMO 试用版，数字、加号、& 等字形被替换成装饰图形。
   通过 unicode-range 让 Loew Next 仅覆盖字母，数字与符号自动 fallback 到系统字体，避免残缺字形。 */
@font-face {
  font-family: "Loew Next";
  src: url("../assets/fonts/LoewNext-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0041-005A, U+0061-007A;
}

:root {
  --red: #F85C2C;
  --red-soft: #FFF0EA;
  --red-deep: #D84315;
  --ink: #121212;
  --ink-2: #3D3D3D;
  --ink-3: #757575;
  --line: #E6E4E1;
  --bg: #FFFFFF;
  --bg-alt: #FAF9F7;
  --topbar-bg: #121212;
  --topbar-fg: #B9B6B1;
  --topbar-hover: #FFFFFF;
  --header-h: 96px;
  --topbar-h: 40px;
  --font-sans: "Inter", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-head: "Loew Next", "Archivo", "Inter Tight", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* 避免分类区 4 张标准卡（460px）居中时轻微溢出产生横向滚动条 */
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* “&”等符号用系统字体：Loew Next 为 Fontspring DEMO 版，
   数字、加号、& 等字形被替换成装饰图形，需改用系统字体正常渲染 */
.amp {
  font-family: var(--font-sans);
}
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* 内容容器：占满全宽 + 固定左右留白（不用 max-width 居中），
   统一边距 116px（按用户标注的左边距基准），所有内容元素对齐这条线。 */
.wrap {
  width: 100%;
  padding: 0 116px;
}

@media (max-width: 1240px) {
  .wrap { padding: 0 48px; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
}

/* ---------------- Icons ---------------- */
.ic {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: var(--topbar-bg);
  color: var(--topbar-fg);
  font-size: 13px;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  transition: height .3s ease, background-color .3s ease;
  overflow: hidden;
}

.topbar.is-collapsed { height: 0; }

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--topbar-fg);
  transition: color .2s;
  white-space: nowrap;
}

.topbar-item .ic { width: 15px; height: 15px; }

.topbar-item:hover { color: var(--topbar-hover); }

/* language chip */
.topbar-item.lang {
  gap: 5px;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header.is-scrolled {
  box-shadow: 0 2px 14px rgba(0, 0, 0, .06);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; }

.logo {
  height: 30px;
  width: auto;
  display: block;
}

/* nav */
.nav { margin-left: 24px; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border-radius: 6px;
  transition: color .2s, background-color .2s;
}

.nav-link:hover { color: var(--red); background: var(--bg-alt); }

.nav-link.active { color: var(--red); }

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 2px;
  background: var(--red);
  border-radius: 1px;
}

.caret { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.has-sub:hover .caret { transform: rotate(180deg); }

/* dropdown */
.has-sub { position: relative; }

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 620px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .10);
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}

.has-sub:hover .dropdown,
.has-sub:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-simple { min-width: 220px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.dropdown-simple a { padding: 9px 12px; border-radius: 6px; font-size: 14px; color: var(--ink-2); }
.dropdown-simple a:hover { background: var(--bg-alt); color: var(--red); }

.dropdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 20px;
}

.dd-col { display: flex; flex-direction: column; gap: 4px; }

.dd-head {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 4px 0 8px;
  margin-bottom: 2px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.dd-col a:not(.dd-head) {
  font-size: 14px;
  color: var(--ink-2);
  padding: 5px 0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color .2s, padding-left .2s;
}

.dd-col a:not(.dd-head)::before {
  content: "";
  flex-shrink: 0;
  width: .6em;
  height: .6em;
  border-radius: 50%;
  background: var(--red);
}

.dd-col a:not(.dd-head):hover { color: var(--red); padding-left: 6px; }

.dropdown-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  background: var(--red-soft);
  border-radius: 8px;
}

.dropdown-foot .ic { width: 15px; height: 15px; }

/* header actions */
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* 顶部搜索框（输入框 + 放大镜按钮），对标参考站 */
.header-search {
  display: flex;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 40px;
  padding: 0 4px 0 14px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}

.header-search:focus-within {
  border-color: var(--red);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(248, 92, 44, .08);
}

.header-search input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  width: 160px;
  height: 100%;
}

.header-search input::placeholder { color: #aaa; }

.header-search-btn {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  flex-shrink: 0;
  transition: background-color .2s, color .2s;
}

.header-search-btn:hover { background: #fff; color: var(--red); }
.header-search-btn .ic { width: 18px; height: 18px; }

.icon-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  color: var(--ink);
  transition: background-color .2s, color .2s;
}

.icon-btn:hover { background: var(--bg-alt); color: var(--red); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color .2s, transform .1s, box-shadow .2s;
  white-space: nowrap;
}

.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); box-shadow: 0 6px 18px rgba(248, 92, 44, .28); transform: translateY(-1px); }

.nav-toggle { display: none; }

/* ============================================================
   MAIN
   ============================================================ */
.main { min-height: 60vh; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #2B2B2B; color: var(--topbar-fg); margin-top: 80px; }

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 96px;
  padding-bottom: 109px;
  /* 内容向中间靠拢：左右留白增大到 200px，让 footer 内容更居中、更窄 */
  padding-left: 200px;
  padding-right: 200px;
}

/* 红框：logo（左）+ 四个联系方式图标（右），两端对齐 */
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.footer-logo { height: 44px; width: auto; display: block; }

.footer-socials {
  display: flex;
  align-items: center;
  gap: 40px;
}

.footer-socials .soc {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--red);
  transition: color .2s, transform .2s;
}
.footer-socials .soc:hover { color: #ff852f; transform: translateY(-2px); }
.footer-socials .soc:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.footer-socials .soc svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 700px) {
  .footer-top { flex-wrap: wrap; gap: 28px; }
  .footer-socials { gap: 24px; }
  .footer-socials .soc { width: 36px; height: 36px; }
  .footer-socials .soc svg { width: 28px; height: 28px; }
}

/* 下半三块：蓝框（简介+联系方式） | 绿框（三列链接） | 黄框（Subscribe） */
.footer-main {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  gap: 32px;
}

/* 蓝框：简介 + 联系方式 */
.footer-about {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-about p {
  font-size: 14px;
  color: var(--topbar-fg);
  line-height: 1.6;
}

/* 首行 "China" 加粗并提亮，作为左侧文字块的小标题 */
.footer-about p:first-child {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}

/* 绿框：三列链接 */
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.fcol { display: flex; flex-direction: column; gap: 8px; }

.fcol h4 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 8px;
}

.fcol a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--topbar-fg);
  line-height: 1.4;
  transition: color .2s;
}
.fcol a:hover { color: #fff; }

/* 链接前橙色圆圈打勾图标：与文字第一行顶部对齐 */
.fcol a .fcheck {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}
.fcol a .fcheck circle {
  fill: var(--red);
  stroke: none;
}
.fcol a .fcheck path {
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 黄框：Follow Us */
.footer-subscribe h4 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: none;
  color: #fff;
  margin-bottom: 14px;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subscribe-form input {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  background: #242424;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  font-size: 14px;
  color: #fff;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}

.subscribe-form input::placeholder { color: #6b6863; }
.subscribe-form input:focus { border-color: var(--red); }

.subscribe-btn {
  height: 46px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #f85c2c, #d84315);
  transition: transform .1s, box-shadow .2s;
}

.subscribe-btn:hover { box-shadow: 0 6px 18px rgba(248, 92, 44, .3); transform: translateY(-1px); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .10);
  padding: 16px 0;
  font-size: 14px;
  color: var(--topbar-fg);
  text-align: center;
}

.footer-bottom .wrap {
  padding: 0 200px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .dropdown { min-width: 560px; left: -80px; }
  .dropdown-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1240px) {
  .footer-inner { padding-left: 120px; padding-right: 120px; }
  .footer-bottom .wrap { padding: 0 120px; }
}

@media (max-width: 860px) {
  .footer-inner { padding-left: 48px; padding-right: 48px; }
  .footer-bottom .wrap { padding: 0 48px; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
    padding: 8px 18px 20px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { padding: 12px 14px; font-size: 16px; }
  .nav-link.active::after { display: none; }
  .has-sub .dropdown {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; border-left: 2px solid var(--line);
    border-radius: 0; min-width: 0; padding: 0 0 4px 14px; margin-left: 12px;
  }
  .has-sub .dropdown-grid { grid-template-columns: 1fr; }
  .dropdown-foot { display: none; }
  .nav-toggle { display: flex; }
  .topbar-left .topbar-item:nth-child(3) { display: none; }
  .header-search input { width: 110px; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .footer-inner { padding-left: 18px; padding-right: 18px; }
  .footer-bottom .wrap { padding: 0 18px; }
  .topbar-left .topbar-item:nth-child(2) { display: none; }
  .header-actions .btn { display: none; }
  .header-search { display: none; }
}

.footer-subscribe .subscribe-description {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--topbar-fg);
}

/* Separate contact details from the company description. */
.footer-about p:nth-child(3) { margin-top: 24px; }
