:root {
  --brand: #016fb5;
  --brand-hover: #005b96;
  --ink: #252d36;
  --muted: #606b76;
  --border: #d7dde5;
  --page: #fafafa;
  --panel: #f5f5f5;
  --wide: 1300px;
  --shell: 1600px;
  --gutter: 24px;
  line-height: 1.5;
}

[hidden] {
  display: none !important;
}

.auth,
.account,
.narrow,
.downloads {
  background: var(--page);
}

h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}
ul {
  list-style: none;
  padding: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
.page-heading h1,
.downloads h1 {
  font-size: 40px;
  font-weight: 700;
  line-height: 58px;
}
.page-heading p {
  color: var(--muted);
  line-height: 24px;
  margin-top: 5px;
}
.auth {
  display: grid;
  grid-template-columns: minmax(0, 1274fr) minmax(250px, 646fr);
}
.auth-main {
  padding: 48px max(24px, calc((100% - 724px) / 2)) 50px;
}
.auth-content {
  width: min(730px, 100%);
}
.auth-register {
  min-height: 1023px;
}
.auth-login {
  min-height: 728px;
}
.auth-success,
.auth-complete {
  min-height: 540px;
}
.auth-complete .auth-main {
  padding-left: clamp(24px, 25.3125vw, 486px);
  padding-right: 24px;
}
.member-rights {
  background: var(--panel);
  padding: 57px clamp(24px, 3.65vw, 70px) 48px;
  color: #303030;
}
.member-rights h2 {
  font-size: 26px;
  line-height: 39px;
  font-weight: 700;
}
.member-rights ul {
  margin-top: 47px;
  display: grid;
  gap: 56px;
}
.member-rights a {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-left: 4px;
}
.member-rights img {
  width: 38px;
  height: 38px;
}
.member-rights a:hover {
  color: var(--brand);
}
.auth-form {
  display: grid;
  gap: 22px;
  max-width: 724px;
}
.auth-register .auth-form {
  margin-top: 39px;
}
.auth-success .auth-form {
  margin-top: 34px;
}
.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.field label {
  color: var(--muted);
  font-size: 14px;
  line-height: 24px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}
.required {
  color: #c53b32;
  font-size: 16px;
}
.required-note {
  color: var(--brand);
}
.controls {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.controls input {
  flex: 1;
  min-width: 0;
}
.controls select {
  width: 120px;
  flex: none;
  height: 40px;
}
input:not([type="checkbox"]),
select,
textarea {
  width: 100%;
  height: 44px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: #666;
  padding: 0 15px;
  min-width: 0;
}
input::placeholder,
textarea::placeholder {
  color: #a2acba;
  opacity: 1;
}
input:disabled {
  background: #f5f7fa;
}
select {
  appearance: none;
  background: #fff url("../images/4333-1937-img.svg") right 13px center/9px 6px no-repeat;
  padding-right: 30px;
}
textarea {
  padding-block: 10px;
  resize: vertical;
}
.button {
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #46576a;
  background: white;
  width: 177px;
  text-align: left;
  max-width: 100%;
  transition:
    background-color 0.18s,
    border-color 0.18s,
    color 0.18s;
}
.button.full {
  width: 100%;
}
.button.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}
.button.primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
}
.button.secondary:hover {
  background: #eef6fb;
  border-color: var(--brand);
}
.button-arrow {
  width: 16px;
  height: 16px;
  flex: none;
}
.primary .button-arrow {
  box-sizing: content-box;
  border-radius: 50%;
  padding: 3px;
  background: #fff;
}
.button.code-button {
  justify-content: center;
  width: 110px;
  flex: none;
  padding: 0 6px;
}
.code-button:disabled {
  opacity: 0.5;
}
.button.mini {
  width: auto;
  min-width: 103px;
  height: 48px;
  justify-content: center;
  padding-inline: 12px;
  white-space: nowrap;
}
.mini img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.agreement {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  color: #666;
  font-size: 14px;
  margin-top: 13px;
}
.agreement input {
  appearance: none;
  width: 14px;
  height: 14px;
  border: 0;
  margin: 0 2px 0 0;
  background: url("../images/4333-1937-img3.svg") center/contain no-repeat;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.agreement input:checked {
  background: var(--brand);
  border-radius: 2px;
  color: white;
}
.agreement input:checked::after {
  content: "✓";
  font-size: 11px;
  line-height: 1;
}
.agreement a:hover {
  text-decoration: underline;
  color: var(--brand);
}
.auth-secondary {
  max-width: 724px;
  margin-top: 78px;
}
.auth-secondary h2 {
  font-size: 20px;
  font-weight: 500;
  line-height: 29px;
}
.auth-secondary p {
  margin-top: 5px;
  margin-bottom: 22px;
  color: var(--muted);
  line-height: 24px;
}
.auth-login .auth-secondary {
  margin-top: 92px;
}
.auth-login .auth-secondary .button {
  margin-top: 2px;
}
.login-tabs {
  display: flex;
  gap: 40px;
  border-bottom: 1px solid #dfe4eb;
  margin: 35px 0 30px;
  max-width: 724px;
  height: 44px;
}
.login-tabs button,
.download-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--ink);
  padding: 0 0 12px;
  font-size: 18px;
  white-space: nowrap;
}
.login-tabs [aria-selected="true"],
.download-tabs [aria-selected="true"] {
  border-color: var(--brand);
  color: var(--brand);
  font-weight: 500;
}
.login-tabs button:hover,
.download-tabs button:hover {
  color: var(--brand);
}
.skip,
.return-link {
  display: inline-block;
  color: var(--brand);
}
.skip {
  margin-top: 23px;
}
.skip:hover,
.return-link:hover {
  text-decoration: underline;
}
.complete-benefits {
  display: grid;
  gap: 18px;
  margin: 35px 0 44px;
  font-size: 14px;
}
.complete-benefits li {
  display: flex;
  gap: 13px;
  align-items: center;
  line-height: 24px;
}
.complete-benefits span {
  color: var(--brand);
  font-size: 16px;
  width: 11px;
}
.auth-complete .button {
  width: 302px;
}
.narrow {
  padding-inline: var(--gutter);
}
.narrow-inner {
  max-width: 590px;
  margin-inline: auto;
}
.profile {
  min-height: 900px;
  padding-top: 48px;
  padding-bottom: 47px;
}
.profile-heading,
.account-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.profile-heading .mini {
  margin-top: 58px;
}
.profile-form {
  display: grid;
  gap: 22px;
  margin-top: 24px;
}
.profile-form .field label,
.password-form .field label {
  font-size: 16px;
}
.profile-form .field:first-child input {
  height: 40px;
}
.profile-form .field:first-child {
  gap: 8px;
}
.profile-form .return-link,
.return-link {
  margin-top: 33px;
}
.change-password {
  padding-top: 25px;
  padding-bottom: 90px;
}
.change-password .page-heading p {
  margin-top: 2px;
}
.password-form {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}
.password-form .field {
  gap: 8px;
}
.password-form .field label {
  font-weight: 700;
}
.password-form .button {
  margin-top: -12px;
}
.form-status {
  font-size: 14px;
  color: var(--brand);
  line-height: 1.5;
}
.form-status[data-error] {
  color: #a72b25;
}
.content-wide {
  width: min(var(--wide), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}
.account {
  min-height: 867px;
  padding: 48px 0 128px;
}
.account-heading .mini {
  margin-top: 8px;
}
.account-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
  margin-top: 30px;
}
.account-card {
  min-height: 150px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  padding: 22px 12px;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}
