

  /* 主視覺區域樣式 */
  .hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    background: linear-gradient(135deg, #f6f6f6 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
  }

  .hero-photo {
    position: relative;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-main-image {
    width: 60%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
    /* 添加遮罩效果 */
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 60%);
    mask-image: radial-gradient(circle at center, black 30%, transparent 60%);
    filter: brightness(0.9) contrast(1.1);
    transition: all 0.5s ease;
  }

  .hero-main-image:hover {
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 70%);
    mask-image: radial-gradient(circle at center, black 40%, transparent 70%);
    filter: brightness(1) contrast(1.2);
  }

  .hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
  }

  .shape-1 {
    width: 300px;
    height: 300px;
    background: #2563eb;
    top: 10%;
    right: 5%;
    animation: moveShape1 20s linear infinite;
  }

  .shape-2 {
    width: 200px;
    height: 200px;
    background: #10b981;
    bottom: 10%;
    left: 5%;
    animation: moveShape2 15s linear infinite;
  }

  @keyframes float {

    0%,
    100% {
      transform: translateY(0);
    }

    50% {
      transform: translateY(-20px);
    }
  }

  @keyframes moveShape1 {
    0% {
      transform: rotate(0deg) translate(50px) rotate(0deg);
    }

    100% {
      transform: rotate(360deg) translate(50px) rotate(-360deg);
    }
  }

  @keyframes moveShape2 {
    0% {
      transform: rotate(0deg) translate(30px) rotate(0deg);
    }

    100% {
      transform: rotate(-360deg) translate(30px) rotate(360deg);
    }
  }

  @media (max-width: 768px) {
    .hero {
      flex-direction: column;
      height: auto;
      padding-top: 80px;
    }

    .hero-photo {
      width: 100%;
      height: 50vh;
      margin-top: 2rem;
    }

    .hero-main-image {
      max-height: 50vh;
    }

    .shape-1,
    .shape-2 {
      width: 150px;
      height: 150px;
    }
  }

  .hero-content {
    max-width: 600px;
  }

  .hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #1a1a1a;
  }

  .hero-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
  }

  .hero-buttons {
    display: flex;
    gap: 1rem;
  }

  /* 按鈕樣式 */
  .btn {
    text-decoration: none; /* 移除底線 */
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
  }

  .btn.primary {
    background: #2563eb;
    color: white;
  }

  .btn.primary:hover {
    background: #1d4ed8;
  }

  .btn.secondary {
    background: transparent;
    border: 2px solid #2563eb;
    color: #2563eb;
  }

  .btn.secondary:hover {
    background: #2563eb;
    color: white;
  }

  /* 服務特色區樣式 */
  .features {
    padding: 6rem 2rem;
    background: linear-gradient(to bottom, #fff 0%, #b2d8ff 100%);
    position: relative;
    overflow: hidden;
  }


  .section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a1a1a;
    position: relative;
    font-weight: 700;
  }

  .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #2563eb;
    margin: 1rem auto 0;
    border-radius: 2px;
  }

  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }

  .feature-card {
    padding: 2rem;
    text-align: center;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
  }

  .feature-card:hover {
    transform: translateY(-5px);
  }

  /* 特色圖標樣式 */
  .feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: #f0f9ff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
  }

  .feature-card:hover .feature-icon {
    transform: scale(1.5);
  }

  /* 特色圖標具體樣式 */
  .web-dev {
    background-image: url('/assets/svg/browser.svg');
    background-size: 40px;
    background-position: center;
    background-repeat: no-repeat;
  }

  .app-dev {
    background-image: url('/assets/svg/more-app.svg');
    background-size: 40px;
    background-position: center;
    background-repeat: no-repeat;
  }

  .ui-design {
    background-image: url('/assets/svg/graphic-design.svg');
    background-size: 40px;
    background-position: center;
    background-repeat: no-repeat;
  }

  /* 作品展示區樣式 */
  .portfolio {
    padding: 6rem 2rem;
    background: linear-gradient(to bottom, #f8f9fa 0%, #cdffd5 100%);
  }

  .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }

  /* 作品卡片樣式 */
  .portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 350px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
  }

  .portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  }

  .portfolio-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s;
    position: relative;
  }

  .portfolio-item:hover .portfolio-image {
    transform: scale(1.1);
  }

  /* 桌面端覆蓋層 */
  .portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    padding: 1rem;
    text-align: center;
  }

  .portfolio-item:hover .portfolio-overlay {
    opacity: 1;
  }

  /* 新增: 點擊查看提示徽章 */
  .portfolio-item:hover {
    transform: translateY(0);
    opacity: 1;
  }

  /* 移動端資訊條 */
  .portfolio-mobile-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    padding: 1.5rem 1rem 1rem;
    display: none;
    justify-content: space-between;
    align-items: center;
    color: white;
  }

.portfolio-mobile-info h3 {
  margin: 0;
  font-size: 1.1rem;
}

  /* 按鈕樣式 */
  .btn-small {
    padding: 0.6rem 1.2rem;
    background: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transform: translateY(20px);
    transition: all 0.4s ease 0.3s;
    border: 2px solid transparent;
  }

  .portfolio-item:hover .btn-small {
    transform: translateY(0);
  }

  .btn-small:hover {
    background: transparent;
    border-color: white;
  }

/* 移動端按鈕 */
.btn-small-mobile {
  padding: 0.4rem 1rem;
  background: #2563eb;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.btn-small-mobile:hover, 
.btn-small-mobile:active {
  background: #1e40af;
}

/* 響應式設計 */
@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  /* 移動端特定樣式 */
  .portfolio-overlay {
    display: none; /* 在移動端隱藏懸停覆蓋 */
  }
  
  .portfolio-mobile-info {
    display: flex; /* 在移動端顯示資訊條 */
  }
  
  .portfolio-item {
    transform: none !important; /* 取消懸停效果 */
  }
  
  .portfolio-item:hover .portfolio-image {
    transform: none; /* 取消懸停效果 */
  }
  
  /* 移動端點擊效果 */
  .portfolio-item:active {
    opacity: 0.8;
    transition: opacity 0.2s;
  }
}

  /* 觸控設備適配 */
@media (hover: none) {
    .portfolio-overlay {
      display: none;
    }
    
    .portfolio-mobile-info {
      display: flex;
    }
    
    .portfolio-item:hover .portfolio-image {
      transform: none;
    }
}

  /* 聯繫表單區樣式 */
  .contact {
    padding: 6rem 2rem;
    background: #f8f9fa;
  }
  .contact-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05); /* 添加陰影提升層次感 */
  }
  
  /* 響應式設計 */
  @media (max-width: 768px) {
    .hero-title {
      font-size: 2rem;
    }

    .hero-subtitle {
      font-size: 1rem;
    }

    .features-grid{
      grid-template-columns: 1fr;
    }
  }