/* ============================================
   张水丽 · 个人作品集
   设计变量
   ============================================ */
:root {
  --bg: #FAF6F1;
  --bg-card: #FFFFFF;
  --ink: #1A1A1A;
  --ink-soft: #5C5550;
  --ink-mute: #8A8078;
  --pink: #D9A0A6;
  --pink-deep: #C27E86;
  --brown: #6B4F3A;
  --line: #EDE6DD;
  --shadow: 0 4px 24px rgba(60, 40, 30, 0.06);
  --shadow-hover: 0 12px 36px rgba(60, 40, 30, 0.12);
  --radius: 16px;
  --max-w: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

/* ============================================
   封面页 index.html
   ============================================ */
.cover {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}

.cover::before {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,160,166,0.35), transparent 70%);
  top: -160px; right: -160px;
  z-index: 0;
}
.cover::after {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107,79,58,0.12), transparent 70%);
  bottom: -140px; left: -140px;
  z-index: 0;
}

.cover-top, .cover-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-mute);
  position: relative;
  z-index: 1;
}

.cover-mid {
  position: relative;
  z-index: 1;
  padding: 40px 0;
}

.cover-eyebrow {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  color: var(--pink-deep);
  font-size: 16px;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

.cover-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(56px, 12vw, 160px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.cover-title .accent { color: var(--pink-deep); }

.cover-role {
  margin-top: 28px;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--ink-soft);
}
.cover-role strong { color: var(--ink); font-weight: 600; }

.cover-tagline {
  margin-top: 18px;
  font-size: 15px;
  color: var(--ink-mute);
  max-width: 480px;
}

.cover-cta {
  display: inline-block;
  margin-top: 48px;
  padding: 16px 36px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-size: 15px;
  letter-spacing: 0.05em;
  transition: all 0.25s ease;
}
.cover-cta:hover {
  background: var(--pink-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* ============================================
   顶部导航
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  background: rgba(250, 246, 241, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
}
.nav-logo {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 20px;
}
.nav-logo span { color: var(--pink-deep); }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--pink-deep);
}

.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px; height: 22px;
  position: relative;
}
.nav-burger span {
  position: absolute;
  left: 0; width: 100%; height: 2px;
  background: var(--ink);
  transition: all 0.25s;
}
.nav-burger span:nth-child(1) { top: 2px; }
.nav-burger span:nth-child(2) { top: 10px; }
.nav-burger span:nth-child(3) { top: 18px; }
.nav-burger.open span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* ============================================
   Hero（二级页顶部）
   ============================================ */
.hero {
  padding: 100px 0 60px;
}
.hero-eyebrow {
  font-family: Georgia, serif;
  font-style: italic;
  color: var(--pink-deep);
  margin-bottom: 20px;
}
.hero h1 {
  font-family: Georgia, serif;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero h1 .accent { color: var(--pink-deep); }
.hero p {
  margin-top: 24px;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 640px;
}

/* ============================================
   通用板块
   ============================================ */
section.block {
  padding: 100px 0;
  border-top: 1px solid var(--line);
}
.block-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 48px;
}
.block-num {
  font-family: Georgia, serif;
  font-size: 14px;
  color: var(--pink-deep);
  letter-spacing: 0.1em;
}
.block-title {
  font-family: Georgia, serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
}
.block-sub {
  color: var(--ink-mute);
  font-size: 14px;
  margin-left: auto;
}

