/*
  模块名称：AIPD 根入口首页区块样式
  功能描述：定义 About Me、模块卡片、内容分区、页脚和响应式布局
  创建日期：2026-05-17
  作者：Codex
  主要变更：2026-05-17 从 portal.css 拆分区块样式；2026-05-18 优化移动端卡片密度
  依赖模块：portal/index.html、portal/assets/portal.css
*/
.hero-panel,
.about-profile,
.about-story,
.domain-grid article,
.feature-article,
.skill-grid article,
.project-card,
.avatar-roadmap,
.article-list {
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(228, 191, 122, 0.12), rgba(240, 216, 168, 0.055));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 32px rgba(228, 191, 122, 0.11);
  backdrop-filter: blur(16px);
}

.hero-panel {
  width: min(100%, 980px);
  padding: 18px;
  background: linear-gradient(135deg, rgba(9, 9, 12, 0.72), rgba(228, 191, 122, 0.08));
  box-shadow: inset 0 1px 0 rgba(246, 232, 200, 0.18), 0 18px 58px rgba(0, 0, 0, 0.42);
}

.panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
  color: rgba(246, 232, 200, 0.54);
  font-size: 12px;
  text-transform: uppercase;
}

.panel-topline strong {
  color: var(--gold-primary);
  font-size: 22px;
}

.module-radar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.module-radar a {
  position: relative;
  display: grid;
  min-height: 150px;
  align-content: end;
  gap: 8px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(228, 191, 122, 0.24);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.028)),
    rgba(5, 5, 8, 0.48);
  text-align: left;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), border-color 220ms ease, box-shadow 220ms ease;
}

.module-radar a::before,
.project-card::before {
  position: absolute;
  top: -40%;
  right: -42%;
  width: 100%;
  height: 100%;
  content: "";
  background: radial-gradient(circle, rgba(228, 191, 122, 0.13), transparent 70%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.module-radar a:hover,
.project-card:hover,
.skill-grid article:hover,
.article-list a:hover {
  border-color: rgba(228, 191, 122, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 18px 44px rgba(228, 191, 122, 0.18);
  transform: translateY(-6px);
}

.module-radar a:hover::before,
.project-card:hover::before {
  opacity: 1;
}

.module-radar span {
  color: var(--gold-primary);
  font-family: "Songti SC", "Source Han Serif SC", STSong, serif;
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  opacity: 0.36;
}

.module-radar strong {
  font-size: 22px;
}

.module-radar small {
  color: var(--text-muted);
}

.signal-strip {
  display: flex;
  width: min(100%, var(--container));
  margin: 16px auto 0;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  color: rgba(246, 232, 200, 0.58);
  font-size: 12px;
}

.signal-strip span {
  padding: 8px 13px;
  border: 1px solid rgba(228, 191, 122, 0.26);
  border-radius: 999px;
  background: rgba(5, 5, 8, 0.62);
  box-shadow: inset 0 1px 0 rgba(246, 232, 200, 0.08);
}

.content-band,
.about-section,
.avatar-section {
  position: relative;
  z-index: 1;
  padding: 86px 24px;
  scroll-margin-top: 86px;
}

.about-section {
  width: min(100%, var(--container));
  margin: 0 auto;
}

.standalone-about {
  min-height: calc(100svh - 82px);
  padding-top: 150px;
}

.standalone-about .section-heading {
  align-items: center;
}

.standalone-about h1 {
  max-width: 980px;
  margin-bottom: 0;
  background: none;
  color: var(--text-primary);
  filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.38));
  font-size: clamp(34px, 4.8vw, 58px);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.44fr) minmax(0, 1fr);
  gap: 18px;
}

.about-profile {
  position: relative;
  display: grid;
  align-content: start;
  gap: 18px;
  overflow: hidden;
  padding: 22px;
}

