
:root {
    --primary-bg: #121212;
    --secondary-bg: #1E1E1E;
    --accent-1: #BB86FC;
    --accent-2: #03DAC6;
    --text-primary: #E0E0E0;
    --text-secondary: #B0B0B0;
    --card-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

@font-face {
    font-family: 'Roboto';
    src: url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
}

body {
    background-color: var(--primary-bg);
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100%;
}

.header {
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--primary-bg) 100%);
    padding: 2rem 0;
    text-align: center;
    border-bottom: 1px solid rgba(187, 134, 252, 0.2);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center/cover;
    opacity: 0.05;
    z-index: 0;
}

.header h1 {
    font-size: 2.5rem;
    margin: 0;
    position: relative;
    z-index: 1;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(187, 134, 252, 0.3);
}

.header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 1rem auto;
    position: relative;
    z-index: 1;
    color: var(--text-secondary);
}

.nav-container {
    display: flex;
    justify-content: center;
    background-color: var(--secondary-bg);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu li a:hover {
    color: var(--accent-1);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    transition: width 0.3s ease;
}

.nav-menu li a:hover::after {
    width: 100%;
}

.main-container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.article-card {
    background-color: var(--secondary-bg);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-1), var(--accent-2));
}

.article-card h2 {
    font-size: 1.8rem;
    margin-top: 0;
    color: var(--accent-1);
}

.article-card h3 {
    font-size: 1.5rem;
    color: var(--accent-2);
    margin: 2rem 0 1rem;
}

.article-card p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.article-card table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background-color: rgba(30, 30, 30, 0.7);
    border-radius: 8px;
    overflow: hidden;
}

.article-card th {
    background-color: rgba(187, 134, 252, 0.1);
    color: var(--accent-1);
    padding: 1rem;
    text-align: left;
}

.article-card td {
    padding: 1rem;
    border-bottom: 1px solid rgba(187, 134, 252, 0.1);
    color: var(--text-primary);
}

.article-card tr:hover td {
    background-color: rgba(187, 134, 252, 0.05);
}

.code-container {
    background-color: #1E1E1E;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    overflow-x: auto;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
    position: relative;
}

.code-container::before {
    content: 'CSS';
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    color: var(--primary-bg);
    padding: 0.3rem 1rem;
    font-size: 0.8rem;
    font-weight: bold;
    border-bottom-left-radius: 8px;
}

pre {
    margin: 0;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #E0E0E0;
    white-space: pre-wrap;
}

code {
    font-family: 'Roboto Mono', monospace;
    background-color: rgba(187, 134, 252, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    color: var(--accent-1);
    font-size: 0.9rem;
}

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

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

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

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

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

.footer {
    background-color: var(--secondary-bg);
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
    border-top: 1px solid rgba(187, 134, 252, 0.2);
}

.footer p {
    color: var(--text-secondary);
    margin: 0;
}

.notice {
    background-color: rgba(187, 134, 252, 0.1);
    border-left: 4px solid var(--accent-1);
    padding: 1rem;
    margin: 2rem 0;
    border-radius: 0 4px 4px 0;
}

.notice p {
    margin: 0;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .article-card {
        padding: 1.5rem;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: var(--accent-1);
    border-radius: 50%;
    opacity: 0.5;
}

.particle-1 {
    top: 20%;
    left: 10%;
    animation: particleMove 15s linear infinite;
}

.particle-2 {
    top: 60%;
    left: 80%;
    animation: particleMove 20s linear infinite;
    animation-delay: 2s;
}

.particle-3 {
    top: 30%;
    left: 50%;
    animation: particleMove 18s linear infinite;
    animation-delay: 4s;
}

@keyframes particleMove {
    0% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% { transform: translate(100px, -100px); opacity: 0; }
}

.theme-switch {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 100;
    transition: transform 0.3s ease;
}

.theme-switch:hover {
    transform: scale(1.1);
}

.theme-switch i {
    color: var(--primary-bg);
    font-size: 1.5rem;
}

