/* 用途：首页与关于页的共享视觉层；内容及业务链接仍由原 HTML 维护。 */
.portal-page {
  --ink-2: #62615e;
  --ink-3: #777570;
  --border: #dedbd4;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  isolation: isolate;
}
.portal-page .wrap { max-width: 1200px; padding-inline: 40px; }
.portal-page a:focus-visible, .portal-page button:focus-visible {
  outline: 2px solid var(--coral); outline-offset: 5px;
}
.portal-page .nav { background: rgba(248,247,244,.86); }
.portal-page .nav-inner { height: 84px; gap: 24px; }
.portal-page .nav-logo { font-size: 1.25rem; letter-spacing: -.055em; }
.portal-page .nav-logo-sub { font-style: normal; font-size: .65rem; margin-top: 5px; letter-spacing: .025em; }
.portal-page .nav-links { gap: 32px; }
.portal-page .nav-links a { position: relative; padding-block: 12px; }
.portal-page .nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 5px; width: 100%; height: 1px;
  background: var(--coral); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.portal-page .nav-links a:hover::after, .portal-page .nav-links a.active::after { transform: scaleX(1); }
.portal-page #lang-toggle {
  background: transparent; border: 1px solid var(--border); border-radius: 3px;
  padding: 9px 12px; font: inherit; font-size: .72rem; color: var(--fg); cursor: pointer; min-height: 40px;
}
.portal-page .hero { position: relative; padding: 104px 0 100px; }
.portal-home .hero-grid { grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
.portal-page .eyebrow { font-size: .66rem; font-weight: 500; letter-spacing: .16em; color: var(--ink-2); margin-bottom: 22px; }
.portal-home .hero-title { font-size: clamp(3.5rem,6.2vw,5.7rem); line-height: 1.2; font-weight: 600; letter-spacing: -.065em; }
.portal-home .hero-line:last-child { color: var(--coral); }
.portal-home .hero-summary { max-width: 460px; font-size: 1rem; line-height: 1.95; color: var(--ink-2); margin-top: 30px; }
.portal-page .hero-cta { margin-top: 34px; gap: 12px; }
.portal-page .btn-primary, .portal-page .btn-secondary, .portal-page .btn-solid, .portal-page .btn-outline {
  min-height: 48px; border-radius: 3px; padding: 13px 23px;
}
.portal-page .btn-primary svg, .portal-page .btn-link svg { transition: transform .25s ease; }
.portal-page .btn-primary:hover svg, .portal-page .btn-link:hover svg { transform: translateX(3px); }
.portal-home .hero-meta { text-align: center; }
.portal-home .hero-name { font-size: 1rem; margin-top: 4px; font-weight: 500; }
.portal-home .hero-role { font-size: .7rem; letter-spacing: .04em; }

/* 用途：柔和光场位于内容后方，不拦截鼠标或触控事件。 */
.ambient-background { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient-glow {
  position: absolute; width: min(90vw,1000px); height: min(90vw,1000px); top: -140px; left: calc(50% - 180px);
  background: radial-gradient(ellipse at center,rgba(232,112,70,.09),rgba(232,152,108,.025) 42%,transparent 68%);
  transform: translate3d(var(--glow-x,0px),var(--glow-y,0px),0);
}
.orbital-art { position: relative; width: 100%; max-width: 430px; aspect-ratio: 1; margin: -24px auto 4px; perspective: 850px; }
.orbital-plane {
  width: 100%; height: 100%; position: relative; transform-style: preserve-3d;
  transform: rotateX(var(--tilt-y,0deg)) rotateY(var(--tilt-x,0deg)) translate3d(var(--art-x,0px),var(--art-y,0px),0);
}
.orbital-plane::before {
  content: ''; position: absolute; inset: 13%; border-radius: 50%;
  background: radial-gradient(circle,rgba(230,119,74,.12),transparent 70%);
}
.orbit { position: absolute; inset: 9%; border: 1px solid rgba(128,97,72,.2); border-radius: 50%; }
.orbit-one { transform: rotate(-35deg) scaleY(.45); }
.orbit-two { transform: rotate(35deg) scaleY(.45); }
.orbit-three { inset: 19%; border-color: rgba(128,97,72,.1); }
.orbital-core {
  position: absolute; inset: 32%; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 30% 22%,#f5bc91 0%,#eb7142 44%,#b73d21 86%);
  box-shadow: inset -8px -12px 22px rgba(80,28,13,.18),0 22px 50px -22px rgba(141,57,18,.35);
  color: #fff3e6;
}
.orbital-core svg { width: 43%; }
.orbit-node { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #d6633e; box-shadow: 0 0 0 5px rgba(214,99,62,.06); }
.node-one { left: 19%; top: 26%; }
.node-two { right: 12%; top: 62%; width: 5px; height: 5px; background: #656058; }
.node-three { left: 27%; bottom: 20%; width: 5px; height: 5px; }
.orbit-label { position: absolute; font-size: .55rem; letter-spacing: .14em; color: #797367; }
.label-one { left: 4%; top: 19%; }
.label-two { right: 1%; top: 71%; }
.label-three { left: 15%; bottom: 12%; }

/* 用途：两列项目板块和编辑式分隔，保持信息密度与留白平衡。 */
.portal-page .sec-head { padding: 64px 0 34px; align-items: flex-end; }
.portal-page .sec-head .eyebrow { margin-bottom: 12px; }
.portal-page .sec-head h2 { font-size: 1.85rem; font-weight: 500; letter-spacing: -.04em; }
.portal-page .section-note { font-size: .8rem; color: var(--ink-2); padding-bottom: 5px; }
.portal-home .services-grid { grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 80px; }
.portal-home .services-grid .service-item {
  border: 1px solid var(--border); padding: 32px; border-radius: 4px; min-height: 250px;
  background: rgba(255,255,255,.28); position: relative;
  transition: transform .3s ease,border-color .3s ease,background .3s ease,box-shadow .3s ease;
}
.portal-home .service-item:not(.disabled):hover, .portal-home .service-item:focus-visible {
  transform: translateY(-4px); border-color: rgba(196,89,51,.45); background: rgba(255,255,255,.72);
  box-shadow: 0 16px 34px -26px rgba(48,34,21,.25);
}
.portal-home .service-num { font-size: .68rem; letter-spacing: .08em; margin-bottom: 24px; }
.portal-home .service-name { font-size: 1.2rem; font-weight: 500; justify-content: space-between; }
.portal-home .service-name .arrow { opacity: 1; }
.portal-home .service-desc { max-width: 430px; font-size: .85rem; }
.portal-home .service-price { font-size: .76rem; font-weight: 500; }
.portal-home .service-item.disabled { opacity: 1; background: rgba(238,237,233,.5); }
.portal-home .about-grid { gap: 72px; padding: 12px 0 88px; align-items: start; }
.portal-home .about-body { font-size: .94rem; line-height: 1.95; }
.portal-home .stats-grid { border: 1px solid var(--border); }
.portal-home .stat-n { font-size: 2.5rem; font-weight: 500; }
.portal-home .stat-cell, .portal-home .stat-cta { padding: 30px; min-height: 150px; }
.portal-home .stat-cta:hover { transform: none; background: #d83c19; }
.portal-page .footer-inner { padding-block: 32px; }

/* 用途：关于页移除肖像后，以经历数据和文字形成左右两栏。 */
.profile-page .hero-grid { grid-template-columns: 1.6fr 1fr; gap: 72px; }
.profile-page .quote { font-weight: 500; font-size: clamp(2rem,3.5vw,3.2rem); line-height: 1.45; }
.profile-page .body-text { max-width: 590px; }
.profile-page .profile-facts { border-top: 2px solid var(--coral); padding-top: 24px; }
.profile-page .stat-grid { border: none; gap: 1px; }
.profile-page .stat-item { padding: 36px 20px; text-align: left; }
.profile-page .stat-num { font-size: 2.3rem; font-weight: 500; }
.profile-page .stat-label { color: var(--ink-2); margin-top: 14px; }
.profile-page .doing-grid { grid-template-columns: 1fr 1fr; }
.profile-page .sec-title { font-weight: 500; }
.profile-page .exp-item { transition: background .25s ease; }
.profile-page .exp-item:hover { background: rgba(255,255,255,.45); }
.profile-page .cta-banner { border-radius: 4px; }

@media (max-width: 820px) {
  .portal-page .wrap { padding-inline: 24px; }
  .portal-page .nav-inner { height: auto; min-height: 76px; flex-wrap: wrap; gap: 4px 16px; padding: 14px 0 8px; align-items: center; }
  .portal-page .nav-logo { flex: 1; font-size: 1.12rem; }
  .portal-page .nav-links { order: 3; width: 100%; gap: 24px; padding: 0; }
  .portal-page .nav-logo-sub { font-size: .56rem; }
  .portal-page .nav-icons { gap: 12px; }
  .portal-page .nav-icons > a { display: none; }
  .portal-page .hero { padding: 60px 0 64px; }
  .portal-home .hero-grid, .profile-page .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .portal-home .hero-title { font-size: clamp(3.2rem,10vw,4.8rem); }
  .portal-home .hero-summary { font-size: .92rem; }
  .portal-home .hero-meta { display: grid; grid-template-columns: 1fr 1fr; align-items: center; text-align: left; }
  .portal-home .orbital-art { grid-row: span 2; width: min(100%,230px); margin: -20px 0; }
  .portal-home .hero-name { align-self: end; }
  .portal-home .hero-role { align-self: start; max-width: 180px; }
  .portal-page .sec-head { padding: 48px 0 28px; align-items: start; }
  .portal-home .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .portal-home .stats-grid { grid-template-columns: 1fr 1fr; }
  .portal-home .services-grid { padding-bottom: 56px; }
  .profile-page .profile-facts { max-width: 520px; order: 0; }
  .profile-page .footer-inner { align-items: start; }
}
@media (max-width: 560px) {
  .portal-home .services-grid, .profile-page .doing-grid { grid-template-columns: 1fr; }
  .portal-home .services-grid .service-item { padding: 26px; min-height: 0; }
  .portal-page .section-note { display: none; }
  .portal-home .stat-cell, .portal-home .stat-cta { padding: 23px; min-height: 135px; }
  .portal-home .stat-n { font-size: 2.15rem; }
  .portal-home .hero-cta { gap: 10px; }
  .portal-page .btn-primary, .portal-page .btn-secondary { padding-inline: 18px; font-size: .8rem; }
  .portal-page .nav-logo-sub { max-width: 200px; }
  .profile-page .quote { font-size: 1.9rem; }
}
/* 用途：系统减弱动态效果时关闭位移和过渡，内容始终可见。 */
@media (prefers-reduced-motion: reduce) {
  .portal-page *, .portal-page *::before, .portal-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .portal-page .orbital-plane, .portal-page .ambient-glow, .portal-page .service-item { transform: none !important; }
}
