/* ============================================
   ===== 知产查询页 · 整屏左中右布局（2026-10-21）=====
   一个整体区域：左侧菜单｜中查询窗口｜右特点说明
   三栏之间仅用竖线分隔，不使用卡片样式
   ============================================ */

.ipq-hero {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 110px 0 40px;
}

.ipq-hero .container {
  width: 100%;
  text-align: left;
}

.ipq-wrap {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
  padding: 26px 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.56));
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

/* ---------- 左：查询菜单（无卡片背景，横线分隔） ---------- */
.ipq-nav {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0 24px 0 8px;
  border-right: 1px solid rgba(79, 70, 229, 0.16);
}

.ipq-nav-title {
  padding: 0 4px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.ipq-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 4px 13px 12px;
  border: 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0;
  background: none;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}

.ipq-nav-item:hover {
  background: none;
}

.ipq-nav-ico {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #94A3B8;
  transition: color 0.2s ease;
}

.ipq-nav-txt {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.ipq-nav-txt b {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.ipq-nav-txt i {
  font-style: normal;
  font-size: 0.68rem;
  line-height: 1.4;
  color: var(--text-muted);
  white-space: nowrap;
}

.ipq-nav-arrow {
  margin-left: auto;
  font-size: 1.05rem;
  line-height: 1;
  color: #CBD5E1;
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.ipq-nav-item:hover .ipq-nav-ico,
.ipq-nav-item:hover .ipq-nav-txt b {
  color: #4F46E5;
}

.ipq-nav-item.active .ipq-nav-ico,
.ipq-nav-item.active .ipq-nav-arrow {
  color: #4F46E5;
}

.ipq-nav-item.active .ipq-nav-txt b {
  color: #4F46E5;
  font-weight: 700;
}

.ipq-nav-item.active .ipq-nav-arrow {
  opacity: 1;
  transform: translateX(0);
}

.ipq-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  bottom: 13px;
  width: 2px;
  border-radius: 2px;
  background: var(--gradient-1);
}

/* ---------- 中：上 2/3 查询区，下 1/3 说明区 ---------- */
.ipq-main {
  display: grid;
  grid-template-rows: minmax(0, 2fr) minmax(0, 1fr);
  min-width: 0;
  padding: 0 0 0 32px;
}

/* 桌面端固定整卡与说明区高度：
   切换查询类型时下方说明文字行数变化，不再影响上方查询区的位置 */
@media (min-width: 769px) {
  .ipq-wrap {
    height: clamp(580px, calc(100vh - 150px), 780px);
  }

  .ipq-main {
    grid-template-rows: minmax(0, 1fr) 208px;
  }

  .ipq-side {
    overflow: hidden;
  }
}

.ipq-panel {
  display: none;
  width: 75%;
  min-width: 0;
  margin: 0 auto;
}

.ipq-panel.active {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 41px;
  animation: ipqFadeIn 0.32s ease both;
}

@keyframes ipqFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 查商标：子选项卡（查商标 / 查风险 / 查分类 / 查转让 / 查代理） */
.ipq-subtabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.ipq-subtab {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 5px 18px;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: color 0.2s ease;
}

.ipq-subtab + .ipq-subtab::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 14px;
  border-radius: 1px;
  background: rgba(15, 23, 42, 0.16);
  transform: translateY(-50%);
}

.ipq-subtab:first-child {
  padding-left: 0;
}

.ipq-subtab:last-child {
  padding-right: 0;
}

.ipq-subtab:hover {
  color: #4F46E5;
}

.ipq-subtab.active {
  color: #4F46E5;
  font-weight: 700;
}

.ipq-subtab.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  transform: translateX(-50%);
  background: var(--gradient-1);
}

.ipq-subtab .hs-tab-ai {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 16px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 50px;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  line-height: 1;
  color: #fff;
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  box-shadow: 0 1px 4px rgba(79, 70, 229, 0.35);
}


.ipq-subpanel {
  display: none;
}

.ipq-subpanel.active {
  display: block;
  animation: ipqFadeIn 0.28s ease both;
}

/* 查商标：复用首页查询区样式 */
.ipq-tm-search {
  position: relative;
  margin-top: 16px;
}

.ipq-tm-search .hs-box {
  width: 100%;
}

/* 查风险：分类智能推荐下拉（复用首页分类选择器） */
.ipq-tm-search .hsc-grid.nice {
  max-height: 232px;
}

/* 查风险：查询框下方卖点文字（左中右三栏，竖线区隔） */
.ipq-risk-feats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 0;
  margin-top: 120px;
}

.ipq-risk-feat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 2px 20px;
  border: 0;
  background: none;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-primary);
}

.ipq-risk-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

/* ≥1200px：三栏内第二行文字保持单行显示 */
@media (min-width: 1200px) {
  .ipq-risk-feat {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 0.8rem;
  }

  .ipq-risk-txt {
    white-space: nowrap;
  }
}

