body {
    color: var(--text-b);
    background-color:  var(--bg-b);
}

.logo a {
    color: var(--text-w);
}

 .nav-link.active {
  color: var(--text-w);
 }
 
.hamburger-line {
    background: var(--bg);
}
.main-brand {
    color: var(--bg);
}
.sub-brand {
    color: var(--bg);
}
.flogo {
  color: var(--bg);
}

li { list-style-type: none; }


/* --------------------------------------------------------------------------------------------------------
works css
-------------------------------------------------------------------------------------------------------- */
.works { 
    width: 100%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding-bottom: 80px;

    align-items: center;
    justify-content: center;
    flex-direction: row;

    overflow: hidden;
}

/* 導覽列容器 */
.work-nav {
  position: relative;
    /* width: 100%; */
    /* float: left; */
    padding: 60px 0;
    font-family: "Noto Sans TC", sans-serif;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;

    z-index: 999;
}

/* 列表設定 */
.work-nav ul {
  display: flex;
  
  /* align-items: center; */
  list-style: none;
  margin: 0;
  padding: 0;
  /* flex-wrap: wrap;  */
  /* 手機時自動換行 */
}

/* 每個項目 */
.work-nav li {
    float: left;
  margin: 0 5px 0 0;
}

/* 連結樣式 */
.work-nav a {
  text-decoration: none;
  color: #555;
  font-size: 1rem;
  padding: 8px 20px;
  /* border-radius: 4px; */
  position: relative;
  transition: all 0.3s ease;
  background-color: #fff;
  border-radius: 38px;
}

/* 滑過效果 */
.work-nav a:hover {
  color: #222;
}

/* 底線滑入動畫 */
.work-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  /* background: #007aff; */
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

/* 滑過時底線展開 */
.work-nav a:hover::after {
  width: 100%;
}

/* 當前頁面 (active) 樣式 */
.work-nav a.active {
  color: #666;
  
  background-color: #5cfcff;
  font-weight: 600;
}

.work-nav a.active::after {
  width: 100%;
}

.container {
    clear: both;
    width: 1100px; 
    display: grid; 
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ------------------- 卡片 ------------------- */
.box {
  border-radius: 10px;
  opacity: 0; 
  /* 初始隱藏 */
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
  cursor: pointer;
  overflow: hidden;
  background: #fff;
  transform: translateY(20px);
  padding-bottom: 20px;
}
.box img {
  width: 100%;
  display: block;
  border-radius: 10px;
}

/* ------------------- 初始動畫方向 ------------------- */
.from-left  { transform: translateX(-80px); }
.from-right { transform: translateX(80px); }
.zoom-in    { transform: scale(0.8); }

/* ------------------- 顯示狀態 ------------------- */
.from-left.show  { opacity: 1; transform: translateX(0); }
.from-right.show { opacity: 1; transform: translateX(0); }
.zoom-in.show    { opacity: 1; transform: scale(1); }


/* ------------------------------------
   Portfolio Intro
------------------------------------ */

.portfolio-intro {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 80px auto;
    padding: 0px 20px;
    text-align: center;
    position: relative;
}

.portfolio-intro h2 {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 24px;
    color: #ccc;
    position: relative;
    display: inline-block;
}

/* 底線策略感 */
.portfolio-intro h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background: #5cfcff;
    margin: 16px auto 0;
}

.portfolio-intro p {
    font-size: 1rem;
    line-height: 1.9;
    color: #aaa;
    max-width: 720px;
    margin: 0 auto;
    letter-spacing: 0.5px;
}

.work-card h3 {
  padding: 10px 20px 5px;
  color: #555;
}
.work-card p {
  padding: 0px 20px 20px;
  color: #777;
}

.view-more {
  color: #999;
  padding-left: 20px;
}
.view-more:hover {
  color: var(--blue);
}


@media (max-width: 1024px) {
  .container {
    grid-template-columns: repeat(1, 1fr);
    padding: 0 20px;
  }
}