.bg-bottom {
    background-color: #0e1014;
}

.logo-text-primary {
    color: #ffae00;
}

.log-text-zinc-50 {
    padding-right: 0.3rem;
    color: #fafafa;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-700 {
    color: #374151;
}

.border-gray-700 {
    border-color: #374151;
}

.font-serif {
    font-family: "Bungee", cursive !important;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.gap-4 {
    gap: 1.5rem;
}

.footer {
    display: flex;
    position: relative;
    background-color: #0e1014;
    margin-top: 7rem;
    padding: 5rem 0 2rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
    font-family: "Roboto", "Microsoft JhengHei", sans-serif;
}

.footer-row {
    display: grid;
    grid-template-columns: 4fr 3fr 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    min-width: 0;
}

.footer-col-left {
    text-align: left;
}

.footer-col-right {
    text-align: right;
}

.footer-col-right:last-child {
    text-align: right;
}

.footer-col-gap {
    width: 1fr;
}

.footer-logo {
    font-size: 2.25rem;
    line-height: 1.2;
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.footer-desc {
    color: #6b7280;
    font-size: 0.9375rem;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: 0.01em;
    max-width: 500px;
}

.footer-title {
    display: block;
    color: #9ca3af;
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: #ccc;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 400;
    letter-spacing: 0.01em;    
}

.footer-links a:hover {
    color: #ffae00;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 30px;
    text-align: center;
}

.copyright {
    color: #9ca3af;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.copyright a {
    color: inherit;
    text-decoration: none;
}

.copyright .logo {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.foot-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-content: end;
}

.foot-links a {
    color: #6b7280;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 400;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
}

.foot-links a:hover {
    color: #ffae00;
}

@media (max-width: 1024px) {
    .footer-row {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-col-right {
        text-align: left;
    }

    .footer-col-gap {
        display: none;
    }

    /* 隐藏"也可看看"栏目 */
    .footer-col-right:last-child {
        display: none;
    }

    /* 隐藏标题 */
    .footer-title {
        display: none;
    }

    /* 調整"關於我們"鏈接為橫向排列 */
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        gap: 15px 20px;
    }

    .footer-links li {
        margin-bottom: 0;
    }
}

@media (max-width: 640px) {
    .footer-row {
        grid-template-columns: 1fr;
    }

    .footer-col-gap {
        display: none;
    }

    /* 确保在小屏幕上也隐藏"也可看看"栏目 */
    .footer-col-right:last-child {
        display: none;
    }

    /* 隐藏标题 */
    .footer-title {
        display: none;
    }

    /* 小屏幕上進一步調整鏈接排列 */
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        gap: 10px 15px;
        justify-content: flex-start;
    }

    .footer-links li {
        margin-bottom: 0;
    }

    .footer-links a {
        font-size: 0.9rem;
    }
}