/* ==========================================
   Hero Section - 精美分屏設計
   左側品牌資訊 + 右側產品視覺
   採用漸變、動畫和玻璃擬態效果
   ========================================== */

.hero {
    height: 100vh;
    min-height: 650px;
    background: var(--color-bg) !important;
    display: flex !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    text-align: left !important;
    color: var(--color-dark) !important;
    position: relative;
    padding: 0 !important;
    overflow: hidden;
}

.hero::after {
    display: none !important;
}

/* 左側：品牌資訊區 - 精美升級版 */
.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-xl) calc(var(--spacing-lg) * 1.5) !important;
    background: linear-gradient(135deg, #FAF6F0 0%, #F5EFE6 50%, #FDFCFA 100%);
    position: relative;
    z-index: 2;
    max-width: 50% !important;
}

/* 精美的點陣背景 */
.hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1.5" fill="%23D4A574" opacity="0.12"/></svg>');
    background-size: 40px 40px;
    opacity: 0.5;
    pointer-events: none;
    animation: dotPattern 20s linear infinite;
}

@keyframes dotPattern {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 40px 40px;
    }
}

/* 裝飾性漸變線條 */
.hero-content::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(212, 165, 116, 0.3) 20%,
            rgba(212, 165, 116, 0.6) 50%,
            rgba(212, 165, 116, 0.3) 80%,
            transparent 100%);
    box-shadow: 0 0 20px rgba(212, 165, 116, 0.4);
}

/* 優化的標題樣式 - 漸變色文字效果 */
.hero h1 {
    background: linear-gradient(135deg, #2C2416 0%, #8B6F47 40%, #D4A574 70%, #E8C598 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(2.8rem, 5.5vw, 4.5rem) !important;
    margin-bottom: var(--spacing-md) !important;
    text-shadow: none !important;
    line-height: 1.15;
    position: relative;
    z-index: 1;
    font-weight: 800;
    letter-spacing: 1px;
    word-spacing: 3px;
    animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 為不支持漸變文字的瀏覽器提供後備 */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .hero h1 {
        color: var(--color-dark) !important;
        background: none;
    }
}

/* 動態展開的裝飾線 */
.hero h1::after {
    content: '';
    display: block;
    width: 0;
    height: 5px;
    background: linear-gradient(90deg,
            #E8C598 0%,
            #D4A574 50%,
            #C08F5A 100%);
    margin-top: var(--spacing-md);
    border-radius: 3px;
    box-shadow: 0 2px 12px rgba(212, 165, 116, 0.4);
    animation: expandLine 1.2s ease-out 0.4s forwards;
}

@keyframes expandLine {
    to {
        width: 140px;
    }
}

/* 優化的副標題樣式 */
.hero .subtitle {
    color: var(--color-secondary) !important;
    font-size: clamp(1.2rem, 2.8vw, 1.75rem) !important;
    margin-bottom: var(--spacing-lg) !important;
    text-shadow: none !important;
    font-weight: 500;
    position: relative;
    z-index: 1;
    letter-spacing: 1.8px;
    line-height: 1.6;
    animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1) 0.2s forwards;
    opacity: 0;
}

.hero-features {
    display: flex !important;
    justify-content: flex-start !important;
    gap: var(--spacing-sm) !important;
    margin-top: var(--spacing-md) !important;
    flex-wrap: wrap !important;
    position: relative;
    z-index: 1;
}

/* 特色標籤 - 玻璃擬態升級版 */
.hero-feature {
    padding: 14px 28px !important;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: var(--radius-sm) !important;
    border: 2px solid rgba(212, 165, 116, 0.3) !important;
    font-size: var(--fs-sm) !important;
    color: var(--color-dark) !important;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 16px rgba(212, 165, 116, 0.15),
        0 1px 4px rgba(44, 36, 22, 0.1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    opacity: 0;
}

.hero-feature:nth-child(1) {
    animation-delay: 0.4s;
}

.hero-feature:nth-child(2) {
    animation-delay: 0.5s;
}

.hero-feature:nth-child(3) {
    animation-delay: 0.6s;
}

/* Hover 閃光效果 */
.hero-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: left 0.5s ease;
}

.hero-feature:hover::before {
    left: 100%;
}

.hero-feature:hover {
    background: linear-gradient(135deg, #E8C598 0%, #D4A574 100%) !important;
    color: var(--color-white) !important;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(212, 165, 116, 0.35),
        0 4px 12px rgba(44, 36, 22, 0.15);
    border-color: transparent !important;
}

/* 右側：產品視覺區 - 精美升級版 */
.hero-visual {
    flex: 1;
    background: linear-gradient(135deg,
            rgba(232, 213, 183, 0.3) 0%,
            rgba(212, 165, 116, 0.2) 50%,
            rgba(139, 111, 71, 0.15) 100%),
        url('../images/hero/hero-bg.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 50%;
}

/* 左側漸變混合效果 */
.hero-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            #FAF6F0 0%,
            rgba(250, 246, 240, 0.8) 15%,
            transparent 35%);
    pointer-events: none;
    z-index: 1;
}

/* 脈動光暈效果 */
.hero-visual::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle,
            rgba(212, 165, 116, 0.4) 0%,
            rgba(212, 165, 116, 0.2) 40%,
            transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
    z-index: 0;
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0.8;
    }
}

