/** portal::index **/

/* 门户首页特定样式 */

/* 重置和基础样式 */
.nl-hero,
.nl-sections,
.nl-sidebar-top,
.nl-sidebar-bottom,
.nl-events {
    width: 100%;
}

.nl-hero {
    margin-bottom: 25px;
}

/* 板块通用样式 */
.section {
    background: rgba(30, 30, 46, 0.9);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 64, 129, 0.3);
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #ff4081;
    font-size: 24px;
}

.section-more {
    font-size: 14px;
    color: #aaa;
    padding: 8px 15px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.section-more:hover {
    background: rgba(255, 64, 129, 0.2);
    color: #ff4081;
    transform: translateX(5px);
}

.section-more i {
    font-size: 12px;
}

/* 徽章样式 */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 8px;
    vertical-align: middle;
}

.badge-hot {
    background: linear-gradient(135deg, #ff4081, #ff6b9d);
    color: white;
    animation: pulse 2s infinite;
}

.badge-new {
    background: linear-gradient(135deg, #00e5ff, #00bcd4);
    color: white;
}

.badge-popular {
    background: linear-gradient(135deg, #ffc107, #ffb300);
    color: white;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.slider {
    position: relative;
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.slide-content h3 {
    font-size: 26px;
    margin-bottom: 10px;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 16px;
    max-width: 70%;
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #ff4081;
    transform: scale(1.2);
}

.quick-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.nav-card {
    background: rgba(30, 30, 46, 0.9);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
    border-color: #ff4081;
}

.nav-icon {
    font-size: 32px;
    margin-bottom: 15px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff4081, #7c4dff);
    color: white;
}

.nav-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.nav-card p {
    font-size: 14px;
    color: #aaa;
}

/* 热门帖子列表 */
.thread-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.thread-item {
    display: flex;
    align-items: center;
    padding: 20px;
    margin-bottom: 15px;
    background: rgba(40, 40, 60, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.thread-item:hover {
    background: rgba(50, 50, 70, 0.7);
    border-color: rgba(255, 64, 129, 0.5);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.thread-item:last-child {
    margin-bottom: 0;
}

.thread-icon {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    background: linear-gradient(135deg, #7c4dff, #536dfe);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    flex-shrink: 0;
    font-size: 22px;
    color: white;
    box-shadow: 0 4px 12px rgba(124, 77, 255, 0.4);
}

.thread-content {
    flex: 1;
    min-width: 0;
}

.thread-title {
    font-size: 17px;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}

.thread-title:hover {
    color: #ff4081;
}

.thread-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #999;
}

.thread-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.thread-meta i {
    font-size: 12px;
    color: #aaa;
}

.thread-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 5px;
    min-width: 80px;
    flex-shrink: 0;
    text-align: right;
}

.thread-replies {
    font-size: 22px;
    color: #ff4081;
    font-weight: bold;
    line-height: 1;
}

.thread-replies::after {
    content: ' 回复';
    font-size: 11px;
    color: #aaa;
    font-weight: normal;
    margin-left: 3px;
}

.thread-views {
    font-size: 13px;
    color: #999;
}

.city-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.city-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.city-btn.active,
.city-btn:hover {
    background: linear-gradient(135deg, #ff4081, #7c4dff);
    color: white;
}

/* 城市夜生活卡片网格 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.card {
    background: rgba(30, 30, 46, 0.8);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 64, 129, 0.6);
}

.card:hover .card-img {
    transform: scale(1.05);
}

.card-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s ease;
}

.card-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ff4081, #ff6b9d);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(255, 64, 129, 0.4);
}

.card-content {
    padding: 22px;
    background: rgba(20, 20, 30, 0.6);
}

.card-title {
    font-size: 16px;
    margin-bottom: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-title:hover {
    color: #ff4081;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #999;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-meta i {
    color: #7c4dff;
    font-size: 14px;
}

/* 精彩视频展示 */
.video-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.video-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 220px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 64, 129, 0.5);
}

.video-item:hover .video-thumb {
    transform: scale(1.1);
}

.video-item:hover .video-play {
    background: rgba(255, 64, 129, 1);
    transform: translate(-50%, -50%) scale(1.15);
}

.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 18px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
    z-index: 1;
}

.video-title {
    font-size: 16px;
    margin-bottom: 6px;
    font-weight: 600;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    font-size: 13px;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-meta i {
    color: #ff4081;
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 64, 129, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 24px;
    color: white;
    z-index: 2;
    box-shadow: 0 6px 20px rgba(255, 64, 129, 0.5);
}

.video-play i {
    color: white;
}

.sidebar-widget {
    background: rgba(30, 30, 46, 0.9);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.widget-title {
    font-size: 18px;
    color: #7c4dff;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-info-panel {
    line-height: 1.8;
}

.hot-topics li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hot-topics li:last-child {
    border-bottom: none;
}

.hot-topics li i {
    color: #ff4081;
}

.user-rank {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.user-rank:hover {
    background: rgba(255, 255, 255, 0.05);
}

.user-rank:last-child {
    margin-bottom: 0;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4081, #7c4dff);
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 18px;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 15px;
    font-weight: 600;
}

.user-level {
    font-size: 12px;
    color: #ff4081;
}

.user-points {
    font-size: 15px;
    font-weight: bold;
    color: #ffc107;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 6px 12px;
    background: rgba(124, 77, 255, 0.2);
    border-radius: 15px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(124, 77, 255, 0.4);
    transform: translateY(-2px);
}

.forum-stats p {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.forum-stats p:last-child {
    border-bottom: none;
}

.forum-stats i {
    color: #ff4081;
    margin-right: 8px;
}

/* 动画延迟类 */
.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* 响应式布局 */
@media (max-width: 1200px) {
    .section {
        padding: 20px;
    }
    
    .section-title {
        font-size: 20px;
    }
}

@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }
    
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .quick-nav {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .slider {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 18px;
        margin-bottom: 20px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .video-showcase {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .quick-nav {
        grid-template-columns: 1fr;
    }
    
    .slider {
        height: 240px;
    }
    
    .slide-content h3 {
        font-size: 20px;
    }
    
    .slide-content p {
        font-size: 14px;
        max-width: 90%;
    }
    
    .thread-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }
    
    .thread-icon {
        margin-bottom: 12px;
    }
    
    .thread-stats {
        align-items: flex-start;
        margin-top: 10px;
        width: 100%;
    }
    
    .city-nav {
        gap: 8px;
    }
    
    .city-btn {
        font-size: 13px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 15px;
    }
    
    .card-img {
        height: 150px;
    }
    
    .video-item {
        height: 180px;
    }
    
    .video-play {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
}

/** end **/
