/* 龙吟科技 PC 门户 — 对照设计图 */
:root {
  --portal-orange: #FF7A1A;
  --portal-orange-dark: #e66a10;
  --portal-orange-soft: #FFF3E8;
  --portal-blue: #2F6BFF;
  --portal-quote: #3B82F6;
  --portal-link: #2B6DE5;
  --portal-red: #E53935;
  --portal-footer: #2C2C2C;
  --portal-head: #F5F6F8;
  --portal-text: #333;
  --portal-muted: #999;
  --portal-border: #E6E6E6;
  --portal-green: #16A34A;
  --portal-purple: #8B5CF6;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--portal-text); background: #fff;
  overflow-x: hidden; /* 防止偶发撑出横向滚动条 */
}
a { color: var(--portal-link); text-decoration: none; }
a:hover { color: var(--portal-orange); }
.portal-wrap { background: #fff; width: 100%; overflow-x: hidden; }
/* 主内容区：设计稿 1920 画布，矩形8 宽 1600，左右各留 160 */
.portal-container {
  width: 1600px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

/* ===== Header（蓝湖：矩形1 顶栏） ===== */
.portal-header {
  position: sticky; top: 0; z-index: 100;
  width: 100%;
  height: 80px;
  background: linear-gradient(180deg, #FFE4D0 0%, #FFFFFF 100%);
  box-shadow: 0px 3px 6px 1px rgba(237, 109, 45, 0.05);
  border-radius: 0;
  border-bottom: none;
}
.portal-header-inner {
  height: 80px; display: flex; align-items: center;
}
.portal-logo {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  width: 158.58px; height: 37.97px; opacity: 1;
}
.portal-logo img {
  width: 158.58px; height: 37.97px;
  display: block; object-fit: contain;
}
.portal-logo-text { font-size: 18px; font-weight: 700; color: #222; line-height: 1; white-space: nowrap; }
.portal-logo-mark {
  width: 38px; height: 38px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, #FF9A3C, var(--portal-orange));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px;
}
.portal-nav {
  display: flex; gap: 36px; align-items: center;
  margin-left: 56px; flex: 1;
}
.portal-nav a {
  position: relative;
  height: 22px; line-height: 22px; padding: 0;
  font-family: "Alibaba PuHuiTi 2.0", "Alibaba PuHuiTi 20", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: normal; font-size: 16px; font-style: normal;
  color: #333333; text-align: left; text-transform: none;
}
.portal-nav a.active { color: #333333; }
.portal-nav a.active::after {
  content: "";
  position: absolute; left: 50%; bottom: -29px;
  transform: translateX(-50%);
  width: 32px; height: 4px;
  background: linear-gradient(99deg, #F3B541 0%, #EC702D 100%);
  border-radius: 100px;
}
.portal-nav a:hover { color: var(--portal-orange); }
.portal-header-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.portal-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 22px; border-radius: 18px; border: none;
  cursor: pointer; font-size: 14px; transition: .15s; background: #fff;
}
.portal-btn-orange {
  background: linear-gradient(90deg, #F3B541 0%, #EC702D 100%);
  color: #fff; box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.06);
  border-radius: 10px;
}
.portal-btn-orange:hover { filter: brightness(.96); color: #fff; }
#btn-open-login {
  width: 100px; height: 44px; padding: 0;
  background: linear-gradient(90deg, #F3B541 0%, #EC702D 100%);
  box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.06);
  border-radius: 10px;
}
.portal-btn-outline {
  background: #fff; color: var(--portal-orange); border: 1px solid var(--portal-orange);
}
.portal-btn-ghost { background: transparent; color: #666; border: 1px solid #ddd; }
.portal-btn-text {
  background: transparent; color: var(--portal-orange); border: none; padding: 0 8px; height: auto;
  font-size: 15px; font-weight: 600;
}
.portal-btn-lg { height: 42px; padding: 0 22px; border-radius: 21px; font-size: 15px; }
.portal-user-link { font-size: 14px; color: #555; }

/* ===== Hero ===== */
.portal-hero-wrap { background: #fff; width: 100%; }
.portal-hero {
  padding: 36px 0 18px; text-align: center; background: #fff;
}
.portal-hero-title {
  margin: 0 auto;
  width: 787px; max-width: 100%; height: 71px;
  font-family: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 900; font-size: 46px; line-height: 71px;
  color: #333333; text-align: center; letter-spacing: 0;
  white-space: nowrap;
}
.portal-hero-title .portal-hero-accent {
  background: linear-gradient(90deg, #F3B541 0%, #EC702D 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.portal-hero-sub {
  margin: 10px auto 22px;
  width: 200px; max-width: 100%; height: 29px;
  font-family: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: bold; font-size: 20px; font-style: normal;
  color: #ED6D2D; line-height: 29px;
  letter-spacing: 0; text-align: center; text-transform: none;
}
.portal-search-row {
  display: flex; align-items: center; justify-content: flex-start;
  gap: 16px; width: 100%; margin: 0;
}
.portal-search {
  display: flex; width: 680px; max-width: 100%; flex: none; height: 48px;
  border: 1px solid #EC702D; border-radius: 10px; overflow: visible; background: #fff;
  box-shadow: none; position: relative; z-index: 5;
}
.portal-search-label {
  width: 108px; display: flex; align-items: center; justify-content: center; gap: 4px;
  background: #FFF8F2; color: #666; font-size: 14px; border-right: 1px solid #FFE0C2; flex-shrink: 0;
}
.portal-search-type {
  position: relative;
  width: 118px; flex-shrink: 0;
  border-right: 1px solid #FFE0C2;
  background: #FFF8F2;
  border-radius: 10px 0 0 10px;
}
.portal-search-type-btn {
  width: 100%; height: 48px; border: none; background: transparent;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  color: #666; font-size: 14px; cursor: pointer; padding: 0 8px;
}
.portal-search-type-btn .fa { font-size: 12px; color: #999; transition: transform .2s; }
.portal-search-type.open .portal-search-type-btn .fa { transform: rotate(180deg); }
.portal-search-type-text {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 78px;
}
.portal-search-type-menu {
  display: none;
  position: absolute; left: -1px; top: calc(100% + 4px);
  min-width: 148px; margin: 0; padding: 6px 0;
  list-style: none; background: #fff;
  border: 1px solid #F0D9C0; border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  z-index: 30;
}
.portal-search-type.open .portal-search-type-menu { display: block; }
.portal-search-type-menu li {
  padding: 10px 14px; font-size: 14px; color: #555; cursor: pointer;
  white-space: nowrap;
}
.portal-search-type-menu li:hover,
.portal-search-type-menu li.active {
  background: #FFF3E8; color: #EC702D;
}
.portal-search input {
  flex: 1; border: none; outline: none; padding: 0 14px; font-size: 15px; height: 100%;
  min-width: 0; border-radius: 0;
}
.portal-search-btn {
  width: 110px; height: 100%; border: none;
  background: linear-gradient(99deg, #F3B541 0%, #EC702D 100%);
  color: #fff; font-size: 15px; cursor: pointer; flex-shrink: 0; font-weight: 600;
  border-radius: 0 9px 9px 0;
}
.portal-search-btn:hover { filter: brightness(.96); }
/* 搜索栏右侧：外圈 + 等大按钮 */
.portal-search-actions {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 4px; box-sizing: border-box;
  background: #FFFFFF;
  box-shadow: 0px 0px 10px 1px rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  flex-shrink: 0; gap: 8px;
}
.portal-search-action-buy,
.portal-search-action-sell {
  display: inline-flex; align-items: center; justify-content: center;
  width: 110px; height: 40px; padding: 0; border: none; border-radius: 8px;
  font-family: "Alibaba PuHuiTi 2.0", "Alibaba PuHuiTi 20", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: bold; font-size: 16px; line-height: 1; cursor: pointer;
  white-space: nowrap; box-sizing: border-box;
}
.portal-search-action-buy {
  background: linear-gradient(90deg, #F3B541 0%, #EC702D 100%);
  color: #fff;
}
.portal-search-action-buy:hover { filter: brightness(.96); color: #fff; }
.portal-search-action-sell {
  background: transparent; color: #EC702D; border: none;
}
.portal-search-action-sell:hover { background: transparent; color: #d45f1f; }

/* ===== Filters（对照图二） ===== */
.portal-filters {
  margin: 0 auto; padding: 20px 24px 18px;
  background: #FFFFFF;
  border: none; border-radius: 8px; width: 100%; box-sizing: border-box;
}
.portal-filter-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 14px;
}
.portal-filter-row:last-child { margin-bottom: 0; }
.portal-filter-label {
  width: 110px; flex-shrink: 0; text-align: left;
  font-family: "Alibaba PuHuiTi 2.0", "Alibaba PuHuiTi 20", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 700; font-size: 14px; color: #333333; line-height: 28px;
}
.portal-filter-label-inline { width: auto; margin-left: 28px; white-space: nowrap; }
.portal-filter-opts { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; flex: 1; }
.portal-chip {
  height: 28px; padding: 0 12px; border-radius: 4px; border: none;
  background: transparent; cursor: pointer;
  font-family: "Alibaba PuHuiTi 2.0", "Alibaba PuHuiTi 20", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: normal; font-size: 14px; font-style: normal;
  color: #666666; line-height: 28px; text-align: center; text-transform: none;
}
.portal-chip.active {
  background: #EC702D;
  color: #FFFFFF;
}
.portal-chip:hover:not(.active) {
  color: #EC702D; background: transparent;
}
.portal-range { flex: 0 1 auto; gap: 10px; }
.portal-filter-row-range .portal-filter-opts { flex: 0 1 auto; }
.portal-range-side {
  font-size: 14px; color: #666666; white-space: nowrap; line-height: 28px;
}
.portal-range-box {
  display: inline-flex; align-items: center;
  height: 28px; min-width: 162px; padding: 0 10px;
  border: 1px solid #DDDDDD; border-radius: 5px; background: #fff;
  box-sizing: border-box;
}
.portal-range-box input {
  width: 56px; height: 100%; border: none; outline: none; padding: 0;
  font-size: 14px; color: #666666; background: transparent; text-align: center;
  font-family: "Alibaba PuHuiTi 2.0", "Alibaba PuHuiTi 20", "PingFang SC", "Microsoft YaHei", sans-serif;
  -moz-appearance: textfield;
}
.portal-range-box input::-webkit-outer-spin-button,
.portal-range-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.portal-range-box input::placeholder { color: #999999; }
.portal-range-sep { margin: 0 4px; color: #999; flex-shrink: 0; }
.portal-filter-actions {
  margin-left: auto; display: flex; align-items: center; gap: 16px; flex-shrink: 0;
}
.portal-btn-sm {
  height: 28px; padding: 0 16px; border-radius: 5px; font-size: 14px; cursor: pointer;
  border: 1px solid #DDDDDD; background: #fff; color: #666;
  font-family: "Alibaba PuHuiTi 2.0", "Alibaba PuHuiTi 20", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.portal-btn-sm.primary {
  width: 62px; padding: 0; border: none;
  background: linear-gradient(90deg, #F3B541 0%, #EC7D2D 100%);
  color: #fff;
}
.portal-btn-sm.primary:hover { filter: brightness(.96); color: #fff; }
.portal-btn-reset {
  height: 28px; padding: 0; border: none; background: transparent;
  font-size: 14px; color: #EC702D; cursor: pointer; line-height: 28px;
  font-family: "Alibaba PuHuiTi 2.0", "Alibaba PuHuiTi 20", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.portal-btn-reset:hover { color: #d45f1f; }

/* ===== Banners（蒙版 790×120） ===== */
.portal-banners {
  display: flex; gap: 20px; margin: 16px 0 12px;
}
.portal-banner {
  flex: 1; width: 790px; max-width: calc((100% - 20px) / 2);
  height: 120px; border-radius: 8px; overflow: hidden;
  background: #e8f0ff center/cover no-repeat;
}
.portal-banner-left { background-image: url('../img/portal/banner-left@2x.png'); }
.portal-banner-right { background-image: url('../img/portal/banner-right@2x.png'); }

/* ===== Toolbar ===== */
.portal-toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: nowrap;
  margin: 4px 0 10px; width: 100%; box-sizing: border-box;
}
.portal-action {
  height: 32px; padding: 0 14px; border-radius: 5px; border: none;
  color: #fff; font-size: 13px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.portal-action.green { background: #22C55E; }
.portal-action.blue { background: #3B82F6; }
.portal-action.red { background: #EF4444; }
.portal-action.orange { background: #EC702D; }
.portal-action.purple { background: #A855F7; }
.portal-action:hover { filter: brightness(.96); }
.portal-toolbar-right {
  margin-left: 16px; display: flex; gap: 20px; align-items: center; flex-shrink: 0;
}
.portal-sort-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: #333333; font-size: 14px; line-height: 20px; text-decoration: none;
  user-select: none; white-space: nowrap; cursor: pointer;
}
.portal-sort-link:hover { color: #EC702D; }
.portal-sort-link.active { color: #EC702D; }
.portal-sort-text { line-height: 1; }
/* 设计稿：箭头在文字左侧；未选中双三角，选中仅显示升/降单三角 */
.portal-sort-icon {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 10px; height: 14px; gap: 2px; flex-shrink: 0; position: relative;
}
.portal-sort-icon::before,
.portal-sort-icon::after {
  content: ""; display: block; width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}
.portal-sort-icon::before {
  border-bottom: 5px solid #C0C4CC;
}
.portal-sort-icon::after {
  border-top: 5px solid #C0C4CC;
}
.portal-sort-link:hover .portal-sort-icon::before { border-bottom-color: #EC702D; }
.portal-sort-link:hover .portal-sort-icon::after { border-top-color: #EC702D; }
/* 升序：只亮上三角 */
.portal-sort-link.active.asc .portal-sort-icon::before {
  border-bottom-color: #EC702D;
}
.portal-sort-link.active.asc .portal-sort-icon::after {
  display: none;
}
/* 降序：只亮下三角 */
.portal-sort-link.active.desc .portal-sort-icon::after {
  border-top-color: #EC702D;
}
.portal-sort-link.active.desc .portal-sort-icon::before {
  display: none;
}

/* ===== Table（对照图一单元格布局） ===== */
.portal-table-wrap {
  border: 1px solid var(--portal-border); border-radius: 4px; overflow: auto;
  max-height: 620px; background: #fff;
}
.portal-table {
  width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; min-width: 1100px;
  background: #fff;
}
.portal-table thead th {
  position: sticky; top: 0; z-index: 2;
  background: #F3F4F6; color: #555; font-weight: 600;
  padding: 12px 8px; text-align: center; white-space: nowrap;
  border-bottom: 1px solid var(--portal-border);
}
.portal-table thead th.col-patent { text-align: left; }
.portal-table tbody td {
  padding: 14px 8px; border-bottom: 1px solid #EEEEEE; vertical-align: middle; line-height: 1.5;
  background: #fff; text-align: center; color: #333;
}
.portal-table tbody tr:hover td { background: #FAFAFA; }
.col-check { width: 36px; }
.col-no { width: 48px; }
.col-patent { width: 280px; text-align: left !important; }
.col-field { width: 120px; }
.col-year { width: 70px; }
.col-fee { width: 110px; }
.col-price { width: 80px; }
.col-gq { width: 88px; }
.col-status { width: 140px; }
.col-remark { width: 90px; }
.col-fav { width: 50px; }
.col-ops { width: 140px; }

/* 专利列：类型标签 + 专利号同行，名称在下一行 */
.portal-patent-head {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.portal-type-tag {
  display: inline-block; padding: 2px 8px; border-radius: 3px;
  background: #1688f1; color: #fff; font-size: 12px; font-weight: 600; line-height: 1.4;
  flex-shrink: 0;
}
.portal-type-tag.type-utility { background: #2563eb; }
.portal-type-tag.type-invention { background: #EC702D; }
.portal-type-tag.type-design { background: #8b5cf6; }
.portal-patent-num {
  color: #16A34A; font-size: 13px; line-height: 1.4; word-break: break-all;
}
.portal-patent-name {
  color: var(--portal-link); margin-top: 6px; line-height: 1.45;
  font-weight: 600; cursor: pointer; text-align: left;
}
.portal-field-cell {
  white-space: pre-line; text-align: center; color: #333; font-size: 12px; line-height: 1.5;
}
.portal-fee-cell {
  color: var(--portal-link); font-size: 12px; line-height: 1.55;
  white-space: pre-line; word-break: break-all; text-align: center;
}
.portal-price {
  color: #E53935 !important;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
}
.portal-status-booked .portal-status-main { color: #333; font-weight: 600; }
.portal-status-booked .portal-status-extra {
  display: block; margin-top: 4px; color: var(--portal-red); font-weight: 500; font-size: 12px; line-height: 1.4;
}
.portal-status-sale .portal-status-main { color: var(--portal-green); font-weight: 600; }
.portal-fav { cursor: pointer; font-size: 18px; color: #ccc; border: none; background: none; padding: 0; }
.portal-fav.on { color: #FF4D4F; }
.col-ops { text-align: center; vertical-align: middle !important; }
.portal-ops {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 12px; white-space: nowrap; line-height: 1;
}
.portal-ops a {
  display: inline-block; line-height: 20px; vertical-align: middle;
  text-decoration: none; white-space: nowrap;
}
.portal-ops .btn-book { color: #16A34A; font-weight: 600; }
.portal-ops .btn-cs { color: #2B6DE5; font-weight: 500; }
.portal-ops .btn-book:hover,
.portal-ops .btn-cs:hover { color: #EC702D; }

/* ===== Table foot：按钮+搜索 左，分页 右，同一行 ===== */
.portal-table-foot {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
  margin: 12px 0 20px;
  padding: 10px 0;
  width: 100%;
  box-sizing: border-box;
}
.portal-toolbar-bottom {
  margin: 0;
  width: auto;
  max-width: none;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  flex: 0 0 auto;
}
.portal-toolbar:not(.portal-toolbar-bottom) {
  flex-wrap: nowrap;
}
.portal-foot-search {
  display: flex; align-items: center; height: 32px;
  border: 1px solid #DDDDDD; border-radius: 4px; overflow: hidden;
  flex-shrink: 0; background: #fff; margin-left: 0;
}
.portal-foot-search input {
  border: none; outline: none; padding: 0 10px; width: 140px; height: 100%;
  font-size: 13px; color: #333333; background: transparent;
}
.portal-foot-search input::placeholder { color: #999999; opacity: 1; }
.portal-foot-search input::-webkit-input-placeholder { color: #999999; }
.portal-foot-search input::-moz-placeholder { color: #999999; opacity: 1; }
.portal-foot-search button {
  width: 36px; height: 100%; border: none; background: transparent;
  cursor: pointer; color: #EC702D; font-size: 14px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.portal-foot-search button:hover { color: #d45f1f; }
.portal-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
  width: auto;
  margin: 0 0 0 auto;
  font-size: 13px;
  color: #666;
  box-sizing: border-box;
  flex: 1 1 auto;
  min-width: 0;
}
.portal-pager #pager-info {
  color: #666; white-space: nowrap; flex-shrink: 0;
}
.portal-pager-btns {
  display: flex; gap: 4px; align-items: center; flex-wrap: nowrap; flex-shrink: 1;
}
.portal-pager-btns button {
  min-width: 28px; height: 28px; padding: 0 8px;
  border: none; background: #F0F0F0; border-radius: 4px;
  cursor: pointer; font-size: 12px; color: #666; line-height: 28px;
  box-sizing: border-box; flex-shrink: 0;
}
.portal-pager-btns button.page-num {
  min-width: 28px; padding: 0 6px;
}
.portal-pager-btns button.page-ellipsis {
  min-width: 22px; padding: 0 2px;
  background: transparent; cursor: default; color: #999;
  pointer-events: none;
}
.portal-pager-btns button.page-ellipsis:hover {
  background: transparent; color: #999;
}
.portal-pager-btns button.active {
  background: #EC702D; color: #fff; font-weight: 600;
}
.portal-pager-btns button:hover:not(:disabled):not(.active):not(.page-ellipsis) {
  background: #E6E6E6; color: #333;
}
.portal-pager-btns button:disabled { opacity: .45; cursor: not-allowed; }
.portal-pager-size {
  display: inline-flex; align-items: center; gap: 6px; color: #666; white-space: nowrap;
  flex-shrink: 0;
}
.portal-pager-size select {
  height: 28px; width: 56px; min-width: 56px; padding: 0 20px 0 6px;
  border: 1px solid #DDDDDD; border-radius: 4px; background-color: #fff;
  color: #333; font-size: 12px; cursor: pointer; box-sizing: border-box;
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23999' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 6px center;
}

/* ===== Quote（设计图：左侧标题+查看数据，右侧四卡；卡内文字左、图标右） ===== */
.portal-quote {
  display: flex; align-items: stretch; gap: 18px;
  background: #568EDE;
  border-radius: 6px; padding: 18px 20px; color: #fff; margin: 8px 0 24px;
  width: 100%; box-sizing: border-box; min-height: 110px;
}
.portal-quote-side {
  width: 130px; flex-shrink: 0; display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 12px; text-align: center;
}
.portal-quote-title {
  font-size: 20px; font-weight: 700; color: #FDE68A; letter-spacing: 1px; line-height: 1.3;
  text-align: center;
}
.portal-quote-btn {
  height: 28px; padding: 0 14px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.85); background: transparent;
  color: #fff; font-size: 12px; cursor: pointer;
  margin: 0 auto;
}
.portal-quote-btn:hover { background: rgba(255,255,255,.18); }
.portal-quote-grid {
  flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; min-width: 0;
}
.portal-quote-card {
  background: #fff; border-radius: 6px; padding: 12px 14px; color: #333;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0;
  box-shadow: none;
}
.portal-quote-card .meta {
  min-width: 0; flex: 1;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px;
}
.portal-quote-card .label {
  font-size: 14px; color: #333; white-space: nowrap; font-weight: 500;
}
.portal-quote-card .value {
  font-size: 18px; font-weight: 700; color: #E53935; line-height: 1.2; white-space: nowrap;
}
.portal-quote-card .unit {
  font-size: 13px; color: #333; font-weight: 400; margin-left: 0;
}
.portal-quote-card .ico {
  width: 44px; height: 44px; flex-shrink: 0; margin-left: auto;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #E5E7EB; border-radius: 4px; box-sizing: border-box;
  background: #fff; overflow: hidden;
}
.portal-quote-card .ico img {
  width: 100%; height: 100%; object-fit: contain; display: block;
}

/* ===== Promo + Footer（背景通栏，内容与主区同宽 1600） ===== */
.portal-promo {
  color: #fff; text-align: center;
  padding: 36px 0; width: 100%; box-sizing: border-box; min-height: 120px;
  background-color: #C62828;
  background-image: url('../img/portal/promo-bg.png');
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
  display: flex; align-items: center; justify-content: center;
}
.portal-promo-inner {
  width: 1600px; max-width: 100%; margin: 0 auto; padding: 0 16px; box-sizing: border-box;
  position: relative; z-index: 1;
}
.portal-promo-main { font-size: 22px; font-weight: 700; letter-spacing: 1px; }
.portal-promo-sub { margin-top: 8px; font-size: 13px; opacity: .92; }

.portal-footer {
  background: #2A2A2A; color: #ccc; padding: 40px 0 0; width: 100%; overflow: hidden;
}
.portal-footer-grid {
  display: flex; gap: 60px; align-items: flex-start; justify-content: space-between;
  padding-bottom: 32px;
  width: 1600px; max-width: 100%; margin: 0 auto; box-sizing: border-box;
}
.portal-footer-left {
  display: flex; flex-direction: column; align-items: flex-start; gap: 28px;
  flex: 1; min-width: 0;
}
.portal-footer-brand { width: auto; flex-shrink: 0; }
.portal-footer-logo {
  max-height: 44px; max-width: 200px; width: auto; height: auto;
  display: block; margin-bottom: 0; object-fit: contain;
  /* 图一为白字黑底，在深色页脚用 screen 去掉黑底 */
  mix-blend-mode: screen;
}
.portal-footer-brand-name { display: none; }
.portal-footer-nav {
  display: flex; gap: 72px; align-items: flex-start; flex-wrap: wrap;
}
.portal-footer-col { min-width: 100px; flex: 0 0 auto; }
.portal-footer-col h4 { color: #fff; margin: 0 0 14px; font-size: 15px; font-weight: 600; }
.portal-footer-col a { display: block; color: #aaa; font-size: 13px; margin-bottom: 9px; }
.portal-footer-col a:hover { color: #fff; }
.portal-footer-service { margin-left: 0; flex: 0 0 auto; }
.portal-footer-hours { margin: 0 0 12px; font-size: 12px; color: #999; line-height: 1.7; }
.portal-footer-qrs { display: flex; gap: 14px; }
.portal-footer-qr { text-align: center; font-size: 12px; color: #999; }
.portal-footer-qr img {
  width: 84px; height: 84px; background: #fff; border-radius: 4px;
  object-fit: cover; display: block; margin-bottom: 8px;
}
.portal-footer-links {
  border-top: 1px solid #3a3a3a; padding: 14px 0; font-size: 12px; color: #888; width: 100%;
}
.portal-footer-links .portal-container {
  width: 1600px; max-width: 100%; margin: 0 auto;
}
.portal-footer-links a { color: #888; margin-left: 16px; }
.portal-footer-links a:hover { color: #fff; }
.portal-footer-copy {
  padding: 14px 0 18px; font-size: 12px; color: #777; background: #222; width: 100%;
}
.portal-footer-copy-inner {
  width: 1600px; max-width: 100%; margin: 0 auto;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  box-sizing: border-box;
}
.portal-footer-copy a { color: #888; }

/* 窄屏时主内容/页脚统一左右内边距，保持对齐 */
@media (max-width: 1632px) {
  .portal-container,
  .portal-promo-inner,
  .portal-footer-grid,
  .portal-footer-links .portal-container,
  .portal-footer-copy-inner {
    padding-left: 16px; padding-right: 16px;
  }
}

/* ===== Modal ===== */
.portal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}
/* 覆盖 bootstrap .show{display:block!important}，保证弹窗居中 */
.portal-mask.show {
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.portal-modal {
  position: relative; background: #fff; border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,.2); max-height: 90vh; overflow: auto;
}
.portal-modal.portal-create,
.portal-modal.portal-cs {
  overflow: visible;
  max-height: calc(100vh - 40px);
}
.portal-modal-close {
  position: absolute; right: 12px; top: 10px; width: 28px; height: 28px;
  border: none; background: transparent; font-size: 22px; cursor: pointer; color: #999; z-index: 2;
}
.portal-login {
  width: 760px; display: flex; overflow: hidden; border-radius: 12px;
  background: #fff; min-height: 420px;
}
.portal-login-left {
  width: 340px; flex-shrink: 0;
  background: #fff;
  display: flex; align-items: stretch; justify-content: center;
  overflow: hidden;
}
.portal-login-left img {
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
}
.portal-login-right {
  flex: 1; padding: 36px 40px 28px; background: #fff;
  display: flex; flex-direction: column; justify-content: center;
}
.portal-login-right h3 {
  margin: 0 0 18px; font-size: 24px; text-align: center; color: #222; font-weight: 700;
}
.portal-login-tabs {
  display: flex; justify-content: center; gap: 28px; margin-bottom: 22px;
  border-bottom: 1px solid #e8eef5; padding-bottom: 10px;
}
.portal-login-tab {
  border: none; background: none; cursor: pointer; font-size: 14px; color: #888; padding: 0 2px 8px;
  position: relative;
}
.portal-login-tab.active { color: var(--portal-orange); font-weight: 600; }
.portal-login-tab.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -11px;
  height: 2px; background: var(--portal-orange); border-radius: 1px;
}
.portal-field { margin-bottom: 16px; position: relative; }
.portal-field input {
  width: 100%; height: 46px; border: 1px solid #e5e5e5; border-radius: 8px;
  padding: 0 14px 0 42px; font-size: 14px; outline: none; background: #fff;
}
.portal-field input:focus { border-color: var(--portal-orange); box-shadow: 0 0 0 3px rgba(255,122,26,.12); }
.portal-field .icon { position: absolute; left: 14px; top: 14px; color: #bbb; font-size: 16px; }
.portal-sms-btn {
  position: absolute; right: 10px; top: 9px; height: 28px; border: none;
  background: transparent; color: var(--portal-orange); cursor: pointer; font-size: 13px; font-weight: 600;
}
.portal-login-submit {
  width: 100%; height: 46px; border: none; border-radius: 23px;
  background: linear-gradient(90deg, #FF9A3C, var(--portal-orange));
  color: #fff; font-size: 16px; cursor: pointer; margin-top: 8px;
  box-shadow: 0 6px 16px rgba(255,122,26,.28);
}
.portal-login-submit:hover { filter: brightness(.97); }
.portal-login-tip { text-align: center; color: #aaa; font-size: 12px; margin: 14px 0 0; }
.portal-cs {
  width: 560px; max-width: calc(100vw - 48px);
  padding: 40px 36px 36px;
  background: linear-gradient(180deg, #FFEFD8 0%, #FFFFFF 100%);
  border-radius: 28px;
  position: relative;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  box-sizing: border-box;
}
.portal-cs-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.portal-cs-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.portal-cs h3 {
  margin: 0 0 18px;
  font-size: 26px;
  font-weight: 700;
  color: #222;
  letter-spacing: 0.5px;
  line-height: 1.3;
}
.portal-cs-info {
  font-size: 14px;
  color: #666;
  line-height: 2;
  margin-bottom: 28px;
}
.portal-cs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 180px;
  height: 44px;
  padding: 0 28px;
  border: none;
  border-radius: 22px;
  background: linear-gradient(90deg, #F3B541, #EC702D);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(236, 112, 45, 0.28);
}
.portal-cs-btn .fa { font-size: 18px; }
.portal-cs-btn:hover { filter: brightness(0.97); }
.portal-cs-qr {
  flex-shrink: 0;
  width: 188px;
  height: 188px;
  padding: 10px;
  box-sizing: border-box;
  background: #fff;
  border: 3px solid #EC702D;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.portal-cs-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
@media (max-width: 560px) {
  .portal-cs { padding: 28px 20px 24px; }
  .portal-cs-body { flex-direction: column; align-items: stretch; gap: 20px; }
  .portal-cs-left { align-items: center; text-align: center; }
  .portal-cs-qr { margin: 0 auto; }
}
.portal-create {
  width: 982px; height: 645px; max-width: calc(100vw - 40px); max-height: calc(100vh - 40px);
  padding: 28px 40px 24px;
  background: linear-gradient(180deg, #FFEFD8 0%, #FFFFFF 100%);
  border-radius: 20px;
  position: relative;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  box-sizing: border-box;
  display: flex; flex-direction: column;
  /* 关闭按钮在框外悬浮，不能裁剪 */
  overflow: visible;
}
.portal-create h3 {
  margin: 0 0 18px; font-size: 22px; text-align: center; color: #333; font-weight: 700;
  letter-spacing: 1px; flex-shrink: 0; padding: 0;
}
.portal-modal-close-out {
  position: absolute;
  right: -36px; top: -36px;
  width: 30px; height: 30px; padding: 0;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  background: transparent;
  color: #FFFFFF;
  box-shadow: none;
  line-height: 1;
  font-size: 20px;
  font-weight: 300;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 5;
}
.portal-modal-close-out:hover {
  color: #FFE4D0;
  border-color: #FFE4D0;
  background: rgba(255, 255, 255, 0.1);
}
.portal-create-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 12px;
  margin-bottom: 14px;
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
}
.portal-create-item {
  display: flex; align-items: center; gap: 6px;
  min-height: 40px; min-width: 0; max-width: 100%;
  padding: 0 10px;
  background: #FFF6EC;
  border: 1px solid #F5C08A;
  border-radius: 8px;
  box-sizing: border-box;
  overflow: hidden;
}
.portal-create-item label {
  display: inline-flex; align-items: center; margin: 0;
  font-size: 12px; color: #666; white-space: nowrap; flex: 0 0 auto; line-height: 1;
}
.portal-create-item label span { color: #E53935; margin-right: 2px; }
.portal-create-item input {
  flex: 1 1 0%;
  min-width: 0;
  width: 0;
  height: 38px; border: none; border-radius: 0;
  padding: 0; font-size: 13px; background: transparent; outline: none; color: #333;
  box-sizing: border-box;
}
.portal-create-item input::placeholder { color: #C0C4CC; }
.portal-create-item input:focus { box-shadow: none; border: none; }
.portal-create-item input[type="date"] {
  min-width: 0; max-width: 100%;
}
.portal-create-import {
  margin: 0 0 12px; font-size: 13px; color: #555;
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 0;
  flex-shrink: 0;
}
.portal-create-upload {
  color: #16A34A; cursor: pointer; font-weight: 600; margin: 0 8px;
}
.portal-create-upload:hover { color: #15803D; }
.portal-create-import a#btn-create-load {
  color: #E53935; font-weight: 600; text-decoration: none; margin-left: 4px;
}
.portal-create-import a#btn-create-load:hover { color: #C62828; }
.portal-create-table-wrap {
  flex: 1; min-height: 0; max-height: none; overflow: auto;
  border: none; border-radius: 8px;
  background: #FFFBF4;
  box-shadow: none;
}
.portal-create-actions {
  display: flex; gap: 20px; justify-content: center; margin-top: 18px; flex-shrink: 0;
}
.portal-create-table-wrap table { width: 100%; border-collapse: collapse; font-size: 12px; }
.portal-create-table-wrap th, .portal-create-table-wrap td {
  padding: 12px 10px; border-bottom: 1px solid #F5F0E8; text-align: left; vertical-align: middle;
}
.portal-create-table-wrap th {
  background: #FAFAFA; position: sticky; top: 0; color: #888; font-weight: 600; z-index: 1;
}
.portal-create-table-wrap td {
  background: #FFFBF4;
}
.portal-create-table-wrap tbody tr:last-child td { border-bottom: none; }
.portal-create-table-wrap .portal-type-tag {
  display: inline-block; padding: 1px 6px; margin-right: 6px;
  color: #fff; border-radius: 3px; font-size: 11px; line-height: 18px;
  vertical-align: middle;
}
.portal-create-table-wrap .portal-patent-num {
  display: inline; color: #16A34A; font-weight: 600; vertical-align: middle;
}
.portal-create-table-wrap .portal-patent-name {
  display: block; margin-top: 4px; color: #2B6DE5; line-height: 1.4;
}
.portal-create-table-wrap .c-cost { color: #2B6DE5; }
.portal-create-table-wrap .c-points { color: #E53935; font-weight: 600; }
.portal-create-btn {
  min-width: 132px; height: 42px; border-radius: 5px; font-size: 15px; cursor: pointer;
  font-weight: 600;
}
.portal-create-btn.ghost {
  background: #fff; color: #EC702D; border: 1px solid #EC702D;
}
.portal-create-btn.ghost:hover { background: rgba(236, 112, 45, 0.06); }
.portal-create-btn.primary {
  background: linear-gradient(90deg, #F3B541 0%, #EC702D 100%);
  color: #fff; border: none;
  box-shadow: 0 6px 16px rgba(236, 112, 45, 0.28);
}
.portal-create-btn.primary:hover { filter: brightness(.97); }

/* Member */
.portal-member { display: flex; gap: 24px; padding: 24px 0 40px; align-items: flex-start; }
.portal-side {
  width: 168px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 4px 0;
  flex-shrink: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.portal-side a {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 16px;
  color: #555;
  font-size: 15px;
  line-height: 1;
  border-radius: 22px;
  box-sizing: border-box;
  transition: background .2s, color .2s, box-shadow .2s;
}
.portal-side a span {
  white-space: nowrap;
}
.portal-side-ico-wrap {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-block;
}
.portal-side-ico {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.portal-side-ico-wrap .portal-side-ico {
  position: absolute;
  left: 0;
  top: 0;
}
.portal-side-ico-wrap .ico-on { opacity: 0; visibility: hidden; }
.portal-side-ico-wrap .ico-off { opacity: 1; visibility: visible; }
.portal-side a.active .portal-side-ico-wrap .ico-on {
  opacity: 1; visibility: visible;
}
.portal-side a.active .portal-side-ico-wrap .ico-off {
  opacity: 0; visibility: hidden;
}
.portal-side a:hover:not(.active) {
  background: rgba(236, 112, 45, 0.08);
  color: #EC702D;
}
.portal-side a.active {
  background: linear-gradient(90deg, #F3B541 0%, #EC702D 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(236, 112, 45, 0.28);
}
.portal-main { flex: 1; min-width: 0; }
.portal-notice {
  display: flex; align-items: center; gap: 12px;
  background: transparent;
  border: none;
  box-shadow: none;
  color: #333;
  padding: 8px 0;
  border-radius: 0;
  margin-bottom: 14px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}
.portal-notice-ico {
  width: 53px; height: 46px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.portal-notice span {
  flex: 1; min-width: 0;
  font-size: 17px;
  font-weight: 700;
  color: #333;
}
.portal-search-member {
  width: 100%;
  margin-bottom: 14px;
  box-sizing: border-box;
}
/* 会员中心列表：复用首页 portal-table 单元格样式 */
.portal-member-table-wrap {
  margin-top: 16px;
  max-height: none;
}
.portal-member-table {
  min-width: 980px;
}
.portal-member-table .col-patent { width: 260px; }
.portal-member-table .col-field { width: 120px; }
.portal-member-table .col-gq { width: 100px; }
.portal-member-table .col-price { width: 90px; }
.portal-member-table .col-fav { width: 56px; }
.portal-member-table .col-reserve { width: 90px; }
.portal-member-table .col-fee { width: 130px; }
.portal-member-table .col-ops { width: 100px; }
.portal-member-table-foot {
  justify-content: flex-end;
  margin-top: 8px;
  margin-bottom: 8px;
}
.portal-member-table-foot .portal-pager {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.portal-entry-cards { display: flex; gap: 16px; margin-top: 28px; }
.portal-entry {
  flex: 1; background: #fff; border: 1px solid #EEEEEE; border-radius: 12px;
  padding: 32px 20px; text-align: center; cursor: pointer; color: #333;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: box-shadow .2s, border-color .2s, transform .15s;
  user-select: none;
}
.portal-entry:hover {
  border-color: #FFD4B0;
  box-shadow: 0 6px 16px rgba(236, 112, 45, 0.12);
  color: #333;
}
.portal-entry:active { transform: scale(0.985); }
.portal-entry.active {
  border-color: var(--portal-orange);
  box-shadow: inset 0 0 0 2px var(--portal-orange), 0 6px 16px rgba(236, 112, 45, 0.12);
  color: #333;
}
.portal-entry .ico {
  width: 48px; height: 48px; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
}
.portal-entry .ico img {
  max-width: 100%; max-height: 100%; object-fit: contain; display: block;
}
/* 路径_19 为白色心形，着色为品牌橙 */
#entry-fav .ico img {
  width: 40px; height: 40px;
  filter: invert(52%) sepia(82%) saturate(1800%) hue-rotate(346deg) brightness(98%) contrast(96%);
}
.portal-empty { text-align: center; padding: 48px; color: #999; }

/* ===== 表格骨架屏 ===== */
.portal-card-skel {
  pointer-events: none;
}
.portal-card-skel .portal-skel-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.portal-card-skel .portal-skel.skel-md,
.portal-card-skel .portal-skel.skel-lg {
  margin-left: 0;
  margin-right: 0;
}
.portal-card-skel .portal-skel.skel-sm,
.portal-card-skel .portal-skel.skel-circle {
  margin-left: 0;
  margin-right: 0;
}
.portal-card-skel > div {
  display: flex;
  align-items: center;
  min-width: 0;
}
  padding: 14px 8px !important;
  vertical-align: middle !important;
  border-bottom: 1px solid #F0F0F0;
}
.portal-skel {
  display: block;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, #F2F3F5 25%, #E8EAED 37%, #F2F3F5 63%);
  background-size: 400% 100%;
  animation: portal-skel-shine 1.2s ease-in-out infinite;
}
.portal-skel + .portal-skel { margin-top: 8px; }
.portal-skel.skel-sm { width: 36px; margin: 0 auto; }
.portal-skel.skel-md { width: 72%; max-width: 120px; }
.portal-skel.skel-lg { width: 92%; max-width: 220px; height: 14px; }
.portal-skel.skel-tag {
  display: inline-block; width: 64px; height: 20px; border-radius: 4px;
  margin-right: 8px; vertical-align: middle;
}
.col-patent .portal-skel.skel-md {
  display: inline-block; width: 110px; margin: 0; vertical-align: middle;
}
.col-patent .portal-skel.skel-lg { margin-top: 8px; }
.portal-skel.skel-circle {
  width: 18px; height: 18px; border-radius: 50%; margin: 0 auto;
}
.col-ops .portal-skel {
  display: inline-block; width: 48px; margin: 0 4px; vertical-align: middle;
}
.col-fee .portal-skel { margin-left: auto; margin-right: auto; }
.col-field .portal-skel,
.col-gq .portal-skel,
.col-remark .portal-skel,
.col-status .portal-skel,
.col-price .portal-skel,
.col-year .portal-skel { margin-left: auto; margin-right: auto; }

@keyframes portal-skel-shine {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

@media (min-width: 1400px) {
  .portal-banner-left { background-image: url('../img/portal/banner-left@3x.png'); }
  .portal-banner-right { background-image: url('../img/portal/banner-right@3x.png'); }
}

/* ===== Toast 提示（统一门户风格） ===== */
.portal-toast-host {
  position: fixed; left: 0; right: 0; top: 18%;
  z-index: 10050; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.portal-toast {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 10px;
  min-width: 160px; max-width: min(420px, 86vw);
  padding: 12px 18px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(236, 112, 45, 0.08);
  color: #333;
  font-size: 14px; line-height: 1.4; font-weight: 500;
  opacity: 0; transform: translateY(-8px) scale(.98);
  transition: opacity .22s ease, transform .22s ease;
}
.portal-toast.show {
  opacity: 1; transform: translateY(0) scale(1);
}
.portal-toast-ico {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 700;
}
.portal-toast.success .portal-toast-ico {
  background: linear-gradient(135deg, #F3B541 0%, #EC702D 100%);
}
.portal-toast.warn .portal-toast-ico,
.portal-toast.error .portal-toast-ico {
  background: #EF4444;
}
.portal-toast.info .portal-toast-ico {
  background: #3B82F6;
}
.portal-toast-text { flex: 1; word-break: break-word; }

/* 覆盖 layer 默认 msg，避免其它地方偶发调用显得突兀 */
body .layui-layer-msg {
  min-width: 160px !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12) !important;
  border: none !important;
  background: #fff !important;
}
body .layui-layer-msg .layui-layer-content {
  padding: 12px 18px !important;
  color: #333 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

/* ===== 会员页：个人资料 / 改密 ===== */
.portal-member-page {
  background: #fff !important;
  padding-top: 0 !important;
}
.portal-member-page .navbar,
.portal-member-page .footer { display: none !important; }
.portal-member-page .content {
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
}
.portal-panel {
  background: #fff;
  border: 1px solid #F0E6DA;
  border-radius: 16px;
  padding: 28px 36px 36px;
  box-shadow: 0 8px 24px rgba(236, 112, 45, 0.06);
}
.portal-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid #F5EDE3;
}
.portal-panel-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #222;
}
.portal-panel-link {
  color: #EC702D;
  font-size: 14px;
  font-weight: 600;
}
.portal-panel-link:hover { color: #d45f1f; }
.portal-form-avatar {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}
.profile-avatar-container {
  position: relative;
  width: 100px;
  height: 100px;
}
.profile-avatar-container .profile-user-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #FFE0C2;
  display: block;
  background: #FFF7F0;
}
.profile-avatar-container .profile-avatar-text {
  display: none;
}
.profile-avatar-container:hover .profile-avatar-text {
  display: block;
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(236, 112, 45, 0.72);
  color: #fff;
  line-height: 100px;
  text-align: center;
  font-size: 13px;
}
.profile-avatar-container button {
  position: absolute;
  inset: 0;
  width: 100px;
  height: 100px;
  opacity: 0;
  cursor: pointer;
  border: none;
  border-radius: 50%;
}
.portal-form-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.portal-form-row label {
  width: 88px;
  flex-shrink: 0;
  text-align: right;
  color: #666;
  font-size: 14px;
  margin: 0;
  font-weight: 500;
}
.portal-form-ctrl {
  width: 360px;
  max-width: 100%;
}
.portal-form-ctrl-wide { width: 520px; max-width: calc(100% - 104px); }
.portal-form-with-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: auto;
  max-width: calc(100% - 104px);
}
.portal-form-with-btn .form-control {
  width: 360px;
  max-width: 100%;
}
.portal-form .form-control {
  height: 42px;
  border: 1px solid #F0D9C0;
  border-radius: 8px;
  background: #FFFBF4;
  box-shadow: none;
  font-size: 14px;
  color: #333;
  padding: 0 14px;
}
.portal-form .form-control:focus {
  border-color: #EC702D;
  box-shadow: 0 0 0 3px rgba(236, 112, 45, 0.12);
  background: #fff;
}
.portal-form .form-control[disabled] {
  background: #F7F7F7;
  color: #888;
  border-color: #E8E8E8;
}
.portal-form-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 18px;
  background: linear-gradient(90deg, #F3B541, #EC702D);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.portal-form-action:hover {
  filter: brightness(0.97);
  color: #fff !important;
}
.portal-form-actions {
  display: flex;
  gap: 14px;
  padding-left: 104px;
  margin-top: 28px;
}
.portal-form-actions .portal-btn-sm.primary {
  min-width: 120px;
  height: 42px;
  border: none;
  border-radius: 21px;
  background: linear-gradient(90deg, #F3B541, #EC702D);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(236, 112, 45, 0.28);
  cursor: pointer;
}
.portal-form-actions .portal-btn-sm.primary:hover { filter: brightness(0.97); }
.portal-form-actions .portal-btn-reset {
  min-width: 100px;
  height: 42px;
  border-radius: 21px;
}
.portal-member-page .btn-primary,
.portal-member-page .btn-info {
  background: linear-gradient(90deg, #F3B541, #EC702D) !important;
  border-color: transparent !important;
}
@media (max-width: 720px) {
  .portal-form-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .portal-form-row label { width: auto; text-align: left; }
  .portal-form-ctrl,
  .portal-form-ctrl-wide,
  .portal-form-with-btn,
  .portal-form-with-btn .form-control { width: 100%; }
  .portal-form-actions { padding-left: 0; }
}

.portal-order-no {
  margin-top: 4px;
  font-size: 12px;
  color: #999;
}
.portal-reserve-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: #FFF3E8;
  color: #EC702D;
  font-size: 12px;
  font-weight: 600;
}
