﻿:root {
  --jx-navy: #032a59;
  --jx-deep: #011c3d;
  --jx-gold: #f5a800;
  --jx-white: #ffffff;
  --jx-surface: #f3f6f9;
  --jx-text: #24364b;
  --jx-muted: #66788d;
  --jx-line: #d9e1ea;
  --jx-shadow: 0 22px 70px rgba(3, 42, 89, .13);
  --jx-logo: url("/assets/jingxiang-logo-source.png");
  --ink: var(--jx-text);
  --paper: var(--jx-white);
  --paper-light: var(--jx-surface);
  --green: var(--jx-navy);
  --deep: var(--jx-deep);
  --copper: var(--jx-gold);
}

html { scroll-behavior: smooth; }
body {
  color: var(--jx-text);
  background: var(--jx-white);
  font-family: "DM Sans", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

header {
  height: 84px;
  color: var(--jx-navy);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--jx-line);
  box-shadow: 0 10px 30px rgba(3, 42, 89, .04);
  padding: 0 clamp(24px, 4vw, 72px);
  backdrop-filter: blur(16px);
}
header .brand { min-width: 224px; color: var(--jx-navy); gap: 12px; }
header .brand::before {
  content: "";
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  background: var(--jx-logo) top center / 100% auto no-repeat;
}
header .brand > .mark { display: none; }
header .brand b { color: var(--jx-navy); font-size: 17px; font-weight: 900; letter-spacing: .04em; }
header .brand small { color: #64758a; font-size: 9px; letter-spacing: .22em; }
header nav { gap: clamp(22px, 3vw, 44px); }
header nav a { color: #43556b; font-size: 12px; font-weight: 700; position: relative; }
header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -10px;
  height: 2px;
  background: var(--jx-gold);
  transition: right .25s ease;
}
header nav a:hover { color: var(--jx-navy); }
header nav a:hover::after { right: 0; }
.header-actions { gap: 9px; }
.header-actions .search {
  width: min(260px, 20vw);
  height: 40px;
  color: var(--jx-navy);
  background: var(--jx-white);
  border: 1px solid var(--jx-line);
  padding: 0 12px;
}
.header-actions .search input { color: var(--jx-text); }
.langs { color: var(--jx-muted); border-color: var(--jx-line); }
.langs button { color: var(--jx-muted); }
.langs button.active { color: var(--jx-navy); background: transparent; border-bottom: 2px solid var(--jx-gold); }
.user-button { color: var(--jx-navy); background: transparent; border-color: var(--jx-line); }
.user-button:hover { color: var(--jx-navy); border-color: var(--jx-gold); }
header .primary { color: #fff; background: var(--jx-navy); border: 1px solid var(--jx-navy); }
header .primary:hover { background: var(--jx-deep); }

.hero {
  min-height: min(720px, calc(100vh - 84px));
  background: var(--jx-white);
  grid-template-columns: minmax(420px, 44%) 1fr;
  border-bottom: 1px solid var(--jx-line);
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 38%;
  top: -8%;
  width: 74px;
  height: 82%;
  background: var(--jx-gold);
  transform: skewX(-38deg);
  transform-origin: top;
  pointer-events: none;
}
.hero-copy { z-index: 3; align-self: center; padding: 92px clamp(34px, 5vw, 82px); }
.hero-copy::before {
  content: "";
  display: block;
  width: 180px;
  height: 54px;
  margin: 0 0 44px;
  background: var(--jx-logo) top center / 100% auto no-repeat;
}
.hero h1 {
  max-width: 720px;
  color: var(--jx-navy);
  font-size: clamp(56px, 6.2vw, 96px);
  font-weight: 900;
  letter-spacing: -.075em;
  line-height: .94;
}
.hero p { max-width: 600px; color: var(--jx-muted); margin-top: 30px; font-size: 16px; line-height: 1.8; }
.hero-buttons, .hero-actions { margin-top: 36px; gap: 12px; }
.hero .primary, .hero .btn.primary {
  color: #fff;
  background: var(--jx-navy);
  min-height: 52px;
  padding: 0 24px;
  border: 0;
}
.hero .secondary, .hero .btn.ghost {
  color: var(--jx-navy);
  background: #fff;
  border: 1px solid var(--jx-line);
  min-height: 52px;
  padding: 0 24px;
}
.hero-photo { min-height: 620px; background-color: var(--jx-surface); border-radius: 0; position: relative; overflow: hidden; }
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 34px 34px 34px 12%;
  border: 12px solid var(--jx-navy);
  border-left-width: 34px;
  pointer-events: none;
}
.hero-photo::after {
  content: "";
  position: absolute;
  z-index: 2;
  right: 38px;
  bottom: 28px;
  width: 98px;
  height: 98px;
  background: var(--jx-logo) top center / 100% auto no-repeat;
  filter: drop-shadow(0 12px 24px rgba(3, 42, 89, .18));
}
.hero-tag { color: var(--jx-navy); background: rgba(255,255,255,.92); border-left: 4px solid var(--jx-gold); box-shadow: var(--jx-shadow); }

.category-rail { color: #fff; background: var(--jx-navy); padding: 0 clamp(24px, 4vw, 72px); gap: 0; }
.category-rail > button {
  color: rgba(255,255,255,.78);
  background: transparent;
  border-color: rgba(255,255,255,.14);
  border-radius: 0;
  min-height: 96px;
}
.category-rail > button:hover { color: #fff; background: rgba(255,255,255,.06); }

.products {
  position: relative;
  background: var(--jx-white);
  padding: 88px clamp(24px, 4vw, 72px) 110px calc(clamp(24px, 4vw, 72px) + 220px);
}
.products::before {
  content: "";
  position: absolute;
  left: clamp(24px, 4vw, 72px);
  top: 88px;
  bottom: 110px;
  width: 180px;
  background: var(--jx-navy);
  clip-path: polygon(0 0,100% 0,100% 88%,72% 100%,0 100%);
}
.products::after {
  content: "";
  position: absolute;
  left: calc(clamp(24px, 4vw, 72px) + 18px);
  bottom: 132px;
  width: 74px;
  height: 10px;
  background: var(--jx-gold);
  transform: rotate(-45deg);
}
.section-head { position: relative; z-index: 2; margin-bottom: 28px; }
.section-head h2 { color: var(--jx-navy); font-size: clamp(42px, 5vw, 72px); font-weight: 900; letter-spacing: -.06em; }
.section-head > button { color: var(--jx-navy); background: transparent; border-bottom: 1px solid var(--jx-navy); }
.catalog-meta { position: relative; z-index: 2; color: var(--jx-navy); background: var(--jx-surface); border-left-color: var(--jx-gold); }
.filterbar { position: relative; z-index: 2; border-bottom: 1px solid var(--jx-line); padding-bottom: 16px; }
.filterbar button { color: var(--jx-muted); background: transparent; border: 0; border-radius: 0; }
.filterbar button.active { color: var(--jx-navy); background: transparent; box-shadow: inset 0 -2px var(--jx-gold); }
.product-grid { position: relative; z-index: 2; gap: 20px; }
.product-grid article {
  background: #fff;
  border: 1px solid var(--jx-line);
  border-radius: 0;
  box-shadow: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.product-grid article:hover { transform: translateY(-6px); border-color: rgba(3,42,89,.38); box-shadow: var(--jx-shadow); }
.product-img { background-color: var(--jx-surface); border-radius: 0; }
.product-grid article small { color: var(--jx-gold); }
.product-grid article h3 { color: var(--jx-navy); }
.product-grid .arrow { color: var(--jx-navy); border-color: var(--jx-line); }
.load-more { color: #fff; background: var(--jx-navy); border-color: var(--jx-navy); }

.promise {
  color: #fff;
  background: var(--jx-navy);
  border: 0;
  padding: 64px clamp(24px, 6vw, 100px);
  position: relative;
  overflow: hidden;
}
.promise::before { content: "\2197"; color: var(--jx-gold); font-size: 120px; font-weight: 900; line-height: .7; }
.promise::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255,255,255,.25);
  transform: rotate(45deg);
}
.promise > div { position: relative; z-index: 1; }
.promise svg { color: var(--jx-gold); }

.about { background: var(--jx-white); padding: 96px clamp(24px, 7vw, 120px); gap: clamp(48px, 8vw, 140px); }
.about-visual {
  min-height: 420px;
  background: var(--jx-surface);
  border: 1px solid var(--jx-line);
  position: relative;
  display: grid;
  place-items: center;
}
.about-visual::after {
  content: "";
  width: min(72%, 360px);
  aspect-ratio: 435 / 425;
  background: var(--jx-logo) center / contain no-repeat;
}
.about-visual .building { display: none; }
.about-copy > span { color: var(--jx-gold); letter-spacing: .16em; }
.about-copy h2 { color: var(--jx-navy); font-weight: 900; }
.about-copy p, .about-copy li { color: var(--jx-muted); }
.about-copy .primary { color: #fff; background: var(--jx-navy); }

footer { color: #fff; background: var(--jx-deep); }
footer .footer-main { border-bottom: 1px solid rgba(255,255,255,.12); }
footer .brand::before {
  content: "";
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  background: var(--jx-logo) top center / 100% auto no-repeat;
  background-color: #fff;
}
footer .brand .mark { display: none; }
footer .contact-grid { border-color: rgba(255,255,255,.12); }
footer .contact-grid span { color: var(--jx-gold); }
.floating { color: #fff; background: var(--jx-gold); box-shadow: 0 14px 34px rgba(245,168,0,.32); }
.modal, .auth-card, .account-panel { background: #fff; border-top: 5px solid var(--jx-gold); }
.modal h2, .auth-card h2, .account-panel h2 { color: var(--jx-navy); }
.modal input:focus, .modal textarea:focus, .auth-card input:focus { border-color: var(--jx-gold); }

@keyframes jx-reveal-up {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-copy > *, .section-head > *, .product-grid article { animation: jx-reveal-up .65s both cubic-bezier(.2,.7,.2,1); }
.hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3) { animation-delay: .16s; }
.product-grid article:nth-child(2n) { animation-delay: .06s; }
.product-grid article:nth-child(3n) { animation-delay: .12s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 1180px) {
  header .brand { min-width: auto; }
  header nav { display: none; }
  .header-actions .search { width: 220px; }
  .products { padding-left: clamp(24px, 4vw, 72px); }
  .products::before, .products::after { display: none; }
}
@media (max-width: 820px) {
  header { height: 72px; padding: 0 18px; }
  header .brand::before { width: 42px; height: 42px; flex-basis: 42px; }
  header .brand b, header .brand small { display: none; }
  .header-actions .search, .header-actions .langs, .header-actions > .primary { display: none; }
  .menu { color: var(--jx-navy); border-color: var(--jx-line); display: grid; }
  .hero { display: block !important; min-height: 0; width: 100% !important; min-width: 0 !important; }
  .hero-copy, .hero-photo { box-sizing: border-box; width: 100% !important; min-width: 0 !important; max-width: 100% !important; }
  .hero h1 { overflow-wrap: anywhere; }
  .hero::after { left: auto; right: 10%; top: 46%; width: 42px; height: 46%; }
  .hero-copy { padding: 70px 24px 58px; }
  .hero-copy::before { width: 138px; height: 42px; margin-bottom: 30px; }
  .hero h1 { font-size: clamp(48px, 14vw, 72px); }
  .hero-photo { min-height: 500px; }
  .hero-photo::before { inset: 24px; border-width: 8px 8px 8px 20px; }
  .category-rail { padding: 0 18px; }
  .category-rail > button { min-width: 180px; }
  .products { display: block !important; padding: 64px 18px 82px; }
  .section-head { align-items: flex-start; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .promise { grid-template-columns: 1fr; padding: 56px 24px; }
  .about { grid-template-columns: 1fr; padding: 70px 24px; }
}
@media (max-width: 540px) {
  body { overflow-x: hidden; }
  .user-button span { display: none; }
  .hero-buttons, .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-buttons > *, .hero-actions > * { width: 100%; }
  .hero-photo { min-height: 390px; }
  .product-grid { grid-template-columns: minmax(0, 1fr) !important; width: 100% !important; }
  .section-head h2 { font-size: 42px; }
}




