/* Decking Retailer - 全球精選展示級風格 (WebDesignClip Showcase Style)
   保留全部開運色碼配置，全面重構布局為不對稱藝廊/雜誌化美學。
*/

:root {
    --primary-color: #2C5E4E;       /* 深林墨綠 (甲木) */
    --primary-dark: #1B4332;        
    --cta-color: #FF5722;           /* 暖陽橘紅 (丙火) */
    --cta-hover: #E65100;           
    --bg-color: #F9F6F0;            /* 暖米白色 (燥土) */
    --accent-color: #C5A059;        /* 香檳暗金 (庚金) */
    --text-color: #121614;          /* 極深黛綠黑 */
    --text-muted: #626D68;
    --white: #FFFFFF;
    --border-alpha: rgba(44, 94, 78, 0.12);
}

/* 網頁基礎重設 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Cinzel", "Helvetica Neue", Arial, "Noto Sans TC", sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.75;
    letter-spacing: 0.04em;
    overflow-x: hidden;
    position: relative;
}

/* WebDesignClip 著名的縱向透視線背景 */
.grid-lines-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 0;
    padding: 0 4%;
}

.grid-lines-bg .line {
    width: 1px;
    height: 100%;
    background-color: var(--border-alpha);
}

/* 精緻滿幅導覽列 */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-alpha);
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
}

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: 0.18em;
}

.logo-sub {
    font-size: 8px;
    color: var(--accent-color);
    font-weight: 600;
    letter-spacing: 0.32em;
    margin-top: 4px;
}

.nav-menu {
    display: flex;
    gap: 48px;
}

.nav-link-wrapper {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.nav-num {
    font-size: 10px;
    color: var(--accent-color);
    font-weight: 500;
    font-family: monospace;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
}

.nav-menu a:hover {
    color: var(--cta-color);
    transform: translateY(-2px);
}

/* 漢堡選單結構化按鈕 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

.menu-toggle .bar {
    width: 24px;
    height: 2px;
    background-color: var(--primary-dark);
    transition: all 0.3s ease;
}

/* 沉浸式大圖輪播區塊 */
.marquee-section {
    position: relative;
    width: 100%;
    height: calc(100vh - 100px);
    min-height: 600px;
    background-color: var(--primary-dark);
    z-index: 1;
}

.marquee-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.marquee-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 8%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s;
}

.marquee-slide.active {
    opacity: 1;
    visibility: visible;
}

.marquee-content {
    max-width: 750px;
    color: var(--white);
    transform: translateY(30px);
    opacity: 0;
    transition: all 1s cubic-bezier(0.1, 0.76, 0.55, 0.94) 0.3s;
}

.marquee-slide.active .marquee-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-meta {
    font-size: 12px;
    letter-spacing: 0.3em;
    color: var(--accent-color);
    font-weight: 600;
    display: block;
    margin-bottom: 16px;
}

.marquee-content h2 {
    font-size: 54px;
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 1.3;
    margin-bottom: 24px;
}

.marquee-content p {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 48px;
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* WebDesignClip 標誌性線性按鈕 */
.marquee-btn {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    color: var(--white);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.25em;
    border-bottom: 1px solid rgba(255,255,255,0.4);
    padding-bottom: 8px;
    transition: border-color 0.3s, color 0.3s;
}

.marquee-btn:hover {
    border-color: var(--cta-color);
    color: var(--cta-color);
}

.marquee-btn .arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.marquee-btn:hover .arrow {
    transform: translateX(6px);
}

/* 頂級進度控制條輪播點 */
.marquee-controls {
    position: absolute;
    bottom: 50px;
    right: 4%;
    display: flex;
    gap: 32px;
    z-index: 10;
}

.marquee-controls .dot {
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.marquee-controls .dot.active {
    opacity: 1;
}

.line-progress {
    width: 60px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.2);
    position: relative;
    display: block;
}

.dot.active .line-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: var(--cta-color);
    animation: progressFill 5s linear forwards;
}

.dot-num {
    color: var(--white);
    font-size: 11px;
    font-family: monospace;
}

@keyframes progressFill {
    from { width: 0; }
    to { width: 100%; }
}

/* 主要內容容器 */
.showcase-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 120px 4% 60px 4%;
    position: relative;
    z-index: 1;
}

/* 高級不對稱排版標題 */
.product-section {
    margin-bottom: 140px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    border-bottom: 1px solid var(--text-color);
    padding-bottom: 24px;
}