.about-profile::after {
  position: absolute;
  right: -54px;
  bottom: -54px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(228, 191, 122, 0.18);
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(228, 191, 122, 0.12), transparent 66%);
}

.avatar-frame {
  position: relative;
  overflow: hidden;
  width: min(100%, 320px);
  aspect-ratio: 3 / 2;
  border: 1px solid rgba(246, 232, 200, 0.42);
  border-radius: 18px;
  background: rgba(5, 5, 8, 0.62);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
}

.avatar-frame::after {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(228, 191, 122, 0.22);
  border-radius: 12px;
  content: "";
  pointer-events: none;
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 35% 50%;
  filter: saturate(0.94) contrast(1.04) brightness(0.96);
}

.profile-copy {
  position: relative;
  z-index: 1;
}

.profile-kicker,
.about-story article > span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--gold-primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-copy h3 {
  margin-bottom: 8px;
  font-family: "Songti SC", "Source Han Serif SC", STSong, serif;
  color: var(--gold-light);
  font-size: 30px;
  line-height: 1.15;
}

.profile-copy p {
  margin-bottom: 0;
  color: var(--text-body);
  line-height: 1.7;
}

.profile-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-tags span {
  padding: 8px 10px;
  border: 1px solid rgba(228, 191, 122, 0.24);
  border-radius: 999px;
  background: rgba(228, 191, 122, 0.07);
  color: rgba(246, 232, 200, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.about-story {
  display: grid;
  gap: 22px;
  padding: 28px;
}

.about-story article p {
  margin-bottom: 16px;
  color: var(--text-body);
  font-size: 17px;
  line-height: 1.9;
}

.about-story article p:last-child {
  margin-bottom: 0;
}

.about-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.about-metrics div {
  padding: 16px;
  border: 1px solid rgba(228, 191, 122, 0.2);
  border-radius: 14px;
  background: rgba(5, 5, 8, 0.42);
}

.about-metrics strong {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-primary);
  font-family: "Songti SC", "Source Han Serif SC", STSong, serif;
  font-size: 30px;
  line-height: 1;
}

.about-metrics span {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.domain-grid article {
  min-height: 220px;
  padding: 22px;
}

.domain-grid span {
  color: var(--gold-primary);
  font-family: "Songti SC", "Source Han Serif SC", STSong, serif;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  opacity: 0.4;
}

.domain-grid h3 {
  margin: 18px 0 10px;
  font-size: 22px;
  line-height: 1.28;
}

.domain-grid p {
  margin-bottom: 0;
  color: var(--text-body);
  line-height: 1.72;
}

.section-heading {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px;
  margin-bottom: 34px;
}

.section-index {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  background: rgba(228, 191, 122, 0.08);
  color: var(--gold-primary);
  font-weight: 900;
}

.text-link {
  color: var(--gold-primary);
  font-size: 14px;
  font-weight: 800;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
  gap: 18px;
}

.feature-article {
  overflow: hidden;
}

.feature-article img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.feature-article div {
  padding: 24px;
}

.feature-article span,
.article-list span,
.skill-grid span,
.project-card span,
.avatar-roadmap span {
  color: var(--gold-primary);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.feature-article h3,
.project-card h3,
.skill-grid h3 {
  margin: 10px 0;
  font-size: 24px;
  line-height: 1.32;
}

.feature-article p,
.skill-grid p,
.project-card p {
  margin-bottom: 0;
  color: var(--text-body);
  line-height: 1.7;
}

.article-list {
  display: grid;
  overflow: hidden;
}

.article-list a {
  display: grid;
  gap: 8px;
  padding: 20px;
  border-bottom: 1px solid var(--line-soft);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.article-list a:last-child {
  border-bottom: 0;
}

.article-list strong {
  line-height: 1.45;
}

.skill-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.skill-grid article,
.project-card {
  min-height: 230px;
  padding: 24px;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), border-color 220ms ease, box-shadow 220ms ease;
}

.skill-grid article {
  display: flex;
  flex-direction: column;
  height: 292px;
  overflow: hidden;
}

.skill-grid h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.skill-grid p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.project-card.highlight {
  background: linear-gradient(135deg, rgba(228, 191, 122, 0.2), rgba(240, 216, 168, 0.08));
}

.avatar-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(340px, 0.72fr);
  align-items: center;
  gap: 34px;
}

.avatar-roadmap {
  display: grid;
  overflow: hidden;
}

.avatar-actions {
  margin-top: 24px;
}

.avatar-actions .btn {
  min-width: 148px;
}

.avatar-roadmap div {
  display: grid;
  grid-template-columns: 46px 1fr;
  grid-template-rows: auto auto;
  gap: 4px 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.avatar-roadmap div:last-child {
  border-bottom: 0;
}

.avatar-roadmap span {
  grid-row: 1 / 3;
}

.avatar-roadmap small {
  color: var(--text-muted);
}

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 24px;
  border-top: 1px solid var(--line-soft);
  color: var(--text-muted);
  font-size: 13px;
}

.site-footer a:hover {
  color: var(--gold-primary);
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 1fr auto;
    height: auto;
    padding: 12px 18px;
  }

  .main-nav {
    order: 3;
    grid-column: 1 / 3;
    justify-content: flex-start;
    overflow-x: auto;
    padding-top: 8px;
  }

  .hero-section {
    padding-top: 136px;
  }

  .module-radar,
  .article-layout,
  .about-layout,
  .avatar-section {
    grid-template-columns: 1fr;
  }

  .skill-grid,
  .domain-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    grid-template-columns: 48px 1fr;
  }

  .section-heading .text-link {
    grid-column: 2;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding-right: 14px;
    padding-left: 14px;
  }

  .header-cta {
    display: none;
  }

  .content-band,
  .about-section,
  .avatar-section,
  .site-footer {
    padding-right: 14px;
    padding-left: 14px;
  }

  .hero-panel {
    padding: 14px;
    border-radius: 18px;
  }

  .panel-topline {
    padding-bottom: 12px;
    font-size: 11px;
  }

  .module-radar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
  }

  .module-radar a {
    min-height: 112px;
    padding: 14px;
    border-radius: 14px;
  }

  .module-radar span {
    font-size: 34px;
  }

  .module-radar strong {
    font-size: 18px;
  }

  .module-radar small {
    font-size: 12px;
    line-height: 1.35;
  }

  .signal-strip {
    margin-top: 12px;
    justify-content: flex-start;
    gap: 8px;
    font-size: 11px;
  }

  .signal-strip span {
    padding: 7px 9px;
  }

  .content-band,
  .about-section,
  .avatar-section {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .standalone-about {
    padding-top: 152px;
  }

  .section-heading {
    grid-template-columns: 38px 1fr;
    gap: 12px;
    margin-bottom: 22px;
  }

  .section-index {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .section-heading .eyebrow {
    margin-bottom: 7px;
  }

  .feature-article div,
  .about-profile,
  .about-story,
  .domain-grid article,
  .skill-grid article,
  .project-card {
    padding: 18px;
  }

  .feature-article h3,
  .domain-grid h3,
  .project-card h3,
  .skill-grid h3 {
    font-size: 21px;
  }

  .avatar-frame {
    width: 100%;
  }

  .about-story article p {
    font-size: 15px;
    line-height: 1.78;
  }

  .about-metrics {
    grid-template-columns: 1fr;
  }

  .skill-grid article,
  .domain-grid article,
  .project-card {
    min-height: 178px;
  }

  .skill-grid article {
    height: 236px;
  }

  .skill-grid p {
    -webkit-line-clamp: 4;
  }

  .skill-grid,
  .domain-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-wrap: wrap;
    justify-content: flex-start;
    padding-top: 22px;
    padding-bottom: 22px;
  }
}
