/* 模板样式 */
.template-personal {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #333;
}

.template-personal .header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.template-personal .header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.template-personal .header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.template-personal .content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.template-personal .section {
    margin-bottom: 40px;
}

.template-personal .section h2 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* 商务模板 */
.template-business {
    font-family: 'Arial', sans-serif;
    color: #2c3e50;
}

.template-business .header {
    background: #2c3e50;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.template-business .header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 300;
}

.template-business .nav {
    background: #34495e;
    padding: 15px 0;
}

.template-business .nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.template-business .nav a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 4px;
    transition: background 0.3s;
}

.template-business .nav a:hover {
    background: #3498db;
}

.template-business .content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.template-business .services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.template-business .service-card {
    background: #ecf0f1;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

/* 极简模板 */
.template-minimal {
    font-family: 'Helvetica Neue', sans-serif;
    color: #444;
    background: #fafafa;
}

.template-minimal .container {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 20px;
}

.template-minimal .header {
    text-align: center;
    margin-bottom: 60px;
}

.template-minimal .header h1 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 10px;
    color: #222;
}

.template-minimal .header p {
    color: #666;
    font-size: 1rem;
}

.template-minimal .content {
    background: white;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.template-minimal .section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.template-minimal .section:last-child {
    border-bottom: none;
}

.template-minimal .section h2 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 15px;
    color: #333;
}

/* 创意模板 */
.template-creative {
    font-family: 'Arial', sans-serif;
    background: #1a1a1a;
    color: #fff;
}

.template-creative .header {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    padding: 80px 20px;
    text-align: center;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.template-creative .header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.template-creative .content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.template-creative .section {
    background: #2a2a2a;
    margin-bottom: 30px;
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid #4ecdc4;
}

.template-creative .section h2 {
    color: #4ecdc4;
    margin-bottom: 20px;
}

/* 作品集模板 */
.template-portfolio {
    font-family: 'Georgia', serif;
    color: #333;
}

.template-portfolio .header {
    background: #f8f9fa;
    padding: 60px 20px;
    text-align: center;
    border-bottom: 3px solid #007bff;
}

.template-portfolio .header h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: #212529;
}

.template-portfolio .header p {
    font-size: 1.1rem;
    color: #6c757d;
    font-style: italic;
}

.template-portfolio .content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 20px;
}

.template-portfolio .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.template-portfolio .project {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.template-portfolio .project:hover {
    transform: translateY(-5px);
}

.template-portfolio .project-image {
    height: 200px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.template-portfolio .project-info {
    padding: 20px;
}

.template-portfolio .project-info h3 {
    margin-bottom: 10px;
    color: #007bff;
}

/* 博客模板 */
.template-blog {
    font-family: 'Georgia', serif;
    line-height: 1.8;
    color: #333;
}

.template-blog .header {
    background: #fff;
    padding: 30px 20px;
    border-bottom: 1px solid #dee2e6;
    text-align: center;
}

.template-blog .header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #495057;
}

.template-blog .header p {
    color: #6c757d;
    font-style: italic;
}

.template-blog .content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.template-blog .article {
    background: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.template-blog .article h2 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.template-blog .article-meta {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.template-blog .article-content {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .template-business .nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .template-creative .header h1 {
        font-size: 2rem;
    }
    
    .template-portfolio .header h1 {
        font-size: 2rem;
    }
    
    .template-personal .header h1 {
        font-size: 2rem;
    }
    
    .template-business .services {
        grid-template-columns: 1fr;
    }
    
    .template-portfolio .gallery {
        grid-template-columns: 1fr;
    }
}
