* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: #f7f4ee;
  color: #1f1f1f;
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 7%;
  background: rgba(247, 244, 238, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #e8dfd3;
}

.logo {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.nav nav {
  display: flex;
  gap: 28px;
}

.nav nav a {
  font-size: 14px;
  color: #666;
}

.nav nav a:hover {
  color: #1f1f1f;
}

.hero {
  min-height: auto;
  padding: 60px 7% 10px;

}

.hero-content{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:80px;
}

.hero-left{
  flex:1;
}

.hero-right{
  width:300px;
  height:300px;
}

.hero-right video{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:50%;
}

.small-title {
  margin: 0 0 24px;
  color: #b66f5d;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(76px, 14vw, 180px);
  line-height: 0.9;
  letter-spacing: -4px;
  font-weight: 400;
}

.hero-text {
  max-width: 620px;
  margin: 34px 0 0;
  font-size: 22px;
  line-height: 1.6;
  color: #666;
}

.hero-links {
  display: flex;
  gap: 14px;
  margin-top: 42px;
}

.hero-links a {
  padding: 13px 22px;
  border: 1px solid #1f1f1f;
  border-radius: 999px;
  font-size: 14px;
}

.hero-links a:first-child {
  background: #1f1f1f;
  color: #fff;
}

.cover-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 22px;
  margin-bottom: 18px;
  display: block;
}

.section {
  padding: 40px 7% 60px;
}

#works {
  scroll-margin-top: 20px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 36px;
}

.section h2 {
  margin: 0;
  font-size: clamp(36px, 6vw, 72px);
  letter-spacing: -3px;
  font-weight: 500;
}

.section-head p {
  max-width: 360px;
  color: #777;
  line-height: 1.7;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.work-card {
  padding: 16px;
  border: 1px solid #e5dbce;
  border-radius: 28px;
  background: #fffaf4;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.work-card:hover {
  transform: translateY(-6px);
  border-color: #c9aa91;
}

.cover {
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(182, 111, 93, 0.18), rgba(255, 255, 255, 0.2)),
    #e8dfd3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a99a8c;
  font-size: 14px;
  margin-bottom: 18px;
}

.role {
  margin: 0 0 8px;
  color: #b66f5d;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.work-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: -0.8px;
  font-weight: 500;
}

.work-card p:last-child {
  margin: 0;
  color: #777;
  line-height: 1.5;
}

.about {
  max-width: 920px;
}

.about p {
  font-size: 26px;
  line-height: 1.55;
  color: #3a3a3a;
}

.contact {
  border-top: 1px solid #e5dbce;
}

.contact p {
  color: #777;
  font-size: 18px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.contact-links a {
  padding: 13px 20px;
  border: 1px solid #d8cabb;
  border-radius: 999px;
  background: #fffaf4;
}

.contact-links a:hover {
  border-color: #b66f5d;
}

footer {
  padding: 34px 7%;
  color: #999;
  border-top: 1px solid #e5dbce;
}

/* ===== Works ===== */

.work-card a {
  text-decoration: none;
  color: inherit;
}

.work-note {
  display: inline-block;
  font-size: 11px;
  color: #b66f5d;
  background: rgba(182, 111, 93, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  font-weight: 500;
  letter-spacing: 0.4px;
}

.role-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.role-note {
  font-size: 12px;
  color: #999;
  font-style: italic;
}

.avatar-link {
  display: block;
  transition: transform 0.3s ease;
}

.avatar-link:hover {
  transform: scale(1.05);
}

.avatar-tip {
  margin-top: 14px;
  text-align: center;
  font-size: 20px;
  color: rgb(65, 170, 245);
  animation: floatText 1s infinite;
  font-family: "Quicksand", sans-serif;
}

@keyframes floatText {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* ===== Mobile ===== */

@media (max-width: 850px) {

  /* 导航栏 */

  .nav {
    padding: 18px 5%;
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav nav {
    width: 100%;
    justify-content: center;
    gap: 24px;
  }

  /* 首页 */

  .hero {
    padding: 60px 5% 60px;
    min-height: auto;
  }

  .hero-content {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  /* 头像放最上面 */

  .hero-right {
    order: -1;
    width: 180px;
    height: 180px;
    margin: 0 auto;
  }

  .hero-left {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .small-title {
    text-align: center;
    margin-bottom: 16px;
    margin-top: 35px;
  }

  .hero h1 {
    font-size: 72px;
    line-height: 1;
    letter-spacing: -2px;
  }

  .hero-text {
    max-width: 320px;
    font-size: 18px;
    margin: 20px auto 0;
  }

  .hero-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* click me */

  .avatar-tip {
    font-size: 18px;
  }

  /* 作品 */

  .section {
    padding: 60px 5%;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 12px;
  }
  
  .works-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.work-card {
  padding: 10px;
}

.cover-img {
  margin-bottom: 10px;
}

.role {
  font-size: 10px;
  margin-bottom: 4px;
}

.work-note {
  font-size: 9px;
  padding: 2px 6px;
  margin-bottom: 6px;
}

.work-card h3 {
  font-size: 16px;
  line-height: 1.2;

  display: -webkit-box;
  -webkit-line-clamp: 2;   /* 最多两行 */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work-card p:last-child {
  font-size: 13px;
}

  
  

  /* about */

  .about p {
    font-size: 20px;
  }

  /*html*/
  html {
    scroll-padding-top: 40px
  }
}