/* style.css - 传奇开服网样式表 */

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
body {
    font-family: 'Noto Sans SC', sans-serif;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: #e2e8f0;
    line-height: 1.6;
    min-height: 100vh;
}

/* 容器样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 渐变背景 */
.hero-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 卡片悬停效果 */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 新闻项样式 */
.news-item {
    border-left: 3px solid #4299e1;
    transition: all 0.3s ease;
}

.news-item:hover {
    background: rgba(66, 153, 225, 0.1);
}

/* 服务器状态动画 */
.server-status {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* 倒计时样式 */
.countdown {
    font-family: 'Courier New', monospace;
}

/* 开服表格样式 */
.server-table {
    background: rgba(45, 55, 72, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.table-header {
    background: rgba(30, 41, 59, 0.9);
}

.table-row {
    transition: all 0.2s ease;
}

.table-row:hover {
    background: rgba(66, 153, 225, 0.1);
}

/* 状态徽章 */
.status-badge {
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-hot {
    background: rgba(245, 101, 101, 0.2);
    color: #f56565;
    border: 1px solid rgba(245, 101, 101, 0.4);
}

.status-new {
    background: rgba(159, 122, 234, 0.2);
    color: #9f7aea;
    border: 1px solid rgba(159, 122, 234, 0.4);
}

.status-recommend {
    background: rgba(72, 187, 120, 0.2);
    color: #48bb78;
    border: 1px solid rgba(72, 187, 120, 0.4);
}

/* 筛选按钮 */
.filter-btn {
    transition: all 0.2s ease;
}

.filter-btn.active {
    background: #4299e1;
    color: white;
}

/* 新闻卡片 */
.news-card {
    background: rgba(45, 55, 72, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: rgba(66, 153, 225, 0.5);
}

/* 新闻标签 */
.news-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 8px;
}

.tag-hot {
    background: rgba(245, 101, 101, 0.2);
    color: #f56565;
}

.tag-update {
    background: rgba(72, 187, 120, 0.2);
    color: #48bb78;
}

.tag-activity {
    background: rgba(159, 122, 234, 0.2);
    color: #9f7aea;
}

.tag-strategy {
    background: rgba(66, 153, 225, 0.2);
    color: #4299e1;
}

/* 新闻图片 */
.news-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.news-content {
    padding: 20px;
}

.news-meta {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    background: rgba(30, 41, 59, 0.5);
}

/* 头部导航 */
.header-nav {
    background-color: #1a202c;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 50;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: #4299e1;
    color: white;
}

.btn-primary:hover {
    background-color: #3182ce;
}

.btn-success {
    background-color: #48bb78;
    color: white;
}

.btn-success:hover {
    background-color: #38a169;
}

.btn-warning {
    background-color: #ed8936;
    color: white;
}

.btn-warning:hover {
    background-color: #dd6b20;
}

.btn-danger {
    background-color: #f56565;
    color: white;
}

.btn-danger:hover {
    background-color: #e53e3e;
}

/* 统计卡片 */
.stats-card {
    background-color: #2d3748;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
}

/* 响应式表格 */
@media (max-width: 1024px) {
    .table-container {
        overflow-x: auto;
    }
    
    .server-table {
        min-width: 1000px;
    }
}

/* 移动设备优化 */
@media (max-width: 768px) {
    .header-nav .nav-links {
        display: none;
    }
    
    .hero-section h2 {
        font-size: 1.875rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .server-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* 桌面设备优化 */
@media (min-width: 769px) and (max-width: 1024px) {
    .server-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* 大屏幕设备优化 */
@media (min-width: 1025px) {
    .server-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

/* 工具类 */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.ml-auto {
    margin-left: auto;
}

.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-4 { margin-right: 1rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }

.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

/* 颜色类 */
.text-white { color: #ffffff; }
.text-gray-100 { color: #f7fafc; }
.text-gray-200 { color: #edf2f7; }
.text-gray-300 { color: #e2e8f0; }
.text-gray-400 { color: #cbd5e0; }
.text-gray-500 { color: #a0aec0; }
.text-gray-600 { color: #718096; }
.text-gray-700 { color: #4a5568; }
.text-gray-800 { color: #2d3748; }
.text-gray-900 { color: #1a202c; }

.text-blue-400 { color: #63b3ed; }
.text-blue-500 { color: #4299e1; }
.text-blue-600 { color: #3182ce; }

.text-green-400 { color: #68d391; }
.text-green-500 { color: #48bb78; }
.text-green-600 { color: #38a169; }

.text-red-400 { color: #fc8181; }
.text-red-500 { color: #f56565; }
.text-red-600 { color: #e53e3e; }

.text-yellow-400 { color: #f6e05e; }
.text-yellow-500 { color: #ecc94b; }
.text-yellow-600 { color: #d69e2e; }

.text-purple-400 { color: #b794f4; }
.text-purple-500 { color: #9f7aea; }
.text-purple-600 { color: #805ad5; }

.bg-white { background-color: #ffffff; }
.bg-gray-100 { background-color: #f7fafc; }
.bg-gray-200 { background-color: #edf2f7; }
.bg-gray-300 { background-color: #e2e8f0; }
.bg-gray-400 { background-color: #cbd5e0; }
.bg-gray-500 { background-color: #a0aec0; }
.bg-gray-600 { background-color: #718096; }
.bg-gray-700 { background-color: #4a5568; }
.bg-gray-800 { background-color: #2d3748; }
.bg-gray-900 { background-color: #1a202c; }

.bg-blue-400 { background-color: #63b3ed; }
.bg-blue-500 { background-color: #4299e1; }
.bg-blue-600 { background-color: #3182ce; }

.bg-green-400 { background-color: #68d391; }
.bg-green-500 { background-color: #48bb78; }
.bg-green-600 { background-color: #38a169; }

.bg-red-400 { background-color: #fc8181; }
.bg-red-500 { background-color: #f56565; }
.bg-red-600 { background-color: #e53e3e; }

.bg-yellow-400 { background-color: #f6e05e; }
.bg-yellow-500 { background-color: #ecc94b; }
.bg-yellow-600 { background-color: #d69e2e; }

.bg-purple-400 { background-color: #b794f4; }
.bg-purple-500 { background-color: #9f7aea; }
.bg-purple-600 { background-color: #805ad5; }

/* 字体大小 */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }

/* 字体粗细 */
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* 显示类 */
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }

/* 弹性布局 */
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

/* 网格布局 */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

/* 列跨度 */
.col-span-1 { grid-column: span 1 / span 1; }
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-3 { grid-column: span 3 / span 3; }
.col-span-4 { grid-column: span 4 / span 4; }
.col-span-6 { grid-column: span 6 / span 6; }

/* 间距 */
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-x-8 > * + * { margin-left: 2rem; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* 特殊效果 */
.border-l-4 { border-left-width: 4px; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }

.border-red-500 { border-color: #f56565; }
.border-blue-500 { border-color: #4299e1; }
.border-purple-500 { border-color: #9f7aea; }
.border-green-500 { border-color: #48bb78; }
.border-yellow-400 { border-color: #f6e05e; }
.border-gray-700 { border-color: #4a5568; }

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a202c;
}

::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #718096;
}

/* 选择文本样式 */
::selection {
    background-color: #4299e1;
    color: white;
}