@charset 'UTF-8';

*button:focus {
    box-shadow: none !important;
}

img {
    max-width: 100%;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes bounceRotate {

    0%,
    100% {
        transform: rotate(25deg) scale(1);
    }

    50% {
        transform: rotate(35deg) scale(1.1);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1a1a3e 50%, #0f172a 100%);
    color: rgb(255 255 255 / 70%);
    padding: 3rem 0 1.5rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0066FF, #8B5CF6, #FF3366, #EC4899, #8B5CF6, #0066FF);
    background-size: 200% 100%;
    animation: shimmer 4s linear infinite;
}

.footer::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.footer-decoration {
    position: absolute;
    pointer-events: none;
}

.footer-decoration-1 {
    bottom: 20%;
    left: 5%;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(139, 92, 246, 0.15);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.footer-decoration-2 {
    top: 30%;
    right: 15%;
    width: 60px;
    height: 60px;
    background: rgba(255, 51, 102, 0.12);
    border-radius: 12px;
    transform: rotate(25deg);
    animation: bounceRotate 6s ease-in-out infinite;
}

.footer-decoration-3 {
    bottom: 40%;
    right: 25%;
    width: 20px;
    height: 20px;
    background: rgba(0, 102, 255, 0.2);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

/* 四欄佈局 */
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
    padding-bottom: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
        gap: 2.5rem;
    }
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: auto;
        gap: 2rem;
        text-align: center;
    }

    .footer-links-group,
    .footer-links {
        display: none;

    }
}



/* 第一欄：品牌資訊 */
.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 90%;
}

.footer-desc {
    font-size: 16px;
    line-height: 1.85;
    color: rgb(255 255 255);
    margin-bottom: 1.25rem;
    margin-top: 2.25rem;
}

@media (max-width: 991px) {
    .footer-brand {
        max-width: 100%;
    }

    .footer-logo img {
        width: 90%;
        max-width: 260px;
    }

}


/* 連結欄 */
.footer-links-group h4,
.footer-contact-group h4 {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #ffcf5e;
    display: inline-block;
    width: 100%;
}
@media (max-width: 991px) {
    .footer-links-group h4,
.footer-contact-group h4 {
  width: auto;}}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0;
    margin: 0;
}

.footer-links a {
    font-size: 16px;
    color: rgb(255 255 255);
    transition: all 0.2s;
    display: inline-block;
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
    transform: translateX(4px);
}

/* 聯絡資訊欄 */
.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0;
    margin: 0;
}

@media (max-width: 991px) {
    .footer-contact-list {
        align-items: center;
    }
}

.footer-contact-list li {
    font-size: 16px;
    color: rgb(255 255 255);
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
}

.footer-contact-list li a {
    color: #fff;
}

.footer-contact-list i {
    color: #e3af33;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* 營運處 */
.footer-branches {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.75rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 16px;
    color: #fff;
    position: relative;
    z-index: 1;
}

.footer-branches-label {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
}

.footer-branches-list {
    line-height: 30px;
}

@media (max-width: 991px) {
    .footer-branches {
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .footer-branches-list {
        text-align: center;
    }

    .footer-branches-list b {
        display: block;
    }

    .footer-branches-list span {
        display: none;
    }
}

/* 版權 */
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 15px;
    position: relative;
    z-index: 1;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s;
    text-decoration: none;
}

.footer-legal a:hover {
    color: white;
}

@media (max-width: 767px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }
}