/* 全局样式调整 */
body {
    background-color: #f4f4f4;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
}

/* 分区导航样式 */
.section-nav {
    max-width: 1400px;
    margin: 0 auto;
    margin-bottom: 16px;
    border-radius: 0;
    background: transparent;
    padding: 0;
    border-bottom: none;
}
.section-nav .nav-container {
    display: flex;
    justify-content: flex-start;
    gap: 4px;
    padding: 0;
    position: relative;
    background:#f4f4f4;
    border-radius: 6px;
    padding: 6px;
}
.section-nav .nav-container a {
    text-decoration: none;
    padding: 8px 16px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    height: 36px;
    margin: 0;
    position: relative;
    line-height: 36px;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    border-radius: 4px;
}
.section-nav a:hover {
    color: #237ffd;
    background: rgba(35, 127, 253, 0.08);
}
.section-nav a.active {
    color: #237ffd;
    background: #ffffff;
    font-weight: 700;
}

/* 分类板块样式 */
.category-nav {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 16px;
    padding: 14px 18px;
}
.category-group {
    margin-bottom: 10px;
    position: relative;
    font-size: 14px;
    padding: 8px;
    background: #fafbfc;
    border-radius: 4px;
}
.category-group:last-child {
    margin-bottom: 0;
}
.category-title {
    display: inline-block;
    position: absolute;
    left: 10px;
    top: 10px;
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}
.category-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}
.category-items a {
    font-size: 13px;
    color: #64748b;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 4px 12px;
    position: relative;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    margin: 4px 0;
}
.category-item:hover {
    color: #237ffd;
    border-color: #237ffd;
    background: #f0f6ff;
}
.category-item.active {
    color: #ffffff;
    background: #237ffd;
    border-color: #237ffd;
}

/* 板块链接样式 */
.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.category-link {
    font-size: 14px;
    color: #375569;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 5px 12px;
    position: relative;
    margin-bottom: 4px;
    border-radius: 4px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}
.category-link:hover {
    color: #237ffd;
    border-color: #237ffd;
    background: #f0f6ff;
}

/* 页脚样式 */
.footer {
    text-align: center;
    height: 36px;
    padding: 16px;
    line-height: 36px;
    color: #51657c;
    background: #d6d6d6;
    border-top: 1px solid #e5e7eb;
    font-size: 13px;
}

/* 电影海报网格样式 */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
    padding: 0 12px;
}

.movie-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.movie-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.movie-item:hover .movie-poster img {
    transform: scale(1.05);
}
.movie-poster::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}
.movie-poster::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    font-size: 22px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #237ffd;
    display: flex;
    align-items: center;
    justify-content: center;
}
.movie-item:hover .movie-poster::before {
    opacity: 1;
}
.movie-item:hover .movie-poster::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.movie-title:hover {
    color: #237ffd;
}
.movie-rating {
    font-size: 11px;
    color: #f59e0b;
    font-weight: 600;
    margin-top: 4px;
    display: inline-block;
}
.movie-author {
    margin-right: 8px;
    height: 18px;
    margin-top: 4px;
    line-height: 18px;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    color: #8b949e;
}
.movie-time {
    white-space: nowrap;
    color: #8b949e;
    font-size: 11px;
}

/* 分页导航样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 24px;
    margin-bottom: 32px;
    padding: 0 16px;
}
.pagination a {
    padding: 6px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    color: #64748b;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    background: #ffffff;
}
.pagination a:hover {
    border-color: #237ffd;
    color: #237ffd;
    background: #f0f6ff;
}
.pagination a.active {
    background: #237ffd;
    border-color: #237ffd;
    color: white;
}

/* 容器样式 */
.auto-wrap {
    max-width: 1480px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 6px;
	padding: 15px;
}

.bgimage {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 300px;
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    user-select: none;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}

/* 粒子动画效果 */
.bgimage .particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.bgimage .particles span {
    position: absolute;
    display: block;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
    animation: floatUp 18s linear infinite;
    bottom: -20px;
}

