/* {模板路径}/static/css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

a {
    text-decoration: none;
    color: #0066cc;
    transition: color 0.3s ease;
}

a:hover {
    color: #004499;
}

ul {
    list-style: none;
}

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

/* Header Styles */
#header {
    background: linear-gradient(135deg, #1a237e, #3f51b5);
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo h1 {
    font-size: 24px;
    margin: 0;
    padding: 10px 0;
}

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

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

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

#main-nav a {
    color: #fff;
    font-weight: 500;
    padding: 10px 0;
    display: block;
    position: relative;
}

#main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease;
}

#main-nav a:hover::after {
    width: 100%;
}

/* Banner Styles */
.banner {
    background: linear-gradient(135deg, #3f51b5, #7986cb);
    color: #fff;
    padding: 60px 0;
    margin-bottom: 40px;
}

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

.banner-content {
    flex: 1;
    padding-right: 30px;
}

.banner-image {
    flex: 1;
    max-width: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.banner p {
    font-size: 18px;
    margin-bottom: 30px;
}

.search-box {
    display: flex;
    max-width: 500px;
}

.search-box input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 16px;
}

.search-box button {
    padding: 12px 25px;
    background-color: #ff4081;
    color: #fff;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background-color: #e91e63;
}

/* Section Styles */
.content-section {
    padding: 60px 0;
    margin-bottom: 20px;
}

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

.section-header h2 {
    font-size: 32px;
    color: #3f51b5;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #ff4081;
}

.section-header p {
    font-size: 18px;
    color: #666;
}

/* Card Styles */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

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

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

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

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #3f51b5;
}

.card-content p {
    font-size: 14px;
    color: #666;
}

/* Article Content Styles */
.article-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.article-content h3 {
    font-size: 24px;
    color: #3f51b5;
    margin-bottom: 20px;
}

.article-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

/* About Section Styles */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 2;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.about-text ul {
    padding-left: 20px;
}

.about-text li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.about-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #3f51b5;
}

/* Footer Styles */
#footer {
    background-color: #1a237e;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-logo, .footer-nav, .footer-contact {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer-logo p:first-child {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-nav h4, .footer-contact h4 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-nav h4::after, .footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #ff4081;
}

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

.footer-nav a {
    color: #b3e5fc;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-contact p {
    margin-bottom: 10px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Responsive Styles */
@media screen and (max-width: 768px) {
    #header .container {
        flex-direction: column;
    }
    
    #main-nav {
        width: 100%;
        margin-top: 15px;
    }
    
    #main-nav ul {
        justify-content: center;
    }
    
    #main-nav li {
        margin: 0 10px;
    }
    
    .banner-content {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .banner .container {
        flex-direction: column;
    }
    
    .banner-image {
        max-width: 100%;
    }
    
    .card-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media screen and (max-width: 480px) {
    .banner h2 {
        font-size: 28px;
    }
    
    .section-header h2 {
        font-size: 26px;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-box input {
        border-radius: 5px;
        margin-bottom: 10px;
    }
    
    .search-box button {
        border-radius: 5px;
        width: 100%;
    }
    
    .card-container {
        grid-template-columns: 1fr;
    }
}
