/* 996引擎Lua脚本技术博客样式表 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #2c3e50;
    padding: 2rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.site-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.nav a {
    color: #2c3e50;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav a:hover,
.nav a.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-2px);
}

/* 主要内容区域 */
.main {
    min-height: calc(100vh - 300px);
    padding: 3rem 0;
}

.welcome-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.welcome-section h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2.2rem;
    font-weight: 600;
}

.welcome-section p {
    font-size: 1.1rem;
    color: #5a6c7d;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.feature-box {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.feature-box h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.feature-box p {
    color: #5a6c7d;
    line-height: 1.6;
}

/* 文章相关样式 */
.recent-articles {
    margin-bottom: 3rem;
}

.recent-articles h2 {
    text-align: center;
    color: white;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.article-list {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.article-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.article-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.article-item h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.article-item h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.article-item h3 a:hover {
    color: #667eea;
}

.article-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ecf0f1;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* 技术资源样式 */
.tech-resources {
    margin-bottom: 3rem;
}

.tech-resources h2 {
    text-align: center;
    color: white;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.resource-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.resource-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.resource-item:hover {
    transform: translateY(-5px);
}

.resource-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.resource-item p {
    color: #5a6c7d;
    line-height: 1.6;
}

/* 文章详情页样式 */
.article-detail {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.article-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #ecf0f1;
    padding-bottom: 2rem;
}

.article-header h1 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.article-meta-large {
    color: #7f8c8d;
    font-size: 1rem;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content h2 {
    color: #2c3e50;
    margin: 2rem 0 1rem;
    border-left: 4px solid #667eea;
    padding-left: 1rem;
    font-size: 1.6rem;
}

.article-content h3 {
    color: #34495e;
    margin: 1.5rem 0 0.5rem;
    font-size: 1.3rem;
}

.article-content p {
    margin-bottom: 1rem;
    text-align: justify;
    color: #5a6c7d;
}

.article-content ul,
.article-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    color: #5a6c7d;
}

.article-content strong {
    color: #2c3e50;
}

/* 页脚样式 */
.footer {
    background: rgba(44, 62, 80, 0.95);
    color: white;
    padding: 3rem 0 1rem;
    backdrop-filter: blur(10px);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #ecf0f1;
    font-size: 1.2rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
    color: #bdc3c7;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
    color: #bdc3c7;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .site-title {
        font-size: 2rem;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main {
        padding: 2rem 0;
    }
    
    .welcome-section,
    .article-item,
    .article-detail,
    .resource-item {
        padding: 1.5rem;
    }
    
    .footer-content,
    .resource-list {
        grid-template-columns: 1fr;
    }
    
    .article-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.8rem;
    }
    
    .welcome-section h2,
    .recent-articles h2,
    .tech-resources h2 {
        font-size: 1.6rem;
    }
    
    .article-header h1 {
        font-size: 1.8rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
}

/* 代码块样式 */
.code-block {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
    font-family: "Courier New", monospace;
    font-size: 0.9rem;
    overflow-x: auto;
}

/* 打印样式 */
@media print {
    .nav,
    .btn,
    .footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .article-item,
    .article-detail {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}