/* 全域設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: #333;
    line-height: 1.6;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; }

/* 導航列 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.protected-logo {
    height: 30px;
    width: auto;
    
    -webkit-user-select: none; /* 禁止選取 */
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    font-size: 1.1rem; /* 修改：加大導航字體 */
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #666;
}

/* 漢堡選單 (手機版) */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    margin: 5px 0;
}

/* 首頁 - 全螢幕輪播 */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: 5px;
}

/* 通用區塊樣式 */
.content-section {
    padding: 80px 5%;
    min-height: 60vh;
}

.bg-gray {
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    letter-spacing: 3px;
}

/* 關於區塊 */
.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.05rem;
    color: #444;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-text strong {
    color: #000;
    font-weight: 600;
}

/* 作品集 - 瀑布流 */
.masonry-grid {
    column-count: 3;
    column-gap: 20px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    transition: transform 0.3s;
}

.masonry-item img:hover {
    transform: scale(1.02);
}

/* 聯絡區塊 */
.contact-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-icons {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.icon-link img {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
}

/* 頁尾 */
footer {
    text-align: center;
    padding: 2rem;
    background: #222;
    color: #fff;
    font-size: 0.8rem;
}

/* RWD 響應式調整 */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 5%;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: white;
        width: 100%;
        text-align: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .masonry-grid {
        column-count: 1;
    }
}
