@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
  --primary-bg: #f5f5f5;
  --about-bg: #0067FF;
  --footer-bg: #000000;
  --text-main: #000000;
  --text-inverse: #ffffff;
  --text-gray: #9c9c9c;
  --nav-height: 64px;
  --container-max-width: 1840px;
  --container-padding: 40px;

  --font-family: 'MI LANTING', 'OPPO Sans', 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--primary-bg);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}


body.page-about {
  background-color: var(--about-bg);
  color: var(--text-inverse);
}

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

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  /* 两侧安全边距始终是40px */
}

/* ==================================
   Navigation
   ================================== */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--nav-height);
  position: relative;
  z-index: 100;
}

/* 吸顶导航：滚动后固定在顶部并带背景 */
.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 0 40px;
  transform: translateY(-100%);
  transition: none;
  z-index: 9999;
}

.nav-fixed.nav-visible {
  transform: translateY(0);
}

/* 各页面吸顶背景色 */
.page-work .nav-fixed {
  background-color: rgba(245, 245, 245, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Playground page: ensure fixed nav has background when visible */
.page-playground .nav-fixed {
  background-color: rgba(245, 245, 245, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ==================================
   Playground styles
   ================================== */
.page-playground .playground-hero {
  padding-top: 0;
  padding-bottom: 40px;
}

/* 舞台区域 — 承载3D环形卡片组件 */
.playground-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
  margin-top: -40px;
  padding-bottom: 30px;
}

/* 3D环形卡片容器 — 增大高度防截断，向上偏移70px使上方文字可覆盖 */
#ring-container {
  width: 100%;
  height: 900px;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: -70px;
}

/* 场景区域留白，防止卡片出场动画被裁切 */
#ring-container .rc-scene {
  height: calc(100% - 80px);
  margin-top: 24px;
}

/* 数量指示器下移30px，远离核心视觉区域 */
#ring-container .rc-info-panel {
  bottom: -20px;
}

/* 详情模式下容器自动扩展 */
#ring-container.detail-mode {
  min-height: 900px;
}

/* Playground page divider */
.pg-divider {
  height: 1px;
  background-color: #D8D8D8;
  margin: 60px 0;
}

/* Basic info style for playground hero */
.pg-basic-info {
  text-align: left;
  margin: 0 0 40px;
  display: grid;
  grid-template-columns: 560px 1fr;
  align-items: start
}

.pg-basic-info .pg-meta {
  color: var(--text-gray);
  font-size: 14px;
  text-align: left
}

.pg-basic-info .pg-introduce {
  max-width: 720px
}

.pg-basic-info .pg-title {
  font-size: 24px;
  margin: 12px 0 24px;
  font-weight: 600;
  text-align: left
}

.pg-basic-info .pg-desc {
  color: #666;
  width: 720px;
  margin: 0;
  line-height: 1.8;
  font-size: 16px;
  text-align: left
}

@media (max-width: 900px) {
  #ring-container {
    height: 520px;
  }

  .pg-basic-info .pg-title {
    font-size: 28px
  }
}

