/*
Theme Name: MQTT Platform
Theme URI: https://www.mqtt.cn
Author: MQTT CN
Author URI: https://www.mqtt.cn
Description: MQTT 中文网物联网消息技术平台主题。
Version: 1.3.68
License: Proprietary
Text Domain: modbus-platform
Domain Path: /languages
Requires at least: 5.8
Tested up to: 6.5
*/

:root {
  --mp-ink: #333333;
  --mp-ink-2: #444444;
  --mp-muted: #666666;
  --mp-soft: #f7f7f8;
  --mp-soft-2: #eceeef;
  --mp-line: #dedee2;
  --mp-white: #ffffff;
  --mp-navy: #660066;
  --mp-navy-2: #520052;
  --mp-blue: #660066;
  --mp-blue-2: #520052;
  --mp-cyan: #ff8800;
  --mp-copper: #ff8800;
  --mp-yellow: #ff8800;
  --mp-orange: #ff8800;
  --mp-red: #ff8800;
  --mp-accent: #ff8800;
  --mp-gray: #959ba5;
  --mp-radius: 8px;
  --mp-radius-lg: 12px;
  --mp-shadow: 0 18px 46px rgba(102, 0, 102, 0.12);
  --mp-shadow-sm: 0 10px 24px rgba(102, 0, 102, 0.09);
  --mp-header: 68px;
  --font-sans: "Lato", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", "Fira Code", Consolas, monospace;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --content-max-width: 1200px;
  --content-narrow: 860px;
  --header-height: 68px;
  --color-accent: var(--mp-blue);
  --color-accent-hover: var(--mp-blue-2);
  --color-accent-subtle: rgba(102, 0, 102, 0.10);
  --color-primary: var(--mp-navy);
  --color-primary-light: var(--mp-navy-2);
  --color-bg: var(--mp-soft);
  --color-surface: var(--mp-white);
  --color-border: var(--mp-line);
  --color-text-primary: var(--mp-ink);
  --color-text-secondary: var(--mp-muted);
  --color-text-tertiary: #7b939d;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 999px;
  --shadow-sm: var(--mp-shadow-sm);
  --shadow-lg: var(--mp-shadow);
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--mp-ink);
  background: var(--mp-soft);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.admin-bar .site-header {
  top: 32px !important;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px !important;
  }
}

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

a:hover {
  color: var(--mp-blue-2);
}

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

p {
  margin: 0 0 1em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.65em;
  color: var(--mp-ink);
  font-family: var(--font-sans);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
}

code,
pre {
  font-family: var(--font-mono);
}

code {
  padding: 2px 6px;
  border-radius: 4px;
  background: #e6f4fa;
  color: #075071;
  font-size: 0.9em;
}

pre {
  margin: 26px 0;
  padding: 22px;
  overflow-x: auto;
  border-radius: 10px;
  background: #660066;
  color: #e8f2ff;
}

pre code {
  padding: 0;
  color: inherit;
  background: transparent;
}

blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--mp-copper);
  border-radius: 0 8px 8px 0;
  background: #fff7ec;
  color: #4c5a6b;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 15px;
  border: 1px solid var(--mp-line);
  text-align: left;
}

th {
  background: #eef3fa;
  font-weight: 800;
}

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

.container--narrow {
  max-width: var(--content-narrow);
}

.text-center {
  text-align: center;
}

.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }

.screen-reader-text,
.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;
}

.skip-to-content:focus {
  clip: auto;
  width: auto;
  height: auto;
  left: 16px;
  top: 16px;
  z-index: 100000;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--mp-blue);
  color: #fff;
}

.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  height: var(--mp-header) !important;
  display: flex !important;
  align-items: center !important;
  background: rgba(7, 17, 31, 0.96) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

.site-header__inner {
  width: 100% !important;
  max-width: var(--content-max-width) !important;
  height: 100% !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 22px !important;
}

.site-branding {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

.site-branding a {
  display: flex !important;
  align-items: center !important;
  color: #fff !important;
}

.site-branding__title {
  color: #fff !important;
  font-size: 1.18rem !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
}

.custom-logo {
  max-height: 40px;
  width: auto;
}

.primary-nav {
  min-width: 0 !important;
}

.primary-menu {
  display: flex !important;
  align-items: center !important;
  gap: 2px !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

.primary-menu > .menu-item {
  position: relative !important;
}

.primary-menu > .menu-item > a {
  display: flex !important;
  align-items: center !important;
  min-height: 40px !important;
  padding: 0 13px !important;
  border-radius: 8px !important;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

.primary-menu > .menu-item > a:hover,
.primary-menu > .menu-item.current-menu-item > a,
.primary-menu > .menu-item.current-menu-ancestor > a {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.10) !important;
}

.primary-menu .sub-menu {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  display: none !important;
  min-width: 210px !important;
  margin: 8px 0 0 !important;
  padding: 8px !important;
  list-style: none !important;
  border: 1px solid var(--mp-line) !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: var(--mp-shadow) !important;
}

.primary-menu > .menu-item:hover > .sub-menu {
  display: block !important;
}

.primary-menu .sub-menu a {
  display: block !important;
  padding: 9px 12px !important;
  border-radius: 6px !important;
  color: var(--mp-ink) !important;
  font-size: 0.9rem !important;
  font-weight: 650 !important;
}

.primary-menu .sub-menu a:hover {
  background: rgba(102, 0, 102, 0.08) !important;
  color: var(--mp-blue) !important;
}

.header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

.header-search-toggle,
.mobile-menu-toggle {
  display: grid !important;
  place-items: center !important;
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.75) !important;
  cursor: pointer !important;
}

.header-cart-icon {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.75) !important;
  cursor: pointer !important;
  text-decoration: none !important;
}

/* 购物车数量角标 */
.header-cart-count {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  transform: translate(30%, -20%) !important;
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 5px !important;
  border-radius: 9px !important;
  background: #ff8800 !important;
  color: #fff !important;
  font-family: "Inter", "SF Pro Text", -apple-system, sans-serif !important;
  font-size: 0.64rem !important;
  font-weight: 700 !important;
  line-height: 18px !important;
  text-align: center !important;
  white-space: nowrap !important;
  pointer-events: none !important;
  box-shadow: 0 0 0 2px var(--color-navy, #0a1628) !important;
}

.header-search-toggle:hover,
.header-cart-icon:hover,
.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.10) !important;
  color: #fff !important;
}

.mobile-menu-toggle {
  display: none !important;
}

.mobile-menu-toggle span,
.mobile-menu-toggle span::before,
.mobile-menu-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  content: "";
}

.mobile-menu-toggle span {
  position: relative;
}

.mobile-menu-toggle span::before,
.mobile-menu-toggle span::after {
  position: absolute;
  left: 0;
}

.mobile-menu-toggle span::before { top: -7px; }
.mobile-menu-toggle span::after { top: 7px; }

.header-search-dropdown {
  position: absolute !important;
  top: var(--mp-header) !important;
  left: 0 !important;
  right: 0 !important;
  display: none !important;
  padding: 22px 0 !important;
  background: rgba(7, 17, 31, 0.98) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10) !important;
}

.header-search-dropdown.active {
  display: block !important;
}

.official-site-header {
  min-height: 72px !important;
  background:
    linear-gradient(180deg, rgba(7, 17, 31, 0.98), rgba(7, 17, 31, 0.94)) !important;
  border-bottom: 1px solid rgba(18, 166, 209, 0.14) !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18) !important;
}

.official-site-header__inner {
  gap: 18px !important;
}

.official-branding {
  min-width: 220px !important;
  gap: 12px !important;
}

.official-branding .site-branding__title {
  position: relative;
  padding-left: 14px;
  font-size: 1.12rem !important;
}

.official-branding .site-branding__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 22px;
  border-radius: 4px;
  background: linear-gradient(180deg, #ff8800, var(--mp-blue));
  transform: translateY(-50%);
}

.official-branding__badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(102, 0, 102, 0.28);
  border-radius: 999px;
  background: rgba(102, 0, 102, 0.08);
  color: var(--mp-blue-2);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.official-primary-nav {
  flex: 1 1 auto !important;
  display: flex !important;
  justify-content: center !important;
  min-width: 0 !important;
}

.official-primary-nav .primary-menu {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  min-height: 44px !important;
  padding: 4px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.045) !important;
}

.official-primary-nav .primary-menu > .menu-item > a {
  position: relative !important;
  min-height: 36px !important;
  padding: 0 15px !important;
  border-radius: 999px !important;
  color: rgba(238, 246, 255, 0.76) !important;
  font-size: 0.91rem !important;
  font-weight: 750 !important;
  letter-spacing: 0 !important;
  background: transparent !important;
}

.official-primary-nav .primary-menu > .menu-item > a:hover,
.official-primary-nav .primary-menu > .menu-item.current-menu-item > a,
.official-primary-nav .primary-menu > .menu-item.current-menu-ancestor > a {
  color: #fff !important;
  background: rgba(102, 0, 102, 0.42) !important;
  box-shadow: inset 0 0 0 1px rgba(18, 166, 209, 0.18) !important;
}

.official-primary-nav .primary-menu > .menu-item-has-children > a::after {
  width: 6px !important;
  height: 6px !important;
  margin-left: 6px !important;
  border-color: currentColor !important;
  opacity: 0.55 !important;
}

.official-primary-nav .primary-menu .sub-menu {
  left: 50% !important;
  min-width: 232px !important;
  margin-top: 12px !important;
  padding: 10px !important;
  border: 1px solid rgba(219, 228, 240, 0.95) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 22px 54px rgba(7, 17, 31, 0.20) !important;
  transform: translateX(-50%) !important;
}

.official-primary-nav .primary-menu .sub-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid rgba(219, 228, 240, 0.95);
  border-top: 1px solid rgba(219, 228, 240, 0.95);
  transform: translateX(-50%) rotate(45deg);
}

.official-primary-nav .primary-menu .sub-menu a {
  padding: 10px 12px !important;
  border-radius: 8px !important;
  color: var(--mp-ink) !important;
  font-size: 0.9rem !important;
  font-weight: 750 !important;
}

.official-primary-nav .primary-menu .sub-menu a:hover {
  background: #e8f7fc !important;
  color: var(--mp-blue) !important;
}

.official-header-actions {
  min-width: 220px !important;
  justify-content: flex-end !important;
}

.official-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(18, 166, 209, 0.34);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(102, 0, 102, 0.92), rgba(26, 166, 183, 0.80));
  color: #fff !important;
  font-size: 0.88rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(102, 0, 102, 0.26);
}

.official-header-cta:hover {
  color: #fff !important;
  transform: translateY(-1px);
}

.user-menu {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

.user-menu::after {
  content: "" !important;
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  width: max(100%, 210px) !important;
  height: 16px !important;
  display: block !important;
}

.user-menu__trigger {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 40px !important;
  max-width: 172px !important;
  padding: 4px 10px 4px 6px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
}

.user-menu__trigger:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
}

.user-menu__avatar,
.user-menu__avatar-img {
  width: 28px !important;
  height: 28px !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  flex: 0 0 28px !important;
}

.user-menu__name {
  display: block !important;
  min-width: 0 !important;
  max-width: 86px !important;
  overflow: hidden !important;
  color: #fff !important;
  font-size: 0.84rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.user-menu__arrow {
  flex: 0 0 auto !important;
  color: rgba(255, 255, 255, 0.62) !important;
}

.user-menu__dropdown {
  position: absolute !important;
  top: calc(100% + 6px) !important;
  right: 0 !important;
  z-index: 3000 !important;
  display: none !important;
  width: 210px !important;
  min-width: 210px !important;
  padding: 8px !important;
  border: 1px solid var(--mp-line) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 24px 60px rgba(7, 17, 31, 0.24) !important;
}

.user-menu:hover .user-menu__dropdown,
.user-menu:focus-within .user-menu__dropdown {
  display: block !important;
}

.user-menu__dropdown::before {
  content: "" !important;
  position: absolute !important;
  top: -5px !important;
  right: 24px !important;
  width: 12px !important;
  height: 12px !important;
  border-top: 1px solid var(--mp-line) !important;
  border-left: 1px solid var(--mp-line) !important;
  background: #fff !important;
  transform: rotate(45deg) !important;
}

.user-menu__dropdown a {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 38px !important;
  padding: 0 12px !important;
  border-radius: 8px !important;
  color: var(--mp-ink) !important;
  font-size: 0.92rem !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

.user-menu__dropdown a:hover {
  background: #e8f7fc !important;
  color: var(--mp-blue) !important;
}

.user-menu__divider {
  height: 1px !important;
  margin: 7px 4px !important;
  border: 0 !important;
  background: var(--mp-line) !important;
}

.user-menu__badge {
  display: inline-flex !important;
  min-width: 18px !important;
  height: 18px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 5px !important;
  border-radius: 999px !important;
  background: var(--mp-red) !important;
  color: #fff !important;
  font-size: 0.7rem !important;
  font-weight: 900 !important;
}

.user-menu--guest {
  gap: 8px !important;
}

.user-menu--guest .btn {
  min-height: 36px !important;
  padding: 7px 13px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
}

.search-form {
  display: flex;
  max-width: 640px;
  margin: 0 auto;
  gap: 0;
}

.search-form__label {
  flex: 1;
}

.search-form__input,
.search-field,
input[type="search"] {
  width: 100%;
  min-height: 46px;
  padding: 0 15px;
  border: 1px solid var(--mp-line);
  border-radius: 8px 0 0 8px;
  background: #fff;
  color: var(--mp-ink);
  font-family: inherit;
  font-size: 1rem;
}

.header-search-dropdown .search-form__input,
.header-search-dropdown .search-field {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.search-form__submit,
.search-submit {
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--mp-blue);
  border-radius: 0 8px 8px 0;
  background: var(--mp-blue);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.btn,
button,
input[type="submit"],
.button {
  font-family: inherit;
}

.btn,
.button,
button.button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.25;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover,
.button:hover,
button.button:hover,
input[type="submit"]:hover {
  transform: translateY(-1px);
}

.btn--primary,
.button,
button.button,
input[type="submit"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: linear-gradient(135deg, var(--mp-blue), var(--mp-blue-2)) !important;
  border-color: var(--mp-blue) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(102, 0, 102, 0.22);
}

.btn--outline {
  background: #fff !important;
  border-color: rgba(102, 0, 102, 0.35) !important;
  color: var(--mp-blue) !important;
  box-shadow: none;
}

.btn--ghost {
  background: transparent !important;
  color: var(--mp-blue) !important;
}

.btn--light,
.official-btn--glass {
  background: rgba(255, 255, 255, 0.10) !important;
  border-color: rgba(255, 255, 255, 0.26) !important;
  color: #fff !important;
  box-shadow: none;
}

.btn--lg {
  min-height: 50px;
  padding: 13px 26px;
  font-size: 1rem;
}

.btn--sm {
  min-height: 34px;
  padding: 7px 14px;
  font-size: 0.84rem;
}

.official-kicker {
  margin-bottom: 12px;
  color: #ff8800;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.official-kicker--dark {
  color: var(--mp-blue);
}

.official-hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 96px;
  background:
    linear-gradient(115deg, rgba(7, 17, 31, 0.98) 0%, rgba(10, 24, 48, 0.98) 56%, rgba(16, 39, 71, 0.96) 100%);
}

.official-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 82%);
}

.official-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(390px, 0.82fr);
  gap: 64px;
  align-items: center;
}

.official-hero__title {
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4.65rem);
  font-weight: 950;
  line-height: 1.08;
}

.official-hero__desc {
  max-width: 700px;
  margin: 0 0 34px;
  color: rgba(238, 246, 255, 0.78);
  font-size: 1.12rem;
  line-height: 1.9;
}

.official-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.official-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.official-proof span {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.official-console {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(4, 12, 24, 0.72);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
}

.official-console__top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.official-console__top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.official-console__top strong {
  margin-left: auto;
}

.official-console__body {
  padding: 18px;
}

.official-frame {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.official-frame--active {
  border-color: rgba(18, 166, 209, 0.55);
  background: rgba(26, 166, 183, 0.13);
}

.official-frame span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  color: #9eeaf1;
  font-family: var(--font-mono);
  font-weight: 900;
}

.official-frame strong,
.official-frame small {
  display: block;
  font-family: var(--font-mono);
}

.official-frame strong {
  color: #fff;
  font-size: 0.9rem;
}

.official-frame small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.55);
}

.official-registers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.official-registers div {
  padding: 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.official-registers b,
.official-registers em {
  display: block;
  font-family: var(--font-mono);
  font-style: normal;
}

.official-registers b {
  color: #f2c27d;
}

.official-registers em {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.72rem;
}

.official-signal {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
}

.official-signal i {
  height: 44px;
  border-radius: 6px;
  background: linear-gradient(to top, rgba(102, 0, 102, 0.18), rgba(18, 166, 209, 0.86));
}

.official-signal i:nth-child(2n) {
  height: 28px;
  margin-top: 16px;
}

.official-signal i:nth-child(3n) {
  height: 36px;
  margin-top: 8px;
}

/* ====== Protocol Frame Viewer ====== */
.official-console--frame-viewer .official-console__body {
  padding: 16px 18px 20px;
}

.proto-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}

