/*
Theme Name: Niparts Style
Description: 传统 B2B 汽配平台风格主题
Version: 1.0.4
Text Domain: niparts-style
*/

:root {
  --blue: #0E4C92;
  --blue-dark: #0A3A70;
  --blue-light: #1B6BC0;
  --border: #D6D6D6;
  --border-light: #E8E8E8;
  --text: #333;
  --text-light: #666;
  --bg: #fff;
  --bg-gray: #F7F7F7;
  --font: Arial, 'Microsoft YaHei', 'PingFang SC', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1,h2,h3,h4 { margin: 0 0 10px; font-weight: bold; color: var(--text); }

/* ===== 统一深蓝顶栏 ===== */
.site-header {
  background: var(--blue);
  border-bottom: 1px solid var(--blue-dark);
  flex-shrink: 0;
}
.site-header-inner {
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 64px;
}

/* Logo */
.site-logo {
  flex-shrink: 0;
  line-height: 1.1;
  width: 184px;
}
.site-logo a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  font-weight: bold;
}
.site-logo a:hover { text-decoration: none; }
.site-logo small {
  display: block;
  font-size: 10px;
  color: rgba(255,255,255,.6);
  letter-spacing: 1px;
  font-weight: normal;
  margin-top: 2px;
}
.site-logo img { max-height: 44px; }

/* 标签导航 */
.tab-nav {
  display: flex;
  align-self: stretch;
  margin-left: 8px;
}
.tab-nav a {
  display: flex;
  align-items: center;
  padding: 0 26px;
  color: rgba(255,255,255,.85);
  font-size: 13px;
  border-left: 1px solid rgba(255,255,255,.15);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.tab-nav a:last-child { border-right: 1px solid rgba(255,255,255,.15); }
.tab-nav a:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
  text-decoration: none;
}
.tab-nav a.active {
  background: #fff;
  color: var(--blue);
  font-weight: bold;
}

/* 右侧工具链接 */
.header-tools {
  margin-left: auto;
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 12px;
}
.header-tools a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
}
.header-tools a:hover { color: #fff; text-decoration: underline; }

/* 旧的 top-bar 不再使用 */
.top-bar { display: none; }

/* ===== 页面主结构：左侧栏 + 内容 ===== */
.page-wrap {
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: flex-start;
  flex: 1 0 auto;
}

/* ===== 左侧分类栏（滚动时固定） ===== */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: 0;
  align-self: flex-start;
  max-height: calc(100vh - 112px);
  min-height: calc(100vh - 112px);
  overflow-y: auto;
}
.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar li {
  border-bottom: 1px solid var(--border-light);
}
.sidebar li a {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  font-size: 13px;
}
.sidebar li a:hover {
  background: var(--bg-gray);
  text-decoration: none;
}
.sidebar li a.active {
  background: var(--blue);
  color: #fff;
}
/* 侧栏内部滚动条美化 */
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: #C8CDD4; border-radius: 3px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: #A8AEB6; }

/* ===== 内容区 ===== */
.content {
  flex: 1;
  padding: 16px 24px;
  min-width: 0;
}

/* ===== 搜索框 ===== */
.search-box {
  display: flex;
  max-width: 620px;
  margin-bottom: 24px;
}
.search-box input[type="search"] {
  flex: 1;
  height: 36px;
  border: 1px solid var(--border);
  border-right: 0;
  padding: 0 12px;
  font-size: 13px;
  outline: none;
  color: var(--text);
}
.search-box input[type="search"]:focus {
  border-color: var(--blue);
}
.search-box button {
  width: 46px;
  height: 36px;
  border: 1px solid var(--border);
  background: var(--bg-gray);
  cursor: pointer;
  font-size: 16px;
  color: var(--text);
}
.search-box button:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* ===== 首页汽车插画区 ===== */
.hero-illustration {
  text-align: center;
  padding: 40px 20px 60px;
}
.hero-illustration img,
.hero-illustration svg {
  max-width: 720px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}
.hero-illustration .placeholder-car {
  max-width: 720px;
  margin: 0 auto;
  color: #B0B0B0;
  font-size: 14px;
  padding: 100px 20px;
  border: 2px dashed #DDD;
}

/* ===== 配件默认搜索入口 ===== */
.parts-search-hero {
  max-width: 1000px;
  margin: 24px auto 0;
  padding: 28px 0 12px;
  border-top: 1px solid var(--border-light);
  text-align: center;
}
.parts-search-hero h1 {
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.3;
}
.parts-search-hero p {
  margin: 0;
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
}
.parts-search-hero img {
  display: block;
  width: 100%;
  max-width: 960px;
  height: auto;
  margin: 24px auto 0;
}
@media (max-width: 900px) {
  .parts-search-page > .sidebar { display: none; }
  .parts-search-page > .content { width: 100%; }
}
@media (max-width: 600px) {
  .parts-search-hero { margin-top: 20px; padding-top: 20px; }
  .parts-search-hero img { margin-top: 20px; }
}