.page-about .nav-fixed {
  background-color: rgba(0, 103, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.page-detail .nav-fixed {
  background-color: rgba(245, 245, 245, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav .logo {
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links select,
.nav-links a {
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}

/* ==================================
   Work Page - Hero
   ================================== */
.hero {
  padding-top: 100px;
  padding-bottom: 0;
  /* Clear padding to control gap via margin-bottom of divider */
  position: relative;
}

/* Cursor Trail Icons */
.trail-icon {
  position: fixed;
  width: 60px;
  height: 60px;
  pointer-events: none;
  opacity: 0;
  z-index: 9000;
  will-change: transform, opacity;
}

.trail-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-meta {
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 100px;
}

.hero-title {
  font-size: 60px;
  line-height: 1.25;
  /* 缩小行高 */
  font-weight: 500;
  /* 增加一个梯度的加粗 */
  /* max-width: 1600px; - removed for responsive breaking */
  margin-bottom: 100px;
}

.text-black {
  color: var(--text-main) !important;
}

.text-gray {
  color: var(--text-gray) !important;
}

.section-divider {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  font-size: 18px;
  margin-bottom: 40px;
}

.work-divider {
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 20px;
  gap: 8px;
  margin-bottom: 88px;
  /* 距离作品容器精确 88px */
}

body.page-about .section-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

/* ==================================
   Work Page - Grid
   ================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 88px 20px;
  /* 垂直间距88px */
  margin-bottom: 120px;
  align-items: flex-start;
  /* 顶部对齐 */
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
}

.project-card.span-2 {
  grid-column: span 2;
}

.project-img-wrapper {
  background: #d8d8d8;
  width: 100%;
  overflow: hidden;
}

.size-large {
  aspect-ratio: 910 / 684;
}

.size-wide {
  aspect-ratio: 910 / 512;
}

.size-small {
  aspect-ratio: 445 / 334;
}

.size-tiny {
  aspect-ratio: 445 / 250;
}

.size-910x672 {
  aspect-ratio: 910 / 672;
}

.project-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Remove baseline gap */
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-img-wrapper img {
  transform: scale(1.05);
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-info h3 {
  font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  font-size: 24px;
  font-weight: 400;
}

.project-info p {
  font-size: 12px;
  color: var(--text-gray);
}

/* ==================================
   Work Page - Experience section
   ================================== */
.experience-section {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 17px;
  padding-bottom: 120px;
  position: relative;
}

.exp-top {
  display: flex;
  font-size: 24px;
}

.exp-title {
  width: 882px;
}

.exp-link {
  text-decoration: underline;
  cursor: pointer;
}

.exp-content {
  margin-top: 236px;
  margin-left: 24.78%;
  font-size: 58px;
  line-height: 1.4;
  font-weight: 500;
  text-align: left;
}

/* Words Stagger 逐词错落动画（Spell UI WordsStagger 风格） */
.exp-content.words-stagger {
  display: flex;
  flex-wrap: wrap;
  row-gap: 0.15em;
}

.stagger-word {
  display: inline-block;
  will-change: transform, opacity, filter;
}

/* ==================================
   Logo Marquee
   ================================== */
.marquee-section {
  margin-top: 160px;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 80px;
  padding-right: 80px;
  flex-shrink: 0;
}

.marquee-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  flex-shrink: 0;
  opacity: 0.55;
  transition: opacity 0.3s ease;
}

.marquee-item:hover {
  opacity: 1;
}

.marquee-item img {
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.marquee-item:hover img {
  filter: grayscale(0%);
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ==================================
   About Page - Cursor Preview
   ================================== */
.about-cursor-preview {
  position: fixed;
  width: 400px;
  height: 300px;
  top: 0;
  left: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.8);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
  background-color: #d8d8d8;
  backdrop-filter: blur(10px);
}

.preview-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.1);
  will-change: opacity, transform;
}

/* ==================================
   About Page
   ================================== */
.about-hero {
  padding-top: 80px;
  padding-bottom: 80px;
}

.about-intro {
  font-size: 28px;
  line-height: 1.6;
  max-width: 680px;
  margin-left: calc(50% - 40px);
  /* 页面中轴线靠左对齐，减去container padding */
  margin-bottom: 100px;
  font-weight: 500;
}

.about-portrait {
  width: 100%;
  margin-bottom: 120px;
}

.about-portrait img {
  width: 100%;
  height: auto;
  display: block;
}

/* 人物照片 — 静态图片 */
.about-portrait-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

.about-lists {
  display: flex;
  flex-direction: column;
}

.about-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* 左右各占50%，标题在左，正文从中轴线开始 */
  gap: 0;
  padding: 80px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  align-items: start;
}

.about-row-title {
  font-size: 48px;
  font-weight: 500;
}

/* Spell UI Special Text — 打乱解码动画 */
.special-text {
  display: inline-flex;
  flex-wrap: wrap;
}

.special-char {
  display: inline-block;
  will-change: transform, opacity, filter;
  font-variant-numeric: tabular-nums;
}

.special-char.decoded {
  /* 解码完成后的状态 — 可添加额外视觉反馈 */
}

/* 正文打乱效果 — 无模糊无透明度，纯字符跳动 */
.special-text-body {
  display: inline-flex;
  flex-wrap: wrap;
}

.special-text-body .special-char {
  display: inline-block;
  will-change: contents;
  font-variant-numeric: tabular-nums;
}

.about-row-desc {
  font-size: 20px;
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ==================================
   Footer — 空间嵌套感视差滚动效果
   黑色背景层 100vh 作为蒙版裁剪容器
   文字层嵌入内部，滚动时仅做80px微移形成强烈速度差
   视觉效果：文字被黑色背景"带出来"，像嵌在水泥里
   ================================== */
.footer {
  background-color: var(--footer-bg);
  color: var(--text-inverse);
  height: 100vh;
  position: relative;
  overflow: hidden;  /* 蒙版裁剪：文字超出黑色区域不可见 */
}

/* 内容层 — 视差滚动层，初始y偏移由GSAP控制 */
.footer-content {
  position: relative;
  will-change: transform;
  padding-top: 128px;
  /* 顶部多留80px空间给文字层视差入场 */
  padding-bottom: 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 40px;
  color: #9c9c9c;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 17px;
  /* Based on Sketch y=17 offset */
}

.footer-top a {
  display: block;
  color: inherit;
}

.footer-top strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text-inverse);
}

.footer-giant {
  font-size: 140px;
  /* 放大到140px */
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* 靠左侧固定 */
}

.footer-link {
  position: relative;
  display: inline-block;
  color: var(--text-inverse);
  border-bottom: 2px solid transparent;
  padding-bottom: 10px;
  overflow: hidden;
  transition: color 0.3s ease;
  margin-bottom: -1vw;
  cursor: pointer;
}

.footer-link .text-inner {
  display: inline-block;
}

.footer-link .text-hover {
  position: absolute;
  top: 100%;
  left: 0;
  color: var(--about-bg);
}

/* Responsive */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card.span-2 {
    grid-column: span 2;
  }

  .hero-title {
    font-size: 40px;
  }

  .exp-top {
    font-size: 20px;
  }

  .exp-title {
    width: auto;
    margin-right: auto;
  }

  .exp-content {
    margin-left: 0;
    margin-top: 80px;
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card.span-2 {
    grid-column: span 1;
  }

  .hero-meta {
    font-size: 18px;
  }

  .hero-title {
    font-size: 28px;
  }

  .about-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .exp-content {
    font-size: 28px;
    margin-top: 40px;
  }

  .experience-section {
    padding-bottom: 120px;
  }
}

/* ==================================
   Detail Page
   ================================== */
.page-detail .basic-information {
  margin-top: 59px;
  /* nav底部到basic info的间距 */
}

.basic-info-divider {
  width: 100%;
  height: 1px;
  background-color: #d8d8d8;
}

.basic-info-content {
  display: flex;
  padding-top: 60px;
  /* 分割线到内容的间距 */
  position: relative;
}

.basic-info-left {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
}

.basic-info-right {
  margin-left: auto;
  width: 720px;
  flex-shrink: 0;
}

.introduce-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  margin: 0;
}

