/* liangdeer.com 个人主页
   风格：白底、超大细体标题、零圆角、电光蓝按钮、深蓝色带 */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  /* 只管拉丁字母和数字；中文标点和引号交给系统中文字体 */
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2010-2015, U+2022, U+2032-2033, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

:root {
  --ink: #000000;
  --text: #333333;
  --muted: #666666;
  --hairline: #e6e6e6;
  --soft: #f7f7f7;
  --blue: #2251ff;
  --blue-pressed: #1c44dc;
  --navy: #051c2c;
  --on-navy: #c9d3da;
  --blue-light: #8aa5ff;
  --sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    "Noto Sans CJK SC", system-ui, sans-serif;
  --display: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei Light",
    "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", system-ui, sans-serif;
  --pad: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* 语言切换：两种语言都写在页面里，只显示当前这一种 */
html[data-lang="zh"] .en,
html[data-lang="en"] .zh { display: none; }

a { color: inherit; }
a:hover { color: var(--blue-pressed); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.band-navy :focus-visible, .card-navy :focus-visible { outline-color: #ffffff; }

.wrap { max-width: 1312px; margin-inline: auto; padding-inline: var(--pad); }

.skip {
  position: absolute; left: var(--pad); top: -100px; z-index: 20;
  padding: 12px 20px; background: var(--ink); color: #ffffff; text-decoration: none;
}
.skip:focus { top: 8px; color: #ffffff; }

.eyebrow {
  margin: 0;
  font-size: 14px; line-height: 20px; font-weight: 700;
  letter-spacing: 0.02em; text-transform: uppercase;
}

h1, h2, h3, p { margin: 0; }
.nw { white-space: nowrap; }
h1, h2 { font-family: var(--display); font-weight: 300; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.4vw, 44px); line-height: 1.18; }

/* 顶部导航 */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: #ffffff; border-bottom: 1px solid var(--hairline);
}
.header-row {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0 32px; min-height: 64px;
}
.brand { margin-right: auto; font-size: 20px; font-weight: 500; text-decoration: none; }
.nav { display: flex; align-items: center; gap: 32px; font-weight: 300; }
.nav a { padding: 10px 0; text-decoration: none; }
.lang { display: flex; align-items: center; gap: 4px; }
.lang button {
  height: 44px; padding: 0 10px;
  border: 0; border-bottom: 2px solid transparent; background: none;
  font: inherit; font-size: 14px; color: var(--muted); cursor: pointer;
}
.lang button[aria-pressed="true"] { font-weight: 700; color: var(--ink); border-bottom-color: var(--blue); }
.lang button:focus { outline: none; }
.lang button:focus-visible { background: #f1f3fd; }

/* 首屏 */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  align-items: start; gap: 64px;
  padding-top: 56px;
}
.hero-text { display: flex; flex-direction: column; gap: 28px; }
h1 { font-size: clamp(36px, 6vw, 76px); line-height: 1.12; }
html[data-lang="en"] h1 { font-size: clamp(34px, 5.2vw, 66px); letter-spacing: -0.01em; }
.identity { font-size: 16px; line-height: 24px; color: var(--text); margin-top: -16px; }
.identity strong { margin-right: 12px; padding-right: 12px; border-right: 1px solid var(--ink); font-weight: 700; color: var(--ink); }
.lead { max-width: 700px; font-size: 18px; line-height: 28px; font-weight: 300; color: var(--text); text-wrap: pretty; }
/* 中文简介一句一行：放得下就各占一行，放不下时各自折行 */
.lead-line { display: inline-block; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; }
.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 28px;
  font-size: 18px; text-decoration: none;
}
.btn-primary { background: var(--blue); color: #ffffff; }
.btn-primary:hover { background: var(--blue-pressed); color: #ffffff; }
.btn-outline { border: 1px solid var(--ink); background: #ffffff; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #ffffff; }
.hero-photo { margin: 0; width: 100%; max-width: 420px; justify-self: end; background: var(--hairline); }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }

/* 四条关键信息 */
.facts { padding-block: 56px 80px; }
.facts-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 24px 32px; margin: 0; padding-top: 24px; border-top: 1px solid var(--ink);
}
.fact dd { margin: 8px 0 0; font-size: 18px; line-height: 26px; font-weight: 300; text-wrap: pretty; }

/* 精选项目 */
.band-soft { background: var(--soft); }
.section { padding-block: 80px; }
.section > h2 { margin-bottom: 40px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 24px; }
.card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  min-height: 320px; padding: 32px;
  background: #ffffff; border: 1px solid var(--hairline);
}
.card-index { margin-bottom: 20px; font-family: var(--display); font-size: 44px; line-height: 1; font-weight: 300; color: var(--muted); }
.card h3 { font-size: 24px; line-height: 32px; font-weight: 500; }
.card-desc { font-weight: 300; color: var(--text); text-wrap: pretty; }
.card-link {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: auto; padding-top: 16px;
  font-weight: 500; text-decoration: none;
}
.arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: #ffffff;
}
.card-link:hover .arrow { background: var(--blue); }
.card-navy { background: var(--navy); border-color: var(--navy); color: #ffffff; }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.group-title { margin: 72px 0 40px; }

.feature { padding: 40px; background: var(--navy); color: #ffffff; }
.feature-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: end; gap: 24px 64px; }
.feature-title { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.feature .card-index, .feature .card-desc { color: var(--on-navy); }
.feature h3 { font-size: 28px; line-height: 36px; font-weight: 500; }

.arch {
  margin: 40px 0 0; padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
}
.arch-bar {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px;
  padding: 16px 20px; border: 1px solid rgba(255, 255, 255, 0.24); background: var(--navy);
}
.arch-tag { font-size: 12px; line-height: 18px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-light); }
.arch-main { font-size: 18px; line-height: 26px; font-weight: 500; }
.arch-note { font-size: 14px; line-height: 22px; font-weight: 300; color: var(--on-navy); }
.arch-steps {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px;
  margin: 30px 0; padding: 0; list-style: none;
}
.arch-steps li {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  min-height: 150px; padding: 18px 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.24); border-top: 2px solid #ffffff; background: var(--navy);
}
.arch-steps b { font-family: var(--display); font-size: 30px; line-height: 1; font-weight: 300; color: var(--on-navy); }
.arch-steps strong { margin-top: 6px; font-size: 18px; line-height: 26px; font-weight: 500; }
.arch-cap { font-size: 13px; line-height: 20px; font-weight: 300; color: var(--on-navy); }
/* 连线：智能体 → 每一步；第 2、3 步 → 数据源；第 5 步 → 交付 */
.arch-steps li::before, .arch-steps li.is-mcp::after, .arch-steps li.is-human::after {
  content: ""; position: absolute; left: 26px; width: 1px; height: 30px; background: rgba(255, 255, 255, 0.4);
}
.arch-steps li::before { top: -32px; }
.arch-steps li.is-mcp::after, .arch-steps li.is-human::after { bottom: -31px; }
.arch-steps li.is-mcp { border-top-color: var(--blue-light); }
.arch-steps li.is-mcp::after { width: 2px; background: var(--blue-light); }
.arch-arrow {
  position: absolute; right: -11px; top: 50%; z-index: 1; width: 8px; height: 8px;
  border-top: 1.5px solid #ffffff; border-right: 1.5px solid #ffffff; transform: translateY(-50%) rotate(45deg);
}
.arch-bottom { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.arch-data { grid-column: 2 / span 2; border-color: var(--blue-light); }
.arch-out { grid-column: 5; }


.more { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 40px; }
.more-list { max-width: 880px; font-weight: 300; color: var(--text); text-wrap: pretty; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--ink);
}
.text-link:hover { color: var(--blue-pressed); border-bottom-color: var(--blue-pressed); }
.card-navy .card-index, .card-navy .card-desc { color: var(--on-navy); }

