/* ============================================================
   中国题字网 首页视觉覆盖 v1.3（修复版）
   1. logo 90px（不破坏原有 header 布局）
   2. 导航下拉菜单与父栏目居中对齐
   3. 轮播全屏（不覆盖 owl 内部宽度，避免轮播失效）
   4. 四个模块背景 #ddd7cc
   ============================================================ */

/* ---------- 1. Logo 高度 90px ---------- */
.custom-logo {
    height: 90px !important;
    width: auto !important;
    max-height: none !important;
}

/* header 行高自适应，避免 logo 上出界 */
#masthead .header-inner {
    height: auto !important;
    min-height: 100px;
}
.site-branding {
    height: auto !important;
}

/* 站点描述与右侧广告图不被挤压换行 */
.site-branding .site-desc {
    white-space: nowrap;
    flex-shrink: 0;
}
.site-branding .ad {
    flex-shrink: 0;
    margin-left: auto;
}
.site-branding .ad img {
    max-width: none;
}

/* ---------- 2. 导航下拉菜单与父栏目居中对齐 ---------- */
#primary-menu > li.menu-item-has-children {
    position: relative;
}
#primary-menu > li.menu-item-has-children > .sub-menu {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    margin-left: 0;
    text-align: center;
}
#primary-menu > li.menu-item-has-children > .sub-menu > li > a {
    text-align: center;
}

/* ---------- 3. 轮播全屏（只改外层，不动 owl 内部） ---------- */
.featured-content {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}
.featured-content .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.featured-content .featured-slide img {
    width: 100%;
    object-fit: cover;
}

/* ---------- 4. 四个模块背景色 #ddd7cc ---------- */
.custom-section {
    background-color: #ddd7cc !important;
}

/* ---------- 移动端 ---------- */
@media screen and (max-width: 768px) {
    .custom-logo {
        height: 60px !important;
    }
    #masthead .header-inner {
        min-height: 0;
    }
    .featured-content {
        width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
    }
}

.custom-section .home-section { background-color: transparent !important; }