.introduce-desc {
  margin-top: 29px;
  /* 标题底部到描述顶部: y=61 - (0+32) = 29 */
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--text-main);
}

.info-role {
  margin-top: 94px;
  /* introduce到role的固定间距 */
}

.role-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 25px;
  margin: 0;
}

.role-desc {
  margin-top: 32px;
  /* Role标题到内容: y=57 - (0+25) = 32 */
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  color: var(--text-main);
}

.page-detail .work-detail {
  margin-top: 120px;
  /* basic information与work detail固定间距 */
}

.detail-img-wrapper {
  width: 100%;
  overflow: hidden;
}

.detail-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.page-detail .work-detail {
  margin-bottom: 259px;
  /* work detail到footer的间距 */
}

/* ==================================
   Creative Work Grid Section
   ================================== */
.creative-work {
  padding-top: 20px;
  padding-bottom: 120px;
}

.cw-header {
  margin-bottom: 40px;
  padding-top: 17px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 17px;
}

.cw-title {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
}

.cw-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 120px 10px;
}

.cw-item {
  cursor: pointer;
}

.cw-img-wrap {
  overflow: hidden;
  background: #e8e8e8;
}

.cw-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cw-item:hover .cw-img-wrap img {
  transform: scale(1.05);
}

.cw-badge {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: #8e8e8e;
  line-height: 1;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}

/* 角标单个字符 — 打乱解码动画用 */
.cw-badge-char {
  display: inline-block;
  will-change: contents;
}

/* 响应式：最大宽度限制，确保默认8列 */
/* 最小宽度约120px，当容器不够宽时自动减少列数 */
@media (max-width: 1400px) {
  .cw-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 120px 10px;
  }
}

@media (max-width: 900px) {
  .cw-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 80px 10px;
  }
}

@media (max-width: 600px) {
  .cw-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 60px 8px;
  }
}

/* ==================================
   Creative Work Bottom Text Section
   Sketch画板3精确还原：
   - 标签列155px（960-805），正文列760px（1720-960）
   - 整体915px宽，靠右定位，距页面右侧200px
   - 所有文字14px，标签=#000 fontWeight=5，正文=#6e6e6e fontWeight=5
   ================================== */

/* 文字排版区域：整体距页面右侧200px固定位置 */
.page-playground .cw-bottom.container {
  padding-bottom: 120px;
  padding-right: 200px !important;
}

.cw-bottom-row {
  display: grid;
  grid-template-columns: 155px 760px;
  align-items: start;
  padding: 0;
  max-width: 915px;
  margin-left: auto;
}

.cw-bottom-row + .cw-bottom-row {
  padding-top: 80px;
}

.cw-bottom-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  text-align: left;
  padding-top: 3px;
}

.cw-bottom-text {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: #6e6e6e;
  text-align: left;
}

.cw-bottom-cols {
  display: grid;
  grid-template-columns: 335px 335px;
  gap: 90px;
}

.cw-bottom-cols p {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: #6e6e6e;
}

.cw-bottom-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cw-list-item {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: #6e6e6e;
  padding: 0;
}

