/* Vultr VPS Guide - 主样式表 */

:root {
    --primary-color: #007bfc;
    --secondary-color: #1a1a2e;
    --accent-color: #00d4aa;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f8f9fa;
    --card-bg: #fff;
    --border-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航 */
header {
    background: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-color);
}

.btn-primary {
    background: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
}

/* 主要内容 */
main {
    min-height: calc(100vh - 200px);
}

/* 文章样式 */
.blog-post {
    padding: 3rem 0;
}

.post-header {
    text-align: center;
    margin-bottom: 3rem;
}

.tag {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--secondary-color);
}

.meta {
    color: var(--text-light);
    font-size: 0.9rem;
}

.meta span {
    margin-left: 1rem;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.lead {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.post-content h2 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1rem;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.post-content h3 {
    font-size: 1.3rem;
    margin: 2rem 0 1rem;
    color: var(--secondary-color);
}

.post-content p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

.post-content ul {
    margin: 1rem 0 1.5rem 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.post-content a:hover {
    text-decoration: underline;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--secondary-color);
    color: white;
    font-weight: 600;
}

tr:hover {
    background: #f5f5f5;
}

/* 代码块 */
pre {
    background: #f4f4f4;
    padding: 1.5rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* CTA盒子 */
.cta-box {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin: 3rem 0;
}

.cta-box h3 {
    color: white;
    margin-bottom: 1rem;
}

.cta-box p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.btn-cta {
    display: inline-block;
    background: var(--accent-color);
    color: white !important;
    padding: 1rem 2.5rem;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s;
}

.btn-cta:hover {
    transform: translateY(-2px);
    text-decoration: none !important;
}

/* 相关文章 */
.related-posts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.related-posts h3 {
    margin-bottom: 1rem;
}

.related-posts ul {
    list-style: none;
    margin-left: 0;
}

.related-posts li {
    margin-bottom: 0.8rem;
}

/* 页脚 */
footer {
    background: var(--secondary-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

footer a {
    color: var(--accent-color);
}

/* 响应式 */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    .post-header h1 {
        font-size: 1.8rem;
    }
    
    .post-content {
        padding: 1.5rem;
    }
    
    table {
        font-size: 0.85rem;
    }
    
    th, td {
        padding: 0.5rem;
    }
}