.header-title-group {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.section-num-large {
    font-size: 24px;
    font-family: "Courier New", Courier, monospace;
    color: var(--accent-color);
    font-weight: bold;
    line-height: 1;
}

.section-header h3 {
    font-size: 28px;
    color: var(--primary-dark);
    font-weight: 500;
    letter-spacing: 0.05em;
    line-height: 1.1;
}

.element-tag {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    margin-top: 6px;
}

/* 頂級圓形轉動更多按鈕 */
.more-link-premium {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.15em;
}

.circle-arrow {
    width: 40px;
    height: 40px;
    border: 1px solid var(--text-color);
    border-radius: 50%;
    position: relative;
    transition: background-color 0.3s, border-color 0.3s;
}

.circle-arrow::after {
    content: '→';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    transition: color 0.3s, transform 0.3s;
}

.more-link-premium:hover .circle-arrow {
    background-color: var(--text-color);
    border-color: var(--text-color);
}

.more-link-premium:hover .circle-arrow::after {
    color: var(--white);
    transform: translate(-30%, -50%);
}

/* 交錯錯位網格 (Asymmetric Broken Grid) */
.product-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 50px;
    row-gap: 90px;
}

.product-card {
    background: transparent;
    display: flex;
    flex-direction: column;
}

/* 錯位美學：第2、5個卡片向下移動 */
.mt-large {
    margin-top: 60px;
}

/* 精緻色塊占位箱 */
.img-zoom-box {
    width: 100%;
    height: 320px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.card-bg-title {
    color: rgba(255,255,255,0.15);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.1em;
    transition: transform 0.6s var(--cta-color), color 0.4s;
}

.product-card:hover .img-zoom-box {
    transform: scale(0.97);
}

.product-card:hover .card-bg-title {
    color: rgba(255,255,255,0.4);
    transform: scale(1.08);
}

.card-meta {
    padding: 24px 0 0 0;
    border-bottom: 1px solid var(--border-alpha);
    padding-bottom: 20px;
}

.product-card h4 {
    font-size: 18px;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.prod-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-weight: 300;
    min-height: 40px;
}

/* 奢華邊線按鈕 */
.buy-btn-premium {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--text-color);
    padding: 14px 20px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.15em;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.buy-btn-premium:hover {
    background-color: var(--cta-color);
    border-color: var(--cta-color);
    color: var(--white);
    letter-spacing: 0.2em;
}

/* 訂購流程 - 縱向雙欄雜誌化排版 */
.process-showcase-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    border-top: 1px solid var(--text-color);
    padding-top: 80px;
    margin-bottom: 60px;
}

.process-title-side .section-num-large {
    display: block;
    margin-bottom: 16px;
}

.process-title-side h3 {
    font-size: 32px;
    font-weight: 500;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.process-sub-tag {
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

.process-list-side {
    display: flex;
    flex-direction: column;
}

.process-row {
    display: flex;
    gap: 40px;
    padding: 32px 0;
    border-bottom: 1px solid var(--border-alpha);
    transition: background-color 0.3s;
}

.process-row:first-child {
    padding-top: 0;
}

.process-row:hover {
    background-color: rgba(44, 94, 78, 0.02);
}

.row-num {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-color);
    font-family: monospace;
    line-height: 1.3;
}

.row-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.row-content p {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 300;
}

/* 全幅頁尾 */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 100px 4% 40px 4%;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 60px;
    margin-bottom: 40px;
}

.footer-main-info h2 {
    font-size: 28px;
    letter-spacing: 0.2em;
    margin-bottom: 12px;
}

.footer-main-info p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    font-weight: 300;
}

.footer-links-info {
    text-align: right;
    font-size: 14px;
    letter-spacing: 0.05em;
}

.footer-links-info p {
    margin-bottom: 12px;
}

.footer-links-info a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
}

.footer-bottom {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.05em;
}

/* 右下角懸浮按鈕 */
.floating-buttons {
    position: fixed;
    right: 40px;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 999;
}

.float-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, background-color 0.3s;
}

.float-btn:hover {
    transform: scale(1.08) translateY(-2px);
}

.cart-btn {
    background-color: var(--cta-color);
}

.cart-btn:hover {
    background-color: var(--cta-hover);
}

.phone-btn {
    background-color: var(--primary-color);
}

.phone-btn:hover {
    background-color: var(--primary-dark);
}

.float-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.btn-text {
    font-size: 8px;
    margin-top: 1px;
    font-weight: bold;
    letter-spacing: 0.05em;
}

/* 網頁滾動優雅浮現 (Scroll Reveal) */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.215, 0.61, 0.355, 1), transform 1s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* RWD 響應式高級中斷點控制 */
@media (max-width: 1200px) {
    .product-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 40px;
    }
    .mt-large {
        margin-top: 0;
    }
}

@media (max-width: 900px) {
    .process-showcase-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .marquee-content h2 {
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        height: 80px;
    }
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(4px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
        transform: translateY(-4px) rotate(-45deg);
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
        border-bottom: 1px solid var(--border-alpha);
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-link-wrapper {
        padding: 16px 6%;
        border-bottom: 1px solid rgba(0,0,0,0.02);
    }
    .marquee-section {
        height: 500px;
    }
    .marquee-content h2 {
        font-size: 28px;
    }
    .marquee-controls {
        display: none;
    }
}

@media (max-width: 576px) {
    .product-showcase-grid {
        grid-template-columns: 1fr;
        row-gap: 60px;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .footer-container {
        flex-direction: column;
        gap: 40px;
    }
    .footer-links-info {
        text-align: left;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
    }
}