/* {模板路径}/static/css/style.css */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --accent-color: #ffbe76;
    --dark-color: #2d3436;
    --light-color: #f9f9f9;
    --text-color: #333;
    --text-light: #666;
    --text-white: #fff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

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

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.header {
    background-color: var(--dark-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--text-white);
    font-size: 24px;
    font-weight: 700;
}

.main-nav ul {
    display: flex;
    flex-wrap: wrap;
}

.main-nav ul li {
    margin-left: 20px;
}

.main-nav ul li a {
    color: var(--text-white);
    font-size: 16px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
}

.main-nav ul li a:hover {
    background-color: var(--primary-color);
}

/* Banner Styles */
/* 继续 {模板路径}/static/css/style.css */
.banner {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    padding: 80px 0;
    text-align: center;
    color: var(--text-white);
}

.banner-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.banner-content p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* Section Styles */
.section {
    padding: 60px 0;
}

.bg-light {
    background-color: var(--light-color);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-light);
}

/* Card Styles */
.card-container {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    justify-content: center;
}

.card {
    width: calc(25% - 30px);
    margin: 0 15px 30px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img {
    height: 200px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-img img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.card-content p {
    font-size: 14px;
    color: var(--text-light);
}

/* Article Content Styles */
.article-content {
    margin-top: 40px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.article-content h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.article-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    text-align: justify;
}

/* Footer Styles */
.footer {
    background-color: var(--dark-color);
    color: var(--text-white);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo p {
    font-size: 20px;
    font-weight: 700;
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-nav ul li {
    margin-right: 20px;
    margin-bottom: 10px;
}

.footer-nav ul li a {
    color: var(--text-white);
    font-size: 14px;
}

.footer-info {
    width: 100%;
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-info p {
    margin-bottom: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .card {
        width: calc(33.33% - 30px);
    }
}

@media screen and (max-width: 768px) {
    .header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .main-nav ul {
        justify-content: center;
    }
    
    .main-nav ul li {
        margin: 5px 10px;
    }
    
    .card {
        width: calc(50% - 30px);
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-nav ul {
        justify-content: center;
    }
}

@media screen and (max-width: 576px) {
    .banner-content h2 {
        font-size: 28px;
    }
    
    .section-header h2 {
        font-size: 26px;
    }
    
    .card {
        width: 100%;
        max-width: 320px;
        margin: 0 auto 30px;
    }
}
