Toggle menu
1
18
1
210
技术文档中心
Toggle preferences menu
Toggle personal menu
Administrator Login Only
Access is restricted to site administrators.

MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
修正产品目录搜索栏与首页导航状态
Git release cd2b48a90477
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
:root {
:root {
   --techdocs-blue: #1464c0;
   --lcd-blue: #63b7e8;
   --techdocs-blue-dark: #0b4f9c;
   --lcd-blue-dark: #258ac4;
   --techdocs-ink: #172b3f;
   --lcd-ink: #233245;
   --techdocs-muted: #5e7184;
   --lcd-muted: #66758a;
   --techdocs-border: #d9e4ee;
   --lcd-line: #dfe7ef;
   --techdocs-surface: #f4f8fc;
   --lcd-panel: #f6f9fc;
}
}


.mw-body-content { color: var(--techdocs-ink); }
.mw-body-content {
.mw-body-content a { text-underline-offset: 2px; }
  color: var(--lcd-ink);
.techdocs-hero {
  padding: clamp(2rem, 6vw, 4.75rem);
  border: 1px solid #cfe0f1;
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 18%, rgba(20,100,192,.18), transparent 28%),
    linear-gradient(135deg, #f8fbff 0%, #eaf3fc 100%);
  box-shadow: 0 20px 60px rgba(30, 80, 130, .10);
  margin-bottom: 2.4rem;
}
}
.techdocs-hero__eyebrow,.techdocs-kicker {
 
   display: block; color: var(--techdocs-blue); font-size: .75rem;
/* Keep the active table-of-contents state aligned with module title bars. */
   font-weight: 750; letter-spacing: .14em; margin-bottom: .5rem;
.citizen-toc .citizen-toc-list-item--active > .citizen-toc-link {
   color: #34b0b0;
}
 
.citizen-toc .citizen-toc-indicator {
  background-color: #34b0b0;
}
 
/* Make homepage catalog groups distinct from their nested module links. */
body.page-Main_Page
  .citizen-page-sidebar
  .citizen-toc-list-item.citizen-toc-level-1
   > .citizen-toc-link:not(.citizen-toc-top) {
  font-weight: 800;
}
}
.techdocs-hero__title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.12; }
 
