/* 全局基础样式 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    sans-serif;
  color: #111827;
  background: #0f172a;
}

body {
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 头部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-title {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.06em;
  color: #e5e7eb;
}

.site-subtitle {
  font-size: 12px;
  color: #9ca3af;
}

.site-nav {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-link {
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #e5e7eb;
  border: 1px solid transparent;
  transition: all 0.18s ease-out;
}

.nav-link:hover {
  border-color: rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.95);
}

.nav-link.active {
  background: linear-gradient(135deg, #2563eb, #22c55e);
  border-color: rgba(59, 130, 246, 0.3);
  color: #f9fafb;
}

/* 英雄区 */
.hero {
  padding: 48px 0 32px;
  background: radial-gradient(circle at top left, #1e293b 0, #020617 50%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 40px;
  align-items: center;
}

.hero-text {
  color: #e5e7eb;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(75, 85, 99, 0.9);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ca3af;
}

.hero-title {
  font-size: 32px;
  margin: 18px 0 8px;
  color: #f9fafb;
}

.hero-title span {
  background: linear-gradient(135deg, #60a5fa, #a855f7);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-role {
  margin: 2px 0;
  font-size: 15px;
  color: #cbd5f5;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 20px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(55, 65, 81, 0.9);
}

.meta-label {
  font-size: 11px;
  color: #9ca3af;
}

.meta-value {
  font-size: 13px;
  color: #e5e7eb;
}

.meta-item a.meta-value {
  text-decoration: none;
  border-bottom: 1px dashed transparent;
}

.meta-item a.meta-value:hover {
  border-color: rgba(148, 163, 184, 0.7);
}

.avatar-wrapper {
  width: 180px;
  height: 180px;
  border-radius: 999px;
  border: 2px solid rgba(129, 140, 248, 0.85);
  padding: 4px;
  background: radial-gradient(
    circle at top left,
    rgba(59, 130, 246, 0.8),
    rgba(236, 72, 153, 0.4)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.avatar-image {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
}

/* 通用分区样式 */
.section {
  padding: 36px 0;
  background: #020617;
}

.section-alt {
  background: #020617;
  position: relative;
}

.section-alt::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, #0b1120, #020617 52%);
  opacity: 0.85;
  z-index: -1;
}

.section-title {
  font-size: 22px;
  color: #e5e7eb;
  margin: 0 0 18px;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.section-description {
  margin: 0;
  font-size: 13px;
  color: #9ca3af;
}

/* 时间线（教育经历） */
.timeline {
  border-left: 1px solid rgba(55, 65, 81, 0.95);
  margin-left: 6px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid #38bdf8;
  background: #020617;
}

.timeline-date {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 2px;
}

.timeline-title {
  font-size: 15px;
  color: #e5e7eb;
}

.timeline-subtitle {
  font-size: 13px;
  color: #9ca3af;
}

/* 语言能力图表卡片 */
.chart-card {
  margin-top: 10px;
  border-radius: 18px;
  padding: 20px 18px;
  background: radial-gradient(circle at top, #020617 0, #020617 45%);
  border: 1px solid rgba(55, 65, 81, 0.9);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.9);
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 12px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #9ca3af;
}

.legend-color {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

.legend-color-en {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
}

.legend-color-jp {
  background: linear-gradient(135deg, #f97316, #fb7185);
}

.legend-color-es {
  background: linear-gradient(135deg, #22c55e, #4ade80);
}

/* 获奖卡片 */
.awards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.award-card {
  border-radius: 18px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: radial-gradient(circle at top left, #0b1120, #020617 52%);
  padding: 14px 16px 16px;
  color: #e5e7eb;
}

.award-year {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 4px;
}

.award-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.award-desc {
  font-size: 13px;
  color: #9ca3af;
  margin: 0;
}

/* 学术成果：论文 & 专利 */
.subsection {
  margin-top: 12px;
}

.subsection-title {
  margin: 0 0 10px;
  font-size: 16px;
  color: #e5e7eb;
}

.paper-card {
  border-radius: 16px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: #020617;
  padding: 14px 14px 12px;
}

.paper-title {
  font-size: 14px;
  color: #e5e7eb;
  line-height: 1.5;
}

.paper-authors {
  margin-top: 8px;
  font-size: 12px;
  color: #9ca3af;
}

.patent-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.patent-card {
  border-radius: 16px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: #020617;
  padding: 14px 14px 10px;
}

.patent-title {
  font-size: 14px;
  color: #e5e7eb;
  margin: 0 0 4px;
}

.patent-authors {
  margin: 0 0 2px;
  font-size: 12px;
  color: #9ca3af;
}

.patent-id {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}

/* B 站二维码区域 */
.qr-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
}

.qr-card {
  border-radius: 18px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: #020617;
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qr-placeholder {
  border-radius: 16px;
  border: 1px dashed rgba(75, 85, 99, 0.9);
  padding: 10px;
  background: radial-gradient(circle at top, #020617, #020617 52%);
}

.qr-placeholder img {
  width: 100%;
  max-width: 180px;
  height: auto;
  aspect-ratio: 1074 / 1529;
  object-fit: contain;
  margin: 0 auto;
}

.qr-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.qr-title {
  font-size: 14px;
  color: #e5e7eb;
}

.qr-desc {
  font-size: 12px;
  color: #9ca3af;
}

/* 页脚 */
.site-footer {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  background: #020617;
  padding: 14px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-name {
  font-size: 13px;
  font-weight: 600;
  color: #e5e7eb;
}

.footer-text {
  font-size: 11px;
  color: #6b7280;
}

.footer-right {
  display: flex;
  gap: 10px;
}

.footer-link {
  font-size: 12px;
  color: #9ca3af;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.16s ease-out;
}

.footer-link:hover {
  border-color: rgba(55, 65, 81, 0.9);
  background: #020617;
  color: #e5e7eb;
}

/* 相册导航页样式 */
.gallery-hero {
  padding: 40px 0 26px;
  background: radial-gradient(circle at top left, #1e293b 0, #020617 50%);
}

.gallery-hero-title {
  font-size: 26px;
  color: #f9fafb;
  margin: 0 0 8px;
}

.gallery-hero-subtitle {
  font-size: 13px;
  color: #9ca3af;
  margin: 0;
}

.album-grid {
  padding: 26px 0 36px;
}

.album-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.album-card {
  border-radius: 20px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: radial-gradient(circle at top left, #0b1120, #020617 52%);
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.album-cover {
  border-radius: 16px;
  overflow: hidden;
  background: #020617;
  border: 1px dashed rgba(75, 85, 99, 0.9);
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 13px;
}

.album-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.album-title {
  font-size: 15px;
  color: #e5e7eb;
}

.album-desc {
  font-size: 12px;
  color: #9ca3af;
}

.album-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.album-tag {
  font-size: 11px;
  color: #93c5fd;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.7);
  background: rgba(15, 23, 42, 0.9);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 32px;
  }

  .header-inner {
    padding: 14px 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ========= 下面为浅色主题与新版布局覆盖样式 ========= */

html,
body {
  background: #f5f5f5;
}

.site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #e5e7eb;
}

.site-title {
  color: #111827;
}

.site-subtitle {
  color: #6b7280;
}

.nav-link {
  color: #4b5563;
}

.nav-link:hover {
  border-color: #e5e7eb;
  background: #f9fafb;
}

.nav-link.active {
  background: #111827;
  border-color: #111827;
  color: #f9fafb;
}

.hero {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.hero-text {
  color: #111827;
}

.hero-label {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #6b7280;
}

.hero-title {
  color: #111827;
}

.hero-role {
  color: #4b5563;
}

.meta-item {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.meta-label {
  color: #6b7280;
}

.meta-value {
  color: #111827;
}

.hero-avatar-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
}

.avatar-wrapper {
  border: 2px solid rgba(96, 165, 250, 0.9);
  background: radial-gradient(circle at top left, #bfdbfe, #fef3c7);
}

.section {
  background: #ffffff;
}

.section-alt {
  background: #f9fafb;
}

.section-title {
  color: #111827;
}

.section-description {
  color: #6b7280;
}

/* 时间线文本提亮 */
.timeline-date,
.timeline-subtitle {
  color: #4b5563;
}

.timeline-title {
  color: #111827;
  font-weight: 600;
}

/* 三列信息区：教育 / 语言 / 获奖 */
.info-row {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.info-column {
  display: flex;
  flex-direction: column;
}

.info-column:nth-child(1) {
  flex: 1.1;
}

.info-column:nth-child(2) {
  flex: 1.4;
}

.info-column:nth-child(3) {
  flex: 1.5;
}

.info-column .section-title {
  margin-bottom: 10px;
}

.language-column .chart-card {
  flex: 1;
  margin-top: 0;
}

.chart-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

.legend-item {
  color: #6b7280;
}

.awards {
  grid-template-columns: minmax(0, 1fr);
}

.award-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #111827;
}

.award-main {
  display: flex;
  gap: 14px;
  align-items: center;
}

.award-icon img {
  width: 56px;
  height: 56px;
  border-radius: 20px;
  object-fit: cover;
  display: block;
}

.award-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.award-year {
  color: #6b7280;
}

.award-desc {
  color: #6b7280;
}

.subsection-title {
  color: #111827;
}

.paper-card,
.patent-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.paper-title,
.patent-title {
  color: #111827;
}

.paper-authors,
.patent-authors {
  color: #6b7280;
}

.patent-id {
  color: #9ca3af;
}

.qr-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 6px 10px 8px;
  width: 230px;
  margin: 0;
}

@media (max-width: 640px) {
  .qr-grid {
    flex-direction: column;
  }

  .qr-card {
    width: 100%;
  }
}

.qr-placeholder {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  max-width: 210px;
  margin: 0 auto 8px;
}

.bili-avatar {
  display: block;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid #e5e7eb;
}

.bili-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bili-link {
  color: inherit;
  text-decoration: none;
}

.bili-link:hover {
  text-decoration: underline;
}

.qr-title {
  color: #111827;
  text-align: center;
}

.qr-desc {
  color: #6b7280;
  text-align: center;
}

.site-footer {
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}

.footer-name {
  color: #111827;
}

.footer-text {
  color: #9ca3af;
}

.footer-link {
  color: #6b7280;
}

.footer-link:hover {
  border-color: #e5e7eb;
  background: #f9fafb;
  color: #111827;
}

.gallery-hero {
  background: #f9fafb;
}

.gallery-hero-title {
  color: #111827;
}

.gallery-hero-subtitle {
  color: #6b7280;
}

.album-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.album-cover {
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  color: #9ca3af;
}

.album-title {
  color: #111827;
}

.album-desc {
  color: #6b7280;
}

.album-tag {
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
}

/* 相册瀑布流布局（类似小红书） */
.photo-grid-section {
  padding: 26px 0 36px;
  background: #ffffff;
}

.photo-grid {
  column-count: 3;
  column-gap: 16px;
}

.photo-item {
  break-inside: avoid;
  margin: 0 0 16px;
  border-radius: 16px;
  overflow: hidden;
  background: #f3f4f6;
}

.photo-item img {
  width: 100%;
  display: block;
}

@media (max-width: 900px) {
  .photo-grid {
    column-count: 2;
  }
}

@media (max-width: 768px) {
  .info-row {
    flex-direction: column;
  }

  .info-column:nth-child(1),
  .info-column:nth-child(2),
  .info-column:nth-child(3) {
    flex: 1 1 auto;
  }

  .photo-grid {
    column-count: 1;
  }
}

/* 小屏下导航左右留更大安全边距，避免贴边或被刘海遮挡 */
@media (max-width: 640px) {
  .site-header .container {
    padding: 10px 24px;
  }

  .header-inner {
    padding: 16px 0;
  }
}

