:root {
  --page: 1030px;
  --blue-dark: #052537;
  --rule: #d4dae0;
  --link-blue: #0066cc;
  --bg: #f1f3f5;
  --surface: #ffffff;
  --surface-soft: #f7f9fb;
  --ink: #121a22;
  --muted: #68727d;
  --blue: #00699d;
  --blue-soft: #e4f3fb;
  --red: #c20e1a;
  --green: #117c47;
  --yellow: #ffcf2e;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --radius: 4px;
  --left: 200px;
  --right: 195px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: #eeeeee;
  color: #111;
  font: 12px Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
}

.top-header-bar {
  background: #002fa7;
  color: #fff;
  position: relative;
}

.top-header-inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 8px 7px;
}

.top-nav-row {
  min-height: 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.logo {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -1px;
}

.accent-dot {
  color: #67c7e8;
}

.top-links {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  color: #fff;
}

.nav-item {
  position: relative;
}

.top-links a, .nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.nav-trigger::after {
  content: "▾";
  font-size: 11px;
  opacity: .9;
}

.mobile-menu-toggle {
  display: none;
}

.mobile-menu-toggle .menu-label {
  display: none;
}

.mobile-banner {
  display: none;
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 200px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  padding: 8px 0 8px;
  z-index: 30;
  display: none;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: 2px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #fff;
}

.dropdown-menu a {
  display: block;
  /*padding: 8px 20px;*/
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
      background: #002fa7;
}

.dropdown-menu a:hover {
  background: #f5f5f5;
  text-decoration: none;
}

.nav-item:hover .dropdown-menu {
  display: block;
}

.nav-item.is-open .dropdown-menu {
  display: block;
}

.mail-icon {
  color: red;
  font-size: 12px;
}

.search-header-row {
  background: #fff;
  border-bottom: 1px solid var(--rule);
}

.brand-row {
  max-width: var(--page);
  margin: 0 auto;
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(180px, 31.5%) 1fr;
  align-items: center;
  gap: 12px;
  padding: 8px;
}

.search-bar {
  display: flex;
  border: 1px solid #b9c3cc;
  background: #fff;
  min-width: 0;
}

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.search-bar input {
  width: 100%;
  height: 30px;
  border: 0;
  padding: 0 28px 0 9px;
  font-size: 12px;
  outline: none;
}

.search-icon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #586470;
  font-size: 15px;
}

.search-bar button {
  border: 0;
  border-left: 1px solid #b9c3cc;
     background: #002fa7;
    color: #fff;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.search-side-note {
  color: #3f4c57;
  font-size: 11px;
  line-height: 1.25;
  text-align: right;
}

.search-side-note .lead-copy {
  font-weight: 800;
}

.auth-links {
  margin-left: 6px;
  font-weight: 600;
  white-space: nowrap;
}

.auth-links a, .login-icon {
  color: #002fa7;
  font-weight: 600;
}

.login-icon {
  margin-right: 3px;
  font-size: 11px;
}

.site-footer {
  margin-top: 8px;
  background: #002fa7;
  padding: 14px 0 22px;
}

.footer-inner {
  max-width: var(--page);
  margin: 0 auto;
 
  position: relative;
}

.footer-bg {
  position: relative;
  min-height: 218px;
  z-index: 1;
}

.footer-content-wrap {
  position: relative;
  z-index: 2;
  min-height: 218px;
  display: flex;
  align-items: flex-start;
  padding: 48px 36px 26px 28px;
  pointer-events: none;
}

.footer-content-wrap a {
  pointer-events: auto;
  color: #fff;
  text-decoration: none;
}

.footer-content-wrap a:hover {
  text-decoration: underline;
}

.footer-info {
  position: absolute;
  left: 28px;
  bottom: 18px;
  width:100%;
  min-width: 330px;
  padding-top: 0;
  color: #666;
  font-size: 11px;
  line-height: 1.35;
  text-align:center;
}

.footer-stat {
  margin-top: 0;
  color: #fff;
}

.footer-copy {
  margin-top: 5px;
  color: #676767;
}

.footer-copy a {
  margin-left: 10px;
  text-decoration: underline;
  color: #4c4c4c;
}

.footer-navs {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-width: 0;
  
  padding-left: 24px;
  column-gap: 30px;
}

.footer-col {
  min-width: 0;
  padding: 0 10px;
}

.footer-col h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 16px;
  line-height: 1.1;
  font-weight: 900;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin: 4px 0;
  color: #333;
  font-size: 12px;
  line-height: 1.18;
}

