/* -----------------------------------
GLOBAL STYLE
----------------------------------- */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #000;
    font-family: 'Inter', sans-serif;
    color: #ffffff;
}

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


/* =======================================================
NAVIGATION — 極簡透明版（滑動後才毛玻璃）
（統一支援 nav / nav-fixed / site-nav）
======================================================= */

/* 防止 Safari/固定元素造成水平溢出黑邊 */
html, body{
width: 100%;
overflow-x: clip;
}
@supports not (overflow: clip){
html, body{ overflow-x: hidden; }
}

:root{
--pad-x: 60px;
--nav-h: 80px;
  --accent-yellow: #ffcc74; /* ✅ 你整站的黃色 */
}

/* ✅ 改成 left/right 版：避免 width+padding 在 Safari 造成溢出 */
nav,
nav.nav-fixed,
nav.site-nav{
position: fixed;
top: 0;
left: 0;
right: 0;

height: var(--nav-h);
padding: 0 var(--pad-x);
box-sizing: border-box;

display: flex;
justify-content: flex-start;
align-items: center;

z-index: 10;

  /* 一開始：透明、無霧 */
background: rgba(0,0,0,0);
backdrop-filter: blur(0);
-webkit-backdrop-filter: blur(0);

transition:
    background 0.3s ease,
    backdrop-filter 0.3s ease,
    -webkit-backdrop-filter 0.3s ease;
}

/* 滑下來後：才毛玻璃 */
nav.nav-blur{
background: rgba(0, 0, 0, 0.35);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
}

/* 左側 Logo */
.nav-left img{
height: 28px;
transition: filter 0.3s ease, transform 0.3s ease;
}
.nav-left img:hover{
filter: brightness(1.2);
}

/* 中間桌機選單 */
.nav-menu{
display: flex;
gap: 50px;
align-items: center;
margin-left: auto;   /* ✅ 把這組推到右邊 */
margin-right: 40px;  /* ✅ 控制「不要貼死右邊」的距離（想更靠右就調小） */
}
.nav-menu a{
color: #fff;
opacity: 0.85;
font-size: 15px;
transition: opacity .25s ease, transform .25s ease, color .25s ease;
}
.nav-menu a:hover{
opacity: 1;
transform: scale(1.1);
color: var(--accent-yellow);
}

/* 右側容器（IG + 漢堡） */
.site-nav .nav-right,
nav .nav-right{
display: flex;
align-items: center;
gap: 12px;
}

/* IG icon（hover 變黃，不是變亮） */
.nav-ig{
width: 38px;
height: 38px;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 999px;
transition: transform .18s ease;
}
.ig-icon{
width: 22px;
height: 22px;
display: block;
opacity: 0.9;
transition: filter .2s ease, transform .18s ease, opacity .18s ease;
}
.nav-ig:hover{
transform: scale(1.06);
}
.nav-ig:hover .ig-icon{
opacity: 1;
  /* ✅ 更貼近 #ffcc74 的黃（不改圖檔） */
filter: brightness(0) saturate(100%) invert(86%) sepia(30%) saturate(821%) hue-rotate(338deg) brightness(104%) contrast(96%);
}

/* 漢堡：兩條線 + hover 變黃 + 點擊變 X */
.nav-toggle{
  display: none; /* 手機才顯示 */
width: 44px;
height: 44px;
padding: 10px;
border: 0;
background: transparent;
cursor: pointer;
border-radius: 999px;
position: relative;
transition: transform .18s ease;
opacity: .95;
}

.nav-toggle span{
position: absolute;
left: 50%;
width: 22px;
height: 2px;
background: rgba(255,255,255,0.85);
border-radius: 2px;
transform: translateX(-50%);
transition: transform .22s ease, top .22s ease, background-color .22s ease;
}
.nav-toggle span:nth-child(1){ top: 16px; }
.nav-toggle span:nth-child(2){ top: 26px; }

.nav-toggle:hover{
transform: scale(1.06);
}
.nav-toggle:hover span{
background-color: var(--accent-yellow);
}

/* 桌機：讓 nav-menu 推右 */
@media (min-width: 821px){
.nav-menu{ margin-left: auto; margin-right: 40px; }
.nav-right{ margin-left: 0; }
}