.proto-tab {
  flex: 1;
  padding: 10px 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-mono);
  font-size: 0.70rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}

.proto-tab:hover {
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.78);
}

.proto-tab.active {
  background: rgba(55, 128, 230, 0.18);
  border-color: rgba(55, 128, 230, 0.50);
  color: #7bb8ff;
  font-weight: 700;
}

/* Proto frame container */
.proto-frame {
  display: none;
}

.proto-frame.active {
  display: block;
}

/* Frame row */
.pf-row {
  display: flex;
  gap: 0;
}

.pf-row--header .pf-cell {
  font-weight: 700;
  font-size: 0.64rem;
  padding: 7px 4px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.05);
}

.pf-row--value .pf-cell {
  flex-direction: column;
  padding: 10px 4px;
}

.pf-cell {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center;
  min-width: 0;
  transition: all 0.2s;
}

.pf-row--value .pf-cell + .pf-cell {
  border-left: none;
}

/* Cell colors */
.pf-cell--addr {
  background: rgba(168, 140, 220, 0.22);
}

.pf-cell--func {
  background: rgba(88, 196, 120, 0.22);
}

.pf-cell--data {
  background: rgba(225, 180, 80, 0.22);
  flex: 2;
}

.pf-cell--crc,
.pf-cell--lrc {
  background: rgba(100, 200, 180, 0.25);
}

.pf-cell--mbap {
  background: rgba(168, 140, 220, 0.18);
  flex: 1;
}

.pf-cell--start,
.pf-cell--end {
  background: rgba(100, 200, 180, 0.25);
  flex: 0.6;
}

.pf-hex {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.04em;
}

.pf-size {
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 3px;
}

.pf-sub {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Split cell (CRC low/high) */
.pf-cell--split {
  padding: 0 !important;
}

.pf-split-inner {
  display: flex;
  width: 100%;
}

.pf-split-part {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 2px;
}

.pf-split-part:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.13);
}

.pf-cell--split .pf-size {
  margin-top: 2px;
}

/* Scope brackets (PDU / MBAP) */
.pf-row--scope {
  display: flex;
  height: 20px;
}

.pf-scope-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.38);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.04em;
  position: relative;
}

.pf-scope-cell::before,
.pf-scope-cell::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.18);
}

.pf-scope-cell::before { left: 0; }
.pf-scope-cell::after { right: 0; }

.pf-scope-cell--skip {
  flex: 1;
}

.pf-scope-cell--skip::before,
.pf-scope-cell--skip::after {
  display: none;
}

.pf-scope-cell--pdu {
  flex: 2;
  background: rgba(55, 128, 230, 0.08);
  border-top: 2px solid rgba(55, 128, 230, 0.35);
}

.pf-scope-cell--mbap {
  flex: 4;
  background: rgba(168, 140, 220, 0.08);
  border-top: 2px solid rgba(168, 140, 220, 0.40);
  color: rgba(255, 255, 255, 0.42);
}

.pf-scope-cell--pdu::before { left: 1px; }
.pf-scope-cell--pdu::after { right: 1px; }
.pf-scope-cell--mbap::before { left: 1px; }
.pf-scope-cell--mbap::after { right: 1px; }

/* TCP scope row: MBAP has flex 4, PDU has flex 2 */
.pf-row--scope-tcp .pf-scope-cell--mbap { flex: 4; }
.pf-row--scope-tcp .pf-scope-cell--pdu { flex: 2; }

/* Full hex string */
.pf-full-hex {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  font-family: var(--font-mono);
  flex-wrap: wrap;
}

.pf-full-label {
  font-size: 0.64rem;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

.pf-full-hex code {
  flex: 1;
  font-size: 0.72rem;
  color: #d4f4ff;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.pf-badge {
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(55, 128, 230, 0.25);
  color: #7bb8ff;
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
}

/* TCP-specific: 4 MBAP cells need different flex */
#proto-frame-tcp .pf-row .pf-cell--mbap {
  font-size: 0.55rem;
  padding: 5px 1px;
}

#proto-frame-tcp .pf-row--value .pf-cell--mbap {
  padding: 6px 1px;
}

#proto-frame-tcp .pf-hex {
  font-size: 0.72rem;
}

.official-stats {
  position: relative;
  z-index: 2;
  margin-top: -36px;
}

.official-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--mp-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--mp-shadow);
}

.official-stats__grid div {
  padding: 24px;
  border-right: 1px solid var(--mp-line);
}

.official-stats__grid div:last-child {
  border-right: 0;
}

.official-stats__grid strong {
  display: block;
  color: var(--mp-navy);
  font-size: 2rem;
  font-weight: 950;
  line-height: 1;
}

.official-stats__grid span {
  display: block;
  margin-top: 8px;
  color: var(--mp-muted);
  font-size: 0.9rem;
}

.official-section,
.section {
  padding: 86px 0;
}

.official-section--white,
.section--alt,
.section {
  background: #fff;
}

.official-section--split {
  background: linear-gradient(90deg, #f5f7fb 0%, #f5f7fb 52%, #eef3fa 52%, #eef3fa 100%);
}

.official-section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 36px;
  align-items: end;
  margin-bottom: 36px;
}

.official-section__head--compact {
  align-items: center;
}

.official-section__head h2,
.section__title {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.22;
  text-align: left;
}

.section__subtitle,
.official-section__head p {
  margin: 0;
  color: var(--mp-muted);
  line-height: 1.85;
}

.official-capabilities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--mp-line);
  border-radius: 12px;
  background: var(--mp-line);
}

.official-capability {
  min-height: 270px;
  padding: 28px;
  background: #fff;
  color: var(--mp-ink);
}

.official-capability:hover {
  background: #f8fbff;
  color: var(--mp-ink);
}

.official-capability--strong {
  background: var(--mp-navy);
  color: #fff;
}

.official-capability--strong:hover {
  background: var(--mp-navy-2);
  color: #fff;
}

.official-capability span {
  color: var(--mp-copper);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 900;
}

.official-capability h3 {
  margin: 52px 0 14px;
  font-size: 1.25rem;
}

.official-capability--strong h3 {
  color: #fff;
}

.official-capability p {
  margin: 0;
  color: inherit;
  opacity: 0.72;
  line-height: 1.75;
}

.official-business {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1fr);
  gap: 54px;
  align-items: center;
}

.official-business__copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.official-business__copy p {
  color: var(--mp-muted);
  line-height: 1.9;
}

.official-business__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.official-business__grid .official-business__item {
  display: block;
  min-height: 140px;
  padding: 22px;
  border: 1px solid var(--mp-line);
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}

.official-business__grid .official-business__item:hover {
  border-color: var(--mp-accent);
  box-shadow: 0 6px 18px rgba(0,74,173,0.09);
  transform: translateY(-2px);
}

.official-business__grid strong,
.official-business__grid span {
  display: block;
}

.official-business__grid strong {
  margin-bottom: 12px;
  color: var(--mp-navy);
  font-size: 1.08rem;
}

.official-business__grid span {
  color: var(--mp-muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.official-post-grid,
.posts-grid,
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.official-post-card,
.official-resource-card,
.official-related__item,
.post-card,
.feature-card,
.card {
  overflow: hidden;
  border: 1px solid var(--mp-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.official-post-card:hover,
.official-resource-card:hover,
.official-related__item:hover,
.post-card:hover,
.feature-card:hover,
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(102, 0, 102, 0.35);
  box-shadow: var(--mp-shadow-sm);
}

.official-post-card__media,
.official-resource-card__media,
.post-card__image {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(10, 24, 48, 0.96), rgba(16, 39, 71, 0.94)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 32px);
  color: rgba(255, 255, 255, 0.52);
  font-family: var(--font-mono);
  font-weight: 900;
}

.official-post-card__media img,
.official-resource-card__media img,
.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.official-post-card__body,
.post-card__body,
.feature-card,
.card__body {
  padding: 22px;
}

.official-post-card__meta,
.official-resource-card__meta,
.official-article__meta,
.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: #7b8798;
  font-size: 0.82rem;
}

.official-post-card__meta a,
.official-resource-card__meta a,
.official-tax-row a,
.post-card__category {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(102, 0, 102, 0.08);
  color: var(--mp-blue);
  font-size: 0.78rem;
  font-weight: 800;
}

.official-post-card h3,
.post-card__title {
  margin: 13px 0 10px;
  font-size: 1.12rem;
  line-height: 1.45;
}

.official-post-card h3 a,
.official-resource-card h2 a,
.post-card__title a {
  color: var(--mp-ink);
}

.official-post-card p,
.official-resource-card p,
.post-card__excerpt,
.feature-card__desc {
  margin: 0;
  color: var(--mp-muted);
  line-height: 1.72;
}

.official-link {
  color: var(--mp-blue);
  font-weight: 900;
}

.official-cta {
  padding: 72px 0;
  background: linear-gradient(135deg, var(--mp-navy), #07111f);
  color: #fff;
}

.official-cta__inner {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}

.official-cta h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
}

.official-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.70);
}

.official-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.resources-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 86px;
  background:
    linear-gradient(115deg, rgba(7, 17, 31, 0.98), rgba(12, 32, 61, 0.96)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 88px);
}

.resources-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(18, 166, 209, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 166, 209, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.86), transparent 82%);
}

.resources-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 58px;
  align-items: center;
}

.resources-hero h1 {
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(2.35rem, 5vw, 4.4rem);
  line-height: 1.08;
  font-weight: 950;
}

.resources-hero p {
  max-width: 680px;
  margin: 0 0 30px;
  color: rgba(238, 246, 255, 0.76);
  font-size: 1.1rem;
  line-height: 1.9;
}

.resources-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ====== Resource Tab Panel (hero right side) ====== */
.official-console--resource-tabs {
  align-self: stretch;
}

.official-console--resource-tabs .official-console__body {
  padding: 14px 16px 18px;
}

.proto-tabs--resource {
  gap: 4px;
  margin-bottom: 16px;
}

.proto-tabs--resource .proto-tab {
  padding: 9px 10px;
  font-size: 0.72rem;
  border-radius: 7px;
}

/* Resource card panel inside tab */
.rcard-panel {
  display: flex;
  flex-direction: column;
  min-height: 220px;
}

.rcard-panel__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.rcard-panel__num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 950;
}

.rcard-panel--protocol .rcard-panel__num { background: rgba(18, 166, 209, 0.18); color: #9eeaf1; }
.rcard-panel--knowledge .rcard-panel__num { background: rgba(140, 180, 240, 0.18); color: #a8c8f8; }
.rcard-panel--dev .rcard-panel__num { background: rgba(200, 160, 120, 0.18); color: #d4b080; }
.rcard-panel--debug .rcard-panel__num { background: rgba(140, 210, 140, 0.18); color: #a0d8a0; }
.rcard-panel--gvs .rcard-panel__num { background: rgba(255, 193, 7, 0.18); color: #ffc107; }
.rcard-panel--modbus .rcard-panel__num { background: rgba(18, 166, 209, 0.18); color: #9eeaf1; }

.rcard-panel__head h3 {
  margin: 0;
  color: #fff;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.25;
}

.rcard-panel p {
  flex: 1;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
  line-height: 1.75;
}

.rcard-panel__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 9px 18px;
  background: rgba(55, 128, 230, 0.18);
  border: 1px solid rgba(55, 128, 230, 0.35);
  border-radius: 8px;
  color: #7bb8ff;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.22s;
}

.rcard-panel__link:hover {
  background: rgba(55, 128, 230, 0.28);
  border-color: rgba(55, 128, 230, 0.55);
  color: #a0d0ff;
}

/* ====== Resources Quick Links (replaces old card grid) ====== */
.resources-quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--mp-line);
  border-radius: 12px;
  background: var(--mp-line);
}

.resources-quick-link {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 130px;
  padding: 22px 20px 24px;
  background: #fff;
  color: var(--mp-ink);
  text-decoration: none;
  isolation: isolate;
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.resources-quick-link::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: var(--mp-blue);
}

.resources-quick-link::after {
  content: "进入栏目 \2192";
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 30px;
  margin-top: 10px;
  padding: 0 12px;
  border: 1px solid rgba(102, 0, 102, 0.18);
  border-radius: 999px;
  background: rgba(102, 0, 102, 0.08);
  color: var(--mp-blue-2);
  font-size: 0.78rem;
  font-weight: 900;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.resources-quick-link:hover,
.resources-quick-link:focus-visible {
  background: #f4f8ff;
  color: var(--mp-ink);
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(102, 0, 102, 0.12);
  outline: 0;
}

.resources-quick-link:hover::after,
.resources-quick-link:focus-visible::after {
  background: var(--mp-blue);
  color: #fff;
  transform: translateX(4px);
}

.resources-quick-link strong {
  font-family: var(--font-mono);
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--mp-navy);
}

.resources-quick-link span {
  color: var(--mp-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.resources-stats {
  position: relative;
  z-index: 2;
  margin-top: -34px;
}

.resources-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--mp-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--mp-shadow);
}

.resources-stats__grid div {
  padding: 24px;
  border-right: 1px solid var(--mp-line);
}

.resources-stats__grid div:last-child {
  border-right: 0;
}

.resources-stats__grid strong {
  display: block;
  color: var(--mp-navy);
  font-size: 2rem;
  font-weight: 950;
  line-height: 1;
}

.resources-stats__grid span {
  display: block;
  margin-top: 8px;
  color: var(--mp-muted);
  font-size: 0.9rem;
}

.resources-section {
  padding: 84px 0;
}

.resources-section--white {
  background: #fff;
}

.resources-section--system {
  background: linear-gradient(90deg, #f5f7fb 0%, #f5f7fb 54%, #eef3fa 54%, #eef3fa 100%);
}

.resources-section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 36px;
  align-items: end;
  margin-bottom: 36px;
}

.resources-section__head--compact {
  align-items: center;
}

.resources-section__head h2 {
  margin: 0;
  font-size: clamp(1.78rem, 3vw, 2.58rem);
  line-height: 1.22;
}

.resources-section__head p {
  margin: 0;
  color: var(--mp-muted);
  line-height: 1.85;
}

/* ── Resources system grid: card layouts for doc sections ── */
.resources-system__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--mp-line);
  border-radius: 12px;
  background: var(--mp-line);
}

.resources-system__grid .resources-quick-link {
  background: #fff;
  border-radius: 0;
}

.resources-system {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1fr);
  gap: 54px;
  align-items: start;
}

.resources-system__aside h2 {
  font-size: clamp(1.78rem, 3vw, 2.58rem);
}

.resources-system__aside p {
  color: var(--mp-muted);
  line-height: 1.9;
}

.resources-route-list {
  display: grid;
  gap: 14px;
}

.resources-route-list a {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--mp-line);
  border-radius: 10px;
  background: #fff;
  color: var(--mp-ink);
  box-shadow: 0 10px 24px rgba(14, 31, 53, 0.05);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.resources-route-list a::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--mp-blue);
}

.resources-route-list a::after {
  content: "点击进入";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(102, 0, 102, 0.22);
  border-radius: 999px;
  background: rgba(102, 0, 102, 0.08);
  color: var(--mp-blue-2);
  font-size: 0.8rem;
  font-weight: 900;
  white-space: nowrap;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.resources-route-list a:hover,
.resources-route-list a:focus-visible {
  border-color: rgba(102, 0, 102, 0.35);
  background: #f4f9fc;
  color: var(--mp-ink);
  transform: translateX(4px);
  box-shadow: 0 16px 34px rgba(102, 0, 102, 0.12);
  outline: 0;
}

.resources-route-list a:hover::after,
.resources-route-list a:focus-visible::after {
  background: var(--mp-blue);
  color: #fff;
  transform: translateX(3px);
}

.resources-route-list b {
  color: var(--mp-navy);
}

.resources-route-list span {
  color: var(--mp-muted);
  line-height: 1.65;
}

.resources-cta {
  padding: 72px 0;
  background: linear-gradient(135deg, var(--mp-navy), #07111f);
  color: #fff;
}

.resources-cta__inner {
  display: flex;
  gap: 34px;
  justify-content: space-between;
  align-items: center;
}

.resources-cta h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.resources-cta p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.70);
}

.product-center-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 86px;
  background: linear-gradient(115deg, rgba(7, 17, 31, 0.98), rgba(16, 39, 71, 0.96));
}

.product-center-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.86), transparent 82%);
}

.product-center-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  align-items: center;
}

.product-center-hero h1 {
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(2.35rem, 5vw, 4.35rem);
  line-height: 1.08;
  font-weight: 950;
}

.product-center-hero p {
  max-width: 700px;
  margin: 0 0 30px;
  color: rgba(238, 246, 255, 0.76);
  font-size: 1.1rem;
  line-height: 1.9;
}

.product-center-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.product-center-meter {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.28);
}

.product-center-meter div {
  padding: 22px;
  background: rgba(255, 255, 255, 0.06);
}

.product-center-meter strong {
  display: block;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  font-weight: 950;
}

.product-center-meter span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.62);
}

.product-center-section {
  padding: 82px 0;
}

.product-center-section--cats,
.product-center-section--list {
  background: #fff;
}

.product-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.product-cat-card {
  display: block;
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--mp-line);
  border-radius: 12px;
  background: #fff;
  color: var(--mp-ink);
  box-shadow: 0 10px 24px rgba(14, 31, 53, 0.05);
}

