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

:root {
  --primary-color: #111315;
  --secondary-color: #676e76;
  --bg-color: #ffffff;
  --border-color: #111315;
  --placeholder-bg: #F1F2F3;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --radius-large: 40px;
  --radius-medium: 32px;
  --radius-small: 40px;
}

html {
  font-size: 16px;
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
}

body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-color);
  color: var(--primary-color);
  font-family: 'PingFang SC', 'SF Pro Display', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  min-height: 100vh;
  position: relative;
}

.fixed-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background-color: var(--bg-color);
  z-index: 999;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.fixed-navbar.show {
  transform: translateY(0);
  box-shadow: var(--shadow);
}

.fixed-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #fcc82e;
}

.fixed-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fixed-buttons {
  display: flex;
  gap: 10px;
}

.fixed-btn {
  width: 70px;
  height: 32px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  cursor: pointer;
}

.fixed-btn-icon {
  width: 16px;
  height: 16px;
  filter: invert(1);
}

.content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 960px;
  margin: 0 auto;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.header {
  display: flex;
  flex-direction: column;
  margin-bottom: 60px;
}

.title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
  width: 100%;
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.title-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.title-svg {
  display: block;
  width: 155px;
  height: 90px;
}

.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #fcc82e;
  flex-shrink: 0;
  margin-left: 15px;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: 0.1s;
  opacity: 0;
}

.tag {
  padding: 4px 14px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--primary-color);
  background-color: var(--bg-color);
  white-space: nowrap;
}

.buttons {
  display: flex;
  gap: 10px;
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.btn {
  width: 80px;
  height: 36px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  cursor: pointer;
}

.btn-icon {
  width: 20px;
  height: 20px;
  filter: invert(1);
}

.section {
  margin-bottom: 60px;
}

.section-work {
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

.section-cases {
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

.section-title-wrap {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  margin: 0;
  padding: 0;
}

.section-title-svg {
  display: block;
  width: 115px;
  height: 28px;
  margin: 0 0 20px 0;
  padding: 0;
}

.work-scroll {
  width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.work-scroll::-webkit-scrollbar {
  display: none;
}

.work-list {
  display: flex;
  gap: 15px;
  padding: 0;
}

.work-spacing {
  width: 15px;
  flex-shrink: 0;
}

.work-item {
  flex: 0 0 calc(90vw - 30px);
  max-width: 600px;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background-color: var(--bg-color);
  white-space: normal;
  word-wrap: break-word;
}

@media (min-width: 768px) {
  .work-item {
    flex: 0 0 calc(50vw - 60px);
    max-width: 500px;
  }
}

@media (min-width: 1200px) {
  .work-item {
    flex: 0 0 calc(33.333vw - 60px);
    max-width: 400px;
  }
}

.work-time {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--secondary-color);
  margin-bottom: 10px;
  white-space: nowrap;
}

.work-company {
  font-size: 1rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 8px;
  line-height: 1.5;
}

.work-desc {
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--primary-color);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.work-desc-item {
  display: flex;
  align-items: flex-start;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--primary-color);
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin-bottom: 5px;
}

.work-desc-item:last-child {
  margin-bottom: 0;
}

.work-desc-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary-color);
  margin-right: 10px;
  margin-top: 10px;
  flex-shrink: 0;
}

.work-desc-text {
  flex: 1;
  line-height: 1.7;
}

.case-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

@media (min-width: 768px) {
  .case-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

.case-item {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background-color: var(--bg-color);
}

.cover-item {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  border-radius: 20px;
}

.cover-item::before {
  content: '';
  display: block;
  width: 100%;
  padding-top: 56.25%;
}

.placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--placeholder-bg);
  border-radius: 20px;
  z-index: 1;
}

.cover-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.2s ease-in;
  z-index: 2;
  border-radius: 20px;
  object-fit: cover;
}

.cover-image.show {
  opacity: 1;
}

.footer {
  height: 30px;
}

.more-btn {
  width: 120px;
  height: 40px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  margin: 20px 0 0 0;
  cursor: pointer;
}

.more-btn text {
  color: var(--bg-color);
  font-size: 0.9rem;
  margin-right: 4px;
}

.more-btn a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--bg-color);
}

.arrow-icon {
  width: 14px;
  height: 14px;
  filter: invert(1);
}

.nav-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-color);
  display: flex;
  justify-content: center;
  padding: 10px 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  z-index: 999;
}

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

.nav-item {
  padding: 8px 16px;
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.nav-item.active {
  color: var(--primary-color);
  font-weight: 600;
}

.content.with-bottom-nav {
  padding-bottom: 80px;
}

@media (min-width: 768px) {
  .nav-menu {
    top: 0;
    bottom: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }
  .content.with-bottom-nav {
    padding-top: 80px;
    padding-bottom: 30px;
  }
}

.empty-state {
  width: 100%;
  padding: 60px 20px;
  text-align: center;
  color: var(--secondary-color);
  font-size: 1rem;
}
