/* Portal identity and copyright match the CAD Baidu page. */
html { scroll-padding-top: 180px; }
.portal-header { background: #fff; border-bottom: 1px solid #edf1f1; font-family: "Segoe UI", "Microsoft YaHei", sans-serif; line-height: 1.6; letter-spacing: 0; }
.portal-inner { width: calc(100% - 80px); max-width: 1240px; margin-inline: auto; min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-block: 12px; }
.portal-brand { display: block; flex: 0 0 220px; }
.portal-brand img { display: block; width: 220px; height: auto; }
.portal-tools { display: flex; align-items: center; justify-content: flex-end; gap: 30px; min-width: 0; }
.portal-nav { display: flex; align-items: center; white-space: nowrap; font-size: 15px; color: #4b5d61; padding-block: 10px; }
.portal-tools:hover .portal-nav { color: #008b81; }
.portal-search { display: flex; align-items: stretch; width: 280px; min-width: 0; height: 40px; border: 1px solid #dce5e5; border-radius: 6px; overflow: hidden; background: #f7f9f9; }
.portal-tools:hover .portal-search { border-color: #008b81; }
.portal-search-field { flex: 1; min-width: 0; }
.portal-search-button { display: flex; align-items: center; justify-content: center; flex: 0 0 64px; background: #e5eceb; color: #647874; font-size: 14px; }
.portal-header a:focus-visible { outline: 3px solid #007b72; outline-offset: 5px; }
.copyright-footer { width: 100%; min-height: 0; background: #333; color: #bdbdbd; padding: 22px 20px; text-align: center; font: 13px/1.9 "Segoe UI", "Microsoft YaHei", sans-serif; letter-spacing: 0; overflow-wrap: anywhere; }
.copyright-footer p { margin: 0; text-wrap: wrap; }
.copyright-footer p + p { margin-top: 4px; }
.copyright-footer .company-contact { display: flex; justify-content: center; flex-wrap: wrap; gap: 2px 24px; }
.copyright-footer .company-contact span { margin: 0; white-space: normal; }
.copyright-footer a { color: inherit; }
.copyright-footer a:hover { text-decoration: underline; color: #fff; }
.copyright-footer a:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
.copyright-footer .footer-links { color: inherit; margin-top: 8px; }
.copyright-footer .footer-links:empty { display: none; }
.baidu-exclusive .site-header { background: rgba(255, 255, 255, .95); }
.wangpai-page .site-header { position: sticky; height: auto; }
.wangpai-page .nav-shell { max-width: 1240px; height: 76px; }
.wangpai-page .hero { padding-top: 28px; }
.wangpai-page .hero-backdrop { top: 0; }
.wangpai-page .release-meta { flex-wrap: wrap; row-gap: 4px; }

@media (max-width: 1100px) {
  .portal-inner { width: calc(100% - 48px); }
}
@media (max-width: 950px) {
  html { scroll-padding-top: 210px; }
}
@media (max-width: 900px) {
  .portal-tools { gap: 20px; }
  .portal-search { width: 230px; }
}
@media (max-width: 800px) {
  html { scroll-padding-top: 255px; }
  .portal-inner { flex-wrap: wrap; gap: 12px; padding-block: 14px; }
  .portal-brand { flex-basis: 188px; }
  .portal-brand img { width: 188px; }
  .portal-tools { width: 100%; justify-content: space-between; gap: 16px; }
  .portal-nav { font-size: 14px; }
  .portal-search { width: 250px; flex: 0 1 250px; height: 36px; }
  .portal-search-button { flex-basis: 48px; font-size: 12px; }
  .copyright-footer { padding: 18px 20px; font-size: 12px; }
}
@media (max-width: 760px) {
  .wangpai-page .nav-shell { height: 65px; }
  .wangpai-page .hero { padding-top: 31px; }
}
@media (max-width: 480px) {
  .wangpai-page .hero { padding-top: 25px; }
}
@media (max-width: 420px) {
  .portal-inner { width: calc(100% - 36px); }
}
@media (max-width: 380px) {
  .portal-tools { gap: 10px; }
  .portal-nav { font-size: 13px; }
  .portal-search-button { flex-basis: 40px; }
}
@media (min-width: 761px) and (max-height: 850px) {
  .wangpai-page .hero { padding-top: 17px; }
}