.product-cat-card:hover {
  border-color: rgba(102, 0, 102, 0.35);
  color: var(--mp-ink);
  transform: translateY(-2px);
}

.product-cat-card span {
  color: var(--mp-copper);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 950;
}

.product-cat-card strong {
  display: block;
  margin: 28px 0 8px;
  color: var(--mp-navy);
  font-size: 1.16rem;
}

.product-cat-card em {
  color: var(--mp-muted);
  font-style: normal;
  font-size: 0.9rem;
}

.product-center-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.product-center-card {
  overflow: hidden;
  border: 1px solid var(--mp-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(14, 31, 53, 0.05);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.product-center-card:hover {
  border-color: rgba(102, 0, 102, 0.35);
  box-shadow: var(--mp-shadow-sm);
  transform: translateY(-3px);
}

.product-center-card__media {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 0.82;
  background: #f3f7fb;
  color: rgba(7, 17, 31, 0.35);
  font-family: var(--font-mono);
  font-weight: 950;
}

.product-center-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-center-card__body {
  padding: 18px;
}

.product-center-card__type {
  min-height: 20px;
  color: var(--mp-blue);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.product-center-card__type a {
  color: var(--mp-blue);
}

.product-center-card h3 {
  margin: 10px 0 12px;
  font-size: 1rem;
  line-height: 1.45;
}

.product-center-card h3 a {
  color: var(--mp-ink);
}

.product-center-card__price {
  color: var(--mp-red);
  font-weight: 950;
}

.product-center-card__link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--mp-blue);
  font-weight: 900;
}

.comments-area,
.comment-respond {
  margin-top: 26px;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--mp-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--mp-shadow-sm);
}

.comments-title,
.comment-reply-title {
  margin: 0 0 20px;
  color: var(--mp-navy);
  font-size: 1.32rem;
  font-weight: 950;
}

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

.comment-list .comment,
.comment-list .pingback,
.comment-list .trackback {
  margin: 0 0 16px;
  padding: 18px;
  border: 1px solid var(--mp-line);
  border-radius: 10px;
  background: #f8fbff;
}

.comment-body {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
}

.comment-author .avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
}

.comment-author,
.comment-meta,
.comment-content,
.reply {
  grid-column: 2;
}

.comment-author {
  color: var(--mp-ink);
  font-weight: 900;
}

.comment-meta,
.comment-metadata {
  margin: 2px 0 10px;
  color: var(--mp-muted);
  font-size: 0.82rem;
}

.comment-content {
  color: var(--mp-ink-2);
  line-height: 1.78;
}

.reply a,
.comment-reply-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--mp-blue);
  font-weight: 900;
}

.comment-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.comment-notes,
.comment-form-comment,
.comment-form-url,
.comment-form-cookies-consent,
.form-submit {
  grid-column: 1 / -1;
}

.comment-form p {
  margin: 0;
}

.comment-form label {
  display: block;
  margin-bottom: 7px;
  color: var(--mp-ink);
  font-weight: 850;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  border-color: var(--mp-line);
  background: #f8fbff;
}

.comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--mp-muted);
  font-size: 0.9rem;
}

.comment-form-cookies-consent input {
  width: auto;
  min-height: auto;
  margin-top: 5px;
}

.woocommerce-account .site-main,
.member-page-content,
.wpcom-member-main,
.wpcom-profile,
.wpcom-account,
.wpcom-member-form {
  background:
    radial-gradient(circle at 18% 0, rgba(55, 128, 230, 0.13), transparent 30%),
    linear-gradient(180deg, #eef3fa 0, #f7f9fc 360px, #fff 100%);
}

.member-page-content,
.woocommerce-account .woocommerce {
  max-width: var(--content-max-width);
  margin: 34px auto 72px;
  padding: 0 24px;
}

.woocommerce-account .woocommerce {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.woocommerce-MyAccount-navigation {
  position: sticky;
  top: calc(var(--mp-header) + 22px);
}

.woocommerce-MyAccount-navigation ul {
  overflow: hidden;
  margin: 0 !important;
  padding: 8px !important;
  border: 1px solid var(--mp-line) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: var(--mp-shadow-sm);
}

.woocommerce-MyAccount-navigation li {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.woocommerce-MyAccount-navigation a {
  display: flex !important;
  gap: 8px;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px !important;
  border-radius: 8px;
  color: var(--mp-ink) !important;
  font-weight: 850;
}

.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation a:hover {
  background: #e8f7fc !important;
  color: var(--mp-blue) !important;
}

.woocommerce-MyAccount-content,
.wpcom-member-main,
.wpcom-profile,
.wpcom-account,
.wpcom-member-form,
.member-page-content > article,
.member-page-content .entry-content {
  min-width: 0;
  border: 1px solid var(--mp-line) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: var(--mp-shadow-sm);
}

.woocommerce-MyAccount-content {
  padding: clamp(22px, 4vw, 34px) !important;
}

.member-login .site-main,
.member-register .site-main,
.member-lostpassword .site-main {
  min-height: calc(100vh - var(--mp-header));
  padding: 54px 0 82px;
  background:
    radial-gradient(circle at 16% 18%, rgba(18, 166, 209, 0.20), transparent 28%),
    radial-gradient(circle at 78% 8%, rgba(55, 128, 230, 0.16), transparent 24%),
    linear-gradient(180deg, #07111f 0, #10284a 48%, #eef3fa 48%, #fff 100%);
}

.member-login .member-page-content,
.member-register .member-page-content,
.member-lostpassword .member-page-content {
  max-width: 1080px;
  margin-top: 0;
}

.member-login .member-page-content,
.member-register .member-page-content,
.member-lostpassword .member-page-content,
.member-login .member-page-content > article,
.member-register .member-page-content > article,
.member-lostpassword .member-page-content > article,
.member-login .member-page-content .entry-content,
.member-register .member-page-content .entry-content,
.member-lostpassword .member-page-content .entry-content {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.member-form-wrap {
  position: relative;
  width: min(100%, 860px) !important;
  margin: 0 auto !important;
  padding: clamp(18px, 3vw, 28px) !important;
  border: 1px solid rgba(219, 228, 240, 0.92) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 28px 80px rgba(7, 17, 31, 0.24) !important;
}

.member-form-inner {
  max-width: 460px !important;
  margin: 0 auto !important;
}

.member-form-head {
  margin-bottom: 20px !important;
  padding-bottom: 18px !important;
  border-bottom: 1px solid var(--mp-line) !important;
}

.member-form-title {
  color: var(--mp-navy) !important;
  font-size: clamp(1.45rem, 3vw, 2rem) !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
}

.member-switch,
.member-switch a,
.member-form-forgot {
  color: var(--mp-muted) !important;
  font-size: 0.92rem !important;
}

.member-switch a,
.member-form-forgot {
  color: var(--mp-blue) !important;
  font-weight: 850 !important;
}

.member-form .form-group {
  margin-bottom: 14px !important;
}

.member-form .form-group label {
  display: flex !important;
  align-items: center !important;
  min-height: 46px !important;
  border: 1px solid var(--mp-line) !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.member-form .form-group label:focus-within {
  border-color: rgba(102, 0, 102, 0.45) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(102, 0, 102, 0.10) !important;
}

.member-form .form-group .wpcom-icon {
  margin-left: 12px !important;
  color: var(--mp-blue) !important;
}

.member-form .form-input,
.member-form input[type="text"],
.member-form input[type="password"],
.member-form input[type="email"],
.member-form input[type="tel"] {
  min-height: 44px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.member-remember {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 18px !important;
}

.captcha-button {
  min-height: 46px !important;
  border: 1px dashed rgba(102, 0, 102, 0.36) !important;
  border-radius: 8px !important;
  background: #e8f7fc !important;
  color: var(--mp-blue) !important;
  font-weight: 850 !important;
}

.member-form .wpcom-btn,
.member-form button[type="submit"],
.member-form input[type="submit"] {
  width: 100% !important;
  min-height: 48px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, var(--mp-blue), var(--mp-blue-2)) !important;
  box-shadow: 0 14px 34px rgba(102, 0, 102, 0.24) !important;
  color: #fff !important;
  font-size: 1rem !important;
  font-weight: 950 !important;
}

.member-form-qr {
  margin-top: 22px !important;
  padding: 16px !important;
  border: 1px solid rgba(18, 166, 209, 0.32) !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #f5fbff, #e8f7fc) !important;
}

.member-form-qr-img {
  border-radius: 8px !important;
  background: #fff !important;
}

.member-social-list {
  display: flex !important;
  gap: 10px !important;
  justify-content: center !important;
  margin: 12px 0 0 !important;
  padding: 0 !important;
}

.member-social-list a {
  display: inline-flex !important;
  width: 38px !important;
  height: 38px !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid var(--mp-line) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--mp-navy) !important;
}

.member-form-switcher {
  border: 1px solid var(--mp-line) !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: var(--mp-shadow-sm) !important;
}

.woocommerce-MyAccount-content > p:first-child,
.wpcom-member-main > p:first-child,
.wpcom-account > p:first-child,
.wpcom-profile > p:first-child {
  padding: 14px 16px;
  border: 1px solid rgba(102, 0, 102, 0.16);
  border-radius: 10px;
  background: linear-gradient(135deg, #e8f7fc, #f8fbff);
  color: var(--mp-navy);
  font-weight: 750;
}

.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3,
.wpcom-member-main h2,
.wpcom-member-main h3,
.member-page-content h2,
.member-page-content h3 {
  color: var(--mp-navy);
  font-weight: 950;
}

.woocommerce table.shop_table,
.woocommerce-orders-table,
.woocommerce-table,
.woocommerce-MyAccount-downloads {
  overflow: hidden;
  border: 1px solid var(--mp-line) !important;
  border-radius: 10px !important;
  background: #fff;
  border-collapse: separate !important;
  border-spacing: 0;
}

.woocommerce table.shop_table th,
.woocommerce-orders-table th,
.woocommerce table.shop_table td,
.woocommerce-orders-table td {
  padding: 14px 16px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--mp-line) !important;
}

.woocommerce table.shop_table tr:last-child td,
.woocommerce-orders-table tr:last-child td {
  border-bottom: 0 !important;
}

.woocommerce table.shop_table th,
.woocommerce-orders-table th {
  background: #eef3fa !important;
  color: var(--mp-navy);
  font-size: 0.88rem;
  font-weight: 950;
}

.woocommerce-MyAccount-content .button,
.woocommerce-downloads .button,
.woocommerce-orders-table .button,
.wpcom-member-main .button,
.wpcom-member-main a[class*="btn"],
.wpcom-member-main button,
.wpcom-member-main input[type="submit"],
.member-page-content .button,
.member-page-content a[class*="btn"],
.member-page-content .wpcom-btn,
.member-page-content button[type="submit"],
.member-page-content input[type="submit"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, var(--mp-blue), var(--mp-blue-2)) !important;
  color: #fff !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

.woocommerce-downloads,
.woocommerce-MyAccount-content .download,
.wpcom-member-main .download,
.wpcom-member-main .downloads,
.wpcom-member-main [class*="download"],
.wpcom-member-main [class*="order"],
.wpcom-member-main [class*="vip"],
.wpcom-member-main [class*="pay"],
.wpcom-member-main [class*="wallet"],
.wpcom-member-main [class*="point"],
.member-page-content [class*="download"],
.member-page-content [class*="order"],
.member-page-content [class*="vip"],
.member-page-content [class*="wallet"],
.member-page-content [class*="point"],
.member-page-content [class*="pay"] {
  max-width: 100%;
}

.woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-MyAccount-content .woocommerce-error,
.member-page-content .wpcom-alert,
.wpcom-member-main .wpcom-alert {
  overflow: hidden;
  margin: 0 0 18px !important;
  padding: 14px 16px !important;
  border: 1px solid rgba(102, 0, 102, 0.18) !important;
  border-radius: 10px !important;
  background: #e8f7fc !important;
  color: var(--mp-navy) !important;
}

.woocommerce-MyAccount-content mark,
.member-page-content mark {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(192, 139, 63, 0.14);
  color: #8a5a17;
  font-weight: 900;
}

.woocommerce-MyAccount-content fieldset,
.member-page-content fieldset,
.wpcom-member-main fieldset {
  margin: 20px 0 !important;
  padding: 18px !important;
  border: 1px solid var(--mp-line) !important;
  border-radius: 10px !important;
}

.woocommerce-MyAccount-content legend,
.member-page-content legend,
.wpcom-member-main legend {
  padding: 0 8px;
  color: var(--mp-navy);
  font-weight: 950;
}

.member-page-content ul:not(.member-social-list),
.wpcom-member-main ul,
.woocommerce-MyAccount-content ul {
  padding-left: 1.2em;
}

.member-page-content [class*="card"],
.member-page-content [class*="item"],
.wpcom-member-main [class*="card"],
.wpcom-member-main [class*="item"],
.woocommerce-MyAccount-content .woocommerce-Address,
.woocommerce-MyAccount-content .woocommerce-column {
  border-color: var(--mp-line) !important;
  border-radius: 10px !important;
}

.member-page-content [class*="vip"],
.wpcom-member-main [class*="vip"] {
  border-radius: 10px !important;
  background:
    linear-gradient(135deg, rgba(192, 139, 63, 0.14), rgba(255, 255, 255, 0.94)),
    #fff !important;
}

.member-page-content [class*="price"],
.member-page-content [class*="money"],
.member-page-content [class*="amount"],
.wpcom-member-main [class*="price"],
.wpcom-member-main [class*="money"],
.wpcom-member-main [class*="amount"],
.woocommerce-Price-amount {
  color: #b26b18 !important;
  font-weight: 950 !important;
}

.member-page-content a[href*="download"],
.member-page-content a[href*="order"],
.member-page-content a[href*="vip"],
.member-page-content a[href*="recharge"],
.member-page-content a[href*="wallet"],
.wpcom-member-main a[href*="download"],
.wpcom-member-main a[href*="order"],
.wpcom-member-main a[href*="vip"],
.wpcom-member-main a[href*="recharge"],
.wpcom-member-main a[href*="wallet"] {
  font-weight: 850;
}

.wpcom-member-main table,
.member-page-content table {
  display: table;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--mp-line);
  border-radius: 10px;
  background: #fff;
}

.wpcom-member-main input,
.wpcom-member-main select,
.wpcom-member-main textarea,
.member-page-content input,
.member-page-content select,
.member-page-content textarea {
  max-width: 100%;
  border-color: var(--mp-line) !important;
  border-radius: 8px !important;
}

.woocommerce-MyAccount-content input,
.woocommerce-MyAccount-content select,
.woocommerce-MyAccount-content textarea {
  min-height: 42px;
  border: 1px solid var(--mp-line) !important;
  border-radius: 8px !important;
}

.official-article-shell {
  padding: 26px 0 82px;
  background: linear-gradient(180deg, #eef3fa 0, #fff 420px);
}

.breadcrumb,
.official-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 26px;
  color: var(--mp-muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--mp-blue);
}

.breadcrumb .separator {
  color: #a6b1bf;
}

.official-article-layout,
.official-archive-layout,
.page-layout,
.single-post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  align-items: start;
}

.official-article-layout--center {
  grid-template-columns: minmax(0, 860px);
  justify-content: center;
}

.official-article-layout__main,
.official-archive-layout__main,
.page-layout__main,
.single-post-layout__main {
  min-width: 0;
}

.official-article,
.page-content,
.article {
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--mp-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--mp-shadow);
}

.official-article__header,
.article__header {
  margin-bottom: 34px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--mp-line);
}

.official-tax-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.official-article__header h1,
.article__title {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.18;
}

.official-article__cover {
  overflow: hidden;
  margin: -8px 0 34px;
  border-radius: 12px;
}

.official-article__cover img {
  width: 100%;
}

.official-article__body,
.article__body {
  color: #1d2939;
  font-size: 1.07rem;
  line-height: 1.92;
}

.official-article__body h2,
.article__body h2 {
  margin: 44px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--mp-line);
  font-size: 1.72rem;
}

.official-article__body h3,
.article__body h3 {
  margin: 34px 0 14px;
  font-size: 1.32rem;
}

.official-article__body img,
.article__body img {
  margin: 26px auto;
  border-radius: 10px;
}

.official-article__body table,
.article__body table {
  display: block;
  overflow-x: auto;
  border: 1px solid var(--mp-line);
  border-radius: 10px;
}

.official-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--mp-line);
}

.official-tags strong {
  margin-right: 4px;
}

.official-tags a {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(102, 0, 102, 0.08);
  color: var(--mp-blue);
}

.official-article-cta {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0;
  padding: 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0a1830, #520052);
  color: #fff;
}

.official-article-cta strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.15rem;
}

.official-article-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.70);
}

.official-article-cta > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.official-related {
  margin-top: 34px;
}

.official-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.official-related__item {
  display: block;
  padding: 20px;
}

.official-related__item span {
  display: block;
  margin-bottom: 10px;
  color: #7b8798;
  font-size: 0.82rem;
}

.official-related__item strong {
  color: var(--mp-ink);
  line-height: 1.55;
}

.post-nav,
.official-post-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 26px;
}

.post-nav__item {
  display: block;
  padding: 18px;
  border: 1px solid var(--mp-line);
  border-radius: 10px;
  background: #fff;
}

