* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif, serif;
    background-color: #f5f5f5;
}

/* 頂部導航欄樣式 */
.top-nav {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 40px;
    width: auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #48bb78;
}

.separator {
    color: #cbd5e0;
    font-size: 1.2rem;
}

.company-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4a5568;
    font-size: 0.9rem;
}

.company-info img {
    width: 20px;
    height: 20px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 貨幣下拉選單樣式 */
.currency-dropdown {
    position: relative;
    display: inline-block;
}

.currency-btn {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #48bb78;
    font-weight: 500;
}

.currency-btn:hover {
    border-color: #48bb78;
}

.dropdown-arrow {
    font-size: 0.7rem;
    color: #48bb78;
    transition: transform 0.3s ease;
}

.currency-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.currency-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #48bb78;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    min-width: 200px;
}

.currency-dropdown.open .currency-menu {
    display: block;
}

.currency-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f7fafc;
}

.currency-option:last-child {
    border-bottom: none;
}

.currency-option:hover {
    background-color: #f0fff4;
}

.flag-icon {
    width: 24px;
    height: 18px;
    border-radius: 2px;
    object-fit: cover;
}

.currency-option span {
    color: #4a5568;
    font-size: 0.9rem;
}

.sign-in-link {
    color: #4a5568;
    font-size: 0.9rem;
    cursor: pointer;
}

.sign-in-link:hover {
    color: #48bb78;
}

/* 主要橫幅樣式 */
.header {
    background-color: #394469;
    opacity: 0.9;
    background:url('img/paga_kv_bgimage.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0px 0;
    position: relative;
    overflow: hidden;
}

.banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 20px;
    position: relative;
    z-index: 1;
}

.banner-content {
    padding: 50px 0px;
    text-align: center;
    font-weight: 700;
    font-size: 1.625rem;
    text-shadow: 0px 3px 6px #000000;
}

.main-title {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #48bb78;
    line-height: 1.3;
    text-align: center;
}

.service-info {
    margin-top: 25px;
}

.service-title {
    color: #ffd700;
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: 1.5px;
}

.service-desc {
    color: #e2e8f0;
    font-size: 1.1rem;
    line-height: 1.5;
    text-align: center;
    margin: 0 auto;
    white-space: nowrap;
}

/* 登入區域樣式 */
.login-section {
    background: #48bb78;
    padding: 20px 25px;
    border-radius: 0;
    max-width: 500px;
    position: relative;
    z-index: 2;
}

.login-box h3 {
    text-align: center;
    margin-bottom: 15px;
    color: white;
}

.login-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: #f6ad55;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

.login-btn:hover {
    background: #ed8936;
}

/* 主要內容區域 */
.main-content {
    max-width: 1300px;
    margin: -10px auto 30px auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* 品牌網格布局 */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.brand-item {
    background: transparent;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    width: 120px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 15px;
}

.brand-name {
    font-size: 12px;
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
}

/* 彈出式登入視窗樣式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background-image: linear-gradient(0deg, rgba(2, 167, 97, 0.9) 0%, rgba(2, 167, 97, 0.9) 100%), url(img/paga_kv_bgimage.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px;
    border-radius: 8px;
    position: relative;
    width: 400px;
    max-width: 90vw;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    opacity: 0.7;
}

.modal-login h3 {
    text-align: center;
    margin-bottom: 25px;
    color: white;
    font-size: 1.5rem;
}

.modal-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.modal-btn {
    width: 100%;
    padding: 12px;
    background: #f6ad55;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

.modal-btn:hover {
    background: #ed8936;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .banner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .brands-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 15px;
    }
    
    .brand-logo {
        width: 60px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .brand-item {
        padding: 10px;
    }
    
    .brand-logo {
        width: 50px;
        height: 40px;
    }
}