.footer-col li a::before {
  content: "- ";
  color: #777;
}

.social-icons {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #111;
  color: #fff;
  border-radius: 2px;
  font-weight: 900;
  font-size: 12px;
  text-decoration: none;
}

.qr-link {
  display: block;
  width: 118px;
  height: 118px;
  margin-top: 13px;
  font-size: 0;
}

.qr-caption {
  margin-top: 2px;
  color: #555;
  font-size: 10px;
}

.footer-bottom-line {
  height: 12px;
  background: #4d4d4d;
}

.newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 8px 10px;
  padding: 9px 18px;
  color: #fff;
  background: linear-gradient(#08a9df, #007dc0);
  font-size: 18px;
  font-weight: 800;
}

.newsletter::after {
  content: "✉";
  padding: 0 16px;
  font-size: 24px;
  transform: rotate(-8deg);
}

.liked-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 10px 8px 15px;
  padding: 9px 14px;
  border: 1px solid #777;
  background: linear-gradient(#fff, #f2f2f2);
  color: #666;
  font-weight: 800;
  font-style: italic;
}

.liked-heart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: #333;
  color: #ffe000;
  font-size: 20px;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  border: 1px solid #86b8e8;
  margin: 0 8px;
  padding: 10px;
  background: #fff;
}

.quote {
  background: #4f86d6;
  color: #fff;
  min-height: 74px;
  padding: 10px;
  font-weight: 800;
  position: relative;
}

.quote::after {
  content: "”";
  position: absolute;
  right: 10px;
  bottom: -8px;
  font-size: 42px;
  color: rgba(255,255,255,.8);
}

.quote em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-weight: 900;
  color: #e6f3ff;
}

.avatar {
  display: block;
  width: 82px;
  height: 92px;
  margin: 10px auto 0;
  object-fit: cover;
}

.float-buttons {
  position: fixed;
  right: 22px;
  top: 280px;
  z-index: 80;
  display: grid;
  gap: 12px;
}

.float-buttons a {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 58px;
  background: rgba(0,0,0,.68);
  z-index: 1000;
}

.modal-overlay.is-open {
  display: flex;
}

body.modal-open {
  overflow: hidden;
}

.dealer-email-modal {
  width: 580px;
  max-width: calc(100vw - 28px);
  background: #fff;
  border: 1px solid #6d6d6d;
  box-shadow: 0 2px 7px rgba(0,0,0,.55);
  color: #333;
}

.modal-title-bar {
  height: 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #d3d3d3;
  border-bottom: 1px solid #9c9c9c;
  padding: 0 3px 0 10px;
}

.modal-title-bar h2 {
  margin: 0;
  color: #111;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
}

.modal-close {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #6d6d6d;
  background: #f8f8f8;
  color: #555;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.dealer-email-form {
  padding: 12px 12px 15px;
  font-size: 12px;
}

.modal-summary {
  color: #333;
  line-height: 1.2;
  margin-bottom: 5px;
}

.modal-summary p {
  margin: 2px 0 0;
  color: #333;
  font-size: 11px;
}

.modal-rule {
  height: 1px;
  background: #111;
  margin: 7px 0 12px;
}

.modal-rule.lower {
  margin: 8px 0 8px;
}

.dealer-email-form .form-row {
  display: grid;
  grid-template-columns: 102px 220px;
  align-items: start;
  gap: 6px;
  margin-bottom: 7px;
}

.dealer-email-form label {
  color: #333;
  font-size: 12px;
  line-height: 20px;
}

.dealer-email-form label span {
  color: #c40000;
}

.dealer-email-form input,
.dealer-email-form select {
  height: 18px;
  width: 220px;
  border: 1px solid #aeb4bd;
  background: #fff;
  padding: 0 4px;
  font-size: 11px;
}

.dealer-email-form select {
  padding: 0;
}

.dealer-email-form .email-warning {
  margin-top: 4px;
  color: #c40000;
  font-size: 8px;
  font-weight: 900;
  transform: scale(.85);
  transform-origin: left top;
}

.dealer-email-form .bot-row {
  grid-template-columns: 102px 62px 56px;
  align-items: center;
}

.dealer-email-form .bot-row input {
  width: 62px;
}

