/* 泛站系统 - 通用样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    min-height: 100vh;
}

/* Header */
.site-header {
    border-bottom: 2px solid #e0e0e0;
    padding: 20px 0;
    margin-bottom: 30px;
}

.logo h1 {
    font-size: 28px;
    color: #2c3e50;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.logo a:hover {
    color: #3498db;
}

/* Content Page */
.content-page {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.main-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.content-header {
    margin-bottom: 20px;
}

.random-text {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 15px;
}

.main-content h2 {
    font-size: 32px;
    color: #2c3e50;
    margin: 20px 0;
    line-height: 1.4;
}

.main-content p {
    font-size: 16px;
    line-height: 1.8;
    margin: 15px 0;
    text-align: justify;
    color: #555;
}

/* Image Gallery */
.image-gallery {
    margin: 30px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.image-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.05);
}

/* Related Section */
.related-section {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.related-section h2 {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.related-link {
    display: block;
    padding: 12px 15px;
    margin: 10px 0;
    background: #fff;
    border-radius: 6px;
    color: #3498db;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.related-link:hover {
    background: #3498db;
    color: #fff;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

/* Footer */
.site-footer {
    margin-top: 50px;
    padding: 30px 0;
    border-top: 2px solid #e0e0e0;
    text-align: center;
}

.site-footer a {
    display: inline-block;
    margin: 5px 10px;
    color: #7f8c8d;
    text-decoration: none;
    font-size: 14px;
}

.site-footer a:hover {
    color: #3498db;
}

.site-footer p {
    margin-top: 20px;
    color: #95a5a6;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .main-content h2 {
        font-size: 24px;
    }
    
    .main-content p {
        font-size: 15px;
    }
    
    .image-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}
