
@media (max-width: 500px) {
    body{
        max-width:500px;
        padding: 5px 5px 0;
    }
}
@media (min-width: 501px) {
    body{
        max-width:950px;
        padding: 10px 0 0;
    }
}

body{
    margin:0px auto;
    word-break:break-all;
    background-color: #fafafa;
    color: #181818;
}

body,button, input, select, textarea,h1 ,h2, h3, h4, h5, h6 { font-family: Microsoft YaHei,'宋体' , Tahoma, Helvetica, Arial, "\5b8b\4f53", sans-serif;}

a{
    text-decoration:none;
}

.site_top{
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 12% 15%, rgba(255, 255, 255, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 88% 85%, rgba(255, 255, 255, 0.12) 0%, transparent 40%),
        linear-gradient(135deg, #e57f8d 0%, #de7382 55%, #d06070 100%);
    font-weight: bold;
    padding: 8px 10px;
    margin-bottom: 5px;
    font-size: 20px;
    line-height: 1.5;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(222, 115, 130, 0.3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.35);
}

.site_top a, .site_top a:hover, .site_top a:active{
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.site_top .site_name{
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    letter-spacing: 2px;
}

.site_top .site_domain{
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: normal;
    opacity: 0.95;
    gap: 4px;
}
.site_top .domain_icon{
    opacity: 0.85;
    flex-shrink: 0;
}
.site_top .domain_url{
    display: inline-block;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.45);
    padding: 1px 10px;
    border-radius: 12px;
    margin-left: 2px;
    font-weight: bold;
    transition: background-color 0.15s ease;
}
.site_top a:hover .domain_url{
    background: rgba(255, 255, 255, 0.35);
}

.movie_list a, .movie_list a:hover, .movie_list a:active{
    color: #181818;
}

.movie_list ul{
    list-style-type: none;
    margin: 0;
    padding: 0;
    border-top: dotted 1px #c7cfcf;
}

.movie_list li{
    padding: 12px 0;
    border-bottom: dotted 1px #c7cfcf;
}

.movie_list .date{
    margin-right: 6px;
}

.date {
    color: #7a7a7a;
}

.page_nav{
    margin: 10px 0;
}
a.page-link,a.page-link:hover,a.page-link:active{
    color: #515151;
}

.movie_preview {
    margin-bottom: 20px;
}

.movie_preview .capture-col {
    width: 100%;
}
.movie_preview .capture-col img {
    width: 100%;
    height: auto;
    display: block;
}
.movie_preview p {
    color: #7a7a7a;
}

.movie_info p {
    line-height: 1.5;
    margin-bottom: 0.15rem;
}

.movie_info h3 {
    margin: 10px 0 20px;
}

.center{
    text-align: center;
}

.clearfix{
    clear: both;
}

.footer{
    line-height: 30px;
    text-align: center;
    background: #333;
    padding: 8px 10px 6px;
    color: #aaa;
    margin-top: 40px;
}

.footer a{
    color: #aaa;
}

.footer .friend_links{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px 8px;
    max-width: 900px;
    margin: 0 auto 4px;
    padding: 0;
}

.footer .friend_link_item{
    display: inline-block;
    padding: 2px 14px;
    line-height: 17px;
    font-size: 13px;
    color: #bbb;
    background: #3f3f3f;
    border: 1px solid #555;
    border-radius: 14px;
    white-space: nowrap;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.footer .friend_link_item:hover,
.footer .friend_link_item:focus{
    color: #fff;
    background: rgba(222, 115, 130, 0.25);
    border-color: #de7382;
}

.footer .footer_contact{
    margin: 0;
}
.footer .footer_contact a{
    color: #aaa;
    transition: color 0.15s ease;
}
.footer .footer_contact a:hover,
.footer .footer_contact a:focus{
    color: #de7382;
}

.nav_bar{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 12px 0;
}

.nav_cats{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.nav_cats .nav_item{
    display: inline-block;
    padding: 5px 16px;
    border-radius: 16px;
    background-color: #f2f2f2;
    color: #444;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.nav_cats .nav_item:hover,
.nav_cats .nav_item:focus{
    color: #de7382;
    background-color: #fdeef1;
}
.nav_cats .nav_item.active{
    color: #fff;
    background-color: #de7382;
    font-weight: bold;
}
.nav_cats .nav_item.active:hover,
.nav_cats .nav_item.active:focus{
    color: #fff;
    background-color: #c95d6d;
}

.search_box{
    display: flex;
    align-items: stretch;
    margin: 0;
}
.search_box .search_input{
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    height: auto;
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 16px 0 0 16px;
    box-shadow: none;
}
.search_box .search_btn{
    flex: 0 0 auto;
    padding: 6px 18px;
    margin: 0;
    border-radius: 0 16px 16px 0;
    border: 1px solid #de7382;
}

.btn-secondary{
    background-color: #de7382;
    border-color: #de7382;
    color: #fff;
    border-radius: 15px;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn-secondary:hover,
.btn-secondary:focus{
    background-color: #c95d6d;
    border-color: #c95d6d;
    color: #fff;
}
.form-control:focus{
    border-color: #de7382;
    box-shadow: 0 0 0 0.2rem rgba(222, 115, 130, 0.25);
}

.page-item.active .page-link{
    background-color: #de7382;
    border-color: #de7382;
    color: #fff;
}
.page-link:hover{
    color: #c95d6d;
}

.section_title{
    margin: 10px 10px 6px;
    padding-left: 8px;
    border-left: 4px solid #de7382;
    font-size: 18px;
    font-weight: bold;
}
.section_title a{
    color: #181818;
}
.section_title a:hover{
    color: #de7382;
}

.page_nav .pagination{
    justify-content: center;
    flex-wrap: wrap;
    /* 分页换行成多行时，行与行之间保留上下间距 */
    row-gap: 8px;
}

@media (max-width: 500px) {
    .only_pc{
        display: none !important;
    }

    /* 移动端：导航上方留出更多间距，搜索框下方留出更多间距 */
    .nav_bar{
        margin: 16px 0 18px;
        gap: 8px 0;
    }
    .nav_cats{
        gap: 3px;
    }
    .nav_cats .nav_item{
        padding: 7px 14px;
        font-size: 16px;
        line-height: 1.6;
    }
    .search_box{
        width: 100%;
        order: 2;
    }
    /* 移动端：增大搜索框高度 */
    .search_box .search_input{
        padding: 9px 10px;
        font-size: 15px;
    }
    .search_box .search_btn{
        padding: 9px 14px;
        font-size: 15px;
    }

    /* 移动端：友链区域间距收紧 */
    .footer{
        margin-top: 24px;
        padding: 6px 6px 4px;
    }
    .footer .friend_links{
        gap: 12px 5px;
        margin-bottom: 2px;
    }
    .footer .friend_link_item{
        padding: 2px 10px;
        font-size: 12px;
        line-height: 16px;
    }
}
@media (min-width: 501px) {
    .only_mobile{
        display: none !important;
    }
}

.wrapper {position: relative;}
#input {position: absolute;top: 0;left: 0;opacity: 0;z-index: -10;}

.hf-img {

    height: 80px;
}
@media (max-width: 767.98px) {
    .hf-img {
        height: 60px;
    }
}

.dp-container {
    display: none;
}

.dp-link {
    display: none;
}
@media (max-width: 767.98px) {
    .dp-container {
        display: block;
    }
    .dp-link {
        width: 100%;
        text-align: center;
    }
}

/* 底飘广告占位: 移动端底飘为 fixed 定位, 显示时由 JS 撑起等高占位避免遮挡 footer */
#bottom_float_spacer {
    display: none;
    width: 100%;
}

#icon-container{display:grid;grid-template-columns:repeat(5,1fr);gap:5px;padding:5px 10px}
/* 图标广告区域与上方截图、下方下载卡片的视觉间距保持一致 */
#icon-wrapper{margin-bottom:20px}
#icon-container a{display:block}
#icon-container a:hover{opacity:.7}
#icon-container img{display:block;width:100%;height:auto;border-radius:6px}
@media (max-width:767px){#icon-container{padding:3px}}
@media (min-width:768px){#icon-container{grid-template-columns:repeat(10,1fr)}}

/* 上一篇/下一篇（仿 dashen 模板，配色适配 mf 粉色主题） */
.pagination-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.pagination-nav .nav-item {
    flex: 1;
    min-width: 0;
}

.prev-next-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px 16px;
    background-color: #ffffff;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    text-decoration: none;
    color: #181818;
    transition: all 0.2s ease;
    height: 100%;
    min-height: 80px;
}

.prev-next-link:hover {
    background-color: #fdf5f6;
    border-color: #de7382;
    box-shadow: 0 2px 8px rgba(222, 115, 130, 0.2);
    color: #d06070;
}

.prev-next-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #ffffff;
}

.prev-next-link .nav-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #7a7a7a;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.prev-next-link:hover .nav-label {
    color: #d06070;
}

.prev-next-link .nav-title {
    font-size: 0.95rem;
    color: #515151;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    max-width: 100%;
}

.prev-next-link:hover .nav-title {
    color: #181818;
}

@media (min-width: 768px) {
    .pagination-nav {
        flex-direction: row;
        gap: 16px;
    }

    .pagination-nav .nav-item {
        flex: 0 0 calc(50% - 8px);
        width: calc(50% - 8px);
        min-width: 0;
    }
}

