/**
 * 台中和潤優質當舖 - 頁頭樣式
 */

/* 重置樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft JhengHei', Arial, sans-serif;
    line-height: 1.1;
    color: #333;
}

/* 頁頭導航欄 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: transparent;
}

.header.fixed-bg {
    background: url('../images/header-bg.png') repeat-x bottom;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
}

.logo {
    max-width: 220px;
    padding: 10px 0;
    z-index: 1001;
}

.logo img {
    width: 100%;
    height: auto;
}

.header-bottom {
    margin-left: auto;
    max-width: 800px;
    height: 50px;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 25px;
    z-index: 9999;
    border-radius: 25px;
}

.header-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #F5A623 0%, #ffdea8 50%, #F5A623 60%);
    z-index: -1;
    border-radius: 25px;
}

/* 導航菜單 */
.nav-menu {
    display: flex;
    list-style: none;
    margin-left: auto;
    position: relative;
    z-index: 10000;
}

.nav-menu li {
    position: relative;
    padding: 0 15px;
}

.nav-menu li a {
    display: flex;
    align-items: center;
    padding: 10px 0;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-menu li a img {
    margin-right: 8px;
    width: 24px;
    height: 24px;
}

.nav-menu li a:hover {
    color: #FFF8E0;
}

/* 下拉菜單 */
.nav-menu li .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background-color: #fff9e6;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 10000;
    border-radius: 10px;
    pointer-events: none;
    border: 2px solid #ffe177;
    padding: 5px;
}

.nav-menu li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-menu li .sub-menu li {
    padding: 0;
    margin: 5px 0;
}

.nav-menu li .sub-menu li a {
    padding: 10px 15px;
    font-weight: 500;
    display: block;
    color: #333;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-shadow: none;
}

.nav-menu li .sub-menu li a:hover {
    background-color: #ffe177;
    color: #333;
}

/* 漢堡菜單 */
.menu-toggle {
    display: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    background: url('../images/iconmenu.png') no-repeat center;
    background-size: contain;
}

.menu-toggle.active {
    background: url('../images/iconmenu-close.png') no-repeat center;
    background-size: contain;
}

/* Hero區塊 */
.hero-section {
    padding-top: 70px; /* 為固定導航欄保留空間 */
    display: flex;
    min-height: 450px; /* 進一步減少高度 */
    position: relative;
    overflow: hidden;
    background-color: transparent;
    z-index: 1;
    pointer-events: none;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(#efefef 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: center center;
    background-repeat: repeat;
    background-attachment: fixed;
    z-index: -2;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/header-bg.png') repeat-x bottom;
    background-size: auto;
    background-position: bottom;
    z-index: -1;
}

.hero-section * {
    pointer-events: auto;
}

.hero-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 3% 0 3%;
    position: relative;
    z-index: 0;
    align-items: flex-end;
    width: 100%;
}

.hero-slider {
    flex: 1;
    position: relative;
    max-width: 55%;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    justify-content: flex-end;
}

.hero-slide {
    width: 100%;
    display: none;
    position: relative;
    align-self: flex-end;
}

.hero-slide.active {
    display: block;
}

.hero-slide img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: -1px;
    position: relative;
    bottom: 0;
    transform: translateX(0);
    z-index: 0;
}

.hero-content {
    flex: 1;
    padding: 0 0 140px 0px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.hero-content h1 {
    color: #000000;
    font-size: 1.4rem;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    font-weight: 900;
}

.hero-content p {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 10px;
    font-weight: 900;
}

.hero-highlight {
    display: inline-flex;
    align-items: center;
    font-size: 1.6rem;
    font-weight: 900;
    color: #333;
    margin-right: 10px;
    margin-bottom: 0;
}

.hero-tick {
    width: 30px;
    height: 30px;
    margin-right: 1px;
}

.hero-tagline {
    font-size: 1.4rem;
    margin-top: 0;
    color: #ec9e30;
    font-weight: 900;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* 內容區塊 */
.main-content {
    margin-top: 0px;
}

/* LINE按鈕 */
.line-button {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    width: auto;
    height: auto;
    background-color: #ffffff;
    border-radius: 0 8px 8px 0;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid #06c755;
    border-left: none;
    padding: 10px 2px;
    text-decoration: none;
    display: block;
}

.line-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.line-button img {
    width: 50px;
    height: auto;
    margin-bottom: 5px;
}

.line-button-text {
    display: flex;
    justify-content: center;
    font-size: 14px;
    color: #333;
    font-weight: 700;
    text-align: center;
}

.line-text-left, .line-text-right {
    display: flex;
    flex-direction: column;
    padding: 0 3px;
    line-height: 1.2;
}

.line-text-left span, .line-text-right span {
    margin-bottom: 2px;
    display: block;
}

.line-button:hover {
    background-color: #f5f5f5;
}

/* 響應式設計 */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        align-items: center;
        padding-bottom: 20px;
    }
    
    .hero-content {
        padding: 40px 0 0 0;
        align-items: center;
        text-align: center;
    }
    
    .hero-slider {
        max-width: 100%;
        justify-content: center;
        overflow: visible;
        margin-bottom: -1px;
    }
    
    .hero-slide {
        width: 100%;
        align-self: flex-end;
    }
    
    .hero-slide img {
        width: 100%;
        margin-bottom: 0;
        position: static;
        transform: none;
    }
    
    .header-bottom {
        margin-left: auto;
        max-width: 600px;
    }
    
    .hero-content p {
        justify-content: center;
    }
}

/* 手機版選單 */
.mobile-menu {
    position: fixed;
    top: 65px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 450px;
    background-color: #fff;
    border: 2px solid #ec9e30;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 15px;
    z-index: 10000;
    display: none;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.mobile-nav-menu li {
    width: 48%;
    margin-bottom: 10px;
}

.mobile-nav-menu li:last-child {
    width: 100%;
    margin-bottom: 0;
}

.mobile-nav-menu li a {
    display: block;
    padding: 12px 5px;
    background-color: #fff9e6;
    color: #4a4a4a;
    text-decoration: none;
    text-align: center;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
}

.mobile-nav-menu li a:hover {
    background-color: #fff0c8;
}

@media (max-width: 768px) {
    .header-container {
        padding: 10px 20px;
        align-items: center;
    }
    
    .header-bottom {
        height: 45px;
        padding: 0;
        max-width: 45px;
        justify-content: center;
        background: none;
        border-radius: 0;
    }
    
    .header-bottom::before {
        display: none;
    }
    
    .logo {
        max-width: 200px;
    }
    
    .menu-toggle {
        display: block;
        width: 32px;
        height: 32px;
        cursor: pointer;
        background: url('../images/iconmenu.png') no-repeat center;
        background-size: contain;
        border: none;
        padding: 0;
        margin: 0;
        position: absolute;
        right: 20px;
    }
    
    .menu-toggle.active {
        background: url('../images/iconmenu-close.png') no-repeat center;
        background-size: contain;
    }
    
    .nav-menu {
        display: none;
    }
    
    .line-button {
        /*padding: 8px 5px;手機line懸浮按鈕*/
        display: none;
    }
    
    .line-button img {
        width: 40px;
    }
    
    .line-button-text {
        font-size: 12px;
        font-weight: 700;
    }
    
    .line-text-left span, .line-text-right span {
        margin-bottom: 1px;
    }
    
    .hero-section {
        min-height: 380px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        line-height: calc(1.1em + 2px);
    }
    
    .hero-content p {
        line-height: calc(1.1em + 3px);
    }
    
    .hero-highlight {
        line-height: calc(1.1em + 6px);
    }
} 