﻿:root {
  --ehs-bg: #f5f7fa;
  --ehs-surface: #ffffff;
  --ehs-soft: #f7fbff;
  --ehs-line: #dce8e5;
  --ehs-line-strong: #c5d8d2;
  --ehs-ink: #17252b;
  --ehs-muted: #607a82;
  --ehs-blue: #08745f;
  --ehs-blue-dark: #055244;
  --ehs-cyan: #12aab5;
  --ehs-gold: #f5bd63;
  --ehs-orange: #d97918;
  --ehs-red: #f04444;
  --ehs-radius: 8px;
  --ehs-shadow: 0 10px 28px rgba(8, 50, 40, 0.08);
  --portal-container: min(1760px, calc(100% - 72px));
}



body {
  color: var(--ehs-ink);
  background:
    linear-gradient(180deg, #ffffff 0, #f6f9fe 132px, #f6f9fe 100%);
  font: 15px/1.58 "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.site-header {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--ehs-line);
  box-shadow: 0 6px 20px rgba(18, 39, 72, 0.05);
}

.portal-header {
  min-height: 76px;
  grid-template-columns: 330px minmax(420px, 720px) minmax(260px, 1fr);
  gap: 28px;
}

.brand-logo-wrap,
.brand-logo {
  width: 34px;
  height: 34px;
}

.brand strong {
  color: #0d1d3b;
  font-size: 28px;
  letter-spacing: 0;
}

.brand small {
  display: none;
}

.header-search {
  height: 44px;
  border: 2px solid var(--ehs-blue);
  border-radius: 6px;
}

.header-search button,
.hero-searchbar button {
  color: #fff;
  background: var(--ehs-blue);
  border: 0;
  font-weight: 900;
}

.header-actions {
  gap: 14px;
}

.header-login-btn,
.header-member-btn {
  min-height: 42px;
  border-radius: 7px;
  font-size: 14px;
}

.header-login-btn {
  min-width: 116px;
  color: #163a2c;
  background: #fff;
  border-color: #dbe4ef;
}

.header-login-btn::before {
  content: "微信";
  color: #1fac4d;
  letter-spacing: 0;
  font-size: 13px;
}

.header-member-btn,
.member-card .btn,
.btn-primary {
  color: #442d12;
  background: linear-gradient(180deg, #ffdda3, #f2b85d);
  border-color: #efbc75;
}

.portal-nav {
  border-top: 1px solid #f1f4fa;
}

.portal-nav-inner {
  min-height: 56px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.portal-nav a,
.portal-nav button {
  height: 56px;
  color: #4e5e78;
  font-size: 15px;
}

.portal-summary {
  min-height: 216px;
  margin-top: 16px;
  padding: 26px clamp(24px, 21vw, 410px) 22px;
  text-align: center;
  background:
    var(--hero-left-image, linear-gradient(135deg, rgba(68, 144, 255, 0.16), rgba(255, 255, 255, 0))) left 60px center / 240px 170px no-repeat,
    var(--hero-right-image, linear-gradient(135deg, rgba(30, 111, 230, 0.16), rgba(255, 255, 255, 0))) right 60px center / 240px 170px no-repeat,
    var(--hero-bg-image, linear-gradient(100deg, #eaf4ff 0%, #f8fcff 52%, #ddecff 100%));
  border: 1px solid #dbe8fa;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.summary-copy h1 {
  max-width: 980px;
  margin: 0 auto 8px;
  color: #101d38;
  font-size: 31px;
  line-height: 1.32;
  font-weight: 950;
}

.summary-copy p {
  max-width: 920px;
  margin: 0 auto 16px;
  color: #465a75;
  font-size: 16px;
}

.hero-searchbar {
  width: min(860px, 100%);
  height: 50px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  margin: 0 auto 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #cfdbec;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(17, 55, 102, 0.08);
}

.hero-searchbar input {
  min-width: 0;
  padding: 0 18px;
  color: var(--ehs-ink);
  border: 0;
  outline: 0;
}

.keyword-list {
  justify-content: center;
  gap: 8px;
}

.keyword-list::before {
  color: #15233e;
  font-weight: 900;
}

.keyword-list button {
  min-height: 26px;
  color: var(--ehs-blue);
  background: rgba(255, 255, 255, 0.86);
  border-color: #cfe0ff;
  border-radius: 999px;
}

.intro-stats {
  margin-top: 14px;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(26, 52, 92, 0.06);
}

.intro-stats > div {
  min-height: 80px;
  grid-template-columns: 68px minmax(0, 1fr);
  padding: 10px 42px;
}

.intro-stats strong {
  color: var(--ehs-blue);
  font-size: 29px;
}

.page-shell {
  margin-top: 16px;
  grid-template-columns: 258px minmax(0, 1fr) 378px;
  gap: 16px;
}

.panel {
  border-color: var(--ehs-line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(24, 47, 86, 0.045);
}

.sidebar {
  top: 152px;
}

.catalog-panel {
  padding: 18px;
}

.panel-title::after {
  color: #8b98ad;
  content: "☰";
}

.category-reset,
.tree-button,
.tree-child,
.tree-grandchild {
  min-height: 40px;
  color: #43536d;
  border-radius: 6px;
}

.category-reset.active,
.tree-button.active,
.tree-child.active,
.tree-grandchild.active,
.tree-button:hover,
.tree-child:hover,
.tree-grandchild:hover {
  color: var(--ehs-blue);
  background: #edf5ff;
}

.document-panel {
  overflow: hidden;
}

.section-head {
  min-height: 66px;
  padding: 16px 18px;
}

.type-tabs button {
  min-width: 62px;
  min-height: 34px;
  border-radius: 6px;
}

.type-tabs button.active {
  background: var(--ehs-blue);
  border-color: var(--ehs-blue);
}

.doc-table-head {
  grid-template-columns: minmax(300px, 1fr) 150px 82px 120px 172px;
}

.doc-row {
  grid-template-columns: 42px minmax(260px, 1fr) 150px 82px 120px 172px;
  min-height: 66px;
}

.doc-main h3 {
  font-size: 15px;
}

.doc-actions .btn-primary {
  color: #fff;
  background: var(--ehs-blue);
  border-color: var(--ehs-blue);
}

.member-card {
  background: linear-gradient(180deg, #fff1d9, #fffaf3);
  border-color: #f1d4a5;
}

.member-card strong {
  color: #724413;
}

.member-benefits span::before {
  content: "◆";
}

.mini-program-card {
  background: #fff;
}

.mini-program-qr img,
.qr-placeholder {
  width: 158px;
  height: 158px;
}

.site-footer {
  margin-top: 20px;
  background: #10203d;
}

.back-top-btn {
  right: 28px;
  bottom: 30px;
  background: var(--ehs-blue);
  box-shadow: 0 10px 22px rgba(6, 104, 232, 0.24);
}

@media (max-width: 1180px) {
  .portal-header {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px) 250px;
  }

  .portal-summary {
    padding-inline: 210px;
  }

  .page-shell {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .right-rail {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --portal-container: min(720px, calc(100% - 22px));
  }

  body {
    padding-bottom: 72px;
    background: #f6f9fe;
  }

  .site-header {
    position: static;
  }

  .portal-header {
    min-height: 76px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 54px 106px 108px;
    gap: 10px;
    padding: 10px 0;
  }

  .brand {
    gap: 9px;
  }

  .brand-logo-wrap,
  .brand-logo {
    width: 32px;
    height: 32px;
  }

  .brand strong {
    font-size: 23px;
  }

  .header-actions {
    display: contents;
  }

  .header-search {
    grid-column: 2;
    width: 58px;
    height: 42px;
    border: 1px solid var(--ehs-line);
    border-radius: 8px;
  }

  .header-search input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
  }

  .header-search button {
    padding: 0;
    font-size: 0;
    color: #5f6d83;
    background: #fff;
  }

  .header-search button::before {
    content: "⌕";
    font-size: 28px;
    line-height: 1;
  }

  #headerLoginBtn {
    grid-column: 3;
  }

  #topMemberBtn {
    grid-column: 4;
  }

  .header-login-btn,
  .header-member-btn {
    min-width: 0;
    min-height: 42px;
    padding: 0 10px;
    white-space: nowrap;
  }

  .portal-nav {
    display: none;
  }

  .portal-summary {
    min-height: 260px;
    margin-top: 8px;
    padding: 28px 18px 18px;
    background:
      var(--hero-left-image, linear-gradient(135deg, rgba(68, 144, 255, 0.16), rgba(255, 255, 255, 0))) left 12px top 18px / 122px 92px no-repeat,
      var(--hero-right-image, linear-gradient(135deg, rgba(30, 111, 230, 0.16), rgba(255, 255, 255, 0))) right 12px top 18px / 122px 92px no-repeat,
      var(--hero-bg-image, linear-gradient(100deg, #eaf4ff 0%, #f8fcff 52%, #dcecff 100%));
  }

  .summary-copy h1 {
    padding-top: 106px;
    max-width: 620px;
    font-size: 24px;
    line-height: 1.28;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .summary-copy p {
    font-size: 15px;
  }

  .hero-searchbar {
    grid-template-columns: minmax(0, 1fr) 92px;
    height: 54px;
    margin-bottom: 14px;
    border-radius: 10px;
  }

  .hero-searchbar input {
    padding: 0 14px;
  }

  .keyword-list {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .keyword-list::before,
  .keyword-list button {
    flex: 0 0 auto;
  }

  .intro-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 16px;
  }

  .intro-stats > div {
    grid-template-columns: 1fr;
    min-height: 104px;
    padding: 12px 6px;
    text-align: center;
  }

  .intro-stats > div::before {
    margin: 0 auto 6px;
  }

  .intro-stats strong {
    font-size: 26px;
  }

  .quick-category-section {
    margin-top: 18px;
  }

  .quick-category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--ehs-line);
    border-radius: 10px;
    box-shadow: var(--ehs-shadow);
  }

  .quick-category-item {
    min-height: 108px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 7px;
    color: #182641;
    background: #fff;
    border: 0;
    border-right: 1px solid var(--ehs-line);
    border-bottom: 1px solid var(--ehs-line);
    font-weight: 900;
  }

  .quick-category-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    font-size: 29px;
  }

  .quick-category-icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
  }

  .quick-category-item strong {
    font-size: 14px;
  }

  .page-shell {
    grid-template-columns: 1fr;
    margin-top: 14px;
  }

  .sidebar {
    display: none;
    position: static;
  }

  body.catalog-open .sidebar {
    display: block;
  }

  .section-head {
    min-height: 66px;
    padding: 14px 16px;
  }

  .section-head::before {
    content: none !important;
  }

  .section-head > div:first-child::before {
    content: "最新资料";
    color: #17243d;
    font-size: 18px;
    font-weight: 950;
  }

  .section-head h2,
  .section-head span {
    display: none;
  }

  .type-tabs {
    gap: 22px;
  }

  .type-tabs button {
    min-width: auto;
    padding: 0;
    color: #6a758a;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  .type-tabs button.active {
    color: var(--ehs-blue);
    background: transparent;
    border-bottom: 3px solid var(--ehs-blue);
  }

  .doc-table-head {
    display: none;
  }

  .doc-row {
    grid-template-columns: 58px minmax(0, 1fr) 228px;
    gap: 14px;
    min-height: 90px;
    padding: 14px 18px;
  }

  .doc-cover,
  .doc-type {
    width: 52px;
    height: 58px;
  }

  .doc-main h3,
  .doc-main p {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  .doc-category,
  .doc-format {
    display: none;
  }

  .doc-date {
    grid-column: 2;
    grid-row: 2;
    margin-top: 28px;
  }

  .doc-actions {
    grid-column: 3;
    grid-row: 1 / span 2;
    justify-content: flex-end;
  }

  .doc-actions .btn {
    min-width: 92px;
    min-height: 42px;
  }

  .right-rail {
    grid-template-columns: 1fr 1fr;
  }

  .member-card,
  .mini-program-card {
    min-height: 252px;
    min-width: 0;
  }

  .site-footer {
    display: none;
  }
}

@media (max-width: 520px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .container {
    width: calc(100vw - 22px) !important;
    max-width: calc(100vw - 22px);
  }

  .portal-header {
    grid-template-columns: minmax(0, 1fr) 42px 74px 74px;
    gap: 6px;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    max-width: 118px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 18px;
  }

  .header-search {
    width: 42px;
  }

  .header-login-btn,
  .header-member-btn {
    padding: 0 6px;
    font-size: 12px;
  }

  .header-login-btn::before {
    display: none;
  }

  .header-member-btn {
    font-size: 0;
  }

  .header-member-btn::after {
    content: "会员";
    font-size: 12px;
  }

  .portal-summary {
    width: calc(100vw - 22px) !important;
    max-width: calc(100vw - 22px);
    padding-right: 12px;
    padding-left: 12px;
  }

  .summary-copy {
    width: 100%;
    min-width: 0;
  }

  .summary-copy h1 {
    width: 100%;
    max-width: 100%;
    font-size: 21px;
    white-space: normal;
    word-break: break-all;
  }

  .summary-copy p {
    font-size: 14px;
  }

  .hero-searchbar {
    grid-template-columns: minmax(0, 1fr) 84px;
    width: 100%;
    max-width: 100%;
  }

  .hero-searchbar input {
    min-width: 0;
  }

  .intro-stats {
    width: 100%;
    overflow: hidden;
  }

  .intro-stats > div {
    min-width: 0;
  }

  .intro-stats strong {
    font-size: 20px;
    white-space: nowrap;
  }

  .intro-stats span {
    font-size: 12px;
  }

  .quick-category-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .quick-category-item {
    min-height: 94px;
  }

  .quick-category-icon {
    width: 34px;
    height: 34px;
    font-size: 25px;
  }

  .quick-category-item strong {
    font-size: 12px;
  }

  .doc-row {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .doc-date {
    grid-column: 2;
    grid-row: auto;
    margin-top: 0;
  }

  .doc-actions {
    grid-column: 1 / -1;
    grid-row: auto;
    justify-content: stretch;
  }

  .doc-actions .btn {
    flex: 1;
  }

  .right-rail {
    grid-template-columns: 1fr;
  }

  .member-benefits span {
    min-width: 0;
    padding-left: 34px;
    overflow-wrap: anywhere;
  }
}

/* Single site search: use the hero-style search control in the header. */
.portal-header .header-search {
  width: min(720px, 100%);
  height: 50px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #cfdbec;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(17, 55, 102, 0.08);
}

.portal-header .header-search input {
  min-width: 0;
  padding: 0 18px;
  color: var(--ehs-ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 15px;
}

.portal-header .header-search button {
  color: #fff;
  background: var(--ehs-blue);
  border: 0;
  font-weight: 900;
  font-size: 15px;
}

.portal-summary .quick-search {
  margin-top: 12px;
}

@media (max-width: 1180px) {
  .portal-header {
    grid-template-columns: minmax(220px, 1fr) minmax(360px, 560px) auto;
  }
}

@media (max-width: 760px) {
  .portal-header {
    grid-template-columns: minmax(0, 1fr) 46px 74px 74px;
  }

  .portal-header .header-search {
    grid-column: 2;
    width: 46px;
    height: 42px;
    border: 1px solid var(--ehs-line);
    border-radius: 8px;
    box-shadow: none;
  }

  .portal-header .header-search input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    opacity: 0;
  }

  .portal-header .header-search button {
    padding: 0;
    font-size: 0;
    color: #5f6d83;
    background: #fff;
  }

  .portal-header .header-search button::before {
    content: "⌕";
    font-size: 26px;
    line-height: 1;
  }
}

/* Final public portal polish: keep document actions visible and remove loose hero/footer clutter. */
.portal-summary {
  min-height: 0;
  margin-top: 18px;
  padding: 34px clamp(24px, 8vw, 120px) 30px;
  background:
    radial-gradient(circle at 12% 18%, rgba(8, 103, 232, 0.08), transparent 28%),
    radial-gradient(circle at 88% 24%, rgba(18, 170, 181, 0.08), transparent 28%),
    linear-gradient(100deg, #f7fbff 0%, #eef6ff 100%);
  border-color: #dbe8fa;
}

.summary-copy {
  max-width: 980px;
  margin: 0 auto;
}

.summary-copy h1 {
  max-width: 760px;
  margin-bottom: 12px;
  padding-top: 0;
  font-size: clamp(30px, 3vw, 48px);
  line-height: 1.18;
}

.summary-copy p {
  max-width: 900px;
  margin-bottom: 16px;
  color: #405571;
}

.portal-summary .quick-search {
  margin-top: 0;
}

.intro-stats {
  width: min(920px, 100%);
  margin: 18px auto 0;
  overflow: hidden;
}

.page-shell {
  grid-template-columns: 248px minmax(0, 1fr) 336px;
  gap: 18px;
}

.document-panel {
  overflow: visible;
}

.doc-table-head {
  display: none;
}

.doc-list {
  display: grid;
  gap: 10px;
  padding: 0 18px 18px;
}

.doc-row {
  min-height: 88px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #d8e5f2;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(23, 45, 83, 0.04);
}

.doc-row:hover {
  background: #fff;
  border-color: #b9d6f5;
  box-shadow: 0 12px 26px rgba(23, 45, 83, 0.08);
}

.doc-cover,
.doc-type {
  width: 48px;
  height: 56px;
}

.doc-main h3 {
  max-width: 100%;
  font-size: 16px;
}

.doc-main p {
  margin-top: 4px;
  font-size: 13px;
}

.doc-meta {
  margin-top: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.doc-meta span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  color: #4d617b;
  background: #f4f8fd;
  border: 1px solid #e0e9f4;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.doc-category,
.doc-format,
.doc-date {
  display: none;
}

.doc-actions {
  min-width: 160px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.doc-actions .btn {
  min-width: 72px;
  min-height: 36px;
}

.site-footer {
  display: block;
  margin-top: 28px;
  padding: 18px 0;
  background: #10203d;
}

.footer-grid {
  min-height: 0;
  justify-content: flex-end;
}

.footer-links {
  margin-left: auto;
}

.footer-bottom {
  padding: 8px 0 0;
  color: #b8c5d8;
}

@media (max-width: 1180px) {
  .page-shell {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .right-rail {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .portal-summary {
    padding: 24px 14px 22px;
  }

  .summary-copy h1 {
    font-size: 27px;
  }

  .intro-stats {
    grid-template-columns: 1fr;
  }

  .doc-list {
    padding: 0 12px 14px;
  }

  .doc-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .doc-actions {
    grid-column: 1 / -1;
    min-width: 0;
    justify-content: stretch;
  }

  .doc-actions .btn {
    flex: 1;
  }

  .footer-grid,
  .footer-links {
    justify-content: center;
  }
}

/* Final UX polish for document list, hero composition, and footer. */
.portal-summary {
  min-height: 0;
  margin-top: 18px;
  padding: 34px clamp(24px, 8vw, 120px) 30px;
  background:
    radial-gradient(circle at 12% 18%, rgba(8, 103, 232, 0.08), transparent 28%),
    radial-gradient(circle at 88% 24%, rgba(18, 170, 181, 0.08), transparent 28%),
    linear-gradient(100deg, #f7fbff 0%, #eef6ff 100%);
  border-color: #dbe8fa;
}

.summary-copy {
  max-width: 980px;
  margin: 0 auto;
}

.summary-copy h1 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: clamp(30px, 3vw, 48px);
  line-height: 1.18;
}

.summary-copy p {
  max-width: 900px;
  margin-bottom: 16px;
  color: #405571;
}

.portal-summary .quick-search {
  margin-top: 0;
}

.intro-stats {
  width: min(920px, 100%);
  margin: 18px auto 0;
  overflow: hidden;
}

.page-shell {
  grid-template-columns: 248px minmax(0, 1fr) 336px;
  gap: 18px;
}

.document-panel {
  overflow: visible;
}

.doc-table-head {
  display: none;
}

.doc-list {
  display: grid;
  gap: 10px;
  padding: 0 18px 18px;
}

.doc-row {
  min-height: 88px;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #d8e5f2;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(23, 45, 83, 0.04);
}

.doc-row:hover {
  background: #fff;
  border-color: #b9d6f5;
  box-shadow: 0 12px 26px rgba(23, 45, 83, 0.08);
}

.doc-cover,
.doc-type {
  width: 48px;
  height: 56px;
}

.doc-main h3 {
  max-width: 100%;
  font-size: 16px;
}

.doc-main p {
  margin-top: 4px;
  font-size: 13px;
}

.doc-meta {
  margin-top: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.doc-meta span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  color: #4d617b;
  background: #f4f8fd;
  border: 1px solid #e0e9f4;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.doc-category,
.doc-format,
.doc-date {
  display: none;
}

.doc-actions {
  min-width: 160px;
  justify-content: flex-end;
}

.doc-actions .btn {
  min-width: 72px;
  min-height: 36px;
}

.site-footer {
  margin-top: 28px;
  padding: 18px 0;
  background: #10203d;
}

.footer-grid {
  min-height: 0;
  justify-content: flex-end;
}

.footer-links {
  margin-left: auto;
}

.footer-bottom {
  padding: 8px 0 0;
  color: #b8c5d8;
}

@media (max-width: 1180px) {
  .page-shell {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .right-rail {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .portal-summary {
    padding: 24px 14px 22px;
  }

  .summary-copy h1 {
    font-size: 27px;
  }

  .intro-stats {
    grid-template-columns: 1fr;
  }

  .doc-list {
    padding: 0 12px 14px;
  }

  .doc-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .doc-actions {
    grid-column: 1 / -1;
    min-width: 0;
    justify-content: stretch;
  }

  .doc-actions .btn {
    flex: 1;
  }

  .footer-grid,
  .footer-links {
    justify-content: center;
  }
}


body {
  color: var(--ehs-ink);
  background: var(--ehs-bg);
}

.container {
  width: var(--portal-container);
  margin-inline: auto;
}

.portal-boot-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  background: #f7fbff;
}

body.portal-booting .portal-boot-screen {
  display: grid;
}

.portal-boot-box {
  min-width: 260px;
  padding: 22px 26px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--ehs-line);
  border-radius: var(--ehs-radius);
  box-shadow: var(--ehs-shadow);
}

.portal-boot-box strong,
.portal-boot-box span {
  display: block;
}

.portal-boot-box span {
  margin-top: 6px;
  color: var(--ehs-muted);
}

.utility-bar {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--ehs-line);
  box-shadow: 0 4px 18px rgba(18, 39, 72, 0.05);
}

.portal-header {
  min-height: 74px;
  display: grid;
  grid-template-columns: 310px minmax(360px, 690px) 292px;
  align-items: center;
  gap: 28px;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-wrap,
.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 3px;
}

.brand strong {
  color: #0f2141;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 900;
}

.brand small {
  max-width: 220px;
  color: var(--ehs-muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-search {
  height: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  background: #fff;
  border: 2px solid var(--ehs-blue);
  border-radius: 6px;
  overflow: hidden;
}

.header-search input {
  min-width: 0;
  padding: 0 16px;
  color: var(--ehs-ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.header-search input::placeholder {
  color: #6c7a90;
}

.header-search button {
  color: #fff;
  background: var(--ehs-blue);
  border: 0;
  font-weight: 900;
}

.header-search button:hover {
  background: var(--ehs-blue-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.header-login-btn,
.header-member-btn,
.btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 16px;
  border-radius: 6px;
  font-weight: 900;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.header-login-btn {
  min-width: 116px;
  color: #1d4f2b;
  background: #fff;
  border: 1px solid var(--ehs-line);
}

.header-login-btn::before {
  content: "●●";
  color: #24b447;
  letter-spacing: -2px;
}

.header-login-btn.logged-in {
  color: var(--ehs-blue);
  border-color: #bed2f8;
}

.header-member-btn,
.btn-primary {
  color: #3f2d14;
  background: linear-gradient(180deg, #ffd99a, #f5bd63);
  border: 1px solid #efbd70;
}

.btn-primary:hover,
.header-member-btn:hover {
  background: linear-gradient(180deg, #ffcf82, #efad46);
}

.btn-light {
  color: #52637d;
  background: #fff;
  border: 1px solid var(--ehs-line);
}

.btn-light:hover {
  color: var(--ehs-blue);
  border-color: #c7d8f8;
}

.portal-nav {
  background: #fff;
  border-top: 1px solid #f0f4fa;
}

.portal-nav-inner {
  min-height: 54px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  gap: 16px;
}

.portal-nav a,
.portal-nav button {
  position: relative;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #4d5f7a;
  background: transparent;
  border: 0;
  font-weight: 850;
}

.portal-nav a.active,
.portal-nav a:hover,
.portal-nav button:hover,
.portal-nav button.active {
  color: var(--ehs-blue);
}

.portal-nav a.active::after,
.portal-nav button.active::after {
  position: absolute;
  right: 24%;
  bottom: 0;
  left: 24%;
  height: 3px;
  background: var(--ehs-blue);
  border-radius: 999px;
  content: "";
}

.portal-summary {
  position: relative;
  min-height: 216px;
  margin-top: 16px;
  padding: 28px clamp(24px, 20vw, 390px);
  display: block;
  text-align: center;
  overflow: hidden;
  background:
    var(--hero-left-image, none) left 64px center / 230px auto no-repeat,
    var(--hero-right-image, none) right 64px center / 230px auto no-repeat,
    var(--hero-bg-image, linear-gradient(100deg, #eaf4ff 0%, #f8fcff 52%, #dcecff 100%));
  border: 1px solid #dbe8fa;
  border-radius: var(--ehs-radius);
}

.summary-copy > span {
  display: none;
}

.summary-copy h1 {
  max-width: 980px;
  margin: 0 auto 10px;
  color: #10203d;
  font-size: 30px;
  line-height: 1.32;
  font-weight: 950;
  letter-spacing: 0;
  text-wrap: balance;
}

.summary-copy p {
  max-width: 900px;
  margin: 0 auto 18px;
  color: #485a73;
  font-size: 16px;
  line-height: 1.7;
}


.intro-stats {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #fff;
  border: 1px solid var(--ehs-line);
  border-radius: var(--ehs-radius);
  box-shadow: 0 8px 20px rgba(24, 47, 86, 0.05);
}

.intro-stats > div {
  min-height: 82px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  justify-content: center;
  padding: 12px 34px;
  border-right: 1px solid var(--ehs-line);
}

.intro-stats > div:last-child {
  border-right: 0;
}

.intro-stats > div::before {
  width: 42px;
  height: 42px;
  display: block;
  background-image: var(--stat-doc-icon, linear-gradient(135deg, #88c7ff, #0867e8));
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  content: "";
}

.intro-stats > div:nth-child(2)::before {
  background-image: var(--stat-category-icon, linear-gradient(135deg, #7ee0db, #13aab5));
}

.intro-stats > div:nth-child(3)::before {
  background-image: var(--stat-plan-icon, linear-gradient(135deg, #ffe0a0, #f5bd63));
}

.intro-stats strong {
  display: inline;
  color: var(--ehs-blue);
  font-size: 28px;
  line-height: 1.1;
  font-weight: 950;
}

.intro-stats span {
  display: block;
  color: var(--ehs-muted);
  font-weight: 750;
}

.quick-category-section {
  margin-top: 18px;
}

.quick-category-grid {
  display: none;
}

.page-shell {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 376px;
  gap: 16px;
  align-items: start;
}

.panel {
  background: #fff;
  border: 1px solid var(--ehs-line);
  border-radius: var(--ehs-radius);
  box-shadow: 0 8px 20px rgba(24, 47, 86, 0.04);
}

.sidebar {
  position: sticky;
  top: 148px;
}

.catalog-panel {
  padding: 18px;
}

.panel-title {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-title span {
  display: none;
}

.panel-title strong,
.section-head h2,
.member-card strong {
  margin: 0;
  color: #17243d;
  font-size: 18px;
  font-weight: 950;
}

.category-reset,
.tree-button,
.tree-child,
.tree-grandchild {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  color: #42536c;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 6px;
  text-align: left;
  font-weight: 850;
}

.category-reset {
  margin-bottom: 8px;
}

.category-reset.active,
.tree-button.active,
.tree-child.active,
.tree-grandchild.active,
.tree-button:hover,
.tree-child:hover,
.tree-grandchild:hover {
  color: var(--ehs-blue);
  background: #edf5ff;
  border-color: #d8e7ff;
}

.catalog-tree,
.tree-group,
.tree-child-row {
  display: grid;
  gap: 6px;
}

.tree-button b,
.tree-child b {
  color: #8b98ad;
  font-size: 12px;
}

.tree-children,
.tree-grandchildren {
  display: none;
}

.tree-group.expanded .tree-children,
.tree-child-row.expanded .tree-grandchildren {
  display: grid;
  gap: 6px;
}

.tree-child { padding-left: 24px; }
.tree-grandchild { padding-left: 38px; font-size: 13px; }

.content {
  min-width: 0;
}

.document-panel {
  overflow: hidden;
}

.section-head {
  min-height: 64px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.section-head span {
  display: none;
}

.type-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.type-tabs button {
  min-width: 62px;
  min-height: 34px;
  color: #23324a;
  background: #f7faff;
  border: 1px solid var(--ehs-line);
  border-radius: 6px;
  font-weight: 850;
}

.type-tabs button.active,
.type-tabs button:hover {
  color: #fff;
  background: var(--ehs-blue);
  border-color: var(--ehs-blue);
}

.doc-table-head {
  min-height: 40px;
  display: grid;
  grid-template-columns: minmax(330px, 1fr) 150px 80px 118px 172px;
  align-items: center;
  gap: 16px;
  padding: 0 18px;
  color: #5d6d84;
  background: #f7faff;
  border-top: 1px solid var(--ehs-line);
  border-bottom: 1px solid var(--ehs-line);
  font-size: 13px;
  font-weight: 850;
}

.doc-list {
  display: block;
}

.doc-row {
  min-height: 64px;
  display: grid;
  grid-template-columns: 40px minmax(280px, 1fr) 150px 80px 118px 172px;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  background: #fff;
  border-bottom: 1px solid var(--ehs-line);
}

.doc-row:hover {
  background: #fbfdff;
}

.doc-cover,
.doc-type {
  width: 36px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 950;
  overflow: hidden;
}

.doc-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doc-cover span {
  display: none;
}

.doc-type.type-pdf { background: #f04444; }
.doc-type.type-word { background: #3175e8; }
.doc-type.type-ppt { background: #ff8b2f; }

.doc-main {
  min-width: 0;
}

.doc-main h3 {
  margin: 0;
  color: #13223e;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-main p {
  margin: 3px 0 0;
  color: #75829a;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-category,
.doc-format,
.doc-date {
  color: #53627a;
  font-size: 13px;
  font-weight: 750;
}

.doc-category {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.doc-actions .btn {
  min-width: 72px;
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
}

.doc-actions .btn-primary {
  color: #fff;
  background: var(--ehs-blue);
  border-color: var(--ehs-blue);
}

.doc-list-pager {
  min-height: 52px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #5d6d84;
  background: #fff;
  font-size: 13px;
}

.doc-list-pager[hidden] {
  display: none;
}

.doc-pager-actions,
.doc-pager-pages,
.doc-pager-summary {
  display: flex;
  align-items: center;
  gap: 8px;
}

.right-rail {
  display: grid;
  gap: 14px;
}

.member-card {
  padding: 22px;
  background: linear-gradient(180deg, #fff3df, #fffaf3);
  border-color: #f3d7aa;
}

.member-card > span {
  display: none;
}

.member-card strong {
  display: block;
  text-align: center;
  color: #724413;
}

.member-card p {
  margin: 8px 0 16px;
  text-align: center;
  color: #84613a;
}

.member-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.member-benefits span {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding-left: 42px;
  position: relative;
  color: #7c4a15;
}

.member-benefits span::before {
  position: absolute;
  left: 0;
  top: 10px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #dc811f;
  background: #fff2dc;
  border-radius: 50%;
  content: "♕";
}

.member-benefits b {
  font-size: 13px;
}

.member-benefits small {
  color: #9a7448;
  font-size: 12px;
}

.member-card .btn {
  width: 100%;
  margin-top: 14px;
}

.mini-program-card {
  padding: 22px;
}

.mini-program-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mini-link-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--ehs-blue);
  border: 2px solid #4ed1c1;
  border-radius: 8px;
  font-weight: 950;
}

.mini-program-head strong {
  display: block;
  font-size: 17px;
  line-height: 1.3;
}

.mini-program-head p {
  margin: 2px 0 0;
  color: var(--ehs-muted);
}

.mini-program-qr {
  min-height: 170px;
  display: grid;
  place-items: center;
  margin: 16px 0;
}

.mini-program-qr img,
.qr-placeholder {
  width: 168px;
  height: 168px;
  object-fit: contain;
}

.qr-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  color: #fff;
  background: radial-gradient(circle, #0867e8 0 34%, #fff 35% 38%, #10203d 39% 40%, #fff 41%);
  border: 1px solid var(--ehs-line);
  border-radius: 50%;
}

.qr-placeholder strong {
  font-size: 34px;
  line-height: 1;
}

.qr-placeholder span {
  font-size: 14px;
  font-weight: 900;
}

.mini-program-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  color: #64728b;
  font-size: 12px;
}

.mini-program-features span {
  text-align: center;
}

.site-footer {
  margin-top: 22px;
  color: #d9e6f5;
  background: #10203d;
}

.footer-grid {
  min-height: 126px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand strong {
  display: block;
  color: #fff;
  font-size: 20px;
}

.footer-brand p,
.footer-bottom {
  color: #aebbd0;
}

.footer-links {
  display: flex;
  gap: 22px;
  font-weight: 800;
}

.footer-bottom {
  padding: 0 0 22px;
  font-size: 12px;
}

.mobile-dock {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 29, 52, 0.5);
}

.modal-card {
  position: relative;
  width: min(1100px, calc(100% - 40px));
  max-height: min(860px, calc(100vh - 40px));
  margin: 20px auto;
  padding: 20px;
  overflow: auto;
  background: #fff;
  border-radius: var(--ehs-radius);
}

.modal-head,
.modal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.close-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--ehs-line);
  border-radius: 6px;
  background: #fff;
}

.preview-frame {
  margin: 14px 0 0;
  border: 1px solid var(--ehs-line);
  border-radius: var(--ehs-radius);
  overflow: hidden;
}

.preview-frame img,
.document-frame {
  width: 100%;
  min-height: 640px;
  border: 0;
  display: block;
}

.toast,
.back-top-btn {
  position: fixed;
  z-index: 80;
}

.toast {
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%);
  padding: 10px 16px;
  color: #fff;
  background: rgba(15, 29, 52, 0.92);
  border-radius: 999px;
}

.back-top-btn {
  right: 24px;
  bottom: 28px;
  min-height: 40px;
  padding: 0 14px;
  color: #fff;
  background: var(--ehs-blue);
  border: 0;
  border-radius: 999px;
  font-weight: 900;
}

.back-top-btn[hidden],
.toast[hidden] {
  display: none;
}

.account-body {
  min-height: 100vh;
  background: #f5f8fc;
}

.simple-header,
.account-shell,
.plans-shell {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.simple-header {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.simple-nav {
  display: flex;
  gap: 12px;
}

.simple-nav a,
.profile-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--ehs-line);
  border-radius: 6px;
  font-weight: 850;
}

.account-shell,
.plans-shell {
  padding: 26px 0 70px;
}

.login-card,
.profile-panel,
.profile-edit-panel,
.plan-detail,
.inline-pay-panel,
.pay-panel,
.cashier-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--ehs-line);
  border-radius: var(--ehs-radius);
  box-shadow: 0 8px 20px rgba(24, 47, 86, 0.04);
}

.login-card {
  max-width: 560px;
  margin: 24px auto 0;
}

.login-card h1,
.profile-panel h1,
.plans-hero h1 {
  margin: 8px 0 10px;
  color: var(--ehs-ink);
  font-size: 28px;
  line-height: 1.3;
}

.plans-detail-list {
  display: grid;
  gap: 16px;
}

.plan-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
}

.plan-price {
  color: var(--ehs-orange);
  font-size: 38px;
  font-weight: 950;
}

@media (max-width: 1180px) {
  :root {
    --portal-container: min(980px, calc(100% - 32px));
  }

  .portal-header {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .header-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .page-shell {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .right-rail {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }

  .portal-summary {
    padding-inline: 220px;
  }
}

@media (max-width: 760px) {
  :root {
    --portal-container: min(100% - 22px, 680px);
  }

  body {
    padding-bottom: 72px;
  }

  .site-header {
    position: static;
  }

  .portal-header {
    min-height: 82px;
    grid-template-columns: minmax(0, 1fr) 110px 132px;
    gap: 10px;
    padding: 10px 0;
  }

  .brand small {
    display: none;
  }

  .brand strong {
    font-size: 26px;
  }

  .brand-logo-wrap,
  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .header-search {
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: 1fr;
    width: 110px;
    border-color: var(--ehs-line);
  }

  .header-search input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
  }

  .header-search button {
    font-size: 0;
    color: #5c6880;
    background: #fff;
    border: 0;
  }

  .header-search button::before {
    content: "⌕";
    font-size: 28px;
  }

  .header-actions {
    gap: 10px;
  }

  .header-login-btn,
  .header-member-btn {
    min-width: 0;
    min-height: 44px;
    padding: 0 14px;
  }

  .portal-nav {
    display: none;
  }

  .portal-summary {
    min-height: 260px;
    margin-top: 8px;
    padding: 28px 18px 18px;
    background:
      var(--hero-left-image, none) left 18px top 26px / 150px auto no-repeat,
      var(--hero-right-image, none) right 18px top 26px / 150px auto no-repeat,
      var(--hero-bg-image, linear-gradient(100deg, #eaf4ff 0%, #f8fcff 52%, #dcecff 100%));
  }

  .summary-copy h1 {
    max-width: 620px;
    margin-top: 4px;
    padding-inline: 150px;
    font-size: 25px;
    line-height: 1.25;
  }

  .summary-copy p {
    font-size: 15px;
  }

  .keyword-list {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .keyword-list button,
  .keyword-list::before {
    flex: 0 0 auto;
  }

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

  .intro-stats > div {
    min-height: 92px;
    grid-template-columns: 46px minmax(0, 1fr);
    padding: 12px;
  }

  .intro-stats strong {
    font-size: 25px;
  }

  .quick-category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--ehs-line);
    border-radius: var(--ehs-radius);
    box-shadow: 0 8px 20px rgba(24, 47, 86, 0.04);
  }

  .quick-category-item {
    min-height: 118px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    color: #182641;
    background: #fff;
    border: 0;
    border-right: 1px solid var(--ehs-line);
    border-bottom: 1px solid var(--ehs-line);
    font-weight: 900;
  }

  .quick-category-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    font-size: 30px;
  }

  .quick-category-icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
  }

  .quick-category-item strong {
    font-size: 14px;
  }

  .page-shell {
    grid-template-columns: 1fr;
    margin-top: 14px;
  }

  .sidebar {
    display: none;
    position: static;
  }

  body.catalog-open .sidebar {
    display: block;
  }

  .section-head {
    min-height: 66px;
    padding: 14px 16px;
  }

  .section-head::before {
    content: "最新资料";
    color: #17243d;
    font-size: 17px;
    font-weight: 950;
  }

  .section-head h2 {
    display: none;
  }

  .type-tabs {
    gap: 20px;
  }

  .type-tabs button {
    min-width: auto;
    padding: 0;
    color: #6a758a;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  .type-tabs button.active {
    color: var(--ehs-blue);
    background: transparent;
    border-bottom: 3px solid var(--ehs-blue);
  }

  .doc-table-head {
    display: none;
  }

  .doc-row {
    grid-template-columns: 58px minmax(0, 1fr) 242px;
    gap: 14px;
    min-height: 90px;
    padding: 14px 18px;
  }

  .doc-cover,
  .doc-type {
    width: 52px;
    height: 58px;
    font-size: 13px;
  }

  .doc-main h3 {
    font-size: 16px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
  }

  .doc-main p {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
  }

  .doc-category,
  .doc-format {
    display: none;
  }

  .doc-date {
    justify-self: start;
    grid-column: 2;
    grid-row: 2;
    margin-top: 28px;
  }

  .doc-actions {
    grid-column: 3;
    grid-row: 1 / span 2;
    justify-content: end;
  }

  .doc-actions .btn {
    min-width: 92px;
    min-height: 42px;
  }

  .right-rail {
    grid-template-columns: 1fr 1fr;
  }

  .member-card,
  .mini-program-card {
    min-height: 262px;
  }

  .site-footer {
    display: none;
  }

  .mobile-dock {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 70;
    height: 66px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: #fff;
    border-top: 1px solid var(--ehs-line);
    box-shadow: 0 -8px 22px rgba(24, 47, 86, 0.08);
  }

  .mobile-dock a,
  .mobile-dock button {
    display: grid;
    place-items: center;
    color: #5d6880;
    background: #fff;
    border: 0;
    font-size: 13px;
    font-weight: 850;
  }

  .mobile-dock a:first-child,
  .mobile-dock button.active {
    color: var(--ehs-blue);
  }

  .modal-card {
    width: min(100% - 22px, 680px);
  }

  .preview-frame img,
  .document-frame {
    min-height: 460px;
  }
}

@media (max-width: 520px) {
  .portal-header {
    grid-template-columns: minmax(0, 1fr) 58px 108px 112px;
  }

  .header-search {
    width: 58px;
  }

  .brand strong {
    font-size: 21px;
  }

  .summary-copy h1 {
    padding-inline: 0;
    padding-top: 106px;
    font-size: 22px;
  }

  .portal-summary {
    background:
      var(--hero-left-image, none) left 12px top 18px / 122px auto no-repeat,
      var(--hero-right-image, none) right 12px top 18px / 122px auto no-repeat,
      var(--hero-bg-image, linear-gradient(100deg, #eaf4ff 0%, #f8fcff 52%, #dcecff 100%));
  }

  .intro-stats > div {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .intro-stats > div::before {
    margin: 0 auto 6px;
  }

  .quick-category-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .quick-category-item {
    min-height: 100px;
  }

  .doc-row {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .doc-date {
    grid-column: 2;
    grid-row: auto;
    margin-top: 0;
  }

  .doc-actions {
    grid-column: 1 / -1;
    grid-row: auto;
    justify-content: stretch;
  }

  .doc-actions .btn {
    flex: 1;
  }

  .right-rail {
    grid-template-columns: 1fr;
  }

  .member-benefits {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* 2026-06-11 visual pass: align public portal with the approved desktop/mobile mockups. */
:root {
  --ehs-bg: #f6f9fe;
  --ehs-surface: #ffffff;
  --ehs-soft: #f4f8ff;
  --ehs-line: #dde7f4;
  --ehs-line-strong: #cbd8eb;
  --ehs-ink: #10203d;
  --ehs-muted: #64738b;
  --ehs-blue: #0668e8;
  --ehs-blue-dark: #0758c8;
  --ehs-cyan: #16b6bd;
  --ehs-gold: #f4bd6b;
  --ehs-orange: #d87917;
  --ehs-red: #ef4444;
  --ehs-radius: 8px;
  --ehs-shadow: 0 10px 24px rgba(26, 52, 92, 0.07);
  --portal-container: min(1760px, calc(100% - 72px));
}

/* Final live overrides, intentionally last. */
.portal-summary {
  min-height: 0;
  margin-top: 18px;
  padding: 34px clamp(24px, 8vw, 120px) 30px;
  background:
    radial-gradient(circle at 12% 18%, rgba(8, 103, 232, 0.08), transparent 28%),
    radial-gradient(circle at 88% 24%, rgba(18, 170, 181, 0.08), transparent 28%),
    linear-gradient(100deg, #f7fbff 0%, #eef6ff 100%);
}

.summary-copy {
  max-width: 980px;
  margin: 0 auto;
}

.summary-copy h1 {
  max-width: 760px;
  margin-bottom: 12px;
  padding-top: 0;
  font-size: clamp(30px, 3vw, 48px);
  line-height: 1.18;
}

.summary-copy p {
  max-width: 900px;
  margin-bottom: 16px;
  color: #405571;
}

.intro-stats {
  width: min(920px, 100%);
  margin: 18px auto 0;
}

.page-shell {
  grid-template-columns: 248px minmax(0, 1fr) 336px;
  gap: 18px;
}

.document-panel {
  overflow: visible;
}

.doc-table-head {
  display: none;
}

.doc-list {
  display: grid;
  gap: 10px;
  padding: 0 18px 18px;
}

.doc-row {
  min-height: 88px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #d8e5f2;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(23, 45, 83, 0.04);
}

.doc-row:hover {
  background: #fff;
  border-color: #b9d6f5;
  box-shadow: 0 12px 26px rgba(23, 45, 83, 0.08);
}

.doc-cover,
.doc-type {
  width: 48px;
  height: 56px;
}

.doc-main h3 {
  font-size: 16px;
}

.doc-main p {
  margin-top: 4px;
  font-size: 13px;
}

.doc-meta {
  margin-top: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.doc-meta span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  color: #4d617b;
  background: #f4f8fd;
  border: 1px solid #e0e9f4;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.doc-category,
.doc-format,
.doc-date {
  display: none;
}

.doc-actions {
  min-width: 160px;
  grid-column: auto;
  grid-row: auto;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.doc-actions .btn {
  min-width: 72px;
  min-height: 36px;
}

.site-footer {
  display: block;
  margin-top: 28px;
  padding: 18px 0;
  background: #10203d;
}

.footer-grid {
  min-height: 0;
  justify-content: flex-end;
}

.footer-links {
  margin-left: auto;
}

.footer-bottom {
  padding: 8px 0 0;
}

@media (max-width: 1180px) {
  .page-shell {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .right-rail {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .portal-summary {
    padding: 24px 14px 22px;
  }

  .summary-copy h1 {
    font-size: 27px;
  }

  .intro-stats {
    grid-template-columns: 1fr;
  }

  .doc-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .doc-actions {
    grid-column: 1 / -1;
    min-width: 0;
    justify-content: stretch;
  }

  .doc-actions .btn {
    flex: 1;
  }
}

/* Final stats and pager polish */
.intro-stats {
  width: min(980px, 100%);
  margin: 20px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.intro-stats > div {
  position: relative;
  min-height: 104px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  overflow: hidden;
  border: 1px solid rgba(134, 166, 206, 0.34);
  border-right: 1px solid rgba(134, 166, 206, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 251, 255, 0.92)),
    radial-gradient(circle at 90% 12%, rgba(8, 103, 232, 0.12), transparent 30%);
  box-shadow: 0 14px 34px rgba(20, 46, 84, 0.08);
}

.intro-stats > div::after {
  content: "";
  position: absolute;
  inset: auto 18px 0 auto;
  width: 92px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: rgba(8, 103, 232, 0.18);
}

.intro-stats > div::before {
  width: 52px;
  height: 52px;
  margin: 0;
  border-radius: 14px;
  box-shadow: inset 0 -10px 18px rgba(0, 0, 0, 0.08), 0 12px 20px rgba(8, 103, 232, 0.12);
}

.intro-stats > div:nth-child(2)::after {
  background: rgba(19, 170, 181, 0.22);
}

.intro-stats > div:nth-child(3)::after {
  background: rgba(245, 189, 99, 0.28);
}

.intro-stats strong {
  display: block;
  color: var(--ehs-blue);
  font-size: clamp(32px, 2.5vw, 44px);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 950;
}

.intro-stats span {
  display: block;
  margin-top: 8px;
  color: #4f6178;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 850;
}

.doc-list-pager {
  min-height: 62px;
  margin: 0 18px 18px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #d9e7f6;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  box-shadow: 0 10px 24px rgba(20, 46, 84, 0.05);
}

.doc-pager-summary,
.doc-pager-actions,
.doc-pager-pages {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.doc-pager-summary strong {
  color: #10203d;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.doc-pager-summary span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  color: #51637a;
  background: #f1f6fc;
  border: 1px solid #e1ebf6;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.doc-pager-nav,
.doc-pager-pages button {
  min-width: 34px;
  min-height: 32px;
  padding: 0 10px;
  color: #234260;
  background: #fff;
  border: 1px solid #d8e5f2;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.doc-pager-pages button.active {
  color: #fff;
  background: var(--ehs-blue);
  border-color: var(--ehs-blue);
  box-shadow: 0 8px 16px rgba(8, 103, 232, 0.18);
}

.doc-pager-nav:hover:not(:disabled),
.doc-pager-pages button:hover:not(.active) {
  color: var(--ehs-blue);
  border-color: #b8d7fb;
  background: #f5f9ff;
}

.doc-pager-nav:disabled {
  color: #9aa9ba;
  background: #f2f5f8;
  cursor: not-allowed;
}

.doc-page-gap {
  min-width: 18px;
  text-align: center;
  color: #7d8ca0;
  font-weight: 800;
}

.doc-page-jump {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #51637a;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.doc-page-jump input {
  width: 50px;
  height: 32px;
  padding: 0 8px;
  color: #10203d;
  border: 1px solid #d8e5f2;
  border-radius: 8px;
  background: #fff;
  text-align: center;
  font-weight: 900;
}

@media (max-width: 900px) {
  .intro-stats {
    grid-template-columns: 1fr;
  }

  .doc-list-pager {
    align-items: stretch;
    flex-direction: column;
  }

  .doc-pager-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .intro-stats > div {
    grid-template-columns: 48px minmax(0, 1fr);
    min-height: 92px;
    padding: 16px;
  }

  .intro-stats > div::before {
    width: 46px;
    height: 46px;
  }

  .intro-stats strong {
    font-size: 30px;
  }
}

/* ================================
   美化覆盖样式 (2026-06-12)
   ================================ */

/* 顶部公告条 */
.utility-bar {
  display: block !important;
  height: 36px;
  background: linear-gradient(135deg, #08745f, #055244);
  border-bottom: 0;
}
.utility-bar .utility-inner {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.utility-bar span,
.utility-bar a {
  color: rgba(255,255,255,.9);
  font-size: 12.5px;
}
.utility-bar a:hover { color: #fff; }

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--ehs-line);
}
.portal-header { min-height: 68px; }

/* 导航 */
.portal-nav {
  height: 44px;
  border-top: 1px solid var(--ehs-line);
  background: #fff;
}
.portal-nav-inner {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.portal-nav-inner a,
.portal-nav-inner button {
  height: 44px;
  line-height: 44px;
  padding: 0 14px;
  font-size: 14px;
  color: #4a6358;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}
.portal-nav-inner a.active {
  color: #08745f;
  border-bottom: 2px solid #08745f;
  font-weight: 700;
}

/* Hero 区 */
.portal-summary {
  background: linear-gradient(135deg, #e8f5f0 0%, #f5f9ff 60%, #fff 100%);
  border-bottom: 1px solid #daeee8;
  border-radius: 0;
  padding: 24px 28px;
  min-height: 0;
  margin-top: 0;
}
.portal-summary .summary-copy h1 {
  font-size: 22px;
  line-height: 1.35;
}
.intro-stats {
  background: transparent;
  border: 0;
  box-shadow: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: auto;
  margin: 0;
}
.intro-stats > div {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  display: block;
  text-align: center;
  min-height: 0;
}
.intro-stats > div::before,
.intro-stats > div::after {
  display: none;
}
.intro-stats strong {
  color: #08745f;
  font-size: 22px;
  font-weight: 800;
}
.intro-stats span {
  color: #607a82;
  font-size: 12px;
  margin-top: 4px;
  font-weight: 400;
}

/* 快捷分类隐藏 */
.quick-category-section {
  display: none !important;
}

/* 三栏布局 */
.page-shell {
  grid-template-columns: 250px minmax(0, 1fr) 260px;
  gap: 18px;
  padding-top: 18px;
  padding-bottom: 24px;
}
@media (max-width: 1180px) {
  .page-shell {
    grid-template-columns: 230px minmax(0, 1fr);
  }
  .right-rail {
    display: none;
  }
}

/* 左侧栏 sticky + 滚动 */
.sidebar {
  position: sticky;
  top: 18px;
  align-self: start;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb {
  background: #c5d8d2;
  border-radius: 4px;
}
.catalog-panel .catalog-tree {
  max-height: 420px;
  overflow-y: auto;
}

/* 表头隐藏 */
.doc-table-head {
  display: none !important;
}

/* 文档卡片 */
.document-panel {
  border-radius: var(--ehs-radius);
  border: 1px solid var(--ehs-line);
  overflow: hidden;
}
.doc-list {
  background: #fff;
}
.doc-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid #f0f5f3;
  min-height: 0;
}
.doc-row:hover {
  background: #f4fbf8;
}

.doc-type,
.doc-cover {
  width: 52px;
  height: 68px;
  border-radius: 4px;
  font-size: 14px;
}
.doc-cover img {
  border-radius: 4px;
}

.doc-main {
  flex: 1;
  min-width: 0;
}
.doc-main h3 {
  font-size: 14.5px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #17252b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.doc-main p {
  font-size: 12px;
  color: #607a82;
  margin: 0 0 6px;
  line-height: 1.5;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.doc-meta {
  margin-top: 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.doc-meta > span {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  background: #f0f4f2;
  color: #607a82;
}
/* 类型标签高亮 */
.doc-meta > span:nth-child(2) {
  font-weight: 700;
}
.doc-meta > span:nth-child(2):not([class]) {
  background: #f0f4f2;
  color: #607a82;
}

/* 右侧按钮 */
.doc-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: auto;
  grid-column: auto;
  grid-row: auto;
}
.doc-actions .btn {
  min-width: auto;
  min-height: 32px;
  padding: 6px 14px;
  font-size: 12.5px;
  border-radius: 4px;
  font-weight: 500;
}
.doc-actions .btn-light {
  background: #fff;
  border: 1px solid #dce8e5;
  color: #607a82;
}
.doc-actions .btn-light:hover {
  border-color: #08745f;
  color: #08745f;
}
.doc-actions .btn-primary {
  background: #2b679e;
  border-color: #2b679e;
  color: #fff;
}
.doc-actions .btn-primary:hover {
  background: #1e4a74;
  border-color: #1e4a74;
}

/* 分页器 */
.doc-list-pager {
  border-color: #daeee8;
  background: linear-gradient(180deg, #fff, #f7fbf9);
}
.doc-pager-pages button.active {
  background: #08745f;
  border-color: #08745f;
  box-shadow: 0 8px 16px rgba(8,116,95,.18);
}

/* 右侧栏 */
.right-rail {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 18px;
  align-self: start;
}
.member-card {
  border: 1px solid var(--ehs-line);
}

/* 小程序 QR 面板 */
.mini-program-card {
  background: #fff;
  border: 1px solid var(--ehs-line);
  border-radius: var(--ehs-radius);
  overflow: hidden;
  text-align: center;
}
.mini-program-head {
  background: linear-gradient(135deg, #08745f, #2e9e6e);
  padding: 8px 14px 6px;
  display: block;
}
.mini-program-head strong {
  font-size: 12.5px;
  color: #fff;
  display: block;
  letter-spacing: .3px;
}
.mini-program-head .mini-link-icon,
.mini-program-head p {
  display: none;
}
.mini-program-qr {
  padding: 12px;
}
.mini-program-qr img,
.mini-program-qr canvas {
  width: 88px;
  height: 88px;
  border: 2px dashed #08745f;
  border-radius: 6px;
  background: #f7fcf9;
  padding: 8px;
  display: block;
  margin: 0 auto;
}
.mini-program-features {
  padding: 0 14px 14px;
  font-size: 11.5px;
  color: #607a82;
}

/* 手机端适配 */
@media (max-width: 760px) {
  .page-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    max-height: none;
  }
  .right-rail {
    display: none;
  }
  .doc-row {
    padding: 12px 14px;
    gap: 10px;
  }
  .doc-type,
  .doc-cover {
    width: 44px;
    height: 56px;
  }
  .doc-actions {
    display: none;
  }
  .intro-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .intro-stats strong {
    font-size: 18px;
  }
}

@media (max-width: 760px) {
  .simple-header,
  .account-shell,
  .plans-shell {
    width: min(100%, calc(100% - 20px));
  }

  .simple-header {
    min-height: 62px;
    padding-top: 8px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .simple-nav {
    width: 100%;
    gap: 8px;
    flex-wrap: wrap;
  }

  .simple-nav a {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .account-shell,
  .plans-shell {
    padding: 16px 0 84px;
  }

  .plans-hero {
    padding: 18px 16px;
    border-radius: 12px;
  }

  .plans-hero h1 {
    font-size: 22px;
  }

  .plans-hero p {
    font-size: 13px;
    line-height: 1.7;
  }

  .plans-detail-list {
    gap: 12px;
  }

  .plan-detail {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
    border-radius: 14px;
  }

  .plan-detail-main h2 {
    font-size: 20px;
  }

  .plan-detail-main p,
  .plan-detail-main li {
    font-size: 13px;
    line-height: 1.65;
  }

  .plan-detail-side {
    display: grid;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--ehs-line);
  }

  .plan-price {
    font-size: 30px;
  }

  .plan-detail-side .btn,
  .btn-block {
    width: 100%;
    min-height: 44px;
    border-radius: 10px;
    font-size: 15px;
  }

  .inline-pay-panel {
    padding: 16px;
    border-radius: 14px;
  }

  .inline-pay-main h2 {
    font-size: 20px;
  }

  .inline-pay-main p {
    font-size: 13px;
    line-height: 1.65;
  }
}

.invite-hero-card,
.profile-panel-hero,
.profile-summary-panel {
  border-radius: 22px;
  border: 1px solid #e3ebf2;
  box-shadow: 0 18px 40px rgba(15, 39, 62, 0.07);
}

.invite-hero-card {
  max-width: 760px;
  margin: 28px auto 0;
  padding: 34px 32px;
  background:
    radial-gradient(circle at top right, rgba(11, 123, 99, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff, #fbfdff);
}

.invite-hero-card > span,
.profile-panel-hero span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  color: #0b7b63;
  background: #e8f6f1;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.invite-hero-card h1 {
  margin: 16px 0 12px;
  font-size: 40px;
  line-height: 1.18;
}

.invite-hero-card p {
  margin: 0;
  color: #627489;
  font-size: 16px;
  line-height: 1.8;
}

.invite-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.invite-actions .btn,
.invite-actions .profile-action,
.login-main-btn {
  min-width: 168px;
  min-height: 48px;
  justify-content: center;
  border-radius: 14px;
  font-size: 15px;
}

.profile-panel-hero {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 26px 28px;
  background:
    radial-gradient(circle at top right, rgba(11, 123, 99, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff, #fbfdff);
}

.profile-avatar {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(180deg, #0f8a72, #0b705b);
  border-radius: 28px;
  font-size: 34px;
  font-weight: 900;
  box-shadow: 0 18px 36px rgba(11, 123, 99, 0.22);
}

.profile-hero-copy h1 {
  margin: 14px 0 8px;
}

.profile-hero-copy p {
  margin: 0;
  color: #627489;
  font-size: 16px;
}

.profile-summary-panel {
  margin-top: 18px;
  display: grid;
  gap: 14px;
  background: linear-gradient(180deg, #ffffff, #fcfdff);
}

.profile-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef3f7;
}

.profile-summary-row:last-of-type {
  padding-bottom: 0;
  border-bottom: 0;
}

.profile-summary-row strong {
  color: #10203d;
  font-size: 15px;
}

.profile-summary-row span {
  color: #5d7088;
  font-size: 15px;
  text-align: right;
}

.profile-summary-note {
  color: #8090a3;
  font-size: 13px;
  line-height: 1.7;
}

.profile-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.profile-action {
  min-height: 46px;
  justify-content: center;
  padding: 0 18px;
  border-radius: 14px;
}

.profile-action.danger {
  color: #a23636;
  background: #fff7f7;
  border-color: #f1d0d0;
}

@media (max-width: 760px) {
  .invite-hero-card {
    margin-top: 14px;
    padding: 22px 18px;
    border-radius: 18px;
  }

  .invite-hero-card h1 {
    font-size: 26px;
  }

  .invite-hero-card p {
    font-size: 14px;
    line-height: 1.75;
  }

  .invite-actions,
  .profile-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .invite-actions .btn,
  .invite-actions .profile-action,
  .profile-action,
  .login-main-btn {
    width: 100%;
    min-width: 0;
  }

  .profile-panel-hero {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 22px 18px;
    border-radius: 18px;
  }

  .profile-avatar {
    width: 74px;
    height: 74px;
    border-radius: 22px;
    font-size: 28px;
  }

  .profile-hero-copy p,
  .profile-summary-row span {
    font-size: 14px;
  }

  .profile-summary-panel {
    padding: 18px;
    border-radius: 18px;
  }

  .profile-summary-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .profile-summary-row span {
    text-align: left;
  }
}

/* ============================================================
   移动端专用壳 (m-app) —— 通过 body.m-active 启用
   - 桌面端: 完全隐藏 .m-app，不影响现有布局
   - 移动端: 显示 .m-app，隐藏桌面端主壳（page-root 等）
   - 调试: URL ?force_mobile=1 强制启用
   ============================================================ */

/* 桌面端：永远隐藏 m- 壳 */
.m-app { display: none !important; }

/* 移动端激活时：显示 m- 壳，隐藏桌面端 */
body.m-active .m-app { display: block !important; }
body.m-active .page-root,
body.m-active .utility-bar,
body.m-active .site-header,
body.m-active .portal-footer {
  display: none !important;
}
body.m-active .portal-boot-screen { display: none !important; }
body.m-active { background: #f5f7fa; }

body.m-active .m-app {
  /* ===== 整体配色变量 ===== */
  --m-bg: #f5f7fa;
  --m-surface: #ffffff;
  --m-line: #eef2f7;
  --m-ink: #17252b;
  --m-muted: #8a95a5;
  --m-primary: #08745f;
  --m-primary-soft: #e8f5f1;
  --m-accent: #d97918;
  --m-radius: 10px;
  background: var(--m-bg);
  color: var(--m-ink);
  font: 14px/1.5 "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  padding-bottom: 64px;
  -webkit-font-smoothing: antialiased;
}

/* ===== 顶部 Logo + 搜索 ===== */
body.m-active .m-topbar {
  background: var(--m-primary);
  color: #fff;
  padding: 10px 14px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 50;
}
body.m-active .m-brand {
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
body.m-active .m-brand span { color: #f5bd63; }
body.m-active .m-search-form { flex: 1; }
body.m-active .m-search-form input {
  width: 100%;
  height: 34px;
  border: none;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 17px;
  padding: 0 12px 0 32px;
  color: #fff;
  font-size: 13px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,.7)' stroke-width='2'><circle cx='11' cy='11' r='7'/><path d='M21 21l-4.35-4.35'/></svg>");
  background-repeat: no-repeat;
  background-position: 10px center;
  background-size: 14px;
}
body.m-active .m-search-form input::placeholder { color: rgba(255, 255, 255, 0.6); }

/* ===== 主滚动区域 ===== */
body.m-active .m-main { padding: 0 14px 20px; }
body.m-active .m-view { display: block; }
body.m-active .m-view[hidden] { display: none; }

/* ===== Hero 统计 ===== */
body.m-active .m-hero { padding: 14px 0 6px; }
body.m-active .m-stats { display: flex; gap: 8px; }
body.m-active .m-stat-card {
  flex: 1;
  background: var(--m-surface);
  border-radius: var(--m-radius);
  padding: 12px 8px;
  text-align: center;
  box-shadow: 0 1px 8px rgba(8, 50, 40, 0.06);
}
body.m-active .m-stat-card strong {
  display: block;
  font-size: 18px;
  color: var(--m-primary);
  line-height: 1.2;
  margin-bottom: 3px;
  font-weight: 700;
}
body.m-active .m-stat-orange strong { color: var(--m-accent); }
body.m-active .m-stat-blue strong { color: #2a7be0; }
body.m-active .m-stat-card span { font-size: 11px; color: var(--m-muted); }

/* ===== 分区头 ===== */
body.m-active .m-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 16px 0 8px;
}
body.m-active .m-section-head h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--m-ink);
}
body.m-active .m-more-btn {
  background: none;
  border: none;
  color: var(--m-primary);
  font-size: 12px;
  padding: 0;
  cursor: pointer;
}

/* ===== 标签云 ===== */
body.m-active .m-tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
body.m-active .m-tag {
  background: var(--m-surface);
  border: 1px solid #e8eef5;
  color: #5a6776;
  border-radius: 16px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}
body.m-active .m-tag.active {
  background: var(--m-primary);
  color: #fff;
  border-color: var(--m-primary);
}

/* ===== 文件卡片 ===== */
body.m-active .m-file-list { display: flex; flex-direction: column; gap: 8px; }
body.m-active .m-file-card {
  background: var(--m-surface);
  border-radius: var(--m-radius);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  cursor: pointer;
}
body.m-active .m-file-type {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
body.m-active .m-type-pdf { background: #e84a4a; }
body.m-active .m-type-doc { background: #2a7be0; }
body.m-active .m-type-ppt { background: #e87b1d; }
body.m-active .m-type-xls { background: #1a9b5c; }
body.m-active .m-file-info { flex: 1; min-width: 0; }
body.m-active .m-file-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--m-ink);
  line-height: 1.4;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
body.m-active .m-file-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  color: var(--m-muted);
}
body.m-active .m-file-cat-tag {
  background: #f0f5ff;
  color: #2a7be0;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
}
body.m-active .m-file-dl {
  background: var(--m-primary);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 5px 10px;
  font-size: 12px;
  flex-shrink: 0;
  cursor: pointer;
}
body.m-active .m-file-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
body.m-active .m-file-btn {
  min-width: 52px;
  height: 30px;
  border-radius: 15px;
  padding: 0 12px;
  font-size: 12px;
  border: 1px solid transparent;
  cursor: pointer;
}
body.m-active .m-file-preview {
  background: #ffffff;
  color: var(--m-primary);
  border-color: rgba(15, 138, 114, 0.24);
}
body.m-active .m-file-dl {
  min-width: 52px;
  height: 30px;
  padding: 0 12px;
  border-radius: 15px;
}

/* ===== 二级页头 ===== */
body.m-active .m-page-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0 8px;
}
body.m-active .m-page-head h2 { font-size: 16px; font-weight: 600; color: var(--m-ink); }
body.m-active .m-page-head-back { padding: 12px 0 6px; }
body.m-active .m-back-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f4f6f9;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
body.m-active .m-back-btn::before {
  content: '';
  width: 7px;
  height: 7px;
  border-left: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: rotate(45deg);
  margin-left: 2px;
}

/* ===== 面包屑 ===== */
body.m-active .m-breadcrumb {
  font-size: 12px;
  color: var(--m-muted);
  padding: 4px 0 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
body.m-active .m-breadcrumb .m-bc-cur { color: var(--m-ink); font-weight: 500; }
body.m-active .m-breadcrumb .m-bc-sep { color: #c5cdd7; margin: 0 2px; }

/* ===== 分类列表 ===== */
body.m-active .m-category-list {
  background: var(--m-surface);
  border-radius: var(--m-radius);
  overflow: hidden;
}
body.m-active .m-cat-item {
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--m-line);
  cursor: pointer;
}
body.m-active .m-cat-item:last-child { border-bottom: none; }
body.m-active .m-cat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
body.m-active .m-cat-info { flex: 1; min-width: 0; }
body.m-active .m-cat-name { font-size: 14px; font-weight: 500; color: var(--m-ink); margin-bottom: 2px; }
body.m-active .m-cat-meta { font-size: 11px; color: var(--m-muted); }
body.m-active .m-cat-arrow { color: #c5cdd7; font-size: 18px; flex-shrink: 0; }
body.m-active .m-cat-item .m-cat-count { font-size: 12px; color: var(--m-muted); margin-right: 6px; }

/* ===== 排序栏 ===== */
body.m-active .m-sort-bar {
  display: flex;
  gap: 14px;
  background: var(--m-surface);
  padding: 10px 12px;
  border-radius: var(--m-radius);
  margin: 8px 0 10px;
  font-size: 13px;
  border: 1px solid var(--m-line);
}
body.m-active .m-sort-item { color: #5a6776; cursor: pointer; }
body.m-active .m-sort-item.active { color: var(--m-primary); font-weight: 600; }

/* ===== 占位页 ===== */
body.m-active .m-placeholder {
  background: var(--m-surface);
  border-radius: var(--m-radius);
  padding: 50px 20px;
  text-align: center;
  color: var(--m-muted);
  font-size: 13px;
}
body.m-active .m-placeholder-icon { font-size: 50px; margin-bottom: 10px; }

/* ===== 底部 Tab 栏（固定） ===== */
body.m-active .m-tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--m-surface);
  border-top: 1px solid var(--m-line);
  display: flex;
  height: 56px;
  z-index: 60;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.04);
  max-width: 100vw;
}
body.m-active .m-tab {
  flex: 1;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--m-muted);
  font-size: 10px;
  cursor: pointer;
  padding: 0;
}
body.m-active .m-tab-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
body.m-active .m-tab-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.m-active .m-tab.active { color: var(--m-primary); }

/* 移动端自适应：max-width 容器 */
@media (max-width: 760px) {
  body.m-active .m-app { max-width: 760px; margin: 0 auto; }
}