/* ===== 首页独立介绍与配件展示 ===== */
.home-hero {
  max-width: 1100px;
  margin: 24px auto 0;
  padding: 32px 0 20px;
  border-top: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: minmax(240px, .9fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 28px;
}
.home-hero-copy { min-width: 0; }
.home-hero-label {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.home-hero h1 {
  margin-bottom: 16px;
  color: var(--blue-dark);
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.2;
}
.home-hero-description {
  max-width: 460px;
  margin: 0;
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.7;
}
.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.home-hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--blue);
  font-size: 13px;
  font-weight: bold;
  line-height: 1.4;
  text-decoration: none;
}
.home-hero-button-primary { color: #fff; background: var(--blue); }
.home-hero-button-primary:hover { color: #fff; background: var(--blue-dark); text-decoration: none; }
.home-hero-button-secondary { color: var(--blue); background: #fff; }
.home-hero-button-secondary:hover { color: var(--blue-dark); background: var(--bg-gray); text-decoration: none; }
.home-hero-button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.home-hero-media { min-width: 0; }
.home-hero-media img { width: 100%; height: auto; }
@media (max-width: 1000px) {
  .home-hero { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .home-hero-media { width: 100%; max-width: 720px; margin: 0 auto; }
}
@media (max-width: 900px) {
  .home-page > .sidebar { min-height: 0; }
  .home-page > .content { width: 100%; }
}
@media (max-width: 600px) {
  .home-hero { margin-top: 20px; padding-top: 20px; }
  .home-hero h1 { font-size: 28px; }
  .home-hero-description { font-size: 14px; }
  .home-hero-actions { gap: 8px; margin-top: 20px; }
  .home-hero-button { padding: 10px 14px; }
}

/* ===== 产品网格 ===== */
.part-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.part-card {
  border: 1px solid var(--border);
  background: #fff;
  padding: 8px;
}
.part-card:hover { border-color: var(--blue); }
.part-card-img {
  aspect-ratio: 1/1;
  background: var(--bg-gray);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.part-card-img img { width: 100%; height: 100%; object-fit: cover; }
.part-card-img .ph { color: #C0C0C0; font-size: 32px; }
.part-card h3 {
  font-size: 13px;
  margin: 0 0 6px;
  line-height: 1.4;
  font-weight: normal;
}
.part-card h3 a { color: var(--text); }
.part-card h3 a:hover { color: var(--blue); }
.part-card .oe {
  font-family: Consolas, Monaco, monospace;
  font-size: 11px;
  color: var(--text-light);
  background: var(--bg-gray);
  padding: 2px 6px;
  display: inline-block;
  margin-bottom: 6px;
}
.part-card .brand {
  font-size: 11px;
  color: var(--text-light);
}
.part-card .actions {
  margin-top: 8px;
  display: flex;
  gap: 6px;
}
.part-card .actions a {
  flex: 1;
  text-align: center;
  padding: 4px 8px;
  font-size: 12px;
  border: 1px solid var(--border);
  color: var(--text);
}
.part-card .actions a:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  text-decoration: none;
}
.part-card .actions a.primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.part-card .actions a.primary:hover {
  background: var(--blue-dark);
}

/* ===== 归档标题 ===== */
.archive-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.archive-header h1 {
  font-size: 16px;
  margin: 0;
}
.archive-header .count {
  font-size: 12px;
  color: var(--text-light);
}

/* ===== 面包屑 ===== */
.breadcrumbs {
  font-size: 12px;
  color: var(--text-light);
  padding: 10px 0;
}
.breadcrumbs a { color: var(--text-light); }
.breadcrumbs span { margin: 0 6px; }

/* ===== 单产品页 ===== */
.single-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  padding: 16px 0;
}
.single-gallery {
  border: 1px solid var(--border);
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-gray);
}
.single-gallery img { width: 100%; height: 100%; object-fit: contain; }
.single-info h1 {
  font-size: 18px;
  margin: 0 0 16px;
}
.oe-block {
  border: 1px solid var(--border);
  background: var(--bg-gray);
  padding: 10px 14px;
  margin-bottom: 16px;
}
.oe-block label {
  display: block;
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.oe-block code {
  font-family: Consolas, Monaco, monospace;
  font-size: 16px;
  font-weight: bold;
  color: var(--blue);
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}
.spec-table th,
.spec-table td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  font-size: 13px;
  text-align: left;
}
.spec-table th {
  background: var(--bg-gray);
  width: 130px;
  font-weight: normal;
  color: var(--text-light);
}
.btn {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}
.btn:hover { background: var(--bg-gray); text-decoration: none; }
.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-primary:hover { background: var(--blue-dark); color: #fff; }

/* ===== 分页 ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 24px 0;
}
.pagination .page-numbers {
  padding: 5px 10px;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
}
.pagination .page-numbers.current {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* ===== 极简页脚 ===== */
.site-footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,.7);
  padding: 14px 0;
  font-size: 12px;
  text-align: center;
  flex-shrink: 0;
}
.site-footer .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .page-wrap { flex-direction: column; }
  .sidebar {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    position: static;
    max-height: none;
    overflow: visible;
  }
  .sidebar ul { display: grid; grid-template-columns: 1fr 1fr; }
  .sidebar li { border-right: 1px solid var(--border-light); }
  .single-layout { grid-template-columns: 1fr; }
  .tab-nav { overflow-x: auto; }
  .tab-nav a { padding: 0 16px; white-space: nowrap; }
}
@media (max-width: 600px) {
  .site-header-inner { flex-wrap: wrap; gap: 12px; padding: 10px 16px; min-height: auto; }
  .header-tools { margin-left: 0; }
  .sidebar ul { grid-template-columns: 1fr; }
  .part-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 登录弹窗 ===== */
.login-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-modal[hidden] { display: none; }

.login-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .35);
}

.login-modal-box {
  position: relative;
  background: #fff;
  width: 520px;
  max-width: calc(100% - 32px);
  padding: 44px 56px 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
  z-index: 1;
}

.login-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: none;
  border: 0;
  font-size: 26px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 0;
}
.login-modal-close:hover { color: #333; }

/* Logo */
.login-modal-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 32px;
}
.login-modal-logo-mark {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.login-modal-logo-mark span {
  display: block;
  width: 28px;
  height: 5px;
  background: #F5B400;
}
.login-modal-logo-text {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #4A4A4A;
}

/* 分割线 */
.login-modal-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  color: #888;
  font-size: 14px;
  font-weight: 500;
}
.login-modal-divider::before,
.login-modal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E0E0E0;
}

/* 表单 */
.login-modal-form { margin-bottom: 24px; }

