/* 芊洲AI 门户分流页 —— 暖白纸感 · 宋体编辑式 · 克制双色 */

:root {
  --paper: #f6f3ec;
  --paper-2: #efe9dd;
  --ink: #17130d;
  --ink-soft: #6b6357;
  --hair: rgba(23, 19, 13, 0.12);
  --hair-strong: rgba(23, 19, 13, 0.22);
  --ent: #1f3d5c;      /* 企业：沉稳墨蓝 */
  --ent-tint: #eef2f6;
  --per: #b4551f;      /* 个人：暖赭橙 */
  --per-tint: #f6efe6;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

/* 纸张微噪 + 暗角，去掉塑料感 */
.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, 0.5), transparent 55%),
    radial-gradient(120% 120% at 50% 120%, rgba(23, 19, 13, 0.06), transparent 60%);
  mix-blend-mode: normal;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 60;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  transition: top 160ms var(--ease);
}

.skip-link:focus {
  top: 16px;
}

/* ---------- 顶栏 ---------- */

.portal-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px clamp(20px, 4vw, 56px);
  pointer-events: none;
}

.portal-header a {
  pointer-events: auto;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.wordmark img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.wordmark b {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.wordmark b i {
  font-style: italic;
  color: var(--per);
}

.header-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  color: var(--ink-soft);
}

.header-links a {
  position: relative;
  padding: 4px 0;
  transition: color 200ms var(--ease);
}

.header-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -1px;
  height: 1px;
  background: currentColor;
  transition: right 260ms var(--ease);
}

.header-links a:hover {
  color: var(--ink);
}

.header-links a:hover::after {
  right: 0;
}

/* ---------- 分流主区 ---------- */

.fork {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  height: 100dvh;
}

.panel {
  position: relative;
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 7vw, 120px) clamp(28px, 6vw, 96px);
  overflow: hidden;
  transition: flex-grow 720ms var(--ease), background-color 600ms var(--ease);
  outline: none;
}

.panel--ent {
  background: var(--ent-tint);
}

.panel--per {
  background: var(--per-tint);
}

/* 悬停/聚焦：该侧扩张，另一侧收敛（编辑式的"呼吸"，非炫技） */
.fork:hover .panel,
.fork:focus-within .panel {
  flex-grow: 0.82;
}

.fork .panel:hover,
.fork .panel:focus-visible {
  flex-grow: 1.42;
}

.panel__inner {
  position: relative;
  z-index: 2;
  max-width: 520px;
  transition: transform 720ms var(--ease);
}

.panel:hover .panel__inner,
.panel:focus-visible .panel__inner {
  transform: translateY(-6px);
}

.panel--per .panel__inner {
  margin-left: auto;
}

.panel__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.panel__eyebrow b {
  font-variant-numeric: tabular-nums;
}

.panel--ent .panel__eyebrow::before,
.panel--per .panel__eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.panel__title {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(38px, 5.4vw, 76px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.panel__title em {
  font-style: italic;
}

.panel--ent .panel__title em {
  color: var(--ent);
}

.panel--per .panel__title em {
  color: var(--per);
}

.panel__desc {
  margin: 0 0 34px;
  max-width: 40ch;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.85;
  color: var(--ink-soft);
}

.panel__list {
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}

.panel__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--ink);
}

.panel__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.panel--ent .panel__list li::before {
  background: var(--ent);
}

.panel--per .panel__list li::before {
  background: var(--per);
}

.panel__enter {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid var(--hair-strong);
  background: var(--paper);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  transition: transform 300ms var(--ease), border-color 300ms var(--ease), background-color 300ms var(--ease), color 300ms var(--ease), box-shadow 300ms var(--ease);
}

.panel__enter svg {
  width: 17px;
  height: 17px;
  transition: transform 300ms var(--ease);
}

.panel--ent:hover .panel__enter,
.panel--ent:focus-visible .panel__enter {
  background: var(--ent);
  border-color: var(--ent);
  color: #fff;
  box-shadow: 0 16px 34px rgba(31, 61, 92, 0.26);
}

.panel--per:hover .panel__enter,
.panel--per:focus-visible .panel__enter {
  background: var(--per);
  border-color: var(--per);
  color: #fff;
  box-shadow: 0 16px 34px rgba(180, 85, 31, 0.26);
}

.panel:hover .panel__enter svg,
.panel:focus-visible .panel__enter svg {
  transform: translate(3px, -3px);
}

/* 巨型水印大字，藏在角落做纵深 */
.panel__ghost {
  position: absolute;
  z-index: 1;
  bottom: -0.18em;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(160px, 26vw, 420px);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: var(--ink);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
}

.panel--ent .panel__ghost {
  right: -0.06em;
}

.panel--per .panel__ghost {
  left: -0.06em;
}

/* ---------- 中缝徽章 ---------- */

.seam {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--hair);
  box-shadow: 0 10px 30px rgba(23, 19, 13, 0.12);
  pointer-events: none;
  transition: transform 600ms var(--ease);
}

.seam img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.seam span {
  position: absolute;
  bottom: -26px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* ---------- 底部可信条 ---------- */

.portal-foot {
  position: fixed;
  inset: auto 0 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 24px 16px;
  font-size: 12.5px;
  color: var(--ink-soft);
  pointer-events: none;
}

.portal-foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  pointer-events: auto;
}

.portal-foot-links a {
  position: relative;
  padding: 2px 0;
  font-size: 13px;
  color: var(--ink);
  opacity: 0.72;
  transition: opacity 200ms var(--ease);
}

.portal-foot-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right 260ms var(--ease);
}

.portal-foot-links a:hover {
  opacity: 1;
}

.portal-foot-links a:hover::after {
  right: 0;
}

.portal-foot-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  flex-wrap: wrap;
}

.portal-foot .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--hair-strong);
}

.portal-foot b {
  font-weight: 600;
  color: var(--ink);
}

/* ---------- 入场动画 ---------- */

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(26px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.js .anim {
  opacity: 0;
  animation: riseIn 1s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}

/* ---------- 响应式 ---------- */

@media (max-width: 860px) {
  body {
    overflow-y: auto;
    overflow-x: hidden;
  }

  .fork {
    flex-direction: column;
    height: auto;
    min-height: 100dvh;
  }

  .panel {
    flex: none;
    min-height: 60vh;
    padding: 96px 26px 56px;
  }

  .fork:hover .panel,
  .fork:focus-within .panel,
  .fork .panel:hover,
  .fork .panel:focus-visible {
    flex-grow: 0;
  }

  .panel--per .panel__inner {
    margin-left: 0;
  }

  .seam {
    top: 50%;
    width: 62px;
    height: 62px;
  }

  .seam span {
    display: none;
  }

  .portal-foot {
    position: static;
    margin-top: 8px;
  }

  .header-links a:first-child {
    display: none;
  }
}

@media (max-width: 420px) {
  .panel__ghost {
    font-size: 44vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  .js .anim {
    opacity: 1;
  }
}
