/* =========================================================
   LIXING EYEWEAR - MASTER CUSTOM CSS (PREMIUM REFINED VERSION)
   ========================================================= */

/* =========================================
   1. 變數與基礎設定 (Variables & Reset)
   ========================================= */
:root {
    --primary-font: 'Poppins', 'SF Pro Display', 'Noto Sans TC', sans-serif;
    --text-dark: #1d1d1f; /* 蘋果風深灰，比純黑更有質感 */
    --text-light: #86868b; 
    --white: #ffffff;
    --hover-blue: #0066cc;
    --bg-light: #f5f5f7; /* 質感灰底 */
    --accent-gold: #b39258; /* 輕奢金，適合精品眼鏡 */
}

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

body {
    font-family: var(--primary-font) !important;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    letter-spacing: 0.03em;
    padding-top: 120px !important; 
    -webkit-font-smoothing: antialiased;
}

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

/* =========================================
   2. 頁首與導航 (Header & Navigation)
   ========================================= */
.header-area {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    margin: 0; 
    background-color: rgba(255, 255, 255, 0.85); /* 半透明毛玻璃效果 */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999 !important; 
    padding: 5px 0; 
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.header-area .main-nav .nav li a {
    line-height: 60px !important; 
    height: 60px !important;
    color: var(--text-dark) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.header-area .main-nav .nav li a:hover {
    color: var(--accent-gold) !important;
}

.header-area .logo {
    line-height: 60px !important;
    padding: 0 !important;
}

/* =========================================
   3. 輪播圖區塊 (Hero Carousel)
   ========================================= */
.brand-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%); 
    padding: 0 !important;
    overflow: hidden;
}

.full-page-card {
    position: relative;
    width: 100%;
    height: 70vh; /* 稍微拉高，讓大圖更有氣勢 */
    overflow: hidden;
}

.full-page-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

/* 輪播圖文字遮罩優化：加入高級漸層與現代字體排版 */
.full-page-card .inner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 80px 50px 50px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
    color: var(--white);
    z-index: 2;
}

.full-page-card .inner-content h4 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.full-page-card .inner-content p {
    font-size: 18px;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 0.1em;
}

.carousel-fade .carousel-item {
    transition-duration: 1.2s; 
}

/* =========================================
   4. 蘋果風 Bento Grid 影片區塊 (Phone Vertical Layout)
   ========================================= */
.apple-scroll-container {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 24px;
    display: flex;
    justify-content: center; /* Centers the phone-style card */
    align-items: center;
}

.bento-card {
    position: relative;
    width: 100%;
    max-width: 340px; /* Simulates the width of a smartphone */
    aspect-ratio: 9 / 16; /* Mobile vertical video ratio */
    height: auto; /* Replaces fixed height to keep the phone proportions */
    border-radius: 40px; /* Larger rounded corners mimicking a phone chassis */
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    transition: transform 0.5s cubic-bezier(0.15, 0.85, 0.45, 1), box-shadow 0.5s ease;
}

.bento-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0,0,0,0.25);
}

.bento-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.85;
}

.bento-content {
    position: absolute;
    top: 40px;
    left: 30px;
    right: 30px;
    z-index: 10;
    pointer-events: none;
}

.bento-content .category {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.bento-content .headline {
    font-size: 26px; /* Slightly smaller to fit the narrow screen */
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
}

.bento-card .plus-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 10;
    transition: background 0.3s, transform 0.3s;
}

.bento-card:hover .plus-btn {
    background: var(--white);
    color: var(--text-dark);
    transform: rotate(90deg);
}

/* =========================================
   5. 社群與聯絡資訊 (Social & Contact Section)
   ========================================= */
#social {
    background: var(--white);
    padding: 100px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

#social .section-heading h2 {
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.line-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background-color: #06C755;
    color: #fff !important;
    border-radius: 100px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 8px 20px rgba(6, 199, 85, 0.25);
    transition: all 0.3s cubic-bezier(0.15, 0.85, 0.45, 1);
}

.line-btn:hover {
    background-color: #05a647;
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(6, 199, 85, 0.35);
}

/* 右側資訊卡片優化 */
#social .bg-white {
    background: var(--bg-light) !important;
    border-radius: 24px !important;
    padding: 40px !important;
    border: 1px solid rgba(0,0,0,0.02);
}

#social ul li {
    font-size: 15px;
    color: var(--text-dark);
}

#social ul li strong {
    color: var(--accent-gold);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 4px;
}

#social ul li span {
    font-size: 16px;
    font-weight: 500;
}

/* =========================================
   6. 頁尾與文字顏色優化 (Footer Styles)
   ========================================= */
footer {
    color: #e0e0e0;
}

footer h4, 
footer .widget-title {
    color: var(--white) !important;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

footer p,
footer span,
footer ul li {
    color: #a1a1a6 !important; /* 蘋果風的高質感淺灰 */
    list-style: none;
    margin-bottom: 12px;
    line-height: 1.8;
}

footer ul li a {
    color: #a1a1a6 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer ul li a:hover {
    color: var(--accent-gold) !important; /* 滑鼠移過去變成質感金色 */
}

/* 確保左側聯絡資訊的文字也亮起來 */
footer .contact-info p,
footer .contact-info span {
    color: #a1a1a6 !important;
}

/* =========================================
   7. 響應式設計 (Responsive Design)
   ============================================= */
@media (max-width: 991px) {
    .apple-scroll-container {
        gap: 20px;
    }
    .bento-card {
        height: 400px;
    }
    .bento-content .headline {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 80px !important; 
    }
    
    .full-page-card {
        height: 50vh;
    }
    
    .full-page-card .inner-content {
        padding: 40px 24px 24px;
    }
    
    .full-page-card .inner-content h4 {
        font-size: 28px;
    }
    
    .full-page-card .inner-content p {
        font-size: 14px;
    }

    .apple-scroll-container {
        margin: 40px auto;
        padding: 0 16px;
    }
    
    .bento-card {
        height: 350px;
        border-radius: 20px;
    }

    .bento-content {
        top: 24px;
        left: 24px;
        right: 24px;
    }

    .bento-content .headline {
        font-size: 22px;
        max-width: 100%;
    }
    
    #social {
        padding: 60px 0;
    }
    
    #social .section-heading h2 {
        font-size: 28px;
    }
}