.ipq-risk-feat b {
  font-weight: 800;
  background: linear-gradient(135deg, #4F46E5, #06B6D4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ipq-risk-ico {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--gradient-1);
  color: #fff;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.28);
}

.ipq-risk-ico svg {
  width: 12px;
  height: 12px;
}

.ipq-cat-native {
  height: 38px;
  max-width: 132px;
  padding: 0 12px;
  border: 1px solid rgba(79, 70, 229, 0.18);
  border-radius: 40px;
  background: rgba(79, 70, 229, 0.06);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  flex-shrink: 0;
}

.ipq-cat-native:focus {
  border-color: rgba(79, 70, 229, 0.45);
}

.ipq-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
}

.ipq-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.ipq-field > span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}

.ipq-field select,
.ipq-field input {
  height: 44px;
  padding: 0 12px;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  background: #F8FAFC;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ipq-field select:focus,
.ipq-field input:focus {
  border-color: #4F46E5;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.ipq-field input::placeholder {
  color: #94A3B8;
}

.ipq-field-sm {
  flex: 0 0 112px;
}

.ipq-field-grow {
  flex: 1 1 170px;
}

.ipq-field-grow input {
  width: 100%;
}

.ipq-submit {
  height: 44px;
  padding: 0 24px;
  border: none;
  border-radius: 10px;
  background: var(--gradient-1);
  color: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(79, 70, 229, 0.26);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ipq-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(79, 70, 229, 0.34);
}

/* ---------- 下：查询特点与数据说明 ---------- */
.ipq-side {
  min-width: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(79, 70, 229, 0.16);
}

.ipq-side-panel {
  display: none;
}

.ipq-side-panel.active {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 16px 48px;
  align-items: start;
  animation: ipqFadeIn 0.32s ease both;
}

.ipq-side-panel h3 {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-primary);
}

.ipq-side-desc {
  margin-top: 6px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.ipq-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ipq-stats > div {
  padding: 2px 12px;
  border-left: 1px solid rgba(79, 70, 229, 0.14);
}

.ipq-stats > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.ipq-stats b {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
  color: #4F46E5;
}

.ipq-stats span {
  display: block;
  margin-top: 2px;
  font-size: 0.64rem;
  color: var(--text-muted);
}

.ipq-feats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 12px;
}

.ipq-side-info > .ipq-feats:first-child {
  margin-top: 0;
}

.ipq-feats li {
  position: relative;
  padding-left: 16px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.ipq-feats li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-1);
}

.ipq-side-tip {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(79, 70, 229, 0.16);
  font-size: 0.7rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.ipq-side-foot {
  margin-top: 4px;
  font-size: 0.66rem;
  line-height: 1.6;
  color: #94A3B8;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1279px) {
  .ipq-subtab {
    padding: 5px 14px;
    font-size: 0.82rem;
  }
}

@media (max-width: 1199px) {
  .ipq-wrap {
    grid-template-columns: 220px minmax(0, 1fr);
    padding: 24px 22px;
  }

  .ipq-nav {
    padding-right: 20px;
  }

  .ipq-main {
    padding: 0 0 0 28px;
  }
}

@media (max-width: 992px) {
  .ipq-wrap {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .ipq-main {
    padding: 0 0 0 20px;
  }
}

@media (max-width: 768px) {
  .ipq-hero {
    align-items: flex-start;
    padding: 92px 0 32px;
  }

  .ipq-wrap {
    grid-template-columns: 1fr;
    padding: 18px 16px;
  }

  .ipq-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(79, 70, 229, 0.16);
  }

  .ipq-nav-title {
    grid-column: 1 / -1;
    padding: 0 0 10px;
  }

  .ipq-nav-item {
    padding: 11px 10px;
  }

  .ipq-nav-item:nth-of-type(odd) {
    border-right: 1px solid rgba(15, 23, 42, 0.08);
  }

  .ipq-nav-txt i,
  .ipq-nav-arrow {
    display: none;
  }

  .ipq-main {
    grid-template-rows: auto auto;
    padding: 22px 0 0;
  }

  .ipq-panel {
    width: 100%;
  }

  .ipq-subtabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    margin-left: 0;
    scrollbar-width: none;
  }

  .ipq-subtabs::-webkit-scrollbar {
    display: none;
  }

  .ipq-subtab {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .ipq-side {
    padding-top: 18px;
  }

  .ipq-side-panel.active {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .ipq-form {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .ipq-field-sm {
    flex: none;
  }

  .ipq-submit {
    width: 100%;
  }

  .ipq-risk-feats {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 120px;
  }

  .ipq-risk-feat {
    justify-content: flex-start;
    padding: 8px 0;
    font-size: 0.78rem;
  }

  .ipq-risk-feat + .ipq-risk-feat {
    border-left: 0;
    border-top: 1px solid rgba(79, 70, 229, 0.16);
  }
}

/* ============================================
   ===== 查询类型 / 分类默认按钮：去掉卡片背景（2026-10-21）=====
   仅保留文字与箭头，作为搜索框内的纯文本入口
   ============================================ */
.ipq-wrap .hs-cat,
.ipq-wrap .hs-type-btn {
  background: none;
  border-color: transparent;
}

.ipq-wrap .hs-cat:hover,
.ipq-wrap .hs-cat.open,
.ipq-wrap .hs-type-btn:hover,
.ipq-wrap .hs-type.open .hs-type-btn {
  background: none;
  border-color: transparent;
  color: #4F46E5;
}