/* 手機：nav-menu 不見時，改由 nav-right 推右 */
@media (max-width: 820px){
.nav-right{ margin-left: auto; }
}

/* 開啟狀態：nav 會加 is-open */
.site-nav.is-open .nav-toggle span:nth-child(1){
top: 21px;
transform: translateX(-50%) rotate(45deg);
}
.site-nav.is-open .nav-toggle span:nth-child(2){
top: 21px;
transform: translateX(-50%) rotate(-45deg);
}
.site-nav.is-open .nav-toggle:hover span{
background-color: var(--accent-yellow);
}



/* =======================================================
Apple-like 下拉面板（霧面黑玻璃 + 往下漸層到透明）
======================================================= */
.mobile-menu{
position: fixed;
top: var(--nav-h);
left: 0;
width: 100%;
height: calc(100vh - var(--nav-h));
z-index: 9999;

  /* ✨ 黑度降低，讓背景呼吸 */
background: rgba(0,0,0,0.55);
backdrop-filter: blur(18px);
-webkit-backdrop-filter: blur(18px);

opacity: 0;
pointer-events: none;
transform: translateY(-12px);
transition: opacity .26s ease, transform .26s ease;
}

.mobile-menu.is-open{
opacity: 1;
pointer-events: auto;
transform: translateY(0);
}

/* 漸層層：由上黑霧 → 下方透明（拉長版） */
.mobile-menu::after{
content: "";
position: absolute;
inset: 0;
pointer-events: none;

background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.45) 18%,
    rgba(0,0,0,0.30) 40%,
    rgba(0,0,0,0.15) 65%,
    rgba(0,0,0,0.05) 82%,
    rgba(0,0,0,0) 100%
);
}

.mobile-menu::before{
content: "";
position: absolute;
inset: 0;
background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.78) 28%,
    rgba(0,0,0,0.42) 58%,
    rgba(0,0,0,0.00) 100%
);
pointer-events: none;
}

.mobile-menu.is-open{
opacity: 1;
pointer-events: auto;
transform: translateY(0);
}

/* ===== Apple-like mobile menu content ===== */

.mobile-links{
display: flex;
flex-direction: column;
  align-items: flex-end;   /* 關鍵：整組靠右 */

padding-top: 72px;
  padding-right: 60px;     /* 和右上叉叉視覺對齊 */
padding-left: 24px;

gap: 18px;
}

.mobile-links a{
font-size: 18px;
line-height: 1.3;
letter-spacing: 0.16em;

  text-align: right;      /* 關鍵 */
opacity: 0.9;

transition:
    color .18s ease,
    transform .18s ease,
    opacity .18s ease;
}

/* mobile menu：點擊時變金色 + 放大 */
.mobile-menu .mobile-links a{
transition:
    color .18s ease,
    transform .18s ease,
    opacity .18s ease;
}

/* hover（桌機或模擬 hover 的裝置） */
.mobile-menu .mobile-links a:hover{
color: #ffcc74;
transform: scale(1.08);
opacity: 1;
}

/* active（手機點擊當下） */
.mobile-menu .mobile-links a:active{
color: #ffcc74;
transform: scale(1.1);
}

/* focus（鍵盤 / 可及性，保持一致） */
.mobile-menu .mobile-links a:focus-visible{
color: #ffcc74;
transform: scale(1.08);
outline: none;
}

.mobile-links a:hover{
color: var(--accent-yellow);
  transform: translateX(-2px); /* 往左一點，方向要反過來 */
opacity: 1;
}

/* 斷點：平板/手機 */
@media (max-width: 1024px){
:root{ --pad-x: 24px; }
}
@media (max-width: 820px){
.nav-menu{ display: none; }
.nav-toggle{ display: inline-flex; }
}
@media (max-width: 640px){
:root{ --pad-x: 18px; --nav-h: 72px; }
.nav-left img{ height: 24px; }
}
/* 你原本是 body.menu-open 鎖滾動，保留即可 */

/* 漢堡打開：nav 也要霧面 */
.site-nav.is-open{
background: rgba(0, 0, 0, 0.55);
backdrop-filter: blur(18px);
-webkit-backdrop-filter: blur(18px);
}

/* nav 必須蓋在 mobile-menu 上面，才能看到 nav 霧面 */
nav,
nav.nav-fixed,
nav.site-nav{
  z-index: 10001; /* 比 mobile-menu 的 9999 高 */
}


