/* 神话三国首页样式 */

.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: #1e293b;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.slider-prev { left: 20px; }
.slider-next { right: 20px; }

.slider-prev:hover, .slider-next:hover {
    background: rgba(0,0,0,0.8);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: white;
}

.home-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.section-title {
    margin: 0 0 20px 0;
    font-size: 22px;
    color: #1e293b;
    border-left: 4px solid #3b82f6;
    padding-left: 12px;
}

.recent-games-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.game-item {
    width: 120px;
    border: 2px solid #f59e0b;
    border-radius: 8px;
    padding: 12px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    transition: all 0.3s;
    text-align: center;
}

.game-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245,158,11,0.3);
}

.content-row {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.server-table {
    width: 100%;
    border-collapse: collapse;
}

.server-table th {
    padding: 12px 15px;
    text-align: left;
    color: #475569;
    font-weight: 600;
    font-size: 14px;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.server-table td {
    padding: 12px 15px;
    color: #1e293b;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s;
}

.server-table tr:hover td {
    background: #f8fafc;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.btn-enter {
    padding: 8px 18px;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-enter.new {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.btn-enter.merged {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.btn-enter.retro {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.btn-enter:hover {
    transform: scale(1.05);
}

.article-list a {
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    padding: 10px 0;
    transition: all 0.3s;
    display: block;
}

.article-list a:hover {
    padding-left: 6px;
}

.moment-card {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.moment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(139,92,246,0.3);
}

.moment-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px 15px 15px;
    color: white;
}

.preview-hint {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(139,92,246,0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s;
}

.moment-card:hover .preview-hint {
    opacity: 1;
}

/* 公告轮播样式 */
.notice-carousel {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    padding: 12px 0;
    border-bottom: 1px solid #fed7aa;
    overflow: hidden;
}

.notice-carousel .notice-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

.notice-carousel .notice-track {
    display: flex;
    animation: noticeScroll 20s linear infinite;
}

.notice-carousel .notice-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 40px;
    white-space: nowrap;
    min-width: 100%;
    box-sizing: border-box;
}

.notice-carousel .notice-title {
    color: #dc2626;
    font-weight: bold;
    font-size: 14px;
}

.notice-carousel .notice-content {
    color: #1e293b;
    font-size: 14px;
    flex: 1;
}

.notice-carousel .notice-link {
    color: #3b82f6;
    font-size: 13px;
    text-decoration: none;
    font-weight: 600;
}

.notice-carousel .notice-link:hover {
    text-decoration: underline;
}

@keyframes noticeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* 弹窗公告样式 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.popup-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.3s;
    z-index: 10;
}

.popup-close:hover {
    background: #ef4444;
    color: white;
}

.popup-header {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    padding: 25px;
    border-radius: 16px 16px 0 0;
    text-align: center;
}

.popup-header h3 {
    margin: 0;
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.popup-body {
    padding: 25px;
    color: #374151;
    font-size: 15px;
    line-height: 1.8;
}

.popup-footer {
    padding: 15px 25px 25px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.popup-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.popup-btn:hover {
    transform: scale(1.05);
}

.popup-btn-close {
    padding: 12px 30px;
    background: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.popup-btn-close:hover {
    background: #e5e7eb;
}

/* 最新文章滚动条样式 */
.latest-news-marquee {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 12px 0;
    border-bottom: 1px solid #bfdbfe;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.marquee-label {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 8px 20px;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
    margin-left: 20px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(59,130,246,0.3);
}

.marquee-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    margin-left: 20px;
}

.marquee-track {
    display: flex;
    animation: marqueeScroll 30s linear infinite;
    white-space: nowrap;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 30px;
    white-space: nowrap;
    font-size: 14px;
}

.marquee-item a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.marquee-item a:hover {
    transform: scale(1.05);
}

.marquee-item a:hover .news-title {
    color: #3b82f6;
    text-decoration: underline;
}

.news-badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
    color: white;
}

.news-badge.official {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.news-badge.player {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.news-title {
    color: #1e293b;
    font-weight: 500;
}

.news-author {
    color: #64748b;
    font-size: 12px;
}

.news-time {
    color: #94a3b8;
    font-size: 12px;
}

.news-category {
    color: #3b82f6;
    font-size: 12px;
    padding: 2px 6px;
    background: rgba(59,130,246,0.1);
    border-radius: 8px;
}

@keyframes marqueeScroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