.dealer-email-form .bot-row strong {
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 1px;
  color: #111;
  background: repeating-linear-gradient(-20deg, #fff 0 4px, #f4f4f4 4px 8px);
  border: 0;
}

.dealer-email-form .message-row {
  grid-template-columns: 102px 1fr;
  margin-top: 4px;
}

.dealer-email-form textarea {
  width: 378px;
  max-width: 100%;
  height: 116px;
  border: 1px solid #aeb4bd;
  resize: vertical;
  font-size: 12px;
  padding: 4px;
}

.copy-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 9px;
  color: #333;
  line-height: 1;
}

.copy-check input {
  width: 12px;
  height: 12px;
  margin: 0;
}

.modal-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-buttons button {
  min-width: 45px;
  height: 20px;
  border: 1px solid #aeb4bd;
  background: linear-gradient(#fff, #e7e7e7);
  color: #111;
  font-size: 12px;
  cursor: pointer;
  border-radius: 3px;
}

/* 全站自适应补丁：仅修改CSS，不改HTML */
@media (max-width: 1080px) {
  :root {
    --page: 100%;
    --left: 180px;
    --right: 190px;
  }

  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  img,
  video,
  iframe,
  table {
    max-width: 100%;
  }

  .top-header-inner,
  .brand-row,
  .page,
  .content-shell,
  .detail-shell,
  .price-shell,
  .page-shell,
  .rating-shell,
  .register-shell,
  .sell-shell,
  .news-shell {
    max-width: 100%;
  }

  .top-header-inner,
  .brand-row,
  .page,
  .content-shell,
  .detail-shell,
  .price-shell,
  .page-shell,
  .rating-shell,
  .register-shell,
  .sell-shell,
  .news-shell {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 900px) {
  .top-nav-row {
    min-height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0;
  }

  .logo {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 36px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 0 8px;
  }

  .mobile-menu-toggle .menu-label {
    display: inline;
    font-size: 12px;
    font-weight: 600;
  }

  .top-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #002fa7;
    padding: 10px;
    gap: 4px;
    z-index: 50;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
  }

  .top-header-bar.menu-open .top-links {
    display: flex;
  }

  .top-links > a,
  .nav-item,
  .nav-trigger {
    min-height: 30px;
  }

  .nav-item {
    position: static;
  }

  .top-links > a,
  .nav-trigger {
    padding: 5px 8px;
  }

  .dropdown-menu {
    position: static;
    display: none;
    min-width: auto;
    background: rgba(255,255,255,0.1);
    box-shadow: none;
    padding: 0 0 0 16px;
    margin-top: 4px;
  }

  .nav-item.is-open .dropdown-menu {
    display: block;
  }

  .dropdown-menu::before {
    display: none;
  }

  .brand-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .search-side-note {
    display: none;
  }

  .mobile-banner {
    display: block;
    width: 100%;
    margin-bottom: 10px;
  }

  .mobile-banner a {
    display: block;
  }

  .mobile-banner img {
    width: 100%;
    height: auto;
    display: block;
  }

  .search-bar {
    width: 100%;
  }

  .page,
  .content-shell,
  .detail-shell,
  .price-shell,
  .page-shell,
  .rating-shell,
  .register-shell,
  .sell-shell,
  .news-shell {
    grid-template-columns: 1fr !important;
  }

  .left-sidebar,
  .left-filter,
  .right-sidebar,
  .right-panel,
  .right-spacer {
    width: 100%;
    min-height: 0;
  }

  .footer-content-wrap,
  .footer-content {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .footer-navs {
    margin-left: 0 !important;
    padding-left: 0 !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .testimonials {
    grid-template-columns: 1fr !important;
  }

  .float-buttons {
    display: none;
  }

  .category-module .subcategory-list {
    display: none;
  }

  .category-module .category-item.is-expanded > .subcategory-list {
    display: block;
  }

  .category-module .category-link {
    cursor: pointer;
  }

  .category-title {
    display: none;
  }

  .category-toggle-btn {
    display: block;
    width: 100%;
    padding: 8px 12px;
    background: #002fa7;
    color: #fff;
    border: 0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
  }

  .category-module.is-open .category-list {
    display: block;
  }

  .category-module .category-list {
    display: none;
  }

  .category-module .dealer-card,
  .category-module .best-deals-title,
  .category-module .deal-item {
    display: none;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 12px;
  }

  .top-header-inner,
  .brand-row,
  .page,
  .content-shell,
  .detail-shell,
  .price-shell,
  .page-shell,
  .rating-shell,
  .register-shell,
  .sell-shell,
  .news-shell {
    padding-left: 8px;
    padding-right: 8px;
  }

  .top-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #002fa7;
    padding: 10px;
    gap: 4px;
    z-index: 50;
  }

  .top-header-bar.menu-open .top-links {
    display: flex;
  }

  .top-links > a,
  .nav-trigger {
    width: 100%;
    justify-content: flex-start;
  }

  .dropdown-menu {
    position: static;
    display: none;
    min-width: auto;
    background: rgba(255,255,255,0.1);
    box-shadow: none;
    padding: 0 0 0 16px;
    margin-top: 4px;
  }

  .nav-item.is-open .dropdown-menu {
    display: block;
  }

  .search-bar {
    flex-wrap: wrap;
  }

  .search-input-wrap {
    flex: 1 1 100%;
  }

  .search-bar input {
    min-width: 0;
  }

  .search-bar button {
    width: 100%;
    height: 30px;
    border-left: 0;
    border-top: 1px solid #b9c3cc;
  }

  .machine-card,
  .product-summary,
  .register-area,
  .feature-body {
    display: block !important;
  }

  .machine-image-col,
  .machine-info,
  .main-photo,
  .summary-info {
    width: 100% !important;
    max-width: 100%;
  }

  .machine-card {
    padding: 14px 8px;
  }

  .machine-specs,
  .tool-row,
  .tool-row.second,
  .price-search,
  .form-row,
  .bot-row,
  .modal-actions,
  .modal-to,
  .modal-subject {
    grid-template-columns: 1fr !important;
  }

  .machine-bottom-row,
  .machine-actions,
  .newsletter,
  .liked-bar,
  .page-title-bar {
    flex-wrap: wrap;
  }

  .recommend-grid,
  .plans-grid,
  .news-grid,
  .dealer-grid,
  .spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .site-footer .footer-navs,
  .footer-navs {
    grid-template-columns: 1fr !important;
    padding-left: 0 !important;
    column-gap: 16px !important;
  }

  .site-footer .footer-bg,
  .site-footer .footer-content-wrap {
    min-height: auto !important;
  }

  .site-footer .footer-content-wrap {
    padding: 20px 12px !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .site-footer .footer-info {
    position: static !important;
    width: auto !important;
    min-width: 0 !important;
    left: auto !important;
    bottom: auto !important;
    padding: 8px 0 !important;
    text-align: center !important;
    overflow-wrap: anywhere !important;
  }

  .site-footer .footer-col {
    padding: 0 8px !important;
  }

  .site-footer .footer-col h3 {
    font-size: 14px !important;
  }

  .site-footer .footer-col li {
    font-size: 11px !important;
  }

  .modal-overlay {
    padding: 12px;
  }

  .dealer-email-modal {
    width: min(100%, 560px);
    max-height: calc(100vh - 24px);
    overflow: auto;
  }
}

@media (max-width: 520px) {
  .top-links {
    grid-template-columns: 1fr;
  }

  .brand-row {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .top-header-inner,
  .brand-row,
  .page,
  .content-shell,
  .detail-shell,
  .price-shell,
  .page-shell,
  .rating-shell,
  .register-shell,
  .sell-shell,
  .news-shell {
    padding-left: 6px;
    padding-right: 6px;
  }

  .recommend-grid,
  .plans-grid,
  .news-grid,
  .dealer-grid,
  .spec-grid {
    grid-template-columns: 1fr !important;
  }

  .machine-title,
  .page-title,
  .page-title-bar h1 {
    font-size: 15px !important;
    line-height: 1.25;
  }

  .main-column,
  .content-main,
  .center-column {
    min-width: 0;
  }

  .float-buttons {
    display: none !important;
  }
}

/* 去除页面中部过长空白：仅修改CSS，不改HTML */
.left-panel,
.right-panel,
.left-filter,
.left-sidebar,
.right-sidebar,
.side-nav,
.right-spacer {
  min-height: 0 !important;
}

.page,
.content-shell,
.detail-shell,
.price-shell,
.page-shell,
.rating-shell,
.register-shell,
.sell-shell,
.news-shell {
  align-items: start !important;
}

.main-panel,
.main-column,
.detail-main,
.content-main,
.center-column {
  min-height: 0 !important;
  padding-bottom: 8px;
}

.left-panel:empty,
.right-panel:empty,
.right-spacer:empty {
  display: none;
}

.vertical-ad {
  min-height: 0 !important;
}

@media (max-width: 900px) {
  .left-panel,
  .right-panel,
  .left-filter,
  .left-sidebar,
  .right-sidebar,
  .side-nav,
  .right-spacer {
    min-height: 0 !important;
  }
}