:root {
  --color-primary: #2878ff;
  --color-primary-dark: #1a5fd4;
  --color-text: #262626;
  --color-text-light: rgba(0, 0, 0, 0.65);
  --color-text-muted: rgba(0, 0, 0, 0.45);
  --color-bg: #fff;
  --color-bg-light: #f2f4f6;
  --color-border: #e3e3e3;
  --color-hover: #2878ff;
  --header-height: 88px;
  --header-height-mobile: 54px;
  --font-base: Arial, "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
  --max-width: 1400px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-y: scroll;
}

body {
  font-family: var(--font-base);
  font-size: 14px;
  line-height: 1.5;
  background: var(--color-bg);
  color: var(--color-text);
  min-width: 320px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.no-scroll {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: var(--color-text);
}

a:hover {
  color: var(--color-hover);
}

a.menu-no-link,
a.menu-no-link:hover {
  pointer-events: none;
  cursor: pointer;
  color: inherit;
}

img {
  border: 0;
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

input,
select,
textarea {
  font-family: inherit;
  outline: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.text-blue {
  color: var(--color-primary);
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: #121212;
  margin-bottom: 32px;
  text-align: center;
}

.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;
}

#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
}

.header-logo-wrap {
  display: flex;
  align-items: center;
  height: 100%;
  padding-right: 50px;
  flex-shrink: 0;
}

.header-logo-wrap img {
  height: 28px;
  width: auto;
  max-width: 160px;
  display: block;
  object-fit: contain;
}

.header-nav {
  display: flex;
  align-items: center;
  flex: 1;
  height: 100%;
}

.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  padding-bottom: 8px;
  margin-bottom: -8px;
  cursor: pointer;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 0 22px;
  font-size: 16px;
  color: #1c1c1c;
  white-space: nowrap;
  position: relative;
  transition: color var(--transition-base);
}

.nav-link::after {
  content: "";
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 3px;
  background: #181a21;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.nav-item:hover > .nav-link::after,
.nav-item.active > .nav-link::after {
  opacity: 1;
}

.mega-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: #fdfdfd;
  border-top: 1px solid #e3e3e3;
  z-index: 999;
  padding: 20px 0;
  min-height: 530px;
  max-height: 530px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.mega-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.nav-item.has-dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
}

.mega-menu-inner {
  width: 100%;
  height: 490px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.mega-group {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  flex-shrink: 0;
  width: 1140px;
  max-width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}
.mega-cols-wrap {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  flex: 0 0 auto;
}
.mega-menu-inner::-webkit-scrollbar {
  display: none;
}

.mega-col {
  display: none;
  flex-direction: column;
  align-self: flex-start;
  width: 240px;
  min-width: 240px;
  flex-shrink: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
.mega-col::-webkit-scrollbar {
  display: none;
}

.mega-col[data-depth="0"] {
  display: flex;
}

.mega-col.is-open {
  display: flex;
  padding-top: 4px;
}

.mega-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.mega-col[data-depth="0"] .mci {
  display: flex;
}

.mega-col[data-depth="0"] .mci a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 50px;
  padding: 0 12px;
  font-size: 20px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.85);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.15s;
}

.mega-col[data-depth="0"] .mci a span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mega-col[data-depth="0"] .mci-arrow {
  flex-shrink: 0;
  opacity: 0.3;
  transition: opacity 0.15s;
}

.mega-col[data-depth="0"] .mci:hover > a,
.mega-col[data-depth="0"] .mci--sel > a {
  color: #2878ff;
}

.mega-col[data-depth="0"] .mci:hover .mci-arrow,
.mega-col[data-depth="0"] .mci--sel .mci-arrow {
  opacity: 1;
  color: #2878ff;
}

.mega-col.is-open .mci {
  display: flex;
}

.mega-col.is-open .mci a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font-size: 14px !important;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.6);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  transition: color 0.15s;
  cursor: pointer;
}

