/**
 * ============================================================
 * CtrlEat Official Shopping Website
 * ============================================================
 * CtrlEat 正式版购物网站
 * 版权归天河星雨工作室[thxymc Studio] thxymc.com所有
 * Copyright © 2026 thxymc.com. All rights reserved.
 * 网页由天河星雨工作室制作 thxymc.com
 * ！！未经允许禁止公开源码！！
 * ============================================================
 */

.ce-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: min(1180px, calc(100% - 32px));
    margin: 14px auto 0;
    padding: 10px 14px;
    border: 1px solid #dbe7df;
    border-radius: 22px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 16px 44px rgba(15, 23, 42, .08);
    backdrop-filter: blur(14px);
    box-sizing: border-box;
}

.ce-logo {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #14532d;
    font-size: 1.05rem;
    font-weight: 950;
    text-decoration: none;
    white-space: nowrap;
}

.ce-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.ce-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    color: #334155;
    font-size: .9rem;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.ce-nav a:hover,
.ce-nav a.active {
    background: #16a34a;
    color: #fff;
}

.site-terms-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 10px;
    margin: 0 auto 12px;
    max-width: min(100%, 760px);
}

.site-terms-links a {
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.82rem;
    font-weight: 900;
    text-decoration: none;
    line-height: 1.35;
}

.site-footer {
    display: grid;
    justify-items: center;
    gap: 4px;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.page-terms-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-top: 12px;
}

.page-terms-links a {
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.86rem;
    font-weight: 900;
    text-decoration: none;
}

@media (max-width: 768px) {
    .ce-topbar {
        position: relative;
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        width: calc(100% - 20px);
        margin-top: 10px;
        padding: 9px;
        border-radius: 16px;
    }

    .ce-logo {
        min-height: 34px;
        padding: 0 12px;
        font-size: .92rem;
    }

    .ce-nav {
        width: 100%;
        justify-content: flex-start;
        gap: 4px;
        padding-bottom: 2px;
    }

    .ce-nav a {
        min-height: 32px;
        padding: 0 9px;
        font-size: .78rem;
    }

    .site-terms-links {
        gap: 6px;
        margin-bottom: 10px;
    }

    .site-terms-links a {
        padding: 4px 8px;
        font-size: 0.76rem;
    }

    .site-footer {
        padding-inline: 10px;
        font-size: 0.78rem;
        line-height: 1.65;
    }
}
