/* =====================================================
   全站基础样式：header / footer / 普通页面通用
===================================================== */

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: #593f45;
    background: linear-gradient(180deg, #fff 0%, #fff8f9 42%, #efd0d7 100%);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(14px);
}

.site-header-inner {
    width: 94%;
    max-width: 1480px;
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-brand {
    color: #613841;
    font-size: 19px;
    font-weight: 800;
    text-decoration: none;
}

.site-nav ul {
    display: flex;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    color: #744b52;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.site-nav a:hover {
    background: #ffe8ee;
}

.site-footer {
    padding: 32px 16px;
    color: #a27880;
    text-align: center;
}

.page-content-wrap {
    width: 92%;
    max-width: 1080px;
    margin: 50px auto;
}

.page-card {
    max-width: 960px;
    margin: 40px auto;
    padding: 40px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 46px rgba(150, 106, 106, 0.14);
}

.page-card h1 {
    margin-top: 0;
    color: #603840;
}

.page-content {
    color: #6b5559;
    line-height: 2;
}

@media screen and (max-width: 600px) {
    .site-header-inner {
        width: 92%;
        height: 58px;
    }

    .site-nav ul {
        gap: 4px;
    }

    .site-nav a {
        padding: 7px 8px;
        font-size: 13px;
    }

    .page-card {
        padding: 26px 20px;
    }
}


/* =====================================================
   顶部菜单升级版：独立优化右上角导航
===================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background:
        linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.72));
    border-bottom: 1px solid rgba(255, 210, 222, .72);
    box-shadow: 0 10px 30px rgba(140, 82, 98, .08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.site-header-inner {
    width: min(94%, 1480px);
    min-height: 72px;
    height: auto;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #59323c;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.site-brand .brand-mark {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff5f85, #ff9bae);
    color: #fff;
    box-shadow: 0 10px 22px rgba(255, 95, 133, .26);
}

.site-brand .brand-text {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
}

.site-brand .brand-sub {
    color: rgba(89, 50, 60, .46);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 6px;
    list-style: none;
    border-radius: 999px;
    background: rgba(255, 242, 246, .82);
    border: 1px solid rgba(255, 210, 222, .92);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.site-nav li {
    margin: 0;
    padding: 0;
}

.site-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #71434d;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.site-nav a:hover {
    color: #fff;
    background: linear-gradient(135deg, #ff6f93, #ff9aad);
    box-shadow: 0 10px 22px rgba(255, 111, 147, .22);
    transform: translateY(-1px);
}

.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.site-nav .current-category-ancestor > a,
.site-nav .current-post-ancestor > a,
.site-nav .current-menu-ancestor > a {
    color: #fff;
    background: linear-gradient(135deg, #e85076, #ff89a2);
    box-shadow: 0 10px 22px rgba(232, 80, 118, .22);
}

.site-nav-love {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    background: linear-gradient(135deg, #d94469, #ff7f9a);
    box-shadow: 0 12px 26px rgba(217, 68, 105, .25);
    white-space: nowrap;
    transition: transform .18s ease, box-shadow .18s ease;
}

.site-nav-love:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(217, 68, 105, .32);
}

@media screen and (max-width: 900px) {
    .site-header-inner {
        width: 94%;
        min-height: 68px;
        gap: 12px;
    }

    .site-brand .brand-sub {
        display: none;
    }

    .site-nav {
        max-width: 62vw;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
    }

    .site-nav::-webkit-scrollbar {
        display: none;
    }

    .site-nav ul {
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    .site-nav-love {
        display: none;
    }
}

@media screen and (max-width: 600px) {
    .site-header-inner {
        width: 92%;
        min-height: 62px;
    }

    .site-brand {
        font-size: 16px;
    }

    .site-brand .brand-mark {
        width: 32px;
        height: 32px;
    }

    .site-nav {
        max-width: 58vw;
    }

    .site-nav ul {
        gap: 4px;
        padding: 4px;
    }

    .site-nav a {
        min-height: 32px;
        padding: 7px 10px;
        font-size: 13px;
    }
}


.site-nav-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}
@media screen and (max-width: 900px) {
    .site-nav-wrap {
        min-width: 0;
    }
}