.mega-col.is-open .mci a span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mega-col.is-open .mci-arrow {
  flex-shrink: 0;
  opacity: 0.2;
  transition: opacity 0.15s;
}

.mega-col.is-open .mci:hover > a,
.mega-col.is-open .mci--sel > a {
  color: #2878ff;
}

.mega-col.is-open .mci:hover .mci-arrow,
.mega-col.is-open .mci--sel .mci-arrow {
  opacity: 1;
  color: #2878ff;
}

.mega-preview {
  flex: 0 0 420px;
  width: 420px;
  padding-left: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.mega-preview-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.mega-preview-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  max-width: 440px;
  width: 100%;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s;
}

.mega-preview-card:hover {
  border-color: #bbb;
  background: #f4f4f4;
}

.mega-preview-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
}

.mega-preview-info {
  flex: 1;
  min-width: 0;
}

.mega-preview-name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 400;
  color: #1a1a1a;
}

.mega-preview-name span:first-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mega-preview-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.mega-preview-badge-spot {
  background: #2878ff;
  color: #fff;
}

.mega-preview-badge-futures {
  background: #00a870;
  color: #fff;
}

.mega-preview-badge-host {
  background: #e74949;
  color: #fff;
}

.mega-preview-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.mega-preview-tags span {
  font-size: 13px;
  color: #555;
}

.mega-preview-specs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.mega-preview-specs span {
  font-size: 13px;
  color: #555;
}

.mega-preview-price {
  font-size: 14px;
  font-weight: 400;
  color: #2878ff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mega-preview-price-sep {
  color: #ccc;
  font-weight: 300;
}

.menu-icon {
  margin-right: 4px;
}

.menu-icon-img {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
}

.flat-dropdown {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #e3e3e3;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.flat-dropdown::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.nav-item.has-dropdown:hover .flat-dropdown {
  opacity: 1;
  visibility: visible;
}

.flat-dropdown-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 60px 56px 60px;
  display: flex;
  gap: 0;
  justify-content: center;
}

.flat-col {
  flex: 0 0 auto;
  width: 220px;
  min-width: 0;
  padding: 0 0 0 28px;
  border-left: 1px solid #e0e0e0;
}

.flat-col:first-child {
  border-left: none;
  padding-left: 0;
}

.flat-col-header {
  font-size: 18px;
  font-weight: 400;
  color: #1c1c1c;
  margin-bottom: 18px;
  display: block;
  text-decoration: none;
  letter-spacing: 0;
  cursor: pointer;
}

.flat-col-header:hover {
  color: var(--color-primary);
}

.flat-col-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.flat-col-link {
  font-size: 14px;
  color: #666;
  padding: 7px 0;
  display: block;
  text-decoration: none;
  transition: color 0.15s;
  border-bottom: none;
  white-space: nowrap;
  line-height: 1.4;
  cursor: pointer;
}

.flat-col-link:hover {
  color: #000;
}

.simple-dropdown {
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid #e3e3e3;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease;
  pointer-events: none;
}

.nav-item.has-dropdown:hover .simple-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.simple-dropdown-link {
  display: block;
  padding: 13px 20px;
  font-size: 14px;
  color: #1c1c1c;
  text-decoration: none;
  border-bottom: 1px solid #ebebeb;
  white-space: nowrap;
  transition:
    background 0.12s,
    color 0.12s;
  letter-spacing: 0;
  cursor: pointer;
}

.simple-dropdown-link:last-child {
  border-bottom: none;
}

.simple-dropdown-link:hover {
  background: #f7f7f7;
  color: #000;
}

.simple-dropdown-item {
  position: relative;
}

.simple-dropdown-item .simple-dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.simple-sub-arrow {
  flex-shrink: 0;
  color: #aaa;
  transition: color 0.12s;
}

.simple-dropdown-item:hover .simple-sub-arrow {
  color: #555;
}

.simple-sub-dropdown {
  position: absolute;
  top: -1px;
  left: 100%;
  min-width: 210px;
  background: #fff;
  border: 1px solid #e3e3e3;
  box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.15s ease,
    visibility 0.15s ease;
  z-index: 1000;
}

