/* ===== 字體設定 ===== */
@font-face {
  font-family: '蘭陽黑';
  src: url('Images/jf-lanyanghei-1.0-w10.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: '蘭陽黑';
  src: url('Images/jf-lanyanghei-1.0-w7.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

/* ===== 基本設定 ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #FAFAFA;
  --color-white: #FFFFFF;
  --color-text: #1A1A1A;
  --color-text-light: #666666;
  --color-accent: #2D2D2D;
  --color-border: #E8E8E8;
  --font-display: '蘭陽黑', sans-serif;
  --font-body: '蘭陽黑', sans-serif;
  --radius: 12px;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  --max-width: 960px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ===== 頂部導覽 ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(250, 250, 250, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header__logo {
  font-family: var(--font-display);
  font-weight: 100;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.header__nav {
  display: flex;
  gap: 2rem;
}

.header__nav a {
  font-size: 0.875rem;
  color: var(--color-text-light);
  transition: color 0.2s;
}

.header__nav a:hover {
  color: var(--color-text);
}

/* 手機版漢堡選單按鈕（預設隱藏） */
.header__menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header__menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.2s;
}

/* ===== Hero 區 ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
}

.hero__brand {
  font-size: 0.875rem;
  color: var(--color-text-light);
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 100;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  letter-spacing: 0.08em;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero__tagline {
  font-size: 1rem;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.hero__slogan {
  font-family: var(--font-display);
  font-weight: 100;
  font-size: 1.125rem;
  color: var(--color-text-light);
  letter-spacing: 0.1em;
  margin-bottom: 3rem;
}

.hero__cta {
  display: inline-block;
  padding: 0.875rem 2.5rem;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 100px;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  transition: opacity 0.2s, transform 0.2s;
}

.hero__cta:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* ===== 通用區塊 ===== */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 100;
  font-size: 1.75rem;
  letter-spacing: 0.1em;
  margin-bottom: 2.5rem;
  text-align: center;
}

/* ===== 關於我 ===== */
.about__bio {
  font-size: 1rem;
  color: var(--color-text-light);
  line-height: 2;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

/* ===== 作品 Tab ===== */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.tabs__btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  background: var(--color-white);
  color: var(--color-text-light);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.tabs__btn:hover {
  border-color: var(--color-accent);
  color: var(--color-text);
}

.tabs__btn--active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

/* ===== 作品卡片 ===== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.work-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.work-card__thumb {
  aspect-ratio: 9 / 16;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 100;
  font-size: 2rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.9);
}

/* 每個品牌有不同的 placeholder 底色 */
.work-card__thumb--podcast { background: linear-gradient(135deg, #667eea, #764ba2); }
.work-card__thumb--weihouse { background: linear-gradient(135deg, #f093fb, #f5576c); }
.work-card__thumb--sponya { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.work-card__thumb--flower { background: linear-gradient(135deg, #fa709a, #fee140); }
.work-card__thumb--dot { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }

.work-card__body {
  padding: 1.25rem;
}

.work-card__brand {
  font-size: 0.75rem;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.work-card__title {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.work-card__desc {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
}

.work-card__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.work-card__tag {
  font-size: 0.6875rem;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  background: var(--color-bg);
  color: var(--color-text-light);
  letter-spacing: 0.03em;
}

.work-card__tag--type {
  background: var(--color-accent);
  color: var(--color-white);
}

/* ===== 接案歷程 ===== */
.clients-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.client-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.client-card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.client-card__company {
  font-size: 1.125rem;
  font-weight: 400;
}

.client-card__period {
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

.client-card__learned {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

.client-card__highlight {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.4rem 1rem;
  background: var(--color-bg);
  border-radius: 100px;
  font-size: 0.8125rem;
  color: var(--color-accent);
  letter-spacing: 0.03em;
}

/* ===== 聯絡我 ===== */
.section--contact {
  text-align: center;
  padding-bottom: 6rem;
}

.contact__cta {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

.contact__links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  background: var(--color-white);
  font-size: 0.9375rem;
  transition: all 0.2s;
}

.contact__link:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.contact__footer {
  font-family: var(--font-display);
  font-weight: 100;
  font-size: 0.875rem;
  color: var(--color-text-light);
  letter-spacing: 0.1em;
}

/* ===== 手機版響應式 ===== */
@media (max-width: 640px) {
  .header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
  }

  .header__nav--open {
    display: flex;
  }

  .header__nav a {
    padding: 0.75rem 2rem;
  }

  .header__menu-btn {
    display: flex;
  }

  .tabs {
    gap: 0.375rem;
  }

  .tabs__btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
  }

  .works-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .client-card {
    padding: 1.5rem;
  }
}
