* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft JhengHei", sans-serif;
    background-color: #001f3f; 
}

/* 導覽列設計 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    z-index: 1000;
    background: rgba(0, 31, 63, 0.7); 
    border-bottom: 1px solid #d4af37; 
}

.nav-logo-img {
    height: 60px; 
    width: auto; 
    display: block;
}

.logo {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #d4af37;
}

/* 輪播區塊定位 */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slider-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.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-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
}

.hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: 10px;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8), 
        0px 0px 20px rgba(0, 0, 0, 0.6),
        0px 0px 40px rgba(0, 0, 0, 0.4);
}

.hero-content p {
    font-size: 2rem;
    color: #d4af37;
    letter-spacing: 5px;
    text-shadow: 
        1px 1px 3px rgba(0, 0, 0, 0.9),
        0px 0px 15px rgba(0, 0, 0, 0.7);
}

/* 通用區塊樣式 */
.section {
    padding: 100px 50px;
    background-color: #001f3f;
    color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    color: #d4af37; 
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #d4af37;
    margin: 20px auto 0;
}

/* 關於我們 */
.about-text {
    text-align: center;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.about-text h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

/* 作品實績網格 */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: #d4af37;
}

.project-img {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
}

.project-info {
    padding: 20px;
}

.project-info h4 {
    color: #d4af37;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.project-info p {
    font-size: 0.9rem;
    color: #ccc;
}

.category-subtitle {
    font-size: 1.6rem;
    color: #d4af37;
    margin: 40px 0 25px;
    text-align: left;
    border-left: 4px solid #d4af37;
    padding-left: 15px;
}

/* 區隔線 */
.category-divider {
    border: 0;
    height: 1px;
    background: rgba(212, 175, 55, 0.2);
    margin: 60px 0;
}

/* --- 按鈕 --- */
.more-projects-container {
    text-align: center;
    margin-top: 35px;
    margin-bottom: 20px;
}

.btn-more-projects {
    display: inline-block;
    padding: 15px 40px;
    background: rgba(255, 255, 255, 0.05);
    color: #d4af37;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-more-projects:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: #d4af37;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-more-projects .arrow {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.btn-more-projects:hover .arrow {
    transform: translateX(5px);
}

/* 滑動 */
.sales-slider {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    cursor: grab; 
}

.sales-track {
    display: flex;
    gap: 20px; /* 圖片間距 */
    will-change: transform; /* GPU 加速 */
}

.sales-item {
    flex: 0 0 300px; /* 寬度 */
    aspect-ratio: 4 / 3; 
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background-color: #111;
}

/* 聯絡我們 */
.contact-container {
    text-align: center;
}

.contact-info {
    margin: 30px 0;
    line-height: 2;
}

.fb-btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: #1877F2;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.fb-btn:hover {
    background-color: #145dbf;
    transform: scale(1.05);
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: white;
}