.account-card:hover,
.account-card:focus-visible {
  border-color: var(--brand);
  box-shadow: 0 3px 14px #016fb516;
}
.account-card img {
  width: 24px;
  height: 24px;
}
.account-card h2 {
  font-size: 20px;
  font-weight: 500;
}
.account-card p {
  font-size: 14px;
}
.recent {
  margin-top: 59px;
}
.recent > h2 {
  font-size: 30px;
  line-height: 44px;
}
.recent > p {
  font-size: 14px;
  margin-top: 6px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  margin-top: 14px;
}
.product-picture {
  aspect-ratio: 244/250;
  background: #f4f5f6;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.product-picture > div {
  position: relative;
  overflow: hidden;
  width: 78%;
  height: 50%;
}
.product-picture img {
  position: absolute;
  max-width: none;
}
.crop-0 img {
  width: 100%;
  height: 153.33%;
  left: 0;
  top: -26.67%;
}
.crop-1 > div {
  height: 48%;
}
.crop-1 img {
  height: 149.19%;
  left: -48.58%;
  top: -20.54%;
  width: 196.19%;
}
.crop-2 > div {
  height: 48%;
}
.crop-2 img {
  height: 155.95%;
  left: -55.76%;
  top: -28.57%;
  width: 212.66%;
}
.product-card h3 {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 400;
  line-height: 22px;
}
.product-card p {
  font-size: 13px;
  line-height: 19px;
}
.downloads {
  min-height: 1474px;
  padding: 14px 0 128px;
}
.downloads h1 {
  font-weight: 400;
  line-height: 60px;
  color: #303030;
}
.download-tabs {
  display: flex;
  gap: 44px;
  align-items: stretch;
  margin-top: 52px;
  border-bottom: 1px solid #e5e5e5;
  min-height: 69px;
  overflow: auto;
}
.download-tabs button {
  font-size: 24px;
  width: 249px;
  flex: none;
  padding: 0 6px 18px;
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin: 42px 10px 0 0;
}