.post-nav__label {
  display: block;
  margin-bottom: 6px;
  color: var(--mp-muted);
  font-size: 0.82rem;
}

.post-nav__title {
  display: block;
  color: var(--mp-ink);
  font-weight: 800;
}

.post-nav__next {
  text-align: right;
}

.official-sticky-panel,
.sidebar {
  position: sticky;
  top: calc(var(--mp-header) + 22px);
  padding: 22px;
  border: 1px solid var(--mp-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--mp-shadow-sm);
}

.official-sticky-panel__title,
.widget__title {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--mp-line);
  color: var(--mp-navy);
  font-size: 1rem;
  font-weight: 900;
}

.widget {
  margin-bottom: 24px;
}

.widget:last-child {
  margin-bottom: 0;
}

.widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.widget li {
  padding: 9px 0;
  border-bottom: 1px solid #eef3fa;
}

.widget li:last-child {
  border-bottom: 0;
}

.widget a {
  color: var(--mp-ink-2);
  font-weight: 650;
}

.official-archive-hero,
.archive-header {
  padding: 72px 0;
  background: linear-gradient(135deg, var(--mp-navy), #520052);
  color: #fff;
  text-align: left;
}

.official-archive-hero h1,
.archive-header__title {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.official-archive-hero__desc,
.archive-header__desc {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.06rem;
  line-height: 1.85;
}

.official-archive-body {
  padding: 46px 0 82px;
}

.official-archive-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  color: var(--mp-muted);
  font-size: 0.92rem;
}

.official-resource-list {
  display: grid;
  gap: 18px;
}

.official-resource-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.official-resource-card__media {
  min-height: 188px;
  aspect-ratio: auto;
}

.official-resource-card__body {
  padding: 24px;
}

.official-resource-card h2 {
  margin: 12px 0 10px;
  font-size: 1.36rem;
  line-height: 1.4;
}

.official-resource-card .official-link {
  display: inline-block;
  margin-top: 14px;
}

.official-empty,
.error-404 {
  padding: 58px;
  border: 1px solid var(--mp-line);
  border-radius: 12px;
  background: #fff;
  text-align: center;
}

.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--mp-line);
  border-radius: 8px;
  background: #fff;
  color: var(--mp-ink);
  font-weight: 800;
}

.page-numbers.current,
.page-numbers:hover {
  border-color: var(--mp-blue);
  background: var(--mp-blue);
  color: #fff;
}

.site-footer {
  padding: 64px 0 28px !important;
  background: #06101e !important;
  color: rgba(255, 255, 255, 0.68) !important;
}

.footer__grid {
  display: grid !important;
  grid-template-columns: minmax(260px, 1.35fr) minmax(0, 2fr) !important;
  gap: 42px !important;
  margin-bottom: 42px !important;
  align-items: start !important;
}

.footer__col h4,
.footer__brand h4 {
  margin: 0 0 14px !important;
  color: #fff !important;
  font-size: 1rem !important;
}

.footer__brand-desc {
  max-width: 440px;
  color: rgba(255, 255, 255, 0.62);
}

.footer__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__col li {
  margin: 0 0 8px;
  padding: 0;
  line-height: 1.55;
}

.footer__col a,
.footer__bottom a {
  color: rgba(255, 255, 255, 0.68);
}

.footer__col a:hover,
.footer__bottom a:hover {
  color: #fff;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
}

.footer__bottom-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer__bottom-links a {
  color: rgba(255, 255, 255, 0.68);
  transition: color 0.2s;
}

.footer__bottom-links a:hover {
  color: #fff;
}

/* ── Footer Trust Bar ── */

.footer__trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.88rem;
}

@media (max-width: 600px) {
  .footer__trust {
    gap: 16px;
  }
}

.site-footer .footer__col:not(.footer__brand) {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 28px 36px;
}

.site-footer .footer__col:not(.footer__brand) > h4 {
  grid-column: 1 / -1;
  margin-bottom: -8px !important;
}

.site-footer .widget {
  min-width: 0;
  margin: 0 !important;
}

.site-footer .widget__title,
.site-footer .widgettitle,
.site-footer .widget h4 {
  margin: 0 0 12px !important;
  padding: 0 0 10px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10) !important;
  color: #fff !important;
  font-size: 0.95rem !important;
  font-weight: 900 !important;
}

.site-footer .menu,
.site-footer .widget ul {
  display: grid;
  gap: 7px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.site-footer .menu li,
.site-footer .widget li {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.site-footer .menu a,
.site-footer .widget a {
  display: inline-flex;
  max-width: 100%;
  color: rgba(255, 255, 255, 0.66) !important;
  font-size: 0.9rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.site-footer .menu a:hover,
.site-footer .widget a:hover {
  color: #fff !important;
}

.site-footer .product-categories .children {
  margin-top: 7px !important;
  padding-left: 12px !important;
  border-left: 1px solid rgba(255, 255, 255, 0.10);
}

.site-footer .count {
  margin-left: 5px;
  color: rgba(255, 255, 255, 0.42);
}

.scroll-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--mp-blue);
  color: #fff;
  box-shadow: var(--mp-shadow-sm);
}

.scroll-to-top.visible {
  display: grid;
  place-items: center;
}

/* ---- Floating Contact Widget ---- */
.floating-contact {
  position: fixed;
  right: 22px;
  bottom: 74px;
  z-index: 999;
}

.floating-contact__toggle {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--mp-blue, #660066);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(55, 138, 221, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 2;
}

.floating-contact__toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(55, 138, 221, 0.45);
}

.floating-contact__icon--close { display: none; }
.floating-contact.is-open .floating-contact__icon--chat { display: none; }
.floating-contact.is-open .floating-contact__icon--close { display: block; }

.floating-contact__panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: 280px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
}

.floating-contact.is-open .floating-contact__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-contact__header {
  padding: 16px 20px;
  background: var(--mp-blue, #660066);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1rem;
  font-weight: 500;
}

.floating-contact__header small {
  font-size: 0.8rem;
  opacity: 0.85;
  font-weight: 400;
}

.floating-contact__item {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--mp-line, #EDEDED);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  cursor: pointer;
}

.floating-contact__item:hover {
  background: #F7F9FC;
}

.floating-contact__item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #E8F5EE;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 12px;
}

.floating-contact__item-text strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--mp-text);
  margin-bottom: 2px;
}

.floating-contact__item-text span {
  font-size: 0.82rem;
  color: var(--mp-muted);
}

.floating-contact__item--qrcode {
  position: relative;
}

.floating-contact__qrcode {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%) translateX(-8px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  padding: 12px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, visibility 0.2s;
  white-space: nowrap;
}

.floating-contact__item--qrcode:hover .floating-contact__qrcode {
  opacity: 1;
  visibility: visible;
}

