* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft JhengHei", sans-serif;
    background-color: #001f3f; 
    color: white;
    line-height: 1.6;
    overflow-x: hidden; 
}

/* --- 2. 手機版導覽列--- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 31, 63, 0.95);
    border-bottom: 1px solid #d4af37;
    padding: 10px 15px;
    text-align: center;
}

.nav-logo-img {
    height: 52px;
    width: auto;
    display: block;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 15px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
}

/* --- 3. 滿版輪播 Hero 區塊 --- */
.hero-section {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
    margin-top: 100px;
}

.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.2s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    z-index: 10;
}

.hero-content h1 {
    font-size: 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: 1.4rem;
    color: #d4af37;
    letter-spacing: 2px;
    text-shadow: 
        1px 1px 3px rgba(0, 0, 0, 0.9),
        0px 0px 15px rgba(0, 0, 0, 0.7);
}

/* --- 4. 通用區塊設定 --- */
.section {
    padding: 50px 20px;
}

.container {
    width: 100%;
}

.section-title {
    font-size: 1.8rem;
    color: #d4af37;
    text-align: center;
    margin-bottom: 30px;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: #d4af37;
    margin: 15px auto 0;
}

/* --- 5. 關於我們 --- */
.about-text h3 {
    font-size: 1.3rem;
    color: #d4af37;
    margin-bottom: 15px;
    text-align: center;
}

.about-text p {
    font-size: 0.95rem;
    margin-bottom: 15px;
    text-align: justify;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
}

.project-info {
    padding: 15px;
}

.project-info h4 {
    color: #d4af37;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.project-info p {
    font-size: 0.85rem;
    color: #bbb;
}

.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: 40px;
    padding: 0 15px;
}

.btn-more-projects {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.05); 
    color: #d4af37;
    text-decoration: none;
    font-size: 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-bottom: 25px;
    font-size: 0.9rem;
}

.fb-btn {
    display: block;
    width: 100%;
    padding: 15px 0;
    background-color: #1877F2;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #00152b;
    font-size: 0.8rem;
}