.techdocs-hero__summary { max-width: 760px; color: var(--techdocs-muted); font-size: 1.05rem; margin: 1rem 0 1.6rem; }
/* 精简 Citizen 主菜单,仅保留 Sidebar 中的三个核心入口。 */
.techdocs-hero .mw-inputbox-input { min-width: min(100%, 420px); border-radius: 10px; border: 1px solid #b9cde0; padding: .7rem .9rem; }
#citizen-main-menu #p-navigation > .citizen-menu__heading,
.techdocs-hero .mw-ui-button { border-radius: 10px; }
#citizen-main-menu #t-specialpages,
.techdocs-section-heading { display:flex; align-items:end; justify-content:space-between; gap:1rem; margin:2rem 0 1rem; }
#citizen-main-menu #t-upload {
.techdocs-section-heading h2 { margin:0; border:0; font-size:1.75rem; }
   display: none;
.techdocs-section-note { color:var(--techdocs-muted); font-size:.9rem; }
.techdocs-category-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.techdocs-category-card {
  position:relative; min-height:190px; padding:1.35rem; border:1px solid var(--techdocs-border);
  border-radius:16px; background:#fff; box-shadow:0 8px 24px rgba(36,71,105,.06);
   transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
}
.techdocs-category-card:hover { transform:translateY(-3px); border-color:#8bb7df; box-shadow:0 16px 34px rgba(36,71,105,.12); }
.techdocs-category-card__icon { display:inline-flex; padding:.35rem .55rem; border-radius:7px; background:#e8f2fc; color:var(--techdocs-blue); font-size:.72rem; font-weight:800; letter-spacing:.08em; }
.techdocs-category-card h3 { margin:.9rem 0 .55rem; font-size:1.2rem; }
.techdocs-category-card p { color:var(--techdocs-muted); margin:0 0 1rem; }
.techdocs-category-card__link { color:var(--techdocs-blue); font-weight:700; font-size:.88rem; }
.techdocs-feature-grid { display:grid; grid-template-columns:1.2fr .8fr; gap:1rem; margin:2rem 0; }
.techdocs-feature-panel { padding:1.7rem; border-radius:18px; color:#fff; background:linear-gradient(135deg,var(--techdocs-blue-dark),#2580d8); }
.techdocs-feature-panel--muted { color:var(--techdocs-ink); background:var(--techdocs-surface); border:1px solid var(--techdocs-border); }
.techdocs-feature-panel h2 { margin:.25rem 0 .65rem; border:0; }
.techdocs-feature-panel:not(.techdocs-feature-panel--muted) a { color:#fff; }
.techdocs-actions { margin-top:1rem; font-weight:700; }
.techdocs-notice { padding:1rem 1.2rem; border-left:4px solid var(--techdocs-blue); background:#eef6fd; border-radius:8px; color:#38546e; }
.techdocs-product-card { border:1px solid var(--techdocs-border); border-radius:16px; overflow:hidden; margin:1rem 0 1.5rem; box-shadow:0 10px 28px rgba(36,71,105,.08); }
.techdocs-product-card__header { display:flex; justify-content:space-between; gap:1rem; align-items:center; padding:1.2rem 1.4rem; background:linear-gradient(120deg,#f7fbff,#eaf3fc); }
.techdocs-product-card__model { font-size:1.8rem; font-weight:800; color:var(--techdocs-blue-dark); }
.techdocs-spec-table { width:100%; margin:0!important; border:0!important; }
.techdocs-spec-table th { width:16%; color:#435b72; background:#f7f9fb; }
.techdocs-spec-table th,.techdocs-spec-table td { padding:.75rem!important; border-color:#e1e8ef!important; }
.techdocs-status-badge { display:inline-flex; padding:.3rem .65rem; border-radius:999px; font-size:.8rem; font-weight:750; }
.techdocs-status-badge--published { color:#146c43; background:#dff5e9; }
.techdocs-status-badge--draft { color:#8a5b00; background:#fff0c7; }
.techdocs-status-badge--archived { color:#586575; background:#e8edf2; }
.techdocs-anchor-bar { position:sticky; top:1rem; z-index:2; padding:.75rem 1rem; margin:1rem 0 1.5rem; border:1px solid var(--techdocs-border); border-radius:10px; background:rgba(255,255,255,.94); backdrop-filter:blur(8px); }
.techdocs-download-card { display:grid; grid-template-columns:64px 1fr auto; gap:1rem; align-items:center; padding:1rem; margin:.75rem 0; border:1px solid var(--techdocs-border); border-radius:13px; background:#fff; }
.techdocs-download-card__type { display:grid; place-items:center; min-height:48px; border-radius:9px; color:#fff; background:var(--techdocs-blue); font-size:.72rem; font-weight:800; }
.techdocs-download-card__body { display:flex; flex-direction:column; gap:.2rem; }
.techdocs-download-card__body span,.techdocs-download-card__body small { color:var(--techdocs-muted); }
.techdocs-download-card__action a { display:inline-flex; padding:.55rem .85rem; border-radius:8px; color:#fff!important; background:var(--techdocs-blue); font-weight:750; text-decoration:none; }
.techdocs-anchor-bar,.techdocs-spec-table,.mw-highlight,pre { max-width:100%; box-sizing:border-box; }
.mw-highlight,pre { overflow-x:auto; }
.techdocs-download-card__body,.techdocs-feature-panel,.techdocs-category-card { min-width:0; }


@media (max-width: 900px) {
/* Hide the Citizen main-menu toggle and drawer on every page. */
  .techdocs-category-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.citizen-drawer.citizen-header__item {
   .techdocs-feature-grid { grid-template-columns:1fr; }
   display: none !important;
}
}
@media (max-width: 600px) {
 
  .techdocs-hero { padding:1.5rem; border-radius:16px; }
/* 隐藏所有页面底部的页面信息、操作栏和完整站点页脚。 */
  .techdocs-hero .mw-inputbox-form { display:grid; gap:.55rem; }
.citizen-page-footer,
  .techdocs-hero .mw-inputbox-input,.techdocs-hero .mw-ui-button { width:100%; min-width:0; margin:0; box-sizing:border-box; }
.citizen-page-actions,
  .techdocs-category-grid { grid-template-columns:1fr; }
.mw-footer.citizen-footer {
  .techdocs-section-heading { display:block; }
   display: none !important;
  .techdocs-section-note { display:block; margin-top:.35rem; }
  .techdocs-product-card__header { align-items:flex-start; flex-direction:column; }
   .techdocs-spec-table { display:block; overflow-x:auto; }
  .techdocs-anchor-bar { overflow-x:auto; white-space:nowrap; }
  .techdocs-download-card { grid-template-columns:50px 1fr; }
  .techdocs-download-card__action { grid-column:1/-1; }
  .techdocs-download-card__action a { justify-content:center; width:100%; box-sizing:border-box; }
}
}


/* Creative development board catalog landing page */
/* 首页模块标题不显示章节编辑入口,后台和其他页面编辑功能保持不变。 */
:root {
body.page-Main_Page .mw-editsection {
  --catalog-teal: #0c9ca2;
   display: none !important;
  --catalog-teal-dark: #07888e;
   --catalog-orange: #ee4a21;
  --catalog-bg: #f4f6f8;
  --catalog-ink: #172231;
  --catalog-muted: #6f7889;
  --catalog-line: #e4e8ed;
}
}


body.page-Main_Page,
/* 产品二级页:隐藏章节编辑入口及滚动后的粘性操作按钮组。 */
body.page-产品目录 { overflow-x: hidden; background: var(--catalog-bg); }
body:has(.lcd-product__hero) .mw-editsection,
body.page-Main_Page .mw-first-heading,
body:has(.lcd-product__hero) .citizen-sticky-header-end {
body.page-产品目录 .mw-first-heading,
  display: none !important;
body.page-Main_Page .mw-body-header,
}
body.page-产品目录 .mw-body-header { display: none; }
 
body.page-Main_Page .mw-body-content,
/* Product detail pages: remove the site tagline and publication badge without placeholders. */
body.page-产品目录 .mw-body-content { overflow: visible; }
body:has(.lcd-product__hero) #siteSub,
body.page-Main_Page .mw-parser-output,
body:has(.lcd-product__hero) .citizen-sticky-header-page-tagline,
body.page-产品目录 .mw-parser-output { margin: 0; }
body:has(.lcd-product__hero) .lcd-product__status {
  display: none !important;
}
 
/*
* 首页桌面版式:将 Citizen 的页面信息与目录侧栏放到正文左侧,
* 并限制整体版心宽度,在宽屏上保留对称留白。
*/
@media (min-width: 1200px) {
  body.page-Main_Page .citizen-body-container {
    width: min(100%, 91.5rem);
    margin-inline: auto;
    grid-template-columns: minmax(12rem, 15rem) minmax(0, 67.5rem);
    column-gap: 5rem;
    grid-template-areas:
      "sidebar content"
      "footer footer";
    justify-content: center;
  }
 
  body.page-Main_Page
    .citizen-page-sidebar
    .citizen-toc-link:not(.citizen-toc-top) {
    height: auto;
    min-height: 2rem;
    overflow: hidden;
    white-space: normal;
    overflow-wrap: anywhere;
    text-overflow: clip;
  }
}
 
.lcd-home-carousel {
  position: relative;
  aspect-ratio: 4 / 1;
  margin: 1rem 0 2rem;
  overflow: hidden;
  border: 1px solid var(--lcd-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(38, 68, 94, .1);
}


.catalog-shell {
.lcd-home-carousel__viewport,
  width: 100vw;
.lcd-home-carousel__slide,
  margin-left: calc(50% - 50vw);
.lcd-home-carousel__slide > p,
  margin-top: -1.25rem;
.lcd-home-carousel__slide .mw-file-element {
  color: var(--catalog-ink);
   width: 100%;
   background: var(--catalog-bg);
   height: 100%;
   min-height: 100vh;
}
}
.catalog-shell *, .catalog-shell *::before, .catalog-shell *::after { box-sizing: border-box; }
 
.catalog-topbar {
.lcd-home-carousel__viewport {
   position: relative;
   position: relative;
  z-index: 4;
  min-height: 74px;
  background: var(--catalog-teal);
  box-shadow: 0 2px 10px rgba(21, 43, 53, .14);
}
}
.catalog-topbar__inner {
 
   width: min(100% - 44px, 1820px);
.lcd-home-carousel__slide {
   min-height: 74px;
   position: absolute;
   margin: 0 auto;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s linear .4s, opacity .4s ease;
}
 
.lcd-home-carousel__slide--active {
  visibility: visible;
  opacity: 1;
   transition-delay: 0s;
}
 
.lcd-home-carousel__slide > p {
   margin: 0;
}
 
.lcd-home-carousel__slide .mw-file-element {
  display: block;
  object-fit: contain;
}
 
.lcd-home-carousel__dots {
  position: absolute;
  z-index: 2;
  bottom: clamp(.4rem, 1.1vw, .75rem);
  left: 50%;
   display: flex;
   display: flex;
  gap: .55rem;
   align-items: center;
   align-items: center;
   justify-content: space-between;
   padding: .3rem .45rem;
   gap: 2rem;
  transform: translateX(-50%);
}
 
.lcd-home-carousel__dot {
  width: .68rem;
  height: .68rem;
  padding: 0;
  border: 1px solid rgba(35, 50, 69, .38);
  border-radius: 50%;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 1px 3px rgba(35, 50, 69, .28);
   cursor: pointer;
}
}
.catalog-brand {
 
   display: flex;
.lcd-home-carousel__dot[aria-current="true"] {
   align-items: center;
  border-color: #237f7f;
   gap: .75rem;
  background: #34b0b0;
}
 
.lcd-home-carousel__dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
 
.lcd-home-carousel__viewport > p,
.lcd-home-carousel > p {
   display: none;
}
 
.lcd-module {
  margin: 1.75rem 0 2.5rem;
  scroll-margin-top: 5rem;
}
 
.lcd-module__intro {
   max-width: 58rem;
   margin: -.25rem 0 1rem;
  color: var(--lcd-muted);
  font-size: 1rem;
  line-height: 1.65;
}
 
.lcd-module__tab {
  margin: 0 0 1rem;
  padding: .68rem 1rem;
  border-radius: 5px;
  background: #34b0b0;
   color: #fff;
   color: #fff;
   font-size: 1.45rem;
   font-size: 1.05rem;
   font-weight: 800;
   font-weight: 700;
   letter-spacing: -.025em;
  text-align: center;
   white-space: nowrap;
   letter-spacing: .02em;
}
 
.lcd-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}
 
.lcd-card-grid > p {
   display: none;
}
}
.catalog-brand__mark {
 
   position: relative;
.lcd-card {
   display: inline-block;
   min-width: 0;
   width: 26px;
  overflow: hidden;
   height: 38px;
   border: 1px solid var(--lcd-line);
   border-radius: 4px;
   border-radius: 8px;
   background: var(--catalog-orange);
   background: #fff;
   box-shadow: 0 2px 7px rgba(38, 68, 94, .11);
   transition: transform .16s ease, box-shadow .16s ease;
}
}
.catalog-brand__mark::before,
 
.catalog-brand__mark::after,
.lcd-card:hover {
.catalog-brand__mark span::before,
   transform: translateY(-2px);
.catalog-brand__mark span::after {
   box-shadow: 0 7px 18px rgba(38, 68, 94, .16);
   content: "";
  position: absolute;
  width: 5px;
  height: 3px;
  border-radius: 2px;
   background: var(--catalog-orange);
}
}
.catalog-brand__mark::before { left: -7px; top: 8px; }
 
.catalog-brand__mark::after { right: -7px; top: 8px; }
.lcd-card__media {
.catalog-brand__mark span:nth-child(1)::before { left: -7px; top: 17px; }
.catalog-brand__mark span:nth-child(1)::after { right: -7px; top: 17px; }
.catalog-brand__mark span:nth-child(2)::before { left: -7px; top: 26px; }
.catalog-brand__mark span:nth-child(2)::after { right: -7px; top: 26px; }
.catalog-nav { display: flex; align-items: stretch; gap: .35rem; min-height: 74px; }
.catalog-nav > span { display: flex; align-items: center; }
.catalog-nav a,
.catalog-nav .mw-selflink {
   display: flex;
   display: flex;
  aspect-ratio: 4 / 3;
   align-items: center;
   align-items: center;
  justify-content: center;
  padding: .65rem;
  background: #f8fafc;
}
.lcd-card__media a,
.lcd-card__media .mw-file-description {
  display: contents;
}
.lcd-card__media img {
  width: 100%;
   height: 100%;
   height: 100%;
   padding: 0 1.25rem;
  object-fit: contain;
   color: rgba(255,255,255,.88) !important;
}
   font-size: 1.05rem;
 
   font-weight: 650;
.lcd-card__body {
   text-decoration: none !important;
   padding: .85rem .8rem .95rem;
   border: 4px solid transparent;
  text-align: center;
   transition: background .16s ease, color .16s ease;
}
 
.lcd-card__title {
   min-height: 2.7em;
   line-height: 1.35;
   font-weight: 600;
}
 
.lcd-card__title a {
   color: var(--lcd-ink);
}
 
.lcd-card__model {
  margin-top: .35rem;
   color: #27384b;
   font-weight: 800;
  overflow-wrap: anywhere;
}
}
.catalog-nav .mw-selflink { color: #fff !important; }
.catalog-nav a:hover { color: #fff !important; background: rgba(255,255,255,.09); }
.catalog-nav .is-active a,
.catalog-nav .is-active .mw-selflink { border-color: #ff5b5b; color: #fff !important; }


.catalog-page {
.lcd-product__hero {
  width: min(100% - 44px, 1820px);
  margin: 38px auto 0;
  padding-bottom: 4rem;
   display: grid;
   display: grid;
   grid-template-columns: 315px minmax(0, 1fr);
   grid-template-columns: minmax(15rem, .8fr) minmax(0, 1.2fr);
   gap: 28px;
   gap: 1.5rem;
   align-items: start;
  margin: 1rem 0 2rem;
  padding: 1.25rem;
   border: 1px solid var(--lcd-line);
  border-radius: 10px;
  background: var(--lcd-panel);
}
}
.catalog-sidebar {
 
   position: sticky;
.lcd-product__summary {
  top: 18px;
   align-self: center;
  overflow: hidden;
}
  border-radius: 11px;
 
   background: #fff;
.lcd-product__kicker {
   box-shadow: 0 3px 12px rgba(28, 42, 58, .14);
   color: #34b0b0;
   font-weight: 700;
}
}
.catalog-sidebar__title {
 
   padding: 17px 21px;
.lcd-product__model {
   color: #fff;
   margin: .35rem 0 .6rem;
  background: var(--catalog-teal);
   color: var(--lcd-ink);
   font-size: 1.2rem;
   font-size: clamp(1.35rem, 3vw, 2rem);
   font-weight: 800;
   font-weight: 800;
}
}
.catalog-sidebar__body { padding: 18px 18px 22px; }
 
.catalog-sidebar__all a {
.lcd-product__status {
   display: block;
   margin-bottom: .85rem;
  padding: 12px 14px;
  border-radius: 5px;
  color: #fff !important;
  background: var(--catalog-teal);
  font-weight: 750;
  text-decoration: none !important;
}
}
.catalog-sidebar__group { padding: 14px 14px 3px; }
 
.catalog-sidebar__group-title {
.lcd-product__gallery {
   display: flex;
   display: grid;
   align-items: center;
   grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: space-between;
   gap: .75rem;
   gap: 1rem;
  font-size: 1rem;
  font-weight: 760;
}
}
.catalog-sidebar__group.is-open .catalog-sidebar__group-title { color: var(--catalog-teal); }
 
.catalog-sidebar__items { padding: 12px 0 0 17px; display: grid; gap: 11px; color: #667184; font-size: .93rem; }
.lcd-product__gallery > div {
.catalog-content { min-width: 0; }
.catalog-search {
  min-height: 108px;
  padding: 28px;
   display: flex;
   display: flex;
  min-width: 0;
  aspect-ratio: 4 / 3;
   align-items: center;
   align-items: center;
   gap: 12px;
   justify-content: center;
   border-radius: 13px;
  padding: .6rem;
  border: 1px solid var(--lcd-line);
   border-radius: 7px;
   background: #fff;
   background: #fff;
  box-shadow: 0 4px 14px rgba(28, 42, 58, .14);
}
}
.catalog-search > p { flex: none; margin: 0; }
 
.catalog-search__icon { margin-right: -46px; z-index: 1; color: #9aa3b2; font-size: 1.75rem; line-height: 1; transform: rotate(-20deg); }
.lcd-product__gallery img {
.catalog-search .mw-inputbox-centered { flex: 1; width: 100%; margin: 0; }
  width: 100%;
.catalog-search .mw-inputbox-form,
  height: 100%;
.catalog-search .mw-inputbox-form-inline { display: flex; width: 100%; margin: 0; }
  object-fit: contain;
.catalog-search .cdx-text-input { flex: 1; width: 100%; min-width: 0; }
}
.catalog-search .mw-inputbox-input,
 
.catalog-search .mw-searchInput {
.lcd-spec-table {
   width: 100%;
   width: 100%;
   min-width: 0;
   table-layout: fixed;
   height: 50px;
}
   padding: 0 54px !important;
 
   border: 1px solid #d6dce4 !important;
.lcd-spec-table th:first-child {
   border-radius: 9px !important;
   width: 10rem;
   color: var(--catalog-ink);
}
   background: #fff;
 
   font-size: 1rem;
.lcd-status {
   box-shadow: none !important;
   display: inline-block;
   padding: .18rem .55rem;
   border-radius: 999px;
   color: #244158;
   background: #dceff9;
   font-size: .84rem;
   font-weight: 700;
}
}
.catalog-search .mw-inputbox-input::placeholder,
 
.catalog-search .mw-searchInput::placeholder { color: #a0a7b4; opacity: 1; }
.lcd-download-card,
.catalog-search .mw-ui-button,
.lcd-empty-resource {
.catalog-search .cdx-button { display: none; }
  padding: 1rem 1.15rem;
.catalog-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  border: 1px solid var(--lcd-line);
.catalog-card {
  border-left: 4px solid var(--lcd-blue);
  min-width: 0;
   border-radius: 6px;
  overflow: hidden;
   border-radius: 13px;
   background: #fff;
   background: #fff;
  box-shadow: 0 3px 11px rgba(28, 42, 58, .16);
  transition: transform .18s ease, box-shadow .18s ease;
}
}
.catalog-card:hover { transform: translateY(-4px); box-shadow: 0 13px 28px rgba(28, 42, 58, .18); }
 
.catalog-card__media { position: relative; aspect-ratio: 1.95 / 1; overflow: hidden; background: #dfe4e8; }
.lcd-download-card__name {
.catalog-card__media a { display: block; width: 100%; height: 100%; }
   font-size: 1.05rem;
.catalog-card__media img {
   font-weight: 700;
   display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
   object-fit: cover;
  transition: transform .28s ease;
}
}
.catalog-card:hover .catalog-card__media img { transform: scale(1.035); }
 
.catalog-badge {
.lcd-download-card__type {
   position: absolute;
   display: inline-block;
  z-index: 2;
   margin-right: .6rem;
   left: 20px;
   color: var(--lcd-blue-dark);
  top: 19px;
  padding: 5px 13px;
  border-radius: 999px;
   color: #fff;
  font-size: .78rem;
   font-weight: 800;
   font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
}
}
.catalog-badge--green { background: #10bd6b; }
.catalog-badge--amber { background: #f3b300; }
.catalog-badge--red { background: #f24b43; }
.catalog-card__body { min-width: 0; padding: 18px 22px 20px; }
.catalog-meta { display: flex; align-items: center; gap: 9px; color: #7b8494; font-size: .82rem; }
.catalog-chip { padding: 4px 9px; border-radius: 5px; color: #737d8c; background: #f1f3f5; }
.catalog-card h3 { margin: 13px 0 8px; border: 0; font-size: 1.13rem; line-height: 1.35; }
.catalog-card h3 a { color: var(--catalog-ink) !important; text-decoration: none !important; }
.catalog-card p { min-height: 3.15em; margin: 0; color: var(--catalog-muted); font-size: .92rem; line-height: 1.58; }
.catalog-card__footer { margin-top: 18px; display: flex; justify-content: space-between; gap: 1rem; color: #7c8492; font-size: .86rem; }
.catalog-card__footer a { color: var(--catalog-teal) !important; white-space: nowrap; text-decoration: none !important; }


@media (max-width: 1280px) {
.lcd-download-card__body {
   .catalog-page { grid-template-columns: 260px minmax(0,1fr); }
   display: inline-flex;
  .catalog-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  flex-wrap: wrap;
  gap: .25rem .75rem;
  align-items: baseline;
}
 
.lcd-download-card__action {
  margin-top: .65rem;
}
}
@media (max-width: 900px) {
 
  .catalog-topbar__inner { min-height: auto; padding: 15px 0; align-items: flex-start; flex-direction: column; gap: 11px; }
.lcd-download-card__meta,
  .catalog-nav { width: 100%; min-height: 46px; overflow-x: auto; }
.lcd-empty-resource {
  .catalog-nav a { padding: 0 .9rem; white-space: nowrap; }
   color: var(--lcd-muted);
   .catalog-page { margin-top: 22px; grid-template-columns: 1fr; }
  .catalog-sidebar { position: static; }
  .catalog-sidebar__body { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
  .catalog-sidebar__group { padding: 12px 10px; border: 1px solid var(--catalog-line); border-radius: 7px; }
  .catalog-sidebar__items { display: none; }
}
}
.lcd-manager-links {
  columns: 2 18rem;
}
.formtable {
  width: 100%;
  margin-bottom: 1rem;
}
.formtable th {
  width: 11rem;
  text-align: left;
  vertical-align: top;
}
.formtable input,
.formtable select,
.formtable textarea {
  box-sizing: border-box;
  max-width: 100%;
}
@media (max-width: 1000px) {
  .lcd-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lcd-product__hero {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
@media (max-width: 620px) {
   .catalog-shell { margin-top: -.75rem; }
   .lcd-card-grid {
  .catalog-topbar__inner, .catalog-page { width: min(100% - 24px, 1820px); }
    grid-template-columns: repeat(2, minmax(0, 1fr));
  .catalog-brand { font-size: 1.08rem; }
    gap: .75rem;
   .catalog-brand__mark { transform: scale(.82); transform-origin: left center; margin-right: -.2rem; }
  }
   .catalog-nav { gap: 0; }
 
   .catalog-nav a { padding: 0 .68rem; font-size: .88rem; }
   .lcd-product__gallery {
   .catalog-page { padding-bottom: 2rem; }
    grid-template-columns: 1fr;
  .catalog-sidebar__body { grid-template-columns: 1fr 1fr; }
  }
   .catalog-sidebar__all { grid-column: 1 / -1; }
 
   .catalog-search { min-height: auto; padding: 16px; }
   .lcd-card__title {
   .catalog-search .mw-inputbox-input,
    min-height: 0;
   .catalog-search .mw-searchInput { height: 46px; }
  }
   .catalog-grid { margin-top: 18px; grid-template-columns: 1fr; gap: 18px; }
 
   .catalog-card__media { aspect-ratio: 1.65 / 1; }
   .lcd-product__hero {
  .catalog-card__body { padding: 16px 17px 18px; }
    padding: .85rem;
   .catalog-card p { min-height: 0; }
  }
 
   .lcd-spec-table th:first-child {
    width: 7.5rem;
   }
 
   .formtable,
   .formtable tbody,
   .formtable tr,
   .formtable th,
   .formtable td {
    display: block;
    width: 100%;
   }
}
}

Latest revision as of 00:03, 27 July 2026

:root {
  --lcd-blue: #63b7e8;
  --lcd-blue-dark: #258ac4;
  --lcd-ink: #233245;
  --lcd-muted: #66758a;
  --lcd-line: #dfe7ef;
  --lcd-panel: #f6f9fc;
}

.mw-body-content {
  color: var(--lcd-ink);
}

/* Keep the active table-of-contents state aligned with module title bars. */
.citizen-toc .citizen-toc-list-item--active > .citizen-toc-link {
  color: #34b0b0;
}

.citizen-toc .citizen-toc-indicator {
  background-color: #34b0b0;
}

/* Make homepage catalog groups distinct from their nested module links. */
body.page-Main_Page
  .citizen-page-sidebar
  .citizen-toc-list-item.citizen-toc-level-1
  > .citizen-toc-link:not(.citizen-toc-top) {
  font-weight: 800;
}

/* 精简 Citizen 主菜单,仅保留 Sidebar 中的三个核心入口。 */
#citizen-main-menu #p-navigation > .citizen-menu__heading,
#citizen-main-menu #t-specialpages,
#citizen-main-menu #t-upload {
  display: none;
}

/* Hide the Citizen main-menu toggle and drawer on every page. */
.citizen-drawer.citizen-header__item {
  display: none !important;
}

/* 隐藏所有页面底部的页面信息、操作栏和完整站点页脚。 */
.citizen-page-footer,
.citizen-page-actions,
.mw-footer.citizen-footer {
  display: none !important;
}

/* 首页模块标题不显示章节编辑入口,后台和其他页面编辑功能保持不变。 */
body.page-Main_Page .mw-editsection {
  display: none !important;
}

/* 产品二级页:隐藏章节编辑入口及滚动后的粘性操作按钮组。 */
body:has(.lcd-product__hero) .mw-editsection,
body:has(.lcd-product__hero) .citizen-sticky-header-end {
  display: none !important;
}

/* Product detail pages: remove the site tagline and publication badge without placeholders. */
body:has(.lcd-product__hero) #siteSub,
body:has(.lcd-product__hero) .citizen-sticky-header-page-tagline,
body:has(.lcd-product__hero) .lcd-product__status {
  display: none !important;
}

/*
 * 首页桌面版式:将 Citizen 的页面信息与目录侧栏放到正文左侧,
 * 并限制整体版心宽度,在宽屏上保留对称留白。
 */
@media (min-width: 1200px) {
  body.page-Main_Page .citizen-body-container {
    width: min(100%, 91.5rem);
    margin-inline: auto;
    grid-template-columns: minmax(12rem, 15rem) minmax(0, 67.5rem);
    column-gap: 5rem;
    grid-template-areas:
      "sidebar content"
      "footer footer";
    justify-content: center;
  }

  body.page-Main_Page
    .citizen-page-sidebar
    .citizen-toc-link:not(.citizen-toc-top) {
    height: auto;
    min-height: 2rem;
    overflow: hidden;
    white-space: normal;
    overflow-wrap: anywhere;
    text-overflow: clip;
  }
}

.lcd-home-carousel {
  position: relative;
  aspect-ratio: 4 / 1;
  margin: 1rem 0 2rem;
  overflow: hidden;
  border: 1px solid var(--lcd-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(38, 68, 94, .1);
}

.lcd-home-carousel__viewport,
.lcd-home-carousel__slide,
.lcd-home-carousel__slide > p,
.lcd-home-carousel__slide .mw-file-element {
  width: 100%;
  height: 100%;
}

.lcd-home-carousel__viewport {
  position: relative;
}

.lcd-home-carousel__slide {
  position: absolute;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s linear .4s, opacity .4s ease;
}

.lcd-home-carousel__slide--active {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.lcd-home-carousel__slide > p {
  margin: 0;
}

.lcd-home-carousel__slide .mw-file-element {
  display: block;
  object-fit: contain;
}

.lcd-home-carousel__dots {
  position: absolute;
  z-index: 2;
  bottom: clamp(.4rem, 1.1vw, .75rem);
  left: 50%;
  display: flex;
  gap: .55rem;
  align-items: center;
  padding: .3rem .45rem;
  transform: translateX(-50%);
}

.lcd-home-carousel__dot {
  width: .68rem;
  height: .68rem;
  padding: 0;
  border: 1px solid rgba(35, 50, 69, .38);
  border-radius: 50%;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 1px 3px rgba(35, 50, 69, .28);
  cursor: pointer;
}

.lcd-home-carousel__dot[aria-current="true"] {
  border-color: #237f7f;
  background: #34b0b0;
}

.lcd-home-carousel__dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.lcd-home-carousel__viewport > p,
.lcd-home-carousel > p {
  display: none;
}

.lcd-module {
  margin: 1.75rem 0 2.5rem;
  scroll-margin-top: 5rem;
}

.lcd-module__intro {
  max-width: 58rem;
  margin: -.25rem 0 1rem;
  color: var(--lcd-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.lcd-module__tab {
  margin: 0 0 1rem;
  padding: .68rem 1rem;
  border-radius: 5px;
  background: #34b0b0;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: .02em;
}

.lcd-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.lcd-card-grid > p {
  display: none;
}

.lcd-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--lcd-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(38, 68, 94, .11);
  transition: transform .16s ease, box-shadow .16s ease;
}

.lcd-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 18px rgba(38, 68, 94, .16);
}

.lcd-card__media {
  display: flex;
  aspect-ratio: 4 / 3;
  align-items: center;
  justify-content: center;
  padding: .65rem;
  background: #f8fafc;
}

.lcd-card__media a,
.lcd-card__media .mw-file-description {
  display: contents;
}

.lcd-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lcd-card__body {
  padding: .85rem .8rem .95rem;
  text-align: center;
}

.lcd-card__title {
  min-height: 2.7em;
  line-height: 1.35;
  font-weight: 600;
}

.lcd-card__title a {
  color: var(--lcd-ink);
}

.lcd-card__model {
  margin-top: .35rem;
  color: #27384b;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.lcd-product__hero {
  display: grid;
  grid-template-columns: minmax(15rem, .8fr) minmax(0, 1.2fr);
  gap: 1.5rem;
  margin: 1rem 0 2rem;
  padding: 1.25rem;
  border: 1px solid var(--lcd-line);
  border-radius: 10px;
  background: var(--lcd-panel);
}

.lcd-product__summary {
  align-self: center;
}

.lcd-product__kicker {
  color: #34b0b0;
  font-weight: 700;
}

.lcd-product__model {
  margin: .35rem 0 .6rem;
  color: var(--lcd-ink);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 800;
}

.lcd-product__status {
  margin-bottom: .85rem;
}

.lcd-product__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.lcd-product__gallery > div {
  display: flex;
  min-width: 0;
  aspect-ratio: 4 / 3;
  align-items: center;
  justify-content: center;
  padding: .6rem;
  border: 1px solid var(--lcd-line);
  border-radius: 7px;
  background: #fff;
}

.lcd-product__gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lcd-spec-table {
  width: 100%;
  table-layout: fixed;
}

.lcd-spec-table th:first-child {
  width: 10rem;
}

.lcd-status {
  display: inline-block;
  padding: .18rem .55rem;
  border-radius: 999px;
  color: #244158;
  background: #dceff9;
  font-size: .84rem;
  font-weight: 700;
}

.lcd-download-card,
.lcd-empty-resource {
  padding: 1rem 1.15rem;
  border: 1px solid var(--lcd-line);
  border-left: 4px solid var(--lcd-blue);
  border-radius: 6px;
  background: #fff;
}

.lcd-download-card__name {
  font-size: 1.05rem;
  font-weight: 700;
}

.lcd-download-card__type {
  display: inline-block;
  margin-right: .6rem;
  color: var(--lcd-blue-dark);
  font-weight: 800;
}

.lcd-download-card__body {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .25rem .75rem;
  align-items: baseline;
}

.lcd-download-card__action {
  margin-top: .65rem;
}

.lcd-download-card__meta,
.lcd-empty-resource {
  color: var(--lcd-muted);
}

.lcd-manager-links {
  columns: 2 18rem;
}

.formtable {
  width: 100%;
  margin-bottom: 1rem;
}

.formtable th {
  width: 11rem;
  text-align: left;
  vertical-align: top;
}

.formtable input,
.formtable select,
.formtable textarea {
  box-sizing: border-box;
  max-width: 100%;
}

@media (max-width: 1000px) {
  .lcd-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lcd-product__hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .lcd-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
  }

  .lcd-product__gallery {
    grid-template-columns: 1fr;
  }

  .lcd-card__title {
    min-height: 0;
  }

  .lcd-product__hero {
    padding: .85rem;
  }

  .lcd-spec-table th:first-child {
    width: 7.5rem;
  }

  .formtable,
  .formtable tbody,
  .formtable tr,
  .formtable th,
  .formtable td {
    display: block;
    width: 100%;
  }
}