.floating-contact__qrcode img {
  display: block;
  width: 140px;
  height: 140px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.floating-contact__qrcode span {
  font-size: 0.78rem;
  color: var(--mp-muted);
  display: block;
}

.floating-contact__call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: var(--mp-blue, #660066);
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.15s;
  border: 0;
  width: 100%;
  cursor: pointer;
}

.floating-contact__call-btn:hover {
  background: #2A6DB5;
  color: #fff;
}

/* ---- Mobile: bottom sticky bar ---- */
.floating-contact-mobile {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  background: #fff;
  border-top: 1px solid var(--mp-line, #EDEDED);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
  padding: 8px 16px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}

.floating-contact-mobile__grid {
  display: flex;
  gap: 10px;
}

.floating-contact-mobile__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  border: 0;
  cursor: pointer;
}

.floating-contact-mobile__btn--phone {
  background: #fff;
  border: 1.5px solid var(--mp-blue, #660066);
  color: var(--mp-blue, #660066);
}

.floating-contact-mobile__btn--wechat {
  background: #E8F5EE;
  border: 1.5px solid #1D9E75;
  color: #1D9E75;
}

.floating-contact-mobile__btn--cart {
  background: var(--mp-blue, #660066);
  color: #fff;
}

@media (max-width: 768px) {
  .floating-contact { bottom: 90px; right: 12px; display: none !important; }
  .ai-search-float { display: none !important; }
  .floating-contact__qrcode {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.25);
  }
  .floating-contact__item--qrcode:hover .floating-contact__qrcode {
    opacity: 1;
    visibility: visible;
  }
  .floating-contact-mobile { display: block; }
  .floating-contact__call-btn { display: none; }
}

/* ---- Product Detail Contact Card ---- */
.product-contact-card {
  clear: both;
  width: 100%;
  margin-top: 16px;
  padding: 16px;
  background: linear-gradient(135deg, #F7FAFF 0%, #FFFFFF 72%);
  border: 1px solid rgba(102, 0, 102, 0.16);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(10, 31, 68, 0.08);
}

.product-contact-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--mp-ink);
  margin-bottom: 12px;
}

.product-contact-card__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  position: relative;
}

.product-contact-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.product-contact-card__btn--phone {
  background: var(--mp-blue, #660066);
  color: #fff;
}

.product-contact-card__btn--phone:hover {
  background: #2A6DB5;
  color: #fff;
}

.product-contact-card__btn--wechat {
  background: #fff;
  border: 1px solid rgba(102, 0, 102, 0.28);
  color: var(--mp-blue, #660066);
}

.product-contact-card__btn--wechat:hover {
  background: #e8f7fc;
}

.product-contact-card__qrcode {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  padding: 14px;
  text-align: center;
}

.product-contact-card__qrcode--show {
  display: block;
}

.product-contact-card__qrcode img {
  display: block;
  width: 130px;
  height: 130px;
  border-radius: 8px;
  margin-bottom: 6px;
}

.product-contact-card__qrcode span {
  font-size: 0.8rem;
  color: var(--mp-muted);
}

@media (max-width: 768px) {
  .woocommerce div.product form.cart {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .woocommerce div.product form.cart .quantity .qty {
    width: 100%;
  }

  .woocommerce div.product form.cart .button,
  .woocommerce div.product form.cart button.single_add_to_cart_button {
    width: 100%;
    min-width: 0;
  }

  .product-contact-card {
    margin-top: 14px;
    padding: 14px;
  }

  .product-contact-card__actions {
    grid-template-columns: 1fr;
  }

  .product-contact-card__qrcode {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
  }
}

/* ---- Product Archive Banner ---- */
.product-archive-banner {
  background: linear-gradient(135deg, #EEF4FD 0%, #E8F0FB 100%);
  border: 1px solid #D0DFF2;
  border-radius: 12px;
  padding: 18px 24px;
  margin-bottom: 28px;
}

.product-archive-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.product-archive-banner__text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--mp-text);
  margin-bottom: 4px;
}

.product-archive-banner__text span {
  font-size: 0.84rem;
  color: var(--mp-muted);
}

.product-archive-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.product-archive-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.product-archive-banner__btn--primary {
  background: var(--mp-blue, #660066);
  color: #fff;
}

.product-archive-banner__btn--primary:hover {
  background: #2A6DB5;
  color: #fff;
}

.product-archive-banner__btn--outline {
  background: #fff;
  border: 1.5px solid var(--mp-blue, #660066);
  color: var(--mp-blue, #660066);
}

.product-archive-banner__btn--outline:hover {
  background: #EEF4FD;
}

@media (max-width: 768px) {
  .product-archive-banner__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .product-archive-banner__actions {
    width: 100%;
  }
  .product-archive-banner__btn {
    flex: 1;
    justify-content: center;
  }
}

/* ---- Product Center Page Banner (page-chanpin.php) ---- */
.product-contact-banner {
  padding: 22px 0;
}

.product-contact-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 24px;
  background: linear-gradient(135deg, #EEF4FD 0%, #E8F0FB 100%);
  border: 1px solid #D0DFF2;
  border-radius: 12px;
}

.product-contact-banner__text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--mp-text);
  margin-bottom: 4px;
}

.product-contact-banner__text span {
  font-size: 0.84rem;
  color: var(--mp-muted);
}

.product-contact-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.product-contact-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.product-contact-banner__btn--primary {
  background: var(--mp-blue, #660066);
  color: #fff;
}

.product-contact-banner__btn--primary:hover {
  background: #2A6DB5;
  color: #fff;
}

.product-contact-banner__btn--outline {
  background: #fff;
  border: 1.5px solid var(--mp-blue, #660066);
  color: var(--mp-blue, #660066);
}

.product-contact-banner__btn--outline:hover {
  background: #EEF4FD;
}

@media (max-width: 768px) {
  .product-contact-banner__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .product-contact-banner__actions {
    width: 100%;
  }
  .product-contact-banner__btn {
    flex: 1;
    justify-content: center;
  }
}

.woocommerce .container,
.woocommerce-page .container {
  max-width: var(--content-max-width);
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

.woocommerce ul.products li.product {
  float: none;
  width: auto !important;
  margin: 0 !important;
  padding: 0 0 18px;
  border: 1px solid var(--mp-line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.woocommerce ul.products li.product img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  padding: 14px 16px 0;
  color: var(--mp-ink);
  font-size: 1rem;
  font-weight: 800;
}

.woocommerce ul.products li.product .price {
  display: block;
  padding: 6px 16px;
  color: var(--mp-red);
  font-weight: 900;
}

.woocommerce ul.products li.product .button {
  margin: 8px 16px 0 !important;
}

.woocommerce div.product form.cart {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 12px;
  clear: both;
  margin: 22px 0 0;
}

.woocommerce div.product form.cart::before,
.woocommerce div.product form.cart::after {
  display: none;
}

.woocommerce div.product form.cart .quantity {
  float: none !important;
  display: flex;
  align-items: stretch;
  margin: 0 !important;
}

.woocommerce div.product form.cart .quantity .qty {
  width: 92px;
  min-height: 48px;
  text-align: center;
}

.woocommerce div.product form.cart .button,
.woocommerce div.product form.cart button.single_add_to_cart_button {
  float: none !important;
  min-height: 48px;
  margin: 0 !important;
  white-space: nowrap;
  flex: 1 1 220px;
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary,
.woocommerce div.product .woocommerce-product-gallery {
  max-width: 100%;
}

.woocommerce div.product,
.woocommerce-cart-form,
.cart-collaterals,
.woocommerce-checkout .col2-set,
.woocommerce-checkout #order_review,
.woocommerce-MyAccount-navigation ul,
.woocommerce-MyAccount-content {
  padding: 24px;
  border: 1px solid var(--mp-line);
  border-radius: 12px;
  background: #fff;
}

@media (max-width: 768px) {
  .woocommerce div.product {
    overflow: hidden;
    padding: 16px;
  }

  .woocommerce div.product div.images,
  .woocommerce div.product div.summary,
  .woocommerce div.product .woocommerce-product-gallery {
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .woocommerce div.product form.cart {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    width: 100%;
  }

  .woocommerce div.product form.cart .quantity .qty {
    width: 100%;
  }

  .woocommerce div.product form.cart .button,
  .woocommerce div.product form.cart button.single_add_to_cart_button {
    width: 100%;
    min-width: 0;
  }

  .product-contact-card {
    margin-top: 14px;
    padding: 14px;
  }

  .product-contact-card__actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .woocommerce div.product form.cart {
    grid-template-columns: 1fr;
  }
}

.single-product .page-layout,
.single-product .page-layout__main,
.single-product.woocommerce div.product,
.single-product .woocommerce div.product {
  min-width: 0;
  max-width: 100%;
}

.single-product .page-layout__main {
  width: 100%;
  align-self: stretch;
  overflow: hidden;
}

.single-product.woocommerce div.product,
.single-product .woocommerce div.product {
  width: 100% !important;
}

.single-product .woocommerce-product-gallery,
.single-product .woocommerce-product-gallery .flex-viewport,
.single-product .woocommerce-product-gallery__image,
.single-product .woocommerce-product-gallery__image a,
.single-product .woocommerce-product-gallery__image img {
  max-width: 100%;
}

@media (max-width: 992px) {
  .single-product .page-layout {
    display: block;
    width: 100%;
  }
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="url"],
textarea,
select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--mp-line);
  border-radius: 8px;
  background: #fff;
  color: var(--mp-ink);
  font-family: inherit;
}

textarea {
  min-height: 120px;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(102, 0, 102, 0.18);
  border-color: var(--mp-blue);
}

@media (max-width: 1100px) {
  .official-hero__grid,
  .official-business,
  .resources-hero__grid,
  .resources-system,
  .product-center-hero__grid {
    grid-template-columns: 1fr;
  }

  .official-console {
    max-width: 620px;
  }

  .official-capabilities,
  .resources-quick-links,
  .resources-system__grid,
  .product-cat-grid,
  .product-center-grid,
  .official-post-grid,
  .posts-grid,
  .features-grid,
  .official-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .official-article-layout,
  .official-archive-layout,
  .page-layout,
  .single-post-layout {
    grid-template-columns: 1fr;
  }

  .official-sticky-panel,
  .sidebar {
    position: static;
  }

  .woocommerce ul.products {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-footer .footer__col:not(.footer__brand) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: grid !important;
    order: 2;
  }

  .primary-nav {
    order: 4;
    width: 100%;
  }

  .site-header {
    height: auto !important;
    min-height: var(--mp-header) !important;
  }

  .site-header__inner {
    flex-wrap: wrap !important;
    min-height: var(--mp-header) !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  .primary-menu {
    display: none !important;
    width: 100% !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 10px 0 4px !important;
  }

  .official-primary-nav .primary-menu.active {
    display: flex !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    max-height: calc(100vh - var(--mp-header) - 24px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px !important;
    border: 1px solid rgba(219, 228, 240, 0.95) !important;
    border-radius: 0 0 12px 12px !important;
    background: #ffffff !important;
    box-shadow: 0 18px 40px rgba(7, 17, 31, 0.18) !important;
  }

  .official-primary-nav .primary-menu.active > .menu-item > a {
    color: var(--mp-ink) !important;
  }

  .official-primary-nav .primary-menu.active > .menu-item > a:hover,
  .official-primary-nav .primary-menu.active > .menu-item.current-menu-item > a,
  .official-primary-nav .primary-menu.active > .menu-item.current-menu-ancestor > a {
    color: var(--mp-blue) !important;
    background: rgba(102, 0, 102, 0.08) !important;
  }

  .official-primary-nav .primary-menu.active .sub-menu {
    background: #f5f8fc !important;
    border-color: rgba(219, 228, 240, 0.95) !important;
  }

  .official-primary-nav .primary-menu.active .sub-menu a {
    color: var(--mp-ink) !important;
  }

  .official-primary-nav .primary-menu.active .sub-menu a:hover {
    color: var(--mp-blue) !important;
    background: rgba(102, 0, 102, 0.08) !important;
  }

  .official-branding {
    min-width: 0 !important;
  }

  .official-branding__badge,
  .official-header-cta {
    display: none !important;
  }

  .official-primary-nav {
    justify-content: stretch !important;
  }

  .official-primary-nav .primary-menu {
    width: 100% !important;
    border-radius: 12px !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
    background: rgba(255, 255, 255, 0.06) !important;
  }

  .primary-menu > .menu-item > a {
    justify-content: space-between !important;
  }

  .official-primary-nav .primary-menu > .menu-item > a {
    min-height: 42px !important;
    border-radius: 8px !important;
  }

  .primary-menu .sub-menu {
    position: static !important;
    display: block !important;
    margin: 4px 0 8px !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    box-shadow: none !important;
  }

  .primary-menu .sub-menu a {
    color: rgba(255, 255, 255, 0.80) !important;
  }

  .official-primary-nav .primary-menu .sub-menu {
    transform: none !important;
  }

  .official-primary-nav .primary-menu .sub-menu::before {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .container {
    padding: 0 18px;
  }

  .official-hero {
    padding: 70px 0 66px;
  }

  .official-hero__title {
    font-size: 2.35rem;
  }

  .official-hero__desc {
    font-size: 1rem;
  }

  .official-console {
    display: none;
  }

  .official-section,
  .section,
  .official-cta {
    padding: 56px 0;
  }

  .official-section__head,
  .official-cta__inner {
    display: block;
  }

  .official-section__head p,
  .official-cta__actions {
    margin-top: 18px;
  }

  .official-stats__grid,
  .resources-stats__grid,
  .official-capabilities,
  .resources-quick-links,
  .resources-system__grid,
  .product-cat-grid,
  .product-center-grid,
  .official-business__grid,
  .official-post-grid,
  .posts-grid,
  .features-grid,
  .official-related__grid,
  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }

  .official-stats__grid div,
  .resources-stats__grid div {
    border-right: 0;
    border-bottom: 1px solid var(--mp-line);
  }

  .official-stats__grid div:last-child,
  .resources-stats__grid div:last-child {
    border-bottom: 0;
  }

  .resources-hero {
    padding: 68px 0 62px;
  }

  .product-center-hero {
    padding: 68px 0 62px;
  }

  .resources-section,
  .product-center-section,
  .resources-cta {
    padding: 56px 0;
  }

  .resources-section__head,
  .resources-cta__inner {
    display: block;
  }

  .resources-section__head p,
  .resources-cta .btn {
    margin-top: 18px;
  }

  .resources-route-list a {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px;
  }

  .resources-route-list a::after {
    justify-self: start;
    margin-top: 4px;
  }

  .official-resource-card {
    grid-template-columns: 1fr;
  }

  .official-resource-card__media {
    min-height: 170px;
    aspect-ratio: 16 / 9;
  }

  .official-article,
  .article,
  .page-content {
    padding: 24px;
  }

  .official-article-cta {
    display: block;
  }

  .official-article-cta > div:last-child {
    justify-content: flex-start;
    margin-top: 18px;
  }

  .post-nav,
  .official-post-nav {
    grid-template-columns: 1fr;
  }

  .comment-form,
  .woocommerce-account .woocommerce {
    grid-template-columns: 1fr;
  }

  .member-login .site-main,
  .member-register .site-main,
  .member-lostpassword .site-main {
    padding: 28px 0 52px;
    background:
      linear-gradient(180deg, #07111f 0, #10284a 250px, #eef3fa 250px, #fff 100%);
  }

  .member-page-content,
  .woocommerce-account .woocommerce {
    margin: 20px auto 48px;
    padding: 0 16px;
  }

  .member-form-wrap {
    padding: 16px !important;
  }

  .member-form-head {
    display: block !important;
  }

  .member-switch.pull-right {
    display: block !important;
    float: none !important;
    margin-top: 8px !important;
  }

  .woocommerce-MyAccount-navigation ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .comment-body {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .comment-author .avatar {
    width: 34px;
    height: 34px;
  }

  .woocommerce-MyAccount-navigation {
    position: static;
  }

  .woocommerce table.shop_table,
  .woocommerce-orders-table,
  .wpcom-member-main table,
  .member-page-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .woocommerce-MyAccount-content,
  .wpcom-member-main,
  .wpcom-profile,
  .wpcom-account,
  .wpcom-member-form,
  .member-page-content > article,
  .member-page-content .entry-content {
    border-radius: 10px !important;
  }

  .post-nav__next {
    text-align: left;
  }

  .footer__grid {
    grid-template-columns: 1fr !important;
  }

  .site-footer .footer__col:not(.footer__brand) {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    display: block;
  }
}

/* ── Services Contact Form ── */

.services-contact-form {
  background: #fff;
  border: 1px solid var(--mp-line);
  border-radius: 12px;
  padding: 36px;
}

.services-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.services-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.services-form__field--full {
  margin-bottom: 20px;
}

.services-form__field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mp-navy);
}

.services-form__field label span {
  color: var(--mp-accent, #ff8800);
}

.services-form__field input,
.services-form__field select,
.services-form__field textarea {
  padding: 12px 14px;
  border: 1px solid var(--mp-line);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--mp-navy);
  background: #fafbfc;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.services-form__field input:focus,
.services-form__field select:focus,
.services-form__field textarea:focus {
  outline: none;
  border-color: var(--mp-accent);
  box-shadow: 0 0 0 3px rgba(0,74,173,0.1);
}

.services-form__field textarea {
  resize: vertical;
  min-height: 120px;
}

.services-form__submit {
  text-align: center;
  margin-top: 8px;
}

@media (max-width: 600px) {
  .services-form__row {
    grid-template-columns: 1fr;
  }

  .services-contact-form {
    padding: 24px;
  }
}

/* ──────────────────────────────────────────────
   Touch Screen Development Page
   ────────────────────────────────────────────── */

.touchscreen-hero {
  padding: 60px 0;
  background: linear-gradient(135deg, #660066 0%, #520052 100%);
  color: #fff;
}

.touchscreen-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.touchscreen-hero__copy {
  max-width: 500px;
}

.touchscreen-hero__copy .official-kicker {
  color: rgba(255, 255, 255, 0.8);
}

.touchscreen-hero__copy h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 16px 0;
  color: #fff;
}

.touchscreen-hero__copy p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
}

.touchscreen-hero__actions {
  display: flex;
  gap: 16px;
}

.touchscreen-products {
  padding: 60px 0;
  background: #fff;
}

.touchscreen-products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.touchscreen-tutorials {
  padding: 60px 0;
}

.touchscreen-tutorials--control {
  background: #f0f4f8;
}

.touchscreen-tutorials--modbus {
  background: #f8f9fa;
}

.touchscreen-tutorials--lua {
  background: #fff;
}

.touchscreen-empty {
  padding: 40px;
  text-align: center;
  color: var(--mp-muted);
  font-size: 1.1rem;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 12px;
  margin-top: 32px;
}

.touchscreen-cta {
  padding: 60px 0;
  background: linear-gradient(135deg, #660066 0%, #520052 100%);
  color: #fff;
}

.touchscreen-cta__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.touchscreen-cta__inner h2 {
  color: #fff;
  margin: 16px 0;
}

.touchscreen-cta__inner p {
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
  .touchscreen-hero__grid {
    grid-template-columns: 1fr;
  }
  
  .touchscreen-hero__copy h1 {
    font-size: 2rem;
  }
  
  .touchscreen-cta__inner {
    flex-direction: column;
    text-align: center;
  }
}

@media print {
  .touchscreen-hero,
  .touchscreen-cta {
    background: #fff !important;
    color: #000 !important;
  }
}

/* ====== GVS Touch Screen Page ====== */
.gvs-hero {
  padding: 80px 0;
  background: linear-gradient(135deg, #660066 0%, #520052 100%);
  color: #fff;
}

.gvs-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.gvs-hero__copy {
  max-width: 500px;
}

.gvs-hero__copy .official-kicker {
  color: rgba(255, 255, 255, 0.8);
}

.gvs-hero__copy h1 {
  font-size: 3rem;
  font-weight: 800;
  margin: 16px 0;
  color: #fff;
}

.gvs-hero__subtitle {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.95);
}

.gvs-hero__desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}

.gvs-hero__actions {
  display: flex;
  gap: 16px;
}

.gvs-hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.gvs-phone-mockup {
  width: 300px;
  height: 500px;
  background: #660066;
  border-radius: 30px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
}

.gvs-phone__screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #520052 0%, #660066 100%);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.gvs-demo-block {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  border-radius: 12px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Features */
.gvs-features {
  padding: 80px 0;
  background: #fff;
}

.gvs-features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.gvs-feature-card {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.gvs-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.gvs-feature-card__icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #660066 0%, #520052 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #fff;
}

.gvs-feature-card__icon svg {
  width: 32px;
  height: 32px;
}

.gvs-feature-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--mp-ink);
}

.gvs-feature-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--mp-muted);
  margin-bottom: 16px;
}

.gvs-feature-card__example {
  background: #fff;
  border-left: 3px solid #660066;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  font-size: 0.88rem;
  color: var(--mp-muted);
}

.gvs-feature-card__example span {
  font-weight: 700;
  color: #660066;
}

/* Workbench */
.gvs-workbench {
  padding: 80px 0;
  background: #f8f9fa;
}

.gvs-workbench__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.gvs-workbench__item {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
}

.gvs-workbench__num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 900;
  color: #660066;
  margin-bottom: 16px;
}

.gvs-workbench__item h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--mp-ink);
}

.gvs-workbench__item p {
  font-size: 0.9rem;
  color: var(--mp-muted);
  margin-bottom: 16px;
}

.gvs-workbench__item ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.gvs-workbench__item ul li {
  padding: 6px 0;
  font-size: 0.88rem;
  color: var(--mp-muted);
  padding-left: 20px;
  position: relative;
}

.gvs-workbench__item ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #660066;
  font-weight: 700;
}

/* Quick Start */
.gvs-quickstart {
  padding: 80px 0;
  background: #fff;
}

.gvs-quickstart__timeline {
  max-width: 600px;
  margin: 48px auto 0;
}

.gvs-quickstart__step {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  align-items: flex-start;
}

.gvs-quickstart__step-num {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #660066 0%, #520052 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
}

.gvs-quickstart__step-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--mp-ink);
}

.gvs-quickstart__step-content p {
  font-size: 0.95rem;
  color: var(--mp-muted);
  line-height: 1.6;
}

/* Tutorials */
.gvs-tutorials {
  padding: 80px 0;
  background: #f8f9fa;
}

.gvs-tutorials__empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--mp-muted);
}

/* CTA */
.gvs-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, #660066 0%, #520052 100%);
  color: #fff;
}

.gvs-cta__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.gvs-cta__inner h2 {
  color: #fff;
  margin: 16px 0;
}

.gvs-cta__inner p {
  color: rgba(255, 255, 255, 0.9);
}

.gvs-cta__actions {
  display: flex;
  gap: 16px;
}

/* ====== Modbus Screen Page ====== */
.modbus-screen-hero {
  padding: 80px 0;
  background: linear-gradient(135deg, #660066 0%, #520052 100%);
  color: #fff;
}

.modbus-screen-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.modbus-screen-hero__copy {
  max-width: 500px;
}

.modbus-screen-hero__copy .official-kicker {
  color: rgba(255, 255, 255, 0.8);
}

.modbus-screen-hero__copy h1 {
  font-size: 3rem;
  font-weight: 800;
  margin: 16px 0;
  color: #fff;
}

.modbus-screen-hero__subtitle {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.95);
}

.modbus-screen-hero__desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}

.modbus-screen-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.modbus-screen-hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modbus-screen-mockup {
  width: 350px;
  background: #660066;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modbus-screen__header {
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modbus-screen__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modbus-screen__mode {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  padding: 16px;
  border-radius: 12px;
  color: #fff;
}

.modbus-screen__mode-icon {
  font-size: 1.5rem;
}

/* Modes */
.modbus-screen-modes {
  padding: 80px 0;
  background: #fff;
}

.modbus-screen-modes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.modbus-screen-mode-card {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.modbus-screen-mode-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.modbus-screen-mode-card__icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.modbus-screen-mode-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--mp-ink);
}

.modbus-screen-mode-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--mp-muted);
  margin-bottom: 16px;
}

.modbus-screen-mode-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
  text-align: left;
}

.modbus-screen-mode-card ul li {
  padding: 6px 0;
  font-size: 0.88rem;
  color: var(--mp-muted);
  padding-left: 20px;
  position: relative;
}

.modbus-screen-mode-card ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--mp-accent);
  font-weight: 700;
}

/* Docs */
.modbus-screen-docs {
  padding: 80px 0;
}

.modbus-screen-docs--control {
  background: #f0f4f8;
}

.modbus-screen-docs--modbus {
  background: #f8f9fa;
}

.modbus-screen-docs--lua {
  background: #fff;
}

.modbus-screen-docs__empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--mp-muted);
}

/* CTA */
.modbus-screen-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, #660066 0%, #520052 100%);
  color: #fff;
}

.modbus-screen-cta__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.modbus-screen-cta__inner h2 {
  color: #fff;
  margin: 16px 0;
}

.modbus-screen-cta__inner p {
  color: rgba(255, 255, 255, 0.9);
}

/* Responsive */
@media (max-width: 768px) {
  .gvs-hero__grid,
  .modbus-screen-hero__grid {
    grid-template-columns: 1fr;
  }
  
  .gvs-hero__copy h1,
  .modbus-screen-hero__copy h1 {
    font-size: 2rem;
  }
  
  .gvs-features__grid,
  .modbus-screen-modes__grid {
    grid-template-columns: 1fr;
  }
  
  .gvs-workbench__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gvs-cta__inner,
  .modbus-screen-cta__inner {
    flex-direction: column;
    text-align: center;
  }
  
  .gvs-hero__actions,
  .modbus-screen-hero__actions,
  .gvs-cta__actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .gvs-workbench__grid {
    grid-template-columns: 1fr;
  }
}

/* ──────────────────────────────────────────────
   SEO Optimization — Related Posts
   ────────────────────────────────────────────── */

.related-posts-section {
  margin: 40px 0;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 12px;
}

.related-posts-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--mp-navy);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--mp-accent);
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.related-post-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--mp-line);
}

.related-post-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.related-post-item a {
  text-decoration: none;
  color: inherit;
}

.related-post-item img {
  width: 100%;
  height: 150px;
  object-fit: contain;
}

.related-post-item h4 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--mp-navy);
  padding: 12px;
  margin: 0;
  line-height: 1.4;
}

.related-post-item h4:hover {
  color: var(--mp-accent);
}

/* ──────────────────────────────────────────────
   SEO Optimization — Breadcrumb Enhancement
   ────────────────────────────────────────────── */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--mp-gray);
}

.breadcrumb a {
  color: var(--mp-accent);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--mp-navy);
  text-decoration: underline;
}

.breadcrumb .separator {
  color: var(--mp-gray);
  font-size: 0.8rem;
}

.breadcrumb .current {
  color: var(--mp-navy);
  font-weight: 500;
}

@media (max-width: 600px) {
  .related-posts-section {
    padding: 20px;
  }
  
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .official-primary-nav .primary-menu:not(.active) {
    display: none !important;
  }

  .official-primary-nav .primary-menu.active {
    display: flex !important;
  }
}

/* ──────────────────────────────────────────────
   MQTT.org Brand Palette
   Official purple #660066, orange #ff8800 and neutral gray #959ba5.
   ────────────────────────────────────────────── */

.site-header,
.official-site-header {
  background: rgba(255, 255, 255, 0.97) !important;
  border-bottom: 4px solid var(--mp-yellow) !important;
  box-shadow: 0 10px 30px rgba(102, 0, 102, 0.10) !important;
  color: var(--mp-blue) !important;
}

