/* ========== 全局基础设置（Apple 风 + 玻璃拟态） ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth; /* 导航锚点平滑滚动 */
}

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui,
    -system-ui, "Segoe UI", sans-serif;
  color: #0f172a;
  background: radial-gradient(circle at top left, #e0f2fe, #f9fafb);
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 24px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.page-shell {
  width: 100%;
  max-width: 1120px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(22px);
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.32);
  border: 1px solid rgba(148, 163, 184, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ========== 顶部导航 / Hero ========== */
.site-header {
  padding: 18px 26px 26px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(
      to bottom,
      rgba(248, 250, 252, 0.85),
      rgba(248, 250, 252, 0.4)
    ),
    radial-gradient(circle at top left, #e0f2fe, transparent 55%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.brand-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 11px;
  color: #6b7280;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #6b7280;
}

.nav-link {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease,
    transform 0.16s ease;
}

.nav-link:hover {
  background: #0f172a;
  color: #f9fafb;
  border-color: #0f172a;
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 22px;
  margin-top: 6px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #4f46e5;
  background: #eef2ff;
  padding: 4px 10px;
  border-radius: 999px;
  width: fit-content;
}

.hero-title {
  font-size: 30px;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.hero-title-accent {
  color: #2563eb;
}

.hero-description {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.btn {
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    background 0.16s ease, color 0.16s ease;
}

.btn-primary {
  background: #0f172a;
  color: #f9fafb;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.55);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 52px rgba(15, 23, 42, 0.7);
}

.btn-secondary {
  background: #e5e7eb;
  color: #111827;
}

.btn-secondary:hover {
  background: #d1d5db;
  transform: translateY(-1px);
}

.hero-profile {
  border-radius: 22px;
  background: radial-gradient(circle at top left, #0f172a, #020617);
  color: #e5e7eb;
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.hero-profile::before {
  content: "";
  position: absolute;
  inset: -120px;
  background: radial-gradient(circle at 0% 0%, #6366f1 0, transparent 52%),
    radial-gradient(circle at 120% 0%, #ec4899 0, transparent 52%);
  opacity: 0.18;
  pointer-events: none;
}

.profile-avatar {
  width: 70px;
  height: 70px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.8);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.9);
  position: relative;
  z-index: 1;
}

.profile-meta {
  position: relative;
  z-index: 1;
  margin-top: 4px;
}

.profile-name {
  font-size: 18px;
  font-weight: 600;
}

.profile-role {
  font-size: 12px;
  color: #9ca3af;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

.profile-tags li {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.8);
}

.profile-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 11px;
  color: #9ca3af;
  position: relative;
  z-index: 1;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.3);
}

/* ========== 主体内容公用样式 ========== */
.site-main {
  padding: 20px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.section {
  padding: 14px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.section:last-of-type {
  border-bottom: none;
}

/* 入场动效：默认略微下移并透明，进入视口后渐显 */
.section-hidden {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.section-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-header {
  margin-bottom: 14px;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
}

.section-subtitle {
  margin-top: 4px;
  font-size: 13px;
  color: #6b7280;
}

/* ========== 社交 / 小红书区 ========== */
.section-social {
  /* 轻微背景提亮，突出为社交区 */
}

.social-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr);
  gap: 14px;
}

.social-card {
  border-radius: 18px;
  padding: 12px 12px;
  background: #0f172a;
  color: #e5e7eb;
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: 0 16px 50px rgba(15, 23, 42, 0.7);
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    background 0.16s ease;
}

.social-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.85);
}

.social-card-muted {
  background: #f3f4f6;
  color: #374151;
  box-shadow: none;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.9);
  color: #f9fafb;
  flex-shrink: 0;
}

.social-icon-xhs {
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.social-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.social-name {
  font-size: 14px;
  font-weight: 600;
}

.social-desc {
  font-size: 12px;
  color: inherit;
  opacity: 0.85;
}

/* ========== 摄影作品网格 ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  border-radius: 18px;
  overflow: hidden;
  background: #f9fafb;
  border: 1px solid rgba(226, 232, 240, 1);
  box-shadow: 0 10px 26px rgba(148, 163, 184, 0.3);
  display: flex;
  flex-direction: column;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(148, 163, 184, 0.45);
}

.card-media {
  position: relative;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.card:hover .card-media img {
  transform: scale(1.04);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.7),
    rgba(15, 23, 42, 0)
  );
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 10px 12px;
  font-size: 12px;
  color: #f9fafb;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.card:hover .card-overlay {
  opacity: 1;
}

.card-body {
  padding: 10px 12px 12px;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.card-text {
  font-size: 12px;
  color: #4b5563;
}

/* ========== 文章列表 ========== */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-item {
  border-radius: 16px;
  padding: 10px 12px;
  background: #f9fafb;
  border: 1px solid rgba(226, 232, 240, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.article-main {
  flex: 1;
}

.article-title {
  font-size: 14px;
  font-weight: 600;
}

.article-summary {
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
}

.article-link {
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #0f172a;
  color: #f9fafb;
  white-space: nowrap;
  transition: background 0.16s ease, transform 0.16s ease,
    box-shadow 0.16s ease;
}

.article-link:hover {
  background: #111827;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.6);
}

/* ========== 简历区域 ========== */
.section-resume {
}

.resume-panel {
  border-radius: 18px;
  padding: 12px 12px;
  background: linear-gradient(
      135deg,
      rgba(59, 130, 246, 0.12),
      rgba(59, 130, 246, 0.02)
    ),
    #f9fafb;
  border: 1px solid rgba(191, 219, 254, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.resume-text {
  font-size: 13px;
  color: #4b5563;
}

.resume-tip {
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
}

.resume-tip code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #e5e7eb;
}

.resume-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.btn-resume {
  font-weight: 500;
}

/* ========== 页脚 ========== */
.site-footer {
  padding: 12px 26px 16px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #9ca3af;
}

.footer-extra {
  max-width: 60%;
  text-align: right;
}

/* ========== 响应式：窄屏布局调整 ========== */
@media (max-width: 768px) {
  body {
    padding: 12px;
  }

  .site-header {
    padding: 14px 16px 18px;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-main {
    padding: 16px 16px 18px;
  }

  .social-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resume-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .resume-actions {
    width: 100%;
    align-items: stretch;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .footer-extra {
    max-width: 100%;
    text-align: left;
  }
}