/* 漢堡打開：鎖住底下頁面滾動（不會跳回頂部） */
body.menu-open{
position: fixed;
left: 0;
right: 0;
width: 100%;
overflow: hidden;
}

/* -----------------------------------
Back to Top Button (SVG Arrow Final)
----------------------------------- */

#backToTop {
    position: fixed;
    right: 50px;
    bottom: 50px;
    width: 55px;
    height: 55px;

    /* 內容幾何置中 */
    display: flex;
    align-items: center;
    justify-content: center;

    /* 永遠在最上層 */
    z-index: 99999;

    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;

    color: #ffffff;

    cursor: pointer;

    opacity: 0;
    pointer-events: none;

    /* 初始浮起狀態 */
    transform: translateY(10px) scale(1);

    transition:
        opacity 0.3s ease,
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

/* 出現狀態 */
#backToTop.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* hover：放大＋變色 */
#backToTop.show:hover {
    transform: translateY(0) scale(1.12);
    color: #ffcc74;
    background: rgba(0, 0, 0, 0.55);
    border-color: rgba(255, 204, 116, 0.45);
}
/* -----------------------------------
SVG Arrow Styling (關鍵在這)
----------------------------------- */

#backToTop svg {
    width: 50px;        /* 箭頭整體大小（短版比例） */
    height: 50px;
    display: block;     /* 移除 SVG baseline 偏移 */
}

#backToTop svg path {
    stroke-width: 1.5;  /* 線條粗細（乾淨、不擠） */
    stroke-linecap: round;
    stroke-linejoin: round;
}





/* -----------------------------------
HERO SECTION
----------------------------------- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;          /* ← 關鍵 1：裁掉多餘區域 */
}

.hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.45);
}

/* 底部漸層，從透明過渡到黑 */
.hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background: linear-gradient(
        rgba(0,0,0,0),
        rgba(0,0,0,0.4),
        rgba(0,0,0,0.7),
        #000
    );
    pointer-events: none;
}

.hero-title {
    position: absolute;
    bottom: 140px;
    left: 40px;
    font-size: clamp(40px, 6vw, 100px);
    font-weight: 700;
    line-height: 1.1;
    max-width: 1400px;
    color: #ffcc74; /* 顏色 */
    letter-spacing: 0.02em;    /* 入場動畫 */
    opacity: 0.9;              /* 入場動畫 */





        /* 動畫初始狀態 */
    opacity: 0;
    transform: translateY(40px);
    animation: riseIn 0.8s ease-out forwards;
    animation-delay: 0.35s;   /* 比上面晚一點，看起來比較順 */
}





/* -----------------------------------
CAROUSEL (3D style / Responsive)
----------------------------------- */