.simple-dropdown-item:hover > .simple-sub-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.simple-dropdown-item:hover > .simple-dropdown-link {
  background: #f7f7f7;
  color: #000;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.header-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #555;
  transition: color var(--transition-base);
}

.header-icon-btn:hover {
  color: #000;
}

.header-bulk {
  font-size: 13px;
  color: #555;
  padding: 6px 13px;
  border: 1px solid #ddd;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.header-bulk:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  margin-left: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
  transition: all var(--transition-slow);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height-mobile);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 998;
  transform: translateX(-100%);
  transition: transform var(--transition-slow);
  flex-direction: column;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mnav-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 10px 16px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.mnav-bulk-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
}

.mnav-bulk-link:hover {
  color: var(--color-primary);
}

.mnav-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
}

.mnav-panels {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.mnav-sidebar {
  width: 46%;
  max-width: 240px;
  background: #f6f7f9;
  overflow-y: auto;
  flex-shrink: 0;
  padding: 4px 0;
}

.mnav-sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  cursor: pointer;
  transition: background var(--transition-base);
}

.mnav-sidebar-item.is-active {
  background: var(--color-bg);
}

.mnav-sidebar-link {
  flex: 1;
  display: block;
  padding: 13px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mnav-sidebar-item.is-active .mnav-sidebar-link {
  color: var(--color-text);
  font-weight: 600;
}

.mnav-sidebar-chevron {
  flex-shrink: 0;
  color: var(--color-primary);
}

.mnav-sidebar-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 6px 16px;
}

.mnav-content {
  flex: 1;
  overflow-y: auto;
  border-left: 1px solid #eee;
  min-width: 0;
}

.mnav-panel {
  display: none;
}

.mnav-panel.is-active {
  display: block;
}

.mnav-panel-link {
  display: block;
  padding: 14px 20px;
  font-size: 14px;
  color: var(--color-text);
  border-bottom: 1px solid #f0f0f0;
}

.mnav-panel-link:hover,
.mnav-panel-link:active {
  color: var(--color-primary);
}

.mnav-panel-link--depth-1,
.mnav-accordion-trigger.mnav-panel-link--depth-1 .mnav-accordion-label {
  padding-left: 32px;
}

.mnav-panel-link--depth-2,
.mnav-accordion-trigger.mnav-panel-link--depth-2 .mnav-accordion-label {
  padding-left: 44px;
  font-size: 13px;
}

.mnav-panel-link--depth-3,
.mnav-accordion-trigger.mnav-panel-link--depth-3 .mnav-accordion-label {
  padding-left: 56px;
  font-size: 13px;
}

.mnav-accordion-trigger {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
}