.cw-list-item + .cw-list-item {
  padding-top: 0;
}

@media (max-width: 1024px) {
  .cw-bottom-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 32px;
    max-width: none;
    margin-left: 0;
  }

  .cw-bottom-label {
    text-align: left;
    padding-right: 0;
  }

  .cw-bottom-cols {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ==================================
   Mobile Responsive (max-width: 768px)
   ================================== */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  /* Navigation - shrink text, no wrap */
  .nav .logo {
    font-size: 14px;
    white-space: nowrap;
  }

  .nav-links {
    gap: 16px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .nav-links a,
  .nav-links .resume-btn {
    font-size: 12px;
    white-space: nowrap;
  }

  /* Hero */
  .hero {
    padding-top: 60px;
  }

  .hero-meta {
    font-size: 14px;
    margin-bottom: 40px;
  }

  .hero-title {
    font-size: 24px;
    margin-bottom: 40px;
    line-height: 1.4;
  }

  .section-divider {
    font-size: 14px;
  }

  /* Projects grid */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 40px 0;
  }

  .project-card.span-2 {
    grid-column: span 1;
  }

  .project-info h3 {
    font-size: 18px;
  }

  /* Experience */
  .exp-top {
    font-size: 18px;
    flex-direction: column;
    gap: 8px;
  }

  .exp-title {
    width: auto;
  }

  .exp-content {
    margin-left: 0;
    margin-top: 40px;
    font-size: 24px;
  }

  .experience-section {
    padding-bottom: 60px;
  }

  /* Marquee */
  .marquee-section {
    margin-top: 60px;
  }

  .marquee-group {
    gap: 40px;
    padding-right: 40px;
  }

  /* Footer - mobile: no parallax, compact spacing */
  .footer {
    height: auto;
    overflow: visible;
  }

  .footer-content {
    padding-top: 48px;
    padding-bottom: 24px;
  }

  .footer-giant {
    font-size: 48px;
  }

  .footer-top {
    flex-wrap: wrap;
    gap: 16px 24px;
    font-size: 11px;
  }

  .footer-top a,
  .footer-top span {
    font-size: 11px;
    white-space: nowrap;
  }

  .footer-top strong {
    font-size: 11px;
  }

  /* Prevent Resume link from wrapping */
  .footer-top div {
    min-width: 0;
  }

  /* About page */
  .about-hero {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .about-intro {
    font-size: 18px;
    margin-left: 0;
    max-width: 100%;
    margin-bottom: 40px;
  }

  .about-portrait {
    margin-bottom: 40px;
  }

  .about-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 40px 0;
  }

  .about-row-title {
    font-size: 28px;
  }

  .about-row-desc {
    font-size: 14px;
    gap: 16px;
  }

  /* Playground / Sandbox page */
  .pg-basic-info {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pg-basic-info .pg-introduce {
    max-width: 100%;
  }

  .pg-basic-info .pg-title {
    font-size: 20px;
    margin: 8px 0 16px;
  }

  .pg-basic-info .pg-desc {
    width: 100%;
    font-size: 14px;
    line-height: 1.7;
  }

  .pg-basic-info .pg-meta {
    font-size: 12px;
  }

  .pg-divider {
    margin: 30px 0;
  }

  #ring-container {
    height: 400px;
  }

  /* Creative work grid */
  .cw-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 40px 8px;
  }

  .cw-title {
    font-size: 18px;
  }

  /* CW bottom text */
  .page-playground .cw-bottom.container {
    padding-right: 16px !important;
  }

  .cw-bottom-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cw-bottom-row + .cw-bottom-row {
    padding-top: 40px;
  }

  .cw-bottom-cols {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Detail page */
  .basic-info-content {
    flex-direction: column;
    gap: 24px;
  }

  .basic-info-right {
    margin-left: 0;
    width: 100%;
  }

  .introduce-title {
    font-size: 20px;
  }

  .page-detail .work-detail {
    margin-top: 60px;
    margin-bottom: 80px;
  }
}

/* Extra small screens (max-width: 480px) */
@media (max-width: 480px) {
  .nav .logo {
    font-size: 12px;
  }

  .nav-links {
    gap: 10px;
  }

  .nav-links a,
  .nav-links .resume-btn {
    font-size: 10px;
  }

  .hero-title {
    font-size: 20px;
  }

  .footer-giant {
    font-size: 36px;
  }

  .footer-top {
    font-size: 10px;
    gap: 12px 16px;
  }

  .footer-top a,
  .footer-top span {
    font-size: 10px;
  }

  .footer-top strong {
    font-size: 10px;
  }

  .about-intro {
    font-size: 16px;
  }

  .about-row-title {
    font-size: 22px;
  }

  .exp-content {
    font-size: 20px;
  }

  #ring-container {
    height: 320px;
  }
}
