
:root {
    --bg-w: #f4f4f4;
    --bg-b: #353535;
    --text-b: #353535;
    --text-w: #fff;
    --blue: #007AFF;

    --primary: #1a1a1a;    /* 碳黑 */
    --secondary: #666666;  /* 中灰 */
    --accent: #a89276;     /* 雋永的香檳金/大地色調 */
    --bg: #fcfcfc;         /* 極細微的暖白 */
    --line: rgba(0,0,0,0.06);
    --transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none; 
}

.header, .main, .footer {
    width: 100%;
}

/* logo */
.logo {
    font-family: 'Playfair Display', serif; 
    font-weight: 800;
    font-size: 24px;
    letter-spacing: 2px;
}
.logo a {
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}
.logo a:hover {
    color: #007bff;
    opacity: 0.8;
}
.logo a:active {
    transform: scale(0.95);
}

.trans {
    transition: all 0.68s cubic-bezier(1,0,0.2,1);
}
.flex_column {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.flex_top {
    display: flex;
    align-items: center;
    flex-direction: column;
}

/* nav */
nav {
    position: fixed;
    top: 0; 
    width: 100%;
    padding: 2rem 2%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}
nav.scrolled {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(15px);
    padding: 1rem 5%;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}
.nav-links { 
    position: absolute;
    display: flex; 
    gap: 3.6rem; 
    list-style: none; 
    right: 60px;
    top: 36px;
}

.nav-links a { 
    text-decoration: none; 
    font-size: 0.95rem; 
    transition: var(--transition); 
    font-weight: 500;
}
.nav-links a:hover { 
    color: var(--text-w); 
}

.active {
    color: orangered;
}
.no {
    color: #98928f;
}


/* unit_header */
.unit_header {
    /* 使用 Flexbox 佈局 */
    display: flex;
    flex-direction: column; /* 讓內容由上而下排列 */
    align-items: center;    /* 水平置中所有子元素 */
    text-align: center;     /* 確保多行文字也是置中的 */
    
    /* 建議加上間距，避免內容太擠 */
    padding: 60px 20px 0;
}

.unit_header h1 {
    width: 300px;
    margin: 130px 0 20px 0;    /* 移除預設邊距，並增加下方間距 */
    /* display: flex; */
    justify-content: center;
}

.unit_header h1 img {
    width: 100%;
    max-width: 100%;   
        /* 確保圖片在手機版不會超出螢幕 */
    height: auto;
}

.unit_header p {
    margin: 0;
    line-height: 1.8;      /* 設定行高讓閱讀更舒適 */
    color: #666;           /* 依據您的設計調整顏色 */
    font-size: 1.1rem;
}

.white {
    position: absolute;
    bottom: 5%;
    left: 10%;
}
.blog-icon {
    float: right;
    margin-right: 20px;
}
.blog-icon img {
    width: 80px;
    float: left;
}

/* -------------------------------------------------------------------
   footer
   ------------------------------------------------------------------- */
   
.footer { 
    width: 100%; 
    color: #212121;
    background-color: var(--bg-w);
    border-top: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.footer-middle { 
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 90px 20px 90px;
}

/* 左側 Logo 區 */
.logoarea {
    float: left;
    width: 32%;
}

.logow {
    float: left;
    width: 5vw;
    height: auto;
}

.logoarea ul {
    float: left;
    margin-left: 20px;
}

.logoarea ul p {
    width: 100%;
    text-align: left;
}

.flogo {
    font-size: 28px;
    font-weight: 900;
    color: var(--bg-light);
    margin-bottom: 0;
}

.copy {
    text-align: left;
    padding: 0;
}

/* 右側連結區 */
.links-grid { 
    float: right;
    width: 58%;
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px; 
    padding-bottom: 60px;
    margin-left: 10%;
}

.link-column h4 { 
    font-family: 'Noto Serif TC', serif; 
    font-size: 13px; 
    margin-bottom: 25px; 
    color: var(--brand-color); 
    text-align: center;
}

.link-column ul { 
    list-style: none; 
    padding: 30px 0 0 0;
}

.link-column li { 
    margin-bottom: 12px; 
    text-align: center;
}

.link-column a { 
    font-size: 13px; 
    text-decoration: none; 
    transition: var(--transition); 
}

.link-column a:hover { 
    color: var(--primary);
}

@media (max-width: 960px) {

    /* .menu-trigger {
        display: flex;
    }
    .brand-logo {
        left: 75px;
    }
    .nav-links { 
        display: none;
    }
    .sidebar {
        display: flex;
        width: 90%;
    } */

    /* footer */
    .logoarea {
        width: 100%;
        margin-bottom: 60px;
    }

    .logow {
        position: relative;
        width: 30vw;
        left: 50%;
        margin-left: -15vw;
    }
    .logoarea ul { 
        width: 100%;
        margin-left: 0;
    }
    .logoarea ul p { 
        text-align: center;
    }

    .links-grid { 
        width: 100%;
        grid-template-columns: repeat(2, 1fr); 
    }

    .link-column h4 { text-align: center;}
    .link-column li { text-align: center;}

    .footer-middle {
        padding: 90px 20px 90px 20px;
    }

    .footer-middle {
        display: flex;
        flex-direction: column; /* 垂直排列 */
        align-items: center;    /* 水平居中 */
        gap: 20px;              /* Logo 與圖示間的距離 */
    }

    .blog-icon {
        display: flex;
        justify-content: center;
        gap: 15px;              /* 圖示彼此間的間距 */

        float: none;
        margin: 0px;
    }
}

@media(max-width:1280px){
    nav {
        padding: 2rem 5%; 
    }
    .nav-links {
        display: none;
    }
}










/* alogo */
.alogo {
    float: left;
    left: 0;
    width: 100%;
    height: auto;
    /* font-weight: 200; */
    /* font-size: 1.2rem; */
    /* letter-spacing: 0.4rem; */
    /* color: #fff; */
    text-decoration: none;
    margin-bottom: 80px;
    display: block;


    font-size: 1.25rem;
    font-weight: 800; /* 加粗強調母品牌 */
    letter-spacing: 0.05em;
    color: #ffffff;
}

/* overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
}
.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hamburger menu */
.menu-trigger {
    position: fixed;
    top: 2.5rem;
    right: 2rem;
    z-index: 1000;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;

    padding-top: 5px;
    display: none;
}
.hamburger-line {
    width: 24px;
    height: 3px;
    margin-bottom: 6px;
    background: var(--bg);
}


/* sidebar nav 側邊導航主體 (隱藏狀態) */
.sidebar {
    width: var(--nav-w);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    border-right: 1px solid #222;
    background: rgba(0, 0, 0, 0.8);
    padding: 80px 50px;
    /* font-family: 'Inter', -apple-system, sans-serif; */
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar.active {
    transform: translateX(0);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-s);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- 選單群組 --- */
.nav-group {
    list-style: none;
    padding: 0;
}

.nav-item {
    margin-bottom: 1.8rem;
}

.nav-link {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-s);
    text-decoration: none;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    opacity: 0.6;
}

.nav-link:hover, 
.nav-link.active {
    /* color: var(--text-w); */
    opacity: 1;
    transform: translateX(5px);
}
.nav-link.no {
    color: #999;
}
.nav-link.no:hover {
    color: #999;
}

.nav-link::before {
    content: attr(data-no); /* 假設 HTML 用 data-no="01" */
    font-size: 0.8rem;
    margin-right: 15px;
    color: var(--text-muted);
    font-family: monospace;
}

@media(max-width:1280px){
    .menu-trigger {
        display: block;
    }
}