.carousel-section {
    width: 100%;
    padding: 140px 0 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 用 CSS 變數控制寬高，跟著視窗縮放 */
.carousel-inner {
    position: relative;
    width: 100%;
    max-width: 1600px;

    /* 主要控制：一張圖的寬度、高度、左右位移 */
    --slide-width: min(70vw, 900px);         /* 最多 900px，否則 60% viewport 寬 */
    --slide-height: calc(var(--slide-width) * 0.58);   /* 大約是你原本 900x520 的比例 */
    --side-offset: calc(var(--slide-width) * 0.55);    /* 左右兩張的偏移距離 */

    height: var(--slide-height);
}

/* 基礎狀態：先全部疊在一起、縮小、透明 */
.carousel-item {
    position: absolute;
    top: 0;
    left: 50%;
    width: var(--slide-width);
    height: var(--slide-height);
    border-radius: 32px;
    overflow: hidden;
    transform: translateX(-50%) scale(0.7);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease, filter 0.6s ease, box-shadow 0.6s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

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

/* 中間這張 */
.carousel-item.current {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    filter: brightness(1.05);
    z-index: 3;
}

/* 左邊那張 */
.carousel-item.prev {
    opacity: 0.7;
    transform: translateX(calc(-50% - var(--side-offset))) scale(0.85);
    filter: brightness(0.7);
    z-index: 2;
}

/* 右邊那張 */
.carousel-item.next {
    opacity: 0.7;
    transform: translateX(calc(-50% + var(--side-offset))) scale(0.85);
    filter: brightness(0.7);
    z-index: 2;
}

/* 其他兩張：直接隱藏掉 */
.carousel-item.hidden {
    opacity: 0;
    z-index: 1;
}

/* 箭頭按鈕 */
.carousel-arrows {
    display: flex;
    gap: 24px;
    margin-top: 30px;
}

.arrow {
    background: none;
    border: none;
    color: #ffcc74;/* 顏色 */
    font-size: 24px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 999px;
    transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.8;
}

.arrow:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
    opacity: 1;
}

/* 下方圓點 */
.carousel-dots {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.dot {
    width: 9px;
    height: 9px;
    background: #777;
    border-radius: 50%;
    transition: background 0.25s ease, transform 0.25s ease;
    cursor: pointer;
}

.dot.active {
    background: #fff;
    transform: scale(1.1);
}

.dot:hover {
    transform: scale(1.2);
    background: rgba(255,255,255,0.85);
}


/* 讓整張輪播圖可點 */
.carousel-link{
    display: block;
    width: 100%;
    height: 100%;
}

/* 讓整張輪播圖可點 */
.carousel-link{
    display: block;
    width: 100%;
    height: 100%;
}

/* 統一由 img 控制亮度（避免跟 item 的 filter 打架） */
.carousel-item img{
    width: 100%;
    height: 100%;
    object-fit: cover;

    transform: scale(1);
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: brightness(0.7); /* 預設先暗一點 */
}

/* 依位置給不同基礎亮度 */
.carousel-item.current img{
    filter: brightness(1.05);
}
.carousel-item.prev img,
.carousel-item.next img{
    filter: brightness(0.75);
}

/* hover：跟你 portfolio-card 一樣（慢慢放大、變亮） */
.carousel-item:hover img{
    transform: scale(1.06);
    filter: brightness(1);
}









/* -----------------------------------
PORTFOLIO PAGE — Recent Works
----------------------------------- */

.portfolio-page {
    background: #000;
    min-height: 100vh;
    padding-top: 170px;   /* 頂部留空給 nav-fixed */
}

/* 整個作品區塊 */
.portfolio-section {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px 80px;
    text-align: center;
}

/* 大標題：Recent Works */
.portfolio-heading {
    font-size: 25px;
    font-weight: 20;
    margin: 0 0 40px;
    color: #ffcc74; /* 金色 */
}

/* 三張大卡片橫排 */
.portfolio-grid {
    display: flex;
    gap: 70px;
    justify-content: center;
}

/* 卡片本體 */
.portfolio-card {
    position: relative;
    flex: 1;
    max-width: 700px;          /* 三張剛剛好 */
    aspect-ratio: 3 / 4;       /* 接近截圖那種直立比例 */
    overflow: hidden;
    background: #111;
    cursor: pointer;
}

/* 圖片填滿卡片 */
.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.8s ease, filter 0.8s ease;
    filter: brightness(0.85);
}

/* hover 慢慢放大、變亮 */
.portfolio-card:hover img {
    transform: scale(1.06);
    filter: brightness(1);
}

/* 中央小標 */
.card-label {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 20px;
    letter-spacing: 0.08em;
    text-transform: capitalize;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.9);
    pointer-events: none;
    color: #ffffff; /* 顏色 */
}

/* RWD：平板變兩欄 */
html, body {
width: 100%;
  overflow-x: clip; /* 主要 */
}

@supports not (overflow: clip) {
  html, body { overflow-x: hidden; } /* 舊瀏覽器退回 */
}
@media (max-width: 1024px) {
    .portfolio-section {
        padding: 0 24px 60px;
    }

    .portfolio-grid {
        flex-wrap: wrap;
    }

    .portfolio-card {
        max-width: none;
        flex: 1 1 calc(50% - 16px);
    }
}

/* RWD：手機變一欄 */
@media (max-width: 640px) {
    .portfolio-card {
        flex: 1 1 100%;
    }

    .portfolio-heading {
        margin-bottom: 32px;
    }
}




/* ----- 作品 瀑布頁（系列頁） ----- */
.series-page {
    background: #000;
    min-height: 100vh;
    padding: 140px 60px 100px;
}

.series-title {
    text-align: center;
    color: #ffcc74;
    font-size: 26px;
    font-weight: 20;
    letter-spacing: 0.18em;
    margin-bottom: 60px;
}

