
:root {
    --primary-color: #1E3A8A;
    --secondary-color: #3B82F6;
    --accent-color: #F59E0B;
    --light-color: #ffffff;
    --dark-color: #333333;
    --gray-color: #f5f7fa;
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --border-radius: 10px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--dark-color);
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    min-height: 100%;
    padding-top: 80px;
}

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

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(30, 58, 138, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    color: var(--light-color);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 30px;
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    color: var(--light-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.header {
    text-align: center;
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
}

.header-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.header-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

.header-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    max-width: 800px;
    margin: 0 auto 30px;
}

.notice {
    background-color: rgba(251, 191, 36, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 15px;
    margin-bottom: 40px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-size: 0.9rem;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 60px;
}

.article {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.article h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.8rem;
    position: relative;
    padding-left: 15px;
}

.article h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 25px;
    background-color: var(--accent-color);
    border-radius: 3px;
}

.article h3 {
    color: var(--secondary-color);
    margin: 30px 0 15px;
    font-size: 1.4rem;
}

.article p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.code-container {
    position: relative;
    margin: 25px 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.code-header {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: monospace;
}

.code-copy {
    background: none;
    border: none;
    color: var(--light-color);
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.code-copy:hover {
    color: var(--accent-color);
}

.code-copy i {
    margin-right: 5px;
}

pre {
    margin: 0;
    padding: 0;
}

code {
    display: block;
    padding: 20px;
    background-color: #1e1e1e;
    color: #d4d4d4;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    line-height: 1.5;
    overflow-x: auto;
}

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

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.footer {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 30px 0;
    text-align: center;
}

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

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-link {
    color: var(--light-color);
    text-decoration: none;
    margin: 0 15px;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--accent-color);
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 992px) {
    .header-title {
        font-size: 2rem;
    }
    
    .header-subtitle {
        font-size: 1.1rem;
    }
    
    .article {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .header {
        padding: 40px 0 30px;
    }
    
    .header-title {
        font-size: 1.8rem;
    }
    
    .article {
        padding: 25px;
    }
    
    .article h2 {
        font-size: 1.6rem;
    }
    
    .article h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .header-title {
        font-size: 1.6rem;
    }
    
    .header-subtitle {
        font-size: 1rem;
    }
    
    .article {
        padding: 20px;
    }
    
    .article h2 {
        font-size: 1.4rem;
    }
    
    .article h3 {
        font-size: 1.2rem;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
}