/* ============================================
   关于我
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: start;
}
.avatar-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.avatar-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 12px;
}
.about-name {
  font-family: Georgia, serif;
  font-size: 36px;
  font-weight: 700;
}
.about-role {
  color: var(--pink-deep);
  margin-top: 6px;
  font-size: 15px;
}
.about-bio {
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 15px;
}
.about-meta {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
  font-size: 14px;
}
.about-meta dt { color: var(--ink-mute); }
.about-meta dd { color: var(--ink); margin-top: 2px; }

.skill-tags {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--bg-card);
}

.timeline {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px dashed var(--line);
}
.timeline-item:last-child { border-bottom: 1px dashed var(--line); }
.timeline-when {
  font-family: Georgia, serif;
  font-size: 14px;
  color: var(--ink-mute);
}
.timeline-what h4 { font-size: 16px; }
.timeline-what .co {
  font-size: 13px;
  color: var(--pink-deep);
  margin-bottom: 6px;
}
.timeline-what p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 6px;
}

/* ============================================
   作品卡片通用
   ============================================ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.work-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.work-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--line);
  overflow: hidden;
}
.work-thumb img, .work-thumb video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.work-body { padding: 20px 22px 24px; }
.work-cat {
  font-size: 12px;
  color: var(--pink-deep);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.work-title {
  font-size: 18px;
  font-weight: 600;
  margin-top: 6px;
}
.work-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 8px;
}
.work-meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.work-meta .tag { font-size: 12px; padding: 4px 10px; }

.badge-hot {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--pink-deep);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
}
.work-card { position: relative; }

/* 平面作品 3:4 */
.work-thumb.portrait { aspect-ratio: 3/4; }

/* 运营手机框 9:16 */
.phone-frame {
  background: var(--bg-card);
  border-radius: 28px;
  padding: 10px;
  box-shadow: var(--shadow);
}
.phone-frame img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  border-radius: 20px;
  background: #000;
}

/* 数据卡 */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.stat {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-num {
  font-family: Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--pink-deep);
}
.stat-label {
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 4px;
}

/* 占位卡 */
.placeholder {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 60px 24px;
  text-align: center;
  color: var(--ink-mute);
  background: repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(0,0,0,0.015) 12px, rgba(0,0,0,0.015) 24px);
}
.placeholder h4 { color: var(--ink-soft); margin-bottom: 6px; }

/* 技能图标行 */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.skill-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 16px;
  text-align: center;
  box-shadow: var(--shadow);
}
.skill-icon {
  width: 48px; height: 48px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: rgba(217,160,166,0.18);
  color: var(--pink-deep);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-family: Georgia, serif;
  font-size: 18px;
}
.skill-item h5 { font-size: 15px; }
.skill-item p { font-size: 12px; color: var(--ink-mute); margin-top: 4px; }

/* ============================================
   结尾
   ============================================ */
footer.end {
  padding: 120px 0 60px;
  background: var(--ink);
  color: #fff;
  margin-top: 60px;
}
.end-eyebrow {
  font-family: Georgia, serif;
  font-style: italic;
  color: var(--pink);
}
.end h2 {
  font-family: Georgia, serif;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.1;
  margin-top: 16px;
}
.end-contact {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  font-size: 18px;
}
.end-contact a { color: #fff; border-bottom: 1px solid rgba(255,255,255,0.3); }
.end-contact a:hover { border-color: var(--pink); color: var(--pink); }
.end-foot {
  margin-top: 80px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.back-top {
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}

/* 外链按钮 */
.ext-link {
  display: inline-block;
  font-size: 13px;
  color: var(--pink-deep);
  border-bottom: 1px solid var(--pink);
  padding-bottom: 2px;
  transition: all 0.2s;
}
.ext-link:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* 可放大的图片鼠标手型 */
.work-thumb img[data-lightbox] {
  cursor: zoom-in;
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .skill-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .avatar-card { max-width: 320px; }
}

@media (max-width: 768px) {
  .container { padding: 0 22px; }
  section.block { padding: 64px 0; }
  .hero { padding: 64px 0 40px; }

  .nav-links {
    position: fixed;
    top: 68px; right: 0;
    background: var(--bg);
    width: 100%;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links a { display: block; padding: 16px 22px; font-size: 15px; }
  .nav-links a.active::after { display: none; }
  .nav-burger { display: block; }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .skill-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: 1fr; }
  .about-meta { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 6px; }
  .block-sub { display: none; }

  .cover { padding: 32px 0; }
  .cover-bottom { flex-direction: column; gap: 6px; align-items: flex-start; }
}