.download-panel .panel-item {
  display: none;
}

.download-panel .panel-item.show {
  display: block;
}

.download-card {
  display: grid;
  grid-template-columns: 89px minmax(0, 1fr) 48px;
  align-items: center;
  gap: clamp(16px, 3.333vw, 64px);
  padding: 30px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #fff;
  min-height: 115px;
}
.download-card > a > img {
  width: 89px;
  height: 50px;
  object-fit: cover;
}
.download-description a {
  font-size: 18px;
  color: #222;
}
.download-description p {
  font-size: 16px;
  color: #999;
  margin-top: 10px;
}
.download-description a:hover {
  color: var(--brand);
}
.download-card button,
.pagination button {
  border: 0;
  background: transparent;
  padding: 0;
}
.download-card button {
  border-radius: 50%;
  width: 48px;
  height: 48px;
}
.download-card button:hover {
  background: #e5f2f9;
}
.download-status {
  margin-top: 18px;
  color: var(--muted);
}
.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.downloads .common-pagination {
  margin-top: clamp(35px, 3.125vw, 60px);
  justify-content: flex-start;
}

.pagination button,
.pagination span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
}
.pagination button {
  border: 1px solid #e5e5e5;
  background: #fff;
  border-radius: 3px;
  color: #666;
}
.pagination button[data-page="prev"],
.pagination button[data-page="next"] {
  background: transparent;
  border-color: transparent;
}
.pagination img {
  width: 16px;
  height: 16px;
}
.pagination [aria-current="page"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.pagination button:hover {
  border-color: var(--brand);
}
.consultation {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 452px;
  gap: 32px;
  min-height: 540px;
  margin-top: 70px;
  padding: 26px 70px 26px 60px;
  border-radius: 8px;
  overflow: hidden;
  background: url("../images/4333-2888-img2.jpg") center/cover no-repeat;
}
.consultation h2 {
  font-size: 28px;
  line-height: 42px;
  margin-top: 48px;
  color: #333;
}
.consultation form {
  align-self: start;
  background: white;
  border-radius: 6px;
  display: grid;
  gap: 22px;
  padding: 24px;
}
.consultation input,
.consultation select {
  height: 36px;
  border-color: #ddd;
  color: #666;
}
.consultation select {
  width: 100px;
}
.consultation textarea {
  height: 82px;
  border-color: #ddd;
}
.consultation .button {
  width: 156px;
}
#site-dialog {
  border: 0;
  border-radius: 8px;
  padding: 28px;
  width: min(560px, calc(100% - 32px));
  color: var(--ink);
  box-shadow: 0 14px 60px #0003;
}
#site-dialog::backdrop {
  background: #15233480;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.dialog-head h2 {
  font-size: 24px;
}
.dialog-head button {
  border: 0;
  background: #f2f4f6;
  border-radius: 4px;
  width: 36px;
  height: 36px;
  font-size: 22px;
}
.search-results {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}
.search-results a {
  display: block;
  padding: 10px 12px;
  background: #f2f6fa;
  border-radius: 3px;
}
.search-results a:hover {
  background: #e1f0fa;
}
@media (max-width: 1100px) {
  .download-tabs button {
    width: auto;
    min-width: 130px;
  }
  .download-card {
    gap: 18px;
    padding: 18px;
  }
  .consultation {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 452px);
    padding-inline: 32px;
  }
}
@media (max-width: 820px) {
  :root {
    --gutter: 18px;
  }
  .auth {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .auth-main,
  .auth-complete .auth-main {
    padding: 32px var(--gutter) 48px;
  }
  .auth-content {
    margin-inline: auto;
  }
  .auth-secondary,
  .auth-login .auth-secondary {
    margin-top: 56px;
  }
  .member-rights {
    padding: 28px var(--gutter);
  }
  .member-rights ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
  }
  .member-rights a {
    font-size: 14px;
    gap: 7px;
    padding: 0;
  }
  .member-rights img {
    width: 28px;
    height: 28px;
  }
  .page-heading h1,
  .downloads h1 {
    font-size: 32px;
    line-height: 46px;
  }
  .account,
  .downloads,
  .profile,
  .change-password {
    min-height: auto;
    padding-block: 36px 56px;
  }
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .download-tabs {
    gap: 8px;
    margin-top: 24px;
    min-height: 52px;
  }
  .download-tabs button {
    min-width: 106px;
    font-size: 17px;
  }
  .download-grid {
    grid-template-columns: 1fr;
    margin-right: 0;
  }
  .consultation {
    grid-template-columns: 1fr;
    padding: 22px;
    margin-top: 42px;
  }
  .consultation h2 {
    margin-top: 0;
    font-size: 23px;
    line-height: 1.5;
    border-radius: 5px;
    padding: 12px;
  }
  .consultation h2 br {
    display: none;
  }
  .consultation form {
    max-width: 452px;
    width: 100%;
    justify-self: end;
  }
}

