/* 城长 VI V2.0 / 正式 V1.1 字标：仅约束有已确认 LOGO 图位的研发页面。
 * 图形与汉字来自已批准的 V1.1 矢量母版；不改变导航、会话、业务状态或授权边界。
 * 旧 R2 资源保留以便回溯，不自动迁移无已知品牌图位的页面。 */
:root {
  --cz-vi2-black: #090b0f;
  --cz-vi2-ivory: #f7f6f2;
  --cz-vi2-gold: #cba84c;
  --cz-vi2-gold-on-light: #76591e;
}
a.brand img[src="/brand/vi-v2/v1.1-approved-master.svg"],
a.brand img[src="/brand/vi-v2/v1.1-on-light.svg"] {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  aspect-ratio: 545 / 200;
}
/* 原工程侧边栏只有 192px 可用宽度，V1.1 字标天然较高。 */
.vi-workbench > aside a.brand {
  width: min(184px, 100%);
  max-width: 100%;
  margin-bottom: 0;
}
.vi-workbench > aside .side-label {
  margin-top: 15px;
}
.cooperation-page > aside a.brand,
.capital-page > aside a.brand {
  width: min(184px, 100%);
  max-width: 100%;
}
.vi-services .site-header a.brand {
  display: block;
  width: 200px;
  max-width: 100%;
}
.vi-services .site-header a.brand img {
  width: 100%;
  height: auto;
}
/* 只调整平台品牌文字色，不更改业务按钮的风险或工作流色。 */
.vi-workbench .brand-context-tagline {
  color: var(--cz-vi2-gold);
}
.vi-services .site-header {
  border-bottom-color: var(--cz-vi2-gold);
}
@media (max-width: 760px) {
  .vi-workbench > aside a.brand {
    width: 174px;
  }
  .vi-workbench > aside .side-label {
    margin-top: 12px;
  }
  .vi-services .site-header a.brand {
    width: 184px;
  }
  .cooperation-page > aside a.brand,
  .capital-page > aside a.brand {
    width: min(178px, 100%);
  }
}

/* VI V2.0 palette adoption, scoped only to explicitly opted-in pages.
   The older R2-V6 selector remains as a compatibility layer for business UI. */
[data-brand-identity="V2.0-V1.1"].vi-workbench > aside,
[data-brand-identity="V2.0-V1.1"].vi-services .site-header {
  background: var(--cz-vi2-black);
  color: var(--cz-vi2-ivory);
}
[data-brand-identity="V2.0-V1.1"].vi-workbench main > .brand-context {
  background: var(--cz-vi2-black);
  border-bottom-color: var(--cz-vi2-gold);
}
[data-brand-identity="V2.0-V1.1"].vi-workbench > aside nav button.active {
  background: var(--cz-vi2-gold);
  color: var(--cz-vi2-black);
}
[data-brand-identity="V2.0-V1.1"].vi-workbench .workspace-nav a[aria-current="page"],
[data-brand-identity="V2.0-V1.1"].vi-services .workspace-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px var(--cz-vi2-gold);
}

/* VI V2.0 second wave: the three confirmed old-brand surfaces only.
 * Business risk/authorization/payment colors and handlers remain unchanged.
 * Commercial is dark; CPC and overseas product pages retain their light surfaces. */
body[data-brand-identity="V2.0-V1.1"] .site-bar {
  height: 86px;
  border-bottom-color: var(--cz-vi2-gold);
}
body[data-brand-identity="V2.0-V1.1"] .site-bar a.brand img {
  display: block;
  width: auto;
  height: 60px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}
body[data-brand-identity="V2.0-V1.1"] .site-header {
  border-bottom-color: var(--cz-vi2-gold);
}
body[data-brand-identity="V2.0-V1.1"] .site-header a.brand {
  display: block;
  width: 210px;
  max-width: 65%;
}
body[data-brand-identity="V2.0-V1.1"] .site-header a.brand img {
  width: 100%;
  height: auto;
}
body[data-brand-identity="V2.0-V1.1"] header > a.brand img {
  width: 208px;
  max-width: min(38vw, 208px);
  height: auto;
  object-fit: contain;
  object-position: left center;
}
body[data-brand-identity="V2.0-V1.1"] header:not(.site-header):not(.site-bar) {
  border-bottom-color: var(--cz-vi2-gold);
}
body[data-brand-identity="V2.0-V1.1"] header:not(.site-header):not(.site-bar) nav a {
  color: var(--cz-vi2-gold-on-light);
}
@media (max-width: 600px) {
  body[data-brand-identity="V2.0-V1.1"] .site-bar {
    height: auto;
  }
  body[data-brand-identity="V2.0-V1.1"] .site-bar a.brand img {
    height: 52px;
    width: auto;
  }
  body[data-brand-identity="V2.0-V1.1"] .site-header a.brand {
    width: 185px;
    max-width: 100%;
  }
  body[data-brand-identity="V2.0-V1.1"] header > a.brand img {
    width: 165px;
    max-width: 44vw;
  }
}

/* Approved English corporate brand entry; no modification to project/action permissions. */
.vi-workbench .brand-context .cz-international-link {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex: 0 0 auto;
  color: #cba84c;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
  text-decoration: none;
  border-bottom: 1px solid #cba84c;
  padding-bottom: 3px;
}
.vi-workbench .brand-context .cz-international-link:hover {
  color: #f7f6f2;
}
.vi-workbench .brand-context .cz-international-link:focus-visible {
  outline: 2px solid #cba84c;
  outline-offset: 4px;
}