/* 经历、海外经历、教育：左边标题，右边条目 */
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: 32px 64px; padding-block: 40px;
}
.split-first { padding-top: 80px; }
.split-last { padding-bottom: 80px; }
.rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.row { display: grid; gap: 6px; padding: 24px 0; border-bottom: 1px solid var(--hairline); }
.row-when { font-size: 14px; line-height: 20px; font-weight: 700; letter-spacing: 0.02em; }
.row-org { font-size: 24px; line-height: 32px; font-weight: 500; }
.row-role { font-weight: 500; }
.row-what { max-width: 760px; font-weight: 300; color: var(--text); text-wrap: pretty; }
.row-list { display: grid; gap: 8px; margin: 6px 0 0; max-width: 760px; }
.row-list > div { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 16px; }
.row-list dt { font-weight: 500; }
.row-list dd { margin: 0; font-weight: 300; color: var(--text); text-wrap: pretty; }

/* 联系与页脚 */
.band-navy { background: var(--navy); color: #ffffff; }
/* 右下角一片很淡的蓝色光晕 */
#contact {
  background:
    radial-gradient(52% 120% at 96% 118%, rgba(34, 81, 255, 0.42), rgba(34, 81, 255, 0) 70%),
    radial-gradient(40% 80% at -6% -30%, rgba(34, 81, 255, 0.14), rgba(34, 81, 255, 0) 70%),
    var(--navy);
}
.contact {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 40px 64px; padding-block: 72px;
}
.contact h2 { flex: 1 1 380px; min-width: 0; }
/* “聊聊 法律 / AI / 商业”：三个词轮流点亮 */
.talk-lead { display: block; margin-bottom: 14px; font-family: var(--sans); font-size: 20px; line-height: 28px; font-weight: 300; color: var(--on-navy); }
.talk-words { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.talk-word {
  position: relative; padding-bottom: 8px;
  font-size: clamp(44px, 5.4vw, 68px); line-height: 1.1; font-weight: 300;
  color: rgba(255, 255, 255, 0.36);
  animation: talk-word 7.5s linear infinite;
}
.talk-word::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--blue-light); transform: scaleX(0); transform-origin: left center; opacity: 0;
  animation: talk-line 7.5s linear infinite;
}
.talk-word:nth-child(2), .talk-word:nth-child(2)::after { animation-delay: 2.5s; }
.talk-word:nth-child(3), .talk-word:nth-child(3)::after { animation-delay: 5s; }
@keyframes talk-word {
  0% { color: rgba(255, 255, 255, 0.36); }
  5%, 33.3% { color: #ffffff; }
  39%, 100% { color: rgba(255, 255, 255, 0.36); }
}
@keyframes talk-line {
  0% { transform: scaleX(0); opacity: 1; animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1); }
  11%, 33.3% { transform: scaleX(1); opacity: 1; }
  39% { transform: scaleX(1); opacity: 0; }
  39.1%, 100% { transform: scaleX(0); opacity: 0; }
}
/* 系统开了“减少动态效果”时不播动画，三个词都是白色 */
@media (prefers-reduced-motion: reduce) {
  .talk-word { animation: none; color: #ffffff; }
  .talk-word::after { animation: none; }
}
.contact-list { flex: 1 1 420px; max-width: 560px; margin: 0; border-top: 1px solid rgba(255, 255, 255, 0.45); }
.contact-item {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: baseline; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.contact-item dt { font-size: 14px; line-height: 20px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: var(--on-navy); }
.contact-item dd { margin: 0; font-size: 20px; line-height: 28px; font-weight: 300; overflow-wrap: anywhere; }
.contact-item a { color: #ffffff; text-decoration: none; }
.contact-item a:hover { color: #ffffff; text-decoration: underline; text-underline-offset: 4px; }
.footer-bar { border-top: 1px solid rgba(255, 255, 255, 0.2); }
.footer-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-block: 24px; font-size: 12px; line-height: 16px; color: var(--on-navy);
}

/* 平板和手机 */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 48px; }
  .hero-photo { justify-self: start; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .split-first { padding-top: 64px; }
  .split-last { padding-bottom: 64px; }
  .section { padding-block: 64px; }
  .facts { padding-block: 48px 64px; }
  .contact { padding-block: 56px; }
  .feature { padding: 28px; }
  .feature-head { grid-template-columns: minmax(0, 1fr); }
  .group-title { margin: 56px 0 32px; }
}
@media (max-width: 820px) {
  .arch { padding: 18px; }
  .arch-steps { grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 10px 0; }
  .arch-steps li { min-height: 0; padding: 14px 16px 16px; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 2px 8px; }
  .arch-steps b { grid-row: 1 / span 2; font-size: 24px; padding-top: 2px; }
  .arch-steps strong { margin-top: 0; }
  .arch-steps li::before, .arch-steps li.is-mcp::after, .arch-steps li.is-human::after, .arch-arrow { display: none; }
  .arch-bottom { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .arch-data, .arch-out { grid-column: auto; }
}
@media (max-width: 600px) {
  .header-row { gap: 0 16px; }
  .nav { order: 3; flex-basis: 100%; gap: 24px; border-top: 1px solid var(--hairline); }
  .card { min-height: 0; padding: 24px; }
  .feature { padding: 20px; }
  .identity strong { display: block; margin: 0 0 4px; padding: 0; border: 0; }
  .row-org { font-size: 20px; line-height: 28px; }
  .row-list > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .contact-item { grid-template-columns: 72px minmax(0, 1fr); }
  .contact-item dd { font-size: 18px; }
  .btn { font-size: 16px; padding: 0 22px; }
}
