/* 基础设置与整体配色（淡粉为主，简洁可爱） */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #2a2230;
  background-color: #fff7fa;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* 主题变量：需要换色时改这里即可 */
:root {
  --bg: #fff7fa;
  --panel: #ffffff;
  --ink: #2a2230;
  --muted: #6b5a6e;
  --border: rgba(234, 207, 218, 0.9);
  --shadow: 0 10px 25px rgba(210, 110, 150, 0.12);
  --accent: #f472b6;      /* 淡粉 */
  --accent-2: #fb7185;    /* 玫粉点缀 */
  --accent-soft: #fff1f7; /* 很浅的粉 */
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

section {
  scroll-margin-top: 80px;
}

/* 顶部导航栏 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: rgba(255, 247, 250, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}

.logo-area {
  display: flex;
  align-items: center;
}

.site-logo-text {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.site-nav {
  display: none;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 24px;
  padding: 0;
  margin: 0;
}

.nav-list a {
  font-size: 14px;
  padding: 8px 0;
  position: relative;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.18s ease-out;
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after {
  width: 100%;
}

/* 汉堡菜单（平板/手机） */
.nav-toggle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.18s ease-out, border-color 0.18s ease-out, transform 0.12s ease-out;
}

.nav-toggle-line {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background-color: var(--ink);
  transition: transform 0.18s ease-out, opacity 0.18s ease-out;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background-color: var(--accent-soft);
  border-color: rgba(244, 114, 182, 0.5);
  transform: translateY(-1px);
}

.nav-open .nav-toggle-line:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-open .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle-line:nth-child(3) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* 移动端导航下拉 */
@media (max-width: 1023px) {
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-4px);
    transition: max-height 0.2s ease-out, opacity 0.2s ease-out, transform 0.2s ease-out;
  }

  .nav-open .site-nav {
    max-height: 320px;
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav .nav-list {
    flex-direction: column;
    padding: 8px 16px 12px;
    gap: 4px;
  }

  .site-nav .nav-list a {
    padding: 10px 0;
    font-size: 15px;
  }
}

/* 电脑端显示完整菜单，隐藏汉堡菜单 */
@media (min-width: 1024px) {
  .site-nav {
    display: block;
  }

  .nav-toggle {
    display: none;
  }
}

/* 通用区块样式 */
.section {
  padding: 56px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 72px 0;
  }
}

.section-header {
  margin-bottom: 24px;
}

.section-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  height: 8px;
  margin-top: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(244, 114, 182, 0.25), rgba(251, 113, 133, 0.12));
}

.section-desc {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* 首页 Banner */
.section-home {
  background:
    radial-gradient(800px 300px at 20% 20%, rgba(244, 114, 182, 0.22), transparent 60%),
    radial-gradient(700px 260px at 80% 30%, rgba(251, 113, 133, 0.14), transparent 60%),
    linear-gradient(135deg, #fff7fa, #fff1f7);
  display: flex;
  align-items: center;
  min-height: 50vh;
}

.home-inner {
  text-align: center;
  max-width: 720px;
}

.home-title {
  font-size: 28px;
  margin: 0 0 12px;
}

.home-subtitle {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

@media (min-width: 768px) {
  .home-title {
    font-size: 34px;
  }

  .home-subtitle {
    font-size: 17px;
  }
}

/* 媒体作品通用网格（视频 / 图片） */
.section-media {
  background-color: var(--panel);
}

.media-grid {
  display: grid;
  gap: 20px;
}

/* 手机单列 */
@media (min-width: 480px) {
  .media-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

/* Pad 双列 */
@media (min-width: 768px) {
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 电脑三列 */
@media (min-width: 1024px) {
  .media-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.media-card {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 12px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow);
}

.media-video-wrapper {
  border-radius: 10px;
  overflow: hidden;
  background-color: rgba(42, 34, 48, 0.92);
}

.media-video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
}

.media-title {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 600;
}

.media-text {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* 图片作品卡片 */
.image-card {
  cursor: pointer;
}

.image-thumb-button {
  border: none;
  padding: 0;
  background: none;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  display: block;
  outline: none;
}

.image-thumb-button img {
  width: 100%;
  height: auto;
  transform: scale(1);
  transition: transform 0.18s ease-out;
}

.image-card:hover img,
.image-card:focus-within img {
  transform: scale(1.04);
}

/* 图片预览弹窗 */
.image-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 30;
}

.image-modal.is-open {
  display: flex;
}

.image-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(55, 33, 55, 0.55);
}

.image-modal-content {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 960px);
  max-height: 90vh;
  background-color: rgba(42, 34, 48, 0.96);
  border-radius: 18px;
  padding: 12px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 22px 55px rgba(25, 10, 20, 0.35);
}

.image-modal-content img {
  border-radius: 10px;
  object-fit: contain;
}

.image-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.9), rgba(251, 113, 133, 0.85));
  color: #f9fafb;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.image-modal-title {
  margin: 4px 4px 0;
  font-size: 14px;
  color: #e5e7eb;
}

/* 文字作品区 */
.section-texts {
  background-color: #fff1f7;
}

.text-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.text-item {
  border-radius: 12px;
  border: 1px solid var(--border);
  background-color: rgba(255, 255, 255, 0.92);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.text-toggle {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.text-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.text-summary {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.text-full {
  padding: 0 16px 14px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.8;
  color: #4a3b4e;
  display: none;
}

.text-item.is-open .text-full {
  display: block;
}

@media (max-width: 767px) {
  .text-toggle {
    padding: 16px 18px;
  }

  .text-full {
    padding: 0 18px 16px;
  }
}

/* 实习 / 项目经历 */
.section-experience {
  background-color: var(--panel);
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.experience-item {
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 14px 16px 16px;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.experience-meta {
  margin: 0 0 8px;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--ink);
}

.experience-time {
  font-weight: 600;
  color: #3f2b41;
}

.experience-company {
  color: #111827;
}

.experience-role {
  color: #e11d48;
  font-weight: 600;
}

.experience-detail {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #4a3b4e;
}

.experience-highlight {
  color: #db2777;
}

/* 关于我 */
.section-about {
  background-color: var(--bg);
}

.about-content {
  font-size: 15px;
  line-height: 1.9;
  color: #4a3b4e;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 联系方式 */
.section-contact {
  background-color: var(--panel);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 10px 14px;
  background-color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  min-height: 48px;
  box-shadow: var(--shadow);
  transition: background-color 0.18s ease-out, border-color 0.18s ease-out, transform 0.1s ease-out;
}

.contact-item-static {
  border: 1px dashed #d1d5db;
}

.contact-item:hover,
.contact-item:focus-visible {
  background-color: var(--accent-soft);
  border-color: rgba(244, 114, 182, 0.55);
  transform: translateY(-1px);
}

.contact-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.25), rgba(251, 113, 133, 0.16));
  color: #b91c1c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
}

.contact-label {
  font-weight: 600;
}

.contact-value {
  color: var(--muted);
  word-break: break-all;
}

@media (max-width: 767px) {
  .contact-item {
    padding: 12px 16px;
    min-height: 52px;
  }
}

/* 页脚 */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 16px 0 20px;
  background-color: var(--bg);
}

.footer-text {
  margin: 0;
  font-size: 12px;
  color: rgba(107, 90, 110, 0.75);
  text-align: center;
}

