/* iPhone Duo 适配
   折叠外屏 466 × 678，展开内屏 890 × 626（CSS 像素，@3x）。
   设备识别见 js/duo-detect.js：页面会得到 html.duo-device / duo-unfolded / duo-folded。 */

/* 外屏右上角状态栏占位：隐藏与之冲突的站内搜索按钮 */
html.duo-folded .main-search-btn { display: none !important; }

/* 外屏顶部补色：与底部导航栏一致 */
html.duo-folded .header { background: #f0f0f2 !important; }


/* 侧边栏“登录 / 注册”分隔线：恢复显示并落在两词正中（原主题为 left:-1px，8px 间距下偏右） */
body.gofo-desktop-nav-active .gdn-controls .splitters > li + li::before {
    left: -4.5px;
    right: auto;
    height: 14px;
    opacity: .45 !important;
}

/* 展开态内屏：左右双卡保持完整版，左侧给文字留出空间 */
html.duo-unfolded #home_top #home_top_iconsCard {
    width: calc(58% - 0.5rem);
    height: 320px;
}

html.duo-unfolded #home_top .topGroup {
    width: calc(42% - 0.25rem);
    height: 320px;
}

html.duo-unfolded #home_top_iconsCard .tags-group-wrapper {
    width: 230px;
    flex-wrap: wrap;
}

html.duo-unfolded #home_top_iconsCard .tags-group-icon-pair {
    margin-left: 0.75rem;
}

html.duo-unfolded #home_top_iconsCard .tags-group-icon {
    width: 90px;
    height: 90px;
    border-radius: 22px;
}

html.duo-unfolded #home_top_iconsCard .tags-group-icon-pair > .tags-group-icon:first-of-type {
    margin-right: 30px;
}

html.duo-unfolded #home_top_iconsCard .tags-group-icon-pair .tags-group-icon:nth-child(even) {
    margin-left: 3rem;
    margin-top: 0.75rem;
    transform: translate(-45px);
}

html.duo-unfolded #home_top .banners-title {
    top: 20px;
    left: 20px;
}

html.duo-unfolded #home_top .banners-title-big {
    font-size: 26px;
}

html.duo-unfolded #home_top .banners-title-medium {
    font-size: 19px;
}

html.duo-unfolded #home_top .banners-link {
    left: 20px;
    bottom: 20px;
}

html.duo-unfolded #home_top .topGroup .todayCard .todayCard-info {
    left: 20px;
    bottom: 20px;
    max-width: 62%;
}

html.duo-unfolded #home_top .topGroup .todayCard .todayCard-info .todayCard-title {
    font-size: 19px;
    line-height: 1.25;
}

html.duo-unfolded #home_top .topGroup .banner-button-group {
    right: 16px;
    bottom: 20px;
}

html.duo-unfolded #home_top .topGroup .banner-button {
    width: 96px;
    height: 34px;
    font-size: 12px;
}

/* 两列列表出现单数尾项时，让最后一张占满整行，补齐右下角空位 */
html.duo-unfolded .widget-tab-post.style-mini .posts-mini:last-child:nth-child(odd) {
    width: 100% !important;
}
