/* --- 最终版：紧凑型白色置顶导航栏 --- */

/* 1. 外层容器：负责背景和定位 */
.top-nav-container-full-width {
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 6px 0;
}

/* 2. 内层容器：约束导航内容的宽度并居中 */
.nav-content-wrapper {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

/* 3. 导航项列表本身的行为 (核心修改) */
.top-nav {
    width: 100%; 
    display: flex;
    justify-content: space-between; 
    align-items: center;
    list-style: none;
    padding: 0;
   /* margin: 0 auto;  <-- 添加这一行 */
}


/* 4. 导航项和链接样式 */
.top-nav .wp-block-navigation-item {
    display: inline-block;
    margin-bottom: 0;
}

.top-nav .wp-block-navigation-item__content {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    display: block;
    padding: 8px 18px;
    position: relative;
    transition: color 0.3s ease;
}

/* 悬停下划线效果 */
.top-nav .wp-block-navigation-item__content:hover {
    color: rgba(200, 120, 140, 0.85);
}

.top-nav .wp-block-navigation-item__content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: rgba(200, 120, 140, 0.85);
    transition: width 0.3s ease, left 0.3s ease;
}

.top-nav .wp-block-navigation-item__content:hover::after {
    width: 100%;
    left: 0;
}


/* --- 封面区域样式 --- */
.your-main-container {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
    background-color: #f9f9f9;
    color: white;
    position: relative;
    overflow: clip;
    margin-bottom: 0 !important;
}

.your-main-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
        rgba(200, 120, 140, 0.85) 0%,
        rgba(218, 165, 130, 0.6) 55%,
        rgba(235, 199, 140, 0.2) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.left-content {
    flex: 0.9;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2em 3em 2em 5em;
}

.left-content a {
    font-weight: 700;
    font-size: clamp(2rem, 1.726rem + ((1vw - 0.2rem) * 1.757), 3.5rem);
    line-height: 1.4;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease-in-out;
}

.left-content a:hover {
    opacity: 0.8;
}

.right-image-container {
    flex: 1.1;
    border-radius: 20px;
    position: relative;
}

.right-image-container img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 20px;
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.right-image-container img:hover {
    transform: scale(1.08);
    filter: saturate(1.1) contrast(0.9);
}


/* --- 主内容区域（文章）样式 --- */
.main-article-content {
    width: 100%;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    padding: 2.5rem 1rem;
    box-sizing: border-box;
}

.main-article-content p {
    margin-top: 0 !important;
    margin-bottom: 1.75em !important;
    line-height: 1.8;
    font-size: 1.1rem;
}

.main-article-content h2 {
    margin-bottom: 1.25em !important;
}

.main-article-content ul {
    margin-top: 0 !important;
    margin-bottom: 1.5em !important;
}


/* --- 统一跳转间距的解决方案 --- */
#wp--skip-link--target {
    margin-top: 0 !important;
}

.main-article-content div[id],
.main-article-content h2[id],
.main-article-content h3[id] {
    scroll-margin-top: 90px;
}


/* --- 响应式媒体查询 --- */
@media (max-width: 992px) {
    /* 在小屏幕上，让导航项换回居中显示，避免两端对齐太空 */
    .top-nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .your-main-container {
        flex-direction: column;
        padding: 0;
    }
    .left-content {
        text-align: center;
        padding: 3em 2em;
        min-height: 300px;
    }
    
    .main-article-content {
        max-width: 90%;
    }
}