/* =====================================================
   全站基础样式：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;
    }
}

/* =====================================================
   V8 手机导航：Logo + 汉堡菜单，不再横向挤压导航
===================================================== */
.site-nav-toggle{
    display:none;
    width:42px;
    height:42px;
    padding:0;
    border:1px solid rgba(236,202,211,.95);
    border-radius:14px;
    background:linear-gradient(180deg,#fff,#fff5f7);
    box-shadow:0 8px 22px rgba(115,65,78,.08);
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:4px;
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
}
.site-nav-toggle span{display:block;width:17px;height:1.5px;border-radius:99px;background:#8b5260;transition:transform .22s ease,opacity .18s ease}
.site-nav-toggle.is-open span:nth-child(1){transform:translateY(5.5px) rotate(45deg)}
.site-nav-toggle.is-open span:nth-child(2){opacity:0}
.site-nav-toggle.is-open span:nth-child(3){transform:translateY(-5.5px) rotate(-45deg)}
.site-nav a.is-active{color:#fff;background:linear-gradient(135deg,#e85076,#ff89a2);box-shadow:0 9px 20px rgba(232,80,118,.18)}

@media screen and (max-width:900px){
    .site-header{overflow:visible}
    .site-header-inner{position:relative;width:calc(100% - 28px);min-height:64px;gap:10px}
    .site-brand{min-width:0;gap:8px;font-size:16px}
    .site-brand .brand-mark{width:34px;height:34px;flex:0 0 34px}
    .site-brand .brand-text{min-width:0}.site-brand .brand-text strong{display:block;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    .site-brand .brand-sub{display:none}
    .site-nav-wrap{position:relative;margin-left:auto;min-width:0;gap:8px}
    .site-nav-toggle{display:flex}
    .site-nav{
        position:absolute;
        z-index:95;
        top:calc(100% + 12px);
        right:0;
        left:auto;
        width:min(318px,calc(100vw - 28px));
        max-width:none;
        display:none;
        overflow:visible;
        padding:9px;
        border:1px solid rgba(238,208,216,.98);
        border-radius:20px;
        background:rgba(255,255,255,.97);
        box-shadow:0 22px 58px rgba(95,52,65,.16);
        backdrop-filter:blur(18px);
        -webkit-backdrop-filter:blur(18px);
    }
    .site-nav.is-open{display:block;animation:loveNavIn .18s ease-out both}
    .site-nav ul{display:grid;grid-template-columns:1fr;gap:3px;width:100%;margin:0;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;white-space:normal}
    .site-nav li{width:100%}
    .site-nav a{width:100%;min-height:44px;justify-content:flex-start;padding:10px 13px;border-radius:13px;font-size:14px}
    .site-nav a:not(.is-active):hover{color:#7a4855;background:#fff1f4;box-shadow:none;transform:none}
    .site-nav-love{display:none}
}
@keyframes loveNavIn{from{opacity:0;transform:translateY(-5px) scale(.985)}to{opacity:1;transform:none}}

@media screen and (max-width:600px){
    .site-header-inner{width:calc(100% - 22px);min-height:60px}
    .site-brand{font-size:15px}.site-brand .brand-mark{width:32px;height:32px;flex-basis:32px}
    .site-brand .brand-text strong{max-width:132px}
    .site-nav-toggle{width:39px;height:39px;border-radius:13px}
    .site-nav{top:calc(100% + 9px);width:min(300px,calc(100vw - 22px));padding:8px;border-radius:18px}
    .site-nav a{min-height:43px;padding:10px 12px;font-size:13px}
}
