/**
 * 服务器规则页面专用样式
 * 为规则展示、分类卡片等元素提供专门的样式
 */

/* 规则介绍区域 */
.rules-intro {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(247, 147, 30, 0.05));
    padding: 4rem 0;
}

.rules-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.rules-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.rules-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.rules-card h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.rules-card > p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.rules-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.highlight-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 53, 0.2);
    transition: all 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 107, 53, 0.15);
    border-color: var(--primary-color);
}

.highlight-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.highlight-item h3 {
    font-family: 'Orbitron', monospace;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.highlight-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 规则分类区域 */
.rules-categories {
    background: var(--dark-bg);
    padding: 4rem 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.category-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
    border-color: var(--primary-color);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.category-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.category-card > p {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.category-card ul {
    list-style: none;
    padding: 0;
}

.category-card li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.4;
    font-size: 0.9rem;
}

.category-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* 违规处理区域 */
.violation-handling {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(247, 147, 30, 0.05));
    padding: 4rem 0;
}

.violation-levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.level-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.level-card.warning::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.level-card.kick::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.level-card.ban::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dc2626, #ef4444);
}

.level-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.level-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.level-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.level-card.warning h3 {
    color: #f59e0b;
}

.level-card.kick h3 {
    color: #ef4444;
}

.level-card.ban h3 {
    color: #dc2626;
}

.level-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.level-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.level-card li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.4;
    font-size: 0.9rem;
}

.level-card.warning li::before {
    content: '⚠';
    position: absolute;
    left: 0;
    color: #f59e0b;
}

.level-card.kick li::before {
    content: '👢';
    position: absolute;
    left: 0;
    color: #ef4444;
}

.level-card.ban li::before {
    content: '🚫';
    position: absolute;
    left: 0;
    color: #dc2626;
}

/* 查看规则区域 */
.view-rules {
    background: var(--darker-bg);
    padding: 4rem 0;
}

.rules-action-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.rules-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.action-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.rules-action-card h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.rules-action-card > p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.action-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.action-buttons .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.rules-note {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.note-icon {
    font-size: 1.5rem;
    color: #3b82f6;
    flex-shrink: 0;
}

.rules-note p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.rules-note strong {
    color: #3b82f6;
}

/* 规则更新日志 */
.rules-updates {
    background: var(--dark-bg);
    padding: 4rem 0;
}

.updates-timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto 0;
}

.updates-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

.update-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.update-item:nth-child(odd) {
    flex-direction: row;
}

.update-item:nth-child(even) {
    flex-direction: row-reverse;
}

.update-date {
    background: var(--gradient-primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-glow);
}

.update-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 0 2rem;
    backdrop-filter: blur(10px);
    flex: 1;
    position: relative;
}

.update-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border: 10px solid transparent;
}

.update-item:nth-child(odd) .update-content::before {
    right: -20px;
    border-left-color: var(--border-color);
    transform: translateY(-50%);
}

.update-item:nth-child(even) .update-content::before {
    left: -20px;
    border-right-color: var(--border-color);
    transform: translateY(-50%);
}

.update-content h3 {
    font-family: 'Orbitron', monospace;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.update-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .rules-card,
    .rules-action-card {
        padding: 2rem;
    }
    
    .rules-card h2,
    .rules-action-card h2 {
        font-size: 2rem;
    }
    
    .rules-highlights {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .violation-levels {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-buttons .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .rules-note {
        flex-direction: column;
        text-align: center;
    }
    
    .updates-timeline::before {
        left: 20px;
    }
    
    .update-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 3rem;
    }
    
    .update-date {
        margin-bottom: 1rem;
        align-self: flex-start;
    }
    
    .update-content {
        margin: 0;
        width: 100%;
    }
    
    .update-content::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .rules-card,
    .rules-action-card {
        padding: 1.5rem;
    }
    
    .rules-card h2,
    .rules-action-card h2 {
        font-size: 1.8rem;
    }
    
    .category-card,
    .level-card {
        padding: 1.5rem;
    }
    
    .action-buttons .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .update-item {
        padding-left: 2rem;
    }
}

/* 动画效果 */
.rules-card,
.category-card,
.level-card,
.rules-action-card {
    animation: fadeInUp 0.6s ease-out;
}

.rules-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }
.category-card:nth-child(5) { animation-delay: 0.5s; }
.category-card:nth-child(6) { animation-delay: 0.6s; }

.level-card:nth-child(1) { animation-delay: 0.1s; }
.level-card:nth-child(2) { animation-delay: 0.2s; }
.level-card:nth-child(3) { animation-delay: 0.3s; }

.update-item {
    animation: fadeInLeft 0.6s ease-out;
}

.update-item:nth-child(1) { animation-delay: 0.1s; }
.update-item:nth-child(2) { animation-delay: 0.2s; }
.update-item:nth-child(3) { animation-delay: 0.3s; }

/* 悬停效果增强 */
.category-card:hover .category-icon,
.level-card:hover .level-icon {
    animation: pulse 1s infinite;
}

.highlight-item:hover .highlight-icon {
    animation: float 2s ease-in-out infinite;
}