.site-branding a,
.site-branding__title,
.official-brand,
.official-brand__text {
  color: var(--mp-blue) !important;
}

.official-branding__badge {
  border-color: rgba(102, 0, 102, 0.28) !important;
  background: rgba(102, 0, 102, 0.08) !important;
  color: var(--mp-blue-2) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 192, 16, 0.16) !important;
}

.official-brand__mark {
  background: linear-gradient(180deg, var(--mp-yellow), var(--mp-orange)) !important;
  box-shadow: 0 0 0 4px rgba(255, 192, 16, 0.18) !important;
}

.primary-menu > .menu-item > a,
.official-primary-nav .primary-menu > .menu-item > a,
.header-search-toggle,
.header-cart-icon,
.mobile-menu-toggle,
.user-menu__toggle {
  color: var(--mp-blue) !important;
}

.primary-menu > .menu-item > a:hover,
.primary-menu > .menu-item.current-menu-item > a,
.primary-menu > .menu-item.current-menu-ancestor > a,
.official-primary-nav .primary-menu > .menu-item > a:hover,
.official-primary-nav .primary-menu > .menu-item.current-menu-item > a,
.official-primary-nav .primary-menu > .menu-item.current-menu-ancestor > a {
  background: rgba(102, 0, 102, 0.08) !important;
  color: var(--mp-blue-2) !important;
}

.primary-menu > .menu-item.current-menu-item > a,
.official-primary-nav .primary-menu > .menu-item.current-menu-item > a {
  box-shadow: inset 0 -2px 0 var(--mp-yellow) !important;
}

.header-search-toggle:hover,
.header-cart-icon:hover,
.mobile-menu-toggle:hover,
.user-menu__toggle:hover {
  background: rgba(102, 0, 102, 0.08) !important;
  color: var(--mp-blue-2) !important;
}

.header-cart-count {
  background: var(--mp-orange) !important;
  box-shadow: 0 0 0 2px #fff !important;
}

.official-hero,
.resources-hero,
.product-center-hero,
.official-archive-hero,
.touchscreen-hero,
.touchscreen-cta,
.modbus-screen-hero,
.modbus-screen-cta {
  background:
    linear-gradient(135deg, rgba(0, 111, 158, 0.96) 0%, rgba(102, 0, 102, 0.94) 55%, rgba(18, 166, 209, 0.92) 100%) !important;
}

.official-hero::before,
.resources-hero::before,
.product-center-hero::before {
  background:
    radial-gradient(circle at 18% 36%, rgba(255, 192, 16, 0.22), transparent 30%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)) !important;
}

.official-kicker,
.official-section__kicker,
.product-center-card__type,
.product-center-card__type a,
.article-meta,
.breadcrumb a,
.related-post-item h4:hover {
  color: var(--mp-blue) !important;
}

.official-kicker::before,
.official-section__kicker::before,
.official-heading::before,
.article-title::before,
.widget__title::before {
  background: var(--mp-yellow) !important;
}

.btn--primary,
.button,
button.button,
input[type="submit"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.member-form .wpcom-btn,
.member-form button[type="submit"],
.member-form input[type="submit"],
.wpcom-member-main .button,
.wpcom-member-main a[class*="btn"],
.wpcom-member-main button,
.wpcom-member-main input[type="submit"],
.member-page-content .button,
.member-page-content a[class*="btn"],
.member-page-content .wpcom-btn,
.member-page-content button[type="submit"],
.member-page-content input[type="submit"] {
  background: linear-gradient(135deg, var(--mp-blue), var(--mp-blue-2)) !important;
  border-color: var(--mp-blue) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(102, 0, 102, 0.22) !important;
}

.btn--primary:hover,
.button:hover,
button.button:hover,
input[type="submit"]:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: linear-gradient(135deg, var(--mp-blue-2), #660066) !important;
}

.btn--outline,
.product-contact-card__btn--wechat,
.product-archive-banner__btn--outline,
.product-contact-banner__btn--outline {
  background: #fff !important;
  border-color: rgba(102, 0, 102, 0.35) !important;
  color: var(--mp-blue) !important;
  box-shadow: none !important;
}

.official-hero .btn--primary,
.resources-hero .btn--primary,
.product-center-hero .btn--primary,
.official-article-cta .btn--primary {
  background: linear-gradient(135deg, var(--mp-yellow), var(--mp-orange)) !important;
  border-color: var(--mp-yellow) !important;
  color: #073247 !important;
  box-shadow: 0 16px 34px rgba(247, 148, 30, 0.25) !important;
}

.product-center-card__price,
.woocommerce ul.products li.product .price,
.woocommerce-Price-amount,
.member-page-content [class*="price"],
.member-page-content [class*="money"],
.member-page-content [class*="amount"],
.wpcom-member-main [class*="price"],
.wpcom-member-main [class*="money"],
.wpcom-member-main [class*="amount"] {
  color: var(--mp-orange) !important;
}

.product-contact-card,
.official-card,
.official-sticky-panel,
.product-center-card,
.product-cat-card,
.resources-card,
.wpcom-member-main,
.member-page-content > article,
.member-page-content .entry-content {
  border-color: rgba(102, 0, 102, 0.16) !important;
  box-shadow: 0 14px 34px rgba(102, 0, 102, 0.08) !important;
}

.product-contact-card {
  background: linear-gradient(135deg, #f0f9fd 0%, #fff 76%) !important;
}

.product-contact-card__btn--phone,
.product-archive-banner__btn--primary,
.product-contact-banner__btn--primary {
  background: var(--mp-blue) !important;
  color: #fff !important;
}

.site-footer {
  background: linear-gradient(135deg, #660066 0%, #520052 100%) !important;
  border-top: 4px solid var(--mp-yellow) !important;
}

.site-footer a:hover,
.footer__brand-title,
.footer__col h4,
.site-footer .widget__title,
.site-footer .widgettitle,
.site-footer .widget h4 {
  color: #fff !important;
}

.scroll-to-top,
.pagination .page-numbers.current {
  background: var(--mp-blue) !important;
  border-color: var(--mp-blue) !important;
}

.pagination .page-numbers:hover:not(.current),
input:focus,
textarea:focus,
select:focus {
  border-color: var(--mp-blue) !important;
  box-shadow: 0 0 0 3px rgba(102, 0, 102, 0.12) !important;
}

.official-hero .official-kicker,
.resources-hero .official-kicker,
.product-center-hero .official-kicker,
.official-archive-hero .official-kicker {
  display: inline-flex !important;
  align-items: center !important;
  width: fit-content !important;
  padding: 6px 12px !important;
  border: 1px solid rgba(255, 192, 16, 0.55) !important;
  border-radius: 999px !important;
  background: rgba(102, 0, 102, 0.48) !important;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 45, 65, 0.28) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08) !important;
}

.official-hero .official-kicker::before,
.resources-hero .official-kicker::before,
.product-center-hero .official-kicker::before,
.official-archive-hero .official-kicker::before {
  background: var(--mp-yellow) !important;
  box-shadow: 0 0 0 4px rgba(255, 192, 16, 0.18) !important;
}

.official-console--frame-viewer .proto-tab.active {
  background: rgba(255, 192, 16, 0.18) !important;
  border-color: rgba(255, 192, 16, 0.55) !important;
  color: #fff !important;
}

.official-console--frame-viewer .pf-row--header .pf-cell {
  color: rgba(255, 255, 255, 0.88) !important;
  background: rgba(102, 0, 102, 0.42) !important;
}

.official-console--frame-viewer .pf-cell {
  border-color: rgba(255, 255, 255, 0.24) !important;
}

.official-console--frame-viewer .pf-hex {
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 45, 65, 0.28) !important;
}

.official-console--frame-viewer .pf-size,
.official-console--frame-viewer .pf-sub,
.official-console--frame-viewer .pf-scope-cell {
  color: rgba(255, 255, 255, 0.76) !important;
}

.pf-full-hex {
  background: #fff !important;
  border: 1px solid rgba(255, 192, 16, 0.76) !important;
  box-shadow: 0 14px 28px rgba(0, 72, 104, 0.18) !important;
}

.pf-full-label {
  color: var(--mp-blue-2) !important;
  font-weight: 900 !important;
}

.pf-full-hex code {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #053247 !important;
  text-shadow: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.pf-badge {
  background: linear-gradient(135deg, var(--mp-yellow), var(--mp-orange)) !important;
  color: #053247 !important;
}

.frame-learning-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "tag title action"
    "tag desc action";
  gap: 3px 12px;
  align-items: center;
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 192, 16, 0.58);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 28px rgba(0, 72, 104, 0.16);
  color: #073247;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.frame-learning-entry:hover {
  transform: translateY(-2px);
  border-color: var(--mp-yellow);
  box-shadow: 0 18px 34px rgba(0, 72, 104, 0.22);
}

.frame-learning-entry__tag {
  grid-area: tag;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 192, 16, 0.22);
  color: #8a5600;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.frame-learning-entry strong {
  grid-area: title;
  color: var(--mp-blue-2);
  font-size: 0.98rem;
  line-height: 1.25;
}

.frame-learning-entry small {
  grid-area: desc;
  color: #547084;
  font-size: 0.78rem;
  line-height: 1.45;
}

.frame-learning-entry em {
  grid-area: action;
  padding: 8px 11px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--mp-yellow), var(--mp-orange));
  color: #073247;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .frame-learning-entry {
    grid-template-columns: 1fr;
    grid-template-areas:
      "tag"
      "title"
      "desc"
      "action";
  }

  .frame-learning-entry__tag,
  .frame-learning-entry em {
    width: fit-content;
  }
}

/* Keep the WPCOM native account center untouched on /account/. */
.modbus-wpcom-native-account .member-page-content,
.modbus-wpcom-native-account .member-page-content > article,
.modbus-wpcom-native-account .member-page-content .entry-content,
.modbus-wpcom-native-account .wpcom-member-main,
.modbus-wpcom-native-account .wpcom-account,
.modbus-wpcom-native-account .wpcom-profile,
.modbus-wpcom-native-account .wpcom-member-form {
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.modbus-wpcom-native-account .member-page-content {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.modbus-wpcom-native-account .wpcom-member-main button,
.modbus-wpcom-native-account .wpcom-member-main input[type="submit"],
.modbus-wpcom-native-account .wpcom-member-main .button,
.modbus-wpcom-native-account .wpcom-member-main .wpcom-btn,
.modbus-wpcom-native-account .member-page-content button,
.modbus-wpcom-native-account .member-page-content input[type="submit"],
.modbus-wpcom-native-account .member-page-content .button,
.modbus-wpcom-native-account .member-page-content .wpcom-btn,
.modbus-wpcom-native-account .member-page-content a[class*="btn"] {
  display: revert !important;
  min-height: revert !important;
  padding: revert !important;
  border-radius: revert !important;
  background: revert !important;
  color: revert !important;
  font-weight: revert !important;
  box-shadow: revert !important;
}

.modbus-wpcom-native-account .wpcom-member-main table,
.modbus-wpcom-native-account .member-page-content table,
.modbus-wpcom-native-account .wpcom-member-main [class*="card"],
.modbus-wpcom-native-account .wpcom-member-main [class*="item"],
.modbus-wpcom-native-account .member-page-content [class*="card"],
.modbus-wpcom-native-account .member-page-content [class*="item"],
.modbus-wpcom-native-account .wpcom-member-main [class*="vip"],
.modbus-wpcom-native-account .member-page-content [class*="vip"] {
  border-radius: revert !important;
  background: revert !important;
  border-color: revert !important;
  box-shadow: revert !important;
}

@media print {
  .site-header,
  .site-footer,
  .scroll-to-top,
  .official-article-cta,
  .official-sticky-panel,
  .sidebar,
  .post-nav,
  .comments-area {
    display: none !important;
  }
}

/* === VIP CTA 卡片（文章末尾转化触点） === */
.official-vip-cta {
  margin: 32px 0;
  padding: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #1a1200, #2d1f00);
  border: 1px solid rgba(255, 179, 71, 0.3);
  overflow: hidden;
}
.official-vip-cta__inner {
  padding: 32px;
}
.official-vip-cta__badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff9800, #ffb74d);
  color: #1a1200;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.official-vip-cta h3 {
  color: #ffb74d;
  font-size: 1.4rem;
  margin: 0 0 12px 0;
}
.official-vip-cta p {
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 20px 0;
  font-size: 0.95rem;
}
.official-vip-cta__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.official-vip-cta__features div {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  padding: 8px 12px;
  background: rgba(255, 179, 71, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(255, 179, 71, 0.15);
}
.official-vip-cta__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.btn--vip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff9800, #ffb74d);
  color: #1a1200 !important;
  font-size: 0.95rem;
  font-weight: 900;
  text-decoration: none;
  border: none;
  box-shadow: 0 12px 28px rgba(255, 152, 0, 0.3);
  transition: all 0.2s;
}
.btn--vip:hover {
  color: #1a1200 !important;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(255, 152, 0, 0.4);
}
.official-vip-cta__trust {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}
@media (max-width: 768px) {
  .official-vip-cta__features {
    grid-template-columns: 1fr;
  }
  .official-vip-cta__actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* === VIP按钮增强（覆盖前面基础版） === */
.official-header-cta {
  min-height: 42px;
  padding: 7px 16px 7px 18px;
  border: 1px solid rgba(255, 183, 18, 0.48);
  background: #0784b6;
  box-shadow: 0 12px 26px rgba(0, 130, 178, 0.24);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.official-header-cta::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 999px;
  background: #ffb712;
  box-shadow: 0 0 0 4px rgba(255, 183, 18, 0.20);
}

/* === Commercial conversion system: public VIP page, resources, tools === */
.vip-sales-hero,
.vip-sales-section,
.vip-sales-faq {
  background: #f5f9fc;
}

.vip-sales-hero {
  padding: 72px 0 40px;
  border-bottom: 1px solid rgba(102, 0, 102, 0.12);
}

.vip-sales-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 420px;
  gap: 48px;
  align-items: center;
}

.vip-sales-hero__copy h1 {
  max-width: 820px;
  margin: 12px 0 18px;
  color: #083044;
  font-size: clamp(2.25rem, 4vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.vip-sales-hero__copy p {
  max-width: 720px;
  margin: 0;
  color: #486275;
  font-size: 1.08rem;
  line-height: 1.9;
}

.vip-sales-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.vip-sales-hero__actions .official-btn--glass {
  border-color: rgba(102, 0, 102, 0.24);
  background: #fff;
  color: var(--mp-blue-2) !important;
}

.vip-sales-hero__actions .official-btn--glass:hover,
.vip-sales-hero__actions .official-btn--glass:focus-visible {
  border-color: var(--mp-yellow);
  background: #fff8df;
  color: #083044 !important;
}

.vip-sales-status {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(102, 0, 102, 0.18);
  border-top: 5px solid var(--mp-yellow);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(102, 0, 102, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(102, 0, 102, 0.05) 1px, transparent 1px),
    #fff;
  background-size: 34px 34px;
  box-shadow: 0 24px 60px rgba(11, 71, 96, 0.12);
}

.vip-sales-status__chip,
.vip-plan-card__tag,
.vip-value-grid span,
.resources-member__routes span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 192, 16, 0.18);
  color: #7a5700;
  font-size: 0.78rem;
  font-weight: 850;
}

.vip-sales-status strong {
  display: block;
  margin: 18px 0 10px;
  color: var(--mp-blue-2);
  font-size: 1.75rem;
}

.vip-sales-status p {
  margin: 0;
  color: #526a7d;
  line-height: 1.75;
}

.vip-sales-status__frame {
  margin-top: 26px;
  padding: 18px;
  border-radius: 8px;
  background: #08283a;
  color: #fff;
}

.vip-sales-status__frame span {
  display: block;
  color: #ffcd4d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 850;
}

.vip-sales-status__frame small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
}

.vip-sales-strip {
  background: #fff;
  border-bottom: 1px solid rgba(102, 0, 102, 0.12);
}

.vip-sales-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(102, 0, 102, 0.12);
}

.vip-sales-strip__grid > div {
  padding: 22px 20px;
  background: #fff;
}

.vip-sales-strip strong {
  display: block;
  color: var(--mp-blue-2);
  font-size: 1.45rem;
  line-height: 1.1;
}

.vip-sales-strip span {
  display: block;
  margin-top: 7px;
  color: #607789;
  font-size: 0.92rem;
}

.vip-sales-section {
  padding: 72px 0;
}

.vip-sales-section--plans {
  background: #fff;
}

.vip-sales-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 32px;
}

.vip-sales-head h2 {
  margin: 10px 0 0;
  color: #083044;
  font-size: clamp(1.75rem, 2.6vw, 2.85rem);
  line-height: 1.16;
}

.vip-sales-head p {
  margin: 0;
  color: #526a7d;
  line-height: 1.8;
}

.vip-value-grid,
.vip-plan-grid,
.vip-faq-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.vip-value-grid article,
.vip-plan-card,
.vip-faq-grid details {
  padding: 24px;
  border: 1px solid rgba(102, 0, 102, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(11, 71, 96, 0.07);
}

.vip-value-grid h3,
.vip-plan-card h3 {
  margin: 16px 0 10px;
  color: #083044;
  font-size: 1.16rem;
  line-height: 1.35;
}

.vip-value-grid p,
.vip-plan-card p,
.vip-faq-grid p {
  margin: 0;
  color: #587083;
  line-height: 1.72;
}

.vip-plan-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.vip-plan-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.vip-plan-card--featured {
  border-top: 5px solid var(--mp-yellow);
  box-shadow: 0 22px 58px rgba(102, 0, 102, 0.16);
}

.vip-plan-card ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
}

