/* ============================================================
   内部系统入口 · 公共官网扩展样式
   与 assets/css/style.css 的品牌色保持一致，独立文件便于维护
   ============================================================ */

/* 顶栏入口按钮 */
.nav-portal {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border: 1px solid rgba(217, 165, 102, .5);
  border-radius: 999px; font-size: 11.5px; letter-spacing: .1em;
  color: var(--gold); white-space: nowrap; transition: .3s;
}
.nav-portal svg { width: 13px; height: 13px; flex: none; opacity: .9; }
.nav-portal:hover { background: var(--gold); color: #161418; border-color: var(--gold); }

.mobile-portal { display: none !important; }

/* 首页入口区块 */
.portal-entry {
  position: relative; overflow: hidden;
  padding: clamp(64px, 8vw, 108px) 0;
  background:
    radial-gradient(120% 90% at 90% 0%, rgba(46, 140, 153, .22) 0%, transparent 55%),
    linear-gradient(160deg, #0B272D 0%, #071D21 55%, #0A2A30 100%);
  border-top: 1px solid rgba(217, 165, 102, .18);
  border-bottom: 1px solid rgba(217, 165, 102, .18);
}
.portal-entry::after {
  content: "內"; position: absolute; right: -2%; top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif); font-size: clamp(220px, 32vw, 440px);
  line-height: 1; color: rgba(217, 165, 102, .045); pointer-events: none;
}
.portal-entry-in {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 6vw, 76px); align-items: center;
  position: relative; z-index: 1;
}
.portal-copy .section-title { max-width: 15ch; }
.portal-lede {
  margin-top: 16px; max-width: 46ch;
  font-size: 15px; color: rgba(250, 246, 240, .7);
}
.portal-points { margin-top: 26px; display: flex; flex-direction: column; gap: 13px; }
.portal-points li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 13.5px; line-height: 1.65; color: rgba(250, 246, 240, .82);
}
.portal-points i {
  flex: none; width: 19px; height: 19px; margin-top: 1px;
  border: 1px solid rgba(217, 165, 102, .45); border-radius: 50%;
  display: grid; place-items: center;
  font-style: normal; font-size: 9px; color: var(--gold);
}
.portal-badge {
  display: inline-flex; align-items: center; gap: 5px;
  margin-left: 8px; padding: 2px 8px; border-radius: 999px;
  border: 1px solid rgba(95, 201, 168, .4);
  background: rgba(95, 201, 168, .1);
  color: #8ADFC6; font-size: 9.5px; letter-spacing: .14em;
  vertical-align: 2px; white-space: nowrap;
}

/* 右侧入口卡片 */
.portal-card {
  position: relative;
  border: 1px solid rgba(217, 165, 102, .26);
  background: linear-gradient(155deg, rgba(250, 246, 240, .07), rgba(250, 246, 240, .025));
  padding: clamp(24px, 3vw, 36px);
}
.portal-card::before {
  content: ""; position: absolute; left: -1px; top: 22px;
  width: 2px; height: 44px; background: var(--gold);
}
.portal-card-k {
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold);
}
.portal-card h3 {
  margin-top: 10px; font-family: var(--serif); font-weight: 400;
  font-size: clamp(21px, 2.4vw, 28px); line-height: 1.4; color: var(--paper);
}
.portal-card-rows { margin: 22px 0 24px; border-top: 1px solid rgba(250, 246, 240, .1); }
.portal-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid rgba(250, 246, 240, .08);
  font-size: 12.5px; color: rgba(250, 246, 240, .72);
}
.portal-row b { font-weight: 400; font-size: 10.5px; letter-spacing: .08em; color: #8ADFC6; }
.portal-cta { width: 100%; justify-content: space-between; padding: 15px 20px; }
.portal-cta span { letter-spacing: .1em; }
.portal-sub {
  display: flex; justify-content: space-between; gap: 10px; margin-top: 14px;
  padding-bottom: 8px; border-bottom: 1px solid rgba(217, 165, 102, .28);
  font-size: 12px; letter-spacing: .04em; color: var(--gold); transition: .3s;
}
.portal-sub:hover { color: var(--cream); border-color: var(--cream); }
.portal-note { margin-top: 18px; font-size: 10.5px; letter-spacing: .05em; color: var(--muted-2); }

/* 页脚入口 */
.footer-portal {
  color: var(--gold); border-bottom: 1px solid rgba(217, 165, 102, .4);
  padding-bottom: 1px; margin-left: 2px; transition: .3s;
}
.footer-portal:hover { color: var(--cream); border-color: var(--cream); }

@media (max-width: 1024px) {
  .nav-portal { padding: 7px 12px; font-size: 11px; }
  .nav-right { gap: 12px; }
}
@media (max-width: 900px) {
  .portal-entry-in { grid-template-columns: 1fr; gap: 34px; }
  .portal-entry::after { display: none; }
  .portal-card { max-width: 620px; margin: 0 auto; }
}
@media (max-width: 760px) {
  .nav-portal {
    display: inline-flex; width: 34px; height: 34px; padding: 0;
    justify-content: center; border-radius: 50%;
  }
  .nav-portal span { display: none; }
  .nav-portal svg { width: 15px; height: 15px; }
  .mobile-portal {
    display: block !important; color: var(--gold) !important;
    border-top: 1px solid rgba(217, 165, 102, .25) !important;
    margin-top: 6px; letter-spacing: .06em;
  }
  .portal-entry { padding: 54px 0; }
  .portal-points li { font-size: 12.5px; }
  .portal-card { padding: 22px 20px; }
}

/* 平板宽度：压缩顶栏，避免导航换行 */
@media (max-width: 1080px) and (min-width: 761px) {
  .nav { padding: 0 20px; }
  .brand small { display: none; }
  .nav-links { gap: 16px; font-size: 12.5px; }
  .nav-right { gap: 10px; }
  .lang a { padding: 4px 8px; font-size: 10.5px; }
  .nav-portal { padding: 6px 11px; font-size: 10.5px; letter-spacing: .06em; }
}
@media (max-width: 880px) and (min-width: 761px) {
  .nav-links { gap: 10px; font-size: 11.5px; }
  .nav-portal { padding: 6px 9px; }
  .nav-portal svg { width: 12px; height: 12px; }
}