.bgimage .particles span:nth-child(1)  { left: 5%;   width: 6px;  height: 6px;  animation-duration: 14s; animation-delay: 0s; }
.bgimage .particles span:nth-child(2)  { left: 10%;  width: 4px;  height: 4px;  animation-duration: 17s; animation-delay: 2s; }
.bgimage .particles span:nth-child(3)  { left: 15%;  width: 10px; height: 10px; animation-duration: 12s; animation-delay: 4s; }
.bgimage .particles span:nth-child(4)  { left: 20%;  width: 5px;  height: 5px;  animation-duration: 15s; animation-delay: 1s; }
.bgimage .particles span:nth-child(5)  { left: 25%;  width: 7px;  height: 7px;  animation-duration: 14s; animation-delay: 3s; }
.bgimage .particles span:nth-child(6)  { left: 30%;  width: 3px;  height: 3px;  animation-duration: 18s; animation-delay: 5s; }
.bgimage .particles span:nth-child(7)  { left: 35%;  width: 9px;  height: 9px;  animation-duration: 13s; animation-delay: 2s; }
.bgimage .particles span:nth-child(8)  { left: 40%;  width: 6px;  height: 6px;  animation-duration: 16s; animation-delay: 6s; }
.bgimage .particles span:nth-child(9)  { left: 45%;  width: 4px;  height: 4px;  animation-duration: 17s; animation-delay: 1s; }
.bgimage .particles span:nth-child(10) { left: 50%;  width: 8px;  height: 8px;  animation-duration: 12s; animation-delay: 3s; }
.bgimage .particles span:nth-child(11) { left: 55%;  width: 5px;  height: 5px;  animation-duration: 15s; animation-delay: 7s; }
.bgimage .particles span:nth-child(12) { left: 60%;  width: 10px; height: 10px; animation-duration: 14s; animation-delay: 2s; }
.bgimage .particles span:nth-child(13) { left: 65%;  width: 6px;  height: 6px;  animation-duration: 17s; animation-delay: 4s; }
.bgimage .particles span:nth-child(14) { left: 70%;  width: 4px;  height: 4px;  animation-duration: 12s; animation-delay: 5s; }
.bgimage .particles span:nth-child(15) { left: 75%;  width: 7px;  height: 7px;  animation-duration: 14s; animation-delay: 1s; }
.bgimage .particles span:nth-child(16) { left: 80%;  width: 3px;  height: 3px;  animation-duration: 18s; animation-delay: 3s; }
.bgimage .particles span:nth-child(17) { left: 85%;  width: 9px;  height: 9px;  animation-duration: 13s; animation-delay: 6s; }
.bgimage .particles span:nth-child(18) { left: 90%;  width: 5px;  height: 5px;  animation-duration: 16s; animation-delay: 2s; }
.bgimage .particles span:nth-child(19) { left: 95%;  width: 8px;  height: 8px;  animation-duration: 12s; animation-delay: 4s; }
.bgimage .particles span:nth-child(20) { left: 100%; width: 6px;  height: 6px;  animation-duration: 17s; animation-delay: 7s; }

@keyframes floatUp {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    50% {
        transform: translateY(-150px) translateX(20px) scale(1.1);
        opacity: 0.6;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-320px) translateX(-15px) scale(0.6);
        opacity: 0;
    }
}

.bgimages {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 135px;
    background:#237ffd;
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    user-select: none;
    pointer-events: none;
    overflow: hidden;
}

/* 顶部导航栏 */
#xm-toptb {
    position: relative;
    z-index: 100;
	height: 60px;
}

.wrap-header {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.item-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.item-left .app-logo {
    display: flex;
    align-items: center;
}

.item-left a,#nv li a {
    color:#333 !important;
    font-size: 13px;
}

.item-left a:hover {
    color: #ffffff !important;
}
#nv li{
	background: #ffffff00!important;
}
#nv li a:hover{background: #004fa000;}
#nv a:hover {
    color: #333 !important;
}
#nv li.a a {
    color: #666 !important;
}
#nv li:first-child a {
    /* 左侧半圆效果 */
    position: relative;
    border-radius: 50px 0 0 50px;
    /* 或者使用伪元素 */
}

#nv li:last-child a {
    /* 右侧半圆效果 */
    position: relative;
    border-radius: 0 50px 50px 0;
}
.item-left .app-logo img {
    height: 36px;
    width: auto;
}

.item-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.item-right .btn {
    padding: 6px 14px;
    transition: all 0.3s ease;
}

.item-right .btn-primary {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.item-right .btn-primary a {
    line-height: 1.5;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    display: block;
    transition: all 0.3s ease;
}

.item-right .btn-primary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
}

.item-right .btn-text a {
    font-size: 13px;
    transition: color 0.3s ease;
}
.wrap-header .btn-text a{color:#1d1d1d!important;}
.item-right .btn-text:hover a {
    color:#2870ff!important;
}

.loginbtn {
    padding: 6px 14px;
}

.loginbtn a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    transition: color 0.3s ease;
}

.loginbtn a:hover {
    color: #767676;
}

.app-head {
    width: 34px;
    height: 34px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.icon-num {
    background: #f59e0b;
    color: #fff;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 8px;
    position: absolute;
    top: 6px;
    right: 6px;
    font-weight: 600;
}

/* 头部内容区域 */
.header-content {
    position: relative;
    height: 145px;
    display: flex;
    align-items: center;
    padding: 0 36px;
    max-width: 1400px;
    margin: 0 auto;
}

.header-left {
    position: absolute;
    left: 36px;
    z-index: 10;
}

.header-title {
    margin: 0 0 6px 0;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
}

.header-email {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

#menu-search {
    position: relative;
    z-index: 10;
    margin-right: 14px;
}

/* 发布按钮 */
.publish-movie-btn {
    position: relative;
    z-index: 10;
    display: inline-block;
    padding: 4px 10px;
    background: #2870ff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 13px;
    margin-left: 12px;
    transition: all 0.3s ease;
    border: none;
}

/* 主内容容器 */
.xm-wp {
    max-width: 1400px !important;
	    border-radius: 20px 20px 0 0;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

@media (max-width: 992px) {
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .section-nav .nav-container {
        gap: 12px;
    }
    
    .section-nav a {
        font-size: 14px;
        padding: 8px 12px;
    }
}

@media (max-width: 768px) {
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .category-items {
        gap: 6px;
    }
    
    .category-item {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    .header-content {
        padding: 0 18px;
    }
    
    .header-left {
        left: 18px;
    }
}