/* 瀑布流 */
.series-grid {
    max-width: 1300px;
    margin: 0 auto;
    columns: 4;              /* 4 欄瀑布流 */
    column-gap: 24px;
}

/* 外框：整塊都是可點的卡片 */
.series-item {
    display: block;          /* 因為是 <a>，要變成 block 卡片 */
    width: 100%;
    margin-bottom: 24px;
    overflow: hidden;        /* 裁掉 hover 放大的部分 */
    break-inside: avoid;     /* 不要被切半 */
    text-decoration: none;   /* 拿掉連結底線 */
    color: inherit;          /* 文字顏色跟外面一樣（雖然現在沒有字） */
    cursor: pointer;
}

/* 照片：在卡片裡面放大 */
.series-item img {
    width: 100%;
    display: block;
    transform: scale(1);
    filter: brightness(0.85);
    transition: transform 0.7s ease, filter 0.7s ease;
}

/* hover 慢慢放大、變亮 */
.series-item:hover img {
    transform: scale(1.06);
    filter: brightness(1);
}

/* RWD：平板 2 欄 */
@media (max-width: 1024px) {
    .series-grid {
        columns: 2;
    }
}

/* RWD：手機 1 欄 */
@media (max-width: 640px) {
    .series-page {
        padding: 120px 20px 60px;
    }

    .series-grid {
        columns: 1;
    }

    .series-title {
        font-size: 22px;
        margin-bottom: 40px;
    }
}






/* -----------------------------------
全站通用返回鍵（固定於視窗左上角）
----------------------------------- */
.global-back {
    position: fixed;           /* ★ 關鍵：全站固定 */
    top: 110px;                /* ★ 距離視窗上方（自己微調） */
    left: 60px;                /* ★ 距離視窗左邊 */

    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #ffffff;
    opacity: 0.75;
    font-size: 15px;
    letter-spacing: 0.05em;
    text-decoration: none;

    z-index: 20;               /* 比 nav(10) 高，永遠在上面 */

    transform-origin: left center;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        color 0.25s ease;
}

/* 箭頭造型 */
.global-back-icon {
    width: 7px;
    height: 7px;
    border-left: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-top: -1px;          /* 微調箭頭視覺對齊 */
    transition: border-color 0.25s ease;
}

.global-back-text {
    font-size: 14px;
    transition: color 0.25s ease;
}

/* Hover 狀態 */
.global-back:hover {
    opacity: 1;
    transform: scale(1.06);
    color: #ffcc74;
}

.global-back:hover .global-back-icon,
.global-back:hover .global-back-text {
    color: #ffcc74;
    border-color: #ffcc74;
}

/* 隱藏狀態（往下滾時） */
.global-back.is-hidden {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
    pointer-events: none;
}

/* 手機版調整返回鍵位置 */
@media (max-width: 768px) {
.global-back {
    left: 18px;   /* 原本 60px，手機太裡面 */
    top: 92px;    /* 視你的 nav 高度微調 */
}
}

/* -----------------------------------
通用頁面主區塊
----------------------------------- */
.page-main {
    position: relative;
    padding: 140px 80px 80px; /* 上：避開 nav＋呼吸空間，左右 80 跟你作品頁一樣 */
}






/* -----------------------------------
單張作品頁：左圖右文（右側齊左邊照片尾）
----------------------------------- */

.photo-detail-page {
    background: #000;
    min-height: 100vh;
    padding: 160px 80px 100px;
    color: #fff;
}

.photo-detail-container {
    max-width: 1400px;
    margin: 0 auto;

    display: flex;
    gap: 60px;

    /* 關鍵：讓右邊文字區跟左邊照片「齊尾」 */
    align-items: flex-end;
}

/* 左邊照片 */
.photo-detail-image {
    flex: 0 0 60%;
}

.photo-detail-image img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

/* 右邊文字區 */
.photo-detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;

    /* 不要再往下推，不然會失去齊尾效果 */
    padding-top: 0;
}

.photo-detail-series {
    font-size: 14px;
    letter-spacing: 0.2em;
    color: #ffcc74;
}

.photo-detail-title {
    font-size: 28px;
    letter-spacing: 0.08em;
    margin: 0;
}