.vip-plan-card li {
  position: relative;
  padding-left: 22px;
  color: #344f63;
}

.vip-plan-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--mp-yellow);
}

.vip-plan-card .btn {
  margin-top: auto;
}

.vip-path-grid {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 36px;
}

.vip-path-copy h2 {
  margin: 10px 0 14px;
  color: #083044;
  font-size: clamp(1.7rem, 2.5vw, 2.6rem);
}

.vip-path-copy p {
  margin: 0;
  color: #526a7d;
  line-height: 1.8;
}

.vip-path-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.vip-path-list a,
.resources-member__routes a {
  display: block;
  padding: 20px;
  border: 1px solid rgba(102, 0, 102, 0.16);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.vip-path-list a:hover,
.resources-member__routes a:hover {
  border-color: var(--mp-yellow);
  box-shadow: 0 18px 38px rgba(11, 71, 96, 0.12);
  transform: translateY(-2px);
}

.vip-path-list strong,
.resources-member__routes strong {
  display: block;
  margin-bottom: 7px;
  color: var(--mp-blue-2);
  font-size: 1.08rem;
}

.vip-path-list span,
.resources-member__routes small {
  color: #607789;
  line-height: 1.55;
}

.vip-faq-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vip-faq-grid summary {
  cursor: pointer;
  color: #083044;
  font-weight: 850;
}

.vip-faq-grid p {
  margin-top: 12px;
}

.resources-section--member {
  background: #f5f9fc;
}

.resources-member {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 34px;
  align-items: center;
}

.resources-member__copy h2 {
  margin: 10px 0 14px;
  color: #083044;
  font-size: clamp(1.6rem, 2.4vw, 2.55rem);
}

.resources-member__copy p {
  margin: 0;
  color: #526a7d;
  line-height: 1.8;
}

.resources-member__routes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.resources-member__routes strong {
  margin-top: 14px;
}

.tool-member-prompt {
  max-width: var(--content-max-width);
  margin: 30px auto;
  padding: 24px;
  border: 1px solid rgba(102, 0, 102, 0.16);
  border-left: 5px solid var(--mp-yellow);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(11, 71, 96, 0.1);
}

.tool-member-prompt__copy span {
  color: var(--mp-blue-2);
  font-size: 0.86rem;
  font-weight: 850;
}

.tool-member-prompt__copy h2 {
  margin: 8px 0 8px;
  color: #083044;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.tool-member-prompt__copy p {
  margin: 0;
  color: #526a7d;
  line-height: 1.72;
}

.tool-member-prompt__features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.tool-member-prompt__features b {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(102, 0, 102, 0.08);
  color: var(--mp-blue-2);
  font-size: 0.88rem;
}

.tool-member-prompt__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.vip-library-hero {
  padding: 70px 0 42px;
  background: #f5f9fc;
  border-bottom: 1px solid rgba(102, 0, 102, 0.12);
}

.vip-library-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
  align-items: center;
}

.vip-library-hero h1 {
  max-width: 820px;
  margin: 12px 0 16px;
  color: #083044;
  font-size: clamp(2rem, 3.6vw, 3.9rem);
  line-height: 1.08;
}

.vip-library-hero p {
  max-width: 760px;
  margin: 0;
  color: #526a7d;
  font-size: 1.05rem;
  line-height: 1.85;
}

.vip-library-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.vip-library-panel {
  display: grid;
  gap: 12px;
  padding: 26px;
  border: 1px solid rgba(102, 0, 102, 0.18);
  border-top: 5px solid var(--mp-yellow);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 54px rgba(11, 71, 96, 0.11);
}

.vip-library-panel strong {
  color: var(--mp-blue-2);
  font-size: 1.55rem;
}

.vip-library-panel span {
  padding: 11px 12px;
  border-radius: 8px;
  background: #f5f9fc;
  color: #526a7d;
  font-weight: 750;
}

.vip-library-section {
  padding: 70px 0;
  background: #fff;
}

.vip-library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.vip-library-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 24px;
  border: 1px solid rgba(102, 0, 102, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(11, 71, 96, 0.07);
}

.vip-library-card.is-unlocked {
  border-top: 4px solid var(--mp-yellow);
}

.vip-library-card__type {
  align-self: flex-start;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 192, 16, 0.18);
  color: #7a5700;
  font-size: 0.78rem;
  font-weight: 850;
}

.vip-library-card h3 {
  margin: 16px 0 10px;
  color: #083044;
  font-size: 1.15rem;
  line-height: 1.36;
}

.vip-library-card p {
  margin: 0 0 18px;
  color: #587083;
  line-height: 1.7;
}

.vip-library-card__lock,
.vip-library-card__details {
  margin-top: auto;
  padding: 16px;
  border-radius: 8px;
  background: #f5f9fc;
  border: 1px solid rgba(102, 0, 102, 0.11);
}

.vip-library-card__lock strong {
  display: block;
  color: var(--mp-blue-2);
  margin-bottom: 6px;
}

.vip-library-card__lock small {
  color: #6b8191;
  line-height: 1.6;
}

.vip-library-card__details summary {
  cursor: pointer;
  color: var(--mp-blue-2);
  font-weight: 850;
}

.vip-library-card__details pre {
  overflow-x: auto;
  margin: 14px 0 0;
  padding: 14px;
  border-radius: 8px;
  background: #08283a;
  color: #fff;
  font-size: 0.86rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

.vip-library-card__download {
  margin-top: 12px;
  width: 100%;
}

.vip-library-cta {
  padding: 54px 0;
  background: var(--mp-blue);
  color: #fff;
}

.vip-library-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.vip-library-cta h2 {
  margin: 8px 0 10px;
  color: #fff;
  font-size: clamp(1.6rem, 2.5vw, 2.45rem);
}

.vip-library-cta p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
}

.official-vip-cta {
  background: #fff;
  border: 1px solid rgba(102, 0, 102, 0.16);
  border-left: 5px solid var(--mp-yellow);
  box-shadow: 0 18px 44px rgba(11, 71, 96, 0.08);
}

.official-vip-cta__badge {
  background: rgba(255, 192, 16, 0.18);
  color: #7a5700;
}

.official-vip-cta h3 {
  color: #083044;
}

.official-vip-cta p,
.official-vip-cta__features div {
  color: #526a7d;
}

.official-vip-cta__features div {
  background: #f5f9fc;
  border-color: rgba(102, 0, 102, 0.12);
}

.btn--vip {
  background: var(--mp-yellow);
  color: #083044 !important;
}

@media (max-width: 1024px) {
  .vip-sales-hero__grid,
  .vip-library-hero__grid,
  .vip-sales-head,
  .vip-path-grid,
  .resources-member {
    grid-template-columns: 1fr;
  }

  .vip-value-grid,
  .vip-sales-strip__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vip-plan-grid,
  .vip-faq-grid,
  .vip-library-grid,
  .resources-member__routes {
    grid-template-columns: 1fr;
  }

  .vip-library-cta__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .vip-sales-hero,
  .vip-library-hero,
  .vip-sales-section {
    padding: 46px 0;
  }

  .vip-sales-status,
  .vip-library-panel,
  .vip-library-card,
  .vip-value-grid article,
  .vip-plan-card,
  .vip-faq-grid details,
  .tool-member-prompt {
    padding: 20px;
  }

  .vip-sales-strip__grid,
  .vip-path-list {
    grid-template-columns: 1fr;
  }

  .vip-sales-hero__actions .btn,
  .vip-library-hero__actions .btn,
  .tool-member-prompt__actions .btn {
    width: 100%;
  }
}
.official-header-cta:hover {
  background: #007cae;
  box-shadow: 0 16px 34px rgba(0, 130, 178, 0.30);
}
.official-header-cta__text,
.official-header-vip__text {
  display: grid;
  gap: 2px;
  line-height: 1;
}
.official-header-cta__text strong,
.official-header-vip__text strong {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 900;
}
.official-header-cta__text small,
.official-header-vip__text small {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.68rem;
  font-weight: 750;
}
.official-header-vip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 6px 15px 6px 10px;
  border: 1px solid rgba(255, 183, 18, 0.52);
  border-radius: 999px;
  background: #0a6f98;
  color: #fff !important;
  white-space: nowrap;
  box-shadow: 0 12px 26px rgba(0, 130, 178, 0.22);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.official-header-vip__mark {
  width: 24px;
  height: 24px;
  margin-right: 9px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 48%, #ffb712 0 4px, transparent 5px),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.08));
  box-shadow: inset 0 0 0 3px rgba(255, 183, 18, 0.16);
}
.official-header-vip:hover {
  background: #067ca9;
  box-shadow: 0 16px 34px rgba(0, 130, 178, 0.30);
}
/* === 用户菜单子元素 === */
.user-menu__item-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  min-width: 0 !important;
}
.user-menu__item-dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 999px !important;
  background: rgba(3, 112, 153, 0.40) !important;
  box-shadow: 0 0 0 3px rgba(3, 112, 153, 0.08) !important;
  flex: 0 0 7px !important;
}
.user-menu__item--wallet .user-menu__item-dot {
  background: #ffb712 !important;
  box-shadow: 0 0 0 3px rgba(255, 183, 18, 0.14) !important;
}
.user-menu__item--logout {
  color: rgba(17, 24, 39, 0.72) !important;
}
.user-menu__dropdown a:hover {
  background: rgba(0, 130, 178, 0.08) !important;
  color: #037099 !important;
}

/* Modbus specifications page — official document center */
.page-modbus-specs {
  background: #f2f8fc;
  color: #13263a;
}

.page-modbus-specs .container {
  width: min(1200px, calc(100% - 48px));
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 0;
}

.specs-hero {
  padding: 46px 0 34px;
  border-bottom: 1px solid rgba(0, 120, 190, 0.12);
  background:
    linear-gradient(90deg, rgba(0, 120, 190, 0.075) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 120, 190, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, #eef8fd 100%);
  background-size: 34px 34px, 34px 34px, auto;
}

.specs-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: end;
}

.page-modbus-specs .official-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(0, 120, 190, 0.18);
  border-left: 4px solid #ff8800;
  border-radius: 7px;
  background: #fff;
  color: #0078be;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.specs-hero__title {
  max-width: 780px;
  margin: 18px 0 0;
  color: #102033;
  font-size: 42px;
  line-height: 1.16;
  letter-spacing: 0;
}

.specs-hero__desc {
  max-width: 820px;
  margin: 16px 0 0;
  color: #4f6274;
  font-size: 16px;
  line-height: 1.78;
}

.specs-quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.specs-quick-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(0, 120, 190, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: #006ea9;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.specs-quick-nav a:hover {
  border-color: rgba(0, 120, 190, 0.34);
  background: #fff;
  color: #005f96;
}

.specs-hero__panel {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(0, 120, 190, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(8, 38, 68, 0.08);
}

.specs-hero__metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 7px;
  background: #f7fbfe;
}

.specs-hero__metric strong {
  color: #0078be;
  font-size: 20px;
  line-height: 1;
}

.specs-hero__metric span {
  color: #617385;
  font-size: 13px;
  font-weight: 700;
}

.specs-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
  padding-top: 30px;
  padding-bottom: 38px;
}

.specs-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.spec-item {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 300px;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(0, 120, 190, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(8, 38, 68, 0.06);
}

.spec-item--recommended {
  border-color: rgba(255, 192, 16, 0.62);
  box-shadow: 0 12px 30px rgba(135, 92, 0, 0.08);
}

.spec-item--legacy {
  background: #fffdfa;
  border-color: rgba(210, 147, 0, 0.22);
}

.spec-item__header {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: start;
}

.spec-item__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #e9f6fc;
  color: #0078be;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  font-weight: 850;
}

.spec-item--recommended .spec-item__num {
  background: #fff3c4;
  color: #7a5600;
}

.spec-item__title {
  margin: 0;
  color: #102033;
  font-size: 21px;
  line-height: 1.32;
  letter-spacing: 0;
}

.spec-item__title a {
  color: inherit;
  text-decoration: none;
}

.spec-item__title a:hover {
  color: #0078be;
}

.spec-item__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(0, 120, 190, 0.20);
  border-radius: 7px;
  background: #f7fbfe;
  color: #006ea9;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.spec-item__download:first-of-type {
  grid-column: 2;
  justify-self: start;
}

.spec-item__download--cn {
  grid-column: 2;
  justify-self: start;
  margin-top: -44px;
  margin-left: 104px;
  border-color: rgba(255, 192, 16, 0.54);
  background: #fff9e5;
  color: #755400;
}

.spec-item__download svg {
  width: 16px;
  height: 16px;
}

.spec-item__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  color: #4d6173;
  font-size: 14px;
  line-height: 1.72;
}

.spec-item__body p {
  margin: 0;
}

.spec-item__list {
  margin: 0;
  padding-left: 18px;
}

.spec-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.spec-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef7fc;
  color: #456275;
  font-size: 12px;
  font-weight: 750;
}

.spec-tag--recommended {
  background: #fff3c4;
  color: #755400;
}

.spec-tag--warn {
  background: #fff0e6;
  color: #9a4b00;
}

.specs-notice {
  position: sticky;
  top: 92px;
  padding: 18px;
  border: 1px solid rgba(0, 120, 190, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(8, 38, 68, 0.06);
}

.specs-notice h3 {
  margin: 0 0 12px;
  color: #102033;
  font-size: 18px;
}

.specs-notice ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.specs-notice li {
  position: relative;
  padding-left: 16px;
  color: #526779;
  font-size: 13px;
  line-height: 1.72;
}

.specs-notice li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff8800;
}

.specs-notice a {
  color: #0078be;
  font-weight: 800;
  text-decoration: none;
}

.specs-related {
  padding: 34px 0 48px;
  border-top: 1px solid rgba(0, 120, 190, 0.12);
  background: #fff;
}

.specs-related__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.specs-related__head h2 {
  margin: 0;
  color: #102033;
  font-size: 28px;
}

.specs-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.specs-related-card {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid rgba(0, 120, 190, 0.14);
  border-radius: 8px;
  background: #f7fbfe;
  color: #13263a;
  text-decoration: none;
}

.specs-related-card h3 {
  margin: 0 0 10px;
  color: #102033;
  font-size: 19px;
}

.specs-related-card p {
  margin: 0;
  color: #617385;
  font-size: 14px;
  line-height: 1.65;
}

.specs-related-card__link {
  margin-top: 16px;
  color: #0078be;
  font-weight: 850;
}

@media (max-width: 1100px) {
  .specs-hero__grid,
  .specs-content {
    grid-template-columns: 1fr;
  }

  .specs-hero__panel,
  .specs-notice {
    position: static;
  }
}