@media (max-width: 768px) {
  .page-heading h1,
  .downloads h1,
  .member-rights h2,
  .recent > h2,
  .consultation h2 {
    font-size: 24px;
    line-height: 36px;
  }
  .auth-secondary p,
  .download-description p {
    font-size: 14px;
  }
  .auth-main,
  .auth-complete .auth-main {
    padding-left: 4%;
    padding-right: 4%;
  }
}
@media (max-width: 500px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .account-actions {
    gap: 8px;
  }
  .account-card h2 {
    font-size: 16px;
  }
  .account-card p {
    font-size: 12px;
    text-align: center;
  }
  .account-card {
    min-height: 118px;
    padding-inline: 6px;
  }
  .profile-heading {
    flex-wrap: wrap;
  }
  .profile-heading .mini {
    margin-top: 8px;
  }
  .controls select {
    width: 94px;
  }
  .code-button {
    font-size: 12px;
  }
  .consultation form {
    padding: 16px;
  }
  .download-card {
    grid-template-columns: 72px minmax(0, 1fr) 40px;
    gap: 12px;
    padding: 14px;
  }
  .download-card button {
    width: 40px;
    height: 40px;
  }
  .download-description a {
    font-size: 16px;
  }
  .download-description p {
    font-size: 13px;
  }
  .recent {
    margin-top: 36px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.auth-register .field:has(#register-company) {
  padding-bottom: 4px;
}
#register-company {
  height: 40px;
}
.auth-register .field:has(#register-password) {
  gap: 2px;
}
.agreement {
  line-height: 18px;
}
.auth-success .auth-form {
  gap: 25px;
}
.auth-success .field {
  gap: 3px;
}
.auth-success .auth-form .button {
  margin-top: -3px;
}
.product-grid {
  margin-top: 19px;
}

.download-description a {
  display: block;
  line-height: 24px;
}
.download-description p {
  line-height: 22px;
  margin-top: 7px;
}
.consultation {
  margin-top: 72px;
}
@media (max-width: 820px) {
  .consultation {
    margin-top: 42px;
  }
}

input:not([type="checkbox"]):focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  outline: none;
}

/* ============ 会员模块补充样式 ============ */
.company-control {
  position: relative;
}
.company-suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  padding: 6px;
  max-height: 280px;
  overflow-y: auto;
}
.company-suggest .suggest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #1f2937;
  text-align: left;
}
.company-suggest .suggest-item:hover {
  background: #f1f5f9;
}
.company-suggest .suggest-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.company-suggest .suggest-code {
  flex-shrink: 0;
  font-size: 12px;
  color: #94a3b8;
}
.field-tip {
  margin-top: 6px;
  font-size: 12px;
  color: #94a3b8;
  line-height: 18px;
}
.form-status.is-error {
  color: #dc2626;
}
.form-status.is-success {
  color: #16a34a;
}
.code-button.is-counting {
  opacity: 0.6;
}
/* 移动端下拉 */
@media (max-width: 820px) {
  .company-suggest {
    position: fixed;
    top: auto;
    max-height: 40vh;
  }
}

.empty-tip {
  padding: 32px 0;
  font-size: 14px;
  color: #94a3b8;
}
.empty-tip a {
  color: var(--brand, #0057b8);
}
.member-info {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}
.member-info h2 {
  font-size: 18px;
  color: #1f2937;
}
.member-info p {
  margin-top: 10px;
  font-size: 14px;
  color: #6b7280;
  line-height: 24px;
}
.member-info a {
  color: var(--brand, #0057b8);
}