.photo-detail-meta {
    font-size: 14px;
    opacity: 0.7;
    margin: 0;
}

.photo-detail-caption {
    font-size: 15px;
    line-height: 1.8;
    opacity: 0.9;
    margin-top: 16px;
    white-space: pre-line;   /* ← 加這一行 */
}

.photo-detail-back {
    margin-top: 32px;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-decoration: none;
    color: #ffffff;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.photo-detail-back:hover {
    opacity: 1;
}

/* 手機版：改成上下堆疊，不需要齊尾 */
@media (max-width: 900px) {
    .photo-detail-page {
        padding: 140px 20px 60px;
    }

    .photo-detail-container {
        flex-direction: column;
        gap: 32px;
        align-items: flex-start;   /* 手機版就不用齊尾了 */
    }

    .photo-detail-image {
        flex: none;
    }
}







/* -----------------------------------
ABOUT PAGE
----------------------------------- */

/* 整個 About 的外框 */
.about-section {
    width: 100%;
    background: #000;
    padding: 200px 0 120px;
    color: #ffffff;
}

/* 上半部：照片＋文字，置中 */
.about-container {
    width: min(1200px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 80px;

    /* 動畫：往上浮＋淡入 */
    opacity: 0;
    transform: translateY(40px);
    animation: riseIn 0.8s ease-out forwards;
    animation-delay: 0.15s;
}

/* 照片（不切頭） */
.about-photo img {
    width: 380px;
    height: 380px;
    object-fit: cover;
    object-position: 50% 20%;   /* ← 不切頭關鍵 */
    border-radius: 0;
}

/* 右側文字 */
.about-text {
    flex: 0 0 auto;
    margin-top: 230px;
}

.about-name {
    font-size: 48px;
    letter-spacing: 0.08em;
    margin: 0 0 32px;
    color: #ffcc74; /* 顏色 */
}

.about-info p {
    font-size: 18px;
    margin: 8px 0;
    opacity: 0.85;
}

/* 下半部：攝影文字敘述 */
.about-description {
    max-width: 720px;
    margin: 80px auto 0;
    font-size: 16px;
    line-height: 1.9;
    letter-spacing: 0.02em;
    opacity: 0.9;

    /* 動畫：往上淡入（比上面慢開始） */
    opacity: 0;
    transform: translateY(40px);
    animation: riseIn 0.8s ease-out forwards;
    animation-delay: 0.35s;
}

.about-description p {
    margin-bottom: 24px;
}

/* 動畫定義 */
@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -----------------------------
ABOUT - RWD（縮小才變版）
------------------------------ */
@media (max-width: 900px){

  /* 上半部：改直排，照片置中 */
.about-container{
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 0 24px;         /* 手機左右留白 */
}

  /* 照片尺寸改成隨螢幕縮放，且置中 */
.about-photo img{
    width: min(380px, 86vw);
    height: auto;
    aspect-ratio: 1 / 1;     /* 保持方形 */
}

  /* 文字區：放到照片下方，且「跟照片左邊緣齊左」 */
.about-text{
    margin-top: 0;           /* ✅ 取消桌機 230px */
    width: min(380px, 86vw); /* ✅ 跟照片同寬 => 左邊界一致 */
    text-align: left;
}

  /* 名字可順便縮小一點（不想動就刪掉這段） */
.about-name{
    font-size: 34px;
    margin: 0 0 14px;
}

.about-info p{
    font-size: 15px;
    margin: 6px 0;
}

  /* 介紹文字：區塊置中，但段落靠左對齊 */
.about-description{
    max-width: 720px;
    margin: 48px auto 0;     /* ✅ 區塊置中 */
    padding: 0 24px;
    text-align: left;        /* ✅ 段落文字靠左 */
}
}







/* -----------------------------------
contact
----------------------------------- */

.contact-section {
    background: #000;
    color: #fff;
padding: 300px clamp(24px, 6vw, 80px) 120px;  /* 跟作品頁、about 高度差不多 */
}

.contact-container {
    width: min(1100px, 100%);     /* 建議 1000–1200，會更像 Wix */
    margin: 0 auto;        /* ★ 水平置中 */
    display: flex;
    justify-content: center;  /* ★ 讓左右靠中間 */
    align-items: flex-start;
    gap: 120px;
}

/* 左側文字 */

.contact-info {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.contact-title {
    font-size: 48px;
    letter-spacing: 0.08em;
    margin: 0 0 24px;
    color: #ffcc74; /* 顏色 */
}

.contact-sub {
    font-size: 16px;
    opacity: 0.7;
    margin-bottom: 32px;
}

.contact-text p {
    font-size: 16px;
    line-height: 1.8;
    margin: 0 0 40px;
}



.contact-methods p {
    font-size: 16px;
    line-height: 1.8;
    margin: 0 0 20px;
}

.contact-methods a {
    text-decoration: none;
    color: #ffffff;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.contact-methods a:hover {
    border-color: #ffffff;
    opacity: 0.7;
}

/* 右側表單 */

.contact-form {
    flex: 0 0 50%;
}

.form-row {
    display: flex;
    gap: 24px;
}

.field {
    flex: 1;
    margin-bottom: 28px;
}

.field label {
    display: block;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
    opacity: 0.6;
}

.field input,
.field textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #444;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    padding: 8px 0;
    outline: none;
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    border-bottom-color: #ffffff;
}

.field textarea::placeholder {
    color: #777;
}

/* Submit 按鈕 */

.btn-submit {
    margin-top: 16px;
    padding: 10px 40px;
    border-radius: 0;
    border: 1px solid #ffffff;
    background: transparent;
    color: #ffffff;
    font-size: 14px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-submit:hover {
    background: #ffffff;
    color: #000000;
}

/* 簡單 RWD：視窗變窄就上下排 */

@media (max-width: 900px) {
    .contact-section {
        padding: 220px 24px 80px;
    }

    .contact-container {
        /* flex-direction: column;*/
        gap: 60px;
        width: 100%;   /* ✅ 補這行：避免看起來像兩張卡 */
    }

    .contact-title{
        font-size: 40px;     /* 原本 48px，手機縮一點 */
        margin-bottom: 20px; /* 留白順一點 */
    }

    .contact-info,
    .contact-form {
        flex: 1 1 100%;

    }

 .form-row {
    display: flex;
    gap: 24px;
}
}


.form-success {
    margin-top: 20px;
    font-size: 13px;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.7);

    opacity: 0;
    transform: translateY(8px);
    max-height: 0;
    overflow: hidden;

    transition:
        opacity 0.8s ease,
        transform 0.8s ease,
        max-height 0.8s ease;
}

.form-success.is-visible {
    opacity: 1;
    transform: translateY(0);
    max-height: 40px; /* 足夠容納一行字 */
}

.form-success.is-hiding {
    opacity: 0;
    transform: translateY(8px);
    max-height: 0;
}






/* -----------------------------------
FOOTER — Minimal Clean Style
----------------------------------- */
footer {
    width: 100%;
    padding: 40px 0;
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: #888;                /* 不會太亮的灰 */
    /*border-top: 1px solid #222;*/   /* 超細分隔線 */
    margin-top: 10px;          /* 和上方內容保持呼吸感 */
    opacity: 0;
    transform: translateY(20px);
    animation: footerFade 0.8s ease-out 0.3s forwards;
}

/* Footer 淡入＋上飄動畫 */
@keyframes footerFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}










/* ---------------------*/
/*動畫*/
/* 上半部：照片＋基本資訊 往上淡入 */
.about-container {
    opacity: 0;
    transform: translateY(40px);
    animation: riseIn 0.8s ease-out forwards;
    animation-delay: 0.15s;   /* 想更慢就改 0.3s 之類 */
}

/* 下半部：文字說明，稍微晚一點出現 */
.about-description {
    max-width: 720px;
    margin: 80px auto 0;
    font-size: 16px;
    line-height: 1.9;
    letter-spacing: 0.02em;
    opacity: 0.9;

    /* 動畫初始狀態 */
    opacity: 0;
    transform: translateY(40px);
    animation: riseIn 0.8s ease-out forwards;
    animation-delay: 0.35s;   /* 比上面晚一點，看起來比較順 */
}

.about-description p {
    margin-bottom: 24px;
}






/* -----------------------------------
PAGE FADE-IN動畫（關於頁整頁淡入）
----------------------------------- */

.body-fade {
    opacity: 0;
    animation: bodyFadeIn 1s ease-out forwards;
}

@keyframes bodyFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
















@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}