@media (max-width: 860px) {
  .page-modbus-specs .container {
    width: calc(100% - 28px);
  }

  .specs-hero {
    padding: 30px 0 24px;
  }

  .specs-hero__title {
    font-size: 30px;
  }

  .specs-list,
  .specs-related__grid {
    grid-template-columns: 1fr;
  }

  .spec-item {
    min-height: 0;
    padding: 16px;
  }

  .spec-item__header {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .spec-item__num {
    width: 36px;
    height: 36px;
  }

  .spec-item__title {
    font-size: 18px;
  }

  .spec-item__download,
  .spec-item__download:first-of-type,
  .spec-item__download--cn {
    grid-column: 1 / -1;
    justify-self: stretch;
    margin: 0;
  }

  .specs-related__head {
    align-items: start;
    flex-direction: column;
  }
}

/* Specifications page palette refinement — align with official ModbusCN theme */
.page-modbus-specs {
  background: #f6f9fb;
  color: #13263a;
}

.specs-hero {
  border-bottom: 3px solid #ffb712;
  background:
    linear-gradient(90deg, rgba(3, 112, 153, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(3, 112, 153, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  background-size: 40px 40px, 40px 40px, auto;
}

.page-modbus-specs .official-kicker {
  border-color: rgba(3, 112, 153, 0.16);
  border-left-color: #ffb712;
  color: #037099;
}

.specs-hero__title,
.spec-item__title,
.specs-notice h3,
.specs-related__head h2,
.specs-related-card h3 {
  color: #102a3a;
}

.specs-hero__desc,
.spec-item__body,
.specs-notice li,
.specs-related-card p {
  color: #526779;
}

.specs-quick-nav a {
  border-color: rgba(3, 112, 153, 0.16);
  background: #fff;
  color: #037099;
  box-shadow: 0 6px 14px rgba(8, 38, 68, 0.035);
}

.specs-quick-nav a:hover {
  border-color: rgba(3, 112, 153, 0.32);
  background: #f7fbfd;
}

.specs-hero__panel,
.spec-item,
.specs-notice,
.specs-related-card {
  border-color: rgba(3, 112, 153, 0.12);
  background: #fff;
  box-shadow: 0 10px 24px rgba(8, 38, 68, 0.045);
}

.specs-hero__metric {
  background: #f7fafc;
  border: 1px solid rgba(3, 112, 153, 0.08);
}

.specs-hero__metric strong,
.spec-item__title a:hover,
.specs-notice a,
.specs-related-card__link {
  color: #037099;
}

.spec-item--recommended {
  border-color: rgba(255, 183, 18, 0.62);
  box-shadow: 0 10px 24px rgba(120, 86, 0, 0.055);
}

.spec-item--legacy {
  background: #fffdf8;
  border-color: rgba(255, 183, 18, 0.24);
}

.spec-item__num {
  background: #edf7fb;
  color: #037099;
}

.spec-item--recommended .spec-item__num {
  background: #fff5cc;
  color: #785600;
}

.spec-item__download {
  border-color: rgba(3, 112, 153, 0.18);
  background: #fff;
  color: #037099;
}

.spec-item__download:hover {
  background: #f7fbfd;
}

.spec-item__download--cn {
  border-color: rgba(255, 183, 18, 0.52);
  background: #fffaf0;
  color: #785600;
}

.spec-tag {
  background: #eef6fa;
  color: #496678;
}

.spec-tag--recommended {
  background: #fff5cc;
  color: #785600;
}

.spec-tag--warn {
  background: #fff2e6;
  color: #985400;
}

.specs-content {
  background: #f6f9fb;
}

.specs-related {
  border-top: 3px solid #ffb712;
  background: #ffffff;
}

.specs-related-card {
  background: #fbfdfe;
}


/* === User Menu Click Toggle (supplements :hover) === */
.user-menu.is-open .user-menu__dropdown {
  display: block !important;
}

.user-menu.is-open .user-menu__arrow {
  transform: rotate(180deg) !important;
  transition: transform 0.2s ease !important;
}

.user-menu__arrow {
  transition: transform 0.2s ease !important;
}

/* === Login Page Social Icons Layout Fix === */
.member-form-footer {
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

.member-form-social {
  align-items: center !important;
}

.member-social-list {
  align-items: center !important;
  flex-wrap: wrap !important;
}

.member-social-list .social-item a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  border: 1px solid var(--member-line-color, rgba(0,0,0,0.1)) !important;
  padding: 0 !important;
  font-size: 18px !important;
  transition: all 0.2s ease !important;
}

.member-social-list .social-item a:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

.member-social-list .social-item a:after {
  display: none !important;
}

@media (max-width: 767px) {
  .member-social-list {
    justify-content: center !important;
    gap: 12px !important;
  }
  
  .member-form-social {
    justify-content: center !important;
    text-align: center !important;
  }
}

/* Ensure dropdown links are clickable above all content */
.user-menu__dropdown {
  pointer-events: auto !important;
}

.user-menu.is-open {
  z-index: 3001 !important;
}
/* ── AC Gateway topology ── */
.ac-topology {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 2px 0 0;
}
.ac-topo-node {
  flex: 0 0 auto;
  min-width: 100px;
  max-width: 120px;
  text-align: center;
  padding: 8px 6px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}
.ac-topo-node--main {
  background: rgba(59,130,246,0.15);
  border-color: rgba(59,130,246,0.35);
  min-width: 110px;
  max-width: 135px;
}
.ac-topo-icon {
  font-size: 0.9rem;
  margin-bottom: 3px;
  opacity: 0.7;
  letter-spacing: 0;
}
.ac-topo-label {
  font-weight: 700;
  font-size: 0.68rem;
  color: #e2e8f0;
  margin-bottom: 3px;
}
.ac-topo-sub {
  font-size: 0.5rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}
.ac-topo-sub strong {
  color: rgba(255,255,255,0.75);
}
.ac-topo-connector {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 0 4px;
  min-width: 48px;
}
.ac-topo-line {
  font-size: 0.47rem;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
}
.ac-topo-arrow {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.25);
  line-height: 1;
}
.ac-topo-footer {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.52rem;
  color: rgba(255,255,255,0.35);
}
@media (max-width: 760px) {
  .ac-topology {
    flex-direction: column;
    gap: 2px;
  }
  .ac-topo-node {
    min-width: 100%;
    max-width: 100%;
  }
  .ac-topo-connector {
    flex-direction: row;
    gap: 4px;
    padding: 2px 0;
  }
  .ac-topo-footer {
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }
}

/* ── 修复 PLC模拟器 使用说明 变形（2026-07-05 v2）── */
/* 去掉导航卡片自带的 "进入栏目→" 和顶部蓝色条 */
#docs .resources-quick-link::after {
    content: none;
    display: none;
}
#docs .resources-quick-link::before {
    content: none;
    display: none;
}
#docs .resources-quick-link {
    min-height: auto;
    padding: 18px 24px;
    justify-content: flex-start;
    text-align: left;
    border-radius: 8px;
    background: #fafbfc;
    border: 1px solid #e8ecf1;
}
#docs .resources-quick-link strong {
    font-family: inherit;
    font-size: 0.9rem;
    color: #1a2e3f;
    margin-bottom: 4px;
}
#docs .resources-quick-link span {
    font-size: 0.8rem;
    line-height: 1.65;
    color: #4a5568;
}
/* hover不动（说明书不需要交互动画） */
#docs .resources-quick-link:hover,
#docs .resources-quick-link:focus-visible {
    transform: none;
    box-shadow: none;
    background: #fafbfc;
}
/* 手机：单列 */
@media (max-width: 767px) {
    #docs .resources-quick-links {
        grid-template-columns: 1fr;
    }
}
/* 平板：2列 */
@media (min-width: 768px) and (max-width: 1023px) {
    #docs .resources-quick-links {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* 桌面：2列，第3个卡片（元件列表）跨全宽 */
@media (min-width: 1024px) {
    #docs .resources-quick-links {
        grid-template-columns: repeat(2, 1fr);
    }
    #docs .resources-quick-link:nth-child(3) {
        grid-column: 1 / -1;
    }
}

/* ===== 手机端：浮动语言切换器（已在下方 ≤900px 块统一隐藏） ===== */

/* ============================================================
   手机端布局优化 (v1.3.62)
   - 顶部强制单排：logo 在左，右侧只留 购物车 + 汉堡
   - 搜索 / 登录 / 联系 入口收进汉堡展开菜单（.mp-mobile-only）
   - 去掉底部固定联系条，回收占位
   桌面端这些工具项默认隐藏，仅在 ≤900px 显示
   ============================================================ */
.mp-mobile-only { display: none !important; }

@media (max-width: 900px) {
  /* —— 顶部：强制单排 + 防溢出 —— */
  .site-header__inner,
  .official-site-header__inner {
    flex-wrap: nowrap !important;
    overflow: hidden !important;          /* 兜底：任何溢出都不出页面 */
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  /* logo 允许收缩，避免挤爆右侧 */
  .site-branding { min-width: 0 !important; flex-shrink: 1 !important; }
  .site-branding__title { overflow: hidden !important; text-overflow: ellipsis !important; }

  .mobile-menu-toggle {
    order: 3 !important;       /* 最右 */
    display: grid !important;
    flex-shrink: 0 !important;
  }

  .header-actions {
    order: 2 !important;       /* 紧邻 logo 右侧 */
    margin-left: auto !important;
    flex-shrink: 0 !important;
  }

  /* 头部原控件在手机端已移入汉堡菜单，故头部隐藏 */
  .header-search-toggle,
  .user-menu,
  .official-header-vip {
    display: none !important;
  }

  /* 购物车保留（用户要求留在头部），固定不收缩 */
  .header-cart-icon { display: grid !important; flex-shrink: 0 !important; }

  /* 主导航容器不占高度（菜单未展开时） */
  .primary-nav { width: auto !important; order: 4 !important; flex-shrink: 0 !important; }

  /* 原 header 搜索下拉在手机端不再使用 */
  .header-search-dropdown { display: none !important; }

  /* —— 手机端不显示中英文浮动切换器 —— */
  .trp-floating-switcher { display: none !important; }

  /* —— 汉堡展开菜单内：显示工具项（统一卡片化，规整布局） —— */
  .mp-mobile-only { display: block !important; }

  /* 工具区：每个项都是一张浅色卡片，节奏统一、互不粘连 */
  .mp-menu-account,
  .mp-menu-search,
  .mp-menu-contact {
    margin: 0 0 8px !important;
    background: #f4f7fb !important;
    border-radius: 12px !important;
    overflow: hidden !important;
  }

  /* 登录 / 注册：一行两个等宽按钮 */
  .mp-menu-account {
    display: flex !important;
    gap: 8px !important;
    padding: 8px !important;
  }
  .mp-menu-account > a {
    flex: 1 1 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    border-radius: 9px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
  }
  .mp-menu-account > a:first-child {
    background: var(--mp-blue, #660066) !important;
    color: #fff !important;
  }
  .mp-menu-account__reg {
    background: #fff !important;
    color: var(--mp-blue, #660066) !important;
    border: 1px solid rgba(102, 0, 102, 0.28) !important;
  }

  /* 搜索框：卡片内嵌表单 */
  .mp-menu-search { padding: 10px !important; }
  .mp-search-form {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
  }
  .mp-search-field {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 44px !important;
    padding: 0 14px !important;
    border: 1px solid var(--mp-line, #EDEDED) !important;
    border-radius: 10px !important;
    background: #fff !important;
    font-size: 1rem !important;
    color: var(--mp-ink, #1a2330) !important;
  }
  .mp-search-submit {
    flex: 0 0 auto !important;
    height: 44px !important;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: var(--mp-blue, #660066) !important;
    color: #fff !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
  }

  /* 联系项：整行可点卡片 */
  .mp-menu-contact > a {
    display: flex !important;
    align-items: center !important;
    min-height: 46px !important;
    padding: 0 14px !important;
    color: var(--mp-ink, #1a2330) !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
  }
  .mp-menu-contact > a:active { background: rgba(102, 0, 102, 0.12) !important; }

  /* 工具区与导航链接之间的分隔线 */
  .mp-menu-sep {
    height: 0 !important;
    margin: 4px 0 8px !important;
    border-top: 1px solid var(--mp-line, #E6ECF3) !important;
    list-style: none !important;
  }

  /* —— 去掉底部固定联系条，回收占位 —— */
  .floating-contact-mobile { display: none !important; }
  body { padding-bottom: 0 !important; }
  .site-main { padding-bottom: 24px !important; }
}

/* ============================================================
   MQTT.org visual system — exact official palette
   Purple #660066 · Orange #ff8800 · Gray #959ba5 · White
   ============================================================ */

body {
  background: #fff;
  color: #333;
  font-family: var(--font-sans);
  font-weight: 300;
}

a,
a:link,
a:visited {
  color: #ff8800;
}

a:hover,
a:focus {
  color: #660066;
}

.site-header,
.official-site-header {
  background: #660066 !important;
  border-bottom: 4px solid #ff8800 !important;
  box-shadow: 0 2px 4px rgba(51, 51, 51, 0.24) !important;
}

.site-branding a,
.site-branding__title,
.official-brand,
.official-brand__text,
.primary-menu > .menu-item > a,
.official-primary-nav .primary-menu > .menu-item > a,
.header-search-toggle,
.header-cart-icon,
.mobile-menu-toggle,
.user-menu__toggle {
  color: #fff !important;
}

.official-branding__badge {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.42) !important;
  box-shadow: none !important;
}

.primary-menu > .menu-item > a:hover,
.primary-menu > .menu-item.current-menu-item > a,
.primary-menu > .menu-item.current-menu-ancestor > a,
.official-primary-nav .primary-menu > .menu-item > a:hover,
.official-primary-nav .primary-menu > .menu-item.current-menu-item > a,
.official-primary-nav .primary-menu > .menu-item.current-menu-ancestor > a,
.header-search-toggle:hover,
.header-cart-icon:hover,
.mobile-menu-toggle:hover,
.user-menu__toggle:hover {
  color: #ff8800 !important;
  background: rgba(255, 255, 255, 0.10) !important;
}

.official-primary-nav .primary-menu .sub-menu a {
  color: #660066 !important;
}

.official-primary-nav .primary-menu .sub-menu a:hover {
  color: #ff8800 !important;
}

.official-hero,
.mqtt-org-hero,
.resources-hero,
.product-center-hero,
.official-archive-hero,
.touchscreen-hero,
.touchscreen-cta,
.modbus-screen-hero,
.modbus-screen-cta {
  background: linear-gradient(118deg, #660066 0%, #780078 58%, #959ba5 150%) !important;
}

.official-hero::before,
.resources-hero::before,
.product-center-hero::before {
  background:
    radial-gradient(circle at 78% 28%, rgba(255, 136, 0, 0.22), transparent 34%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent) !important;
}

.official-hero .official-kicker,
.official-hero .official-kicker::before {
  color: #ff8800 !important;
}

.btn--primary,
.button,
button.button,
input[type="submit"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.member-form .wpcom-btn,
.wpcom-member-main .button {
  color: #fff !important;
  background: #660066 !important;
  border-color: #660066 !important;
  box-shadow: none !important;
}

.btn--primary:hover,
.button:hover,
button.button:hover,
input[type="submit"]:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  color: #fff !important;
  background: #ff8800 !important;
  border-color: #ff8800 !important;
}

.official-hero .btn--primary,
.resources-hero .btn--primary,
.product-center-hero .btn--primary,
.official-article-cta .btn--primary {
  color: #fff !important;
  background: #ff8800 !important;
  border-color: #ff8800 !important;
  box-shadow: none !important;
}

.official-hero .btn--primary:hover,
.resources-hero .btn--primary:hover,
.product-center-hero .btn--primary:hover {
  background: #fff !important;
  border-color: #fff !important;
  color: #660066 !important;
}

.official-btn--glass {
  color: #fff !important;
  background: transparent !important;
  border-color: #fff !important;
}

.official-btn--glass:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.18) !important;
}

.official-section--split,
.official-stats,
.technical-committee {
  background: #eceeef !important;
}

.official-stats__grid strong,
.official-kicker--dark,
.official-capability h3,
.official-business__grid strong,
.official-link,
.official-post-card h3 a {
  color: #660066 !important;
}

.official-capability--strong {
  background: #660066 !important;
  border-color: #660066 !important;
}

.official-capability--strong h3,
.official-capability--strong p,
.official-capability--strong span {
  color: #fff !important;
}

.official-capability:hover,
.official-business__item:hover,
.official-post-card:hover {
  border-color: #ff8800 !important;
  box-shadow: 0 8px 20px rgba(102, 0, 102, 0.12) !important;
}

.official-cta {
  background: #660066 !important;
}

.site-footer {
  background: #959ba5 !important;
  border-top: 4px solid #ff8800 !important;
}

.scroll-to-top,
.pagination .page-numbers.current {
  background: #660066 !important;
  border-color: #660066 !important;
}

/* MQTT message-flow console */
.mqtt-console .official-console__body {
  min-height: 348px;
}

.mqtt-console .proto-tabs {
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

.mqtt-console .proto-tab {
  color: rgba(255, 255, 255, 0.72);
}

.mqtt-console .proto-tab.active,
.mqtt-console .proto-tab:hover {
  color: #ff8800;
  border-bottom-color: #ff8800;
}

.mqtt-flow {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) minmax(150px, 1.5fr) minmax(92px, 1fr);
  align-items: center;
  gap: 14px;
  margin: 28px 0 24px;
}

.mqtt-flow__node {
  display: grid;
  place-items: center;
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  text-align: center;
}

.mqtt-flow__node--broker {
  background: #660066;
  border-color: #ff8800;
}

.mqtt-flow__node small {
  color: rgba(255, 255, 255, 0.66);
}

.mqtt-flow__node strong {
  font-size: 1rem;
}

.mqtt-flow__wire {
  display: grid;
  justify-items: center;
  gap: 3px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.72rem;
  text-align: center;
}

.mqtt-flow__wire i {
  color: #ff8800;
  font-size: 1.65rem;
  font-style: normal;
  line-height: 1;
}

.mqtt-packet {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.mqtt-packet span {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ff8800;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.mqtt-packet code {
  overflow-wrap: anywhere;
  background: transparent;
  color: #fff;
}

.mqtt-console__note {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.70);
  font-size: 0.82rem;
  line-height: 1.65;
}

@media (max-width: 640px) {
  .mqtt-flow {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mqtt-flow__node {
    min-height: 66px;
  }

  .mqtt-flow__wire i {
    transform: rotate(90deg);
  }
}

/* Desktop dropdown stability: bridge the visual gap so hover/click can reach it. */
@media (min-width: 901px) {
  .primary-menu .sub-menu,
  .official-primary-nav .primary-menu .sub-menu {
    z-index: 10000 !important;
    pointer-events: auto !important;
  }

  .primary-menu > .menu-item:hover > .sub-menu,
  .primary-menu > .menu-item:focus-within > .sub-menu,
  .primary-menu > .menu-item.submenu-open > .sub-menu {
    display: block !important;
  }

  .primary-menu .sub-menu::after,
  .official-primary-nav .primary-menu .sub-menu::after {
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    width: 100%;
    height: 14px;
    background: transparent;
    pointer-events: auto;
  }

  .user-menu__dropdown::after {
    content: "" !important;
    position: absolute !important;
    top: -8px !important;
    left: 0 !important;
    width: 100% !important;
    height: 8px !important;
    background: transparent !important;
    pointer-events: auto !important;
  }
}
