:root {
  --primary: #3869fd;
  --orange: #fa8c17;
  --text: #1d2129;
  --secondary: #8d93a0;
  --placeholder: #b0b4bc;
  --border: #e5e6eb;
  --layout-padding: clamp(80px, 12.5vw, 240px);
  --content-width: 1440px;
  --gray: #666666;
  --gray2: #aaaaaa;
}

* { box-sizing: border-box; }

html { min-width: 1280px; scroll-behavior: smooth; }

body {  margin: 0;  min-width: 1280px;  color: var(--text);  background: #f8fbfe;  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;  -webkit-font-smoothing: antialiased;}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

.site-shell { position: relative; min-width: 1280px; overflow: hidden; }
.content {     width: min(var(--content-width), 100%);
    margin-inline: auto; }

.site-header { position: sticky;    z-index: 100;    top: -36px;}


.utility-bar { height: 36px; color: #fff; background: #000; }
.utility-content { height: 36px; display: flex; align-items: center; justify-content: space-between; }
.utility-left, .utility-right { display: flex; align-items: center; gap: 20px; }
.utility-link, .utility-right a { padding: 0; color: #fff; background: transparent; font-size: 12px; line-height: 14px; white-space: nowrap; }
.utility-link.dropdown { display: flex; align-items: center; gap: 4px; }
.utility-link.dropdown img { width: 10px; height: 10px; margin-left: 2px; transform: rotate(45deg) scaleX(-1); }
.utility-link:hover, .utility-right a:hover { color: #b9ccff; }
.divider { width: 1px; height: 14px; margin-left: -10px; margin-right: -10px; background: rgba(255,255,255,.5); }


.search-header { height: 88px; background: #fff; }
.search-content { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.site-logo { display: block; width: 175px; height: 40px; object-fit: contain; flex: 0 0 auto; }



.search-actions { width: min(1120px, calc(100% - 215px)); display: flex;  gap: 16px; }
.search-actions .product-search { height: 40px; min-width: 0; flex: 1; display: flex; border: 2px solid var(--primary); border-radius: 4px; overflow: hidden; background: #fff; }
.search-actions .product-search:focus-within { box-shadow: 0 0 0 2px rgba(56,105,253,.14); }
.search-actions .product-search input { min-width: 0; flex: 1; padding: 0 12px; color: var(--text); border: 0; outline: 0; font-size: 12px; }
.search-actions .product-search input::placeholder { color: #c9cdd4; }
.search-actions .product-search button { width: 84px; display: flex; align-items: center; justify-content: center; gap: 4px; color: #fff; background: var(--primary); font-size: 14px; font-weight: 600; }
.search-actions .product-search button:hover, .register-button:hover { background: #2857e8; }
.search-actions .product-search button img, .image-search img { width: 16px; height: 16px; }
.image-search { height: 40px; padding: 0 16px; display: flex; align-items: center; justify-content: center; gap: 4px; color: var(--orange); background: #fff; border: 1px solid var(--orange); border-radius: 4px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.image-search:hover { background: #fff6f2; }


.utility-right .dropdown-menu{border-radius:4px !important;padding:10px 0;border:none;color:#333;text-align:center;margin:10px 0 0 -50px;box-shadow:0 16px 48px 1px rgba(0,0,0,.3)}
.dropdown-menu-root:hover .dropdown-menu {  display: block;}
.dropdown-menu-root:hover .dropdown-menu a { padding:9px 20px; color: #333;  }
.dropdown-menu-root:hover .dropdown-menu a:hover { background-color: #eee; color: var(--main-color)}

.hero { position: relative; height: 660px; }
.register-card { position: absolute; top: 50%; left: calc(50% + clamp(251px, 19.635vw, 377px)); transform: translate(-50%, -50%); width: 500px; min-height: 504px; padding: 32px; background: #fff; border-radius: 20px; box-shadow: 0 4px 5px rgba(74,1,1,.1); }
.tabs { height: 44px; display: flex; gap: 20px; margin:0 0 20px 0; }
.tab { position: relative; flex: 1; padding: 0 0 12px; color: var(--secondary); background: transparent; font-size: 16px; line-height: 32px; }
.tab::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 20px; height: 3px; border-radius: 6px; background: var(--primary); transform: translateX(-50%) scaleX(0); transition: transform .16s ease; }
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); font-size: 20px; font-weight: 600; }
.tab.active::after { transform: translateX(-50%) scaleX(1); }

.register-form { position: relative; height: 376px; }
.form-fields { display: flex; flex-direction: column; gap: 20px; }
.form-item { position: relative; height: 40px; }
.phone-row, .verify-row, .captcha-row { height: 40px; display: flex; align-items: stretch; }
.country-code { width: 64px; color: var(--placeholder); background: #f4f6f9; border: 1px solid var(--border); border-right: 0; border-radius: 4px 0 0 4px; font-size: 14px; }
.field { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: #fff; border: 1px solid var(--border); border-radius: 4px; transition: border-color .14s ease, box-shadow .14s ease, background .14s ease; }
.field:hover { border-color: #a9b8d0; background: #fcfdff; }
.field:focus-within { position: relative; z-index: 2; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(56,105,253,.12); background: #fff; }
.field.has-value { border-color: #9da9bc; }
.field.has-value:focus-within { border-color: var(--primary); }
.form-item.invalid .field { border-color: #f04438; }
.form-item.invalid .country-code { border-color: #f04438; }
.field img { width: 14px; height: 14px; flex: 0 0 auto; }
.field input { width: 100%; min-width: 0; padding: 0; color: var(--text); background: transparent; border: 0; outline: 0; font-size: 14px; line-height: 22px; }
.field input::placeholder { color: var(--placeholder); opacity: 1; }
.password-toggle { flex: 0 0 auto; padding: 2px 0 2px 8px; color: var(--secondary); background: transparent; font-size: 12px; line-height: 20px; }
.password-toggle:hover { color: var(--primary); }
.password-toggle:focus-visible { color: var(--primary); outline: 1px solid var(--primary); outline-offset: 2px; border-radius: 2px; }
.plain-field { flex: 1; border-radius: 0 4px 4px 0; }
.email-only { width: 100%; }
.verify-row .field { flex: 1; border-radius: 4px 0 0 4px; }
.send-code { width: 92px; padding: 0 8px; color: #fff; background: var(--primary); border: 1px solid var(--primary); border-left: 0; border-radius: 0 4px 4px 0; font-size: 14px; white-space: nowrap; }
.send-code:hover { background: #2857e8; border-color: #2857e8; }
.send-code:disabled { cursor: default; color: #aeb3bc; background: #f5f6f8; }
.send-code:disabled { border-color: var(--border); }
.captcha-row { gap: 12px; }
.captcha-row .field { flex: 1; }
.captcha { width: 67px; color: #676e7c; background: repeating-linear-gradient(-18deg,#d9d9d9 0 7px,#ebebeb 7px 12px); border-radius: 4px; font: italic 700 15px/40px Georgia, serif; letter-spacing: 2px; }
.captcha:hover { filter: brightness(.96); }
.hidden { display: none !important; }
.error-message { position: absolute; top: 42px; left: 0; z-index: 4; margin: 0; color: #f04438; font-size: 12px; line-height: 16px; white-space: nowrap; }

.form-actions { margin-top: 20px; display: flex; flex-direction: column; gap: 20px; }
.agreement-item { position: relative; height: 22px; }
.agreement-item .error-message { top: 24px; }
.agreement { width: fit-content; display: flex; align-items: center; gap: 8px; color: var(--secondary); cursor: pointer; font-size: 14px; line-height: 22px; white-space: nowrap; }
.agreement input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.checkmark { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid #bfd0e9; border-radius: 4px; background: #fff; }
.agreement:hover .checkmark { border-color: var(--primary); }
.agreement input:focus-visible + .checkmark { box-shadow: 0 0 0 2px rgba(56,105,253,.2); }
.agreement input:checked + .checkmark { border-color: var(--primary); background: var(--primary); }
.agreement input:checked + .checkmark::after { content: ""; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.agreement a { color: var(--primary); }
.register-button { width: 100%; height: 48px; color: #fff; background: var(--primary); border-radius: 4px; font-size: 16px; font-weight: 600; }
.register-button:active { transform: translateY(1px); }
.existing-login { display: block; width: fit-content; margin: 20px auto 0; color: var(--primary); font-size: 14px; line-height: 22px; }
.existing-login:hover { text-decoration: underline; }


.back-top { position: fixed; right: 84px; bottom: 48px; width: 48px; height: 48px; display: grid; place-items: center; background: #fff; border: 1px solid var(--border); border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,.06); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s, transform .2s; }
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { transform: translateY(-2px); }
.back-top img { width: 24px; height: 24px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1500px) {
  .footer-nav { width: 650px; }
  .footer-nav > div { width: 140px; }
  .back-top { right: 32px; }
}