/* 產品瓶子裝飾 */
.hero-product-display {
    position: relative;
    z-index: 2;
    max-width: 75%;
    height: auto;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.25));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-15px) rotate(1deg);
    }

    50% {
        transform: translateY(-25px) rotate(0deg);
    }

    75% {
        transform: translateY(-15px) rotate(-1deg);
    }
}

/* 裝飾性圓點 - 精美升級版 */
.hero-decoration {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(212, 165, 116, 0.4),
            rgba(212, 165, 116, 0.2),
            transparent);
    opacity: 0.5;
    animation: decorationFloat 10s ease-in-out infinite;
    z-index: 0;
}

.hero-decoration:nth-child(1) {
    width: 120px;
    height: 120px;
    top: 15%;
    right: 20%;
    animation-delay: 0s;
    background: radial-gradient(circle,
            rgba(232, 197, 152, 0.5),
            rgba(212, 165, 116, 0.3),
            transparent);
}

.hero-decoration:nth-child(2) {
    width: 180px;
    height: 180px;
    bottom: 12%;
    right: 8%;
    animation-delay: 2.5s;
    background: radial-gradient(circle,
            rgba(139, 111, 71, 0.4),
            rgba(139, 111, 71, 0.2),
            transparent);
}

@keyframes decorationFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }

    33% {
        transform: translate(25px, -25px) scale(1.08);
        opacity: 0.7;
    }

    66% {
        transform: translate(-15px, 15px) scale(0.95);
        opacity: 0.6;
    }
}

/* 響應式設計 */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .hero-content,
    .hero-visual {
        max-width: 100% !important;
        min-height: 50vh;
    }

    .hero-content {
        padding: var(--spacing-xl) var(--spacing-md) !important;
    }

    .hero-content::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: var(--spacing-lg) var(--spacing-md) !important;
    }

    .hero h1 {
        font-size: 2.5rem !important;
        letter-spacing: 0.5px;
    }

    .hero .subtitle {
        font-size: 1.15rem !important;
        letter-spacing: 1.2px;
    }

    .hero-features {
        gap: var(--spacing-xs) !important;
    }

    .hero-feature {
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
    }

    .hero-visual {
        min-height: 45vh;
    }

    .hero-product-display {
        max-width: 85%;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem !important;
    }

    .hero .subtitle {
        font-size: 1rem !important;
    }

    .hero-feature {
        padding: 10px 18px !important;
        font-size: 0.85rem !important;
    }
}