.mnav-accordion-label {
  flex: 1;
  display: block;
  padding: 14px 0 14px 20px;
  font-size: 14px;
  color: var(--color-text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mnav-accordion-label:hover {
  color: var(--color-primary);
}

.mnav-accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 46px;
  flex-shrink: 0;
  background: none;
  border: none;
  border-left: 1px solid #f0f0f0;
  cursor: pointer;
  color: #999;
}

.mnav-accordion-chevron {
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.mnav-accordion.is-open > .mnav-accordion-trigger > .mnav-accordion-chevron {
  transform: rotate(180deg);
}

.mnav-accordion-body {
  display: none;
  background: #fafbfc;
}

.mnav-accordion-body .mnav-accordion-body {
  background: #f4f5f7;
}

.mnav-accordion.is-open > .mnav-accordion-body {
  display: block;
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 997;
}

.mobile-nav-overlay.open {
  display: block;
}

.page-main {
  padding-top: var(--header-height);
  background: var(--color-bg);
  flex: 1 0 auto;
}

.bt-button {
  position: relative;
  display: inline-block;
  cursor: pointer;
  margin: 0;
  outline: 0;
  padding: 12px 20px;
  transition: 0.1s;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
}

.bt-button.bt-blue {
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  background-color: var(--color-bg);
  transition: all 0.5s;
  border-radius: 0;
}

.bt-button.bt-blue:hover {
  opacity: 0.8;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-spot {
  background: #e3ebff;
  color: var(--color-primary);
}

.badge-futures {
  background: #fff3e0;
  color: #d08000;
}

.badge-active {
  background: #e3fae9;
  color: #1a8c3e;
}

.badge-inactive {
  background: #ffeaea;
  color: #c0392b;
}

.badge-hot {
  background: #fde8e8;
  color: #e74949;
}

.pagination {
  display: flex;
  gap: 6px;
  margin-top: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.pg-btn {
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 13px;
  color: #555;
  text-decoration: none;
  padding: 0 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color var(--transition-base), color var(--transition-base), background var(--transition-base);
}

.pagination a {
  text-decoration: none;
}

.pg-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.pg-btn.active,
.pagination a.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.pg-dots {
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  color: #999;
  font-size: 14px;
  user-select: none;
}

.block-title {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 32px;
  font-weight: 600;
  color: #121212;
  line-height: 1.5;
  text-align: center;
  margin: 0;
  padding: 0;
}

.block-title span {
  display: inline-block;
  vertical-align: middle;
}

.block-title .text {
  margin: 0 22px;
}

.block-title .icon {
  width: 60px;
  height: 2px;
  background: #dadbe0;
}

#site-footer {
  background: var(--color-bg-light);
  font-size: 14px;
  color: var(--color-text-light);
}

.footer-top-bar {
  border-bottom: 1px solid #e2e4e7;
}

.footer-top-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 20px;
  line-height: 52px;
}

.footer-home-link {
  font-size: 16px;
  color: #000;
  font-weight: 600;
}

.footer-home-link:hover {
  color: var(--color-primary);
}

.footer-main {
  max-width: 1380px;
  margin: 0 auto;
  padding: 34px 20px 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.footer-col {
  flex: 1;
  min-width: 150px;
}

.footer-follow-col {
  flex: 0 0 auto;
  min-width: 160px;
}

.footer-col-title {
  font-size: 15px;
  font-weight: 500;
  color: #000;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul li {
  margin-bottom: 10px;
  line-height: 1.5;
}

.footer-col ul li a {
  color: var(--color-text-light);
  font-size: 13px;
  transition: color var(--transition-base);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.footer-col ul li a:hover {
  color: rgba(0, 0, 0, 0.85);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.footer-social-icon {
  color: rgba(0, 0, 0, 0.55);
  transition: color var(--transition-base);
  display: flex;
  align-items: center;
}

.footer-social-icon svg {
  width: 22px;
  height: 22px;
}

.footer-social-icon:hover {
  color: #000;
}

.footer-social-more {
  color: rgba(0, 0, 0, 0.4);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  position: relative;
  transition: color 0.2s ease;
}

.footer-social-more:hover {
  color: var(--primary);
}

.footer-social-more-dots,
.footer-social-more-arrow {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s ease;
}

.footer-social-more-dots {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  opacity: 1;
}

.footer-social-more-arrow {
  font-size: 28px;
  font-weight: 400;
  opacity: 0;
}

.footer-social-more:hover .footer-social-more-dots {
  opacity: 0;
}

.footer-social-more:hover .footer-social-more-arrow {
  opacity: 1;
}

.footer-copy {
  background: #e4e8ec;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--color-text-light);
}

.footer-copy-sep {
  color: rgba(0, 0, 0, 0.3);
}

.fcopy-link {
  color: var(--color-text-light);
  transition: color var(--transition-base);
}

.fcopy-link:hover {
  text-decoration: underline;
  color: rgba(0, 0, 0, 0.8);
}

.not-found {
  text-align: center;
  padding: 100px 20px;
}

.not-found h1 {
  font-size: 64px;
  color: #ddd;
  margin-bottom: 8px;
}

.not-found h2 {
  font-size: 24px;
  margin-bottom: 16px;
}

.not-found a {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 32px;
  background: var(--color-primary);
  color: #fff;
}

.breadcrumb-nav {
  padding: 20px 0;
  font-size: 13px;
  color: #aaa;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb-nav a {
  color: #aaa;
}

.breadcrumb-nav a:hover {
  color: var(--color-primary);
}

.page-loading {
  text-align: center;
  padding: 60px 20px;
  color: #888;
  font-size: 16px;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #888;
  font-size: 15px;
}

@media (max-width: 960px) {
  #site-header {
    height: var(--header-height-mobile);
  }

  .page-main {
    padding-top: var(--header-height-mobile);
  }

  .header-logo-wrap {
    padding-right: 16px;
  }

  .header-nav {
    display: none;
  }

  .header-right .header-bulk {
    display: none;
  }

  .header-divider {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav {
    display: flex;
    top: var(--header-height-mobile);
  }

  .mega-menu,
  .flat-dropdown {
    display: none !important;
  }

  .footer-main {
    gap: 20px;
  }

  .footer-col {
    min-width: 130px;
    flex: 0 0 calc(50% - 10px);
  }

  .footer-follow-col {
    flex: 0 0 100%;
  }
}

@media (max-width: 480px) {
  .footer-col {
    flex: 0 0 100%;
  }

  .footer-copy {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }

  .footer-copy-sep {
    display: none;
  }
}

.search-panel {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  z-index: 998;
  transform: translateY(-100%);
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.25s ease,
    visibility 0.25s ease;
  will-change: transform;
}

.search-panel.is-open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.search-panel-overlay {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 997;
}

.search-panel-overlay.is-open {
  display: block;
}

.search-panel-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 20px 0;
}

.search-panel-bar {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 0 16px;
  height: 46px;
  gap: 10px;
  background: var(--color-bg);
  transition: border-color 0.2s;
}

.search-panel-bar:focus-within {
  border-color: #aaa;
}

.search-panel-icon {
  flex-shrink: 0;
  color: #aaa;
}

.search-panel-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  color: var(--color-text);
  line-height: 1;
}

.search-panel-input::placeholder {
  color: #bbb;
}

.search-panel-close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #999;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}

.search-panel-close:hover {
  color: #333;
}

.search-panel-results {
  margin-top: 12px;
  padding-bottom: 12px;
  max-height: 380px;
  overflow-y: auto;
}

.search-results-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-result-item a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 4px;
  border-bottom: 1px solid #f2f2f2;
  text-decoration: none;
  color: var(--color-text);
  transition: background 0.12s;
  border-radius: 4px;
}

.search-result-item:last-child a {
  border-bottom: none;
}

.search-result-item a:hover {
  background: #f7f8fa;
}

.search-result-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 4px;
}

.search-result-img-placeholder {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: #f2f4f6;
  border-radius: 4px;
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-name {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.search-result-meta {
  font-size: 12px;
  color: #888;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.search-result-price {
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.search-panel-status {
  padding: 16px 4px;
  font-size: 14px;
  color: #aaa;
  text-align: center;
}

@media (max-width: 960px) {
  .search-panel {
    top: var(--header-height-mobile);
  }
}

.legal-page {
  min-height: 60vh;
}

.legal-hero {
  background: #f2f4f6;
  border-bottom: 1px solid #e3e3e3;
  padding: 48px 0 44px;
}

.legal-hero-title {
  font-size: 32px;
  font-weight: 700;
  color: #121212;
  margin: 0;
  line-height: 1.3;
}

.legal-body {
  max-width: 860px;
  padding: 52px 0 80px;
  font-size: 15px;
  line-height: 1.8;
  color: #3a3a3a;
}

.legal-body p {
  margin: 0 0 16px;
}

.legal-intro {
  font-size: 15px;
  color: #444;
}

.legal-toc {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  background: #fafbfc;
}

.legal-toc li {
  border-bottom: 1px solid #efefef;
}

.legal-toc li:last-child {
  border-bottom: none;
}

.legal-toc li a {
  display: block;
  padding: 11px 18px;
  font-size: 14px;
  color: #2878ff;
  text-decoration: none;
  transition:
    background 0.12s,
    color 0.12s;
}

.legal-toc li a:hover {
  background: #f0f5ff;
  color: #1a5fd4;
}

.legal-section-title {
  font-size: 19px;
  font-weight: 700;
  color: #111;
  margin: 40px 0 14px;
  padding-top: 8px;
  border-top: 2px solid #e8e8e8;
  line-height: 1.4;
}

.legal-sub-title {
  font-size: 15px;
  font-weight: 700;
  color: #222;
  margin: 24px 0 10px;
  line-height: 1.4;
}

.legal-list {
  margin: 0 0 16px 0;
  padding-left: 0;
  list-style: none;
  counter-reset: legal-counter;
}

.legal-list li {
  counter-increment: legal-counter;
  display: flex;
  gap: 12px;
  padding: 6px 0;
  font-size: 15px;
  color: #3a3a3a;
  line-height: 1.75;
}

.legal-list li::before {
  content: "(" counter(legal-counter) ")";
  flex-shrink: 0;
  font-size: 14px;
  color: #888;
  min-width: 32px;
  padding-top: 1px;
}

.legal-body a {
  color: #2878ff;
  text-decoration: none;
}

.legal-body a:hover {
  text-decoration: underline;
  color: #1a5fd4;
}

.legal-note {
  margin-top: 28px;
  padding: 14px 18px;
  background: #f8f9fb;
  border-left: 3px solid #d0d0d0;
  font-size: 13px;
  color: #666;
  line-height: 1.7;
}

.legal-copyright {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #e8e8e8;
  font-size: 13px;
  color: #aaa;
}

.legal-placeholder {
  padding: 80px 0;
  font-size: 16px;
  color: #888;
}

@media (max-width: 960px) {
  .legal-hero {
    padding: 36px 0 32px;
  }

  .legal-hero-title {
    font-size: 26px;
  }

  .legal-body {
    padding: 36px 0 60px;
  }
}

@media (max-width: 600px) {
  .legal-hero-title {
    font-size: 22px;
  }

  .legal-section-title {
    font-size: 17px;
  }

  .legal-list li {
    font-size: 14px;
  }
}

.db-error-title {
  font-family: monospace;
  color: #c00;
}

.db-error-msg,
.db-error-hint {
  font-family: monospace;
}

.is-hidden {
  display: none !important;
}

.header-cart-btn {
  position: relative;
}

.header-divider {
  display: inline-block;
  width: 1px;
  height: 16px;
  background: #d0d0d0;
  margin: 0 2px;
  vertical-align: middle;
  flex-shrink: 0;
}

.header-cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  background: #ff4d4f;
  color: #fff;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  pointer-events: none;
}

.header-user-menu {
  position: relative;
}

.header-user-btn {
  position: relative;
}

.header-user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  min-width: 180px;
  z-index: 9999;
  padding: 6px 0;
}

.header-user-dropdown::before {
  content: "";
  position: absolute;
  top: -14px;
  right: 0;
  width: 100%;
  height: 14px;
}

.header-user-dropdown.open {
  display: block;
}
.header-user-menu:hover .header-user-dropdown {
  display: block;
}

.header-user-dropdown-name {
  padding: 10px 16px 6px;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-user-dropdown a {
  display: block;
  padding: 9px 16px;
  font-size: 13px;
  color: #333;
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}

.header-user-dropdown a:hover {
  background: #f5f5f5;
  color: #1677ff;
}

.header-user-dropdown-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 4px 0;
}

.cart-feedback-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1677ff;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 99999;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.25s,
    transform 0.25s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.cart-feedback-toast.visible {
  opacity: 1;
  transform: translateY(0);
}
.cart-feedback-toast.cart-feedback-error {
  background: #cf1322;
}