.login-field {
  position: relative;
  margin-bottom: 16px;
}
.login-field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #B0B0B0;
  display: flex;
  pointer-events: none;
}
.login-field input {
  width: 100%;
  height: 46px;
  border: 1px solid #DDD;
  background: #fff;
  padding: 0 16px 0 44px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  font-family: inherit;
}
.login-field input:focus { border-color: var(--blue); }
.login-field input::placeholder { color: #B0B0B0; }

.login-error {
  color: #E63946;
  font-size: 12px;
  min-height: 16px;
  margin-bottom: 8px;
}

.login-submit {
  width: 100%;
  height: 46px;
  background: #0E4C92;
  color: #fff;
  border: 0;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 2px;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}
.login-submit:hover { background: #0A3A70; }
.login-submit:disabled { opacity: .7; cursor: wait; }

/* 底部链接 */
.login-modal-footer {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #666;
}
.login-modal-footer a {
  color: #666;
  text-decoration: none;
}
.login-modal-footer a:hover { color: var(--blue); text-decoration: underline; }

/* 移动端 */
@media (max-width: 600px) {
  .login-modal-box { padding: 36px 24px 24px; }
  .login-modal-logo-text { font-size: 24px; }
}

/* ===== 注册页 ===== */
.reg-page {
  background: #F0F0F0;
  min-height: calc(100vh - 160px);
  padding: 24px 40px 60px;
}

/* 顶部 */
.reg-top {
  max-width: 1180px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.reg-logo {
  font-size: 24px;
  font-weight: bold;
  color: #4A4A4A;
  text-decoration: none;
  line-height: 1.1;
}
.reg-logo small {
  display: block;
  font-size: 10px;
  color: #999;
  letter-spacing: 1px;
  font-weight: normal;
  margin-top: 2px;
}
.reg-home-link {
  color: #555;
  font-size: 15px;
  text-decoration: none;
}
.reg-home-link:hover { color: var(--blue); }

/* 步骤条 */
.reg-steps {
  max-width: 1180px;
  margin: 0 auto 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #DDD;
}
.reg-steps-left {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}
.reg-steps-left strong { color: #333; }
.reg-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #888;
}
.reg-step i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #CCC;
  color: #fff;
  font-style: normal;
  font-size: 12px;
  font-weight: bold;
}
.reg-step--active {
  color: #E67E22;
  font-weight: bold;
}
.reg-step--active i { background: #E67E22; }
.reg-step-arrow { color: #BBB; font-size: 18px; }
.reg-required-note { color: #E63946; font-size: 13px; }

/* 卡片 */
.reg-card {
  max-width: 1180px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #E0E0E0;
  padding: 40px 60px 50px;
}

.reg-title {
  font-size: 26px;
  color: #333;
  margin: 0 0 6px;
}
.reg-subtitle {
  color: #888;
  font-size: 14px;
  margin: 0 0 36px;
}

.reg-error {
  background: #FDF0F0;
  border: 1px solid #F5C6C6;
  color: #C0392B;
  padding: 10px 16px;
  font-size: 13px;
  margin-bottom: 24px;
}

/* 表单 */
.reg-form { max-width: 900px; }

.reg-field {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 22px;
}
.reg-field > label {
  text-align: right;
  padding-top: 12px;
  font-weight: bold;
  color: #333;
  font-size: 14px;
}
.reg-field .req { color: #E63946; font-weight: normal; }

.reg-field input[type="text"],
.reg-field input[type="email"],
.reg-field input[type="password"] {
  width: 100%;
  height: 44px;
  border: 1px solid #CCC;
  background: #fff;
  padding: 0 14px;
  font-size: 14px;
  color: #333;
  outline: none;
  font-family: inherit;
}
.reg-field input:focus { border-color: var(--blue); }
.reg-field input::placeholder { color: #AAA; }

.reg-hint {
  font-size: 12px;
  color: #888;
  margin-top: 6px;
}

/* 密码框 */
.reg-pwd-wrap { position: relative; }
.reg-pwd-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: var(--blue);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}

/* 验证码 */
.reg-captcha-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.reg-captcha-row input {
  max-width: 260px;
}
.reg-captcha-row { flex-wrap: wrap; }
.reg-captcha-image {
  display: block;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 3px;
}
.reg-captcha-image[hidden] { display: none; }
.reg-captcha-refresh:disabled { cursor: wait; opacity: .65; }
.reg-captcha-refresh {
  background: none;
  border: 0;
  padding: 0 0 0 8px;
  color: var(--blue);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}
.reg-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 按钮 */
.reg-actions {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  margin-top: 30px;
}
.reg-submit {
  grid-column: 2;
  display: inline-block;
  height: 46px;
  background: #0E4C92;
  color: #fff;
  border: 0;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 1px;
  cursor: pointer;
  font-family: inherit;
  padding: 0 56px;
  justify-self: start;
  transition: background .15s;
  text-align: center;
}
.reg-submit:hover { background: #0A3A70; }

/* 响应式 */
@media (max-width: 768px) {
  .reg-page { padding: 16px 16px 40px; }
  .reg-card { padding: 24px 20px; }
  .reg-steps { flex-direction: column; align-items: flex-start; gap: 12px; }
  .reg-field {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .reg-field > label { text-align: left; padding-top: 0; }
  .reg-actions { grid-template-columns: 1fr; }
  .reg-submit { grid-column: 1; width: 100%; }
  .reg-captcha-row { flex-direction: column; align-items: flex-start; }
}

/* 注册页独立布局 */
body.reg-body {
  background: #F0F0F0;
}
body.reg-body .reg-page {
  min-height: 100vh;
  padding: 32px 40px 60px;
}

/* 步骤条完成态 */
.reg-step--done {
  color: #2E9E5B;
  font-weight: bold;
}
.reg-step--done i {
  background: #2E9E5B;
}

/* 密码强度条 */
.pwd-strength {
  margin-top: 8px;
}
.pwd-strength-bar {
  height: 4px;
  background: #E8E8E8;
  border-radius: 2px;
  overflow: hidden;
}
.pwd-strength-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: #E63946;
  transition: width .25s, background .25s;
}
.pwd-strength-text {
  font-size: 12px;
  margin-top: 6px;
  color: #888;
}

/* ===== 联系页 ===== */
.contact-page {
  max-width: 760px;
  padding: 24px 0 40px;
}
.contact-page h1 {
  font-size: 26px;
  color: #333;
  margin: 0 0 28px;
  font-weight: bold;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.7;
}
.contact-label {
  font-weight: bold;
  color: #333;
  flex-shrink: 0;
  min-width: 60px;
}
.contact-value {
  color: #555;
}
.contact-value a {
  color: var(--blue);
}
.contact-value a:hover {
  text-decoration: underline;
}
.contact-extra {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: #555;
  font-size: 14px;
}

@media (max-width: 600px) {
  .contact-item {
    flex-direction: column;
    gap: 2px;
    margin-bottom: 20px;
  }
  .contact-label {
    min-width: 0;
  }
}

/* ===== Product 视图：三列分类网格 ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 40px;
  padding: 8px 0 40px;
}

.product-block {
  min-width: 0;
}

.product-block-title {
  font-size: 15px;
  font-weight: bold;
  margin: 0 0 12px;
  padding-bottom: 6px;
  color: #0E4C92;
  border-bottom: 1px solid #E8E8E8;
}
.product-block-title a {
  color: #0E4C92;
  text-decoration: none;
}
.product-block-title a:hover {
  text-decoration: underline;
}
.product-block-count {
  font-size: 12px;
  color: #888;
  font-weight: normal;
  margin-left: 4px;
}

.product-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}
.product-list li {
  position: relative;
  padding: 3px 0 3px 14px;
  font-size: 13px;
  line-height: 1.5;
}
.product-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 3px;
  color: #999;
}
.product-list a {
  color: #333;
  text-decoration: none;
}
.product-list a:hover {
  color: #0E4C92;
  text-decoration: underline;
}
.product-list-count {
  font-size: 12px;
  color: #888;
  margin-left: 4px;
}

.product-all-link {
  display: inline-block;
  font-size: 13px;
  color: #E67E22;
  text-decoration: none;
  margin-top: 4px;
}
.product-all-link:hover {
  text-decoration: underline;
}

/* 响应式：窄屏变两列 / 单列 */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .product-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ===== 分类归档页 ===== */
.cat-breadcrumbs {
  font-size: 13px;
  color: #888;
  padding: 12px 0;
  margin-bottom: 8px;
}
.cat-breadcrumbs a {
  color: #888;
  text-decoration: none;
}
.cat-breadcrumbs a:hover {
  color: #0E4C92;
  text-decoration: underline;
}
.cat-breadcrumbs span {
  margin: 0 6px;
}
.cat-breadcrumbs .current {
  color: #555;
}

/* 子分类灰底区块 */
.subcat-box {
  background: #F2F3F5;
  border: 1px solid #E5E7EB;
  padding: 18px 24px;
  margin-bottom: 24px;
}
.subcat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 32px;
}
.subcat-item {
  font-size: 13px;
  color: #333;
  text-decoration: none;
  line-height: 1.6;
  display: inline-block;
}
.subcat-item:hover {
  color: #0E4C92;
  text-decoration: underline;
}
.subcat-item.active,
.subcat-item:active {
  background: #0E4C92;
  color: #fff;
  padding: 0 6px;
}
.subcat-item span {
  font-size: 12px;
  color: inherit;
  opacity: .75;
  margin-left: 2px;
}

/* 产品横向列表 */
.part-list {
  border-top: 1px solid #E8E8E8;
}
.part-row {
  display: grid;
  grid-template-columns: 130px 1fr 200px;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px dashed #DDD;
  align-items: flex-start;
}
.part-row-img {
  width: 130px;
  height: 130px;
  border: 1px solid #E0E0E0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
}
.part-row-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.part-row-img .ph {
  color: #C0C0C0;
  font-size: 40px;
}

.part-row-main { min-width: 0; }
.part-row-title {
  font-size: 15px;
  font-weight: bold;
  margin: 0 0 8px;
  color: #333;
}
.part-row-title a {
  color: #333;
  text-decoration: none;
}
.part-row-title a:hover {
  color: #0E4C92;
  text-decoration: underline;
}
.part-row-line {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
}
.part-row-oe {
  font-family: Consolas, Monaco, monospace;
  color: #0E4C92;
  margin-top: 4px;
}

.part-row-app {
  font-size: 13px;
  color: #555;
  padding-top: 6px;
}
.part-row-app-title {
  font-weight: bold;
  color: #333;
  margin-bottom: 6px;
}
.part-row-app-item {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.7;
}
.part-row-app-item .plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border: 1px solid #999;
  font-size: 10px;
  color: #666;
  line-height: 1;
  flex-shrink: 0;
}

/* 响应式 */
@media (max-width: 1100px) {
  .subcat-grid { grid-template-columns: repeat(3, 1fr); }
  .part-row { grid-template-columns: 110px 1fr; }
  .part-row-app { grid-column: 2; padding-top: 12px; }
}
@media (max-width: 700px) {
  .subcat-grid { grid-template-columns: repeat(2, 1fr); }
  .part-row {
    grid-template-columns: 90px 1fr;
    gap: 12px;
  }
  .part-row-img { width: 90px; height: 90px; }
}

/* ===== Vehicle 页：顶部 Make 标签栏 ===== */
.vehicle-topbar {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 16px;
}
.vehicle-topbar-tab {
  display: inline-block;
  padding: 8px 20px;
  background: #0E4C92;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
}
.vehicle-topbar-select {
  height: 34px;
  border: 1px solid #DDD;
  background: #fff;
  padding: 0 12px;
  font-size: 13px;
  color: #333;
  outline: none;
  font-family: inherit;
  cursor: pointer;
  min-width: 200px;
}
.vehicle-topbar-select:focus { border-color: #0E4C92; }

/* ===== 品牌网格：5 列，带分隔线 ===== */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid #DDD;
  border-left: 1px solid #DDD;
  background: #fff;
}
.brand-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-right: 1px solid #DDD;
  border-bottom: 1px solid #DDD;
  text-decoration: none;
  color: #333;
  font-size: 13px;
  transition: background .12s, color .12s;
}
.brand-cell:hover {
  background: #F5F7F9;
  color: #0E4C92;
  text-decoration: none;
}
.brand-cell img,
.brand-cell .brand-placeholder {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-cell .brand-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #E8ECF0;
  border-radius: 50%;
  font-size: 11px;
  font-weight: bold;
  color: #6B7280;
}
.brand-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 响应式 */
@media (max-width: 1100px) {
  .brand-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 800px) {
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .brand-grid { grid-template-columns: 1fr; }
}

/* ===== Vehicle 顶部标签切换 ===== */
.vehicle-topbar {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 16px;
  padding-bottom: 0;
}
.vehicle-topbar-label {
  display: inline-block;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: bold;
  color: #333;
}
.vehicle-topbar-tab {
  display: inline-block;
  padding: 7px 20px;
  margin-left: 6px;
  background: #fff;
  border: 1px solid #D9DEE4;
  color: #333;
  font-size: 13px;
  text-decoration: none;
  transition: all .15s;
}
.vehicle-topbar-tab:hover {
  background: #F5F7F9;
  text-decoration: none;
}
.vehicle-topbar-tab.active {
  background: #0E4C92;
  border-color: #0E4C92;
  color: #fff;
  font-weight: bold;
}

/* ===== Home 页大类网格 ===== */
.home-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid #DDD;
  border-left: 1px solid #DDD;
  background: #fff;
}
.home-cat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-right: 1px solid #DDD;
  border-bottom: 1px solid #DDD;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  transition: background .12s, color .12s;
}
.home-cat-item:hover {
  background: #F5F7F9;
  color: #0E4C92;
  text-decoration: none;
}
.home-cat-name {
  font-weight: 600;
}
.home-cat-count {
  font-size: 12px;
  color: #888;
}

/* 响应式 */
@media (max-width: 1100px) {
  .home-cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .home-cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .home-cat-grid { grid-template-columns: 1fr; }
}

/* ===== 分类页横向子分类 tab ===== */
.subcat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: #F2F3F5;
  border: 1px solid #E5E7EB;
  padding: 14px 20px;
  margin-bottom: 24px;
}
.subcat-tab {
  display: inline-block;
  padding: 6px 14px;
  margin: 2px 4px 2px 0;
  font-size: 13px;
  color: #333;
  text-decoration: none;
  border-radius: 2px;
  transition: background .12s, color .12s;
}
.subcat-tab:hover {
  background: rgba(14, 76, 146, .08);
  color: #0E4C92;
  text-decoration: none;
}
.subcat-tab.active {
  background: #0E4C92;
  color: #fff;
  font-weight: 600;
}
.subcat-tab.active:hover {
  background: #0A3A70;
  color: #fff;
}

/* ===== Product 视图数量修正（父分类显示含子分类的总数） ===== */
.product-block-count {
  font-size: 12px;
  color: #888;
  font-weight: normal;
  margin-left: 4px;
}

/* ===== 产品详情页 ===== */
.product-detail {
  display: grid;
  grid-template-columns: 340px 1fr 260px;
  gap: 32px;
  padding: 24px 0 56px;
  align-items: flex-start;
}

/* 左图 */
.pd-gallery {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pd-gallery-img {
  border: 1px solid #E0E0E0;
  aspect-ratio: 1/1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pd-gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pd-gallery-img .ph {
  color: #C0C0C0;
  font-size: 60px;
}
.pd-view-larger {
  font-size: 12px;
  color: #0E4C92;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.pd-view-larger:hover { text-decoration: underline; }

/* 中间信息 */
.pd-info { min-width: 0; }
.pd-title {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 24px;
  color: #333;
  line-height: 1.4;
  border-bottom: 1px solid #E8E8E8;
  padding-bottom: 12px;
}

.pd-cta {
  margin-bottom: 24px;
}
.pd-btn-inquiry {
  display: inline-block;
  background: #E67E22;
  color: #fff;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 2px;
  transition: background .15s;
}
.pd-btn-inquiry:hover {
  background: #CF6E15;
  color: #fff;
  text-decoration: none;
}
.pd-cta-note {
  font-size: 12px;
  color: #888;
  margin-top: 8px;
}

/* Tabs */
.pd-tabs {
  display: flex;
  border-bottom: 1px solid #DDD;
  margin-bottom: 0;
}
.pd-tab {
  padding: 8px 28px;
  background: #F7F7F7;
  border: 1px solid #DDD;
  border-bottom: 0;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  margin-right: -1px;
  font-family: inherit;
}
.pd-tab:hover {
  background: #EFEFEF;
}
.pd-tab.active {
  background: #fff;
  color: #333;
  font-weight: bold;
  border-bottom: 1px solid #fff;
  margin-bottom: -1px;
}

.pd-tab-content {
  border: 1px solid #DDD;
  border-top: 0;
  background: #fff;
  margin-bottom: 24px;
}

.pd-table {
  width: 100%;
  border-collapse: collapse;
}
.pd-table td {
  padding: 8px 16px;
  font-size: 13px;
  color: #333;
  border-bottom: 1px solid #F0F0F0;
}
.pd-table tr:last-child td { border-bottom: 0; }
.pd-table td:first-child { color: #555; width: 40%; }
.pd-table td:last-child { color: #333; font-family: Consolas, Monaco, monospace; }

.pd-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
}

/* 右侧 Similar Products */
.pd-similar {
  border-left: 1px solid #E8E8E8;
  padding-left: 24px;
}
.pd-similar-title {
  font-size: 15px;
  font-weight: bold;
  color: #333;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #E8E8E8;
}
.pd-similar-item {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed #EEE;
}
.pd-similar-item:last-child { border-bottom: 0; }
.pd-similar-code {
  display: inline-block;
  font-size: 13px;
  font-weight: bold;
  color: #333;
  text-decoration: none;
  margin-bottom: 4px;
}
.pd-similar-code:hover {
  color: #0E4C92;
  text-decoration: underline;
}
.pd-similar-name {
  font-size: 12px;
  color: #777;
  line-height: 1.5;
}

/* 响应式 */
@media (max-width: 1100px) {
  .product-detail {
    grid-template-columns: 260px 1fr;
  }
  .pd-similar {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid #E8E8E8;
    padding-left: 0;
    padding-top: 24px;
  }
}
@media (max-width: 700px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
  .pd-gallery-img { max-width: 320px; }
}

/* ===== Vehicle 顶部 Make 标签栏 ===== */
.vehicle-topbar {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 16px;
}
.vehicle-topbar-label {
  display: inline-block;
  padding: 8px 20px;
  background: #0E4C92;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
}
.vehicle-topbar-select-wrap {
  position: relative;
  margin-left: 10px;
}
.vehicle-topbar-select {
  height: 34px;
  border: 1px solid #DDD;
  background: #fff;
  padding: 0 32px 0 12px;
  font-size: 13px;
  color: #333;
  outline: none;
  font-family: inherit;
  cursor: pointer;
  min-width: 160px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.vehicle-topbar-select:focus {
  border-color: #0E4C92;
}

/* ===== 品牌网格：5 列带边框 ===== */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid #DDD;
  border-left: 1px solid #DDD;
  background: #fff;
}
.brand-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-right: 1px solid #DDD;
  border-bottom: 1px solid #DDD;
  text-decoration: none;
  color: #333;
  font-size: 13px;
  transition: background .12s, color .12s;
}
.brand-cell:hover {
  background: #F5F7F9;
  color: #0E4C92;
  text-decoration: none;
}
.brand-cell img,
.brand-cell .brand-placeholder {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-cell .brand-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #E8ECF0;
  border-radius: 50%;
  font-size: 10px;
  font-weight: bold;
  color: #6B7280;
}
.brand-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 响应式 */
@media (max-width: 1200px) {
  .brand-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .brand-grid { grid-template-columns: 1fr; }
}

/* ===== 搜索结果页 ===== */
.search-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0;
  border-bottom: 1px solid #DDD;
}
.search-tab {
  padding: 9px 28px;
  background: #fff;
  border: 1px solid #DDD;
  border-bottom: 0;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  margin-right: -1px;
  font-family: inherit;
}
.search-tab:hover { background: #F5F5F5; }
.search-tab.active {
  background: #0E4C92;
  color: #fff;
  font-weight: bold;
  border-color: #0E4C92;
}

.search-results {
  border: 1px solid #DDD;
  border-top: 0;
}

.sr-block {
  border-bottom: 1px solid #DDD;
}
.sr-block:last-child { border-bottom: 0; }

/* 品牌行 */
.sr-brand-row {
  background: #E8F0F8;
  color: #333;
  font-size: 13px;
  font-weight: bold;
  padding: 5px 14px;
  border-bottom: 1px solid #D0DCE8;
}

/* 分类行 */
.sr-cat-row {
  background: #F7F9FB;
  color: #333;
  font-size: 13px;
  padding: 5px 14px;
  border-bottom: 1px solid #E8E8E8;
}

/* 内容区 */
.sr-content {
  display: grid;
  grid-template-columns: 130px 1fr 1fr;
  gap: 20px;
  padding: 14px;
  align-items: flex-start;
  background: #fff;
}

/* 左图 */
.sr-img {
  width: 130px;
  height: 130px;
  border: 1px solid #E8E8E8;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
}
.sr-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.sr-img .ph {
  color: #C0C0C0;
  font-size: 40px;
}

/* 中间编号列表 */
.sr-codes {
  padding-top: 4px;
}
.sr-code-item {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.sr-code-icon {
  color: #888;
  font-size: 12px;
}
.sr-code {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  text-decoration: none;
}
.sr-code:hover {
  color: #0E4C92;
  text-decoration: underline;
}

/* 右侧属性 */
.sr-attrs {
  padding-top: 4px;
  font-size: 13px;
  color: #555;
  line-height: 1.7;
}
.sr-attr-line {
  margin-bottom: 2px;
}
.sr-attr-key {
  color: #666;
  margin-right: 4px;
}

/* 响应式 */
@media (max-width: 900px) {
  .sr-content {
    grid-template-columns: 110px 1fr;
  }
  .sr-attrs {
    grid-column: 1 / -1;
    padding-top: 12px;
    border-top: 1px dashed #EEE;
  }
}
@media (max-width: 600px) {
  .sr-content {
    grid-template-columns: 1fr;
  }
  .sr-img {
    width: 120px;
    height: 120px;
  }
  .search-tab {
    padding: 8px 16px;
    font-size: 12px;
  }
}

/* ===== 会员中心 ===== */
.account-page {
  background: #E8ECF0;
  min-height: calc(100vh - 64px);
}

.account-hello {
  background: #fff;
  border-bottom: 1px solid #D6D6D6;
  padding: 8px 0;
  font-size: 13px;
  color: #333;
}
.account-hello .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.account-hello a {
  color: #0E4C92;
}

.account-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 16px 40px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  align-items: flex-start;
}

/* 左侧导航 */
.account-nav {
  background: #F5F7F9;
  border: 1px solid #C9D0D8;
}
.account-nav-tab {
  background: #F5F7F9;
  border-bottom: 1px solid #C9D0D8;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: bold;
  color: #333;
}
.account-nav-group {
  background: #E8ECF0;
  padding: 4px 12px;
  font-size: 12px;
  color: #333;
  font-weight: bold;
  border-bottom: 1px solid #C9D0D8;
}
.account-nav-link {
  display: block;
  padding: 7px 12px 7px 24px;
  font-size: 12px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #E5E7EB;
  background: #fff;
}
.account-nav-link:hover {
  background: #EAF2FB;
  color: #0E4C92;
  text-decoration: none;
}
.account-nav-link.active {
  background: #D8E6F4;
  color: #0E4C92;
  font-weight: bold;
}

/* 右侧主内容 */
.account-main {
  background: #fff;
  border: 1px solid #C9D0D8;
  min-height: 400px;
}

.account-panel-header {
  background: linear-gradient(180deg, #4A80B8 0%, #2E5F9E 100%);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  padding: 7px 16px;
  border-bottom: 1px solid #1F4A80;
}

.account-msg {
  padding: 8px 16px;
  font-size: 13px;
  border-bottom: 1px solid #E5E7EB;
}
.account-msg--success { background: #EAF7EE; color: #2E9E5B; }
.account-msg--error   { background: #FDF0F0; color: #C0392B; }

/* tabs */
.account-tabs {
  display: flex;
  background: #F5F7F9;
  border-bottom: 1px solid #C9D0D8;
}
.account-tab {
  display: inline-block;
  padding: 7px 22px;
  font-size: 13px;
  color: #555;
  background: #F5F7F9;
  border-right: 1px solid #C9D0D8;
  text-decoration: none;
}
.account-tab:hover {
  background: #EAF2FB;
  color: #0E4C92;
  text-decoration: none;
}
.account-tab.active {
  background: #fff;
  color: #C0392B;
  font-weight: bold;
  border-bottom: 1px solid #fff;
  margin-bottom: -1px;
}

/* 表单 */
.account-body {
  padding: 20px 24px;
}

.account-form {
  max-width: 720px;
}

.ac-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 10px;
}
.ac-row label {
  font-size: 13px;
  color: #333;
  text-align: left;
}
.ac-row input[type="text"],
.ac-row input[type="email"],
.ac-row input[type="url"],
.ac-row input[type="password"],
.ac-row select,
.ac-row textarea {
  width: 100%;
  height: 30px;
  border: 1px solid #B8BFC7;
  background: #fff;
  padding: 0 8px;
  font-size: 13px;
  color: #333;
  outline: none;
  font-family: inherit;
}
.ac-row input:focus,
.ac-row select:focus {
  border-color: #0E4C92;
}

.ac-row--submit {
  margin-top: 16px;
  align-items: center;
}

.ac-submit {
  height: 30px;
  padding: 0 30px;
  background: #E8ECF0;
  border: 1px solid #B8BFC7;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  font-family: inherit;
  justify-self: start;
}
.ac-submit:hover {
  background: #D8DEE4;
}

/* 性别单选 */
.ac-gender {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: #333;
}
.ac-gender label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  text-align: left;
}

/* 响应式 */
@media (max-width: 800px) {
  .account-layout {
    grid-template-columns: 1fr;
  }
  .ac-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .ac-row--submit {
    margin-top: 12px;
  }
}

/* 会员中心左侧导航：父级 + 子级 */
.account-nav-parent {
  background: #E8ECF0;
  padding-left: 12px;
  font-weight: 600;
}
.account-nav-parent:hover {
  background: #DCE6F0;
}

.account-nav-children {
  background: #F5F7F9;
  border-bottom: 1px solid #E5E7EB;
}

.account-nav-child {
  padding-left: 36px;
  position: relative;
  background: #fff;
  font-size: 12px;
}

.account-nav-child::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #D9DEE4;
}

/* ===== 产品车型适配表 ===== */
.vt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: #333;
  background: #fff;
}
.vt-table thead th {
  background: #E8ECF0;
  color: #333;
  font-weight: bold;
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid #D9DEE4;
  border-right: 1px solid #E8ECF0;
  white-space: nowrap;
}
.vt-table thead th:last-child { border-right: 0; }

.vt-table td {
  padding: 7px 12px;
  border-bottom: 1px solid #EEF0F2;
  vertical-align: middle;
}

/* 父行 */
.vt-parent {
  cursor: pointer;
  background: #F5F7F9;
  user-select: none;
}
.vt-parent td {
  border-top: 1px solid #D9DEE4;
  border-bottom: 1px solid #D9DEE4;
}
.vt-parent:hover {
  background: #EAF2FB;
}
.vt-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border: 1px solid #999;
  font-size: 11px;
  line-height: 1;
  margin-right: 8px;
  color: #666;
  background: #fff;
  font-weight: bold;
}

/* 子行 */
.vt-child td {
  background: #fff;
  border-bottom: 1px solid #F2F4F6;
}
.vt-child:hover td {
  background: #FAFBFD;
}
.vt-indent {
  padding-left: 40px !important;
}

/* ===== Buying Request 页面 ===== */
.br-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin: 16px 0 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #0E4C92;
}

.br-msg {
  padding: 12px 18px;
  font-size: 13px;
  margin-bottom: 20px;
  border-radius: 2px;
}
.br-msg--success {
  background: #EAF7EE;
  border-left: 4px solid #2E9E5B;
  color: #2E9E5B;
}
.br-msg--error {
  background: #FDF0F0;
  border-left: 4px solid #C0392B;
  color: #C0392B;
}

.br-form {
  max-width: 720px;
}

.br-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.br-row > label {
  text-align: right;
  padding-top: 8px;
  font-size: 13px;
  color: #333;
  font-weight: 600;
}
.br-required {
  color: #E63946;
  margin-right: 2px;
}

.br-row input[type="text"],
.br-row input[type="email"],
.br-row input[type="date"],
.br-row select,
.br-row textarea {
  width: 100%;
  border: 1px solid #B8BFC7;
  background: #fff;
  padding: 6px 10px;
  font-size: 13px;
  color: #333;
  outline: none;
  font-family: inherit;
}
.br-row input[type="text"],
.br-row input[type="email"],
.br-row input[type="date"],
.br-row select {
  height: 34px;
}
.br-row textarea {
  min-height: 200px;
  resize: vertical;
  line-height: 1.5;
}
.br-row input:focus,
.br-row select:focus,
.br-row textarea:focus {
  border-color: #0E4C92;
}

.br-spec-wrap {
  position: relative;
}
.br-counter {
  font-size: 12px;
  color: #E67E22;
  margin-top: 4px;
}

.br-row--submit {
  margin-top: 24px;
}
.br-submit {
  height: 38px;
  padding: 0 40px;
  background: #E67E22;
  color: #fff;
  border: 0;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  font-family: inherit;
  justify-self: start;
  transition: background .15s;
}
.br-submit:hover {
  background: #CF6E15;
}

/* 响应式 */
@media (max-width: 700px) {
  .br-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .br-row > label {
    text-align: left;
    padding-top: 0;
  }
}

/* ===== Service 页面 ===== */
.sv-title {
  font-size: 22px;
  font-weight: bold;
  color: #333;
  margin: 16px 0 8px;
  padding-bottom: 12px;
  border-bottom: 2px solid #0E4C92;
}
.sv-subtitle {
  font-size: 14px;
  color: #666;
  margin: 0 0 32px;
  line-height: 1.7;
  max-width: 780px;
}

/* 服务卡片网格 */
.sv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.sv-card {
  border: 1px solid #E5E7EB;
  background: #fff;
  padding: 24px 22px;
  transition: all .2s;
}
.sv-card:hover {
  border-color: #0E4C92;
  box-shadow: 0 4px 12px rgba(14,76,146,.08);
  transform: translateY(-2px);
}
.sv-card-icon {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 14px;
  color: #0E4C92;
}
.sv-card h3 {
  font-size: 15px;
  font-weight: bold;
  color: #0E4C92;
  margin: 0 0 10px;
}
.sv-card p {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

/* 联系区 */
.sv-contact {
  background: linear-gradient(135deg, #0E4C92 0%, #1B6BC0 100%);
  color: #fff;
  padding: 36px 40px;
  text-align: center;
}
.sv-contact h2 {
  color: #fff;
  font-size: 20px;
  margin: 0 0 10px;
}
.sv-contact p {
  color: rgba(255,255,255,.85);
  margin: 0 0 20px;
  font-size: 14px;
}
.sv-contact-info {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  font-size: 14px;
}
.sv-contact-info a {
  color: #fff;
  text-decoration: underline;
}
.sv-contact-info strong {
  color: rgba(255,255,255,.7);
  margin-right: 6px;
  font-weight: normal;
}
.sv-contact-btn {
  display: inline-block;
  padding: 10px 32px;
  background: #E67E22;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  transition: background .15s;
}
.sv-contact-btn:hover {
  background: #CF6E15;
  color: #fff;
  text-decoration: none;
}

/* 响应式 */
@media (max-width: 1000px) {
  .sv-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .sv-grid { grid-template-columns: 1fr; }
  .sv-contact { padding: 28px 20px; }
  .sv-contact-info { flex-direction: column; gap: 8px; }
}
/* ===== 会员中心：我的采购请求 ===== */
.br-list-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: #333;
}
.br-list-table thead th {
  background: #E8ECF0;
  color: #333;
  font-weight: bold;
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid #D9DEE4;
  white-space: nowrap;
}
.br-list-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #EEF0F2;
  vertical-align: top;
}
.br-list-table tr:hover td {
  background: #FAFBFD;
}
.br-list-spec {
  color: #666;
  font-size: 12px;
  line-height: 1.5;
  max-width: 300px;
}

.br-status-badge {
  display: inline-block;
  padding: 2px 10px;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  border-radius: 2px;
  white-space: nowrap;
}

.br-list-pagination {
  display: flex;
  gap: 4px;
  padding: 20px 0;
  justify-content: center;
}
.br-list-pagination .page-numbers {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid #D9DEE4;
  background: #fff;
  color: #333;
  font-size: 12px;
  text-decoration: none;
}
.br-list-pagination .page-numbers:hover {
  border-color: #0E4C92;
  color: #0E4C92;
  text-decoration: none;
}
.br-list-pagination .page-numbers.current {
  background: #0E4C92;
  color: #fff;
  border-color: #0E4C92;
}

.br-empty {
  text-align: center;
  padding: 60px 20px;
  color: #888;
}
.br-empty p {
  margin-bottom: 20px;
  font-size: 14px;
}
.br-empty .ac-submit {
  display: inline-block;
  text-decoration: none;
  line-height: 30px;
  padding: 0 30px;
}
.br-empty .ac-submit:hover {
  text-decoration: none;
}

/* ===== 产品规格行 ===== */
.pd-specs {
  margin: 0 0 20px;
  padding: 12px 16px;
  background: #F8FAFC;
  border-left: 3px solid #0E4C92;
  font-size: 13px;
}
.pd-spec-line {
  display: flex;
  gap: 8px;
  padding: 3px 0;
  line-height: 1.6;
}
.pd-spec-label {
  color: #666;
  min-width: 130px;
  flex-shrink: 0;
}
.pd-spec-value {
  color: #333;
  word-break: break-word;
}

/* ===== 品牌详情页 ===== */
.vb-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid #DDD;
  margin-bottom: 12px;
  padding-bottom: 0;
}
.vb-tabs { display: flex; }
.vb-tab {
  padding: 8px 24px;
  background: #F0F0F0;
  border: 1px solid #DDD;
  border-bottom: 0;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  margin-right: -1px;
  font-family: inherit;
}
.vb-tab:hover { background: #E8E8E8; }
.vb-tab.active {
  background: #fff;
  color: #333;
  font-weight: bold;
  margin-bottom: -1px;
}
.vb-country {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #666;
  padding-bottom: 6px;
}
.vb-country select {
  height: 26px;
  border: 1px solid #CCC;
  font-size: 12px;
  padding: 0 8px;
}

.vb-manufacturer-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  margin-bottom: 12px;
  font-size: 13px;
}
.vb-brand-logo-sm { width: 22px; height: 22px; object-fit: contain; }
.vb-brand-name {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-right: 8px;
}
.vb-mfr-label { color: #666; }
.vb-mfr-select {
  height: 28px;
  border: 1px solid #CCC;
  padding: 0 8px;
  font-size: 13px;
  min-width: 260px;
}
.vb-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #333;
  font-size: 12px;
}

