.navbar-nav .dropdown-menu {
    position: absolute;
}

.navbar-nav {
    flex-direction: row !important;
}

.navbar-nav .nav-link {
    padding: .5rem 1rem !important;
}

.navbar-brand-icon {
    width: 2rem;
    vertical-align: bottom;
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.app-teaser-wrapper {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f3f6fa;
    border-radius: 5px;
    cursor: pointer;
}

@media screen and (min-width: 520px) {
    .app-teaser-wrapper {
        flex-direction: row;
        padding: 10px 15px
    }
}

.app-icon {
    display: block;
    float: left;
    margin-right: 15px;
    width: 4rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

@media screen and (min-width: 1070px) {
    .app-icon {
        margin-right: 10px
    }
}

.app-teaser {
    -webkit-box-flex: 1;
    -webkit-flex: 1 0 auto;
    -moz-box-flex: 1;
    -ms-flex: 1 0 auto;
    flex: 1 0 auto
}

.app-teaser-buttons {
    margin-top: 12px;
    float: right;
    font-size: 0
}

@media screen and (min-width: 1070px) {
    .app-teaser-buttons {
        margin-top: 20px;
        flex: 0 0 auto
    }
}

.app-teaser-buttons a {
    display: inline-block;
    width: 125px
}

.app-teaser-buttons a:first-child {
    margin-right: 10px
}

.app-info-heading {
    margin: 0 0 1px;
    padding-top: 3px;
    font-size: 16px;
    line-height: 1.13;
    font-weight: 600;
    color: #161c24
}

.app-info-author {
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.43;
    color: #6e7c8c
}

.app-info-rating {
    font-size: 0
}

h4 {
    margin: 0 auto 20px;
    font-weight: 700;
    font-size: 28px;
    line-height: 36px;
    vertical-align: middle;
    color: #344861;
}

p.content {
    font-size: 15px;
    line-height: 25px;
    color: #6e7c8c;
    text-indent: 2em;
}

ul>li.content {
    font-size: 15px;
    line-height: 25px;
    color: #6e7c8c;
    list-style: none;
}

.content a {
    color: #4a90e2;
    font-weight: 600;
}

.gallery {
    margin-bottom: 30px;
    overflow-x: auto;
    -webkit-overflow-x: auto;
    -ms-overflow-x: auto;
    -ms-overflow-style: none;
    overflow: -moz-scrollbars-none;
}

.gallery::-webkit-scrollbar {
    width: 0 !important
}

.gallery {
    -ms-overflow-style: none;
}

.gallery {
    overflow: -moz-scrollbars-none;
}

.gallery .screenshot {
    width: 15rem;
    margin: 0 .5rem;
    object-fit: contain;
}

.gallery .screenshot-wide {
    width: 30rem;
}

.star {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 2px;
    background: url('https://lens.idailybread.com/paintByNumber/ad9de86325915ed0db377a219538e5cf.png') no-repeat left;
    background-size: contain;
}

.anchor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0 0 0 0 !important
}

.article-content {
    max-width: 1140px;
    margin-top: 80px;
}


/* 文章列表：两列网格，卡片间距，卡片最小宽度 */
.article-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media screen and (min-width: 640px) {
    .article-list {
        grid-template-columns: repeat(2, minmax(320px, 1fr));
    }
}

/* 单张卡片：白底、圆角、阴影，内容垂直排列，增加最小宽度 */
.article-item {
    min-width: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.article-item__link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.article-item__img-wrap {
    overflow: hidden;
    height: 140px;
    border-radius: 12px 12px 0 0;
}

.article-item__img {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    transition: transform 0.35s ease;
}

.article-item:hover .article-item__img {
    transform: scale(1.05);
}

.article-item__body {
    padding: 20px;
}

.article-item__title {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    color: #161c24;
}

.article-item__desc {
    margin: 0 0 12px;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #6e7c8c;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-item__read-more {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #4a90e2;
}

/* 文章详情页：上一篇 / 下一篇 导航（循环） */
.article-nav {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 16px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e8ecf0;
}

.article-nav__link {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    max-width: 45%;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #4a90e2;
    text-decoration: none;
    line-height: 1.4;
}

.article-nav__link:hover {
    color: #357abd;
    text-decoration: underline;
}

.article-nav__link--prev {
    flex-direction: row;
}

.article-nav__link--prev .article-nav__arrow {
    margin-right: 2px;
}

.article-nav__link--next {
    flex-direction: row;
    margin-left: auto;
    text-align: right;
}

.article-nav__link--next .article-nav__arrow {
    margin-left: 2px;
}

.article-nav__arrow {
    flex-shrink: 0;
    display: inline-block;
    line-height: 1.4;
}

.article-nav__title {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.article-nav__link--next .article-nav__title {
    text-align: right;
}

/* 页面居中：主内容 + 悬浮推广卡片 */
.page-center-wrapper {
    max-width: 1140px;
    margin: 80px auto 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media screen and (min-width: 1070px) {
    .page-center-wrapper {
        flex-direction: row;
        align-items: flex-start;
    }
}

.page-main {
    flex: 1;
    min-width: 0;
}

@media screen and (min-width: 1070px) {
    .page-main {
        margin-right: 324px;
    }
}

.page-main .container {
    max-width: none;
    margin-top: 0;
}

/* 悬浮应用推广卡片：fixed 在 navbar 下方 */
.app-promo-card {
    flex-shrink: 0;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding: 0;
    background: #f3f6fa;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    cursor: pointer;
}

@media screen and (min-width: 1070px) {
    .app-promo-card {
        position: fixed;
        top: 88px;
        right: max(16px, calc((100vw - 1140px) / 2 + 16px));
        margin: 0;
        width: 300px;
    }
}

/* 顶部：应用信息与评分，浅色背景 */
.app-promo-card__info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
}

.app-promo-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.app-promo-card__meta {
    flex: 1;
    min-width: 0;
}

.app-promo-card__title {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #161c24;
}

.app-promo-card__developer {
    margin: 0 0 8px;
    font-size: 0.875rem;
    color: #6e7c8c;
}

.app-promo-card__stars {
    font-size: 0.875rem;
    letter-spacing: 2px;
    color: #ff9500;
}

/* 底部：二维码与下载按钮，略深背景区分层次 */
.app-promo-card__download {
    display: flex;
    align-items: center;
    gap: 38px;
    padding: 14px 16px;
    background: #e8ecf0;
    justify-content: center;
}

.app-promo-card__qr {
    flex-shrink: 0;
    padding: 6px;
    background: #fff;
    border-radius: 6px;
}

.app-promo-card__qr img {
    display: block;
    width: 80px;
    height: 80px;
}

.app-promo-card__buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-promo-card__btn {
    display: block;
}

.app-promo-card__btn img {
    display: block;
    height: 40px;
    width: auto;
}

/* 1070px 以下：长条布局，横向一排（放在基础样式后以保证优先级） */
@media screen and (max-width: 1069px) {
    aside {
        padding: 0 .75rem;
    }

    .app-promo-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        max-width: 100%;
        padding: 12px 16px;
        gap: 16px;
        box-sizing: border-box;
    }

    .app-promo-card__info {
        flex: 1;
        min-width: 0;
        padding: 0;
        margin: 0;
        background: transparent;
    }

    .app-promo-card__title {
        font-size: 0.9375rem;
    }

    .app-promo-card__developer {
        margin-bottom: 4px;
    }

    .app-promo-card__download {
        flex-shrink: 0;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        padding: 0;
        background: transparent;
    }

    .app-promo-card__download .app-promo-card__qr {
        display: none;
    }

    .app-promo-card__buttons {
        flex-direction: row;
        gap: 8px;
    }

    .app-promo-card__btn img {
        height: 36px;
    }
}

.article-detail,
.article-list {
    padding-bottom: 100px;
}

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

.article-detail p {
    font-size: 15px;
    line-height: 25px;
    color: #6e7c8c;
}