/* 主体布局：左列表 + 右侧栏 */
.vb-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 16px;
  align-items: flex-start;
}

.vb-main { min-width: 0; }

/* 面板 */
.vb-panel {
  border: 1px solid #C9D0D8;
  background: #fff;
}
.vb-panel-head {
  display: grid;
  grid-template-columns: 1fr 200px;
  background: linear-gradient(180deg, #E8ECF0 0%, #D6DEE6 100%);
  border-bottom: 1px solid #C9D0D8;
  font-size: 12px;
  font-weight: bold;
  color: #333;
}
.vb-panel-head--versions {
  grid-template-columns: 1fr 120px 110px 80px 60px 70px 100px;
}
.vb-panel-head > div {
  padding: 7px 12px;
  border-right: 1px solid #C9D0D8;
}
.vb-panel-head > div:last-child { border-right: 0; }

.vb-panel-body {
  max-height: 280px;
  overflow-y: auto;
}

/* 车型行 */
.vb-model-row {
  display: grid;
  grid-template-columns: 1fr 200px;
  border-bottom: 1px solid #EEF0F2;
  cursor: pointer;
  font-size: 13px;
  color: #333;
}
.vb-model-row:hover { background: #F5F9FD; }
.vb-model-row.active { background: #EAF2FB; }
.vb-model-row > div {
  padding: 7px 12px;
}
.vb-expander {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: #666;
  font-size: 12px;
  margin-right: 6px;
  transition: transform .15s;
}
.vb-model-row.active .vb-expander { transform: rotate(90deg); }
.vb-count {
  color: #888;
  font-size: 12px;
  margin-left: 4px;
}
.vb-col-years { color: #666; font-size: 12px; }

/* 版本行 */
.vb-version-row {
  display: grid;
  grid-template-columns: 1fr 120px 110px 80px 60px 70px 100px;
  border-bottom: 1px solid #F2F4F6;
  font-size: 12px;
  color: #333;
}
.vb-version-row:hover { background: #FAFBFD; }
.vb-version-row > div {
  padding: 6px 12px;
}
.vb-wrench {
  color: #888;
  margin-right: 4px;
}

/* 右侧品牌信息面板 */
.vb-side {
  border: 1px solid #C9D0D8;
  background: #fff;
}
.vb-side-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: linear-gradient(180deg, #E8ECF0 0%, #D6DEE6 100%);
  border-bottom: 1px solid #C9D0D8;
  font-size: 12px;
  font-weight: bold;
  color: #333;
}
.vb-side-head > div {
  padding: 7px 12px;
  border-right: 1px solid #C9D0D8;
}
.vb-side-head > div:last-child { border-right: 0; }

.vb-side-body {
  padding: 24px 12px;
  text-align: center;
}
.vb-side-logo {
  max-width: 120px;
  height: auto;
  margin: 0 auto 12px;
  display: block;
}
.vb-side-name {
  font-size: 14px;
  font-weight: bold;
  color: #333;
}

@media (max-width: 900px) {
  .vb-layout { grid-template-columns: 1fr; }
  .vb-panel-head--versions,
  .vb-version-row { grid-template-columns: 1fr 100px 90px; }
  .vb-panel-head--versions > div:nth-child(n+4),
  .vb-version-row > div:nth-child(n+4) { display: none; }
}

/* ===== 品牌页 tab 视图 ===== */
.vb-view[hidden] { display: none; }

/* 筛选栏 */
.vb-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  flex-wrap: wrap;
}
.vb-filter-sel,
.vb-filter-input {
  height: 28px;
  border: 1px solid #B8BFC7;
  background: #fff;
  padding: 0 8px;
  font-size: 12px;
  color: #333;
  font-family: inherit;
  outline: none;
}
.vb-filter-sel { min-width: 160px; }
.vb-filter-input { width: 160px; }
.vb-filter-input--wide { width: 220px; }
.vb-filter-sel:focus,
.vb-filter-input:focus { border-color: #0E4C92; }

.vb-search-btn {
  height: 28px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid #B8BFC7;
  font-size: 12px;
  color: #333;
  cursor: pointer;
  font-family: inherit;
}
.vb-search-btn:hover { background: #F0F0F0; }

.vb-section-label {
  font-size: 12px;
  font-weight: bold;
  color: #666;
  margin: 12px 0 8px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* Engine 视图表头 */
.vb-panel-head--engine,
.vb-engine-row {
  display: grid;
  grid-template-columns: 1fr 90px 90px 90px 100px;
}
.vb-panel-head--engine > div { padding: 7px 12px; border-right: 1px solid #C9D0D8; }
.vb-panel-head--engine > div:last-child { border-right: 0; }

.vb-engine-row {
  border-bottom: 1px solid #EEF0F2;
  font-size: 12px;
  color: #333;
}
.vb-engine-row:hover { background: #F5F9FD; }
.vb-engine-row > div { padding: 6px 12px; }

/* Type 视图（两列结构） */
.vb-panel-head--type,
.vb-type-row {
  display: grid;
  grid-template-columns: 1fr 120px 80px 80px 80px 1fr;
}
.vb-panel-head--type > div { padding: 7px 12px; border-right: 1px solid #C9D0D8; }
.vb-panel-head--type > div:last-child { border-right: 0; }

.vb-type-row {
  border-bottom: 1px solid #EEF0F2;
  font-size: 12px;
  color: #333;
}
.vb-type-row:hover { background: #F5F9FD; }
.vb-type-row > div { padding: 6px 12px; }

/* Type Description 视图 */
.vb-panel-head--type-desc,
.vb-type-desc-row {
  display: grid;
  grid-template-columns: 2fr 140px 120px 100px 100px;
}
.vb-panel-head--type-desc > div { padding: 7px 12px; border-right: 1px solid #C9D0D8; }
.vb-panel-head--type-desc > div:last-child { border-right: 0; }

.vb-type-desc-row {
  border-bottom: 1px solid #EEF0F2;
  font-size: 12px;
  color: #333;
}
.vb-type-desc-row:hover { background: #F5F9FD; }
.vb-type-desc-row > div { padding: 6px 12px; }

@media (max-width: 900px) {
  .vb-panel-head--engine,
  .vb-engine-row { grid-template-columns: 1fr 70px 70px; }
  .vb-panel-head--engine > div:nth-child(n+4),
  .vb-engine-row > div:nth-child(n+4) { display: none; }

  .vb-panel-head--type,
  .vb-type-row { grid-template-columns: 1fr 100px 70px; }
  .vb-panel-head--type > div:nth-child(n+4),
  .vb-type-row > div:nth-child(n+4) { display: none; }

  .vb-panel-head--type-desc,
  .vb-type-desc-row { grid-template-columns: 1fr 90px 90px; }
  .vb-panel-head--type-desc > div:nth-child(n+4),
  .vb-type-desc-row > div:nth-child(n+4) { display: none; }
}

/* ===== SearchRecord 历史表 ===== */
.sr-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: #333;
  margin-top: 8px;
}
.sr-history-table thead th {
  background: #E8ECF0;
  color: #333;
  font-weight: bold;
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid #D9DEE4;
  white-space: nowrap;
}
.sr-history-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #EEF0F2;
}
.sr-history-table tr:hover td {
  background: #FAFBFD;
}
.sr-history-table td:first-child {
  font-family: Consolas, Monaco, monospace;
}

.sr-history-empty {
  padding: 40px 20px;
  text-align: center;
  color: #888;
  background: #F9FAFB;
  border: 1px dashed #D9DEE4;
  font-size: 13px;
}
.sr-history-empty strong {
  color: #333;
}

/* ===== 图片灯箱 ===== */
.pd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pdLbFadeIn .18s ease;
}
.pd-lightbox[hidden] { display: none; }

@keyframes pdLbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.pd-lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

.pd-lightbox-content {
  position: relative;
  background: #fff;
  width:  min(90vw, 900px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 48px rgba(0,0,0,.3);
  z-index: 1;
  animation: pdLbZoomIn .2s ease;
}

@keyframes pdLbZoomIn {
  from { transform: scale(.95); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.pd-lightbox-imgwrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 40px;
  background: #fff;
}
.pd-lightbox-imgwrap img {
  max-width: 100%;
  max-height: calc(90vh - 120px);
  object-fit: contain;
  display: block;
}

.pd-lightbox-close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #444;
  color: #fff;
  border: 3px solid #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.pd-lightbox-close:hover {
  background: #000;
}

.pd-lightbox-footer {
  text-align: center;
  padding: 12px 20px;
  border-top: 1px solid #eee;
  color: #333;
  font-size: 14px;
  font-family: Consolas, Monaco, monospace;
}

@media (max-width: 600px) {
  .pd-lightbox-content { width: 95vw; }
  .pd-lightbox-imgwrap { padding: 20px; }
  .pd-lightbox-close { top: -14px; right: -14px; width: 30px; height: 30px; font-size: 16px; }
}
